Skip to content

fix(repair): isolate deferred verdict routing - #683

Merged
hxy91819 merged 1 commit into
mainfrom
feature/router-verdict-concurrency
Jul 19, 2026
Merged

hxy91819 merged 1 commit into
mainfrom
feature/router-verdict-concurrency

Conversation

@hxy91819

Copy link
Copy Markdown
Member

Summary

  • scope deferred exact-verdict router dispatches to their target item
  • preserve repository-scoped concurrency for broad scans
  • add workflow and automerge E2E regression coverage for pending-run replacement

Root cause

GitHub keeps only one pending run per concurrency group even when cancel-in-progress is false. Exact verdict handoffs shared the broad repository router group, so unrelated router traffic could replace a pending automerge verdict before it obtained a job.

Validation

  • pnpm run check
  • local container: resume-intent-persistence with the tiny fixture
  • local autoreview: 0 findings, patch correct (0.94)
  • gitleaks: no leaks

@hxy91819
hxy91819 requested a review from a team as a code owner July 19, 2026 00:45
@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. 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 18, 2026, 8:48 PM ET / July 19, 2026, 00:48 UTC.

Summary
The PR passes the published item number into deferred router dispatches, isolates workflow-dispatch concurrency by item, and adds workflow and automerge E2E regression assertions.

Reproducibility: yes. from source: two deferred workflow dispatches for different items previously shared the repository-wide router group, where GitHub can replace a pending run; the patch supplies the item key needed to isolate them.

Review metrics: 2 noteworthy metrics.

  • Patch scope: 4 files affected; 46 added, 1 removed. The change is narrowly confined to router dispatch concurrency and directly targeted regression coverage.
  • Workflow surface: 2 workflow files changed. Both the deferred publisher and router are updated, keeping the dispatch payload and concurrency key aligned.

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:

  • none.

Next step before merge

  • [P2] A repository member must make the normal merge decision; no discrete mechanical repair is identified.

Maintainer decision needed

  • Question: Should the repository accept item-number-scoped pending capacity for deferred exact-verdict router dispatches while preserving the existing repository-scoped broad-scan group?
  • Rationale: The patch changes live GitHub Actions concurrency behavior, and the PR author is a repository member; repository policy requires explicit maintainer judgment rather than automated cleanup.
  • Likely owner: hxy91819 — They are the available repository-member contributor for this focused workflow change and can clarify the intended dispatch contract.
  • Options:
    • Accept scoped dispatch concurrency (recommended): Approve the item-number group because it prevents unrelated deferred exact verdicts from replacing each other while broad scans remain repository-scoped.
    • Request a narrower operational contract: Keep the PR open if maintainers want a different keying or explicit serialization policy for multi-item workflow dispatches before landing it.

Security
Cleared: The workflow-only diff changes no permissions, secrets, third-party action references, dependency sources, or execution inputs beyond passing the existing item number.

Review details

Best possible solution:

Merge the bounded item-scoped concurrency change once a repository maintainer accepts the routing contract and the pending workflow checks confirm the submitted head.

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

Yes, from source: two deferred workflow dispatches for different items previously shared the repository-wide router group, where GitHub can replace a pending run; the patch supplies the item key needed to isolate them.

Is this the best way to solve the issue?

Yes. Carrying the existing exact item number into the router dispatch and using it only for non-empty workflow-dispatch item selections is the narrowest fix that preserves broad repository serialization.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P2: This is a bounded repair-workflow reliability fix with limited but real automation impact.
  • 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 PR is authored by a repository member, so the external-contributor real-behavior-proof gate does not apply; its validation claims and focused regression coverage remain supplemental evidence.

Label justifications:

  • P2: This is a bounded repair-workflow reliability fix with limited but real automation impact.
  • 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 PR is authored by a repository member, so the external-contributor real-behavior-proof gate does not apply; its validation claims and focused regression coverage remain supplemental evidence.
Evidence reviewed

What I checked:

  • Exact handoff payload: The deferred exact-verdict publisher now exports ITEM_NUMBER from publication-context and forwards it as item_numbers when it dispatches the repair-comment router. (.github/workflows/sweep.yml:1682, 31991383d0e9)
  • Concurrency isolation: The router retains the existing comment-id group for repository dispatches and repository-wide group for broad work, while workflow dispatches with item numbers use an item-scoped group. (.github/workflows/repair-comment-router.yml:81, 31991383d0e9)
  • Regression coverage: The workflow test asserts both the deferred payload and item-scoped concurrency expression; the automerge scenario additionally checks the two files together for the pending-run replacement regression. (test/sweep-workflow.test.ts:497, 31991383d0e9)
  • Repository policy: The repository policy treats member-authored items as non-closeable and keeps review proposal-only, so this PR requires ordinary maintainer judgment rather than cleanup closure. (AGENTS.md:1, 275094665912)

Likely related people:

  • hxy91819: The available review context identifies this repository member as the author of the focused router-concurrency change; no separate current-main feature-history owner was established for this newly introduced path. (role: recent workflow contributor; confidence: medium; commits: 31991383d0e9; files: .github/workflows/repair-comment-router.yml, .github/workflows/sweep.yml, test/sweep-workflow.test.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.

@hxy91819
hxy91819 merged commit c5314ce into main Jul 19, 2026
12 checks passed
@hxy91819
hxy91819 deleted the feature/router-verdict-concurrency branch July 19, 2026 00:56
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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