swarm: record the pre-work drive-yield in the verdict/runlog; propagate the #1732 per-run concurrency shape to the dev-factory template #1733
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#1733
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?
Split from #1732 (the swarm head-of-line fix landed there:
swarm.ymlnow keys concurrency per run so runs no longer serialise). Two residual parts of #1732's proposal were not landed there because they need the vendored-factory / upstream door, and the reported bug was already fixed without them:1. The pre-work drive-yield is invisible in the verdict/runlog
run-swarm.shcallsschedule_drive_yieldandexit 0beforeverdict_begin/ the runlog append (run-swarm.sh:111-117), so when a host stands down for a rehearsal drive it leaves no verdict line at all — exactly what made #1732 hard to diagnose on elitebook-03 (schedule_drive_yieldfound/tmp/matou-drive-wanted, exited 0, no trace). The post-work yield already recordsreason=yielded-to-drive(run-swarm.sh:364); the pre-work yield should recordreason=yielded-to-drive(ordrive-reservation) in the runlog/verdict too.Why not in #1732:
run-swarm.sh/schedule-lib.share factory-vendored (in.sandcastle/FACTORY_MANIFEST); a hand-edit here reds the drift gate. Land upstream inMatou/dev-factory, bumpFACTORY_REF, re-vendor (the [factory-vendored fix path]).2. Propagate the swarm.yml per-run concurrency shape upstream
Matou/dev-factory'sswarm.ymltemplate still carries the serialising per-repo group (swarm-${{ github.repository }}). idss's local copy is fixed (workflows are per-repo deltas, not vendored), but other consumers (matou-app, future onboards) still have the head-of-line block. Propagate the per-run key surgically to the dev-factory template (never a full onboard.sh overwrite — consumers carry per-repo deltas).Both are two-way doors for a session that holds the dev-factory push + re-vendor door; neither needs Ben. Guard the observability change with a run-swarm test that asserts a pre-work yield leaves a runlog line.
Close report — both #1732 residuals landed (ADR 0174, two-way doors)
Ruled by agent under ADR 0174 — veto anytime. Both parts are revertible harness/config, proven offline red-before-green.
1. Pre-work drive-yield is now recorded in the runlog
run-swarm.sh's pre-work drive-reservation yield (#663/#664/#30) exits 0 above the EXIT trap / verdict machinery — a clean yield, never a recorded RUN — so a host standing down for a rehearsal drive left no host-side trace at all (exactly the elitebook-03 blind spot that made #1732 hard to diagnose). It now appends one always-on runlog line (#435):reason=yielded-to-drive(matching the post-work yield #111),ready=[],exit=0,host=,run=— without writing a verdict, so the healer's verdict path and the drive-yield seam's "no verdict file" invariant are untouched.Guard:
tests/run-swarm-drive-yield-test.shasserts a fresh-reservation yield leaves exactly onereason=yielded-to-driveline (a second consecutive yield appends);tests/run-swarm-stages-test.sh's drive gate asserts the yield records its reason yet still keys no verdict / no tracker call. Red-before-green confirmed against the pre-fix file.2. Per-run concurrency shape propagated to the dev-factory template
dev-factory's
onboarding/templates/workflows/swarm.yml.tmpl(and dev-factory's own rendered copy) still carried the serialising per-repo groupswarm-${{ github.repository }}(#26). Propagated the per-RUN keyswarm-${{ github.repository }}-${{ github.run_number }}surgically to both, so future onboards get the de-serialised shape. triage stays per-repo (#1732 is swarm-only). Guards updated to pin the per-run shape:self-workflows-drift-test.sh,onboard-lib-test.sh(red-before-green).Landed
main:c759385(run-swarm + tests),2a3efa3(swarm.yml template + dev-factory copy + guard tests),d89e5b2(STATUS).0c0cae3, off834ec68— the #1683 cheap-backport pattern) and bumpedFACTORY_REF;onboard.sh vendorupdated exactlyrun-swarm.sh+ its two tests (180 unchanged, drift gate OK), FACTORY_MANIFEST unchanged. idss commit89831457onmain.maincatch-up: that watched harness upgrade (which would also pull the ADR 0265 landing-pr arc + #157) is #1684's job — deliberately left alone.Follow-up
swarm.ymlstill carries the per-repo group (per-repo delta, never an onboard overwrite) — needs the same one-line edit in its repo.Proof
run-swarm-drive-yield-test.sh,run-swarm-stages-test.sh,self-workflows-drift-test.sh(8/8),onboard-lib-test.sh(235/235) all green; fullrun-swarm-*-test.shfamily green; swarm.yml/tmpl valid YAML.run-swarm-drive-yield-test.sh(5/5),run-swarm-stages-test.sh(10/10) green;check-harness-driftOK @0c0cae3.# Donestaleness re-check — duplicate work, and the orphan commit poisons localmaininto a SyncError #1717