Standing re-supply never re-renders the Attach modules (anysync-stack.nix etc.), names the machine by slug, and drives clan through a dev shell the gateway lacks — #1813's re-pin could not land on whakatohea-demo without hand steps #1821
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1821
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?
Symptom
Landing idss#1813 (the any-sync image re-pin) on the ALREADY-STANDING
whakatohea-demogateway by the standing re-supply recipe (scripts/lib/rehearsal-standing-lib.shoc_standing_resupply, ADR 0208 ruling 3a / #1275) did not change the gateway: after the control-plane binary at20a6777was landed andcontrol-plane rerender-gateway <node>committed a re-render,machines/gateway/anysync-stack.nixstill carried all five v0.13 digests, and aclan machines updatewould have switched a closure with the OLD pins. Proven live 2026-09-24 (comment on #1813 has the transcript).Causes (three, each enough on its own)
RerenderGatewaySurfacere-renders only the gateway's own surface (control-plane.nix/gateway-guest.nix,internal/clan/gateway_attach.go). Every Attach* module written at founding or by a post-founding install —anysync-stack.nix(RenderAnySync),keri-stack.nix,idss-idp.nix,front-door.nix,files.nix, … — is never re-rendered on a standing community. So a render-affecting change to ANY of those modules (this time: image digests; next time: a unit ordering, a port, a reconciler script) lands only on communities founded after it. The #1214 lesson (GOTCHAS #179) was fixed for one surface, not for the module set.oc_standing_resupplyrunsrerender-gateway '$slug'andclan machines update '$slug'; on a community founded by the operator app the clan machine is namedgateway(machines/gateway/,gateway-render.jsonlives there).rerender-gateway whakatohea-demofails loud on the missing sidecar; only rehearsal machines happen to be named by slug.nix develop --command clan machines update …assumes a dev shell in the community config repo./srv/idss/configon a founded gateway provides none ("flake does not provide attribute devShells…"). The adapter's own resolution (internal/clan/toolpin.go:clanon PATH, elsenix run <PinnedClanRef> --) and the gateway clan env (internal/clan/gatewayclanenv.go:HOME=/root,SOPS_AGE_KEY_FILE=/var/lib/sops-nix/key.txt,IDSS_CONFIG_REPO, git identity) are what actually work on the box; the shell recipe carries neither, so sops cannot decrypt the vars and the switch fails.What worked by hand (the shape of the fix)
RenderAnySync(AnySyncConfig{Apex}), i.e. exactly whatInstallAnySync/writeGatewayIdentityModuleswrite — the write is idempotent (spec #1495 story 8), so re-running it on a standing community is safe and the single writer no-ops when nothing changed;control-plane@idss;clan machines update gatewayvianix run …#clan-cliwith the gateway clan env.Proposed fix
rerender-gateway <node>(or a siblingrerender-modules <node>) re-renders EVERY present module from the persisted facts + the same inputs the founding write used (apex, store paths, image overrides — the enrollment sidecar may need to grow the per-module inputs it does not hold today), not just the gateway surface; a module whose render is unchanged no-ops.oc_standing_resupplyreads the node id from the box (ls /srv/idss/config/machines/or the sidecar'snode) instead of assuming the slug, and drives clan the way the adapter does (toolpin.goresolution +gatewayclanenv.goenv) instead ofnix develop.Acceptance
machines/gateway/*.nixequals the landed binary's render for that module (idempotency asserted both ways).oc_standing_resupplysucceeds against a gateway whose machine is namedgatewayand whose config repo has no dev shell.Related: #1813, #1275, #1214 / GOTCHAS #179, ADR 0208,
scripts/lib/rehearsal-standing-lib.sh,internal/clan/gateway_attach.go,internal/clan/anysync_install.go.Blocked — main is red on a pre-existing failure outside this slice (the pre-push gate rejects every Go push)
The #1821 work is complete and green at its own seams (commit prepared locally, see below), but it cannot land: the pre-push Go gate (
nix develop .#go-ci→go test ./...) is red onorigin/mainHEAD (c2e17818) in a file this slice does not touch, sogit pushis refused for this ticket — and, being ago test ./...gate, for every Go push on the swarm right now:Cause: #1801 embedded the
cache.idss.nz-1public binary-cache key into the gateway render (internal/clan/matoucache.go) but never added it to secretlint'sgoldenRenderAllowList. The proper fix needs a value-scoped allow-list entry (path-scoping these large rendered files would blanket-silence the shape and mask a real leak — the harness forbids loosening a detector), which is a change to the security-detector harness itself. I filed that as #1824 (nowready-for-agent) rather than cram a security-detector change into this unrelated slice.What a human/next iteration must do to re-arm #1821
TestGoldenRenderLint_*) sogo test ./...passes on main.ready-for-agentto #1821.The #1821 work (ready to re-apply — it is small and fully described)
Three independent causes closed:
internal/clan/gateway_attach.go—RerenderGatewaySurfacenow also re-renders every PRESENT apex-derived content/identity module (rerenderPresentGatewayModules: keri-stack.nix, idss-idp.nix, anysync-stack.nix) WHOLE from the persisted apex, same single-writer commit; keyed on the file on disk (so an InstallAnySync-later community is re-pinned), never fabricating an absent module. front-door/acme-dns/files/code/mail accrete post-founding route inputs the sidecar does not hold — named follow-up.control-plane/cmd/control-plane/rerender_gateway.go—resolveGatewayNodereads the node id from the box (the machine dir holdinggateway-render.json), so a founded gateway namedgateway(not the slug) works.rerender-gateway --switchnow switches the closure in place through the pinned clan adapter (toolpin.go) + the gateway clan-runner env it builds itself (gatewayclanenv.go,ensureGatewayClanEnv) — nonix developa founded gateway's dev-shell-less flake refuses.scripts/lib/rehearsal-standing-lib.shcalls the one step, naming no slug and nonix develop.Tests (all green at their seams):
internal/clanTestRerenderGatewaySurface_LandsCurrentModuleRenders/_ModulesIdempotent;control-planeTestResolveGatewayNode+TestRunRerenderGateway_*;scripts/tests/rehearsal-standing-test.sh(30 checks). gofmt +go vetclean on the touched packages.Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.