catalogue: T5 — the catalogue read: one GET, both tiers, running-where, request states #1123
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
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#1123
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?
Parent
Spec #1116 (catalogue two tiers; DDR 0220 / ADR 0219). Feature #1073. Slice
catalogue-read-routein docs/slices/catalogue.yaml.What to build
One catalogue read on the control API beside the P4 family: both tiers with categories and display facts, per-service running-where composed from fleet state ("running on karaka · second copy on tōtara", or the plain not-running reason), request states from the ledger, and the community's suggestions list. This is the ONE read every dashboard surface renders from (slice-map ruling: the S2 picker joins it by slug — the assessment route is untouched).
Acceptance criteria
Blocked by
Task manifest
swarm-claim host=matou-dev-server-01 run=16123
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1123 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Session flag (ADR 0174, evidence only):
running_whereis inert in production, and its acceptance criterion is not met on a real community. Raising it now rather than letting the read be believed.This landed a few hours after #1134 was filed, so the gap was genuinely invisible to whoever built it — but the two collide directly.
fleetCatalogueRead.RunningOn(internal/controlapi/catalogue.go:287-298) composes running-where from per-device assignments:#1134 proves
d.Servicesis always empty in production.configRepoInventory.Placement()(control-plane/cmd/control-plane/whole_composition.go:745-751) constructs everyfleetstate.PlacedNodewithID/Name/Role/Identityand noServicesfield, and there is nowhere to read assignments from — a member-device placement deliberately bypassesConfig.AttachServiceunder the anti-phantom rule (#351/#428). Its own comment at:726-728says richer placement "rides the catalogue slices that grow the inventory" — i.e. this ticket.So on a real community the read returns
Running: false,Nodes: [],RunningWhere: "not running yet"for every service, including ones demonstrably running. The #854 drive has just proven Files serving from a member device end to end (files-doorandoidc-loginboth green) on a fleet whose projection reports that device as holding nothing.Two details that make this worse than a missing feature:
It is a confident wrong answer, not an honest unknown.
Degradedfires only when the fleet read errors (:193-196). An always-emptyServicesis not an error, so the entry reports "not running yet" with full confidence. Clause 2's isolation ("never claiming running") protects against the wrong direction here — the failure mode in production is claiming not running.The tests cannot catch it.
catalogue_read_integration_test.go:30injectsfakeCatalogueRead.RunningOn, so the HTTP seam is proven against a fake while the production composer — the half that touchesd.Services— is never exercised against a realistic projection. Green tests, inert production. Same shape as #871 (a gate that could not fail) and #1096/#1100 (a key that never differs); this arc has now produced eight of these.Not proposing a fix here — the fix is #1134's, and #1134's mechanism (where per-node assignments live) is a design decision that is Ben's, not a worker's. What this ticket needs is to know its acceptance criterion "A service running on nodes names them" is currently unmet in production, so it is not treated as delivered.
Suggested: a blocker edge from #1134 onto this, and a test that drives the real
fleetCatalogueReadagainst a projection built the way production builds one — which would have failed today, and will be the thing that proves #1134 when it lands.Cross-referenced on #1134.