Skip to content

perf(ci): reuse compiler state and shorten guard and UI tests - #157265

Merged
steipete merged 5 commits into
mainfrom
ci-burden/sp1-pr-tail
Sep 24, 2026
Merged

steipete merged 5 commits into
mainfrom
ci-burden/sp1-pr-tail

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repeated pull-request checks discard reusable compiler state, rebuild native parser snapshots one file at a time, and pay avoidable UI fixture and refresh-window costs.

User Impact

CI-only changes. Every selected type graph and guard still runs. UI assertions, native process isolation, and distinct browser scenarios stay in the PR tier.

Why This Change Was Made

  • Restore each type row's older incremental state when compiler/configuration/dependency fingerprints change. The compiler validates current inputs. The central changed-graph queue also restores the five core stripe caches published by full runs.
  • Parse guard inputs in bounded batches of 32, retaining source order, diagnostics and checks. This removes repeated native snapshot setup.
  • Share prepared fixture configuration and transform state across the UI harness's 17 independently joined native processes, with separate mutable case state.
  • Advance the existing automatic refresh clock in sidebar and mutation-scope browser proofs. Retain one complete placement-abandonment/split/reload tour instead of five fresh-context copies whose only parameter differences were synthetic IDs and text.

No file changes tiers. No assertions, deadlines, runner budgets or retries are weakened. Compiler selection and CI shard membership stay unchanged.

Evidence

Linux proof: compiler-state comparison, guard proof, UI harness tests, combined required checks, cache invalidation controls, and browser file/endurance proof. The native Crabbox exit results establish proof; successful one-shot teardown may cancel the backing Testbox keepalive job.

Paired Linux measurements use Blacksmith Testbox, reporting 4 CPUs and about 15.4 GiB RAM. The table reports command-wall medians of three runs; native CI job and step walls are reported separately below.

Owner/file Fate Before → after seconds Reason and coverage retained
Selected type graphs: 11 core graphs + extension tests + scripts + root tests FAST 687.69 → 146.58 Restore the same compiler-owned state; every graph still executes.
scripts/check-no-pairing-store-group-auth.mts via ts-guard-utils.mts FAST 22.78 → 10.66 Batched snapshots; all group-authorization AST checks remain.
scripts/check-pairing-account-scope.mts via ts-guard-utils.mts FAST 22.59 → 10.25 Batched snapshots; all account-scope checks remain.
scripts/check-import-cycles.ts FAST 23.65 → 10.48 Same complete runtime-value import graph and cycle detection.
ui/src/test-helpers/control-ui-e2e-suite.test.ts FAST 27.74 → 18.56 All 17 native timeout, cleanup, route-drain and resource-lifetime cases remain.
ui/src/e2e/sidebar-session-stability.e2e.test.ts FAST 65.26 → 21.77 command; 47.323 → 7.319 native file All nine selection/geometry scenarios remain; advance the five-second refresh window.
ui/src/e2e/session-management.mutation-scope.e2e.test.ts FAST 59.28 → 26.78 command; 43.858 → 11.217 native file Keep all rename/archive × Active/All cases and cross-agent pagination.
ui/src/e2e/session-placement.move.e2e.test.ts FAST 44.15 → 29.06 command; 28.171 → 12.760 native file Retain the complete same-case abandonment, split view, early durable reply, final event and reload assertions; merge attempts 1–5, which each started a fresh browser context.

The three guard medians total 69.02 → 31.39 seconds (37.63 seconds saved, 54.5%). All 30 repeated CLI invocations, six deliberate violation/allowed-source controls, the 70-file batch/order fixture, and 56 sibling tests passed.

The UI harness passed all 17 cases in ten additional runs (170 case passes), plus 26 sibling tests. Its complete UI shard did not establish an aggregate improvement: 166.34 → 210.55 seconds, with the same 499 files / 8,503 passing tests / one existing skip. Process CPU rose across the complete replay; the exact-head CI result below is the primary job comparison.

Compiler cache invalidation passed 50 cells: ten each for changed source, added roots, changed dependency declarations, compiler options, and incompatible compiler state. The first probe expected exit 2; the installed no-emit compiler correctly rejected the source with TS2322 and exit 1. The corrected probe requires that exact exit and diagnostic. The three browser files passed ten additional repetitions and their browser/unit siblings at three workers. Native file medians total 119.352 → 31.296 seconds (88.056 file-seconds removed). Matched three-worker owning-shard comparisons are recorded below. These are complete command walls on identical per-pair inventories; they do not establish a whole-shard speedup. Shards 3 and 7 were also replayed successfully as supplemental coverage before canonical discovery identified the clock files in shards 1 and 5.

Owning Control UI shard Before → after command seconds Changed file inside shard Unchanged-file median after/before
1/8 — mutation-scope 399.60 → 444.81 46.994 → 22.920 s 1.181
2/8 — placement 431.97 → 530.93 34.860 → 25.815 s 1.186
5/8 — sidebar stability 460.22 → 396.63 50.042 → 16.447 s 0.991

The owning-shard clock proof is run 35994547249. Broader unchanged-test slowdown is observed; its cause is not established.

Exact-head PR CI: run 35997175601. Every target type, guard and UI row passed. The broader test jobs finished with 129 successes, 12 intentional skips and one CLI failure; the aggregate gate has remained queued without a hosted runner since 12:35:01 UTC (last verified 12:46 UTC). No rerun was requested.

CI row Job seconds before → after Execution seconds before → after Checkout + Node setup seconds before → after Candidate result
check-guards 410 → 286 340 → 207 63 → 74 success
check-test-types 785 → 454 744 → 410 36 → 37 success
checks-ui (1/3) 370 → 391 284 → 273 63 → 57 success
checks-ui (2/3) 390 → 324 306 → 232 67 → 77 success
checks-ui (3/3) 368 → 345 277 → 261 71 → 68 success
checks-ui-e2e (1/9) 447 → 552 389 → 469 38 → 61 success
checks-ui-e2e (2/9) 438 → 481 375 → 412 41 → 48 success
checks-ui-e2e (3/9) 494 → 534 433 → 467 39 → 47 success
checks-ui-e2e (4/9) 439 → 456 383 → 383 32 → 52 success
checks-ui-e2e (5/9) 423 → 489 367 → 408 34 → 59 success
checks-ui-e2e (6/9) 449 → 473 391 → 393 36 → 57 success
checks-ui-e2e (7/9) 518 → 507 461 → 427 39 → 57 success
checks-ui-e2e (8/9) 487 → 501 429 → 428 37 → 50 success
checks-ui-e2e (9/9) 295 → 289 202 → 186 76 → 86 success

Baseline head: 1712c7a34c948aa1105ec5c94847770d67bc83e8. Candidate head: 5a5b0a90020f8a838ffe7ff1e3888dfd0bd89f32. These heads select different overall workloads; do not treat the total workflow duration as a controlled comparison.

The candidate run selects the existing full type layout: all 25 core graphs run in five separate rows, while the central row checks extensions, scripts and root tests. The baseline kept 11 selected core graphs in the central row. The central 785 → 454 s comparison therefore does not isolate this patch. All six candidate type rows restored real Actions archives through the new broader fallback (from the same earlier main producer); the central archive was 3.3 MB. A successful archive restore does not guarantee every graph remains incrementally reusable after input changes. This run still exceeds the 420 s central-job target.

Core type stripe Job seconds Execution seconds Actions restore
check-test-types-core-1 196 139 Broader row-specific fallback hit
check-test-types-core-2 261 205 Broader row-specific fallback hit
check-test-types-core-3 297 238 Broader row-specific fallback hit
check-test-types-core-4 261 202 Broader row-specific fallback hit
check-test-types-core-5 247 189 Broader row-specific fallback hit
Stripe Native graph elapsed seconds (concurrent; not additive wall time)
1 gateway-other 41.9, agents-root 78.6, config-cli 68.6, ui-e2e 48.6, cli-update 27.8
2 infra 62.5, agents-other 64.7, ui-other 47.7, messaging 53.0, gateway-methods 92.2
3 agents-tools 37.6, state-logging 67.5, services 69.5, packages 70.5, ui-chat 130.4
4 commands 86.3, gateway-root 148.5, other 85.1, plugin-sdk 35.5, agents-sessions 30.3
5 gateway-server 44.5, plugins-platform 82.9, commands-doctor 70.3, ui-pages 130.0, services-cron 35.3

The existing budget routing placed these five rows on blacksmith-16vcpu-ubuntu-2404 in this run. This patch changes no routing. The central commands took approximately 187.2 s for extension tests, 86.4 s for scripts and 136.4 s for root tests, from timestamped command boundaries.

Edited owner cost in actual PR CI Baseline → candidate seconds
Group-authorization guard command 83.660 → 37.853
Account-scope guard command 83.456 → 37.272
Import-cycle guard command 85.584 → 41.380
Native UI fixture file wall 79.562 → 47.635
Sidebar stability native file 50.709 → 15.910
Mutation scope native file 50.311 → 16.152
Placement move native file 44.896 → 23.779

All three UI unit execution steps improved. Row 1's higher job wall includes 38 seconds between the job's API start timestamp and its first setup step; execution itself improved 284 → 273 seconds. Job timing includes this delay; the table does not silently subtract it.

No plan membership or committed timing weights changed: zero seconds were removed through tier reassignment. The controlled guard commands saved 37.63 seconds, the native unit command saved 9.18 seconds, and browser native files saved 88.056 file-seconds when selected in either PR or full-main validation. These distinct measures and parallel compiler graph walls are not added into an unsupported workflow-wall savings claim.

The compiler-state comparison saved 541.11 command-wall seconds (78.7%) with identical selected graphs. Cold totals were [663.42, 687.69, 821.15] seconds; restored totals were [146.58, 143.0, 149.53] seconds. Cache misses still require compilation; this does not prove the 420-second bound for a wholly cold narrowed queue.

Validation: all five required planner/guard files passed (2,795 tests; 430.73 s). The changed-file gate passed in 1,753.20 s, including all 25 core-test type graphs, script types, guards, deadcode and normal type-aware lint. Targeted docs MDX, formatting and diff checks passed. The later clock-only refinement passed focused validation and exact-head CI. Independent P2 review: scoped-clean on the final rebased branch; no actionable P0–P2 findings. The final clock refinement passed targeted type-aware Oxlint with a rejecting no-floating-promises canary.

Compiler breakdown (three-run Linux medians)
Graph/stage Cold seconds Restored seconds
agents-other 55.5 6.3
gateway-root 61.4 7.3
gateway-server 52.6 6.5
state-logging 52.1 6.3
config-cli 61.9 6.7
other 59.8 7.0
ui-pages 62.3 7.1
ui-e2e 64.6 7.5
ui-other 72.0 7.2
gateway-methods 67.1 6.9
ui-chat 56.1 6.7
core command wall 420.13 107.15
extensions command wall 141.31 16.51
scripts command wall 54.99 7.48
root command wall 83.84 13.04

The core command includes the complete boundary inventory and a two-process compiler queue; graph walls overlap and should not be summed as job wall.

Scope limits and retained coverage

The browser row-count target is not yet established. The baseline emitted three workers per Control UI shard. The baseline 630-spec inventory totals 7,536.954 native file-seconds; five three-worker Control UI shards have a 502-second idealized floor before setup and serial work at those observed costs. The measured source snapshot discovers 639 Control UI files. No unsupported five-row matrix reduction is included.

The coercion guard remains unchanged: its ordered parse-versus-read error behavior needs a separate preservation proof. Session-owner-chip keeps distinct pixel/layout coverage; activity-icon-loader already received concurrency optimization in #156042; sidebar unit fixtures overlap active fixture-repair work.

Top 25 browser specifications and bounded failure-history audit

Failure history is bounded to all 19 failed main workflow_dispatch CI runs created since 2026-09-20 through this investigation; 15 failed ordinary UI e2e jobs, 15 annotation responses. PR-only failures and successful runs are not part of this sample. Zero annotations is not proof of absent defects.

Rank File Baseline native seconds Failure annotations Fate / reason
1 ui/src/e2e/chat-async-questions.e2e.test.ts 70.639 0 Keep: browser persistence, reload/reconnect, optional answers and rejected-send receipts have distinct ownership contracts; already shared prepared app.
2 ui/src/e2e/chat-scroll-dock.e2e.test.ts 69.659 4 Keep: native scroll/dock geometry and reduced-motion paths; four recent failure annotations in the bounded hourly sample.
3 ui/src/e2e/chat-run-lifecycle.e2e.test.ts 67.924 0 Keep: stop/abort/reconnect/terminal ordering contracts are distinct; existing working-time and toast windows already advance clocks.
4 ui/src/e2e/chat-position-rail-layout.e2e.test.ts 66.828 1 Keep: native rail geometry and navigation/resize ordering; one recent failure annotation.
5 ui/src/e2e/chat-outbox-payloads.e2e.test.ts 62.003 0 Keep: native IndexedDB/Blob persistence, blocked upgrades, copied-tab locks and lost ACKs require the browser boundary.
6 ui/src/e2e/new-session-page.transition.e2e.test.ts 60.980 0 Keep: real navigation and layout transition states; remaining fixed waits mix CSS motion and video capture, requiring separate event-readiness proof.
7 ui/src/e2e/new-session-page.workspace-validation.e2e.test.ts 53.762 0 Keep: worktree discovery, retry/idempotency and recovery-owner transitions differ; no duplicate attempt variants.
8 ui/src/e2e/chat-model-controls.e2e.test.ts 53.609 0 Keep: large catalogs, account selection, pointer/keyboard and lazy picker state are different browser contracts.
9 ui/src/e2e/sidebar-session-stability.e2e.test.ts 50.709 0 FAST: advance the existing five-second automatic refresh policy while retaining all nine scenarios and geometry checks.
10 ui/src/e2e/chat-rail-columns.e2e.test.ts 50.419 0 Keep: tabbed panel persistence, right/bottom docking and mobile navigation cover independent rendered states.
11 ui/src/e2e/session-management.mutation-scope.e2e.test.ts 50.311 0 FAST: advance automatic refresh windows, preserving the four rename/archive × Active/All combinations and cross-agent pagination.
12 ui/src/e2e/chat-sidebar-panel-contract.e2e.test.ts 49.850 0 Keep: retained Desktop/RFB/browser lifecycle, focus and teardown are distinct; its long retirement window already uses a clock.
13 ui/src/e2e/lazy-custom-element-recovery.e2e.test.ts 49.515 0 Keep: real hashed-chunk failures and reload recovery protect the built-asset boundary; unit mocks cannot replace it.
14 ui/src/e2e/chat-position-rail.e2e.test.ts 48.946 0 Keep: native reader position, keyboard navigation and long continuation geometry; no safe clock-only improvement established.
15 ui/src/e2e/chat-attachment-read-lifecycle.e2e.test.ts 47.246 0 Keep: native attachment reader/IndexedDB admission and navigation races; recent #157013 fixture/product work retained.
16 ui/src/e2e/chat-queue-update-reload.e2e.test.ts 44.975 0 Keep: source-module queue stores and real reload recovery are intentional; private Vite ownership is required by imports.
17 ui/src/e2e/session-placement.move.e2e.test.ts 44.896 0 FAST: retain one full abandonment/split/final/reload tour and remove four repeats whose only inputs are synthetic attempt IDs.
18 ui/src/e2e/chat-user-bubble-disclosure.e2e.test.ts 44.668 0 Keep: native line measurement, authored details and viewport/text reflow need browser layout; parameter cases represent different rendering.
19 ui/src/e2e/new-session-page.instant-thread.e2e.test.ts 42.692 0 Keep: startup and late-result ownership, authenticated recovery scope, storage failures and boot changes are distinct.
20 ui/src/e2e/session-progress-motion.e2e.test.ts 41.575 3 Keep: stability waits deliberately detect retired CSS motion; browser clock alone would skip that animation contract; three recent failures.
21 ui/src/e2e/chat-session-companion-focus.e2e.test.ts 41.123 0 Keep: native focus/keyboard ownership across delayed rail mount, tabs, panes and drafts is distinct.
22 ui/src/e2e/chat-attributed-identity.e2e.test.ts 40.731 0 Keep: attribution across refresh/send recovery and native mobile safe-area/width geometry; no measured safe reduction established.
23 ui/src/e2e/chat-flow.active-run-follow-ups.e2e.test.ts 39.830 0 Keep: steer/interrupt/queued send and history ordering are distinct; one possible five-second refresh remains a follow-up.
24 ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts 39.514 0 Keep: native/web titlebar, pending Inbox intent and mobile focus containment differ; existing timer-specific cases already use clocks.
25 ui/src/e2e/chat-markdown-table-interactions.e2e.test.ts 39.399 0 Keep: native table sizing/overflow, fullscreen focus, history teardown and link activation differ; recent F-lane fixes retained.
Ranked guard and UI unit follow-up candidates

Baseline run 35973580579; these are CI file/command walls, separate from the controlled Linux medians above. Unchanged files remain in their existing PR tier.

Guard in scripts/ Baseline seconds Fate or unchanged reason
check-import-cycles.ts 85.58 FAST: batch native parsing; full graph retained.
check-no-pairing-store-group-auth.mts 83.66 FAST: shared collector batching; authorization checks retained.
check-pairing-account-scope.mts 83.46 FAST: shared collector batching; scope checks retained.
check-coercion-helper-declarations.mts 43.25 Unchanged: separate parse/read-error ordering needs its own preservation proof.
check-duplicates.mjs 38.63 Unchanged: jscpd does not share the native-parser defect; no measured safe reduction established.
check-temp-path-guardrails.ts 1.98 Unchanged: already small and outside the costly parser path.
check-package-patches.mts 0.87 Unchanged: already small.

UI paths are relative to ui/ except the plugin path.

UI unit file Baseline seconds Fate or unchanged reason
src/components/session-owner-chip.browser.test.ts 84.66 Retain theme, pixel-centering and contrast contracts; no cheaper equivalent qualified.
src/test-helpers/control-ui-e2e-suite.test.ts 79.56 FAST: share prepared fixture transforms; all 17 native lifecycle cases retained.
src/pages/chat/chat-responsive.browser.test.ts 51.65 Already shares a real-app page/browser; viewport and layout cases are distinct.
src/pages/plugins/activity-icon-loader.browser.test.ts 39.76 Retain browser authentication and concurrent rasterization contracts; recent concurrency optimization retained.
src/components/app-sidebar.people.test.ts 37.88 Shared sidebar suite already covers distinct roster, identity, attention and presence cases.
src/components/app-sidebar.sessions.test.ts 31.17 Shared fixture already covers distinct child-session, ownership, outbox and section behavior.
src/app/vite-build.node.test.ts 30.91 Actual emitted artifacts, diagnostics and write failures lack a named equivalent proof.
src/pages/chat/components/chat-image-loading.browser.test.ts 29.72 Keyboard admission and role/layout variants lack established equivalence.
src/pages/chat/chat-view.test.ts 29.43 Reported case duration is 13.13 s; no isolated repair for the remaining wall cost was measured.
extensions/workboard/browser/pages/workboard/view.test.ts 26.02 Distinct plugin mutation, revocation, read-only and partial-failure contracts retained.

Remaining CI failure outside this lane

CLI job 107629770649 failed src/cli/update-cli/update-command-executor-legacy.test.ts:209, case native Doctor descendants retain the legacy parent's live lifetime (managed=true, generation=true). It received SECOND_READY, LEAF_READY, and SECOND_EXIT:1, but had not received Legacy finalizer lifetime could not be acquired. The full envelope ran 395 files with eight workers on Linux/Node 24.19.0; 393 files passed and one was skipped.

The unchanged fixture waits for a stdout exit marker and then immediately asserts an independently collected stderr diagnostic. Cross-stream arrival ordering is a plausible race, not a reproduced root cause. The assertion/readiness logic predates SP1; no changed SP1 production path is reachable through this test. A single targeted Mac/Node 26.9.0 check passed (one selected case, 32.05 s including native preparation). That pass does not reproduce Linux shard order and does not prove a fix. No Linux replay, timeout change, assertion change or CI rerun was performed. The active CLI owner should synchronize both observations while retaining the assertions and existing deadline if the race is confirmed.

Automatic merge is not enabled.

@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 24, 2026, 11:50 AM ET / 15:50 UTC (Revision 4).

ClawSweeper review

What this changes

The branch broadens incremental compiler-cache restoration, batches TypeScript guard parsing, and reduces setup and waiting time in Control UI tests.

Merge readiness

⛔ Blocked before merge - 3 items remain

This PR remains useful: current main lacks the combined CI optimization, and the related merged UI work addresses a different bottleneck. Direct checks support the targeted gains, while mixed UI shard timings leave a performance tradeoff for review.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct native measurements and checks support a focused patch, with aggregate UI performance still uncertain.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The source-matched PR body and native CI evidence exercise the changed compiler-cache, guard, and UI test paths after the patch, showing faster selected commands and passing target jobs; they also disclose mixed aggregate UI shard timing. No user-stored data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The source-matched PR body and native CI evidence exercise the changed compiler-cache, guard, and UI test paths after the patch, showing faster selected commands and passing target jobs; they also disclose mixed aggregate UI shard timing. No user-stored data contract changes.
Evidence reviewed 8 items Pinned introduced workflow change: The PR adds broad fallback restoration for the central type row and five core stripes; this delta is absent from the pinned main parent.
Guard and UI implementation: The introduced guard change parses bounded source batches; the UI test changes share prepared transforms and advance the existing virtual refresh clock.
Existing cache authority: Current main permits PR cache restoration but restricts cache publication to approved main or release contexts.
Findings None None.
Security None None.

How this fits together

GitHub Actions selects checks for OpenClaw changes and runs type checks, source guards, and browser tests. Their results feed the PR merge gate.

flowchart LR
  A[Pull request changes] --> B[CI check selection]
  B --> C[Compiler cache restore]
  C --> D[Type checks]
  B --> E[Guard parser batches]
  B --> F[Browser test harness]
  D --> G[CI results]
  E --> G
  F --> G
Loading

Decision needed

Question Recommendation
Should the UI test changes land with the compiler and guard changes despite two slower matched owning shards and unexplained unchanged-test slowdown? Resolve UI shard cost: Compare the same owning-shard inventories under controlled conditions and narrow the UI portion if its slowdown persists.

Why: The source and direct checks establish targeted correctness and speed gains, but they cannot decide the acceptable aggregate CI-time tradeoff.

Before merge

  • Resolve merge risk (P1) - Matched owning UI shard measurements are mixed, with two shards slower and unchanged tests also slowing for an unknown reason. Establish whether the UI portion raises PR-tier wall time or explicitly accept that cost before merge.
  • Complete next step (P2) - Resolve or explicitly accept the unexplained UI shard slowdown before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Tests +41, Docs +3, Config +54, Other +17. Total +115 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 285 244 +41
Docs 1 6 3 +3
Config 1 54 0 +54
Generated 0 0 0 0
Other 2 42 25 +17
Total 8 387 272 +115

Review metrics

Metric Value Why it matters
Selected compiler graphs 687.69 → 146.58 seconds The three-run median comparison used the same selected graphs and shows the largest targeted gain.
Owning UI shards 2 of 3 matched shards slower Faster edited files have not established a net UI-tier improvement.

Merge-risk options

Maintainer options:

  1. Measure and narrow the UI portion (recommended)
    Use a controlled same-inventory shard comparison, then retain only UI changes with an acceptable aggregate cost.
  2. Accept possible UI slowdown
    Merge for the compiler and guard gains while explicitly accepting the observed uncertainty in UI shard duration.

Technical review

Best possible solution:

Retain the compiler and guard gains, and land the UI changes once their aggregate PR-tier cost is understood or explicitly accepted.

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

Not applicable as a bug reproduction: this PR targets measured CI and test cost, with native before/after timings and successful selected checks.

Is this the best way to solve the issue?

Unclear for the full bundle: cache restoration and parser batching use existing owners, but the UI portion needs an aggregate timing decision.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded CI-time improvement with no demonstrated user-facing runtime regression.
  • merge-risk: 🚨 automation: The changed CI and test paths have mixed measured shard timings that green checks do not resolve.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The source-matched PR body and native CI evidence exercise the changed compiler-cache, guard, and UI test paths after the patch, showing faster selected commands and passing target jobs; they also disclose mixed aggregate UI shard timing. No user-stored data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The source-matched PR body and native CI evidence exercise the changed compiler-cache, guard, and UI test paths after the patch, showing faster selected commands and passing target jobs; they also disclose mixed aggregate UI shard timing. No user-stored data contract changes.

Evidence

What I checked:

  • Pinned introduced workflow change: The PR adds broad fallback restoration for the central type row and five core stripes; this delta is absent from the pinned main parent. (.github/workflows/ci.yml:4391, be981fe228b4)
  • Guard and UI implementation: The introduced guard change parses bounded source batches; the UI test changes share prepared transforms and advance the existing virtual refresh clock. (scripts/lib/ts-guard-utils.mts:151, be981fe228b4)
  • Existing cache authority: Current main permits PR cache restoration but restricts cache publication to approved main or release contexts. (.github/workflows/ci.yml:1265, 02ad6b76b1a2)
  • Proof source identity: The live PR body has the same 22,686-unit source and SHA-256 as the captured review body. Its full text records native before/after command measurements, cache-invalidation controls, and mixed owning-shard results. (be981fe228b4)
  • Native CI result: The prior branch-head PR workflow completed successfully; its guard, type, UI unit, and nine UI E2E jobs each report success. This validates those checks without establishing an aggregate UI speedup. (5a5b0a90020f)
  • Unresolved performance comparison: The verified PR body reports two of three matched owning Control UI shard command walls increasing, including 399.60→444.81 seconds and 431.97→530.93 seconds. It explicitly says the cause of slower unchanged tests is not established. (be981fe228b4)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Free Wortley: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Resolve or explicitly accept the mixed owning-shard UI timing before merge.

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 (3 earlier review cycles)
  • reviewed 2026-09-24T12:15:29.893Z sha 5a5b0a9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-24T12:39:01.868Z sha 5a5b0a9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-24T12:46:53.758Z sha 5a5b0a9 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: L labels Sep 24, 2026
@steipete
steipete enabled auto-merge (squash) September 24, 2026 12:48
steipete added a commit that referenced this pull request Sep 24, 2026
The legacy executor fixture resolved its second-probe exit promise from
stdout, then immediately expected the rejection on a separate stderr pipe.
Process exit does not order those deliveries, and the stdout prefix could
also arrive before the complete exit code.

Record the actual rejection before exit and observe the real exit code and
signal through IPC. Keep leaf readiness parsing separate from stderr while
preserving live/dead ancestry, generation exclusion, lease-row preservation,
and descendant effect assertions. No executor behavior changes.

Observed in CI run 35997175601, job 107629770649
(checks-node-compact-small-27) on unrelated PR #157265.
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 24, 2026
@steipete
steipete merged commit f2baae3 into main Sep 24, 2026
183 checks passed
@steipete
steipete deleted the ci-burden/sp1-pr-tail branch September 24, 2026 16:04
vincentkoc added a commit that referenced this pull request Sep 24, 2026
* commit '9a1a6f7db9783d0b8abaf918bfe12978ea745b57': (26 commits)
  fix(maintainer): restore cold PR worktree provisioning (#157394)
  feat(ios): establish native Cloudflare Access sign-in sessions (#146996)
  fix: restore the Gateway after interrupted Doctor maintenance (#156854)
  refactor(line): retire the Express webhook adapter (#157369)
  refactor(cron): consolidate unavailable delivery targets (#157393)
  ci: apply Go memory defaults to architecture checks
  fix(cli): preserve the first PowerShell completion test failure (#157267)
  refactor(agents): consolidate transcript-tail model selection (#157382)
  fix(release): honor frozen validation contracts (#157034)
  fix(perf): use settled Kova terminal CPU accounting (#157029)
  chore(windows): verify packaged repair worker lifecycle (#157047)
  refactor(logging): share memory pressure threshold selection (#157164)
  fix(release): verify bundled fs-safe native bindings (#157027)
  perf(skills): skip warm prompt search when minimum cannot fit (#157343)
  fix(ui): avoid retaining detached tooltip anchors (#157226)
  perf(ci): reuse compiler state and shorten guard and UI tests (#157265)
  perf(ui): preserve model caches on unrelated metadata updates (#157254)
  chore: remove the tracked PR-body artifact and ignore .artifacts (#157296)
  refactor: consolidate duplicate MCP lifecycle tests (#157360)
  test(qa): consolidate CLI runtime fixtures (#118496)
  ...
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
The legacy executor fixture resolved its second-probe exit promise from
stdout, then immediately expected the rejection on a separate stderr pipe.
Process exit does not order those deliveries, and the stdout prefix could
also arrive before the complete exit code.

Record the actual rejection before exit and observe the real exit code and
signal through IPC. Keep leaf readiness parsing separate from stderr while
preserving live/dead ancestry, generation exclusion, lease-row preservation,
and descendant effect assertions. No executor behavior changes.

Observed in CI run 35997175601, job 107629770649
(checks-node-compact-small-27) on unrelated PR openclaw#157265.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…aw#157265)

* ci: restore compiler state for narrowed type checks

* perf(tooling): batch native syntax snapshots in guards

* test(ui): reuse prepared native fixture transforms

* test(ui): advance refresh clocks and consolidate placement tours
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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