ci: #135 — seam rides a host-capacity slot (adopt host-slot-wait.sh) #137

Merged
matou-build-agent merged 1 commit from agent/issue-135 into main 2026-09-05 05:29:32 +00:00

Rollout of Matou/matou-app#268 to this repo, from the shared-runner starvation incident matou-app#285.

What landed

  • .sandcastle/host-slot-wait.sh copied byte-identical from matou-app main (repo-local there, NOT in FACTORY_MANIFEST; depends only on the already-vendored host-capacity-lib.sh) so a later promotion into the factory core is a no-op.
  • .forgejo/workflows/ci.yml: the seam job now wraps its whole heavy block (pnpm install/typecheck/test) as bash .sandcastle/host-slot-wait.sh 1800 bash -c '…' — ONE pooled slot, bounded 1800 s camp (event-driven job: a yield would lose the run), then give up loudly (exit 75). timeout-minutes raised 30 → 60 to cover the camp.
  • swarm.yml/triage.yml/resume-asks.yml untouched — they take slots inside the vendored scripts already.

Proof

  • host-slot-wait.sh sha256 matches matou-app main; mode 100755 matches.
  • bash .sandcastle/check-harness-drift.sh green (no vendored file edited).
  • Wrapper exit 75 with both real pool slots busy (waits, doesn't co-run); exit 0 acquire+exec with a free slot.

Advances #135.

Rollout of Matou/matou-app#268 to this repo, from the shared-runner starvation incident matou-app#285. ## What landed - `.sandcastle/host-slot-wait.sh` copied **byte-identical** from matou-app `main` (repo-local there, NOT in FACTORY_MANIFEST; depends only on the already-vendored `host-capacity-lib.sh`) so a later promotion into the factory core is a no-op. - `.forgejo/workflows/ci.yml`: the `seam` job now wraps its whole heavy block (`pnpm install/typecheck/test`) as `bash .sandcastle/host-slot-wait.sh 1800 bash -c '…'` — ONE pooled slot, bounded 1800 s camp (event-driven job: a yield would lose the run), then give up loudly (exit 75). `timeout-minutes` raised 30 → 60 to cover the camp. - swarm.yml/triage.yml/resume-asks.yml untouched — they take slots inside the vendored scripts already. ## Proof - `host-slot-wait.sh` sha256 matches matou-app `main`; mode `100755` matches. - `bash .sandcastle/check-harness-drift.sh` green (no vendored file edited). - Wrapper exit 75 with both real pool slots busy (waits, doesn't co-run); exit 0 acquire+exec with a free slot. Advances #135.
ci: #135 — seam rides a host-capacity slot (adopt host-slot-wait.sh)
All checks were successful
ci / seam (pull_request) Successful in 3m2s
88fabbfc3c
Rollout of Matou/matou-app#268 to this repo (starvation incident #285). The
`swarm` label is a shared 8-core pool; the seam ran with no host-capacity slot,
so it forked ~15 vitest workers and co-ran with sibling swarm jobs until host
load hit 25/8 and swap exhausted, killing a matou-app worker (WorktreeTimeoutError).

- Copy .sandcastle/host-slot-wait.sh byte-identical from matou-app main (repo-local
  there, NOT in FACTORY_MANIFEST; depends only on the already-vendored
  host-capacity-lib.sh) so a later promotion into the factory core is a no-op.
- ci.yml: wrap the whole seam block (pnpm install/typecheck/test) as
  `bash .sandcastle/host-slot-wait.sh 1800 bash -c '…'` — one pooled slot,
  bounded 1800 s camp (event-driven job: a yield would lose the run), then give
  up loudly (exit 75). Raise timeout-minutes 30 → 60 to cover the camp.
- swarm.yml/triage.yml/resume-asks.yml untouched — they take slots inside the
  vendored scripts already.

Proven locally: exit 75 with both real pool slots busy (waits, doesn't co-run);
exit 0 acquire+exec with a free slot; check-harness-drift.sh green.

Advances #135.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!137
No description provided.