Files
fleet/scripts/ci
CatoandClaude Opus 5.5 809e2bae03 fix(sweep): reconcile against the LIVE commit, not a run label (opt-in) (#145)
GitHub labels a workflow_run-triggered run with the default branch's
CURRENT tip. On loki 2026-09-25, Deploy run 36135832127 shipped f2f6206
(the box served it) but its headSha read 4622869 (#913, merged
meanwhile). The reconciler read that label as the truth, believed
4622869 was live and never dispatched: merged-but-not-live, invisible to
the one mechanism meant to catch it.

New optional LIVE_COMMIT_URL (reusable input live_commit_url): a URL
answering JSON with a 40-char `commit`. When set, the reconciler compares
the base tip against that. Missing, malformed or unreachable is UNKNOWN,
treated as not deployed: dispatch, still behind the in-flight and
green-base guards. Unset keeps the run-label behaviour exactly. The
source used is logged (live vs last run label).

Tests: 7 new sweep cases (live == tip, the incident, unreachable, short
sha, unknown + in-flight, unknown + red base, unset). Mutation: making the
live branch read the label's value fails 4 of them, the incident included.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 05:54:07 -07:00
..