Repository navigation
feat(gate): diagnose WHY a required check is Missing - #34
Conversation
CheckRun::Missing is the gate's most common stuck state and its least actionable:
'nothing reported' says nothing about what to change. Adds MissingCause with the
five causes measured across this estate on 2026-07-29, each with a different remedy:
NoSuchJob no job emits that exact name -- invented, or case
differs (hypatia-scan; codeql vs the real CodeQL)
DeadActionPin the producing action repo is DELETED. An unresolvable
uses: ref yields NO check run rather than a red one,
so the board reads green while the job never ran.
69 repos pinned a2ml-/k9-validate-action, both 404.
ActionsPolicyRefusal allowed_actions=selected + empty patterns_allowed
refuses every non-GitHub uses: at parse time ->
startup_failure, zero jobs. A SETTINGS fault: no
workflow edit can fix it.
EmptyJobsMap jobs: present but every block commented out -> invalid,
zero jobs. Measured in 20 repos' e2e.yml.
NotTriggeredOnPullRequest the job runs, but never on pull_request. Dependabot was
required on 25 repos and emitted 10 check-runs on main
(GitHub's managed dependabot-updates runner) and 0 on
any PR head -- sampling main scores it HEALTHY while
every PR is unmergeable.
Non-breaking: RequiredCheck gains an optional missing_cause with #[serde(default)],
so previously-serialised gates still deserialise and RequiredCheck::new is unchanged.
The load-bearing invariant is explicitly re-tested: a diagnosis is not a bypass.
A test asserts that for EVERY cause, a diagnosed-missing check still cannot reach
Green, and that diagnosing a gate never changes its state.
Verified: cargo check clean; 21 tests pass (18 existing + 3 new).
Co-Authored-By: Claude Opus 5 <[email protected]>
|
|
Note Automatic reviews are paused because your trial's included automatic processing has been used for this period. Upgrade now, or comment "Gitar review" to run a review anytime. Code Review ✅ Approved 1 resolved / 1 findingsAdds diagnostic capabilities to identify why required checks are missing across five specific failure causes, but detached doc comments and inline attributes on ✅ 1 resolved✅ Quality: Doc comment and #[inline] detached from is_satisfied
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |



CheckRun::Missingis the gate's most common stuck state and its least actionable — "nothing reported" says nothing about what to change.Adds
MissingCausewith the five causes measured across the estate on 2026-07-29, each with a different remedy:NoSuchJobhypatia-scan(invented);codeqlvs the realCodeQLDeadActionPina2ml-/k9-validate-action, both 404. An unresolvableuses:yields no check run, so the board reads green while the job never ranActionsPolicyRefusalallowed_actions: selected+ emptypatterns_allowed→startup_failure, zero jobs. A settings fault — no workflow edit fixes itEmptyJobsMape2e.yml—jobs:present, every block commented outNotTriggeredOnPullRequestmain, 0 on any PR head. Sampling main scores it healthy while every PR is unmergeableNon-breaking — optional field with
#[serde(default)];RequiredCheck::newunchanged.The invariant is re-tested, not assumed: a test asserts that for every cause, a diagnosed-missing check still cannot reach
Green. A diagnosis is not a bypass.Verified:
cargo checkclean; 21 tests pass (18 existing + 3 new).🤖 Generated with Claude Code