monitor: the known-good rollback rung rides the signed update channel (#309 ruling) #315

Closed
opened 2026-08-06 20:11:01 +00:00 by ben · 3 comments
Owner

Parent

Split from #309 (Ben's 2026-08-06 ready-for-human sweep ruling).

What to build

The respond ladder's known-good rung: a real Revisions adapter so the monitor can roll a failing service back to its last known-good revision (monitor.New's nil Revisions in control-plane/cmd/control-plane/whole_composition.go).

Sequencing

"Known-good revision" only means something once releases actually flow — this rides after the signed Matou update channel lands (#308). Does not gate initial production on its own.

depends_on: [#308]

## Parent Split from #309 (Ben's 2026-08-06 ready-for-human sweep ruling). ## What to build The respond ladder's known-good rung: a real Revisions adapter so the monitor can roll a failing service back to its last known-good revision (`monitor.New`'s nil Revisions in `control-plane/cmd/control-plane/whole_composition.go`). ## Sequencing "Known-good revision" only means something once releases actually flow — this rides **after the signed Matou update channel lands (#308)**. Does not gate initial production on its own. depends_on: [#308]
Author
Owner

Re-armed ready-for-agent 2026-08-27 (Ben's ruling): its only blocker #308 (signed update channel) closed in 25e43f70. The rung is still an honest nil — whole_composition.go:319-322 passes nil for the revisions adapter, restingRescueRevisions{} at L394. Build the adapter over the real release source so the known-good rollback rung is live.

Re-armed `ready-for-agent` 2026-08-27 (Ben's ruling): its only blocker #308 (signed update channel) closed in 25e43f70. The rung is still an honest nil — `whole_composition.go:319-322` passes nil for the revisions adapter, `restingRescueRevisions{}` at L394. Build the adapter over the real release source so the known-good rollback rung is live.

swarm-claim host=elitebook-distributed-server-03 run=12794
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=12794 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #315 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 315,
  "status": "success",
  "commits": [
    "e8a0ac6"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/revisions_wiring_test.go",
    "control-plane/cmd/control-plane/whole_composition.go"
  ],
  "tests": [
    {
      "command": "go test ./control-plane/cmd/control-plane/ ./internal/monitor/ ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./... (main module + broker)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A real Revisions adapter replaces monitor.New's nil Revisions in whole_composition.go": "whole_composition.go: monitor.New(..., updateRevisions{up: up}, ...) — the new updateRevisions adapter reads up.State().Current.Revision (the fleet's current known-good exact revision, ADR 0066/0107); the former nil is gone.",
    "The monitor can roll a failing service back to its last known-good revision": "The respond ladder's restart/re-apply rung (internal/monitor/respond.go issueOp) now finds a non-nil o.revs and issues clan.Deploy{Revision: o.revs.KnownGood(), RestartChanged: true} rather than refusing ErrNotWired — proven by TestWholeComposition_RespondLadderRollsBackToKnownGood (the composed monitor's restart rung issues a clan.Deploy scoped to the node, restart engaged, never ErrNotWired).",
    "Rides after the signed Matou update channel (#308)": "The known-good revision is read off the update orchestrator whose real release source lands with #308 (25e43f70, per Ben's 2026-08-27 re-arm); before a release flows KnownGood is the honest empty (clan's reconcile of the pinned config, ADR 0100), proven by TestUpdateRevisions_ReadsTheOrchestratorsCurrentRevisionLive."
  },
  "summary": "Wired a real updateRevisions adapter into the whole composition's monitor.New so the respond ladder's restart/re-apply rung deploys the fleet's current known-good revision instead of refusing ErrNotWired.",
  "blockers": []
}
**close-report** for #315 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 315, "status": "success", "commits": [ "e8a0ac6" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/revisions_wiring_test.go", "control-plane/cmd/control-plane/whole_composition.go" ], "tests": [ { "command": "go test ./control-plane/cmd/control-plane/ ./internal/monitor/ ./internal/update/", "exit_code": 0 }, { "command": "go build ./... && go vet ./...", "exit_code": 0 }, { "command": "golangci-lint run ./... (main module + broker)", "exit_code": 0 } ], "criteria": { "A real Revisions adapter replaces monitor.New's nil Revisions in whole_composition.go": "whole_composition.go: monitor.New(..., updateRevisions{up: up}, ...) — the new updateRevisions adapter reads up.State().Current.Revision (the fleet's current known-good exact revision, ADR 0066/0107); the former nil is gone.", "The monitor can roll a failing service back to its last known-good revision": "The respond ladder's restart/re-apply rung (internal/monitor/respond.go issueOp) now finds a non-nil o.revs and issues clan.Deploy{Revision: o.revs.KnownGood(), RestartChanged: true} rather than refusing ErrNotWired — proven by TestWholeComposition_RespondLadderRollsBackToKnownGood (the composed monitor's restart rung issues a clan.Deploy scoped to the node, restart engaged, never ErrNotWired).", "Rides after the signed Matou update channel (#308)": "The known-good revision is read off the update orchestrator whose real release source lands with #308 (25e43f70, per Ben's 2026-08-27 re-arm); before a release flows KnownGood is the honest empty (clan's reconcile of the pinned config, ADR 0100), proven by TestUpdateRevisions_ReadsTheOrchestratorsCurrentRevisionLive." }, "summary": "Wired a real updateRevisions adapter into the whole composition's monitor.New so the respond ladder's restart/re-apply rung deploys the fleet's current known-good revision instead of refusing ErrNotWired.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#315
No description provided.