transport: shell-compose-controlplane — register the fleet/overview/settings services in main.go #159
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.
Blocks
Reference
Matou/idss#159
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
ADR 0037. The three
main.gocomposition follow-ups deferred by the closing comments of #152 (fleet), #153 (overview) and #154 (settings) — none was filed at close; recovered by Ben's #128 review 2026-07-28 (the same dropped-thread class as #156).The gap (verified in code 2026-07-28)
control-plane/cmd/control-plane/main.goregisters onlyWithBackups/WithProvision/WithUpdates/WithMembers(monitoring rides in asNewHandler's required reader).WithFleet,WithOverviewandWithSettingsexist ininternal/controlapi/with handlers and integration tests, but are never registered in the production binary — soGET /api/v1/fleet,GET /api/v1/overviewand the six/settings/*endpoints 404 against the real control plane, whileproductionDashboardDepswires real HTTP clients that call them. The #152–#154 live tests pass because they spin their own test servers with the services registered.What to build
Follow the resting fail-loud composition pattern #155 established for members (compile-time-asserted stubs; honest freshly-founded reads; acts fail loud — #132 / ADR 0100 bar prod fakes):
FleetServicejoining the fleet store × monitoring's per-node health chip (the #152 follow-up note), resting on the honest founded state (the gateway alone).OverviewServicefanning out over the five owners (monitoring headline, backups coverage, the four needs-attention queues, first-run counts — the #153 follow-up note), composed from the orchestratorsmain.goalready constructs.brandkitseam behind Validate/Compile, honest resting community details + updates summary.controlapi.NewHandleralongside the existing four options.Acceptance criteria
GET /api/v1/fleet,GET /api/v1/overviewand every/settings/*endpoint respond (no 404): reads project the honest freshly-founded state; unwireable acts fail loud.main.go, compile-time assertions prove each resting stub satisfies its port (the #155 discipline), andmain_test.goseam-tests the honest-empty reads and fail-loud acts per service.Task manifest
Done on
origin/main(6b37a29).WithFleet/WithOverview/WithSettingsare now registered in the production binary (control-plane/cmd/control-plane/main.go), soGET /api/v1/fleet,GET /api/v1/overviewand the six/settings/*endpoints no longer 404 against the real control plane (they did, whileproductionDashboardDepsalready called them). Follows the #155 resting fail-loud composition (ADR 0100 / #132).What was built (
control-plane/cmd/control-plane/shell_surfaces.go, new):restingFleetjoins the fleet store × monitoring: the founded gateway alone as row one (a structural honest placeholder, never an invented device name — DDR 0095), each node joined with monitoring's chip, which reads the honestunknownat rest (no heartbeat yet; shell owns no health truth, ADR 0097). The join is real — a node monitoring does classify carries its chip verbatim.restingOverviewfans out over the five ownersmain()constructs: monitoring health/alerts, backups' coverage (honestly noting founding's Identity dataset awaits its first copy — awarn, not a fakeok), members' awaiting-approval queue, the update channel's pending releases, and the fleet/provisioning first-run counts (all empty/zero at rest). Enroll's pending-devices queue rests unwired-not-faked (it's not in the composition root yet), the same discipline #152 used for the device-add strip.restingSettings:validate/previewrun over the REALbrandkitseam (Validate/Compile), community details rest honest-empty (founding's store not wired), the updates summary reads the wired update policy; the one unwireable act — Apply — FAILS LOUD (no durable brand-kit store to commit to).Acceptance:
NewHandler; reads project the freshly-founded state,ApplyBrandKitfails loud.var _ controlapi.FleetService/OverviewService/SettingsService = resting…{}proves each service satisfies its port (the #155 discipline); the five resting orchestrators are factored into onerestingControlPlane()somain_test.goseam-tests exactly what production ships —TestRestingFleetReadsProjectTheGatewayAlone,TestRestingOverviewReadsProjectTheQuietGlance,TestRestingSettingsReadsRestAndApplyFailsLoud(honest-empty reads + fail-loud Apply).No spec/screen change — the endpoints and dashboard clients already existed (#152–#154); the existing
*_integration_test.gostay green.out_of_scope[engine adapters, rescue #158, screen changes] untouched. (Go toolchain isn't in the sandbox — the Go tests run in CI.)Evidence:
control-plane/cmd/control-plane/shell_surfaces.go+main.go+main_test.go; STATUS.md milestone log.sopstoken mislabels itmissing_varand eats the transport retry #1210rehearsal-report.shdrifted - bdb42ff6’s token-leak fix must land in dev-factory (which still leaks) and ride back on a FACTORY_REF bump #1683