mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-05 18:07:52 +01:00
A push made with GITHUB_TOKEN triggers no workflows. So when readings,
origin-proof or shared-inventory commit to main, main gets NO CI run for
that commit, and the auto-merge sweep then refuses every open PR with:
main is at <tip> but the newest CI run is for <older> — waiting for CI
until somebody dispatches ci.yml by hand. Nothing tells them to. The queue
simply stops, and each workflow looks perfectly healthy in isolation.
Hit FOUR times in two days — after the readings commit, then after the
origin proof commit — each time silently holding every open PR in the repo
while the cause looked like a different bug every time.
The sweep already re-arms after its OWN merges for precisely this reason,
and says so in a comment. The three workflows that commit to main never
got the same line.
All three now dispatch ci.yml after a successful push, with the
`actions: write` that dispatch needs.
- GITHUB_TOKEN deliberately, not FLEET_PAT. This only needs a CI run to
EXIST for the tip; the sweep's schedule picks it up. A PAT dispatch
would additionally emit workflow_run and wake the sweep immediately —
the cascade documented in loki CLAUDE.md, which is not wanted here.
- Never fatal. The commit is already pushed; failing the step after that
would report a proof as unwritten when it is written.
AND THE RATCHET, because this is well past the second time.
ci.yml now fails if any workflow containing `git push` lacks either the
re-arm or `actions: write`, and refuses to pass if it finds no pushing
workflows at all (a check that silently stops checking is the shape this
repo exists to delete). Inline, like the other one-invariant gates here.
Proven by mutation: deleting readings' re-arm turns it red and names the
file; restoring returns green.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>