the-custodian/workplans/CUST-WP-0000b-state-hub-v0.2-decisions-dependencies.md
tegwick 8bdefcd6ba Normalize agent instructions and workplan frontmatter (STATE-WP-0067)
- Align agent files with on-disk workplan prefixes (infer from workplan ids)
- Set workplan domain to registered domain_slug; add topic_slug where applicable
- Repair frontmatter delimiter formatting; migrate legacy task status literals
- Regenerate AGENTS.md, CLAUDE.md, and .claude/rules from State Hub templates
2026-06-22 23:16:28 +02:00

1.5 KiB


id: CUST-WP-0000b type: workplan title: "State Hub v0.2 — Decisions, Suggestions & Dependencies" domain: infotech repo: the-custodian status: completed owner: custodian topic_slug: custodian created: "2026-02-25" updated: "2026-02-25" completed: "2026-02-25" state_hub_workstream_id: "6585ee66-aa4e-436e-bbec-d83293c33e8f" note: > Pre-ADR-001 record. This workstream 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 workstreams
  • 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 workstreams
  • 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