update: rollout-wiring-guard — WithRollout composed (or guarded) before a real release can land #205

Closed
opened 2026-07-30 23:20:11 +00:00 by ben · 1 comment
Owner

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

  • The retry-by-hand rollout act is registered and, when driven, reaches the fleet read on a nil interface — a latent process panic. It is unreachable today only because the resting release source never surfaces a release: the moment a real release source lands without the rollout wiring, the first retry panics the control plane.
  • The rollout view (#149) rests 404 by design until the orchestrator is rollout-wired; the wiring itself was left to "the engine arc" and never ticketed.

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

  • Given the whole composition, When the orchestrator is constructed, Then its rollout face is wired to the real clan seam and fleet read
  • Given any composition where a rollout leg is absent, When a rollout act is driven, Then a legible refusal — never a panic
  • Given no release source, Then the surface keeps resting at U1/U1x (unchanged)

Task manifest

task: update:rollout-wiring-guard
implements_seam: "the update orchestrator's rollout face over the clan seam + fleet read (spec #17 P4b)"
interface: "the P4b rollout acts, safe in production"
seam: "the existing rollout integration tests, run through the whole composition"
acceptance:
  - given: the whole composition; when: rollout acts are driven; then: wired real or refused loud — no nil path
depends_on: []
out_of_scope: [the signed release channel read (#181 out-of-arc), SSE/push]
needs_human_decision: []

Blocks

None — hardening; #183's journey runs no rollout.

## 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 - The retry-by-hand rollout act is registered and, when driven, reaches the fleet read on a **nil interface** — a latent process panic. It is unreachable today only because the resting release source never surfaces a release: the moment a real release source lands without the rollout wiring, the first retry panics the control plane. - The rollout view (#149) rests 404 by design until the orchestrator is rollout-wired; the wiring itself was left to "the engine arc" and never ticketed. ## 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 - [ ] Given the whole composition, When the orchestrator is constructed, Then its rollout face is wired to the real clan seam and fleet read - [ ] Given any composition where a rollout leg is absent, When a rollout act is driven, Then a legible refusal — never a panic - [ ] Given no release source, Then the surface keeps resting at U1/U1x (unchanged) ## Task manifest ```yaml task: update:rollout-wiring-guard implements_seam: "the update orchestrator's rollout face over the clan seam + fleet read (spec #17 P4b)" interface: "the P4b rollout acts, safe in production" seam: "the existing rollout integration tests, run through the whole composition" acceptance: - given: the whole composition; when: rollout acts are driven; then: wired real or refused loud — no nil path depends_on: [] out_of_scope: [the signed release channel read (#181 out-of-arc), SSE/push] needs_human_decision: [] ``` ## Blocks None — hardening; #183's journey runs no rollout.
Author
Owner

Done in 45d6a15 (on origin/main).

What was wrong: the whole composition built update.New(...) without .WithRollout(...), so o.clan/o.fleet were 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):

  • Whole: composeWhole now wires WithRollout(deps.clan, updateFleet{projection, ports}). NEW updateFleet is a real update.Fleet over 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).
  • Any absent leg (resting + half-wire): NEW 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:

  • Whole composition constructed → rollout face wired to the real clan seam + fleet read (updates_rollout_wiring_test.go: TestComposeRollout_WiredWholeRefusesLoudResting + TestUpdateFleet_MapsRealProjectionRows).
  • Any composition with a rollout leg absent → legible refusal, never a panic (rollout_guard_test.go: unwired + half-wired return ErrRolloutNotWired).
  • No release source → surface rests at U1/U1x (unchanged).

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-lint run.

Done in 45d6a15 (on origin/main). **What was wrong:** the whole composition built `update.New(...)` without `.WithRollout(...)`, so `o.clan`/`o.fleet` were 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):** - *Whole:* `composeWhole` now wires `WithRollout(deps.clan, updateFleet{projection, ports})`. NEW `updateFleet` is a real `update.Fleet` over 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). - *Any absent leg (resting + half-wire):* NEW `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:** - [x] Whole composition constructed → rollout face wired to the real clan seam + fleet read (`updates_rollout_wiring_test.go`: `TestComposeRollout_WiredWholeRefusesLoudResting` + `TestUpdateFleet_MapsRealProjectionRows`). - [x] Any composition with a rollout leg absent → legible refusal, never a panic (`rollout_guard_test.go`: unwired + half-wired return `ErrRolloutNotWired`). - [x] No release source → surface rests at U1/U1x (unchanged). **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-lint` run.
ben closed this issue 2026-07-31 01:17:18 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#205
No description provided.