Repository navigation
test: split apply policy tests - #363
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 24, 2026, 3:29 PM ET / 19:29 UTC. Summary Reproducibility: not applicable. This PR reorganizes existing test coverage and shared helpers rather than reporting a reproducible product bug. Review metrics: 3 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:
Next step before merge
Security Review detailsBest possible solution: Land the split after normal maintainer review and green CI, keeping future apply-policy coverage in the narrower files and shared helpers. Do we have a high-confidence way to reproduce the issue? Not applicable. This PR reorganizes existing test coverage and shared helpers rather than reporting a reproducible product bug. Is this the best way to solve the issue? Yes. Moving existing apply-policy tests into narrower files and centralizing shared helpers is the maintainable shape the repository policy calls for, and I did not find a duplicate path or concrete patch defect. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 929e605da559. Label changesLabel 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
|
Part of a series on not having 10k+ line test files
Summary
test/work-plan-artifacts.test.ts.test/apply-label-sync.test.ts.test/apply-close-retry-policy.test.ts.test/helpers.tsfor this and future splits.LOC
test/work-plan-artifacts.test.ts: 172test/apply-label-sync.test.ts: 936test/apply-close-retry-policy.test.ts: 384test/helpers.ts: 732test/clawsweeper.test.ts: 11966Validation
node --test test/work-plan-artifacts.test.ts test/apply-label-sync.test.ts test/apply-close-retry-policy.test.ts test/clawsweeper.test.tspnpm run check