takeover: standing-reuse path never seeds the installer base — seedInstallerBase only rides the founding supply leg, so a standing gateway stays cold across cache refreshes and flake bumps #1042
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
Reference
Matou/idss#1042
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?
Parent
#854. Completes the ADR 0133 Tier 3 chain: #1016 (ruling) → #1036 (mechanism) → #1038 (staging pipeline) → this (the standing-path hole).
What's wrong
seedInstallerBase(internal/fleetwire/supply.go) runs only on the founding supply leg. The rehearsal standing-reuse path (ADR 0208) skips founding entirely — drive20260830T172147Z's leg list isstanding, mint, device-create, agent-install, decline-resume, join, approve, assess, select-files, deploy-takeover…, no supply — so a standing gateway founded before the cache was staged keeps its cold store and every takeover on it composes into the #1016 20-minute ceiling.This is not just a rehearsal artifact. The general shape: the payload's installer-base cache can change while a gateway stands (first staging, or any flake bump — #1038's drive-prep gate refreshes the payload but nothing re-seeds standing boxes). Production communities stand for years; their takeovers must not go cold on the first release that bumps the base.
What to build
Give the seed a call site on the path the takeover actually rides, not only founding:
installer-base.toplevel— supply.go's existing idempotent check, which keys on the GATEWAY's imported marker, not the drive host's) and import the payload cache when missing or different. The mechanism is already idempotent and GC-rooted; it needs invoking.cd56dbb8(cold vs seeded must stay distinguishable in the deploy log).Acceptance criteria
deploy-takeoverfinishes within the #1016 ceiling.Blocked by
None — can start immediately.
swarm-claim host=elitebook-distributed-server-03 run=14673
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision needed: where the takeover-path installer-base seed's call site lives, given the process split I found tracing this:
provision.deployTakeover) composes the kexec installer on the gateway's own control plane (internal/clanEnroll →renderInstallerMesh), so the store that must be warm is the gateway's.fleetwire.NewSupply(os.Getenv(vm.PayloadDirEnv), …), staged by #1038). The gateway control plane has no operator payload — it only has the copy founding'sseedInstallerBaseKEEPS on-box at/var/lib/idss/installer-base-cache. And ADR 0208 forbids a standing-community branch in the app/control-plane, so there is no operator-side hook on the standing takeover path to push from.Ruling: the takeover-path seed runs gateway-local — the control plane re-imports its OWN on-box
/var/lib/idss/installer-base-cacheinto its store at takeover compose time, keyed on the gateway's marker (installer-base.toplevel), exactly the idempotent check supply.go already owns. Founding now also LANDS that marker file on the gateway (a small additive step) so the gateway can self-check. Best-effort with the #1037 loud line; a warm/current gateway is a no-op; a GC-reclaimed or cold-but-cache-present store re-imports.Why two-way door: revertible by a later commit, proven entirely by offline tests at the fleetwire + provision seams (cold → import, warm → no-op, marker-differs → re-seed, no-cache → honest degrade). No trust surface widened — the on-box cache is the same payload-landed closure, the payload stays the only trust boundary (ADR 0054/0110).
Honest boundary (named, not hidden): a flake bump that lands a NEW base only in the operator payload does not reach a standing gateway through this local re-seed (the on-box cache is stale) — that refresh rides an operator re-push (#1038 staging) or a staleness-gated re-found (ADR 0208). This call site closes the GC-reclaim / delayed-takeover / founded-before-store-had-it holes and makes the warm case a true no-op.
close-report for #1042 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope