| .claude/rules | ||
| .forgejo/workflows | ||
| docs | ||
| src/fin_hub | ||
| tests | ||
| workplans | ||
| .custodian-brief.md | ||
| .gitignore | ||
| .repo-classification.yaml | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| INTENT.md | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| SCOPE.md | ||
| uv.lock | ||
| WORK-RECORDS.md | ||
Fin Hub
Resource viability hub for the FOS federation — budgets, commitments, burn rate, runway projection, and token spend tracking.
Fin-hub extends hub-core with financial models and read surfaces. Generic hub
primitives (domains, repos, messages, progress events) come from hub-core;
fin-specific models (budget, commitment, burn rate, runway, token spend) live
here.
Status
MVP complete (CUST-WP-0025 T22–T26): models, CSV ingest, runway CLI, FOS
coupling, RaaS packaging draft. Operational hardening tracked in
workplans/FIN-WP-0001-runway-operations-lane.md.
Quick Start
cd /home/worsch/fin-hub
uv sync
uv run pytest
uv run finhub runway --balance 12000 --monthly-burn 2100,2200,2000
uv run finhub ledger import cloud tests/fixtures/cloud-costs.csv
uv run finhub evaluate
uv run finhub evidence --seed-fixtures
uv run finhub serve
uv run finhub import-cloud tests/fixtures/cloud-costs.csv
uv run finhub ops-costs tests/fixtures/hosteurope.csv
Cross-hub coupling (--emit) posts non-secret progress events to dev-hub when
STATE_HUB_API is reachable.
Client cost attribution
HostEurope CSV rows may include client_id, application_id, and
app_instance_id. All three must be present together. Fin-hub validates them
as external identifiers and derives the stable key
client:<client_id>|app:<application_id>|instance:<app_instance_id>; callers
must not invent a second key format. Rows without all three columns remain
explicitly unattributed for backward compatibility.
The SQLite ledger adds the attribution columns automatically when an existing
ledger is opened. The ops-costs report retains its per-service view and adds
an attributions view separated by currency. Client and application identity
remain authoritative outside fin-hub.
Related Workplans
the-custodian/workplans/CUST-WP-0025-fos-hub-bootstrap.md— umbrellacanon/constitution/bootstrap-protocol_v0.1.md— funding and rolescanon/projects/railiance/business-model-canvas_v0.1.md— monetization path