Repository navigation
fix(workflow_hardening): WH007 defers to WF021's cancel-safety gate - #1069
Conversation
Owner ruling 2026-11-13: WF021 wins over WH007. WH007 advised cancel-in-progress on every pull_request workflow without concurrency, including publishers and mutators where cancelling is unsafe. It now fires only where WF021's gate holds: a read-only permissions block and no publish/deploy/mirror/push step. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136P7ZkGCWGEyedTtdEHAPT
|
Build Test Images fails here, but it fails on The rollups Integration Status and Security Status, plus Rust Dependency Audit (RUSTSEC-2026-0538, quinn-udp), are red on Generated by Claude Code |
This comment was marked as low quality.
This comment was marked as low quality.
|
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. |
|



What
Owner ruling (2026-11-13, via the hub): WF021 wins over WH007.
WH007 advised
concurrency: … cancel-in-progress: trueon everypull_requestworkflow without a concurrency block, including publishers and mutators (releases, Pages deploys, mirrors,git push) where cancelling an in-flight run is unsafe. WF021 already carries the safety gate: a read-onlypermissions:block and no publish/deploy/mirror/push step.wh007_missing_concurrency/1now fires only where WF021 would.Evidence
mathesis "Proof Policy Gate" (
cancel-in-progress: true) cancelled main runs 43149283881 and 43151544804 on later merges, which left no completed run for PROOF-POLICY receipts. That's the class of harm the gate prevents.Tests
New
test/rules/wh007_defers_wf021_test.exshas 4 cases: a read-only PR check fires; a pushing workflow, a Pages deploy, and a workflow with no permissions block are each skipped. Locally, with workflow_hardening and workflow_audit, 180 tests pass with 0 failures.mix format --check-formattedis clean.Not changed
WH004 already defers to
actions.lockon main (ActionsLock.pinned?/3), and #1064 maps a stale lock ref to "regenerate the lock".Generated by Claude Code