Skip to content

feat: summarize close candidate quality - #402

Merged
steipete merged 3 commits into
openclaw:mainfrom
brokemac79:codex/close-quality-buckets
Jul 4, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
brokemac79:codex/close-quality-buckets

Conversation

@brokemac79

@brokemac79 brokemac79 commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Apply status now summarizes the close-proposal mix as implemented-on-main, duplicate or superseded, needs PR close proof, aging or low-signal, policy-sensitive, retry-after-guard-skip, or other.

The current-main rewrite also accounts for the stalled_unproven_pr and abandoned_pr reasons added by #403. They are reported as aging/low-signal without being added to the automatic close selector. A regression asserts both the richer summary and the unchanged eligible item numbers.

Comment-only sync runs no longer show a misleading Close candidate mix: not evaluated sentence. The existing apply cursor, limits, live-state gates, and close policy are unchanged.

Proof

  • Focused build and workflow tests: 68 passed.
  • Full pnpm run check: 599 unit tests and 596 repair tests passed.
  • Changed-file coverage: 100% lines, 89.17% branches, 100% functions.
  • Whole-repository coverage: 76.63% lines, 70.57% branches, 83.86% functions.
  • Formatting and lint clean.
  • Final-tree AutoReview: no actionable findings, confidence 0.86.

Risk

Low. This is reporting-only. The main review finding was that adding #403 reasons to the selector would silently widen auto-close behavior; the rewrite separates the quality-summary view from apply eligibility and locks that boundary with a regression.

@brokemac79
brokemac79 requested a review from a team as a code owner July 4, 2026 03:31
@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 6:06 AM ET / 10:06 UTC.

Summary
The PR adds a proposed-item-quality-summary workflow utility, threads its close-candidate mix into apply status text, and documents/tests the reporting-only behavior.

Reproducibility: not applicable. as a feature PR. The review used source inspection, workflow ordering checks, and the contributor's reported live check output rather than a bug reproduction path.

Review metrics: 1 noteworthy metric.

  • Touched Surface: 6 files changed, 285 additions, 5 deletions. The diff spans workflow automation, repair utility logic, docs, tests, and release notes, so automation behavior is the main merge-review concern.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

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

Risk before merge

  • [P1] The PR adds a new command invocation and shell parsing inside the apply job; if that command or parsing regresses, apply status could be wrong or the job could fail before candidate selection.
  • [P1] The open feat: adapt apply scan window #401 touches adjacent apply status behavior, so whichever branch lands second may need a refresh to preserve both operator signals.

Maintainer options:

  1. Merge After Workflow Review (recommended)
    Maintainers can accept the automation risk once the added summary command, shell parsing, and bucket taxonomy match apply-operator expectations.
  2. Refresh If Adjacent Status Work Lands
    If feat: adapt apply scan window #401 lands first, refresh this branch so both scan-window and close-candidate status details survive together.

Next step before merge

  • [P2] No repair lane is needed; the branch has no blocking findings, but the apply-lane automation risk should be accepted by a maintainer before merge.

Security
Cleared: The diff adds deterministic local workflow utility execution, status text, docs, and tests without new permissions, secrets handling, dependencies, or third-party execution paths.

Review details

Best possible solution:

Land this as reporting-only apply telemetry after maintainer review confirms the bucket taxonomy and status wording are the intended operator surface while preserving all close gates.

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

Not applicable as a feature PR. The review used source inspection, workflow ordering checks, and the contributor's reported live check output rather than a bug reproduction path.

Is this the best way to solve the issue?

Yes. Reusing the existing proposed-item selector after reconcile is the narrow maintainable path, and the latest head separates telemetry-only close reasons from actual apply eligibility with regression coverage.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a normal-priority apply telemetry improvement with limited blast radius but real workflow-automation surface area.
  • merge-risk: 🚨 automation: The PR adds a workflow utility invocation and parses its output inside the apply job, so merge safety depends on automation behavior beyond TypeScript correctness.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body reports focused workflow tests, full pnpm run check, coverage, format/lint, and final-tree review output for this non-visual workflow/status change.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports focused workflow tests, full pnpm run check, coverage, format/lint, and final-tree review output for this non-visual workflow/status change.
Evidence reviewed

What I checked:

  • Repository policy read: AGENTS.md was read fully; the workflow, repair-lane, automation-safety, and release-owned changelog guidance apply to this PR review. (AGENTS.md:1, ebddd6c4093c)
  • Current main lacks this telemetry: Current main has no existing proposed-item-quality-summary, candidate_quality_summary, Close candidate mix, or ProposedItemQuality implementation, so the PR is not obsolete on main. (ebddd6c4093c)
  • Workflow utility implementation: PR head adds the new CLI command and a quality-summary selection path that can include telemetry-only stalled/unproven and abandoned PR close reasons without adding them to normal apply selection. (src/repair/workflow-utils.ts:215, 3b3bfbced6b0)
  • Workflow ordering and status text: PR head runs reconcile before the new summary command, parses candidate_quality_summary, and inserts the detail into idle and in-progress apply status text only for non-comment-sync runs. (.github/workflows/sweep.yml:2428, 3b3bfbced6b0)
  • Regression coverage: The workflow utility test asserts the richer bucket summary while preserving the actual selected apply item numbers, including stalled/unproven and abandoned PRs as summary-only aging/low-signal entries. (test/repair/workflow-utils.test.ts:1175, 3b3bfbced6b0)
  • Workflow test coverage: The workflow test asserts the summary command appears after reconcile and before proposed-item-numbers, and checks that comment-only status avoids the misleading not evaluated text. (test/sweep-workflow.test.ts:168, 3b3bfbced6b0)

Likely related people:

  • brokemac79: Recent merged commits added apply queue rotation, apply health/status telemetry, skip-action classification, and cycle estimates in the same workflow utility area this PR extends. (role: recent area contributor; confidence: high; commits: 5bdf6f31c904, ead7d6461a6c, 5f4af592da57; files: .github/workflows/sweep.yml, src/repair/workflow-utils.ts, test/repair/workflow-utils.test.ts)
  • vincentkoc: Blame points the baseline proposed-item selection and apply workflow scaffolding to earlier rate-limit and checkpoint work by this author. (role: introduced baseline behavior; confidence: medium; commits: f94c65a91f23, f94588d89c2f; files: .github/workflows/sweep.yml, src/repair/workflow-utils.ts)
  • steipete: The merged close-policy PR introduced the stalled/unproven and abandoned PR reasons that this PR summarizes, and the latest PR head includes a maintainer-authored repair preserving read-only reporting. (role: recent adjacent policy contributor; confidence: high; commits: f4bc90093196, 3b3bfbced6b0; files: .github/workflows/sweep.yml, src/repair/workflow-utils.ts, docs/stalled-pr-close-policies.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.
Review history (1 earlier review cycle)
  • reviewed 2026-07-04T04:29:36.101Z sha fb60a50 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. 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. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Jul 4, 2026
@brokemac79
brokemac79 force-pushed the codex/close-quality-buckets branch from aab247b to ebef6f0 Compare July 4, 2026 03:54
@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

@brokemac79
brokemac79 force-pushed the codex/close-quality-buckets branch from ebef6f0 to fb60a50 Compare July 4, 2026 04:19
@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

@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. 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 4, 2026
@steipete
steipete merged commit 682da99 into openclaw:main Jul 4, 2026
7 checks passed
@steipete

steipete commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Landed in 682da99. Thank you, @brokemac79.

The current-main rewrite keeps the feature reporting-only: stalled/unproven and abandoned PR proposals appear in the aging/low-signal telemetry bucket, while a regression proves they are not added to automatic close eligibility. It also omits close-candidate text from comment-only sync status.

Proof on exact head 3b3bfbced6b032cb9d07b57167d2a3424631c680: focused tests 68/68; full local check 599 unit + 596 repair; changed coverage 100% lines / 89.17% branches / 100% functions; AutoReview clean; all GitHub checks green, including pnpm check in 8m46s.

azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Add reporting-only close-candidate quality telemetry, classify the newer stalled and abandoned PR reasons without widening automatic close eligibility, and keep comment-only sync status concise.

Co-authored-by: brokemac79 <[email protected]>
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. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants