update: rollout-wiring-guard — WithRollout composed (or guarded) before a real release can land #205
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#205
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
Provisioning spec #17 (P4b). Gap audit 2026-07-30 (post #191–#195 sweep). Not on #183's journey — hardening filed alongside the blocker set, confirmed by Ben.
What's true today
What to build
Call the orchestrator's rollout wiring in the whole composition — the real deploy runner (clan seam) and the real fleet read both exist. Where a leg is genuinely absent, the orchestrator must refuse loud rather than panic: a half-wired rollout is a legible error, never a nil-deref. Resting branch unchanged. The release source itself stays out of scope (#181's out-of-arc ruling stands).
Acceptance criteria
Task manifest
Blocks
None — hardening; #183's journey runs no rollout.
Done in
45d6a15(on origin/main).What was wrong: the whole composition built
update.New(...)without.WithRollout(...), soo.clan/o.fleetwere nil — a retry-by-hand act (the only driver) reached the fleet read on a nil interface, a latent panic unreachable only because the resting release source surfaces no release.Fix (ADR 0107 whole-or-resting):
composeWholenow wiresWithRollout(deps.clan, updateFleet{projection, ports}). NEWupdateFleetis a realupdate.Fleetover the ONE fleet-state projection — gateway/quorum/sole-data-home derived from the config-repo placement (ADR 0066), each placed service gated on its check from the shared health registry (ADR 0062), an unregistered service an honest no-gate (never a fabricated pass, ADR 0100).update.ErrRolloutNotWired. The rollout core refuses loud before the staged deploy touches a nil clan/fleet; the retry-by-hand endpoint surfaces it as a legible 500, never a panic.No release surfaces on #183's journey, so nothing rolls — resting see-state rests at U1/U1x unchanged (AC3).
Acceptance:
updates_rollout_wiring_test.go:TestComposeRollout_WiredWholeRefusesLoudResting+TestUpdateFleet_MapsRealProjectionRows).rollout_guard_test.go: unwired + half-wired returnErrRolloutNotWired).Verification caveat: the Sandcastle sandbox has no Go toolchain (issue #198), so this slice was verified by close review (types/signatures/lint checked by hand), not a local
go test/golangci-lintrun.