Skip to content

fix(review): narrow stable maturity issue labels - #1071

Merged
steipete merged 1 commit into
mainfrom
dallin/maturity-stable-label-tuning
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
dallin/maturity-stable-label-tuning

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 8, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

ClawSweeper still applies maturity:stable to feature, documentation, and additive-capability requests when their area happens to map to an M4 surface. That makes the label too noisy to serve as a useful maintainer-attention or release signal.

Why This Change Was Made

This narrows the model's guidance: M4/M5 ownership remains necessary, but the issue must also identify broken existing behavior backed by a current contract. Feature proposals, new capabilities, UX preferences, new configuration or policy choices, docs/support work, cleanup, and ambiguous reports should receive no maturity label.

The classifier remains model-driven. This does not add a deterministic category filter or post-processing rule. The only deterministic change is upserting the managed GitHub label's description when ClawSweeper applies it, so existing repository metadata converges on the same meaning.

OpenClaw Bay is unaffected; this changes review guidance and GitHub label metadata, not dashboard data contracts, queues, or publication lifecycle.

User Impact

Maintainers should see fewer false-positive maturity:stable labels and can treat the remaining cohort as a more focused queue of defects in mature product surfaces.

Evidence

  • pnpm run build
  • node --test test/maturity-shortlist-script.test.ts test/pr-label-policy.test.ts test/review-prompt-policy.test.ts — 79 passed, 0 failed
  • pnpm run format:check
  • git diff --check
  • Fresh pre-commit and committed-range Codex reviews found no actionable defects.
  • CI pnpm check passed. A concurrent local run passed static checks, all builds, lint, focused coverage, and the main coverage suite until eight unrelated test/repair/target-validation.test.ts environment cases could not resolve [email protected] / @pnpm/[email protected] from its configured package mirror; one deadline fixture reached git check-attr before its expected corepack prepare timeout.

Real Behavior Proof

  • Claim: a clear feature request on an M4 surface no longer receives maturity:stable solely because of that surface's score.
  • Exercised surface: the built ClawSweeper local-only issue-review path using the revised prompt, schema, and maturity shortlist.
  • Scenario: openclaw/openclaw#118490, an Android fullscreen chat-mode request that the current live review describes as a new presentation mode but labels stable because Android is M4.
  • Command/environment: pnpm run review -- --local-only --item-number 118490 --target-dir /Users/dallin/Documents/code/openclaw/openclaw.maturity-release-policy; Node 26.3.0, pnpm 11.10.0, read-only local review.
  • Observed result: complete/high-confidence review with item_category: feature, requires_new_feature: true, and maturity_labels: []. The evidence explicitly says Android is M4 but new features and UX preferences do not qualify.
  • Artifact: local report artifacts/local-review-118490/118490.md at committed head c8122a1824.
  • Limits: one representative known false positive was exercised; the run did not apply labels or mutate GitHub.

AI-assisted: yes.

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor 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. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 8:40 PM ET / August 9, 2026, 00:40 UTC.

ClawSweeper review

What this changes

The PR narrows maturity:stable to contract-backed bugs on M4/M5 surfaces and force-updates that label’s GitHub metadata when it is applied.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for a maintainer decision. The maturity-label narrowing is coherent, but the new forced upsert overwrites existing repository label metadata without an established ownership policy.

Priority: P3
Reviewed head: c8122a18247af9daf9b6bcb673af5bd580bf5226
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and supported by targeted validation, pending the maintainer decision on label metadata ownership.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external contributor proof gate; its body nevertheless documents an after-change local review run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external contributor proof gate; its body nevertheless documents an after-change local review run.
Evidence reviewed 4 items Forced metadata update: The PR changes the maturity-label creation path to gh label create --force, which updates an already-existing label’s color and description before applying it to an issue.
Existing synchronization boundary: Current main only ensures the maturity label when it is newly added to an item; the prior command treats an existing label as a no-op rather than changing its metadata.
Current behavior provenance: The existing create-without-force maturity-label behavior dates to the label-synchronization refactor, establishing the prior repository-metadata-preserving behavior.
Findings None None.
Security None None.

How this fits together

ClawSweeper turns issue reviews into managed GitHub labels. This PR changes both the guidance that selects the maturity label and the mutation command that creates or updates it in target repositories.

flowchart LR
A[Issue report] --> B[Review guidance]
B --> C[Maturity decision]
C --> D[Label selection]
D --> E[GitHub label sync]
E --> F[Repository labels]
Loading

Decision needed

Question Recommendation
Should ClawSweeper own and forcibly normalize the color and description of an existing maturity:stable label in every target repository? Preserve repository metadata: Keep the narrowed classifier guidance but create the label only when absent, leaving existing color and description unchanged.

Why: The patch intentionally expands synchronization from creating a missing label to altering existing repository metadata; current code and policy do not establish that ownership boundary.

Before merge

  • Resolve merge risk (P1) - Applying maturity:stable to a target repository that already has that label would replace its existing color and description, even if that repository owns different metadata for the same label.
  • Complete next step (P2) - A maintainer must decide whether the label synchronization contract may overwrite existing repository metadata.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Changed surface 8 files, +93/-34 lines The PR combines review-policy text, schema guidance, tests, and a live GitHub label mutation change.

Merge-risk options

Maintainer options:

  1. Preserve existing metadata (recommended)
    Remove the forced upsert while retaining the narrowed classifier guidance until a cross-repository ownership policy exists.
  2. Approve label ownership
    Accept forced metadata normalization only with explicit documentation that target repositories delegate this label definition to ClawSweeper.

Technical review

Best possible solution:

Apply the narrower maturity policy while preserving existing repository label metadata unless maintainers explicitly adopt ClawSweeper ownership of that cross-repository label definition.

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

Not applicable: this is a review-policy and label-synchronization change rather than a report of a runtime bug.

Is this the best way to solve the issue?

Unclear: the classifier guidance is a focused solution, but forced metadata normalization needs an explicit product ownership decision first.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a bounded review-policy refinement whose remaining question is low-urgency ownership direction.
  • merge-risk: 🚨 compatibility: Forced upserts can overwrite a target repository’s pre-existing label presentation and description.
  • merge-risk: 🚨 automation: The PR changes the GitHub label-synchronization command used by ClawSweeper automation.
  • 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 member-authored PR is exempt from the external contributor proof gate; its body nevertheless documents an after-change local review run.

Evidence

What I checked:

  • Forced metadata update: The PR changes the maturity-label creation path to gh label create --force, which updates an already-existing label’s color and description before applying it to an issue. (src/clawsweeper-label-mutations.ts:187, c8122a18247a)
  • Existing synchronization boundary: Current main only ensures the maturity label when it is newly added to an item; the prior command treats an existing label as a no-op rather than changing its metadata. (src/clawsweeper-label-operations.ts:225, 36179dceb26f)
  • Current behavior provenance: The existing create-without-force maturity-label behavior dates to the label-synchronization refactor, establishing the prior repository-metadata-preserving behavior. (src/clawsweeper-label-mutations.ts:187, 6e7ed035183f)
  • Narrowed classifier guidance: The PR explicitly requires both a broken current contract and an M4/M5 primary owner, excluding feature, configuration, docs, support, cleanup, and unclear requests. (prompts/review-item.md:267, c8122a18247a)

Likely related people:

  • Peter Steinberger: Introduced the current maturity-label creation path and its no-op handling for existing labels in the label-synchronization refactor. (role: introduced current label synchronization behavior; confidence: high; commits: 6e7ed035183f; files: src/clawsweeper-label-mutations.ts, src/clawsweeper-label-operations.ts, src/clawsweeper-policy.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Decide the cross-repository ownership policy for existing maturity:stable metadata, then align the forced-upsert path with that decision.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (8 earlier review cycles)
  • reviewed 2026-08-08T08:13:51.075Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T08:22:48.069Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T10:53:08.049Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T15:55:16.372Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T16:59:49.815Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T18:41:23.882Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T20:02:56.975Z sha c8122a1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-08T23:10:07.082Z sha c8122a1 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 8, 2026
@steipete
steipete merged commit 22c7ddc into main Aug 9, 2026
30 of 31 checks passed
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Maintainer review before merge: this implements the #950 closure's scoped follow-up faithfully — M4/M5 ownership stays necessary-but-not-sufficient, broken-existing-behavior contract evidence is now required, conservative [] defaults on ambiguity, and the explicit no-relabel-to-qualify guard. The label --force upsert is a reasonable trade (canonical definitions over exists-checks). CI green. Thanks @RomneyDa! 🦞

@steipete
steipete deleted the dallin/maturity-stable-label-tuning branch August 9, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. 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.

2 participants