docs: record messages router import seam

This commit is contained in:
2026-06-07 11:30:50 +02:00
parent fb6d01b318
commit 72478e820e
2 changed files with 16 additions and 5 deletions

View File

@@ -278,6 +278,14 @@ from `hub_core.schemas.domain` while keeping dev-hub-specific `DomainDetail`
and `DomainSummary` local. Verification: State Hub import/core-router focused
tests passed with 58 tests.
Implementation slice 4 (2026-06-07): added host-model injection to
`hub_core.routers.messages.create_messages_router`, then replaced State Hub's
local `api.routers.messages` implementation with the hub-core factory while
injecting State Hub's own `AgentMessage` model. This is the first router import
that avoids importing hub-core SQLAlchemy metadata into State Hub. Verification:
hub-core `pytest` passed with 16 tests; State Hub import/core-router/MCP smoke
focused tests passed with 70 tests.
### T09 — Rename MCP server state-hub to dev-hub
```task