provisioning: updates-rollout-happy — auto-security in-window, staged canary-first rollout to applied #70
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
Depends on
Reference
Matou/idss#70
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
Feature spec: #17 (provisioning).
What to build
The happy-path rollout of the P4b journey, driven by the
updateorchestratorseam (the deploy runner scripts the stages — clan has no built-in canary). A
security or patch release with auto-security on is not queued for approval: it
waits for the community's maintenance window and then rolls out, exactly as an
operator-approved update does — both are equally protected. Every rollout is
staged and health-gated the same way (ADR 0066): closures are seeded to every node
first, a canary deploys and passes its health checks, then the rest follow, with
the gateway last.
The canary is chosen by rule, never by the operator: never the gateway, never a
quorum-role holder, never the sole home of any dataset. A fleet too small to have
a qualifying canary says so and proceeds one node at a time with a health gate
between each. A rollout or retry applies the same exact revision/closure to every
node, so a retry never rebuilds into something different. When every service
passes on every node, P4b-U4 shows the fleet converged on the new revision with
the order it took, and monitoring watches it from here.
Notes:
Supply.Seedis a precondition of every rollout — a drifted unfed nodecannot deploy offline. This slice was split from the former updates-rollout-rollback
at the U4/U4x line (to-tickets granularity gate, 2026-07-25); rollback and
quarantine are updates-rollback-quarantine's. Flow:
docs/ux/flows/p4b-updates.mermaid.Acceptance criteria
Blocked by
Task manifest
Done. The
updateorchestrator's rollout face (P4b-U3 → U4) is implemented and committed ase91023d.What was built —
internal/update/rollout.go:Rollout(ctx, revision), the happy-path deploy runner that scripts the staged, health-gated rollout (clan has no built-in canary, S13 Q7), driven off a newFleetfleet-state reader port + the confirmedclanseam'sDeploy+Supply.Seed.Window.Contains(clock.Now())→WaitingForWindow, touches no node until the window opens); the "not queued for approval" half is Poll's existingStateAutomaticplacement, asserted here.chooseCanary): never the gateway, never a quorum holder, never the sole home of any dataset, with its reason stated; the gateway/quorum nodes are excluded even when they have the fewest dependents. A fleet with no qualifying canary says so (TinyFleet) and proceeds one node at a time with a health gate between each, gateway still last.currentis set converged on the new revision, the run recorded in the update history (ADR 0027), the release dropped from the active list, the surface rests at U1x — monitoring watches from here.A failing health check is named (
FailedNode/FailedCheck) and the rollout stops — the rollback/quarantine transitions it triggers are updates-rollback-quarantine's (#74, out of scope).WithRollout(clan, fleet)wires the two new deps onto the existingNew(store, src, clock), leaving the see-state / review / policy faces untouched.Evidence —
internal/update/rollout_test.go: 8 seam tests over a recordingclan.Fakewrapper +FakeFleet+ fake clock, one per acceptance clause.go/vet/gofmtclean; fullinternal/...suite green.enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717nix copystill orphans itsssh— #716's drain window freesRun, it does not reap the process tree #718enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716enroll-copy's ceiling to a measured rented copy — with #716's drain fix the shared 20mdefaultPhaseTimeoutnow CUTS a cold copy instead of hanging on it #717