updates-open: U1 renders a blank fleet revision and 0 of 0 nodes on a fresh community #1633
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
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#1633
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?
The failure
Leg
updates-open, red 540 ms in, afterfounding-prefix(734 s) andoperator-sessiongreen.artifacts/legs.json:artifacts/verdict.json:"verdict": "red","firstRedLeg": "updates-open","legs": {"total":3,"green":2,"red":1,"skip":0},"commit": "1035817588cc14a53e9ad6245dc69fafb80ef5d4".artifacts/journey.jsoncarries the same three rows plus"fault"set to the same string.It reds through the drive's own honest-red builder, not a bare timeout —
error-context.mdpoints atupdatesGate(leg, gate, sawOnScreen)in the drive's release fixture, whose doc comment says it exists "so legs.json never carries a bare timeout":Test:
journey.updates.spec.ts:114—updates drive: the Updates-lane proof on a throwaway gateway (#1618) >> found A → applied B → rolled back C → refused (artifact + list) → replay → real rail.What the surface actually showed
artifacts/updates/u1-baseline.png(byte-identical toartifacts/legs/updates-open-dash.png) renders:So the Updates surface mounted and had live data — the channel, "last checked just now", and release A as a pending row. Both previously-healed faults on this signature are gone: the Settings→Fleet tab hop (
6bfde109/0f141763) and thenull-marshalled empty sections that read.lengthoff one (10358175). This is a new, deeper red.What is missing is only the running revision: the id after
testing ·is empty, and the convergence count is0 of 0. The leg's gate reads exactly that field and reds.That
0 of 0contradicts the same drive's own founding screen — page snapshot inerror-context.md:One node is on the fleet; the Updates surface counts zero nodes, total.
Two corroborating oddities in the same frame
Founding release A (1035817588cc14a53e9ad6245dc69fafb80ef5d4)— the identical shaverdict.jsonrecords as this drive'scommit. A gateway founded from A should not have A queued to apply over itself. That is precisely the behaviour an empty running-revision would produce if the offer/downgrade check is keyed on it.logs/guest-control-plane.log(final start, pid 2935, 14:29:04):logs/guest-failed-units.logis clean (0 loaded units listed.), and the guest was still running at harvest (logs/guest-unit.log:active (running) since Sat 2026-09-19 14:17:21 UTC).Suspected layer — product (control-plane update store / founding fact chain)
The feed side works; the state side is empty. Nothing in the run appears to have ever told the gateway which release it is running. The pending-offer path is fed by the channel poll, but the "the fleet is running" row is fed by the update store's current-release record, and that record is at its zero value.
A harness/timing reading is worth ruling out but looks weak: the leg fired ~23 s after the control plane's third and final restart (14:29:04 → drive
endedAt14:29:27.617), and the scheduler ticks every 5 m — so a settle race is conceivable. Against it: the surface already had fresh poll data in the same paint, andTotalbeing0is a fleet-membership count, not a scheduler-tick output. Two earlier control-plane starts (14:28:39 pid 2409, 14:28:59 pid 2882) loggedupdate scheduler resting: composition root not whole — the rollout face is unwired, i.e. each restart began from an empty rollout face.The prior healer's read (in-run record, NOT verified from here)
logs/healer-claude.outcontains a full refusal-diagnosis of this same red, which names a concrete mechanism. Reporting it attributed, because this session is sandboxed to the run directory —Readandgrepagainst/home/swarm/swarm/Matou/idssoutsidetest-results/private-path/20260919T141551Zwere refused, so I could not check a single one of its line citations:composeWholebuilds the store with the zero value —update.NewStore(update.Policy{…}, update.Current{})(control-plane/cmd/control-plane/whole_composition.go:595-604).store.currentis a completed rollout (internal/update/rollout.go:410);Store.SetCurrent(internal/update/store.go:155-157) has no production caller.ReleaseFeedURL/ReleasePublicKey) onto the gateway (internal/clan/clan.go:749-750→internal/clan/vmguest.go:2007-2009); the founding release's revision/sequence is carried nowhere.Surface.Current == {"", 0, 0}and U1 renders an empty<code>plus0 of 0; the #1579 replay floor (store.go:123-134) is 0 on a fresh community, and U1x is unreachable becauserestingrequiresTotal > 0(surface.go:129-130).NewStore, neverOpenStore/NewFileBackend), so the rollout checkpoint and quarantine budget die on each control-plane restart — which the log confirms happened three times during founding.The screenshot evidence above is independently consistent with all of this (blank revision,
0 of 0, and A offered over itself). Treat the file/line claims as leads a swarm agent must re-verify in the checkout, not as established fact.Not the known frontier
This is not the own-VPS pairing frontier.
artifacts/legs.jsonrecords"skip": 0and carries no skip reasons at all — nothing in this drive's own records names anything as out of scope. The red is a first-time product failure on the U1 baseline.Absent from this run directory (say what's missing)
logs/guest-unit.log, but with no access line granted I did not and could not reach it, and ran nothing against it.)logs/droplet-journal.txt. This drive ran a local QEMU guest, not a droplet —artifacts/host.jsonshows"payloadMode": "/home/swarm/swarm/rehearsal-payload"and"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"(the host has no system qemu; the payload's is used). The guest journal is harvested aslogs/guest-journal.log/logs/guest-system-journal.loginstead. Neither contains anyupdate/rollout/revisionline.state/founding-state.json—logs/founding-state.logis thecatfailure for it.logs/state-logs.logandlogs/reporter-claude.errare 0 bytes.state/updates-work/is empty — the drive never reached the leg that cuts releases B/C/D.trace.zip(approval refused), so the raw/api/v1/updatesresponse body is unread; the rendered surface is the best available proxy.What plugging it needs
A human ruling first, because there are two defensible products here and they imply different work:
0 of 0 nodes convergedand render that phrasing instead — and the drive'supdates-openbaseline gate is asserting something the product never promised, so the gate changes too.Either way, two things are worth fixing independent of the ruling and are actionable now:
applied) is built to prove exactly that resume-across-restart, so fixing the U1 baseline alone will re-fire this drive straight into it.Do not plug this by deleting the baseline gate — that is the check that caught it.
drive
20260919T141551Zred atupdates-open:leg updates-open was waiting on the fleet revision on U1 — the Updates surface showed instead: U1 active, fleet on (revision unread)evidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260919T141551Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedSame root as #1631, which a swarm worker (bens-mac-04, run 27582) is already building — filed from run 2's evidence an hour before this red:
composeWholeseedsupdate.Current{}, so a fresh gateway has no revision, no sequence, andConverged/Totalof zero. I have made this ticket natively blocked by #1631 so a session does not build the same carrier in parallel (the first red of this drive was double-landed exactly that way). When #1631 closes, what is left here is only what it did not cover — most likely the0 of 0 nodes convergedhalf, which #1631's body does not name: check U1 on the next run before doing anything, and close this if the screen reads a real revision and a real node count.Close-report — Ruled by agent under ADR 0174 (veto anytime)
Disposition: the ticket's primary red is fixed on
mainby #1631, and the one residue #1631 did not take — durability, which the ticket flagged as "actionable now" — is now landed here.The primary red was a pre-#1631 red
The drive
20260919T141551Zran at10358175. #1631 (1c178423) landed after it, seedingfoundingCurrentso a freshly founded gateway reports its own release as "the fleet is running", the surface RESTS (U1x) instead of rendering a blank revision /0 of 0, andPollnever offers the founding release A back to itself. Verified present and green in HEAD:TestPoll_RestsWhenFeedNewestIsTheFoundingRelease— the gateway does not offer its own founding release (the ticket's "actionable now" item 1, the self-offer regression).TestPoll_RefusesADowngradeOnAFreshlyFoundedCommunity— the #1579 replay floor starts at the founding sequence, not zero.TestFoundingCurrent—foundingCurrentseedsConverged/Totalso the surface rests.So the "blank revision, 0 of 0, own release offered back" failure is already resolved. No re-drive was run from this sandbox (no live-box access line was appended; the drive host is #1614's spend/host-gated call).
What this session landed — the durable store (item 2)
The ticket's second "actionable now" item: the production update store was memory-only (
update.NewStore), whileOpenStore/NewFileBackend— the durable path #74 built and seam-tested — had no production caller. Confirmed by reading the code:whole_composition.go:596and its own doc comment ("the control plane builds a durable store withOpenStore"). Consequence: on every control-plane restart (founding alone restarts it several times — the failing run logged three starts) the ADR 0067 attempt budget reset, a mid-swap rollout strandedapplying, and a post-founding community forgot its current release and accepted history (current re-seeded from the env each boot → an already-applied B looked new again, the downgrade floor walked back to the founding sequence).Fix (commit
133b7440):openUpdateStore(deps.stateDir, policy, foundingCurrent(...))opens a durableFileBackendat<stateDir>/update.json, beside the other File ledgers. Fresh boot seeds+writes; restart resumes the persisted document; a corrupt document is refused loudly at boot (openEnrollLedger's discipline). The resting composition stays memory-only (a pre-founding stub). First-boot behaviour is byte-identical, soupdates-open's "at rest after founding" assertion is unaffected — this only changes what a restart resumes.update_store_restart_test.go):TestOpenUpdateStore_ResumesPriorDocumentAcrossRestart,…_SeedsAndPersistsOnFreshBoot,…_CorruptDocumentRefusedLoudly— each proven red against a memory-only helper, green with the durable one. The resume behaviour in the document is already proven ininternal/update(TestRollback_QuarantineSurvivesRestart,TestResume_FinishesRolloutAcrossControlPlaneRestart,TestPoll_AcceptsStrictlyNewerAndHighWaterSurvivesRestart).go build/vet/test ./control-plane/... ./internal/update/...+ gofmt green (golangci-lint is not installed on this host).Why two-way (ADR 0174): a revertible commit; a durability tightening (the #1579 floor and ADR 0067 budget are meant to be durable), no security-posture widening. This is exactly the gap the drive's next
appliedleg proves (self-swap resume across the control plane's own restart), so it unblocks re-firing #1614 pastupdates-open.Follow-up filed
#1635 — a durable store resumes the persisted release channel, so a
set-release-channelCLI re-tune's new channel isn't reconciled until an operator in-appSetChannelor a rollout. Narrow, cross-channel-only, entangled with the operator's pin-or-fork choice and the per-channel floor — #1569/#1562 (Ben-owned) territory, so filed rather than guessed at.Live proof of both halves rides #1614's next drive.
idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636SetPolicy/SetChannelnever persist, the 204 is answered first, and a control-plane restart inside the gap restores the old policy #1975