Skip to content

fix: keep comment commands out of the item concurrency group - #77

Open
SebTardif wants to merge 1 commit into
openclaw:mainfrom
SebTardif:fix/rfcs-f001
Open

SebTardif wants to merge 1 commit into
openclaw:mainfrom
SebTardif:fix/rfcs-f001

Conversation

@SebTardif

@SebTardif SebTardif commented Oct 4, 2026 •

Copy link
Copy Markdown

What Problem This Solves

A group keyed only on the repository and item number let a pull request
synchronize or an issue or pull request edit cancel an in-flight
/review or /automerge comment run. Key comment runs by event name and
comment id, and keep bot label events in their own group. Cancel in
progress stays on for edited, synchronize, and ready_for_review.

Why This Change Was Made

This patch is limited to the files below.

  • .github/workflows/clawsweeper-dispatch.yml

User Impact

The case described above now follows the patched behavior. Existing commands and configuration stay in place.

Evidence

The pull request head 8a735ad6e673156211fb12732655ab4492664295 was fast-forwarded onto the fork default branch so GitHub Actions would run this workflow file. A temporary pull request on that fork then received a @clawsweeper review comment and two body edits in the same few seconds.

2026-10-08T22:11:25Z issue_comment success https://github.com/SebTardif/rfcs/actions/runs/37851872780
2026-10-08T22:11:26Z pull_request_target cancelled https://github.com/SebTardif/rfcs/actions/runs/37851874987
2026-10-08T22:11:28Z pull_request_target success https://github.com/SebTardif/rfcs/actions/runs/37851877983

The comment run was in progress while an earlier edit had already been cancelled and the next edit was queued. The comment run finished success. It was not cancelled.

Real behavior proof

  • Behavior or issue addressed: A review comment was cancelled when an unrelated edit shared its concurrency group.
  • Real environment tested: GitHub-hosted ubuntu-latest on the fork, workflow from head 8a735ad6e673156211fb12732655ab4492664295.
  • Exact steps or command run after this patch: Comment @clawsweeper review on the temporary fork pull request, then edit that pull request body twice.
  • Evidence after fix: hosted run list above. Comment run 37851872780 succeeded. Edit run 37851874987 was cancelled. The last edit, 37851877983, succeeded.
  • Observed result after fix: Overlapping edits still supersede each other. The comment dispatch in that same window stayed successful.
  • What was not tested: A repository that has the ClawSweeper app private key. These runs prove the scheduler. The dispatch step skips when that credential is absent.

A group keyed only on the repository and item number let a pull request
synchronize or an issue or pull request edit cancel an in-flight
/review or /automerge comment run. Key comment runs by event name and
comment id, and keep bot label events in their own group. Cancel in
progress stays on for edited, synchronize, and ready_for_review.

Signed-off-by: Sebastien Tardif <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge.

What this changes

This PR separates comment runs and ignored bot-label events from item-update concurrency groups.

Example: A review comment on fork PR 1 overlaps two PR body edits.

  • Before: The edits share the comment run's concurrency group and can cancel it before dispatch.
  • After: Comment run 37851872780 succeeds while edit run 37851874987 is cancelled and edit run 37851877983 succeeds.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused scheduler repair with verified shipped-entry-point proof and no findings; overall readiness is capped by the unresolved scheduling policy.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): GitHub Actions exercised the changed concurrency owner from the reviewed workflow head on the contributor's fork: a comment run survived overlapping PR edits while the earlier edit was cancelled and the later edit succeeded; credentialed dispatch was explicitly outside this scheduler scenario.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: An explicit review or automerge comment can be cancelled by an unrelated item edit or synchronization before dispatch.
Reason: The demonstrated repair has clear value, but independently scheduling separate comments changes behavior built by the feature owner without recorded approval.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR repairs a current scheduler problem that remains on main; no actionable code defects were found, but independent scheduling of separate comments needs an owner decision.

Priority: P2
Reviewed head: 8a735ad6e673156211fb12732655ab4492664295
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should separate comments on the same item run independently, as this PR proposes, or retain a shared comment concurrency group?
  • Recommendation: Approve independent comment groups: Accept the proposed scheduling policy so distinct explicit commands cannot displace one another before dispatch.
  • Why: The fix also replaces owner-built item serialization with per-comment groups, and neither the introduction commit nor recorded maintainer discussion settles that broader scheduling choice.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

GitHub issue, comment, and pull-request events enter the target repository's dispatch workflow; GitHub Actions schedules them before the workflow forwards eligible events to ClawSweeper.

flowchart TD
 A[GitHub item events] --> C[Actions concurrency groups]
 B[GitHub comment events] --> C
 C --> D[Dispatch job filters]
 D --> E[Comment acknowledgement]
 D --> F[ClawSweeper event dispatch]
 E --> F
Loading

Technical review

Best possible solution:

Protect explicit commands from unrelated item updates while retaining an owner-approved policy for scheduling separate comments.

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

Current-main source establishes the cancellation path through a shared group and cancel-in-progress; the contributor's hosted runs verify the proposed scheduler behavior after the fix, without a failing base run.

Is this the best way to solve the issue?

Changing the existing concurrency owner is a focused repair; per-comment grouping handles the demonstrated overlap, with the broader command scheduling policy reserved for the feature owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 967d9aac7472.

Provenance checked

  • Dispatch concurrency grouping changes intended behavior with a stated reason (593e6e4: The workflow was added to dispatch ClawSweeper events with item-level grouping and update supersession; its commit records no finer reason for serializing comments with item events.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Overlapping item edits can cancel explicit command dispatches; this is a bounded maintenance-workflow bug.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (29 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-10T19:59:18.088Z sha 8a735ad :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T01:08:04.601Z sha 8a735ad :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T14:23:58.035Z sha 8a735ad :: blocked before merge. :: none
  • reviewed 2026-10-11T17:35:08.859Z sha 8a735ad :: blocked before merge. :: none
  • reviewed 2026-10-11T23:36:10.645Z sha 8a735ad :: blocked before merge. :: none
  • reviewed 2026-10-13T06:43:22.174Z sha 8a735ad :: blocked before merge. :: none
  • reviewed 2026-10-13T10:44:13.541Z sha 8a735ad :: blocked before merge. :: none
  • reviewed 2026-10-13T17:35:53.430Z sha 8a735ad :: blocked before merge. :: none

Reviewed October 13, 2026, 2:57 PM ET / 18:57 UTC (Revision 30).

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 8, 2026
@SebTardif

Copy link
Copy Markdown
Author

@clawsweeper re-review

The body now has hosted runs. A comment dispatch succeeded while an overlapping edit was cancelled.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Oct 8, 2026
@ekinnee

ekinnee commented Oct 18, 2026

Copy link
Copy Markdown

There is now a concrete precedent for the scheduling question in the durable review: [openclaw/openclaw#170831](openclaw/openclaw#170831), merged October 13, separates event kinds and serializes issue_comment runs per comment. Its stated policy is that an edit can supersede its own comment run, while another comment cannot replace or cancel that command’s dispatch. That grouping remains in [current OpenClaw source](https://github.com/openclaw/openclaw/blob/ca5ac6f5b69aa8704b653fade36e2fa59937c7fb/.github/workflows/clawsweeper-dispatch.yml#L49).

@steipete, does that accepted per-comment policy also apply to the RFCs dispatcher? If so, it appears to address the specific policy decision still recorded here and would let SebTardif’s existing repair proceed through the remaining maintainer review.

The workflows differ, so I am not suggesting copying the entire OpenClaw change. SebTardif’s hosted runs demonstrate the scheduler overlap covered here; credentialed downstream dispatch remains outside that proof.

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. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants