Skip to content

fix(release): 2026.9.7 validation fixes (state read worker graph, test fixtures) - #160975

Merged
steipete merged 4 commits into
release/2026.9.7from
release-batch/2026.9.7
Sep 29, 2026
Merged

steipete merged 4 commits into
release/2026.9.7from
release-batch/2026.9.7

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: the 2026.9.7 candidate fails Full Release Validation 36518668565 because dist/state/openclaw-state-read.worker.js grew from 3.0 MB (2026.9.6) to 52.2 MB and exceeds the 6 MiB package-byte cap, and because three test fixtures fail on the new CI runner image or on short checkout paths.

User Impact

The state read worker no longer inlines the Gateway, flows, and wizard graph, which removes the +300-400 MB Gateway RSS regression Kova flagged and restores the npm package byte limits. No behavior change: the read-only reconciliation functions move unchanged into their own module.

Why This Change Was Made

Release-branch-first batch for 2026.9.7 (one new Release SHA, one fresh FRV):

Evidence

3b50430 gave the E2E global setup suite a beforeEach/afterEach pair
that clears inherited prebuilt-runtime flags. process-fixture-cleanup
imports that suite through a hand-built vitest mock that only provided
describe/it/expect/vi, so collection failed with 'No "beforeEach" export
is defined on the "vitest" mock' (hourly 36513735118, 3 cases).

The collector now records the suite's beforeEach/afterEach hooks and runs
them around the captured body, so each fault-injected fixture sees the
same environment as the real suite.

Proof: the three cases fail on main with the original error and pass with
this change; process-fixture-cleanup + vitest-e2e-global-setup 12/12.

(cherry picked from commit 66b9c5b)
CI runners switched to an image without ripgrep, so the parked-canonical wrapper test failed at scripts/pr's required-command check (Missing required command(s): rg) before reaching the trust routing it covers. Stub rg and pnpm in the fixture bin like the other wrapper fixtures.

(cherry picked from commit 129a640)
…gth cannot skip compaction

The pre-prompt compaction steering test used the session's default system prompt, which embeds absolute checkout paths. In a 4k context window, short checkout paths (e.g. ~/oc on a Linux box) leave a small positive headroom that rejects compaction preparation, so the only provider request was foreground inference and requests[0].compacting was false. Longer paths (macOS, GitHub runners) made headroom negative and fell back to the retained-history budget, so the test passed there. Pin a short base system prompt so the test exercises compaction regardless of where the checkout lives.

(cherry picked from commit 05ecebf)
Move reconciliation inspection and candidate selection into a read-only
module shared by the state reader and reconciliation writer. The standalone
reader disables code splitting, so its former write-side import also
bundled dynamic failure-fact/Doctor imports and the Gateway runtime.

At release tip 56fb887, the built worker was 52,186,708 bytes with
9,768 esbuild inputs. After this split it is 3,491,598 bytes with 1,025
inputs, measured with packages external for both input graphs.

Keep the read queries, eligibility checks, and transactional reconciliation
bodies unchanged. The full build and 95 focused tests pass.

(cherry picked from commit 7c4cae3)
@clawsweeper

clawsweeper Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete merged commit 8634a33 into release/2026.9.7 Sep 29, 2026
25 checks passed
@steipete
steipete deleted the release-batch/2026.9.7 branch September 29, 2026 05:05
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant