Skip to content

fix: prevent stable labels from leaking across surfaces - #949

Merged
vincentkoc merged 2 commits into
mainfrom
fix/maturity-primary-surface
Jul 30, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/maturity-primary-surface

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where lower-maturity OpenClaw issues could receive maturity:stable when their implementation happened to pass through Gateway or CLI code.

Why This Change Was Made

ClawSweeper now identifies exactly one primary taxonomy owner surface before applying the label. The scorecard helper presents both eligible M4+ surfaces and explicit below-M4 exclusions, so incidental shared plumbing cannot promote Beta, Alpha, or Experimental work.

User Impact

Maintainers can treat maturity:stable as a signal about the issue's owning product surface instead of an incidental implementation dependency. Existing labels are not bulk-rewritten by this PR.

Evidence

  • pnpm run build
  • node --test test/maturity-shortlist-script.test.ts test/review-prompt-policy.test.ts test/pr-label-policy.test.ts (75 passed)
  • git diff --check
  • Autoreview: clean, patch correct, confidence 0.94
  • pnpm run check: changed surfaces, build, formatting, lint, and the broad suite ran; the local macOS run ended on unrelated platform/flaky failures:
    • test/dashboard-worker.test.ts: clock-boundary expectation 9060 vs 9061
    • test/repair/process-tree-containment.test.ts: Linux capset/Landlock symbols unavailable on macOS

Real Behavior Proof

  • Claim: the review helper clearly excludes below-M4 primary owners and prevents incidental Gateway/CLI plumbing from qualifying them for maturity:stable.
  • Exercised surface: scripts/maturity-stable-shortlist.mjs against OpenClaw's current qa/maturity-scores.yaml.
  • Command/environment: Node 26 on macOS; node scripts/maturity-stable-shortlist.mjs <openclaw>/qa/maturity-scores.yaml.
  • Observed result: output begins with the primary-owner rule, lists the seven M4+ eligible surfaces with their scorecard categories, and separately lists 39 below-M4 surfaces as ineligible.
  • Artifact/trace: focused tests assert the rule text, eligible stable rows, below-M4 exclusions, and matching prompt/schema label policy.
  • Limits: this changes future review classification. The separately audited existing issue cohort is being corrected manually; this PR does not bulk-edit GitHub labels.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 12:41 AM ET / 04:41 UTC.

ClawSweeper review

What this changes

The PR changes maturity-label guidance and the shortlist helper so only an issue’s primary taxonomy surface can qualify for maturity:stable.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this member-authored draft open for normal maintainer review. The prior release-owned CHANGELOG.md finding is resolved in the current head, and the remaining patch is a focused correction to existing maturity-label classification guidance with aligned helper and regression-test changes.

Priority: P3
Reviewed head: ff07fff34f4f82f882d735ee328e16062ecedfbc

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused and consistent with the repository’s label-policy boundary; the prior contributor-facing finding is resolved in the current head.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the PR body still documents a direct scorecard-helper run and focused validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the PR body still documents a direct scorecard-helper run and focused validation.
Evidence reviewed 4 items Primary-owner rule is explicit: The review prompt now requires exactly one primary owner surface and says that shared Gateway or CLI transit, APIs, hosting, diagnostics, and other plumbing cannot qualify a lower-maturity owner.
Helper exposes both sides of the decision: The shortlist helper separates M4+ primary surfaces eligible for maturity:stable from below-M4 primary surfaces that are ineligible, preventing an incidental stable dependency from being mistaken for ownership.
Prior review finding was addressed: The prior review requested removal of a release-owned changelog entry. The follow-up commit is chore: keep changelog release-owned, and the current seven-file PR diff contains no CHANGELOG.md change.
Findings None None.
Security None None.

How this fits together

ClawSweeper reviews GitHub items and maps an issue’s affected product surface to taxonomy maturity labels. The maturity shortlist helper reads OpenClaw’s scorecard and informs the review decision that later syncs owned labels to GitHub.

flowchart LR
  A[OpenClaw issue] --> B[Primary product surface]
  B --> C[Maturity scorecard]
  C --> D[Shortlist helper]
  D --> E[Review decision]
  E --> F[GitHub maturity label]
Loading

Before merge

  • Complete next step (P2) - The branch is member-authored and the remaining action is ordinary maintainer review of a current draft, not an automated repair or cleanup action.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Changed surface 7 files; 48 additions, 22 deletions The patch stays within maturity-label policy, its scorecard helper, label metadata, and matching tests.

Technical review

Best possible solution:

Preserve the primary-owner maturity rule and land the focused helper, schema, prompt, and regression-test alignment once the draft is ready for maintainer review.

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

Yes, from source. The prior policy could treat shared Gateway or CLI plumbing as sufficient maturity evidence; the updated helper and focused tests provide a concrete current-main verification path for the intended owner-based classification.

Is this the best way to solve the issue?

Yes. Selecting one product surface that owns the reported behavior, then using explicit eligible and ineligible scorecard rows, is the narrowest maintainable way to stop incidental dependencies from promoting a label.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • 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 author is a repository member, so the external-contributor proof gate does not apply; the PR body still documents a direct scorecard-helper run and focused validation.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: This is a low-blast-radius correction to internal review-label classification rather than a user-facing runtime regression.
  • 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 author is a repository member, so the external-contributor proof gate does not apply; the PR body still documents a direct scorecard-helper run and focused validation.

Evidence

What I checked:

  • Primary-owner rule is explicit: The review prompt now requires exactly one primary owner surface and says that shared Gateway or CLI transit, APIs, hosting, diagnostics, and other plumbing cannot qualify a lower-maturity owner. (prompts/review-item.md:218, ff07fff34f4f)
  • Helper exposes both sides of the decision: The shortlist helper separates M4+ primary surfaces eligible for maturity:stable from below-M4 primary surfaces that are ineligible, preventing an incidental stable dependency from being mistaken for ownership. (scripts/maturity-stable-shortlist.mjs:14, ff07fff34f4f)
  • Prior review finding was addressed: The prior review requested removal of a release-owned changelog entry. The follow-up commit is chore: keep changelog release-owned, and the current seven-file PR diff contains no CHANGELOG.md change. (CHANGELOG.md, ff07fff34f4f)
  • Regression coverage follows the policy change: The focused tests now assert the primary-surface rule, eligible M4+ rows, below-M4 exclusions, and the corresponding prompt and label-description policy. The PR body reports 75 focused tests passing. (test/maturity-shortlist-script.test.ts:5, ff07fff34f4f)

Likely related people:

  • vincentkoc: The provided PR metadata attributes the focused maturity-label policy commit and its follow-up release-note-policy correction to vincentkoc. (role: recent area contributor; confidence: medium; commits: 67e28188f233, ff07fff34f4f; files: scripts/maturity-stable-shortlist.mjs, prompts/review-item.md, src/clawsweeper.ts)

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 (1 earlier review cycle)
  • reviewed 2026-07-30T04:34:50.408Z sha 67e2818 :: found issues before merge. :: [P2] Remove the release-owned changelog entry

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Removed the release-owned CHANGELOG.md entry from the current head. Focused policy tests remain 75/75 green, git diff --check passes, and the follow-up autoreview is clean at 0.99 confidence.

@clawsweeper

clawsweeper Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 30, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 04:43
@vincentkoc
vincentkoc merged commit 2e6bace into main Jul 30, 2026
20 checks passed
@vincentkoc
vincentkoc deleted the fix/maturity-primary-surface branch July 30, 2026 04:44
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
* fix: scope stable maturity labels to primary surfaces

* chore: keep changelog release-owned
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