updates: a running community never receives new fleet software — build and prove auto-update on the signed Matou release (publisher → feed wired on the gateway → ticker + window → land the control panel and control plane → self-update resume) #1562
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.
Depends on
Reference
Matou/idss#1562
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?
What's true today
A founded community never receives new fleet software. The control panel, the control-plane binary and the pinned agent reach a gateway once, at founding, and nothing carries a later build to a running community. Found while asking how Whakatōhea Demo (
whakatohea-demo.idss.nz) would pick up control-panel changes made on 2026-09-16: the only answer today is a handscpinto/srv/idss/dashboard.The designed lane exists on paper and mostly in code — the one signed Matou channel → the Updates surface → a staged, health-gated rollout (architecture 11, ADR 0017/0033/0054/0065–0068,
docs/ux/flows/p4b-updates.mermaid). #308 wired the Go-side reader and closed. But five links in the chain are missing, each verified againstmainata9fbc100:reseed-publish.yml(ADR 0185) advances only the bootstrap agent that NEW foundings curl from get.idss.nz; it reaches no existing gateway.productionReleaseSource(control-plane/cmd/control-plane/main.go) wires only when the unit carriesIDSS_RELEASE_FEED_URL+IDSS_RELEASE_PUBLIC_KEY. No gateway render exports either (gatewayEnvExports,internal/clan/vmguest.go) — the only other mentions are indocs/status-archive.md. So every community logs "release source resting" and sees nothing, security releases included.Orchestrator.PollorOrchestrator.Rollout(internal/update/). There is no ticker and no maintenance-window scheduler:ModeAutonever fires, and an operator's Approve queues a release that nothing ever rolls out.RetryByHandis the only route intorollout().deployStagepasses the manifest'sRevisionstraight toclan.Deploy{Revision}, which means an exact commit in the community's config repo. A Matou release revision is not such a commit, and the generated community flake (internal/clan/seedcommunity.go) pins onlyclan-core— there is no IDSS input to bump. No step turns "release R" into "config-repo commit C".fleetwire.Supply.Seedscps the payload's control-plane binary, built control panel and agent into/srv/idssand the agent cache (internal/fleetwire/supply.go). The rollout's seed stage calls the clan seam'sSupply.Seedinstead, which isnix flake archive— closures only (internal/clan/supply.go). A fully green rollout would still leave the old control panel on disk.What to build
The whole lane, end to end, so that a signed release published by Matou lands on a running community without anyone touching the box — and prove it on a real gateway.
idip/member bundle, pinned agent), writes the manifest, signs it (detached Ed25519 over the exact manifest bytes — the formatinternal/matouchannelandapp/src/lib/matouChannel.tsalready read) and publishes feed + artifacts at the one publish point. Release notes ride inside the signed manifest (ADR 0068).url+sha256, as the app's manifest already has) and give the rollout a land-the-fleet-software step that downloads, verifies the digest, and lands with the same staging + atomic-rename shapefleetwire.Supplyuses. Digest mismatch = refuse loudly, never a partial land (ADR 0100).clan.Deploygets a real revision, a retry applies the same closure, and "roll back = deploy the earlier exact revision" keeps meaning something.ModeAuto, fire operator-approved queued releases at the window, honour the ADR 0067 two-attempt budget then quarantine.store.save); the restart ofidss-control-planemust resume and finish the rollout rather than strand it mid-stage, and a control plane that fails its health check after the swap must roll back to the previous binary + control panel.Decisions this ticket carries (proposed defaults — ADR 0174)
clan updateand NixOS generation rollback carry them — is the cleaner end state and should be named in the ADR as the convergence path once the cache exists./channel/<name>.jsonbeside the agent artifacts, published by the existing pull half.testingtracks greenmainautomatically (rehearsal gateways + Whakatōhea Demo);stableadvances only by a deliberate human command.Record the rulings as one ADR (next free number — check
origin/mainfirst), update architecture 11 and STATUS.md in the same commit, and add a GOTCHAS entry for the self-update restart hazard.Why human (one item only)
Minting and custody of the production Matou release key is a one-way door: whatever it signs installs as root-level code on real communities' machines. Ben mints it, decides where the private half lives, and the public half is pinned at the next release. Nothing else here waits on that — build and prove the whole lane with a throwaway TEST key on a
testingfeed; swapping in the production key is one constant.Acceptance criteria
Seam (fakes + a fixture signed with a real key, as
matouChanneltests already do):ModeAutoinside the maintenance window, Then the release rolls out with no operator action and history records it appliedapplyingforeverLive (a rehearsal gateway, TEST key,
testingfeed):testingrelease on its owndocs/ux/wireframes/p4b-updates/— a green leg list alone does not countNotes for whoever picks this up
/to-tickets(natural cut: publisher → manifest + land step → pin commit → ticker/window → self-update resume → gateway render → existing-community step → drive leg), keeping this issue as the parent.docs/GOTCHAS.mdfirst — this is deploy-touching work. #221 (wildcard fall-through) and the staging+rename reasoning infleetwire/supply.go(ETXTBSY on a running binary,scp -rnesting into a leftover staging dir) both apply to the land step.Why human — extended (agent, ADR 0174, 2026-09-17)
The build lane is decomposed into #1563–#1569 and proven on a TEST key +
testingfeed; none of the below blocks that work. This parent carries only the one-way residue, and isready-for-humanblocked by all seven children:stableto real customer communities (one-way, ADR 0185/0248) — the deliberate human command that publishesstable.docs/ux/wireframes/p4b-updates/(Ben's eyes) — a green leg list alone does not count (this ticket's own acceptance).Ruled by agent under ADR 0174 — veto anytime. (session-runner, matou-workstation/bens-mac-04, 2026-09-17)
This ticket is too big for one swarm ticket (its own Notes). I did the part a single session can land + prove — the three carrying decisions the whole lane needs — and decomposed the build into a child-ticket DAG kept under this parent. What's left is genuinely one-way and stays with Ben.
Landed (commit
1d46b7fb, pushed tomain):url+sha256+ a land step reusingfleetwire's staging+atomic-rename shape); the IDSS-flake-input packaging is named as the convergence path once the Matou binary cache exists (ADR 0102 §5)./channel/<name>.json, one manifest + one signing story shared with the operator app (#211).testingauto-tracks greenmain(rehearsal gateways + Whakatōhea Demo),stableis human-command-only.testing/stablesplit + the artifact-bundle carrier and convergence path (same commit).applying).All five missing links re-verified firsthand against
main@61d8d507(no publisher/release key; no gateway render exports the feed facts; no ticker drivesPoll/Rollout; a release revision is not a config-repo commit; the fleet software lives outsideclan.Supply's closures).Decomposed into (this parent kept, wired
depends_on):This parent now holds only the one-way residue — relabelled
ready-for-human, blocked by all seven. See the extended## Why humanin the body: production release key mint/custody, advancingstableto real communities, the live two-box rehearsal drive (operator spend — the rehearsal-executor's queue-armed job, never a one-shot session), and the screenshots eyeballed againstdocs/ux/wireframes/p4b-updates/(Ben's eyes). None of it blocks the seven children, which build + prove the whole lane on the TEST key +testingfeed.#1571 split (Ben, 2026-09-18). The build half is now #1576 (
ready-for-agent, seam-only): the production lander, the control-panel artifact shape, keep-and-restore of the previous software, and the composition wiring. #1571 keeps only the control panel's render of thelandstage and the refusal state (needs-design). Both now block this parent — #1571 did not before.Two findings from the split worth knowing here: a real release carrying artifacts would fail every rollout today with
ErrLanderNotWired, andresume.go's promise to restore the previous binary + control panel has no mechanism behind it — nothing keeps the outgoing copies. Both are in #1576's scope.Added to this ticket's LIVE acceptance (routed here so #1576 can close on the seam, like #1563–#1568):
The production release key stays unminted until the
testinglane is green live and the publish rail exists to hold the private half (Ben, 2026-09-18).removableon the catalogue read, and the live client's two verbs — the UI is on main and draws no button until this lands #1590idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636Founding's
testingchannel pin is LIVE on main —9d7fbe8e(Ben's go, 2026-09-21). Option B proven first: #1675 removed the founding-release override, and the #1614 drive went GREEN 9/9 on a gateway founded the production way (run20260921T064206Z— U1x rests on the binary's own stamp;real-raillanded a real signed release from get.idss.nz under thetestingkey). Every community founded from here trackstesting.Left, all Ben's hands: #1569 —
set-release-channel --applyon Whakatōhea Demo (founded before the pin); then mint the production key and the firststablepromote.stableis never advanced by automation.Scope ruling (Ben, 2026-09-21): the "a community founded BEFORE the lane receives it" acceptance (#1569) is dropped — the only such community, Whakatōhea Demo, has been destroyed (rental released, name offboarded) and will be re-founded by hand on current code over the rented VPS + IDIP pathway. What remains for this ticket: that re-founded community is born pinned to
testing(the pin is live,9d7fbe8e) and takes a release on its own; then the production key + firststablepromote (Ben's hands).idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689Found while preparing the hand re-founding of Whakatōhea Demo (rented + IDIP): #1689 (a release never carries
idss-idp— ready-for-human, sign-in trust), #1690 (a build ahead of the feed auto-downgrades itself — priority), #1691 (kept box loses its only root key to run-dir retention). The demo is being founded from a worktree AT the feed's revision5b910ef3to sidestep #1690.idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge foreverexec: "nix"error and a Retry that cannot work #1696idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689PROVEN 2026-09-22 — a community founded by hand, the production way, took a signed
testingrelease ON ITS OWNWhakatōhea Demo (rented
s-4vcpu-8gb168.144.162.42, IDIP), founded by Ben through the operator app built from a stamped payload at5b910ef3(the feed's revision at build time; founding pin9d7fbe8e), no override of any kind.testing, knowing its own release (U1x read the stamped revision).cef28743(seq 2609) at 23:12Z. In the community's 02:00–04:00 window the gateway landed it unattended: control plane, control panel, agent andidss-idp(#1689 already in the release),*.previouskept; self-restart 02:08:06Z; journal 02:08:22Z "update resumed across a control-plane restart and converged".cef28743ad— applied 02:08 · all 1 nodes converged — every service passed its health check on every node — Back to updates.Not observed: U3 rolling out and the closed door (nobody was watching at 02:08 UTC — see #1671; the pre-restart journal is the evidence). U2 review never arose (rail cuts
patch, auto).What #1562 still needs (Ben's hands): mint the production release key and the first
stablepromote. Everything on the agent side is done. Open lane defects from the run: #1690 (build ahead of the feed self-downgrades — priority), #1691 (kept box loses its key).stablepromote cannot work — it dropsidss-idp, reports success on a 409 while the production-signed feed never publishes, and nothing can servestable(fix + provepublish.sh promotebefore the production key is minted) #1971stablepromote cannot work — it dropsidss-idp, reports success on a 409 while the production-signed feed never publishes, and nothing can servestable(fix + provepublish.sh promotebefore the production key is minted)testingrelease of kindfeature— a test aid so the ask-me-first review path is walked on a real community (the rail only ever cutspatch) #1973patchcarries an unapprovedfeaturerelease onto the community by itself #1974SetPolicy/SetChannelnever persist, the 204 is answered first, and a control-plane restart inside the gap restores the old policy #1975patchcarries an unapprovedfeaturerelease onto the community by itselftestingrelease of kindfeature— a test aid so the ask-me-first review path is walked on a real community (the rail only ever cutspatch) #19732026.09.3016), not the 40-character commit hash — Settings and every Updates screen, short hash beside it #1982Closed 2026-10-21 (Ben's stale sweep): PROVEN 2026-09-22 per Ben's comment — Whakatōhea Demo, founded by hand the production way, took a signed
testingrelease unattended in its maintenance window and converged.patchcarries an unapprovedfeaturerelease onto the community by itself #1974Triage:
ready-for-humanSurfaced untriaged — carried only
enhancement, no state role. Restoring the state role this ticket's own Why human — extended section always declared (ready-for-human, parent of the build DAG). All build children (#1563–#1569 and the later splits) are closed, and the lane is PROVEN 2026-09-22 end to end on Whakatōhea Demo per your own comment — a hand-founded, production-way community took a signedtestingrelease unattended in its window and converged. That half is done.What keeps this ticket open is the genuine one-way residue, not the build:
Why human
stablepromote — one-way door (ADR 0185/0248):stableis never advanced by automation; it is a deliberate human command that publishes to real customer communities.ready-for-human, "ruling owed: what 'ask me first' promises when every release…") carries the governance ruling these depend on; it still blocks this parent.Left
ready-for-humanrather than closed: it sits open for exactly the above (your hands / a one-way ruling), and loses no tracking of that residue. If your 2026-10-21 stale-sweep note meant to close it outright, that's your one-click call — this label just names where the remaining work lives in the meantime.patchcarries an unapprovedfeaturerelease onto the community by itself