Skip to content

fix(ci): route trusted dispatch lint to matrix runner - #130963

Merged
vincentkoc merged 1 commit into
mainfrom
fix/frv-trusted-dispatch-runner-20260827
Aug 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/frv-trusted-dispatch-runner-20260827

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a release-validation problem where ordinary trusted CI dispatches configured for Blacksmith still forced check-shard onto GitHub-hosted runners. The 2026.9.1 beta validation lint job was externally shut down twice with exit 143 and no lint diagnostic.

Why This Change Was Made

Ordinary canonical workflow_dispatch runs now honor the configured matrix runner for check-shard. GitHub and hybrid profiles remain hosted, untrusted pull requests remain hosted, and the exact-head release_gate fallback remains explicitly hosted.

User Impact

No product runtime behavior changes. Maintainers can validate frozen release candidates using the repository's configured Blacksmith lint runner without weakening contributor trust routing or release-gate isolation.

Evidence

  • Before fix: the focused runner evaluator received ubuntu-24.04 for a canonical Blacksmith lint dispatch instead of blacksmith-32vcpu-ubuntu-2404.
  • After fix: ordinary Blacksmith dispatch selects blacksmith-32vcpu-ubuntu-2404; Blacksmith release_gate, GitHub, hybrid, and untrusted pull request cases select ubuntu-24.04.
  • pnpm exec vitest run test/scripts/ci-workflow-guards.test.ts: 137 passed, 2 skipped.
  • actionlint .github/workflows/ci.yml: passed.
  • python3 scripts/check-composite-action-input-interpolation.py: passed.
  • node scripts/check-no-conflict-markers.mjs: passed.
  • pnpm exec oxfmt --check test/scripts/ci-workflow-guards.test.ts .github/workflows/ci.yml: passed.
  • git diff --check: passed.
  • Autoreview: clean, no accepted/actionable findings.
  • Full pnpm check:workflows could not install pinned pre-commit==4.6.2 from the host's configured Python index; the directly invoked actionlint and repository workflow guard surfaces above passed.
  • Failure evidence: CI run 33075615602 attempts 1 and 2 used GitHub Actions runners for check-lint; both ended during Run check shard after runner shutdown, with no lint finding.
  • Dependency audit: inspected openai/codex at a6e63f9f32525d171676ac49c4e87ab00d76f0ce, including codex-cli/bin/codex.js:16-107 and codex-cli/bin/codex.js:195-248; this CI-only change does not alter Codex package selection or process exit semantics.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 27, 2026
@vincentkoc vincentkoc self-assigned this Aug 27, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 27, 2026 14:02
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 10:11 AM ET / 14:11 UTC.

ClawSweeper review

What this changes

The PR routes ordinary trusted Blacksmith workflow dispatches for CI check shards to their matrix-selected runner, while keeping release gates, hybrid dispatches, and untrusted pull requests hosted.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for explicit maintainer handling: the patch removes current main’s unconditional hosted-runner routing for ordinary Blacksmith dispatches while retaining the hybrid and release-gate hosted boundaries.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-backed CI repair with a remaining manual-dispatch confirmation that would reduce automation-placement risk.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused evaluator and workflow-sanity evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused evaluator and workflow-sanity evidence.
Evidence reviewed 4 items Current-main behavior: Current main still has an unconditional workflow-dispatch clause that selects ubuntu-24.04 before matrix runner selection, so the requested behavior is not already implemented.
Proposed routing and regression coverage: The PR replaces that broad dispatch clause with a release-gate-only hosted exception and adds evaluator coverage for Blacksmith, release-gate, GitHub, hybrid, and untrusted-pull-request cases.
Release-gate boundary: The workflow defines release_gate as an explicit dispatch input and validates its exact-SHA PR-gate constraints before check shards run.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts

Result: PASS (completed)

hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-fyExo3/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-fyExo3/origin.git
 * [new branch]      automation/locale -› automation/locale
Switched to branch 'main'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-ddIsmS/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-ddIsmS/origin.git
 * [new branch]      automation/locale -› automation/locale
Switched to branch 'main'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hin
… output truncated …
     main -› main
Cloning into '/tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-qxETY8/updater'...
done.
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-qxETY8/origin.git
   60205e3..05cfb68  main -› main
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-ErRYBD/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-ErRYBD/origin.git
 * [new branch]      automation/locale -› automation/locale
Switched to branch 'main'
Cloning into '/tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-ErRYBD/updater'...
done.
To /tmp/clawsweeper-live-proof-130963-0orRL3/profile/tmp/openclaw-generated-pr-ErRYBD/origin.git
   b42088b..d4e54fd  main -› main
! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.22.0.tgz
unaudited install lifecycle scripts in package.json; update FILTERED_SCRIPT_CONTRACTS and INSTALL_INPUT_FILES
unaudited install lifecycle scripts in packages/worker/package.json; update FILTERED_SCRIPT_CONTRACTS and INSTALL_INPUT_FILES

 Test Files  1 passed (1)
      Tests  139 passed (139)
   Start at  14:11:52
   Duration  32.09s (transform 536ms, setup 63ms, import 402ms, tests 31.24s, environment 0ms)

[test] passed 1 Vitest shard in 38.66s

Assertions:

  • NOT OBSERVED expect_output: honors trusted dispatch runner selection for check shards — command exited successfully; expected output was not observed in the captured pane

How this fits together

CI preflight determines the event and trust context, then each check shard selects a runner before lint, type, and dependency checks execute. The routing must distinguish normal maintainer dispatches from release-gate and untrusted paths.

flowchart LR
  A[Manual dispatch or pull request] --> B[CI preflight]
  B --> C[Check shard matrix]
  C --> D[Runner routing policy]
  D --> E[Blacksmith or hosted runner]
  E --> F[Lint and validation checks]
Loading

Decision needed

Question Recommendation
Should this runner-placement change be accepted after one canonical non-release Blacksmith dispatch confirms matrix selection for check-shard? Confirm a canonical dispatch: Run a non-release Blacksmith workflow dispatch at this head and verify that check-shard uses its configured matrix runner while release_gate remains hosted.

Why: The maintainer label and MEMBER association require explicit maintainer handling, and the changed branch is only reachable through a manual workflow dispatch.

Before merge

  • Resolve merge risk (P1) - This changes actual CI placement for every check-shard matrix row on ordinary Blacksmith dispatches; PR-triggered CI does not itself exercise the workflow_dispatch branch.
  • Complete next step (P2) - This maintainer-labeled, MEMBER-authored PR requires explicit CI-owner review rather than automated cleanup or repair dispatch.
Agent review details

Security

None.

PR surface

Tests +40, Config 0. Total +40 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 40 0 +40
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 41 1 +40

Review metrics

Metric Value Why it matters
Production versus test delta production 0 net (1 routing expression replaced); tests +40 The repair changes placement policy without growing production logic, and its added coverage exercises the new dispatch boundary.

Merge-risk options

Maintainer options:

  1. Confirm manual runner selection (recommended)
    Before merge, observe one ordinary Blacksmith dispatch at this head and confirm that check-shard uses the matrix-selected runner.
  2. Accept source-level coverage
    Merge based on the evaluator coverage if a manual dispatch is not warranted for this CI-only change.

Technical review

Best possible solution:

Keep one runner-routing policy and confirm a non-release Blacksmith dispatch of this head schedules check-shard on its matrix runner while a release-gate dispatch remains hosted.

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

Yes—source is reproducible: current main’s unconditional manual-dispatch clause precedes matrix selection, while the PR’s evaluator encodes the intended Blacksmith result. The focused test was not rerun in this read-only review.

Is this the best way to solve the issue?

Yes—the condition removes the over-broad dispatch exception at the routing owner while preserving the higher-priority hybrid and explicit release-gate exceptions.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The repair affects release-validation CI placement but not product runtime behavior.
  • add merge-risk: 🚨 automation: The workflow expression changes where manual CI checks execute, which ordinary pull-request CI does not directly exercise.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused evaluator and workflow-sanity evidence.

Label justifications:

  • P2: The repair affects release-validation CI placement but not product runtime behavior.
  • merge-risk: 🚨 automation: The workflow expression changes where manual CI checks execute, which ordinary pull-request CI does not directly exercise.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored CI-only PR is exempt from the external-contributor real-behavior-proof gate; its body supplies focused evaluator and workflow-sanity evidence.

Evidence

What I checked:

  • Current-main behavior: Current main still has an unconditional workflow-dispatch clause that selects ubuntu-24.04 before matrix runner selection, so the requested behavior is not already implemented. (.github/workflows/ci.yml:2593, 7e7c5d4d77de)
  • Proposed routing and regression coverage: The PR replaces that broad dispatch clause with a release-gate-only hosted exception and adds evaluator coverage for Blacksmith, release-gate, GitHub, hybrid, and untrusted-pull-request cases. (.github/workflows/ci.yml:2593, e427e5bef5c6)
  • Release-gate boundary: The workflow defines release_gate as an explicit dispatch input and validates its exact-SHA PR-gate constraints before check shards run. (.github/workflows/ci.yml:21, e427e5bef5c6)
  • Feature-history provenance: Blame attributes the current hosted-dispatch routing expression and the surrounding runner-profile test to the same recent main commit, identifying the current decision-surface owner. (.github/workflows/ci.yml:2593, 4f9466af6f54)

Likely related people:

  • Ayaan Zaidi: Current main blame ties the check-shard runner expression and adjacent runner-profile test to this commit. (role: recent CI routing contributor; confidence: high; commits: 4f9466af6f54; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

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

  • Observe one non-release Blacksmith workflow dispatch at this head and redact any non-public runner details before posting its result.

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.

@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper Rank-up move handled.

This proves ordinary trusted Blacksmith workflow_dispatch uses the configured matrix runner while the separate release-gate hosted invariant remains covered by the focused evaluator and exact-head CI.

@vincentkoc
vincentkoc merged commit 5090935 into main Aug 27, 2026
430 of 433 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-trusted-dispatch-runner-20260827 branch August 27, 2026 14:58
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Kaneki-x pushed a commit to Kaneki-x/openclaw that referenced this pull request Aug 28, 2026
The previous android-build-play timeout ran before openclaw#130963
("fix(ci): honor trusted dispatch matrix runners") landed on main at
14:58 UTC. pull_request runs take the workflow from the base branch, so a
fresh run picks that up.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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