Skip to content

fix(repair): resume armed automerge verdicts - #694

Merged
hxy91819 merged 1 commit into
mainfrom
feature/automerge-existing-state-resume
Jul 19, 2026
Merged

hxy91819 merged 1 commit into
mainfrom
feature/automerge-existing-state-resume

Conversation

@hxy91819

Copy link
Copy Markdown
Member

Summary

  • let a fresh maintainer resume coordinate a completed trusted review when the exact-head automerge plan is already armed
  • keep trusted label sweeps idempotent at the existing-plan boundary
  • recognize production priority-prefixed No repair lane is needed conclusions without accepting actual P0-P3 findings
  • update host and local-container E2E to reproduce both production states

Root cause

An existing label + durable job + status response caused manual automerge commands to return before review coordination. Separately, canonical landing prose was rejected solely because the non-finding line carried a [P2] prefix.

Validation

  • failing-first host E2E: completed-verdict-resume failed before the fix and passed after
  • failing-first unit: production-form [P2] No repair lane is needed failed before the fix and passed after
  • host E2E: completed-verdict-resume, approve-intent-persistence (openclaw-shaped)
  • local-container E2E: both scenarios using clawsweeper-automerge-e2e-base:local
  • focused core/E2E contract tests (137/137)
  • pnpm run check
  • local autoreview (0 findings)
  • staged gitleaks (0 leaks)

Let a fresh maintainer resume coordinate a trusted completed review for the exact current head even when the durable automerge plan is already armed. Recognize the canonical priority-prefixed no-repair conclusion without accepting real prioritized findings.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@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. 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 19, 2026
@clawsweeper

clawsweeper Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 3:34 AM ET / 07:34 UTC.

Summary
The PR changes repair comment routing to resume an already armed exact-head automerge review for trusted maintainer commands, accepts a priority-prefixed canonical no-repair verdict, and updates focused unit and automerge E2E coverage.

Reproducibility: yes. in source form: the supplied E2E scenario models an armed automerge label, a completed exact-head verdict, and a later maintainer resume command. The reported failing-first validation supports the path, but no independently run local reproduction was available in this read-only review.

Review metrics: 2 noteworthy metrics.

  • Patch surface: 4 files affected; 32 added, 17 removed. The change is narrowly scoped to repair routing plus its focused unit and E2E contracts.
  • Focused checks: 137/137 reported focused core/E2E tests. The reported validation directly covers the two production states described in the PR.

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:

  • Wait for production automerge flow and pnpm check to complete successfully on the current head.

Risk before merge

  • [P1] The change intentionally reuses completed exact-head review state across a later maintainer command; landing should wait for the in-progress production automerge and full check jobs to confirm that the strict head-binding boundary remains intact.

Maintainer options:

  1. Confirm exact-head automation coverage (recommended)
    Wait for the in-progress production automerge and check workflows to pass on this head, confirming the resumed command cannot reuse a verdict for a different head.
  2. Accept the bounded replay risk
    Merge based on the focused E2E and unit coverage if maintainers accept the remaining CI confirmation as routine automation risk.

Next step before merge

  • No automated repair is needed: this is an implementation PR from a repository member, and its remaining action is normal maintainer review plus completion of the in-progress workflow checks.

Security
Cleared: The patch changes internal TypeScript routing and test fixtures only; the supplied diff adds no dependency, permission, secret, artifact-download, or external code-execution surface.

Review details

Best possible solution:

Merge only after the remaining production automerge and pnpm check jobs pass on the exact PR head, preserving reuse solely for durable reviews bound to that same head SHA.

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

Yes in source form: the supplied E2E scenario models an armed automerge label, a completed exact-head verdict, and a later maintainer resume command. The reported failing-first validation supports the path, but no independently run local reproduction was available in this read-only review.

Is this the best way to solve the issue?

Yes, based on the supplied diff: preserving the durable exact-head binding while allowing a later trusted resume is narrower than broadly replaying prior reviews, and the parser exception remains constrained to the canonical no-repair conclusion.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P2: This is a bounded repair to maintainer automerge coordination, with no evidence of an active user-facing outage.
  • add merge-risk: 🚨 automation: The patch changes durable review handoff and command replay behavior, so an incorrect state boundary could affect automerge workflow execution after merge.
  • 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: This repository-member PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused host and local-container E2E validation claims, while CI completion remains the relevant merge gate.

Label justifications:

  • P2: This is a bounded repair to maintainer automerge coordination, with no evidence of an active user-facing outage.
  • merge-risk: 🚨 automation: The patch changes durable review handoff and command replay behavior, so an incorrect state boundary could affect automerge workflow execution after merge.
  • 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 repository-member PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused host and local-container E2E validation claims, while CI completion remains the relevant merge gate.
Evidence reviewed

What I checked:

  • Maintainer-authored protection: The GitHub context identifies the author association as MEMBER; repository policy keeps maintainer-authored PRs open for explicit maintainer judgment. (8ddbe988ed11)
  • Exact-head resume path: The routing change distinguishes trusted-bot command resumes from label sweeps and permits reuse of a prior exact-head review by clearing the command-time cutoff only for the armed-plan reuse path. (src/repair/comment-router.ts:1057, 8ddbe988ed11)
  • Canonical verdict parsing: The core parser continues rejecting security, attention, and review-finding language while allowing the specific priority-prefixed “No repair lane is needed” conclusion. (src/repair/comment-router-core.ts:717, 8ddbe988ed11)
  • Focused coverage: The branch adds a unit assertion for the priority-prefixed conclusion and adjusts the automerge E2E scenario to model a pre-armed label and completed exact-head verdict before the resume command. (test/repair/comment-router-core.test.ts:2548, 8ddbe988ed11)
  • Automation validation context: The PR reports focused core/E2E tests and pnpm run check; supplied check status also shows several checks completed successfully while the broader production automerge and check jobs were still in progress. (8ddbe988ed11)

Likely related people:

  • hxy91819: Authored the focused repair-lane implementation and its paired regression coverage on this PR; the available context does not expose an earlier current-main ownership trail. (role: recent repair-automation contributor; confidence: medium; commits: 8ddbe988ed11; files: src/repair/comment-router.ts, src/repair/comment-router-core.ts, test/e2e/automerge/run.mjs)
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.

@hxy91819
hxy91819 merged commit 8af4bfc into main Jul 19, 2026
13 checks passed
@hxy91819
hxy91819 deleted the feature/automerge-existing-state-resume branch July 19, 2026 07:43
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Let a fresh maintainer resume coordinate a trusted completed review for the exact current head even when the durable automerge plan is already armed. Recognize the canonical priority-prefixed no-repair conclusion without accepting real prioritized findings.
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: 🐚 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