the-custodian/workplans/CUST-WP-0000b-state-hub-v0.2-decisions-dependencies.md
codex 66be5cb72f
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 4s
Close workplan loose ends: relink stale hub IDs, normalize statuses.
- Archived CUST-WP-0054/0057/0058: replace stale state_hub IDs with the
  live hub records (matched by task title and status), clearing 13 C-03 failures.
- CUST-WP-0054-T09/T10: record cancel in the file, matching the hub state
  at plan closeout.
- Eleven finished workplans: non-canonical 'completed' -> 'finished'.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 11:32:48 +02:00

1.5 KiB

id type title domain repo status owner topic_slug created updated completed state_hub_workstream_id note
CUST-WP-0000b workplan State Hub v0.2 — Decisions, Suggestions & Dependencies infotech the-custodian finished custodian custodian 2026-02-25 2026-02-25 2026-02-25 6585ee66-aa4e-436e-bbec-d83293c33e8f Pre-ADR-001 record. This workplan was created DB-first before the workplan-as-repository-artefact convention was established. Retroactive file written on 2026-03-11 to satisfy the ADR-001 consistency checker (C-08).

State Hub v0.2 — Decisions, Suggestions & Dependencies

What was built

Delivered 2026-02-25, evolving the hub from a state tracker to an active coordination layer:

  • WorkstreamDependency model + migration 0b547c153153 — directed dependency graph between workplans
  • API: POST/GET /workstreams/{id}/dependencies/, DELETE /workstreams/{id}/dependencies/{dep_id}
  • API: GET /state/next_steps — derived next-action suggestions (never persisted)
  • StateSummary extended with next_steps and depends_on/blocks on workplans
  • Design boundary formalised: hub is a read model with exactly two write use cases — resolving decisions and suggesting next steps
  • MCP: get_next_steps() tool added
  • scripts/script.py.mako added (required for Alembic autogenerate)

References

  • Alembic migration: 0b547c153153
  • Design boundary document: canon/architecture/ (hub as read model)
  • CLAUDE.md global + railiance updated with get_next_steps() in session start