Skip to content

ci: acknowledge pull request receipts in clawsweeper dispatch - #120934

Merged
steipete merged 1 commit into
mainfrom
steipete/clawsweeper-pr-ack
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/clawsweeper-pr-ack

Conversation

@steipete

@steipete steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

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.yml had 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 token and Acknowledge received pull request steps) is byte-identical to the canonical copy in openclaw/clawsweeper .github/workflows/clawsweeper-dispatch.yml, placed at the same structural position: after Create target comment token, before the dispatch steps. This repo's intentional local divergences (push/review triggers, gh_api_with_retry backoff helper) are untouched; the ack step uses plain gh api exactly as the template does, and stays template-identical for future propagation diffs.

Step behavior, as designed in the template:

  • Gated to pull_request_target with action ready_for_review or non-draft opened.
  • Mints a minimal ClawSweeper App token scoped to this repository with permission-issues: write only.
  • Posts "Pull request received. I will update this pull request when review starts." with the hidden clawsweeper-pr-ack:<action> marker; checks existing comments for the marker first so re-runs and reopen events stay idempotent.
  • Both steps are 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.md now mentions the receipt comment so its "do not expect an immediate response" guidance stays accurate.

Evidence

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.
@steipete
steipete marked this pull request as ready for review August 9, 2026 05:53
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Aug 9, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 9, 2026, 2:46 AM ET / 06:46 UTC.

ClawSweeper review

What this changes

The PR adds an idempotent ClawSweeper receipt comment for eligible pull requests and documents that the review itself remains queue-based.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: 9726f3cec8165f434c6e7f2bdb2257c0adc6697b

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The change is focused and follows the canonical template, but the introduced idempotence defect must be corrected before it is merge-ready.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a maintainer-authored workflow PR, so the external-contributor real-behavior-proof gate does not apply; static checks remain supplemental evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a maintainer-authored workflow PR, so the external-contributor real-behavior-proof gate does not apply; static checks remain supplemental evidence.
Evidence reviewed 4 items Current main lacks the feature: Current main contains neither the receipt token nor receipt marker, so the PR's central behavior is still necessary.
Marker ownership is not verified: The added deduplication predicate accepts a matching hidden marker without requiring that its comment was authored by the ClawSweeper App; a PR author can pre-seed it before ready_for_review.
Existing bot identity provides the repair boundary: The current workflow already recognizes clawsweeper[bot] for comment handling, so the receipt predicate can require that author as well as the marker.
Findings 1 actionable finding [P2] Require the receipt comment to be authored by ClawSweeper
Security None None.

How this fits together

The 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
Loading

Before merge

  • Require the receipt comment to be authored by ClawSweeper (P2) - The marker-only predicate treats a user-authored marker as an existing receipt. A draft PR can add clawsweeper-pr-ack:ready_for_review to its own comment and then become ready, causing this step to exit without posting the promised acknowledgement; also require the existing ClawSweeper bot author.
  • Resolve merge risk (P1) - A user-authored hidden marker can make the new ready-for-review path silently skip its receipt, undermining the contributor feedback the PR adds.
  • Complete next step (P2) - A deterministic repair is clear, but this freshly active maintainer-labeled PR requires its owner’s normal review and update path.

Findings

  • [P2] Require the receipt comment to be authored by ClawSweeper — .github/workflows/clawsweeper-dispatch.yml:165-171
Agent review details

Security

None.

PR surface

Docs +2, Config +64. Total +66 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 3 1 +2
Config 1 64 0 +64
Generated 0 0 0 0
Other 0 0 0 0
Total 2 67 1 +66

Review metrics

Metric Value Why it matters
Production vs test LOC production +67/-1; tests +0/-0 The added workflow and documentation implement a contributor-feedback capability; the production increase needs the narrow idempotence repair before merge.

Merge-risk options

Maintainer options:

  1. Bind receipt deduplication to the bot author (recommended)
    Require the existing ClawSweeper bot identity alongside the marker and prove that a user-authored marker cannot suppress the receipt.

Technical review

Best 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:

  • [P2] Require the receipt comment to be authored by ClawSweeper — .github/workflows/clawsweeper-dispatch.yml:165-171
    The marker-only predicate treats a user-authored marker as an existing receipt. A draft PR can add clawsweeper-pr-ack:ready_for_review to its own comment and then become ready, causing this step to exit without posting the promised acknowledgement; also require the existing ClawSweeper bot author.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The new workflow can silently omit its promised acknowledgement on a reproducible pull-request sequence.
  • add merge-risk: 🚨 automation: Merging changes the automated pull-request dispatch path and currently permits a user comment to suppress its new side effect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a maintainer-authored workflow PR, so the external-contributor real-behavior-proof gate does not apply; static checks remain supplemental evidence.

Label justifications:

  • P2: The new workflow can silently omit its promised acknowledgement on a reproducible pull-request sequence.
  • merge-risk: 🚨 automation: Merging changes the automated pull-request dispatch path and currently permits a user comment to suppress its new side effect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a maintainer-authored workflow PR, so the external-contributor real-behavior-proof gate does not apply; static checks remain supplemental evidence.

Evidence

What I checked:

  • Current main lacks the feature: Current main contains neither the receipt token nor receipt marker, so the PR's central behavior is still necessary. (.github/workflows/clawsweeper-dispatch.yml:104, dba99b355b4e)
  • Marker ownership is not verified: The added deduplication predicate accepts a matching hidden marker without requiring that its comment was authored by the ClawSweeper App; a PR author can pre-seed it before ready_for_review. (.github/workflows/clawsweeper-dispatch.yml:165, 9726f3cec816)
  • Existing bot identity provides the repair boundary: The current workflow already recognizes clawsweeper[bot] for comment handling, so the receipt predicate can require that author as well as the marker. (.github/workflows/clawsweeper-dispatch.yml:29, dba99b355b4e)
  • Feature is unmerged and unshipped: The PR head is not contained by a release tag; the proposed feature is neither on current main nor in the latest release. (9726f3cec816)

Likely related people:

  • steipete: Authored the PR and canonical receipt template; history shows the most recent central workflow work is also theirs. (role: recent workflow owner and template author; confidence: high; commits: 9726f3cec816, 73bdb4b924f6, 6971afb72029; files: .github/workflows/clawsweeper-dispatch.yml, docs/reference/pull-request-review-flow.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Require the ClawSweeper App author in the receipt predicate and show a redacted draft-comment-to-ready workflow trace.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

@steipete
steipete merged commit adcf5bd into main Aug 9, 2026
152 of 156 checks passed
@steipete
steipete deleted the steipete/clawsweeper-pr-ack branch August 9, 2026 07:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant