Skip to content

perf(ci): shorten full release validation scheduling - #127140

Closed
vincentkoc wants to merge 3 commits into
mainfrom
perf/frv-scheduling-stalls
Closed

vincentkoc wants to merge 3 commits into
mainfrom
perf/frv-scheduling-stalls

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #127107
Related: #127014

What Problem This Solves

Resolves two release validation stalls: first-attempt iOS jobs were forced onto a substantially slower hosted macOS runner, and Matrix/Buzz QA calls sharing one target SHA serialized behind the same concurrency key.

Why This Change Was Made

Trusted first-attempt FRV parents are authenticated through the Actions API before iOS can use Blacksmith. Reruns, generic dispatches, release gates, backend overrides, malformed identity, terminal parents, and API failures all fall back to hosted macOS. Matrix and Buzz now have explicit lane scopes while retaining same-lane resource locks.

This draft should rebase once #127107 and #127014 settle because they overlap CI and FRV workflow ownership.

User Impact

Release validation should reach its next critical path roughly 15-20 minutes sooner, while retries and unauthenticated runs retain the conservative hosted runner.

Evidence

  • Focused routing and concurrency guards passed.
  • YAML parsing, formatting, and git diff --check passed.
  • Two independent exact-head reviews found no remaining workflow or security issue.
  • Existing live evidence measured the same iOS workload at roughly 72 minutes hosted versus 18 minutes on Blacksmith.
  • Hosted exact-head timing proof remains pending on this draft.

@clawsweeper

clawsweeper Bot commented Aug 21, 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 docs Improvements or additions to documentation size: M maintainer Maintainer-authored PR labels Aug 21, 2026
@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: 🦐 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 Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 23, 2026, 11:12 AM ET / 15:12 UTC.

ClawSweeper review

What this changes

The PR routes an authenticated first Full Release Validation iOS attempt to Blacksmith and gives Matrix and Buzz release QA separate queue scopes.

Merge readiness

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

Keep open: the new fast-runner grant validates an active Full Release Validation run but does not bind this CI dispatch to that parent, so a generic manual dispatch can replay the visible tuple while the parent is active.

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

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Focused guard coverage exists, but the fast-route authority can be replayed and lacks final-effect proof.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: add a redacted exact-head non-publishing Actions trace showing the actual parent child selects Blacksmith while a generic dispatch with copied parent metadata stays hosted; redact private identifiers and endpoints. 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 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: add a redacted exact-head non-publishing Actions trace showing the actual parent child selects Blacksmith while a generic dispatch with copied parent metadata stays hosted; redact private identifiers and endpoints. 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 Unbound authority grant: The PR accepts parent run ID and attempt as ordinary dispatch inputs, validates properties of that run, then grants the fast-route signal; it never proves that this CI run was created by that parent.
Caller-controlled tuple: The Full Release Validation caller passes its run tuple, but the same workflow_dispatch inputs remain available to a generic CI dispatch.
Tests omit replayed manual dispatch: The guard test proves a valid mocked parent enables Blacksmith and that missing inputs stay hosted, but it does not exercise a generic manual CI dispatch carrying a valid active parent tuple.
Findings 1 actionable finding [P1] Bind the fast runner grant to the parent invocation
Security Needs attention Parent metadata can be replayed by manual CI: The API verifies that a supplied parent run is valid, but it does not establish that the current CI run originated from that parent before enabling Blacksmith.

Live Verification

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

Result: PASS (completed)

     ✓ keeps workflow guards in fast CI-routing checks  533ms
To /tmp/clawsweeper-live-proof-127140-9IiROY/profile/tmp/openclaw-generated-pr-t971HY/origin.git
 * [new branch]      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-127140-9IiROY/profile/tmp/openclaw-generated-pr-SLyeel/origin.git
 * [new branch]      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-127140-9IiROY/profile/tmp/openclaw-generated-pr-LbRnrW/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-127140-9IiROY/profile/tmp/openclaw-generated-pr-LbRnrW/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-127140-9IiROY/profile/tmp/openclaw-generated-pr-iymE0g/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-127140-9IiROY/profile/tmp/openclaw-generated-pr-iymE0g/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-127140-9IiROY/profile/tmp/openclaw-generated-pr-7db5xC/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-127140-9IiROY/profile/tmp/openclaw-generated-pr-7db5xC/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 suppres
… output truncated …

Assertions:

  • PASS expect_output: Test Files

How this fits together

Full Release Validation dispatches CI and reusable QA lanes for a target release SHA. CI preflight selects the iOS runner, while reusable QA calls apply lane-specific concurrency locks before executing live checks.

flowchart LR
  A[Release validation parent] --> B[CI dispatch inputs]
  B --> C[Hosted preflight]
  C --> D[Parent run API check]
  D --> E[Runner eligibility signal]
  E --> F[iOS runner selection]
  A --> G[Matrix and Buzz QA calls]
  G --> H[Lane-specific queue locks]
Loading

Decision needed

Question Recommendation
Should Blacksmith eligibility be restricted to a parent-bound Full Release Validation invocation, rather than any manual CI dispatch that supplies matching parent metadata? Bind the child to its parent: Move the fast-route grant onto a parent-owned invocation mechanism and prove copied workflow-dispatch inputs cannot select Blacksmith.

Why: The intended hosted-versus-fast capacity boundary is clear, but choosing a GitHub Actions mechanism that carries non-replayable parent authority requires maintainer direction.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: add a redacted exact-head non-publishing Actions trace showing the actual parent child selects Blacksmith while a generic dispatch with copied parent metadata stays hosted; redact private identifiers and endpoints. 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.
  • Bind the fast runner grant to the parent invocation (P1) - This was visible at the earlier reviewed head: these are caller-controlled workflow_dispatch inputs, so a manual first-attempt CI run can copy an active valid parent tuple and target SHA, pass the API checks, and set the signal that sends iOS to Blacksmith. That contradicts the documented generic-dispatch fallback and makes the parent metadata a replayable capability; use a parent-bound invocation path and cover the copied-tuple rejection case.
  • Resolve security concern: Parent metadata can be replayed by manual CI - The API verifies that a supplied parent run is valid, but it does not establish that the current CI run originated from that parent before enabling Blacksmith.
  • Resolve merge risk (P1) - Merging the current workflow lets a manually dispatched first-attempt CI run select Blacksmith by replaying a live valid parent run ID, attempt, and target SHA.
  • Resolve merge risk (P1) - No exact-head non-publishing Actions trace proves that a generic dispatch with copied parent metadata remains hosted.
  • Complete next step (P2) - A maintainer must choose the non-replayable GitHub Actions boundary before any repair can safely proceed.
  • Improve patch quality - Use a non-replayable parent-bound invocation mechanism.
  • Improve patch quality - Add a copied-metadata rejection test at the runner-selection boundary.
  • Improve patch quality - Attach a redacted non-publishing exact-head Actions trace for both allowed and nearest-forbidden cases.

Findings

  • [P1] Bind the fast runner grant to the parent invocation — .github/workflows/ci.yml:223
  • [high] Parent metadata can be replayed by manual CI — .github/workflows/ci.yml:223
Agent review details

Security

Needs attention: The patch introduces a replayable authorization path for scarce runner capacity; no new dependency or action source was added.

PR surface

Tests +222, Docs +2, Config +102. Total +326 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 225 3 +222
Docs 1 3 1 +2
Config 4 105 3 +102
Generated 0 0 0 0
Other 0 0 0 0
Total 7 333 7 +326

Review metrics

Metric Value Why it matters
Production versus test delta production +104, tests +222 The workflow and documentation growth is aimed at runner-routing and queue policy, but its new authority boundary must be corrected before that growth is justified.

Merge-risk options

Maintainer options:

  1. Bind runner access to the parent (recommended)
    Replace replayable workflow-dispatch metadata with a parent-bound path and add rejection coverage before merge.
  2. Pause the fast-route portion
    Keep the safe QA lock-scope improvement separate until maintainers choose the intended CI authority boundary.

Technical review

Best possible solution:

Use a parent-bound invocation path that cannot be forged through workflow-dispatch inputs, add the replay rejection case, then attach a redacted non-publishing allowed-and-forbidden Actions trace.

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

Yes, from source: while a valid first-attempt parent is active, manually dispatch CI with its run tuple and target SHA; the preflight predicates accept it and the iOS expression selects Blacksmith.

Is this the best way to solve the issue?

No: checking that a supplied parent exists is not the same as proving it caused this child dispatch, so the proposed fast-route authorization is a replayable capability.

Full review comments:

  • [P1] Bind the fast runner grant to the parent invocation — .github/workflows/ci.yml:223
    This was visible at the earlier reviewed head: these are caller-controlled workflow_dispatch inputs, so a manual first-attempt CI run can copy an active valid parent tuple and target SHA, pass the API checks, and set the signal that sends iOS to Blacksmith. That contradicts the documented generic-dispatch fallback and makes the parent metadata a replayable capability; use a parent-bound invocation path and cover the copied-tuple rejection case.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: A caller-controlled parent tuple now authorizes access to faster runner capacity.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded release-validation scheduling improvement with material CI impact but no established current user outage.
  • merge-risk: 🚨 automation: The patch changes CI dispatch inputs, runner selection, and reusable-workflow concurrency.
  • merge-risk: 🚨 security-boundary: A caller-controlled parent tuple now authorizes access to faster runner capacity.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: add a redacted exact-head non-publishing Actions trace showing the actual parent child selects Blacksmith while a generic dispatch with copied parent metadata stays hosted; redact private identifiers and endpoints. 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:

  • [high] Parent metadata can be replayed by manual CI — .github/workflows/ci.yml:223
    The API verifies that a supplied parent run is valid, but it does not establish that the current CI run originated from that parent before enabling Blacksmith.
    Confidence: 0.97

What I checked:

  • Unbound authority grant: The PR accepts parent run ID and attempt as ordinary dispatch inputs, validates properties of that run, then grants the fast-route signal; it never proves that this CI run was created by that parent. (.github/workflows/ci.yml:223, d68f7ec77c48)
  • Caller-controlled tuple: The Full Release Validation caller passes its run tuple, but the same workflow_dispatch inputs remain available to a generic CI dispatch. (.github/workflows/full-release-validation.yml:995, d68f7ec77c48)
  • Tests omit replayed manual dispatch: The guard test proves a valid mocked parent enables Blacksmith and that missing inputs stay hosted, but it does not exercise a generic manual CI dispatch carrying a valid active parent tuple. (test/scripts/ci-workflow-guards.test.ts:1861, d68f7ec77c48)
  • Current-main comparison: Current main still routes every workflow_dispatch iOS job to hosted macOS and has no parent-run authorization path, so the central change is not already implemented. (.github/workflows/ci.yml:3821, 8578b8f55cf7)
  • Related release-work provenance: The adjacent cache-policy and release-decision work merged as commits 225aa5a and a2f0b84, respectively; they are related workflow ownership, not replacements for this change. (.github/workflows/ci.yml:152, 225aa5a17823)

Likely related people:

  • vincentkoc: Introduced the reviewed routing path and authored the adjacent merged CI cache-policy and release-validation work. (role: recent CI and release-validation contributor; confidence: high; commits: d68f7ec77c48, 225aa5a17823, a2f0b84e8ada; files: .github/workflows/ci.yml, .github/workflows/full-release-validation.yml, test/scripts/ci-workflow-guards.test.ts)

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-21T09:52:22.503Z sha d68f7ec :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T12:15:02.023Z sha d68f7ec :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed 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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 22, 2026
vincentkoc added a commit that referenced this pull request Aug 24, 2026
Extract the QA concurrency portion of #127140 while leaving the iOS runner authorization changes out.
vincentkoc added a commit that referenced this pull request Aug 24, 2026
Extract the QA concurrency portion of #127140 while leaving the iOS runner authorization changes out.
vincentkoc added a commit that referenced this pull request Aug 24, 2026
Extract the QA concurrency portion of #127140 while leaving the iOS runner authorization changes out.
@vincentkoc

Copy link
Copy Markdown
Member Author

Superseded by #128458, landed as 41050b2.

The release-QA concurrency half of this draft was preserved and landed through the focused replacement, with the original contribution linked and credited. The iOS fast-runner authorization path was intentionally not carried forward: its caller-supplied workflow_dispatch parent metadata was replayable and did not prove that the parent invocation authorized the child run.

@vincentkoc vincentkoc closed this Aug 24, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
Extract the QA concurrency portion of openclaw#127140 while leaving the iOS runner authorization changes out.
@RomneyDa
RomneyDa deleted the perf/frv-scheduling-stalls branch October 22, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M 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