Repository navigation
docs(coverage): verified Codex corrections to the matrix - #1097
Conversation
…tors, use rerun for ACT overlaps Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
…in drift, split merge-ref race Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZmVXyECkfzpj3uaW6p
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0295f29b78
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "problem": "couldn't find remote ref refs/pull/N/merge on a MERGED or CLOSED PR: stale run, nothing to do (SQ-NOI-02)", | ||
| "fix": "re-run after mergeability computed; rebase/resolve conflict if mergeable=false", | ||
| "detect": "unassessed", | ||
| "fixst": "recipe", |
There was a problem hiding this comment.
Remove the rerun recipe from the closed-PR row
After narrowing this row to merged or closed PRs and routing it as noise, its fix still says to rerun or rebase and fixst remains recipe. That directly contradicts the new “stale run, nothing to do” classification and can cause matrix consumers to recommend an active repair for a condition that CiFailureTriage.refine/2 maps to action: :none; clear the fix and use the no-action status for this row.
Useful? React with 👍 / 👎.
| "problem": "5xx / 'Could not resolve host' / 'RPC failed' from a git host or registry", | ||
| "fix": "classify as infra, retry with backoff, never open a code fix", | ||
| "detect": "unassessed", | ||
| "fixst": "none", | ||
| "detect": "detected", | ||
| "fixst": "rerun", | ||
| "gap": "symbolic", | ||
| "evidence": "hypatia#1064 (draft) hypatia/ci_failure_triage/external_host_unreachable [DRAFT: module not in this tree; unverified]", | ||
| "evidence": "Hypatia external_host_unreachable (lib/rules/ci_failure_triage.ex; fixture srht-outage.txt, rerun)", |
There was a problem hiding this comment.
Mark external-host coverage as partial
This row includes a standalone RPC failed signature, but external_host_unreachable has no pattern for that text: it recognizes selected fatal: unable to access errors, dotted-host DNS failures, and non-loopback connection failures, while the cited fixture only proves the fatal ... 502 form. Marking the whole row detected therefore overstates coverage; either add and test the missing signature or retain partial.
Useful? React with 👍 / 👎.
| "fixst": "recipe", | ||
| "gap": "-", | ||
| "evidence": "workflow_hardening.ex; script-injection subtype: wh001_template_injection (env: binding fix); the untrusted-checkout subtype is the pull-request-target-checkout row (SQ-OWN-03, owner)", | ||
| "url": "https://github.com/ossf/scorecard/blob/main/docs/checks.md", | ||
| "seed": 0, | ||
| "sq_id": "SQ-OWN-03 (OWNER)", | ||
| "route": "owner-only" | ||
| "sq_id": null, | ||
| "route": "first-line" |
There was a problem hiding this comment.
Keep Dangerous-Workflow owner-routed until the row is narrowed
The row still represents the general Scorecard Dangerous-Workflow finding, which includes the untrusted-checkout case that the evidence itself says is owner-only, yet the row now unconditionally advertises a recipe and first-line routing. A consumer matching the Scorecard source/id cannot know to switch to the separate GitHub Actions row, so an unsafe pull_request_target checkout will be misrouted; either scope this row explicitly to script injection or retain owner routing for the combined finding.
Useful? React with 👍 / 👎.
| "problem": "couldn't find remote ref refs/pull/N/merge on an OPEN PR: a conflict or a deleted merge ref; refer, never rerun", | ||
| "fix": "refer to a person; resolve the conflict or restore the ref", | ||
| "detect": "unassessed", | ||
| "fixst": "none", | ||
| "gap": "person", | ||
| "evidence": "Hypatia merge_ref_race (lib/rules/ci_failure_triage.ex) action report, escalation owner; cicd-squabbler ADR 0004 SQ-NOI-02 covers the closed case only", |
There was a problem hiding this comment.
Credit the verified open-PR merge-ref detector
The new row is marked unassessed, but CiFailureTriage already matches the merge-ref message and ci_failure_triage_test.exs explicitly classifies the fixture with pr_state: :open, asserting action == :report and route == "referral". This is verified detection under the matrix's own status definition, so leaving it unassessed understates coverage and makes the split internally inconsistent.
Useful? React with 👍 / 👎.
| "problem": "transient host/API error: gh HTTP 5xx, git remote 5xx, or Could not resolve host for a dotted name", | ||
| "fix": "re-run the failed job once, only if that commit is still the head", | ||
| "detect": "unassessed", | ||
| "detect": "detected", | ||
| "fixst": "rerun", | ||
| "gap": "-", | ||
| "evidence": "cicd-squabbler ADR 0004 (ACT); Hypatia detection not assessed", | ||
| "evidence": "Hypatia external_host_unreachable (fixture srht-outage.txt) and api_server_error (fixture real-43358533401-graphql-502.txt), action rerun (lib/rules/ci_failure_triage.ex, test/rules/ci_failure_triage_test.exs); cicd-squabbler ADR 0004 (ACT)", |
There was a problem hiding this comment.
Downgrade SQ-RUN-03 until all 5xx responses match
The SQ-RUN-03 problem covers any gh HTTP 5xx, but the credited api_server_error rule only matches 502, 503, and 504 (50[234]). A gh failure with another 5xx status therefore does not receive this classification, so marking the entire estate rule detected overstates coverage; either expand the matcher and fixtures or record this row as partial.
Useful? React with 👍 / 👎.
| "problem": "gitleaks 'ambiguous argument sha^..sha' on a shallow checkout; trufflehog commits: 0", | ||
| "fix": "re-run once; if it fails twice refer with fetch-depth: 0", | ||
| "detect": "unassessed", | ||
| "detect": "detected", | ||
| "fixst": "rerun", | ||
| "gap": "-", | ||
| "evidence": "cicd-squabbler ADR 0004 (ACT); Hypatia detection not assessed", | ||
| "evidence": "Hypatia scan_range_missing_commit (fixture real-43158586027-gitleaks-range.txt), action rerun (lib/rules/ci_failure_triage.ex); cicd-squabbler ADR 0004 (ACT)", |
There was a problem hiding this comment.
Keep SQ-RUN-04 partial for the trufflehog variant
This row also covers the trufflehog commits: 0 symptom, but scan_range_missing_commit only matches an ambiguous range or bad-object line containing a scanner prefix; there is no matcher or fixture for a standalone zero-commit report. Such a failure remains unclassified, so changing the whole row to detected is inaccurate unless that variant is implemented and tested.
Useful? React with 👍 / 👎.
| "evidence": "Hypatia merge_ref_race (lib/rules/ci_failure_triage.ex) action report, escalation owner; cicd-squabbler ADR 0004 SQ-NOI-02 covers the closed case only", | ||
| "url": "https://docs.github.com/en/rest/pulls/pulls", | ||
| "seed": 0, | ||
| "sq_id": "SQ-NOI-02 (open PR is referred, not noise)", | ||
| "route": "referral" |
There was a problem hiding this comment.
Do not attach the closed-PR noise rule to open PRs
The new open-PR row still names SQ-NOI-02, even though its evidence says that rule covers only the closed case and this row is a referral. The matrix README states that a named squabbler classification wins, so consumers can override this route: referral back to noise and suppress a real open-PR conflict; leave sq_id null or use a distinct referral rule.
Useful? React with 👍 / 👎.
| "problem": "'API rate limit exceeded' / secondary rate limit 403 in setup steps (gh, actions/checkout, setup-*)", | ||
| "fix": "pass github.token via env; retry with backoff; reduce parallelism", | ||
| "detect": "unassessed", | ||
| "fixst": "none", | ||
| "fixst": "rerun", | ||
| "gap": "symbolic", | ||
| "evidence": "hypatia#1064 (draft) hypatia/ci_failure_triage/api_rate_limit [DRAFT: module not in this tree; unverified]", | ||
| "url": "https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api", |
There was a problem hiding this comment.
Split the rate-limit row before assigning rerun status
This row names both SQ-RUN-01 and SQ-PIN-03, but those rules prescribe different actions: SQ-RUN-01 is an ACT rerun, while the matrix's own SQ-PIN-03 row is a FIX recipe that pins bun-version. Setting the combined row's fixst to rerun therefore misclassifies setup-bun 403/rate-limit cases covered by SQ-PIN-03; split the cases or retain a status that represents both remedies.
Useful? React with 👍 / 👎.
|



Summary
Follow-up to #1063 and #1091. Docs only: edits
docs/reports/coverage-matrix/matrix.json. No rule, CI or code changes.Codex posted three rounds of review findings on #1091; the first was fixed before merge. This PR carries the other corrections. Each was checked against
lib/rulesand the replay tests before changing anything.SQ-GEN-03(FIX, WF029) fromSQ-NOI-01(noise) into separate rows.repository_map_stale(SQ-GEN-01),kyaml_format(SQ-GEN-04),external_host_unreachableandapi_server_error(SQ-RUN-03),scan_range_missing_commit(SQ-RUN-04),github_state_unreadable(SQ-RUN-06),token_invalid.container_build_toolchain_driftispartial(genericcompile_errorclassifies the real log but not the cause).reruninstead ofnone/recipe.token_invalidandscanner_pin_driftare owner-only withescalatestatus, not a recipe.Done at the owner's direction (relayed by the hub). Experiment owner, Extended Hypatia and Tsunami-breaker were told before opening.
Status: DRAFT
unassessed.main, if any, are not caused by this diff.Test plan
matrix.jsonparses and has 150 rowsalways-after-cancel,merge-ref-race-open-pr)Generated by Claude Code