Repository navigation
chore(rules): regenerate hypatia_rules_praxis.deed after #1064 - #1075
Conversation
#1064 added the hypatia/ci_failure_triage/* rules and WF029 but did not regenerate the A5 rule registry, so "Validate Documentation" fails at "Rule registry (hypatia_rules_praxis.deed) matches the code and lints" on main and every open PR. Output of scripts/gen-rules-praxis.sh (234 rules, +43 rows, no other change). tests/rules-praxis-test.sh with the pinned standards deed_lint.js: 15 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZkGCWGEyedTtdEHAPT
|
This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins. |
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. |
|
Caution Review failedThe pull request is closed.
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. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f2bb71947
ℹ️ 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".
| :status active) | ||
| ;; defaulted: class excusable-at scope-form | ||
| (rule-def | ||
| :id "hypatia/workflow_audit/WF029" |
There was a problem hiding this comment.
Remove the phantom WF029 registry identity
This registers hypatia/workflow_audit/WF029, but WF029 explicitly declares rule_id: "hypatia/ci_failure_triage/always_after_cancel" in WorkflowAudit.check_always_after_cancel/1, and the CLI preserves that A5 identity when producing SARIF. Consequently, registry consumers can discover or configure an exemption for a second rule ID that Hypatia never emits, while treating one detector as two unrelated rules. Update the generator to honor the explicit A5 rule_id and regenerate without this row.
Useful? React with 👍 / 👎.
| :id "hypatia/ci_failure_triage/runner_cancelled" | ||
| :text "The run was cancelled (a newer push, concurrency, or a person)." | ||
| :class gate |
There was a problem hiding this comment.
Mark no-action triage outcomes as advisory
This declares runner_cancelled as a gate even though its source rule has action: :none, explicitly describes cancellation as not a failure, and makes Mix.Tasks.Hypatia.CiTriage exit successfully; review_rate_limited and review_quota_exhausted are likewise added as gates despite also having action: :none. Any consumer enforcing the praxis registry can therefore block on outcomes that Hypatia itself classifies as noise. Preserve that distinction by generating these no-action rules as advisory rather than defaulting them to gates.
Useful? React with 👍 / 👎.
… checks it (#113) ## What hyperpolymath/hypatia#1075 put the `ci_failure_triage` rules into `hypatia_rules_praxis.deed`, but `proven/registry/sq-map.tsv` still listed every one of them as `praxis: absent`. The cross-check that would have caught this runs only when `HYPATIA_PRAXIS` is set, and no workflow set it. - **24 rows** change from `absent` to `present`. - **2 rows named the wrong module.** Hypatia emits `actions_lock_stale` and `mirror_without_visibility_guard` (WF030) from `workflow_audit`, not `ci_failure_triage`. You can confirm this in `lib/rules/workflow_audit.ex` (`rule_id: "hypatia/workflow_audit/…"`), and the evidence column of Hypatia's coverage matrix agrees. Their `a5_id` is corrected, and both are now present. All 26 A5 rows are `present`. - **CI now runs the cross-check.** `code-hygiene-self-test` fetches the registry at a pinned Hypatia commit (`cd2a713`, which is Hypatia main today) and runs `tests/registry-sq-map.sh` with `HYPATIA_PRAXIS`. If the fetch fails, the step fails. Move the pin whenever the registry changes. ## Evidence (local) - `HYPATIA_PRAXIS=<hypatia main> bash tests/registry-sq-map.sh`: before this change, 24 FAIL lines; after it, 66 rows conform. - `tests/registry-sq-map.sh` and `tests/registry-sq-map-controls.sh` both pass. - The new step's command, run locally against raw.githubusercontent.com, reports 66 rows conform. The one existing warning is unchanged: kernel reason `Illegal` still has no agreed SQ rule. --- _Generated by [Claude Code](https://claude.ai/code/session_0136P7ZoBy5xGnGDLk7wQ8jC)_



#1064 added the
hypatia/ci_failure_triage/*rules and WF029, but it did not regenerate the A5 rule registry. Since then, Validate Documentation has failed at "Rule registry (hypatia_rules_praxis.deed) matches the code and lints", on main and on every open PR.Change
hypatia_rules_praxis.deed: this is the unedited output ofscripts/gen-rules-praxis.sh. It now has 234 rules: 42 newhypatia/ci_failure_triage/*rows andhypatia/workflow_audit/WF029. No existing row changes.Checks run
scripts/gen-rules-praxis.sh --checkfails on main (stale) and passes on this branch.tests/rules-praxis-test.sh, run with the standardsdeed_lint.jspinned inquality.yml(bfdb066): 15 passed, 0 failed. The run includes "deed_lint.js accepts hypatia_rules_praxis.deed".Generated by Claude Code