Skip to content

chore: split PR policy tests out of clawsweeper suite - #326

Merged
RomneyDa merged 1 commit into
mainfrom
dallin/split-pr-policy-tests
Jun 19, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
dallin/split-pr-policy-tests

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • move PR policy coverage out of test/clawsweeper.test.ts into three focused files:
    • test/pr-surface-policy.test.ts
    • test/pr-review-labels.test.ts
    • test/pr-proof-automation.test.ts
  • share report-rendering helpers through test/helpers.ts where applicable
  • keep each extracted test file under 1,000 lines

Tests

  • node --test test/pr-surface-policy.test.ts test/pr-review-labels.test.ts test/pr-proof-automation.test.ts
  • pnpm run check

Stack note: this was initially built on #324, then rebased onto main after that PR merged.

@clawsweeper

clawsweeper Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 18, 2026, 8:02 PM ET / 00:02 UTC.

Summary
The PR moves PR policy coverage from test/clawsweeper.test.ts into three focused test files and promotes shared report helper builders into test/helpers.ts.

Reproducibility: not applicable. this is a test-suite organization PR, not a bug report. The relevant source check is that test/*.test.ts files remain in the normal unit-test discovery path.

Review metrics: 3 noteworthy metrics.

  • Diff surface: 5 test files affected. The change is confined to test organization and shared test helpers, with no runtime or workflow code changed.
  • Moved tests: 46 added, 46 removed. The matching count supports that coverage was moved rather than dropped.
  • Extracted suite sizes: 748, 625, and 700 lines. The new focused suites satisfy the stated under-1,000-line goal and AGENTS.md guidance.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Next step before merge

  • No automated repair is needed; this MEMBER-authored cleanup should proceed through normal maintainer review.

Security
Cleared: The diff touches only tests and shared test helpers, with no CI, dependency, secret, workflow, or runtime code execution changes.

Review details

Best possible solution:

Land the test split after normal maintainer review and required checks, keeping PR-policy coverage in focused test files.

Do we have a high-confidence way to reproduce the issue?

Not applicable; this is a test-suite organization PR, not a bug report. The relevant source check is that test/*.test.ts files remain in the normal unit-test discovery path.

Is this the best way to solve the issue?

Yes. Splitting PR-policy coverage into focused files follows the repository's test organization guidance and keeps the moved coverage in the existing Node test suite.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6035f230849b.

Label changes

Label changes:

  • add P3: This is a low-risk test-suite organization cleanup with no runtime behavior change.

Label justifications:

  • P3: This is a low-risk test-suite organization cleanup with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a MEMBER-authored test-only cleanup, so the external contributor real behavior proof gate does not apply.
Evidence reviewed

What I checked:

Likely related people:

  • RomneyDa: Authored the merged Split context tests out of clawsweeper suite #324 split that introduced the shared helper pattern this branch continues. (role: recent test-suite split contributor; confidence: high; commits: 6035f230849b, 87dd46bd781d; files: test/clawsweeper.test.ts, test/helpers.ts, test/pr-surface-policy.test.ts)
  • Peter Steinberger: git blame and git log -S tie the moved PR-policy test block in test/clawsweeper.test.ts to the v0.3.0 release aggregation commit. (role: original PR-policy test-area contributor; confidence: medium; commits: dc824915bb6c; files: test/clawsweeper.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa RomneyDa changed the title Split PR policy tests out of clawsweeper suite chore: split PR policy tests out of clawsweeper suite Jun 18, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 18, 2026
@RomneyDa
RomneyDa force-pushed the dallin/split-pr-policy-tests branch from 5100d28 to 87dd46b Compare June 18, 2026 23:55
@clawsweeper clawsweeper Bot added the P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. label Jun 19, 2026
@RomneyDa
RomneyDa merged commit a811372 into main Jun 19, 2026
8 checks passed
@RomneyDa
RomneyDa deleted the dallin/split-pr-policy-tests branch June 19, 2026 00:24
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant