Skip to content

docs(coverage): verified Codex corrections to the matrix - #1097

Merged
hyperpolymath merged 3 commits into
mainfrom
claude/coverage-matrix-codex-fixes
Nov 14, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
claude/coverage-matrix-codex-fixes

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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/rules and the replay tests before changing anything.

  • Split SQ-GEN-03 (FIX, WF029) from SQ-NOI-01 (noise) into separate rows.
  • Credit Hypatia's existing detectors: repository_map_stale (SQ-GEN-01), kyaml_format (SQ-GEN-04), external_host_unreachable and api_server_error (SQ-RUN-03), scan_range_missing_commit (SQ-RUN-04), github_state_unreadable (SQ-RUN-06), token_invalid.
  • container_build_toolchain_drift is partial (generic compile_error classifies the real log but not the cause).
  • Scorecard Dangerous-Workflow goes back to its script-injection fix; only the untrusted-checkout subtype is owner-only (SQ-OWN-03).
  • SQ-RUN ACT overlaps use rerun instead of none/recipe.
  • token_invalid and scanner_pin_drift are owner-only with escalate status, not a recipe.
  • The merge-ref race is split: merged/closed PR is noise (SQ-NOI-02); an open PR is a referral.

Done at the owner's direction (relayed by the hub). Experiment owner, Extended Hypatia and Tsunami-breaker were told before opening.

Status: DRAFT

Test plan

  • matrix.json parses and has 150 rows
  • Spot-check the split rows (always-after-cancel, merge-ref-race-open-pr)

Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e4c6e686-71fc-4597-81c9-da67b4c9a669
Commits

Reviewing files that changed from the base of the PR and between fed21d8 and db98e2a.

Files selected for processing: 1

  • docs/reports/coverage-matrix/matrix.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 14, 2026 16:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T18:02:12.687377Z db98e2a New commits
🔒 Security Review ✅ Completed 2026-11-14T18:01:47.267212Z db98e2a New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +66 to 69
"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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines 141 to +146
"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)",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +851 to +857
"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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +2243 to +2248
"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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines 2109 to +2114
"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)",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines 2124 to +2129
"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)",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +2248 to +2252
"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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines 51 to 57
"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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@hyperpolymath
hyperpolymath merged commit 68bbca0 into main Nov 14, 2026
7 checks passed
@hyperpolymath
hyperpolymath deleted the claude/coverage-matrix-codex-fixes branch November 14, 2026 17:59
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants