docs: record domains router import seam

This commit is contained in:
2026-06-07 15:23:29 +02:00
parent de7b656e71
commit 2844ece8b6
2 changed files with 17 additions and 4 deletions

View File

@@ -104,6 +104,10 @@ Current implementation status:
hub-core progress router factory with State Hub's own progress model and hub-core progress router factory with State Hub's own progress model and
schemas injected, preserving topic/workstream/task filters while gaining the schemas injected, preserving topic/workstream/task filters while gaining the
shared risk and alert progress views. shared risk and alert progress views.
- 2026-06-07: T08 domains router import completed. State Hub now mounts the
hub-core domains router factory with State Hub's own domain/repo models and
schemas injected, plus callbacks for dev-hub detail counts and archive
validation.
## Extract Now ## Extract Now
@@ -172,7 +176,7 @@ implementation is coupled to dev-hub concepts:
| Surface | Coupling to resolve | | Surface | Coupling to resolve |
| --- | --- | | --- | --- |
| `Domain` and `domains.py` detail views | Counts topics, workstreams, extension points, and technical debt. Hub-core should expose a domain summary hook that dev-hub can implement. | | `Domain` and `domains.py` detail views | Detail counts now use a dev-hub callback behind the hub-core router factory. Domain relationships still need a later model split if State Hub stops carrying topics/goals on the core table. |
| `ManagedRepo` | Contains `topic_id`, SBOM fields, and state-sync timestamps. Keep minimal repo identity in core, then add dev-hub extensions. | | `ManagedRepo` | Contains `topic_id`, SBOM fields, and state-sync timestamps. Keep minimal repo identity in core, then add dev-hub extensions. |
| `CapabilityRequest` | Adapter seam implemented with generic `request_context` and `fulfillment_context`; State Hub still needs a later refactor to map workstream/task references into those fields or a dev-hub extension table. | | `CapabilityRequest` | Adapter seam implemented with generic `request_context` and `fulfillment_context`; State Hub still needs a later refactor to map workstream/task references into those fields or a dev-hub extension table. |
| `ProgressEvent` | Adapter seam implemented with generic `subject_refs`; State Hub still needs a later refactor to map topic/workstream/task/decision foreign keys into that field or a dev-hub extension table. | | `ProgressEvent` | Adapter seam implemented with generic `subject_refs`; State Hub still needs a later refactor to map topic/workstream/task/decision foreign keys into that field or a dev-hub extension table. |
@@ -212,6 +216,6 @@ to import it:
## Next Step ## Next Step
Continue T08 by applying host-model injection or callback seams to the next Continue T08 by applying host-model injection or callback seams to the next
lowest-risk generic routers. Repos, domains, and capability requests each need lowest-risk generic routers. Repos and capability requests each need a small
a small dependency-injection review before replacement. Do not rename State Hub dependency-injection review before replacement. Do not rename State Hub to
to dev-hub until T05-T08 prove the shared package boundary. dev-hub until T05-T08 prove the shared package boundary.

View File

@@ -309,6 +309,15 @@ preserves State Hub's topic/workstream/task filters and exposes the hub-core
risk/alert progress views. Verification: hub-core pytest passed with 19 tests; risk/alert progress views. Verification: hub-core pytest passed with 19 tests;
State Hub MCP/import/core-router focused tests passed with 71 tests. State Hub MCP/import/core-router focused tests passed with 71 tests.
Implementation slice 8 (2026-06-07): added host-model/schema injection,
optional update-route registration, and detail/archive callbacks to
`hub_core.routers.domains.create_domains_router`, then replaced State Hub's
local `api.routers.domains` implementation with the hub-core factory. State Hub
keeps its own domain detail counts and active-topic archive guard in local
callbacks. Verification: hub-core pytest passed with 20 tests; State Hub
core/import/MCP/recently-on-scope/capability focused tests passed with 102
tests.
### T09 — Rename MCP server state-hub to dev-hub ### T09 — Rename MCP server state-hub to dev-hub
```task ```task