Skip to content

feat: classify apply skip next actions - #395

Merged
steipete merged 2 commits into
openclaw:mainfrom
brokemac79:codex/apply-skip-next-actions
Jul 4, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
brokemac79:codex/apply-skip-next-actions

Conversation

@brokemac79

@brokemac79 brokemac79 commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Apply health previously exposed raw skip reason names without telling maintainers whether a blocked window needed a fresh review, close-proof work, an auth repair, an unlock, human judgement, or no action.

Why This Change Was Made

  • Adds durable next_actions and next_action_buckets to apply report summaries.
  • Classifies closure and comment-sync outcomes into human-readable labels, owners, retryability, and concrete next steps.
  • Covers changed reviews, stale durable comments, close-proof blocks and transient retries, protected/maintainer items, locked conversations, missing or invalid reports, runtime limits, live-state failures, auth failures, stable skips, and already-resolved items.
  • Teaches the dashboard to prefer the durable guidance while preserving the lane-level health contract from feat: split apply health lane reporting #397.
  • Keeps stable and non-retryable outcomes from suggesting misleading rerun commands.

User Impact

Maintainers can distinguish “wait,” “repair,” “review,” and “retry” outcomes directly from the live dashboard instead of decoding internal action names or opening every item record. No close gate is weakened and the dashboard does not dispatch work by itself.

Evidence

  • Rebased onto current main after feat: split apply health lane reporting #397.
  • pnpm run build:all passed.
  • node --test test/repair/workflow-utils.test.ts test/dashboard-worker.test.ts passed: 77 passed, 0 failed.
  • Focused autoreview of the maintainer taxonomy changes: no accepted/actionable findings.
  • Whole-branch autoreview: no accepted/actionable findings, confidence 0.90.
  • Exact-head GitHub CI is green: pnpm check, Windows launcher, CodeQL, and Socket checks passed.

Risk Notes

  • Durable status JSON gains additive fields; existing aggregate and lane fields remain intact.
  • Operator copy is deterministic and escaped before dashboard rendering.
  • Proof images remain in the PR discussion only; no screenshot assets are committed to the product repository.

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

clawsweeper Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 10:50 PM ET / 02:50 UTC.

Summary
The PR adds apply-health next_actions and next_action_buckets summary fields, parses and renders them in the dashboard, documents the status JSON addition, and adds focused workflow/dashboard tests.

Reproducibility: not applicable. This PR adds operator-facing apply skip classification rather than fixing a reproducible current-main bug, and source inspection shows current main lacks the requested next-action fields.

Review metrics: 2 noteworthy metrics.

  • Changed files: 5 files changed, +416/-9. The diff is focused on workflow summary generation, dashboard rendering, docs, and narrow tests.
  • Durable status fields: 2 added. next_actions and next_action_buckets become new sweep-status apply-health fields consumed by the dashboard.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🐚 platinum hermit
Result: blocked until real behavior proof is added.

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

Rank-up moves:

  • [P1] Add redacted current-head CLI output or dashboard proof showing next_actions and next_action_buckets.
  • Have a maintainer confirm the bucket owner, retryability, and next-step taxonomy.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR body lists build/test/autoreview claims but no current-head screenshot, recording, terminal output, logs, live output, or linked artifact proving the new CLI/dashboard behavior; add redacted proof and update the PR body to trigger a fresh review.

Mantis proof suggestion
A short dashboard or CLI proof would materially help verify the new visible operator guidance. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis visual task: verify apply-health next-action buckets render in the dashboard from a representative sweep-status payload and healthy status stays quiet.

Risk before merge

  • [P1] The PR changes durable apply-health JSON and live dashboard operator guidance, so the bucket owner, retryability, priority, and next-step wording need maintainer policy approval before merge.
  • [P1] The current PR body provides build/test/autoreview claims but no current-head real behavior proof from the CLI or dashboard path.
  • [P1] Exact-head pnpm check was still in progress at inspection time, which remains ordinary merge gating rather than a code finding.

Maintainer options:

  1. Confirm taxonomy and proof before merge (recommended)
    Have a maintainer approve the bucket/owner/retryability wording and add current-head real behavior proof for either summarize-apply-report output or dashboard rendering before landing.
  2. Narrow any unsafe guidance
    If any next-step or retryability label is not policy-approved, adjust the mapping table and focused tests before merge.
  3. Accept additive guidance risk
    Maintainers can intentionally land the additive status fields as-is if they own the taxonomy risk despite the proof gap.

Next step before merge

  • [P1] Human review is needed for taxonomy approval and current-head proof; there is no narrow code repair to queue.

Security
Cleared: No concrete security or supply-chain issue was found; the diff changes existing TypeScript, docs, and tests without new dependencies, permissions, secrets handling, or workflow execution paths.

Review details

Best possible solution:

Merge after a maintainer confirms the skip-reason taxonomy and next-step copy, exact-head checks finish, and redacted current-head CLI or dashboard proof is attached.

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

Not applicable. This PR adds operator-facing apply skip classification rather than fixing a reproducible current-main bug, and source inspection shows current main lacks the requested next-action fields.

Is this the best way to solve the issue?

Yes, with maintainer confirmation. The implementation is narrowly centered on summarizeApplyReport and dashboard rendering, but the taxonomy and next-step guidance are product/policy choices that should be approved before merge.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a normal-priority maintainer-operations improvement with limited blast radius but real apply/dashboard workflow impact.
  • merge-risk: 🚨 automation: Merging changes durable apply-health output and dashboard guidance used by maintainers to triage apply automation.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body lists build/test/autoreview claims but no current-head screenshot, recording, terminal output, logs, live output, or linked artifact proving the new CLI/dashboard behavior; add redacted proof and update the PR body to trigger a fresh review.
Evidence reviewed

What I checked:

  • Repository policy read: AGENTS.md was read in full and applies because this PR changes ClawSweeper apply automation, dashboard behavior, docs, and focused tests. (AGENTS.md:1, 5f4af592da57)
  • Current main lacks the requested fields: Current main has no next_actions, next_action_buckets, applySkipNextAction, or applyHealthNextActions symbols in the touched source/dashboard/docs/test paths, so the PR is not obsolete. (5f4af592da57)
  • PR head adds durable summary fields: The PR head extends ApplyReportSummary with next_actions and next_action_buckets and emits next-action data from summarizeApplyReport. (src/repair/workflow-utils.ts:44, cbae4b00e916)
  • Skip-action taxonomy is centralized: The PR maps common apply skip/retry reasons to bucket, owner, retryability, label, summary, and next-step metadata, with unknown reasons falling back to inspect. (src/repair/workflow-utils.ts:504, cbae4b00e916)
  • Dashboard consumes the new fields: The dashboard parser reads health.next_actions and health.next_action_buckets, and the render path uses them for reason labels, follow-up buckets, and maintainer next-step guidance. (dashboard/worker.ts:3564, cbae4b00e916)
  • Focused tests cover the new contract: The PR adds workflow utility assertions for next-action buckets and dashboard API assertions that sweep-status markers expose the new fields. (test/repair/workflow-utils.test.ts:246, cbae4b00e916)

Likely related people:

  • brokemac79: Merged predecessor commits introduced the apply-health dashboard and lane-reporting foundations this PR extends. (role: recent area contributor; confidence: high; commits: ead7d6461a6c, 5f4af592da57; files: src/repair/workflow-utils.ts, dashboard/worker.ts, test/repair/workflow-utils.test.ts)
  • steipete: The PR head includes a focused fixup commit from this person that revises the recovery-action taxonomy and related tests. (role: recent branch contributor; confidence: medium; commits: cbae4b00e916; files: src/repair/workflow-utils.ts, dashboard/worker.ts, test/repair/workflow-utils.test.ts)
  • Vincent Koc: Recent history on the touched dashboard/status area includes adjacent queue and dashboard operations work, though not this exact feature. (role: adjacent dashboard contributor; confidence: low; commits: 25a378a5b7d9; files: dashboard/worker.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 proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. 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 3, 2026
@brokemac79
brokemac79 force-pushed the codex/apply-skip-next-actions branch from 693972e to 3212f26 Compare July 4, 2026 01:18
@steipete steipete self-assigned this Jul 4, 2026
@steipete
steipete force-pushed the codex/apply-skip-next-actions branch from 3212f26 to cbae4b0 Compare July 4, 2026 02:41
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. labels Jul 4, 2026
@steipete

steipete commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Maintainer proof complete on exact head cbae4b00e916dcb89c4ac8e3b24c847737729bdb.

The branch is rebased onto the lane-reporting contract from #397, proof PNGs were removed from the repository, and the skip taxonomy was extended to cover comment auth, locked conversations, stale durable comments, transient close-proof failures, and missing review records.

Proof:

  • pnpm run build:all
  • node --test test/repair/workflow-utils.test.ts test/dashboard-worker.test.ts — 77/77 passed
  • focused maintainer-change autoreview — no accepted/actionable findings
  • whole-branch autoreview — no accepted/actionable findings, confidence 0.90
  • exact-head CI pnpm check — passed in 8m35s
  • exact-head Windows launcher, CodeQL, and Socket checks — passed

No known proof gaps. This adds status metadata and dashboard guidance only; it does not weaken or dispatch close actions.

@steipete
steipete merged commit baf9ddb into openclaw:main Jul 4, 2026
16 checks passed
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
* feat: classify apply skip next actions

* fix: classify apply recovery actions

---------

Co-authored-by: Peter Steinberger <[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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants