ci: heavy swarm jobs run with no host-capacity slot — adopt matou-app's host-slot-wait.sh (matou-app#285 / #268 rollout) #1230
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#1230
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?
Rollout of Matou/matou-app#268 to this repo, from the shared-runner starvation incident in Matou/matou-app#285.
Problem
This repo's heavy ci jobs run
runs-on: swarmwith no host-capacity slot:seam(ci.yml:27,pnpm -r run test— forks ~15 vitest workers),publish(ci.yml:80) andpublish-broker(ci.yml:115). Theswarmlabel is a shared 8-core pool (matou-workstation + elitebook-03). On 2026-09-02 idssseamforked ~15 vitest workers, host load reached 25/8 with swap 100 % exhausted, and a matou-app swarm worker died withWorktreeTimeoutError(agit worktree addtook >30 s). matou-app's own heavy jobs already ride a pooled slot (bash .sandcastle/host-slot-wait.sh 1800 <cmd>), so its discipline cannot bound host load while sibling jobs don't.Ask
.sandcastle/host-slot-wait.shfrom Matou/matou-app (main) into this repo's.sandcastle/— it is repo-local there (NOT in FACTORY_MANIFEST) and depends only on the vendoredhost-capacity-lib.sh, which this repo already has. Keep the file byte-identical to matou-app's so a later promotion into the factory core is a no-op..forgejo/workflows/ci.yml, wrap the heavy command of each swarm job above asbash .sandcastle/host-slot-wait.sh 1800 <existing command>(one pooled slot, bounded 1800 s camp, then give up with a clear message — see the matou-app ci.ymlchecksjob for the exact shape and comments). Raisetimeout-minutesto cover the camp (matou-app uses 105 = 2×30 min camp + checks).Acceptance
host-slot-wait.sh; with both pool slots busy the job waits (up to 1800 s) rather than co-running.bash .sandcastle/check-harness-drift.shstays green (no vendored file edited).Handed off to
ready-for-session— this ticket is entirely a protected-path change.Per CLAUDE.md Rule 9,
.sandcastle/and.forgejo/are protected: they are the machinery that judges a Sandcastle run, and the before/after protected-paths guard (#445) rolls back any change an agent makes to them and fails the run loud. Every deliverable in this issue lands inside one of those trees, with no accompanying non-protected work:.sandcastle/host-slot-wait.sh— creates a new file under.sandcastle/(protected).seam/publish/publish-brokerin.forgejo/workflows/ci.yml— edits.forgejo/(protected).timeout-minutesin the same.forgejo/workflows/ci.yml— edits.forgejo/(protected).There is no slice an agent can build outside the protected trees, so a Sandcastle iteration cannot complete this without being rolled back. Under ADR 0174 a protected
.sandcastle//.forgejo/machinery change needs an interactive session's standing (#445), not an autonomous swarm worker.What a session must do
Run the three edits above as an interactive session (byte-identical
host-slot-wait.shcopy fromMatou/matou-app@main, wrap the three swarm jobs viahost-slot-wait.sh 1800 <cmd>, bumptimeout-minutesper the matou-appchecksshape), then confirmbash .sandcastle/check-harness-drift.shstays green and ci passes on the PR.No code changed by this run — the guard forbids it. Swapping
ready-for-agent→ready-for-sessionand releasing the swarm claim.Close-report — #1230 landed and proven
Ruled by agent under ADR 0174 — veto anytime. Closing a done+proven ticket is a two-way door (reopenable; the fix is revertible config and is proven by ci on main).
The deliverables landed on
mainin570306bc(ci: #1230 — seam/publish/publish-broker now ride a pooled host-capacity slot (matou-app#268/#285 rollout)), authored by a prior session-runner that died before posting this report. This session verified the landed work against every acceptance criterion; nothing further was needed.What landed (
.forgejo/workflows/ci.yml+.sandcastle/host-slot-wait.sh).sandcastle/host-slot-wait.shcopied fromMatou/matou-app@main— new repo-local file (not in FACTORY_MANIFEST), depends only on the already-vendoredhost-capacity-lib.sh. Byte-identical to matou-app'smaincopy (3116 bytes,diffempty), so a later promotion into the factory core is a no-op.bash .sandcastle/host-slot-wait.sh 1800 <cmd>—seam(ci.yml:57),publish(ci.yml:127),publish-broker(ci.yml:207, wrapping only the go build — the no-op paths exit before ever camping). One pooled slot, bounded 1800 s camp, then gives up loudly (exit 75) rather than co-running.timeout-minutesraised to cover the 30-min camp:seam30→60,publish→50,publish-broker→50.Proof (acceptance criteria)
host-slot-wait.sh— verified in ci.yml at the three line numbers above; with both pool slots busy the job camps (≤1800 s) instead of co-running.bash .sandcastle/check-harness-drift.shstays green — exit 0 this session (OK — every vendored factory file matches …@1ff3485f; the FACTORY_REF "3 commits behind" line is an explicit NOTE, not a failure). No vendored file was edited.570306bccombined status onmain= success (ci / seam,ci / publish,ci / publish-broker,ci / deploy-brokerall success). CurrentmainHEADd4c6a5feis also green, so the wrapper has since ridden multiple real main pushes without regression.No one-way door touched (no secrets, no posture change, no data destruction). Closing.
vi.waitFor(1 s) in the live seams, and the 5 s default in the 98 non-liveServer dashboard tests (ci run 19709) #1307