Skip to content

test: split review policy tests - #367

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

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

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • split prompt/context review tests into test/review-prompt-context.test.ts
  • split close-policy and failed-review retry coverage into focused test files
  • split PR risk/merge-risk comment rendering coverage into test/pr-review-comment-risk.test.ts
  • move the shared audit record fixture into test/helpers.ts

LOC

  • test/review-prompt-context.test.ts: 195
  • test/review-close-policy.test.ts: 531
  • test/failed-review-retry.test.ts: 284
  • test/pr-review-comment-risk.test.ts: 920
  • test/helpers.ts: 784
  • test/clawsweeper.test.ts: 3603

Validation

  • pnpm run check

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 24, 2026, 6:19 PM ET / 22:19 UTC.

Summary
Splits review prompt, close-policy, failed-review retry, and PR risk comment coverage out of test/clawsweeper.test.ts into focused test files while moving a shared audit fixture into test/helpers.ts.

Reproducibility: not applicable. This is a test organization PR, so I checked the diff structure and moved test inventory rather than reproducing a runtime bug.

Review metrics: 1 noteworthy metric.

  • Test-only split size: 4 added files, 2 changed files; +2694/-2692 net +2. The large diff is mostly redistribution of existing tests rather than runtime behavior change.

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.

Risk before merge

  • [P1] GitHub checks were still in progress at review time, so normal required-check gating still needs to finish before merge.

Maintainer options:

  1. Decide the mitigation before merge
    Merge after maintainer review and required checks confirm the test-only split preserves coverage.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is needed; this is a clean test-only split with normal maintainer review and CI as the remaining gates.

Security
Cleared: The diff only reorganizes tests/helpers and does not touch runtime code, workflows, dependencies, secrets, or package metadata.

Review details

Best possible solution:

Merge after maintainer review and required checks confirm the test-only split preserves coverage.

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

Not applicable. This is a test organization PR, so I checked the diff structure and moved test inventory rather than reproducing a runtime bug.

Is this the best way to solve the issue?

Yes. Splitting focused review-policy coverage out of test/clawsweeper.test.ts is the narrowest maintainable cleanup and matches the repository's test-placement guidance.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

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

Label justifications:

  • P3: This is low-risk test organization cleanup with no runtime behavior, workflow, dependency, or user-facing 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: The PR is member-authored, so the external contributor real-behavior proof gate does not apply.
Evidence reviewed

What I checked:

Likely related people:

  • RomneyDa: Recent git log --follow history shows a series of focused test split commits and helper moves in the same files, including the current main parent and earlier split work. (role: recent area contributor; confidence: high; commits: f337079999cc, e73fecd30a70, a811372b8fd0; files: test/clawsweeper.test.ts, test/helpers.ts)
  • steipete: git blame on the top of test/clawsweeper.test.ts points the original test harness/import structure to 47affc9f, and GitHub commit metadata maps that commit to this handle. (role: introduced test harness; confidence: medium; commits: 47affc9f814e; files: test/clawsweeper.test.ts)
  • vincentkoc: Recent commits in the same monolithic test area covered CI/review automation behavior that remains part of the split test surface. (role: adjacent automation contributor; confidence: medium; commits: 1566ad6a0a5b, f69d9debf487; 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.

@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. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. labels Jun 24, 2026
@RomneyDa
RomneyDa merged commit 1c19987 into main Jun 24, 2026
9 checks passed
@RomneyDa
RomneyDa deleted the dallin/split-review-policy-tests branch June 24, 2026 22:47
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