|
Download README.md from Snapkitty/market-scope: direct link, hf CLI and curl.
- Browser
- Download file 6.97 kB
-
https://huggingface.co/Snapkitty/market-scope/resolve/main/README.md
- Command line
-
hf download hf://Snapkitty/market-scope/README.md
-
curl -L -o README.md https://huggingface.co/Snapkitty/market-scope/resolve/main/README.md
6.97 kB
| license: other | |
| license_name: snapkitty-tri-license | |
| license_link: https://huggingface.co/Snapkitty/market-scope/blob/main/LICENSE.tri | |
| tags: | |
| - snapkitty | |
| - developer-tools | |
| - python | |
| # MARKETSCOPE | |
| **Sovereign Market Intelligence & Research Platform (MIRP)** | |
| ``` | |
| ORCHESTRATOR Ahmad Ali Parr | |
| EXECUTION SNAPKITTYWEST sovereign stack | |
| SEALED 2026-07-04 | |
| STATUS v0.1 Β· Sovereign architecture Β· 5 agents | |
| AUDIT 4b565498-9afc-4782-af4a-c6b11a5d0058 | |
| ``` | |
| --- | |
| ## I. What This Is | |
| MARKETSCOPE is a sovereign market intelligence platform that: | |
| 1. **Ingests** global index data (S&P 500, Nikkei, DAX, KOSPI, etc.) via sovereign connectors | |
| 2. **Processes** signals through a Prolog Logic Layer (deterministic rules, regime detection, correlation logic) | |
| 3. **Logs** every inference, data snapshot, and model weight to the Bifrost WORM Chain | |
| 4. **Outputs** probabilistic scenario analyses (not predictions) for Human Review Required | |
| ## II. What This Is NOT | |
| This is **NOT** a trading system. This is **NOT** financial advice. | |
| ``` | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β PROHIBITED ACTION: financial_advice β | |
| β β | |
| β This platform produces SCENARIO BANDS, not point forecasts. β | |
| β All outputs require Human Review Required before any action.β | |
| β The Prolog Logic Layer enforces this at the type level. β | |
| β β | |
| β Training_Gate: Human_Review_Required β | |
| β Audit_Spec: 4b565498-9afc-4782-af4a-c6b11a5d0058 β | |
| ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| ``` | |
| ## III. Architecture | |
| ```mermaid | |
| flowchart TD | |
| subgraph INGEST["INGEST LAYER"] | |
| A1[S&P 500] --> RUST[Ingestor - Rust/Axum] | |
| A2[Nikkei 225] --> RUST | |
| A3[DAX] --> RUST | |
| A4[KOSPI 200] --> RUST | |
| A5[NASDAQ 100] --> RUST | |
| A6[Crypto Perps] --> RUST | |
| end | |
| subgraph PROCESS["PROCESSING LAYER"] | |
| RUST --> FEAT[DuckDB Feature Store] | |
| FEAT --> PROLOG[Prolog Logic Engine] | |
| PROLOG --> QUANT[Quant Engine - Python/Rust] | |
| end | |
| subgraph SEAL["AUDIT LAYER"] | |
| QUANT --> AUDITOR[Auditor Agent] | |
| AUDITOR --> WORM[Bifrost WORM Chain] | |
| end | |
| subgraph OUTPUT["OUTPUT LAYER"] | |
| WORM --> UI[Council UI] | |
| UI --> SCENARIO[Scenario Bands] | |
| SCENARIO --> HUMAN[Human Review Required] | |
| end | |
| style INGEST fill:#1a1a2e,stroke:#00d4ff,color:#fff | |
| style PROCESS fill:#16213e,stroke:#ff6b35,color:#fff | |
| style SEAL fill:#0f3460,stroke:#e94560,color:#fff | |
| style OUTPUT fill:#1a1a2e,stroke:#00d4ff,color:#fff | |
| ``` | |
| ## IV. Agent Roles | |
| | Agent ID | Role | Sovereign Constraint | | |
| |----------|------|----------------------| | |
| | `INGESTOR_GLOBAL` | Pulls OHLCV + Alt Data (futures basis, funding rates) | Plasma Gate `Ed25519` verify each payload | | |
| | `PROLOG_REASONER` | Fires deterministic rules (regime, correlation, breadth) | **Zero hallucination** β pure logic | | |
| | `QUANT_ENGINE` | Runs conformal prediction / quantile forests (Python/Rust) | Model weights + data hash β Bifrost WORM | | |
| | `AUDITOR` | Verifies lineage: Raw β Feature β Inference β Output | `Audit_Spec: 4b565498-9afc-4782-af4a-c6b11a5d0058` | | |
| | `COUNCIL_UI` | Presents **scenario bands** (not point forecasts) | `Training_Gate: Human_Review_Required` | | |
| ## V. Repository Layout | |
| ``` | |
| market-scope/ | |
| βββ apps/ | |
| β βββ ingestor/ # Rust (Axum + Reqwest) β sovereign data connectors | |
| β βββ logic-engine/ # SWI-Prolog (HTTP JSON API) β deterministic rules | |
| β βββ quant-engine/ # Python (Polars + LightGBM + Conformal) β scenario bands | |
| β βββ auditor/ # Rust (WORM Writer + Verifier) β lineage verification | |
| β βββ council-ui/ # Next.js + Tailwind β scenario visualization | |
| βββ packages/ | |
| β βββ schemas/ # Protobuf / JSON Schema (shared types) | |
| β βββ prolog-rules/ # .pl files (versioned, tested, WORM-hashed) | |
| β βββ connectors/ # Per-index connector configs | |
| β βββ bifrost-sdk/ # Rust/TS SDK for append_block(), verify_chain() | |
| βββ docker-compose.yml # Local stack definition | |
| βββ turbo.json # Turborepo pipeline definition | |
| βββ worm-genesis.json # Genesis block for the WORM audit chain | |
| βββ README.md # This file | |
| ``` | |
| ## VI. Prolog Logic Layer | |
| ### Market Regime Detection (Deterministic) | |
| ```prolog | |
| regime(bull) :- sma_50 > sma_200, vix < 20, breadth > 0.6. | |
| regime(bear) :- sma_50 < sma_200, vix > 30. | |
| regime(transition) :- \+ regime(bull), \+ regime(bear). | |
| ``` | |
| ### Correlation Breakdown Alert | |
| ```prolog | |
| correlation_breakdown(AssetA, AssetB, Window) :- | |
| rolling_corr(AssetA, AssetB, Window, Corr), | |
| Corr < 0.3, | |
| historical_avg_corr(AssetA, AssetB, Avg), | |
| Avg > 0.7. | |
| ``` | |
| ### Sovereign Compliance Guard | |
| ```prolog | |
| compliant_signal(Signal) :- | |
| source_verified(Signal), | |
| worm_logged(Signal), | |
| \+ prohibited_action(financial_advice), | |
| human_review_gate_passed(Signal). | |
| ``` | |
| ## VII. Quick Start | |
| ```bash | |
| # Clone the repo | |
| git clone https://github.com/SNAPKITTYWEST/market-scope.git | |
| cd market-scope | |
| # Start local stack | |
| docker compose up -d | |
| # Verify services | |
| curl http://localhost:8080/health # Prolog engine | |
| curl http://localhost:3001/health # Ingestor API | |
| curl http://localhost:8090/health # Auditor | |
| ``` | |
| ## VIII. Sovereign Constraints | |
| | Constraint | Enforcement | | |
| |------------|-------------| | |
| | `prohibited_action(financial_advice)` | Prolog guard β all outputs are scenario bands | | |
| | `Training_Gate: Human_Review_Required` | UI blocks autonomous execution | | |
| | `Audit_Spec: 4b565498-9afc-4782-af4a-c6b11a5d0058` | WORM chain β append-only, SHA-256 sealed | | |
| | `Plasma Gate Ed25519` | Every data payload cryptographically verified | | |
| | `Zero hallucination` | Prolog Logic Layer β pure deterministic rules | | |
| --- | |
| *This repository is a sovereign research platform. It does not provide financial advice.* | |
| --- | |
| ## License | |
| Licensed under **SnapKitty Tri-License**. Full text: [LICENSE.tri](LICENSE.tri). | |
| ### πΌ Commercial License | |
| Snapkitty code is free and open under **AGPL-3.0** for open-source use. Building a commercial product or service? A **proprietary commercial license** from Snapkitty Collective LLC lets you ship this code without the AGPL's source-sharing and network-use obligations. | |
| **[β Get a commercial license](mailto:A.parr@belespritdaccord.uk?subject=Commercial%20license:%20market-scope)** Β· A.parr@belespritdaccord.uk | |