Repository navigation
feat(dispatch): acknowledge pull request receipt from the target dispatcher - #1080
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 9, 2026, 1:21 AM ET / 05:21 UTC. ClawSweeper reviewWhat this changesThe PR adds an idempotent target-dispatcher step that posts an early receipt acknowledgement for newly opened or ready-for-review pull requests. Merge readiness⛔ Blocked until real behavior proof is added - 8 items remain Keep this PR open: it fills a distinct target-dispatcher fallback not present in current main, but its marker lookup can be spoofed by any commenter and misses markers beyond the first comments page. It also needs inspectable after-fix workflow evidence before merge. Priority: P2 Review scores
Verification
How this fits togetherThe target dispatcher receives GitHub pull-request events in each target repository, optionally posts a receipt comment, then sends the item to ClawSweeper for review. The existing Worker webhook path posts the same receipt comment when webhook delivery is available. flowchart LR
A[Pull request event] --> B[Target dispatcher]
A --> C[Worker webhook]
B --> D[Receipt marker lookup]
C --> E[Worker marker lookup and cleanup]
D --> F[Receipt comment]
E --> F
B --> G[Exact review dispatch]
G --> H[Review result]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The new workflow makes an acknowledgement decision from untrusted public comment content. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Match the Worker’s authenticated, paginated acknowledgement lookup in both dispatcher copies, add focused spoofing and multi-page coverage, then attach a redacted controlled target-repository run proving one receipt comment and the stated Bay impact. Do we have a high-confidence way to reproduce the issue? Yes, for the review defects: a contributor can add the public marker to their PR before dispatch, and source inspection shows the workflow will skip the acknowledgement; a draft with more than 100 prior comments can similarly hide a page-two marker. Is this the best way to solve the issue? No. The dispatcher should reuse the current Worker’s authenticated, paginated marker semantics instead of relying on an unverified first-page text search. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 06bc47a5bde8. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What 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
|
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.
…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
Production evidence (four consecutive organic PRs on openclaw/openclaw, post-#1079) shows the Worker-webhook fast-ack never fires for PR events — the GitHub App appears not to deliver pull_request webhooks (delivery-log verification tracked separately, needs App admin). Meanwhile the target-repo dispatcher workflow demonstrably fires within seconds of PR open. Contributors still see nothing until the review job's eyes reaction, minutes later.
The Fix
The dispatcher posts the receipt acknowledgment itself: a new step in the clawsweeper-dispatch workflow (live copy and the canonical template in docs/target-dispatcher.md, byte-identical, with a test enforcing that), gated to non-draft
opened/ready_for_review, minting a minimal issues:write App token,continue-on-error, placed before review dispatch. It posts the exact Worker marker (clawsweeper-pr-ack:<action>) and body, and skips if any marker comment already exists — idempotent against duplicate runs and against the webhook route whenever it comes back to life.Target repos pick this up when their dispatcher copy is updated from the template (openclaw/openclaw propagation is a separate PR).
Proof
Full
pnpm test:unit1,973 pass / 0 fail;pnpm run check3,209 pass; coordinator autoreview clean (0.99). New tests: gating, marker/body exactness, placement, permissions, continue-on-error, live/template byte-parity.