Skip to content

ci: add runner label escape hatches - #1157

Merged
steipete merged 5 commits into
mainfrom
steipete/runner-label-escape-hatches
Aug 14, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/runner-label-escape-hatches

Conversation

@steipete

@steipete steipete commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The 2026-08-13 Blacksmith us-west outage showed that review jobs could fail over through their existing repository-variable runner controls, while six jobs still had literal Blacksmith runs-on labels and could not start elsewhere. In particular, the automerge E2E smoke stayed permanently queued while PR #1155 had to merge past it.

This change gives every Blacksmith-backed job a repository-variable escape hatch while preserving its current label as the fallback. Under the amended live-proof authority, CLAWSWEEPER_REPORT_RUNNER=ubuntu-latest is now set and intentionally remains set while Blacksmith us-west is unavailable. The E2E and spam variables remain unset, so their fallbacks are unchanged.

The six migrated jobs use:

  • CLAWSWEEPER_E2E_RUNNER for automerge E2E and containment smoke
  • CLAWSWEEPER_REPORT_RUNNER for the maintainer Discord report
  • CLAWSWEEPER_SPAM_RUNNER for spam intake and scanning
  • the existing CLAWSWEEPER_WORKER_RUNNER for repair result publication

Validation

The new workflow-tree ratchet parses every job and rejects a Blacksmith runner assignment without a vars.CLAWSWEEPER_*_RUNNER fallback. It also pins the six current mappings and unchanged default labels. Existing automerge and containment workflow-shape tests assert the exact expressions.

  • Live report-lane dispatch: run 31759075251, workflow_dispatch from steipete/runner-label-escape-hatches at 32334740ba22b0e7fe69d1c71bfc013441f3dbf6
  • Live resolved label: ubuntu-latest; assigned runner GitHub Actions 1011717149, runner group GitHub Actions; job completed successfully
  • Historical same-job contrast: run 31688886472, label blacksmith-4vcpu-ubuntu-2404, Blacksmith runner/group
  • Variable end-state: CLAWSWEEPER_REPORT_RUNNER=ubuntu-latest; CLAWSWEEPER_E2E_RUNNER and CLAWSWEEPER_SPAM_RUNNER absent
  • Local focused RED/GREEN: 9 passed, 0 failed after a failing pre-change control
  • Local full gate: pnpm run check passed, 3,419 passed / 0 failed / 9 skipped
  • Docker-backed Crabbox: provider=local-container, image node:24-bookworm, lease cbx_d1a06e39d867 (golden-prawn-16e4)
  • Container-tested runtime head: f84b7d60daa24d979eef6299be0d9c2a55fdab62
  • Live-Actions-tested head: 32334740ba22b0e7fe69d1c71bfc013441f3dbf6
  • Final proof head: 11117ec402f19bf3a51d64be512136ec55576599
  • Container focused tests: 9 passed / 0 failed
  • Container full gate: 3,420 passed / 0 failed / 8 skipped
  • Commit, tree, and base objects were resolved with git rev-parse and verified with git cat-file; the one-shot Crabbox lease stopped and is absent from the local-container inventory
  • Fresh structured review before the proof commit and again on the committed branch: no accepted/actionable findings

The committed proof is under docs/proof/runner-label-escape-hatches/. live-actions.md contains the redacted Actions/API transcript, exact runner assignment, historical contrast, behavior contract, object cross-checks, and variable end-state. The directory also retains the RED/GREEN transcript, static jq recipe, and container receipt.

Proof limits

The live run exercises the report-lane override expression, GitHub-hosted runner assignment and pickup, and successful report-job completion. It does not dispatch the E2E, containment, repair-publication, or spam lanes; those exact mappings and unchanged fallbacks remain covered by the workflow-shape tests and repository gate. The same-job historical run provides the report lane's pre-change Blacksmith contrast.

OpenClaw Bay is unaffected because this changes runner selection only, not workflow lifecycle publication, status telemetry, dashboard data contracts, or the observer-only action boundary.

@steipete
steipete requested a review from a team as a code owner August 14, 2026 00:50
@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 9:11 PM ET / August 14, 2026, 01:11 UTC.

ClawSweeper review

What this changes

The PR adds repository-variable runner overrides, with current Blacksmith labels as fallbacks, for six GitHub Actions jobs.

Regression provenance

Possible regression — probable (failure trace; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this PR open for maintainer review: the provided diff and same-head prior review support the implementation and proof, but runner overrides change operational workflow execution and the local read-only inspection environment failed before independent checkout/history verification.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is narrowly scoped and has unusually concrete live proof for one lane, while a maintainer must still approve the operational override policy for all six lanes.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The provided committed transcript and PR body show an after-fix live report-lane dispatch resolving ubuntu-latest, receiving a GitHub-hosted runner, and completing successfully; the other mappings have focused workflow-shape coverage and unchanged defaults.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The provided committed transcript and PR body show an after-fix live report-lane dispatch resolving ubuntu-latest, receiving a GitHub-hosted runner, and completing successfully; the other mappings have focused workflow-shape coverage and unchanged defaults.
Evidence reviewed 5 items Six workflow runner mappings: The provided hydrated PR diff changes six literal Blacksmith runs-on assignments to repository-variable expressions while preserving the prior label as the fallback.
Workflow invariant coverage: The PR adds a workflow-tree test that pins the six mappings and checks Blacksmith runner assignments for a CLAWSWEEPER runner-variable fallback.
After-fix operational evidence: The provided PR body and committed transcript describe a dispatch of the report lane with CLAWSWEEPER_REPORT_RUNNER=ubuntu-latest, assignment to a GitHub-hosted runner, and successful completion; the remaining lanes retain their defaults when variables are unset.
Findings None None.
Security None None.

How this fits together

ClawSweeper’s GitHub Actions workflows run reporting, repair, containment, automerge, and spam-processing lanes. Each job resolves a repository variable or its established Blacksmith runner label before execution.

flowchart LR
  A[Repository variables] --> C[Runner selection]
  B[Blacksmith fallback labels] --> C
  C --> D[Report and review jobs]
  C --> E[Repair and containment jobs]
  C --> F[Spam processing jobs]
  D --> G[Operational workflow results]
  E --> G
  F --> G
Loading

Decision needed

Question Recommendation
Should repository variables be accepted as the incident-time mechanism for redirecting these six operational jobs from Blacksmith runners to another runner class? Approve the incident override policy: Accept the six variable-backed fallbacks with an identified operator and documented conditions for setting and clearing each override.

Why: The patch preserves fallback behavior, but the acceptable executor and operational lifetime for jobs that may handle reporting, spam, repair, or repository-token work is an ownership policy choice rather than a mechanically provable property.

Before merge

  • Resolve merge risk (P2) - Repository variables can redirect jobs that process operational data or create repository tokens onto a different runner class; static fallback tests do not establish the intended incident policy for every privileged lane.
  • Resolve merge risk (P1) - Independent checkout, history, maintainer-note, and GitHub-comment inspection was blocked by the read-only environment failure.
  • Complete next step (P2) - A maintainer must approve the allowed alternate-runner policy; there is no narrow mechanical repair to dispatch.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Runner mappings 6 workflow job assignments changed All identified literal Blacksmith runner selections gain a variable fallback.
Patch scope 14 files, +577 / -8 Most added material is committed validation and proof for a small workflow-expression change.

Merge-risk options

Maintainer options:

  1. Approve the incident override policy (recommended)
    Accept the fallback expressions after an operations owner confirms which runner classes and override lifetimes are allowed for all six jobs.
  2. Narrow the redirected lanes
    Restrict the variables to explicitly approved jobs if a shared runner override policy is not acceptable for repair, spam, and reporting work.

Technical review

Best possible solution:

Adopt a maintainer-approved incident-runner policy that names the authorized override variables, eligible runner classes, responsible operator, and removal conditions while retaining Blacksmith defaults when no override is set.

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

Not applicable as a conventional bug report; the provided PR evidence instead documents an after-fix report-lane dispatch and runner assignment.

Is this the best way to solve the issue?

Unclear until a maintainer confirms the operational trust policy; preserving the existing labels as fallbacks is a narrow implementation, but the permitted override scope is a human decision.

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded operational-resilience improvement with limited user-facing blast radius.
  • merge-risk: 🚨 automation: The PR changes where six GitHub Actions jobs execute when repository variables are set.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The provided committed transcript and PR body show an after-fix live report-lane dispatch resolving ubuntu-latest, receiving a GitHub-hosted runner, and completing successfully; the other mappings have focused workflow-shape coverage and unchanged defaults.
  • proof: sufficient: Contributor real behavior proof is sufficient. The provided committed transcript and PR body show an after-fix live report-lane dispatch resolving ubuntu-latest, receiving a GitHub-hosted runner, and completing successfully; the other mappings have focused workflow-shape coverage and unchanged defaults.

Evidence

What I checked:

  • Six workflow runner mappings: The provided hydrated PR diff changes six literal Blacksmith runs-on assignments to repository-variable expressions while preserving the prior label as the fallback. (.github/workflows/automerge-e2e.yml:35, 11117ec402f1)
  • Workflow invariant coverage: The PR adds a workflow-tree test that pins the six mappings and checks Blacksmith runner assignments for a CLAWSWEEPER runner-variable fallback. (test/workflow-runner-labels.test.ts:13, 11117ec402f1)
  • After-fix operational evidence: The provided PR body and committed transcript describe a dispatch of the report lane with CLAWSWEEPER_REPORT_RUNNER=ubuntu-latest, assignment to a GitHub-hosted runner, and successful completion; the remaining lanes retain their defaults when variables are unset. (docs/proof/runner-label-escape-hatches/live-actions.md:1, 11117ec402f1)
  • Prior review continuity: The supplied prior ClawSweeper review applied to the current head, recorded no findings, and rated the live proof sufficient; its earlier cycle also had no findings. (11117ec402f1)
  • Inspection limitation: Attempted read-only local inspection failed before command execution with “bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted”; current checkout files and git history could not be independently verified.

Likely related people:

  • steipete: The supplied context identifies steipete as author of merged workflow-adjacent PR Make comment router resilient to GitHub throttling #1155 at the current main SHA and as author of this runner-control PR. (role: recent workflow and repair-lane contributor; confidence: medium; commits: dc738b384565, 11117ec402f1; files: .github/workflows/maintainer-report-discord.yml, .github/workflows/repair-publish-results.yml)

Rank-up moves

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

  • Record the approved runner-class and override-lifetime policy for each operational lane before merge.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-14T00:53:37.452Z sha 3233474 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-14T01:03:25.003Z sha 11117ec :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 14, 2026
@steipete
steipete merged commit 4398fe9 into main Aug 14, 2026
27 checks passed
@steipete
steipete deleted the steipete/runner-label-escape-hatches branch August 14, 2026 01:42
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. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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