Repository navigation
fix(policy): stagger no-panic allowlist expiry into quarterly cohorts (#2637) - #2839
Conversation
…#2637) All 71 entries previously expired on the same day (2026-12-31), meaning every entry would fail simultaneously on 2027-01-01 with no individual review signal. Staggered into quarterly cohorts so the burn-down signal is meaningful: - Q1 2027 (2027-03-31): entries 0001-0018 (15 entries) - Q2 2027 (2027-06-30): entries 0019-0036 (18 entries) - Q3 2027 (2027-09-30): entries 0037-0054 (22 entries) - Q4 2027 (2027-12-31): entries 0055-0071 (16 entries) No entry values, selectors, paths, or counts changed — only expiry dates.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary by CodeRabbit
WalkthroughThe no-panic allowlist now uses staggered quarterly expiry dates in 2027. Entries are grouped into four expiry cohorts instead of sharing one 2026-12-31 expiry date. ChangesNo-panic allowlist expiry updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the expiration dates for various test-only panic allowlist entries in policy/no-panic-allowlist.toml to various dates in 2027. The reviewer identified an issue with duplicate IDs (such as panic-0051 through panic-0054) being defined in the allowlist file, which should be resolved to ensure unique references.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
policy/no-panic-allowlist.toml (1)
970-1255: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winReconcile the Q4 cohort endpoint.
policy/no-panic-allowlist.tomlcoverspanic-0055throughpanic-0070, and each hasexpires = "2027-12-31".panic-0071is not present in the repository. If the objective requirespanic-0055throughpanic-0071, add the missing canonical entry or update the objective and cohort counts topanic-0055throughpanic-0070.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@policy/no-panic-allowlist.toml` around lines 970 - 1255, Reconcile the Q4 cohort endpoint in policy/no-panic-allowlist.toml: either add the missing canonical panic-0071 allowlist entry matching the existing cohort structure and expiry, or update the associated objective and cohort counts to end at panic-0070. Keep the panic-0055 through panic-0070 entries unchanged.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@policy/no-panic-allowlist.toml`:
- Around line 970-1255: Reconcile the Q4 cohort endpoint in
policy/no-panic-allowlist.toml: either add the missing canonical panic-0071
allowlist entry matching the existing cohort structure and expiry, or update the
associated objective and cohort counts to end at panic-0070. Keep the panic-0055
through panic-0070 entries unchanged.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: afa0d0cc-f147-4004-90f6-88658643623a
📒 Files selected for processing (1)
policy/no-panic-allowlist.toml
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Reconcile Q4 cohort: PR body and table claim panic-0055..panic-0071 (16 entries) but seeded review shows file ends at panic-0070 with no panic-0071. Either add panic-0071 or correct cohort count to 15 entries (panic-0055..0070) so that the stagger table matches the file.
Confirmed findings
- Right-side diff is exclusively
expires = "..."lines; no selector, path, family, classification, or owner fields changed. Behavior change is confined to policy expiry semantics. - Duplicate IDs panic-0051 through panic-0054 carry two definitions each; CodeRabbit flagged this in seeded thread; diff does not resolve them.
- Seeded gemini-code-assist review reports duplicate IDs panic-0051..panic-0054 defined at two locations each (lines 622/888, 641/907, 660/926, 679/945); not addressed in this diff.
- All 71 entries still expire in 2027; the earliest failure signal is 2027-03-31, so the original 'simultaneous blackout on 2027-01-01' risk is resolved but not eliminated — only pushed out. The lint around expiring entries must treat these new dates as the next gate, not as a long-term deprecation path.
- No cargo/cargo-allow/ripr/unsafe-review receipts (sensors skipped per trigger), so route-truth of cohort assignment vs. panic-NNN -> file-line mapping is asserted by tokmd metadata only; artifact-verifier failed which blocks trust in the policy packet itself.
- Stagger pattern is mechanical and quarterly-aligned; an xtask regeneration script should be considered so future expiry updates don't require 71 hand edits (duplication risk across cohorts).
Verification questions
- Confirm cohort counts in PR body (15/18/22/16 = 71) match the four expiry dates observed in the diff: 17 occurrences of 2027-03-31+2027-06-30+2027-12-31 with 22 of 2027-09-30 — arithmetic is consistent with stated staggering.
- Confirm diff mutates only expiry strings across existing allowlist entries; no test, harness, or fixture was added in this PR.
- Confirm panic-0071 referenced in PR body Q4 cohort table but not present in repo; CodeRabbit flagged 970-1255 only covers panic-0055..0070.
- Confirm pR body claims panic-0055–panic-0071 in Q4 (16 entries), but seeded coderabbitai review states file only covers panic-0055–panic-0070 and panic-0071 is not present; PR cohort count vs file contents inconsistent.
Verification questions
Refuted
Parked follow-ups
Evidence gaps
[review body truncated; see review artifacts]
What
Fixes #2637 — all 71 no-panic allowlist entries previously expired on the same day (2026-12-31), meaning every entry would fail simultaneously on 2027-01-01 with no individual review signal.
Fix
Staggered into quarterly cohorts so the burn-down is meaningful:
No entry values, selectors, paths, or counts changed — only expiry dates.
Verified
cargo xtask check-no-panic-family→ pass