generated from coulomb/repo-seed
1.4 KiB
1.4 KiB
Architecture
The repo has two layers:
- Root framework layer
INTENT.md,docs/,research/, andregistry/define the generic adaptive-pricing vocabulary, lifecycle model, and roadmap.workplans/is the repo-native source of truth for tracked work (ADR-001).
- Project implementation layer
projects/coulomb-pricing/contains the first concrete deployment: Coulomb Social's Economic Observatory MVP.observatory/is a small Python package that reads JSON ledgers and registries fromdata/, computes economics snapshots, and serves a local UI.
Current Coulomb data flow:
data/*.jsonledgers and registriesobservatory/load.pyparses JSON into dataclassesobservatory/ledger.pybuilds monthly cost rowsobservatory/economics.pycomputes liquidity, margins, and snapshotsobservatory/allocation.py,usage.py,pricing_context.py,simulator.py,credits.py, andrecommendations.pyderive higher-level pricing viewsobservatory/api.pyassembles the dashboard payloadobservatory/__main__.pyrenders the Markdown reportobservatory/server.pyexposes/api/dashboardand servesui/
External integrations are file-based in MVP:
- Bubble export importer
- Stripe export importer
- OpenRouter export importer
The internal model and ledgers are the source of truth. Provider exports feed the ledgers; they do not replace them.
Quick Reference
~/state-hub/mcp_server/TOOLS.md — MCP tool reference