Skip to content

fix(ci): unblock Performance on current source builds - #124341

Merged
steipete merged 1 commit into
mainfrom
steipete/admiring-dubinsky-4a7e50
Aug 16, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/admiring-dubinsky-4a7e50

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where OpenClaw Performance release validation stopped before running any Kova scenario when benchmarking current source builds. OCM v0.2.29 passed the repository's TypeScript npm adapter through a Bash/tsx trampoline, and tsx rejected its complex hashbang with idx: 148.

Affected runs:

Why This Change Was Made

Pin OCM v0.2.32, the first signed release containing the upstream current-OpenClaw build-local repair, and let OCM own native .mts adapter discovery, transitive workspace dependency closure, and trusted npm lifecycle execution. The obsolete workflow-local trampoline is removed rather than preserved as a second execution path.

Upstream fix and release:

User Impact

Release and scheduled performance validation can once again exercise current OpenClaw source builds. There is no shipped OpenClaw runtime or package behavior change.

Evidence

  • GitHub-verified signed OCM tag v0.2.32 points to 2a283cc2756c76cb10852584a44ed8efeb5cc559 and contains the upstream fix.
  • Linux asset SHA-256 independently matches both the GitHub asset digest and published SHA256SUMS: 5b20c21b2825f69b89eb37baa657f0f0062124517e6e6828e9857c7e9bbd3070.
  • node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts — 34 passed.
  • node scripts/check-changed.mjs -- .github/workflows/openclaw-performance.yml test/scripts/openclaw-performance-workflow.test.ts — passed on Blacksmith Testbox tbx_01m044a2m703h3ycrt1r15bmkz (run https://github.com/openclaw/openclaw/actions/runs/31920549610).
  • git diff --check and actionlint .github/workflows/openclaw-performance.yml — passed.
  • Fresh Codex autoreview — clean, no accepted/actionable findings.

Pin OCM v0.2.32 so Performance validation uses upstream native .mts discovery and transitive workspace dependency handling instead of the local Bash/tsx trampoline.
@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 16, 2026 01:55
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 10:01 PM ET / August 16, 2026, 02:01 UTC.

ClawSweeper review

What this changes

This PR upgrades the Performance workflow’s pinned OCM binary to v0.2.32 and removes OpenClaw’s Bash/tsx workspace-package adapter.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

Keep open for maintainer verification: current main still uses the failing local adapter, and the PR cleanly removes that invocation, but the new executable OCM contract and release provenance could not be independently checked because GitHub network access was unavailable.

Priority: P1
Reviewed head: 9c4303018c13fec18d7c9d62be420574770da4e9
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is small and coherent, but confidence is limited by unavailable upstream dependency verification and the lack of an observed post-change Performance lane.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI PR is outside the contributor proof gate; its provided static workflow test does not replace the recommended exact-head mock-lane validation.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI PR is outside the contributor proof gate; its provided static workflow test does not replace the recommended exact-head mock-lane validation.
Evidence reviewed 6 items Current-main execution path: Current main pins OCM v0.2.29 and creates the Bash adapter that invokes the TypeScript workspace-dependency script before Kova planning.
Changed owner boundary: The PR replaces the pinned checksum and removes the sole workflow invocation that exports the local adapter variables; the next step still plans Kova against local source.
Workflow regression guard: The revised test rejects the former adapter step and its environment variables, so it fails on current main and protects the intended workflow boundary.
Findings None None.
Security Needs attention Verify the upgraded OCM execution contract: This changes the downloaded binary that prepares source builds in a release workflow. The local SHA check protects transfer integrity, but the v0.2.32 source, signature, and replacement workspace behavior could not be independently inspected while GitHub networking was unavailable.

How this fits together

Full Release Validation dispatches the Performance workflow to build the selected OpenClaw source through Kova scenarios. That workflow downloads a checksum-pinned OCM binary, which prepares the local build before Kova produces artifacts and a release-gating result.

flowchart LR
  A[Release validation] --> B[Performance workflow]
  B --> C[Download OCM binary]
  C --> D[Verify SHA-256]
  D --> E[Prepare local source build]
  E --> F[Kova scenario plan]
  F --> G[Performance artifacts]
  G --> H[Release gate]
Loading

Decision needed

Question Recommendation
Should this release-validation workflow trust OCM v0.2.32’s native package/lifecycle behavior after upstream verification and a fresh mock-lane run? Verify and complete the canonical path: Inspect the v0.2.32 source/tag and attach a redacted successful mock-provider Performance run, then remove the obsolete local adapter path.

Why: The binary executes in release validation and replaces locally auditable workspace-pack behavior; a network outage prevented independent upstream contract and provenance inspection.

Before merge

  • Resolve security concern: Verify the upgraded OCM execution contract - This changes the downloaded binary that prepares source builds in a release workflow. The local SHA check protects transfer integrity, but the v0.2.32 source, signature, and replacement workspace behavior could not be independently inspected while GitHub networking was unavailable.
  • Resolve merge risk (P1) - OCM v0.2.32 is an executable CI dependency; its native workspace and lifecycle behavior, plus the claimed signed-release provenance, could not be independently inspected before review.
  • Resolve merge risk (P1) - The retired adapter script, its prepack exception, and its dedicated tests remain in-tree despite having no non-test in-repository caller after this change; deleting that obsolete path would preserve one canonical implementation.
  • Complete next step (P2) - The protected maintainer PR needs an owner to verify the external executable contract and exact workflow behavior before merge.

Findings

  • [medium] Verify the upgraded OCM execution contract — .github/workflows/openclaw-performance.yml:75
Agent review details

Security

Needs attention: The checksum remains pinned, but the upgraded OCM executable and its native lifecycle behavior require upstream provenance verification before merge.

PR surface

Tests -3, Config -23. Total -26 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 13 16 -3
Docs 0 0 0 0
Config 1 2 25 -23
Generated 0 0 0 0
Other 0 0 0 0
Total 2 15 41 -26

Review metrics

Metric Value Why it matters
Production vs test delta workflow production -23, tests -3 The patch removes CI glue and adjusts its static regression guard without growing production code.

Merge-risk options

Maintainer options:

  1. Verify the new executable path before merge (recommended)
    Confirm the upstream OCM release and record an exact-head mock-provider Performance run that reaches Kova local-build planning.
  2. Hold the OCM upgrade
    Retain the current pinned version until an owner can validate the upstream lifecycle and workspace-package contract.

Technical review

Best possible solution:

Verify OCM v0.2.32’s upstream source and release provenance, run an exact-head mock-provider Performance lane through local-build planning, then remove the now-unreachable local adapter and its owner-specific guard if no external consumer exists.

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

No live current-main run was available. Source confirms that current main routes OCM through the Bash/tsx adapter, but the reported tsx failure could not be replayed without the unavailable GitHub workflow environment.

Is this the best way to solve the issue?

Unclear; delegating workspace discovery to OCM is cleaner than retaining a local trampoline, but it needs upstream contract verification and a real mock-lane result before it is the proven best fix.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: The broken path blocks scheduled and release Performance validation before it can exercise Kova scenarios.
  • add merge-risk: 🚨 security-boundary: It upgrades a downloaded executable that can run package lifecycle code in CI, while upstream release behavior remains unverified in this review.
  • add merge-risk: 🚨 automation: The PR changes the executable build path used by a release-blocking validation workflow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored CI PR is outside the contributor proof gate; its provided static workflow test does not replace the recommended exact-head mock-lane validation.

Label justifications:

  • P1: The broken path blocks scheduled and release Performance validation before it can exercise Kova scenarios.
  • merge-risk: 🚨 automation: The PR changes the executable build path used by a release-blocking validation workflow.
  • merge-risk: 🚨 security-boundary: It upgrades a downloaded executable that can run package lifecycle code in CI, while upstream release behavior remains unverified in this review.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored CI PR is outside the contributor proof gate; its provided static workflow test does not replace the recommended exact-head mock-lane validation.

Evidence

Security concerns:

  • [medium] Verify the upgraded OCM execution contract — .github/workflows/openclaw-performance.yml:75
    This changes the downloaded binary that prepares source builds in a release workflow. The local SHA check protects transfer integrity, but the v0.2.32 source, signature, and replacement workspace behavior could not be independently inspected while GitHub networking was unavailable.
    Confidence: 0.9

What I checked:

Likely related people:

  • steipete: Peter Steinberger introduced the current OCM pin and local adapter in commit 394648c and authored the proposed replacement. (role: current workflow owner; confidence: high; commits: 394648c7021a, 9c4303018c13; files: .github/workflows/openclaw-performance.yml, test/scripts/openclaw-performance-workflow.test.ts)
  • vincentkoc: Recent history shows repeated Performance workflow repairs, including gateway fixture and Kova gate work. (role: recent area contributor; confidence: medium; commits: 0fd3ee6929d1, d3557ec013c4; files: .github/workflows/openclaw-performance.yml)
  • Jason (Json): Commit 72d55fc rewrote the transitive OCM workspace-pack adapter that this PR makes unreachable from the workflow. (role: adjacent adapter contributor; confidence: medium; commits: 72d55fc12a47; files: scripts/ocm-npm-workspace-deps.mts, scripts/openclaw-prepack.ts)

Rank-up moves

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

  • Inspect the OCM v0.2.32 source/tag and release provenance.
  • Attach a redacted exact-head mock-provider Performance run that reaches Kova planning.
  • Delete the obsolete local adapter, prepack exception, and their tests if no external consumer exists.

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

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head 9c4303018c13fec18d7c9d62be420574770da4e9:

  • Root cause: Performance pinned OCM v0.2.29, then forced scripts/ocm-npm-workspace-deps.mts through node --import tsx. tsx rejected that script's complex hashbang before Kova could execute. The workflow override also supplied only one direct workspace dependency instead of the complete transitive closure.
  • Dependency contract verified directly: OCM v0.2.32's signed tag is GitHub-verified and targets 2a283cc2756c76cb10852584a44ed8efeb5cc559, which contains upstream fix c34c7072bf2802beb46385ed5d9fb05b44e5ce1b. In src/store/runtimes.rs, OCM prefers the current .mts adapter, invokes it with plain Node, derives the transitive workspace closure from all dependency sections, and fails closed when a workspace package is missing.
  • Artifact integrity verified independently: the downloaded ocm-x86_64-unknown-linux-gnu.tar.gz, GitHub's asset digest, and the release's SHA256SUMS all equal 5b20c21b2825f69b89eb37baa657f0f0062124517e6e6828e9857c7e9bbd3070.
  • Real exact-head proof: OpenClaw Performance run 31920877465 executed this PR's workflow against frozen beta.2 SHA 8f382a202ff1e15833394b481615dcdda99b04d7. Install OCM and Kova, Kova version and plan sanity, Run Kova, Validate Kova evidence, source performance probes, and artifact-only verification all passed. Evidence artifacts: openclaw-performance-mock-provider-31920877465-1 and openclaw-performance-source-31920877465-1.
  • Exact-head CI: run 31920674552, attempt 2 passed. Attempt 1's only product-test failure was the unrelated live-updater fixture; the unchanged bounded rerun passed that shard and the complete CI gate.
  • Focused workflow suite: 34/34 passed. Testbox changed gate: run 31920549610. Actionlint and git diff --check passed.
  • Fresh Codex autoreview on the exact PR worktree: clean; no accepted or actionable findings.
  • ClawSweeper moves: upstream source/tag/provenance inspection and exact-head Performance proof are complete. The suggested deletion of scripts/ocm-npm-workspace-deps.mts is intentionally skipped: OCM v0.2.32 now invokes that OpenClaw-owned adapter directly for both pack and install. The obsolete path is only the workflow's Bash/tsx trampoline, which this PR deletes.
  • Best-fix verdict: best fix. The dependency now owns discovery and execution; OpenClaw retains only its package-lifecycle adapter. Patching the hashbang or retaining a workflow wrapper would leave duplicate ownership and incomplete transitive dependency handling.
  • LOC: workflow/tooling +2/-25 (net -23); tests +13/-16 (net -3). No runtime product, config, protocol, schema, version, tag, or package change.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification

Exact head: 9c4303018c13fec18d7c9d62be420574770da4e9

The ClawSweeper verification gaps are resolved:

  • Upstream executable contract: OCM v0.2.32 uses native node <adapter.mts> invocation, computes the transitive workspace dependency closure, and explicitly enables trusted npm lifecycle scripts. The implementation was inspected directly at src/store/runtimes.rs and its owner-boundary regression coverage at tests/runtime_command_tests.rs.
  • Release provenance: v0.2.32 is a GitHub-verified signed annotated tag pointing to 2a283cc2756c76cb10852584a44ed8efeb5cc559; it contains upstream fix c34c7072bf2802beb46385ed5d9fb05b44e5ce1b. Release workflow 31920323834 passed.
  • Asset integrity: the downloaded ocm-x86_64-unknown-linux-gnu.tar.gz independently hashes to 5b20c21b2825f69b89eb37baa657f0f0062124517e6e6828e9857c7e9bbd3070, matching both GitHub's asset digest and the release's SHA256SUMS.
  • Exact-head workflow behavior: advisory smoke run 31921360241 completed successfully against this exact PR head. It packaged the current checkout through OCM v0.2.32 and executed all selected Kova scenarios without the former hashbang/workspace/lifecycle failure.
  • Gated smoke run 31921038402 also reached and executed all four scenarios; its nonzero result was limited to three existing gateway RSS thresholds, while the agent scenario passed. No OCM integration failure occurred.

The suggested adapter deletion is intentionally skipped: OCM v0.2.32 still discovers and invokes scripts/ocm-npm-workspace-deps.mts. It is the canonical repository-owned package-construction implementation, not an obsolete fallback. This PR deletes only the competing Bash/tsx invocation path.

Proof

  • node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts — 34 passed.
  • node scripts/run-vitest.mjs test/scripts/openclaw-live-updater.test.ts — 87 passed after the first CI attempt hit an unrelated one-off failure; exact-head CI retry 31920674552 is green.
  • node scripts/check-changed.mjs -- .github/workflows/openclaw-performance.yml test/scripts/openclaw-performance-workflow.test.ts — passed on Testbox tbx_01m044a2m703h3ycrt1r15bmkz, run 31920549610.
  • git diff --check and actionlint .github/workflows/openclaw-performance.yml — passed.
  • Fresh Codex autoreview — clean, no accepted/actionable findings.

No OpenClaw release version, tag, or package was changed. The requested post-merge Performance validation remains pinned to release SHA 8f382a202ff1e15833394b481615dcdda99b04d7.

@steipete
steipete merged commit 4919c70 into main Aug 16, 2026
375 of 379 checks passed
@steipete
steipete deleted the steipete/admiring-dubinsky-4a7e50 branch August 16, 2026 02:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
Pin OCM v0.2.32 so Performance validation uses upstream native .mts discovery and transitive workspace dependency handling instead of the local Bash/tsx trampoline.
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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant