Fix PR status routing for security owner review#264
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 6, 2026, 1:01 AM ET / 05:01 UTC. Summary Reproducibility: yes. from source inspection: current main's hasUnresolvedContributorWork treats every securityReview.status === needs_attention as unresolved contributor work, and prStatusLabelKind maps that to waiting_on_author before ready_for_maintainer_look. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused routing fix after the contributor adds redacted live or dry-run output showing a durable report with needs_attention plus recommended accept_risk now receives ready for maintainer look instead of waiting on author. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main's hasUnresolvedContributorWork treats every securityReview.status === needs_attention as unresolved contributor work, and prStatusLabelKind maps that to waiting_on_author before ready_for_maintainer_look. Is this the best way to solve the issue? Yes, likely: using the existing recommended merge-risk option category is a narrow maintainable fix that keeps author-remediable security findings waiting on the author while routing explicit owner acceptance to maintainer look. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 413ef258a1ef. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
Fixes #263.
This changes PR status label routing so
securityReview.status: needs_attentionis not always treated as contributor-facing work.When the durable review has:
accept_risk,ClawSweeper now routes the PR to the existing
status: 👀 ready for maintainer looklabel instead ofstatus: ⏳ waiting on author.Security reviews that recommend
fix_before_merge, or security reviews with no structured recommendedaccept_riskoption, still route as unresolved contributor work. That preserves the safer default for real author-remediable security defects.Validation
pnpm run build:allnode --test --test-name-pattern "ClawSweeper PR status" test/clawsweeper.test.tspnpm exec oxfmt --check src/clawsweeper.ts test/clawsweeper.test.tspnpm run check:active-surfacepnpm run check:limitspnpm run lint:srcpnpm run lint:scriptsI also attempted the full
node --test test/clawsweeper.test.tslocally, but this Windows desktop environment hits unrelated existing subprocess assumptions around Codex proof checks and/usr/bin/git. The focused status-label tests pass afterbuild:all.