Skip to content

fix(ci): apply Kova runtime-major RSS calibration - #127763

Merged
RomneyDa merged 3 commits into
mainfrom
fix/kova-runtime-major-baseline
Aug 25, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/kova-runtime-major-baseline

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 22, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where blocking performance validation evaluated Node 24 Gateway RSS against Kova thresholds that predated the reviewed runtime-major calibration, causing eight false release blockers on main.

Why This Change Was Made

Pins both supported OpenClaw config contracts to immutable Kova commit 1fe2f4081877bb12b7f7ed355349f98b8a0a6882, the merged Kova #93 contract. That contract selects reviewed RSS baselines by the measured Gateway Node runtime major, retains a 10% regression allowance and a 1200 MB absolute ceiling, and validates the Gateway PID/port before trusting runtime identity. No OpenClaw threshold is weakened here.

The live credential boundary now has its own explicit immutable trust pin instead of inheriting trust from the config-compatibility pins. A future compatibility update therefore cannot enter the credential-bearing lane without a separate reviewed trust-pin update.

User Impact

No product behavior changes. Main validation now uses the reviewed Node-major RSS contract, while genuine regressions beyond that contract remain blocking.

Evidence

Original failure

Upstream trust and dependency audit

  • Directly inspected the exact immutable Kova commit and the full old-to-new range 0f9e678e..1fe2f408.
  • The exact calibration commit changes only src/evaluator.mjs, src/run/finalize-record.mjs, and src/selfcheck.mjs. It binds Node-major selection to Gateway-reported runtime identity and rejects PID/port mismatches.
  • The old-to-new range changes no dependency declaration or lockfile entry. Its only package.json change adds a literal command-output assertion test; the dependency set is unchanged.
  • The range adds no external credential/network sink. It includes Kova Discord: add slash command handling #94, which restricts command assertions to literal matching and sets CI permissions to contents: read.
  • Kova Discord: add ignored channel/category filters #93 was merged at exact commit 1fe2f408 after maintainer acceptance of the calibration and passed Linux/macOS CI plus CodeQL: fix(perf): calibrate RSS by Node runtime major Kova#93.

Exact-head after-fix behavior

  • Release-shaped secretless proof at exact head 4d19c12555d304d40e4754ed3195d709934b177b: https://github.com/openclaw/openclaw/actions/runs/32685463547.
  • Inputs: profile release, repeat 3, fail_on_regression=true, deep_profile=false, live_openai_candidate=false, publish_reports=false, and no Kova override.
  • Evidence integrity passed: all 15 selected records were complete, with 235/235 required evidence entries present. The 12 Gateway-owned records reported Node v24.19.0, collectionStatus: ok, and exact expected PID/port identity; the three local-agent records intentionally had no Gateway service identity.
  • Runtime calibration was active at the reviewed 1177 MB and 1193 MB RSS gates. No violation referenced the retired 1000 MB or 1050 MB caps.
  • The run was not green: 11 records passed and four failed. Three failures were unrelated status-CLI CPU observations at 222%, 230%, and 256% against the existing 200% role gate. Per bounded-proof policy, these were classified without retry.
  • One failure was a current calibrated RSS violation, not a stale-cap false positive: many-plugin Gateway RSS reached 1192.6 MB against its 1177 MB gate. This remains a real merge blocker; the PR was not merged and no threshold was weakened.
  • The live and deep-profile lanes were intentionally disabled. The strengthened keeps live credentials away from custom Kova refs regression executes the actual resolver-to-lane chain: the compatibility-only ref is rejected before lane output while the dedicated trust pin is admitted. The exact-head run confirms PR heads remain secret-ineligible and skip credential setup and Kova execution in the live lane.

Local and exact-head checks

  • node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts: 36 passed.
  • Changed-path classification: testRoot, tooling; the exact planned guard set was reviewed before dispatch.
  • actionlint .github/workflows/openclaw-performance.yml: passed.
  • pnpm check:workflows: actionlint, zizmor, composite-action interpolation, and conflict-marker guards passed.
  • Fresh test-audit, deslop, and autoreview gates: clean.
  • Exact-head PR CI: 116 successful, 25 skipped, zero failed.

Production/tooling LOC: branch total +4/-3. Tests: branch total +56/-30. The trust-pin remediation is workflow +2/-1 and tests +3/-3; the focused owner-boundary proof adds test-only +51/-25.

@clawsweeper

clawsweeper Bot commented Aug 22, 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 22, 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. P2 Normal backlog priority with limited blast radius. 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. labels Aug 22, 2026
@clawsweeper

clawsweeper Bot commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 24, 2026, 6:54 PM ET / 22:54 UTC.

ClawSweeper review

What this changes

Updates the Kova evaluator revision for runtime-major RSS calibration and separates the credential-bearing live-lane trust pin from configuration compatibility pins.

Regression provenance

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

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 4 items remain

Keep open. The pin split is coherent, but the protected maintainer PR still needs real Actions proof that an eligible dispatch rejects an untrusted override before credential setup.

Priority: P2
Reviewed head: eb4defeb39e23dd2738e4a25ed95b3e59d21a65e

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch and focused boundary test are coherent, but merge confidence is capped until the live credential boundary is proven in its real workflow.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: Authority-chain proof required: the shell-level resolver-to-lane test and secretless workflow run do not show an eligible Actions dispatch rejecting an untrusted override before credential setup. 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 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: the shell-level resolver-to-lane test and secretless workflow run do not show an eligible Actions dispatch rejecting an untrusted override before credential setup. 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 6 items Dedicated trust comparison: The resolver marks a revision trusted for the live lane only when it exactly equals the new immutable trust pin.
Final-effect ordering: The live lane rejects an untrusted revision before writing its run output; credential setup requires that output to be true.
Boundary regression coverage: The added test runs the resolver and lane scripts with a compatible-but-untrusted revision, expects rejection before lane output, and accepts the dedicated trust pin.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts

Result: PASS (completed)

node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127763-KYctUI/target$ node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts
node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts
[test] starting test/vitest/vitest.tooling.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-127763-KYctUI/target

 ✓  tooling  test/scripts/openclaw-performance-workflow.test.ts (36 tests) 1105ms

 Test Files  1 passed (1)
      Tests  36 passed (36)
   Start at  22:55:00
   Duration  1.67s (transform 305ms, setup 65ms, import 133ms, tests 1.11s, environment 0ms)

[test] passed 1 Vitest shard in 7.79s
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127763-KYctUI/target$ node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts



































Assertions:

  • PASS expect_output: 36 passed

How this fits together

The performance workflow resolves a Kova evaluator revision from the target configuration, then decides whether its live OpenAI lane may start. That lane decision controls credential setup and the subsequent evaluator run.

flowchart LR
A[Workflow dispatch] --> B[Target and Kova resolver]
B --> C[Compatibility revision]
B --> D[Live trust revision]
D --> E[Live lane decision]
E --> F[Credential setup]
C --> G[Kova evaluator]
F --> G
G --> H[Performance gate]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: the shell-level resolver-to-lane test and secretless workflow run do not show an eligible Actions dispatch rejecting an untrusted override before credential setup. 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.
  • Resolve merge risk (P1) - An eligible main dispatch with a compatible-but-untrusted Kova override has not been demonstrated through the credential-setup boundary; the available test is an isolated shell execution and the cited workflow run is secretless.
  • Resolve merge risk (P1) - Independent upstream inspection of the pinned Kova contract was blocked by unavailable network resolution.
  • Resolve merge risk (P1) - Production workflow code grows by one net line; the separate pin is justified because collapsing it into compatibility pins would re-couple compatibility updates to credential admission.
Agent review details

Security

None.

PR surface

Tests +26, Config +1. Total +27 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 56 30 +26
Docs 0 0 0 0
Config 1 4 3 +1
Generated 0 0 0 0
Other 0 0 0 0
Total 2 60 33 +27

Review metrics

Metric Value Why it matters
Production vs test delta workflow +4/-3; tests +56/-30 The one-line net workflow growth introduces the separate trust boundary and is accompanied by focused boundary coverage.
Credential admission pins 1 added, 2 changed Compatibility pinning is now distinct from the pin that admits the live credential lane.

Merge-risk options

Maintainer options:

  1. Prove the rejected live path (recommended)
    Attach redacted exact-head Actions logs showing that an eligible dispatch with the compatible-but-untrusted override fails before credential setup.
  2. Pause the pin update
    Do not merge until the credential-admission behavior can be demonstrated through the real Actions boundary.

Technical review

Best possible solution:

Retain separate immutable compatibility and credential-trust pins, then attach redacted exact-head Actions logs proving an eligible dispatch fails before credential setup for an untrusted override.

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

Yes in source: the focused test executes the resolver and lane scripts with an untrusted compatible revision and observes rejection before lane output; real Actions final-effect proof remains absent.

Is this the best way to solve the issue?

Yes for the implementation shape: an independent immutable trust pin prevents a future compatibility update from implicitly admitting the credential lane.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: The change repairs release-validation calibration and a credential-bearing CI lane without changing product runtime behavior.
  • merge-risk: 🚨 automation: The resolver output determines performance workflow lane execution.
  • merge-risk: 🚨 security-boundary: The new pin controls whether an eligible live lane can reach credential setup.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: the shell-level resolver-to-lane test and secretless workflow run do not show an eligible Actions dispatch rejecting an untrusted override before credential setup. 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

What I checked:

Likely related people:

  • Vincent Koc: Authored recent candidate-trust and cache-isolation changes in the performance workflow. (role: recent performance-workflow contributor; confidence: high; commits: 7833e242cb25, 225aa5a17823; files: .github/workflows/openclaw-performance.yml)
  • Peter Steinberger: Recent and historical performance-workflow commits make this person a likely routing owner. (role: long-running workflow contributor; confidence: high; commits: 70d7fb5771f9, b3248bf8f1a3; files: .github/workflows/openclaw-performance.yml, test/scripts/openclaw-performance-workflow.test.ts)
  • Dallin Romney: Has prior merged work on this workflow in addition to the current branch. (role: recurring performance-workflow contributor; confidence: medium; commits: c8ee50165ef1, eb4defeb39e2; files: .github/workflows/openclaw-performance.yml, test/scripts/openclaw-performance-workflow.test.ts)

Rank-up moves

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

  • Attach redacted logs from an eligible exact-head dispatch with the untrusted compatible override, showing failure before Configure live OpenAI auth.
  • Let exact-head CI complete green after the proof run.

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 (7 earlier review cycles)
  • reviewed 2026-08-22T02:44:24.805Z sha 3918e0c :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-22T03:49:06.093Z sha 3e0419f :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-22T03:57:49.784Z sha 3e0419f :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-22T05:36:15.506Z sha 88528f7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-22T06:19:10.890Z sha 88528f7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-24T03:15:31.115Z sha 4d19c12 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-24T03:59:00.338Z sha 4d19c12 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 22, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Upstream trust audit and exact-head after-fix proof are now in the PR body.

  • Direct inspection covered Kova 0f9e678e..1fe2f408, including the exact calibration commit, dependency contract, and credential/network sinks; the range has no dependency or lockfile change and no new external credential sink.
  • Exact-head release run 32549765107 passed all five selected records. The four Gateway-owned records reported trusted Node 24 runtime identity with matching PID/port and zero violations; calibrated RSS stayed below the 1177/1193 MB gates.
  • The run was secretless. The workflow test executes rejection of an untrusted ref before the live lane, and the new independent trust pin prevents compatibility pins from granting credential eligibility.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 22, 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 22, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head remediation evidence for 88528f73c19e99a7ac9ad552e78e37e15330c2c2:

  • The strengthened regression now executes the workflow's actual Resolve OpenClaw target ref producer and feeds its output into the actual Decide lane consumer.
  • Replaying the pre-fix resolver shows the config-compatible but non-trusted 0f9e678e... ref emitted kova_ref_trusted_for_live=true and admitted the live lane (run=true). The exact head emits false, exits the lane before writing run=true, and still admits the reviewed 1fe2f408... trust pin.
  • Focused proof: node scripts/run-vitest.mjs test/scripts/openclaw-performance-workflow.test.ts — 36/36 passed.
  • Fresh test-audit, deslop, and autoreview gates are clean. The full changed gate passed its workflow/tooling/format guards before the known unrelated root-test typecheck error for the missing pako declaration in ui/vite.config.ts.
  • Exact-head release performance run: https://github.com/openclaw/openclaw/actions/runs/32554374138 (in progress at posting). The PR head is intentionally secret-ineligible, and the real Actions step graph confirms the live lane completes with Configure live OpenAI auth and Run Kova skipped.
  • The PR body already records direct inspection of Kova 0f9e678e..1fe2f408: no dependency/lockfile changes and no new external credential/network sink; the exact trusted commit changes only evaluator/finalization/selfcheck runtime-identity handling.

This addresses the agent-owned credential-boundary and upstream-audit feedback without weakening the gate or adding a new trust path.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 22, 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 22, 2026
@vincentkoc
vincentkoc force-pushed the fix/kova-runtime-major-baseline branch from 88528f7 to 4d19c12 Compare August 24, 2026 03:09
@vincentkoc vincentkoc self-assigned this Aug 24, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 24, 2026
@RomneyDa
RomneyDa force-pushed the fix/kova-runtime-major-baseline branch from 4d19c12 to eb4defe Compare August 24, 2026 22:49
@RomneyDa

Copy link
Copy Markdown
Member Author

Resolved the current main conflicts at eb4defeb39e23dd2738e4a25ed95b3e59d21a65e.

The resolution deliberately retains 1fe2f4081877bb12b7f7ed355349f98b8a0a6882 for KOVA_CANONICAL_CONFIG_REF, KOVA_LEGACY_LIST_CONFIG_REF, and the separate KOVA_TRUSTED_LIVE_REF. That is Kova #93's exact merge commit and current Kova main; main's conflicting dfafaff... pin predates #93 and lacks runtime-major RSS calibration.

Verification:

  • focused workflow test: 36/36 passed
  • pnpm check:changed -- .github/workflows/openclaw-performance.yml test/scripts/openclaw-performance-workflow.test.ts: passed
  • YAML parser and git diff --check: passed
  • autoreview: clean, no accepted/actionable findings
  • local actionlint was unavailable (no actionlint or Go); exact-head workflow CI is authoritative

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 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:

@RomneyDa

Copy link
Copy Markdown
Member Author

Exact-head CI attribution and ClawSweeper proof disposition:

  • check-session-accessor-boundary failed during dependency installation before the boundary check ran: the Matrix native download hit ECONNRESET, then the dependency's postinstall error path threw ReferenceError: err is not defined. The PR does not touch dependencies, lockfiles, Matrix, or install behavior. Failed jobs are rerunning unchanged.
  • The requested eligible credential-path Actions proof cannot be produced from a PR head by design. Classify performance candidate trust sets secret_eligible=true only for workflow_dispatch/schedule on refs/heads/main with candidate SHA equal to workflow SHA. A PR-head dispatch therefore skips the live lane before the Kova trust decision.
  • I am not weakening that boundary or temporarily exposing credentials for proof. The exact workflow producer→consumer regression proves the compatible-but-untrusted ref is rejected before lane output, while Kova Discord: add ignored channel/category filters #93's immutable merge SHA is admitted. A real eligible-main proof is necessarily post-merge validation.

ClawSweeper has no code or architecture findings; this records the optional proof skip and reason per policy.

@RomneyDa
RomneyDa merged commit 0ea03f3 into main Aug 25, 2026
256 of 258 checks passed
@RomneyDa
RomneyDa deleted the fix/kova-runtime-major-baseline branch August 25, 2026 17:58
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
* fix(ci): pin Kova runtime-major RSS calibration

* fix(ci): separate Kova live trust pin

* test(ci): prove Kova live trust boundary
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. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

2 participants