Spike: move the heavy swarm/triage legs from Forgejo Actions to the host cron puller #204

Open
opened 2026-10-15 02:59:16 +00:00 by ben · 0 comments
Owner

Filed from the 2026-10-14 infrastructure review (Claude Code session on Ben's workstation; four parallel read-only review passes over the root harness). Line anchors are against main at 3e50274.

Symptom

At least 11 of the 64 GOTCHAS (2, 16, 32, 34, 37, 40, 41, 50, 59, 62, 64) are Forgejo Actions semantics: concurrency groups, label-trigger fan-out, scheduler silence, unreadable pool logs, retired-host waiting legs. The cron side already does the real arbitration end to end: session-runner.sh claims, slots, runs and records from cron; schedule-backstop.sh dispatches stalest-first (:44-69); scheduler-canary.sh must live outside Actions by design (:10-13). The swarm leg is swarm.yml:85-207 inline + run-swarm.sh.

Proposed change (spike → design → ADR)

A swarm-tick.sh (= the inline step + run-swarm.sh) rendered per repo into the ADR 0004 managed cron block. Removes: concurrency-group semantics, label fan-out, the per-host matrix render, the retired-host waiting leg, backstop in-flight guessing, host-agnostic Actions logs (GOTCHAS 1). Costs: the Actions UI as run list; RUN_URL/SWARM_RUN_ID in claims and runlog (mint from swarm.db instead; runlog-lib.sh:98-101, claim-lib run= field); org-secret delivery (the host env / #199 supplies it); issues: closed latency (1-2 min cron, or a webhook that touches a want-file). Keep Actions for ci/pr-e2e; keep swarm.yml as a thin workflow_dispatch that pokes the host tick.

Deliverable: a design doc under docs/superpowers/specs/ + draft ADR 0007 with the migration order and rollback.

Why human

One-way-door-adjacent operational ruling (changes where every run is visible and how secrets reach hosts). Proposed default: approve the spike; the cutover is its own ticket.

depends_on

#199

_Filed from the 2026-10-14 infrastructure review (Claude Code session on Ben's workstation; four parallel read-only review passes over the root harness). Line anchors are against `main` at 3e50274._ ## Symptom At least 11 of the 64 GOTCHAS (2, 16, 32, 34, 37, 40, 41, 50, 59, 62, 64) are Forgejo Actions semantics: concurrency groups, label-trigger fan-out, scheduler silence, unreadable pool logs, retired-host `waiting` legs. The cron side already does the real arbitration end to end: `session-runner.sh` claims, slots, runs and records from cron; `schedule-backstop.sh` dispatches stalest-first (`:44-69`); `scheduler-canary.sh` must live outside Actions by design (`:10-13`). The swarm leg is `swarm.yml:85-207` inline + `run-swarm.sh`. ## Proposed change (spike → design → ADR) A `swarm-tick.sh` (= the inline step + `run-swarm.sh`) rendered per repo into the ADR 0004 managed cron block. Removes: concurrency-group semantics, label fan-out, the per-host matrix render, the retired-host waiting leg, backstop in-flight guessing, host-agnostic Actions logs (GOTCHAS 1). Costs: the Actions UI as run list; `RUN_URL`/`SWARM_RUN_ID` in claims and runlog (mint from swarm.db instead; `runlog-lib.sh:98-101`, `claim-lib` `run=` field); org-secret delivery (the host env / #199 supplies it); `issues: closed` latency (1-2 min cron, or a webhook that touches a want-file). Keep Actions for `ci`/`pr-e2e`; keep `swarm.yml` as a thin `workflow_dispatch` that pokes the host tick. Deliverable: a design doc under `docs/superpowers/specs/` + draft ADR 0007 with the migration order and rollback. ## Why human One-way-door-adjacent operational ruling (changes where every run is visible and how secrets reach hosts). Proposed default: approve the spike; the cutover is its own ticket. ## depends_on #199
Sign in to join this conversation.
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.

Reference
Matou/dev-factory#204
No description provided.