Skip to content

ci: admit ClawSweeper events before allocating a runner - #170

Merged
vincentkoc merged 3 commits into
mainfrom
fix/ci-dispatch-admission
Nov 20, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/ci-dispatch-admission

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

ClawSweeper accounted for 624 workflow runs in the audit window. Evaluate the existing event and author rules before allocating a runner. Comments need a slash or an at-sign to reach the existing command matcher. Eligible dispatches use GitHub’s single-CPU Ubuntu runner.

Security and verification

PR events and human label events retain their existing routes. Other issues and comments require an owner, member or collaborator. The job still uses OIDC and the comment matcher still receives the body through an environment variable. actionlint .github/workflows/clawsweeper-dispatch.yml passed.

@clawsweeper

clawsweeper Bot commented Nov 20, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 09:16
@vincentkoc
vincentkoc requested review from a team and Patrick-Erichsen as code owners November 20, 2026 09:16
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR moves ClawSweeper event admission before runner allocation and switches eligible jobs to the single-CPU Ubuntu runner.

Example: A MEMBER posts the comment “Thanks for checking this.”

  • Before: An ubuntu-latest runner starts, accepts the author's association, then rejects the comment as having no command.
  • After: The job skips before allocating a runner because the comment contains neither @ nor /.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-supported, with passing workflow linting; available runtime checks do not exercise the changed workflow.
Proof confidence 🦐 gold shrimp (3/6) This CI-only optimization requires no shipped-entry-point proof; workflow linting supports validation, while existing dispatch successes exercised the base workflow.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Ineligible GitHub events consume runner capacity before the dispatcher decides to skip them.
Reason: The maintainer-authored direction removes unnecessary runner allocation while preserving the existing dispatch contract and reducing workflow code.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: it provides a focused runner-allocation improvement absent from current main, with no actionable correctness or security finding.

Priority: P3
Reviewed head: 9c7a73aad5749b7f8b0394238011ebb114527f43

Before merge

None.

Findings

None.

Agent review details

How this fits together

The GitHub Actions dispatcher receives issue, pull-request and comment events, filters eligible activity, and sends OIDC-authenticated requests to ClawSweeper intake.

flowchart TD
  A[GitHub event] --> B[Job admission]
  B --> C[Skip without runner]
  B --> D[Ubuntu slim runner]
  D --> E[Comment command matcher]
  D --> F[OIDC dispatch]
  E --> F
  F --> G[ClawSweeper intake]
Loading

Technical review

Best possible solution:

Retain the single job-level admission owner and existing command matcher, with the scoped runner change.

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

Source inspection confirms main allocates a runner before rejecting ineligible events; no target code or workflows were executed during this review.

Is this the best way to solve the issue?

Moving the existing predicate to the job boundary is the smallest complete improvement, and the punctuation prefilter cannot exclude a command accepted by the unchanged matcher.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Event and author admission keeps the original intent (e929fe0: The maintainer-automation commit contains the existing trusted-source gate; the later OIDC migration explicitly records retaining its exact policy.)
  • OIDC transport and comment matching keeps the original intent (dddc762: Remove target-held App credentials while retaining trusted-source admission and independent App-webhook delivery.)
  • Runner selection changes intended behavior with a stated reason (e929fe0: The original automation used ubuntu-latest without a documented requirement for its larger runner; this PR explains selecting a single-CPU runner for eligible dispatches.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff replaces the shell trust step with an equivalent job condition, adds a necessary-character comment prefilter, changes the runner, and adds a changelog entry. (.github/workflows/clawsweeper-dispatch.yml:20, 9c7a73aad574)
  • Current main retains the original behavior: The workflow is unchanged between the pinned base and fetched main: main still allocates ubuntu-latest before evaluating the shell trust gate. (.github/workflows/clawsweeper-dispatch.yml:20, d7935a7bcc80)
  • Trust and transport intent: The OIDC migration commit explicitly preserves all PR events, issue label changes, and OWNER/MEMBER/COLLABORATOR admission for other issues and comments; this PR preserves those routes and the unchanged command matcher. (.github/workflows/clawsweeper-dispatch.yml:34, dddc76218377)
  • Discussion and maintainer direction: The complete PR body proposes reducing runner allocation while retaining trust and OIDC behavior; the author is a MEMBER, and both discussion comments are automated review-status notices. (9c7a73aad574)
  • Check coverage boundary: The reviewed head has eight successful checks and two skipped checks, including successful workflow linting; the inspected dispatch job used ubuntu-latest and the removed trust step, so its success does not exercise this patch. (.github/workflows/clawsweeper-dispatch.yml:20, 9c7a73aad574)
  • Runner prerequisites: The workflow executes on this runner image, making its installed tools directly relevant; GitHub's published inventory includes the runtime and command-line tools used by the dispatcher, while GitHub's runner reference identifies ubuntu-slim as single-CPU. (images/ubuntu-slim/ubuntu-slim-Readme.md)

Likely related people:

  • Peter Steinberger: Raw commit dddc762 adds .github/workflows/clawsweeper-dispatch.yml:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dddc76218377; files: .github/workflows/clawsweeper-dispatch.yml)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a focused CI resource-efficiency improvement with no established user-facing runtime failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused CI resource-efficiency improvement with no established user-facing runtime failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 20, 2026, 4:28 AM ET / 09:28 UTC.

@vincentkoc
vincentkoc merged commit 34ceacc into main Nov 20, 2026
8 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-dispatch-admission branch November 20, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant