gateway-image staleness is keyed on COMMITS TOUCHING internal/, not on whether the baked agent actually changed — every render-only commit costs the next drive a ~60-minute rebuild (measured), and a busy day starves the drive #1096
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#1096
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 cost, measured
scripts/gateway-image/build.shadvertises "~10 min, pre-legs" (scripts/lib/gateway-image-rebuild-lib.sh:181). Measured from DO's own action log — build-dropletcreate→destroy— on 2026-08-31/09-01:Four rebuilds in the 6.5 hours from 19:30 to 02:00 — ~3.8 h of a 6.5 h window spent rebuilding the snapshot, in a window that fired only three drives. The log carries 29
snapshot advancedlines across the arc. The advertised figure is out by 5–6×, which is its own small bug (the message sets the operator's expectation for how long a park is normal).Why it fires so often
oc_gateway_image_staleness(scripts/lib/gateway-image-staleness-lib.sh:56-63) declares the snapshot stale when any commit since the snapshot's sha touchesOC_BOOTSTRAP_AGENT_PATHS=agent/ go.mod go.sum internal/:internal/is the whole product. Tonight's IDIP-credentials arc (#1080–#1087) and the healer landed a dozen commits intointernal/, and the drive lane paid a full rebuild for each batch — including for commits like a control-panel render or a Nix-string change that cannot alter the baked agent binary.What the snapshot actually bakes is (a) the agent binary and (b) the installer-base closure (#1048). Note the asymmetry already in the file: the installer-base axis (#1050,
_oc_gwimage_probe, lines 117-133) compares out paths and explicitly refuses to "churn a warm snapshot on a key we cannot read". The agent axis compares commit counts. The right discriminator already exists in the same function, one axis over.What plugging it needs
Key the agent axis on the built artifact, not on commit touch: compare the agent's derivation/out path at
snapvs atbase(theoc_gwimage_installer_base_markershape), and treat an unknowable marker as "keep the current verdict", exactly as the installer-base axis does. A render-onlyinternal/commit then leaves a warm snapshot warm; a commit that genuinely moves the agent still rebuilds.Worth confirming while in there whether the ~60 min is irreducible or itself has a warm-cache axis — the installer-base bake inside it re-runs each time and reports
1355 store pathsidentically every run, including the runs where the marker was unchanged.Also fix the "~10 min" string to match measurement.
Acceptance: a commit touching only
internal/clanrender text (no change to the agent's out path) leaves the snapshot fresh and fires the drive with no rebuild; a commit that moves the agent's out path still rebuilds; the unknowable-marker case never churns. Offline-provable against a fixture repo the waygateway-image-stalenessis already tested.Filed by the watching session from the #854 drive arc (ADR 0174). Not blocking #854 — it costs wall-clock and DO spend, not correctness.
swarm-claim host=matou-dev-server-01 run=15567
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1096 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope