Skip to content

ci: add ClawSweeper dispatch workflow - #1193

Merged
steipete merged 1 commit into
mainfrom
ci/clawsweeper-dispatch
Jul 27, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/clawsweeper-dispatch

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Adds the standard ClawSweeper dispatch workflow so this repo's issues and PRs are reviewed by ClawSweeper (org-wide rollout, see openclaw/clawsweeper#875).

@steipete
steipete enabled auto-merge (squash) July 27, 2026 01:55
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Jul 27, 2026
@clawsweeper

clawsweeper Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 26, 2026, 9:58 PM ET / July 27, 2026, 01:58 UTC.

ClawSweeper review

What this changes

This PR adds a 202-line GitHub Actions workflow that receives issue, comment, and pull-request events, filters them, and dispatches review work to the central ClawSweeper repository.

Merge readiness

⛔ Blocked until real behavior proof is added - 6 items remain

Keep this PR open for maintainer security review and live dispatch evidence. The visible patch is a focused, pinned-action workflow addition, but it introduces a cross-repository GitHub App token path and the supplied PR context does not show an after-fix dispatch run.

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

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and uses a pinned action, but the missing real dispatch proof and unconfirmed privileged event boundary prevent a merge-ready rating.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: No redacted workflow run, dispatch receipt, or resulting review trace is present; before merge, add real allowed-versus-filtered event evidence and redact private endpoints, IP addresses, and credentials. Updating the PR body should trigger a fresh review; otherwise a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: No redacted workflow run, dispatch receipt, or resulting review trace is present; before merge, add real allowed-versus-filtered event evidence and redact private endpoints, IP addresses, and credentials. Updating the PR body should trigger a fresh review; otherwise a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Focused workflow surface: The PR adds one new workflow file with 202 added lines and no deletions; its stated purpose is the organization-wide ClawSweeper dispatch rollout.
Security-sensitive event boundary: The visible workflow uses pull_request_target without checking out PR code, sets the repository token to contents: read, and creates a GitHub App token scoped to the openclaw/clawsweeper repository; this is a deliberate but privileged cross-repository dispatch boundary.
Pinned token action: The GitHub App token action is SHA-pinned in the proposed workflow, reducing mutable-action supply-chain exposure for that dependency.
Findings None None.
Security Needs attention Review the cross-repository dispatch authority: The new workflow creates a GitHub App token for the central ClawSweeper repository after processing externally influenced issue, comment, and pull-request events. Confirm the complete filtering and outbound payload prevent unintended privileged dispatches.

How this fits together

The new workflow sits at Crabbox’s GitHub-event boundary. It receives repository activity, applies event/comment filtering, obtains a narrowly targeted GitHub App token, and asks the central ClawSweeper service to review the matching item.

flowchart LR
  A[Issue or pull request event] --> B[Crabbox dispatch workflow]
  B --> C[Event and comment filters]
  C --> D[GitHub App token]
  D --> E[Central ClawSweeper dispatcher]
  E --> F[Review job and result]
Loading

Decision needed

Question Recommendation
Does the repository approve this workflow’s pull_request_target-triggered, cross-repository GitHub App token boundary after reviewing the full event filters and dispatch payload? Review filters and prove dispatch: Recommended: confirm the full workflow only forwards intended event data, then attach a redacted allowed-versus-filtered live dispatch run before merge.

Why: The workflow’s intended behavior requires privileged cross-repository dispatch; whether its filtering and token scope are acceptable is a repository security decision rather than a mechanical contributor repair.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: No redacted workflow run, dispatch receipt, or resulting review trace is present; before merge, add real allowed-versus-filtered event evidence and redact private endpoints, IP addresses, and credentials. Updating the PR body should trigger a fresh review; otherwise a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Review the cross-repository dispatch authority - The new workflow creates a GitHub App token for the central ClawSweeper repository after processing externally influenced issue, comment, and pull-request events. Confirm the complete filtering and outbound payload prevent unintended privileged dispatches.
  • Resolve merge risk (P1) - Merging grants this event-driven workflow a GitHub App token capable of writing to the separate ClawSweeper repository, so its filters and dispatch payload must not let untrusted issue, comment, or pull-request content trigger unintended privileged work.
  • Resolve merge risk (P1) - The PR has no after-fix evidence from a real GitHub event, leaving the event filter, token creation, and central dispatch path unverified before merge.
  • Complete next step (P2) - A maintainer must approve the privileged event-dispatch model, and the contributor must provide real workflow behavior proof; neither is a safe automated code-repair task.

Findings

  • [medium] Review the cross-repository dispatch authority — .github/workflows/clawsweeper-dispatch.yml:34
Agent review details

Security

Needs attention: The visible patch uses pinned actions and avoids PR-code checkout, but its pull_request_target and cross-repository App-token boundary needs maintainer confirmation before merge.

Review metrics

Metric Value Why it matters
Workflow surface 1 workflow added; 202 additions; 0 deletions The entire change is an event-driven automation entry point, so its authorization and filtering behavior are the central merge considerations.

Merge-risk options

Maintainer options:

  1. Verify the privileged dispatch path (recommended)
    Before merge, have a maintainer inspect the full filter and payload logic and attach redacted evidence of one permitted and one filtered real event.
  2. Approve the standardized token model
    Accept the cross-repository GitHub App token boundary only if its scope and event handling are confirmed to match the approved organization-wide rollout.
  3. Pause the rollout in Crabbox
    Close or defer this PR if the repository is not prepared to own this privileged event-dispatch integration.

Technical review

Best possible solution:

Retain the narrowly scoped dispatcher, but merge only after a maintainer confirms the untrusted-event boundary and a redacted live run shows one allowed event dispatching successfully while an excluded event does not.

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

No high-confidence live reproduction is supplied. The relevant verification is a redacted real GitHub Actions run showing an allowed Crabbox event reaches ClawSweeper and a filtered event does not.

Is this the best way to solve the issue?

Unclear. A centralized dispatcher is a plausible organization-wide solution, but this repository should first verify the complete event filters, payload handling, and App-token boundary rather than relying only on static workflow review.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded CI-automation change with repository-wide review-routing impact but no demonstrated current user outage.
  • add merge-risk: 🚨 security-boundary: The workflow handles pull-request-target events and creates a cross-repository GitHub App token from a repository secret.
  • add merge-risk: 🚨 automation: A new event-triggered dispatcher can alter review routing, duplicate or suppress dispatches, and affect organization automation after merge.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: No redacted workflow run, dispatch receipt, or resulting review trace is present; before merge, add real allowed-versus-filtered event evidence and redact private endpoints, IP addresses, and credentials. Updating the PR body should trigger a fresh review; otherwise a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This is a bounded CI-automation change with repository-wide review-routing impact but no demonstrated current user outage.
  • merge-risk: 🚨 security-boundary: The workflow handles pull-request-target events and creates a cross-repository GitHub App token from a repository secret.
  • merge-risk: 🚨 automation: A new event-triggered dispatcher can alter review routing, duplicate or suppress dispatches, and affect organization automation after merge.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: No redacted workflow run, dispatch receipt, or resulting review trace is present; before merge, add real allowed-versus-filtered event evidence and redact private endpoints, IP addresses, and credentials. Updating the PR body should trigger a fresh review; otherwise a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Review the cross-repository dispatch authority — .github/workflows/clawsweeper-dispatch.yml:34
    The new workflow creates a GitHub App token for the central ClawSweeper repository after processing externally influenced issue, comment, and pull-request events. Confirm the complete filtering and outbound payload prevent unintended privileged dispatches.
    Confidence: 0.86

What I checked:

  • Focused workflow surface: The PR adds one new workflow file with 202 added lines and no deletions; its stated purpose is the organization-wide ClawSweeper dispatch rollout. (.github/workflows/clawsweeper-dispatch.yml:1, bd58289dd7a8)
  • Security-sensitive event boundary: The visible workflow uses pull_request_target without checking out PR code, sets the repository token to contents: read, and creates a GitHub App token scoped to the openclaw/clawsweeper repository; this is a deliberate but privileged cross-repository dispatch boundary. (.github/workflows/clawsweeper-dispatch.yml:8, bd58289dd7a8)
  • Pinned token action: The GitHub App token action is SHA-pinned in the proposed workflow, reducing mutable-action supply-chain exposure for that dependency. (.github/workflows/clawsweeper-dispatch.yml:34, bd58289dd7a8)
  • No live behavior proof supplied: The PR body describes the rollout but contains no redacted workflow run, dispatch receipt, or resulting review trace proving that a real event reaches ClawSweeper and that filtered events do not dispatch. (bd58289dd7a8)
  • Repository policy applied: The repository policy requires secrets to remain out of the repository and treats GitHub Actions as release-sensitive infrastructure; this review therefore treats the App-key and cross-repository token path as a maintainer-visible security boundary. (AGENTS.md:1, 54a2ae3de064)

Likely related people:

  • steipete: The supplied PR metadata attributes the workflow commit and the referenced organization-wide rollout proposal to this contributor; no separate Crabbox workflow-history owner could be established from the read-only environment. (role: organization-wide dispatcher rollout author; confidence: low; commits: bd58289dd7a8; files: .github/workflows/clawsweeper-dispatch.yml)

Rank-up moves

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

  • Attach redacted evidence of a real permitted dispatch and a filtered non-dispatch.
  • Have a maintainer confirm the complete pull_request_target filter and cross-repository token boundary.

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 b77291e into main Jul 27, 2026
19 checks passed
@steipete
steipete deleted the ci/clawsweeper-dispatch branch July 27, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant