update lane: landing a release never advances the doorway's agent-cache RELEASE marker — /get keeps stating the founding release after the agent binary has moved on #1849
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#1849
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
After a signed release lands through the update lane, the gateway's
/getdoorway keeps stating the FOUNDING release. Seen on whakatohea-demo 2026-09-24 19:22Z after the lane appliedc85d2bb3(seq 2849):/var/lib/idss/agent-cache/x86_64/idss-agentis the new agent (shad37b291d…, matches the manifest), but/var/lib/idss/agent-cache/RELEASEstill reads the previous revision — soX-IDSS-ReleaseonGET /get?arch=x86_64names a release whose agent is no longer what is served.Cause
internal/fleetwire/supply.gowrites the marker LAST at founding/re-supply ("RELEASE is written last, so a crash mid-fetch never leaves a release pointing at a half-landed agent"). The release lander (internal/update/land.go,fleetland) lands the agent artifact into the cache but never advances the marker —grep RELEASE internal/update/land.gois empty. The standing re-supply (oc_standing_resupply) does write it.Why it matters
oc_bootstrap_staleness,served-bits-vs-main): a stale marker makes a fresh agent look old.idss-agentself-identifies by the release it was fetched from; a wrong marker mis-attributes every enrolment after an update.Fix (two-way door)
After the agent artifact is verified and renamed into place, write
<AgentCacheDir>/RELEASE= the release's revision (temp + rename, same last-write ordering as supply.go). Seam test: land a release with an agent artifact → marker equals the release revision; a land that fails before the agent rename leaves the marker untouched.Related: #1562, #1689, ADR 0051,
internal/fleetwire/supply.go,internal/update/land.go.swarm-claim host=elitebook-distributed-server-03 run=32059
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1849 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope