Implement ADAPTIVE-WP-0002 Sprint 1 economic foundations

Add Coulomb observatory package with JSON registries (product, pricing
models, costs, revenue, membership), economics snapshot engine, Economics
Dashboard v1 CLI, sample report, and pytest coverage. Complete T01 and
queue Sprint 2 Bubble.io integration.
This commit is contained in:
2026-06-22 01:32:48 +02:00
parent d648a3263d
commit a1a4aa972f
17 changed files with 709 additions and 19 deletions

View File

@@ -13,24 +13,24 @@
## Dev Workflow
The repository is in an **early framework phase**: Markdown documentation, research
notes, and capability registry YAML. No application runtime, package manifest, or
automated test suite exists yet. Executable implementation begins under
`workplans/ADAPTIVE-WP-0002-economic-observatory-mvp.md`.
Framework docs live at the repo root. The Coulomb MVP implementation lives in
`projects/coulomb-pricing/observatory/` (stdlib Python 3.11+, no runtime deps;
`pytest` for tests). Run MVP commands from `projects/coulomb-pricing/`.
| Need | Command |
|------|---------|
| Install | none — no runtime dependencies |
| Test | none configured yet |
| Lint / format | none configured — match surrounding Markdown style |
| Build | none — documentation-only repo |
| Run | none |
| Python | `python3` (3.11+) |
| Install | none — stdlib only; for tests: `pip install pytest` |
| Test (MVP) | `cd projects/coulomb-pricing && python3 -m pytest -q` |
| Test (repo) | same as MVP until other packages exist |
| Lint / format | none configured — match surrounding style |
| Build | none |
| Run: economics dashboard | `cd projects/coulomb-pricing && python3 -m observatory --period YYYY-MM` |
| Workplan / hub sync | `cd ~/state-hub && make fix-consistency REPO=adaptive-pricing REPO_PATH=~/adaptive-pricing` |
| Registry sanity | `grep -q '^version:' registry/indexes/capabilities.yaml && echo OK` |
**Verify a change before declaring it done:** run `make fix-consistency` (expect
PASS), and confirm edited docs stay aligned with `INTENT.md` and
`docs/ProductRequirementsDocument.md`.
**Verify a change before declaring it done:** run `python3 -m pytest` under
`projects/coulomb-pricing`, then `make fix-consistency` (expect PASS).
---