Skip to content

Add maturity shortlist helper - #373

Merged
RomneyDa merged 1 commit into
mainfrom
maturity-shortlist
Jun 26, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
maturity-shortlist

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • add a deterministic YAML-backed maturity shortlist CLI
  • stage a dependency-free scratch helper that prints the precomputed M4+ shortlist for Codex reviews
  • update the review prompt to compare issues against the shortlist before reading full taxonomy files

Verification

  • pnpm run check

@RomneyDa
RomneyDa requested a review from a team as a code owner June 26, 2026 22:14
@clawsweeper

clawsweeper Bot commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

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

Summary
The branch adds a YAML-backed maturity shortlist script, generates a dependency-free scratch helper during Codex review, updates the review prompt, adds the locked yaml runtime dependency, and covers the helper/prompt behavior with tests.

Reproducibility: not applicable. this is an internal automation helper PR rather than a bug report. I reviewed the latest PR diff, current-main behavior, GitHub metadata, and relevant history instead of reproducing a failure.

Review metrics: 2 noteworthy metrics.

  • Changed surface: 7 files changed, 168 additions, 4 deletions. The patch spans runtime prompt generation, a helper script, dependency metadata, and tests.
  • Dependency surface: 1 runtime dependency added: [email protected]. The install surface changes even though the generated scratch helper remains dependency-free.

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] pnpm check was still in progress at review time, so required CI should settle install, build, lint, test, and format compatibility before merge.
  • [P1] The PR adds one locked runtime dependency, [email protected], so maintainers should be comfortable with that small supply-chain surface before landing it.

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused helper if required checks pass and maintainers accept the small locked yaml runtime dependency.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No repair-lane candidate: I found no discrete patch defect for automation to fix, and this member-authored PR should proceed through normal maintainer review after CI settles.

Security
Cleared: The diff adds one locked npm dependency and local helper code, with no workflow permission, secret handling, action ref, install script, or remote execution change found.

Review details

Best possible solution:

Land the focused helper if required checks pass and maintainers accept the small locked yaml runtime dependency.

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

Not applicable; this is an internal automation helper PR rather than a bug report. I reviewed the latest PR diff, current-main behavior, GitHub metadata, and relevant history instead of reproducing a failure.

Is this the best way to solve the issue?

Yes; the implementation is narrow because ClawSweeper parses the full YAML scorecard once and exposes a small dependency-free scratch helper to Codex reviews. I did not find a duplicate helper on current main.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P3: This is a low-risk internal review-automation ergonomics improvement with focused tests and no user-facing runtime regression found.
  • 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: Real behavior proof is not required for this member-authored internal automation PR; the PR body reports pnpm run check as validation.
Evidence reviewed

What I checked:

  • Repository policy applied: AGENTS.md was read fully; it directs conservative automation review and says maintainer-authored items are non-closeable, which applies because GitHub context reports the PR author as a repository member. (AGENTS.md:52, 84796f0c9b0c)
  • Current main lacks the helper: Current main still tells reviewers to match issues against taxonomy.yaml and qa/maturity-scores.yaml directly, and repository search found no maturity-stable-shortlist helper on main. (prompts/review-item.md:167, 84796f0c9b0c)
  • Helper implementation inspected: The PR adds scripts/maturity-stable-shortlist.mjs, which parses a scorecard, filters surfaces whose maturity code is M4 or higher, and emits compact rows including category names. (scripts/maturity-stable-shortlist.mjs:14, 16b503d96779)
  • Runtime integration inspected: The PR points ClawSweeper at the repository script, writes a generated dependency-free helper into the proof scratch directory, and creates it before Codex starts with the scratch directory exposed through CLAWSWEEPER_PROOF_SCRATCH_DIR. (src/clawsweeper.ts:7008, 16b503d96779)
  • Scorecard shape checked: The live OpenClaw scorecard uses a top-level surfaces array with level.code, level.label, scores, and categories, matching the helper's expected input shape. (openclaw/openclaw:qa/maturity-scores.yaml:1)
  • Focused coverage added: The PR adds a script test for M4+ filtering and category output plus a review-prompt policy test for the scratch helper wording. (test/maturity-shortlist-script.test.ts:8, 16b503d96779)

Likely related people:

  • RomneyDa: RomneyDa authored the merged stable maturity label work in 82a1bfd and this PR extends the same prompt/schema/review workflow. (role: feature owner; confidence: high; commits: 82a1bfda0da5, 16b503d96779; files: prompts/review-item.md, src/clawsweeper.ts, schema/clawsweeper-decision.schema.json)
  • brokemac79: Blame and history on the Codex review prompt builder and scratch-dir environment path point to prior review-lane and local-review work by brokemac79. (role: adjacent review-runner contributor; confidence: medium; commits: f2b07a7265fb, 79e768844291; files: src/clawsweeper.ts, prompts/review-item.md)
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 26, 2026
@RomneyDa
RomneyDa force-pushed the maturity-shortlist branch from 8b39681 to 1ef96d2 Compare June 26, 2026 22:23
@RomneyDa
RomneyDa force-pushed the maturity-shortlist branch from 1ef96d2 to 16b503d Compare June 26, 2026 22:26
@RomneyDa
RomneyDa merged commit ae63b16 into main Jun 26, 2026
6 checks passed
@RomneyDa
RomneyDa deleted the maturity-shortlist branch June 26, 2026 23: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