Repository navigation
ci: acknowledge pull request receipts in clawsweeper dispatch - #120934
Conversation
Propagate the receipt-acknowledgment steps from the canonical ClawSweeper dispatch template (openclaw/clawsweeper#1080): mint a minimal issues:write App token and post an idempotent clawsweeper-pr-ack marker comment for non-draft opened and ready_for_review pull requests, before review dispatch.
|
Codex review: found issues before merge. Reviewed August 9, 2026, 2:46 AM ET / 06:46 UTC. ClawSweeper reviewWhat this changesThe PR adds an idempotent ClawSweeper receipt comment for eligible pull requests and documents that the review itself remains queue-based. Merge readinessKeep this maintainer PR open: its idempotence check accepts a matching marker from any commenter, so a PR author can suppress the promised receipt comment. Priority: P2 Review scores
Verification
How this fits togetherThe ClawSweeper dispatch workflow receives pull-request events, mints narrowly scoped credentials, and forwards review work to the central service. This change adds an immediate contributor-facing acknowledgement before the queued dispatch continues. flowchart LR
A[Pull request event] --> B[Dispatch workflow]
B --> C{Eligible non-draft PR}
C -->|yes| D[Scoped app token]
D --> E[Receipt deduplication]
E --> F[Receipt comment]
F --> G[Queued review dispatch]
C -->|no| G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceDocs +2, Config +64. Total +66 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Require both the receipt marker and the ClawSweeper App author in the deduplication predicate, cover the draft-comment-to-ready transition, and propagate the same repair to the canonical template. Do we have a high-confidence way to reproduce the issue? Yes, from source: add the marker as a user comment to a draft PR, then mark it ready for review; the predicate exits before posting the acknowledgement. Is this the best way to solve the issue? No. Copying the canonical block is not sufficient because its marker-only deduplication gives untrusted commenters control over whether the receipt is sent. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against dba99b355b4e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…aw#120934) Propagate the receipt-acknowledgment steps from the canonical ClawSweeper dispatch template (openclaw/clawsweeper#1080): mint a minimal issues:write App token and post an idempotent clawsweeper-pr-ack marker comment for non-draft opened and ready_for_review pull requests, before review dispatch.
What Problem This Solves
ClawSweeper review is queue-based, so contributors who open a PR against openclaw/openclaw get no signal that the bot saw it until a review slot frees up. openclaw/clawsweeper#1080 added an immediate receipt-acknowledgment step to the canonical dispatch workflow template; this repo's copy of
clawsweeper-dispatch.ymlhad not picked it up yet.Why This Change Was Made
Propagates the canonical template change so openclaw/openclaw PRs get the same immediate "received" feedback as other ClawSweeper-managed repos. The inserted 64-line block (the
Create target PR acknowledgement tokenandAcknowledge received pull requeststeps) is byte-identical to the canonical copy in openclaw/clawsweeper.github/workflows/clawsweeper-dispatch.yml, placed at the same structural position: afterCreate target comment token, before the dispatch steps. This repo's intentional local divergences (push/review triggers,gh_api_with_retrybackoff helper) are untouched; the ack step uses plaingh apiexactly as the template does, and stays template-identical for future propagation diffs.Step behavior, as designed in the template:
pull_request_targetwith actionready_for_reviewor non-draftopened.permission-issues: writeonly.clawsweeper-pr-ack:<action>marker; checks existing comments for the marker first so re-runs and reopen events stay idempotent.continue-on-error: true, so acknowledgment failures never block review dispatch.User Impact
Contributors opening a non-draft PR (or marking a draft ready for review) see a ClawSweeper receipt comment within seconds instead of silence until review starts. No change to review dispatch, issue handling, comment commands, or push/activity mirroring.
docs/reference/pull-request-review-flow.mdnow mentions the receipt comment so its "do not expect an immediate response" guidance stays accurate.Evidence
diffof the inserted block against canonical openclaw/clawsweepermainlines 72–135: byte-identical.actionlint .github/workflows/clawsweeper-dispatch.yml: clean.ruby -ryaml): OK.pull_request_targettrigger comment.