reseed/release-publish publish the run's CHECKED-OUT ref, not main's tip — publish.sh:39 takes GIT_SHA:-HEAD, so fixing #2057 would green the rail onto a 3-day-stale agent #2072
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2072
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
The
reseed-publish/release-publishrails publish whatever ref the run checked out, not main's tip. Both workflow headers claim otherwise.reseed-publish.yml's header says the railbut nothing in the rail ever resolves
origin/main:.forgejo/workflows/reseed-publish.yml— the only checkout is a plainactions/checkout@v4withfetch-depth: 0. That checks outgithub.sha, i.e. the run'shead_sha, notorigin/main.scripts/bootstrap-reseed/publish.sh:39—sha="$(git -C "$root" rev-parse "${GIT_SHA:-HEAD}")".GIT_SHAis not set by either workflow, so the published sha is the checked-outHEAD.The guard base is correct and idempotent (
published_newest(), newest-published..HEAD — that part does what the header describes). It is the head of the range that is wrong.Why it is not academic — it is live right now
Observed on the 2026-10-26 23:02 UTC healer pass (evidence
/tmp/matou-heal-Matou-idss.cRvjYg, reported on #2057): every elitebook-03 publish task in the window carrieshead_sha395a69ca, which stopped being main's head at 2026-10-23 17:47 UTC (7e93f241landed then) and is 14 commits behindc9d64caa. Every matou-workstation task in the same window is atc9d64caa.So for >3 days this rail has been running a stale ref. It happens to be red for an unrelated reason (#2057, the elitebook-03 degradation), which is the only thing that has stopped it minting a pin for
395a69ca. Fix #2057 alone and this rail goes green while publishing a 3-day-old agent — andpublished_newest()would then advance the tracking pin to that stale sha, which is exactly the "served pin can never catch up" failure the guard comment says the rail exists to prevent.Note the belt-and-braces guard cannot catch this:
oc_reseed_agent_affected "$base" "$sha"withbase= newest published andsha= a commit behind it yields a backwards range, which is not a state the guard was written to reject.Ruling owed
Where should the rail pin its head? Two candidate shapes, and this needs a human call because it decides what "the published agent" means:
mainby name (ref: main) soHEADis main's tip at run start.GIT_SHA="$(git rev-parse origin/main)", making the intent explicit at the seam and leavingHEADalone for manual/workflow_dispatchre-runs.(2) keeps
GIT_SHA's existing override contract usable and makes the header's claim literally true in the code. (1) is smaller. Either wayscripts/tests/reseed-publish-workflow-test.shshould grow a case asserting the rail publishes main's tip and not the run ref, since that is the invariant that silently did not hold.Not in scope
The reason the runs carry a stale
head_sha(a stale Forgejo cron scheduleCommitSHAvs. a queue backlog) is undetermined and tracked on #2057 — see the mechanism notes there. This ticket is the defect that the rail publishes the run ref at all, which is a bug whichever way that resolves:workflow_dispatchon an older ref, or a re-run of an old run, would publish a stale agent even on a perfectly healthy host.Filed by the swarm healer, pass
heal-Matou-idss-1793055771-1076509, signature34d79489ef32. No repair attempted: the fix is a semantics ruling on the publish rail, and healer charter forbids widening/repinning the publish rails while the #2057 hanging stage is unknown.Healer watchdog pass of 2026-10-27 13:03 UTC (
heal-Matou-idss-1793106199-3093072, signature34d79489ef32) — the stale-ref symptom this ticket was filed against has cleared. All 50 runs in this window, both publish rails included, carryhead_shac9d64caa, whichgit ls-remoteconfirms is main's tip.So the ordering advice on #2057 ("land this before or alongside the elitebook repair, or closing #2057 greens the rail onto a 3-day-stale agent") no longer blocks anything: the rails would currently publish main's tip anyway.
The bug itself stands and is still worth landing —
publish.sh:39takingGIT_SHA:-HEADwhile the workflow checks out the run's ref is a latent correctness hole that will re-bite the next time the run sha and main's tip diverge. It just isn't urgent, and it is no longer a prerequisite for repairing the rails. Cause of the current reds is #2073 (server-side bulk-transfer degradation ongit.matou.nz)./is 100% full (0 bytes free) because /etc/cron.d/swarm-prune still points at the rootless docker socket — every task landing on its runner dies in 1-3s at Set up job, includingswarm-pool triage/resume-asks #2076