mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 05:07:28 +01:00
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>