feat: Strategic Reserve resilience + fundability layer #41
Merged
wasabi opened 1 week ago

Adds a first-class strategic_reserve registry (schema 327) and seed (115) unifying existing reserve-shaped primitives (carbon buffer, commons reserve allocation, funding-round capital, seed-vault biodiversity, standby capacity) into a monitorable reserve layer.

  • services/strategic_reserve: health (adequacy/headroom/trigger-breach), seed-vault biodiversity proxy, CLI (health/list/seed-vault/propose-release)
  • report_generator.generate_strategic_reserve: network-wide + per-location view with fundability_signal; release proposals are DRAFT only
  • Read-only; no automatic on-chain drawdown (human approval required via decision_policy/agents.safety)
  • 8 new tests pass; ruff clean; schema+seed applied and smoke-tested against live DB
Commits were merged into target branch
  • feat: Strategic Reserve resilience + fundability layer
    Adds a first-class strategic_reserve registry (schema 327) and seed (115)
    unifying existing reserve-shaped primitives (carbon buffer, commons reserve
    allocation, funding-round capital, seed-vault biodiversity, standby capacity)
    into a monitorable reserve layer.
    
    - services/strategic_reserve: health (adequacy/headroom/trigger-breach),
      seed-vault biodiversity proxy, CLI (health/list/seed-vault/propose-release)
    - report_generator.generate_strategic_reserve: network-wide + per-location
      view with fundability_signal; release proposals are DRAFT only
    - Read-only; no automatic on-chain drawdown (human approval required)
    1 week ago
  • fix: make strategic-reserve seed NULL-safe under seed.sh (no pilot data)
    CI runs only seed.sh (not seed-pilot.sh), so the Adelphi location,
    commons_redistribution_policy, and network/dao funding_round rows are
    absent. Wrap the derived held_quantity subqueries in COALESCE(..., 0) so
    a missing source row yields 0 instead of NULL (which violated the
    NOT NULL constraint).
    
    Real values are preserved when pilot data is present (local dev):
    commons=70000, financial=610000, seed=7 distinct lines.
    1 week ago
  • wasabi merged 1 week ago
1/1
Submitter wasabi
Target main
Source feat/strategic-reserve
Jobs
Merge Strategy
Create Merge Commit
Watchers (1)
Reference
pull request KI-41
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover