catalogue: wire the catalogue read + request routes into the production composition root (#1123/#1124/#1121 arc gap) #1135
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
The catalogue read route
GET /api/v1/catalogue(internal/controlapi.WithCatalogue, #1123) and the send/request routes (WithCatalogueRequests, #1124) are not wired into the production composition root (control-plane/cmd/control-plane/whole_composition.go) — they are only exercised from their integration tests. Theservicerequestledger (#1121) is likewise not instantiated there.Consequence: in production the dashboard's P4-S2 "For this device" dress (#1126) and the Browse tab (T8) receive no catalogue data — the dashboard degrades to the undressed picker (by design, never a blocked deploy) and the Browse/Request surfaces have no backend. The OpenAPI path + generated client for the read now exist (added in #1126), so only the server-side
Optionwiring remains.Proposed fix
In
whole_composition.go, register:controlapi.WithCatalogue(controlapi.NewCatalogueRead(projection, <servicerequest ledger>), <session resolver>)— the fleetprojection(already built) supplies running-where; the ledger supplies request states.controlapi.WithCatalogueRequests(...)over the broker send path (ADR 0219) + the same ledger.servicerequestledger (a single jsonstore document, #1121) in the state dir, shared by both.Add a composition-root wiring test alongside the existing
updates_rollout_wiring_test.gopattern asserting the routes answer (200 authed / 401 unauthed).Found while working
#1126 (catalogue T7 — S2 wears the dress): the dashboard client half (spec entry, generated
getCatalogue,HttpProvisionClient.catalogueDisplay) shipped there; this is the server half the read depends on to actually dress in production.swarm-claim host=matou-dev-server-01 run=16126
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1135 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope