Skip to content

fix(ci): restore cold checkout and Control UI startup validation - #150455

Merged
steipete merged 21 commits into
mainfrom
codex/ui-usage-startup-budget-20260916
Sep 17, 2026
Merged

steipete merged 21 commits into
mainfrom
codex/ui-usage-startup-budget-20260916

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Related: #150465

What Problem This Solves

Main CI fails when the Control UI startup bundle exceeds its existing size limit or the cold-worktree fixture omits a newly imported source helper. Copied PR-wrapper dependencies also need CI coverage when their source changes.

User Impact

Control UI startup downloads less JavaScript while Usage labels and interactions stay unchanged. Cold-worktree tests exercise the complete real script dependency chain, and future PR-wrapper source changes select provisioning proof automatically. No configuration, dependency versions, thresholds, allowances, or snapshots change.

Why This Change Was Made

Move 135 Usage-only English strings into the existing lazy catalog mechanism, preserving shared labels and complete translation composition. Add the missing bundled-source helper to the cold fixture. Derive the provisioning test watch from the existing wrapper inventory and verify that every extracted component includes its eager runtime imports. The inventory's three missing entries are already repaired on main; this change protects that repair without replacing normal source-owned tests.

Evidence

Prior failures: main startup budget and cold-worktree fixture.

The integrated production UI build measures 361,237 bytes startup gzip, leaving 1,351 bytes below the unchanged 362,588-byte limit, with seven startup requests. The original same-source comparison reduced startup gzip by 1,494 bytes. The complete 621,923-byte English catalog and key order remain identical, and the Usage fragment stays in the deferred page bundle.

The UI files are byte-identical to the reviewed source that passed 251 focused Usage/i18n tests and all 10 bundled Usage analysis E2E scenarios. The integrated CI-planning, cold-worktree, and native provisioning suites pass: 135 tests passed, with one existing Linux-only case skipped on macOS. The APFS cold/warm and sparse-transition case passed in 81.3 seconds. The full selected formatting, type, i18n, lint, dead-export, and boundary checks pass. Fresh combined P0–P2 review is clean.

Before/after screenshots show the same synthetic Usage scenario; both PNGs and the owning UI source are unchanged.

Before:

Usage analysis before startup copy extraction

After:

Usage analysis after startup copy extraction

@clawsweeper

clawsweeper Bot commented Sep 17, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 17, 2026
@steipete
steipete marked this pull request as ready for review September 17, 2026 01:18
steipete and others added 5 commits September 16, 2026 18:19
…150419)

Root reads in fs-safe 0.13.1 use dedicated final-admission hooks. Move the post-stat growth fixture to beforeRootReadFinalFence so its real read instrumentation and aggregate-budget assertions execute again.

Related: #150263.
Remove the fixed dependency bag and monitor forwarding in favor of the
existing delivery owners. Preserve the contextual reply-error callback,
runtime.channel.line injection, delivery ordering and recovery behavior.

Move delivery fixtures to scoped module spies without dropping assertions.

Validation: prior 147-case original-diagnostic, fixture-port and cutover
epochs, a full build and a native runtime-barrel import. The later test-only
toReversed correction passed focused lint and the complete changed gate.
Proof is local and synthetic, not real LINE service delivery.
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 16, 2026, 10:37 PM ET / September 17, 2026, 02:37 UTC (Revision 2).

ClawSweeper review

What this changes

Defers Usage-page English text, repairs cold-checkout fixture inputs, and adds manifest-driven provisioning coverage to CI.

Merge readiness

⛔ Blocked before merge - 1 item remains

The PR retains useful Usage startup and CI coverage changes that fetched main does not contain. The related PR overlaps only part of this work, and no blocking defect was found.

Priority: P2
Reviewed head: 98bd35570b3f4d4669684444449586db567c67be

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with relevant visual and measured validation evidence, and no supported blocking finding.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected synthetic Usage before/after screenshots show preserved labels and presentation on UI sources unchanged since the prior review; the captured body separately reports the production startup reduction and successful native provisioning exercise. Screenshots are credited only for visible parity, and reported executions were not independently rerun.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected synthetic Usage before/after screenshots show preserved labels and presentation on UI sources unchanged since the prior review; the captured body separately reports the production startup reduction and successful native provisioning exercise. Screenshots are credited only for visible parity, and reported executions were not independently rerun.
Evidence reviewed 10 items Verified review scope: The original head's raw first parent is c5cff2f. Its comparison with HEAD isolates the Usage, cold-fixture, and provisioning changes; the broader pinned delta includes incorporated upstream commits.
Incorporated changes already on main: The ancestry check succeeded. Channel, audit, compaction, and updater changes preceding this first parent are already incorporated into fetched main; they do not establish new merge risks for the remaining work.
Usage extraction remains useful: Fetched main still includes the extracted Usage analysis strings in its eager English catalog. The new registrar preserves the shared Usage object and overview title; the Usage view and its detail/overview consumers import metrics, which registers the fragment synchronously before rendering.
Findings None None.
Security None None.

How this fits together

The Control UI loads English labels alongside its pages. Separately, CI selects tests for changed source files, including files copied into isolated PR tooling worktrees.

flowchart TD
  A[English catalogs] --> B[Small startup catalog]
  A --> C[Lazy Usage page]
  C --> D[Usage labels]
  E[Changed source files] --> F[CI test selection]
  G[Wrapper file inventory] --> F
  F --> H[Provisioning and import checks]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +197, Tests +678, Docs +36, Other +25. Total +936 across 59 files.

View PR surface stats
Area Files Added Removed Net
Source 23 564 367 +197
Tests 28 995 317 +678
Docs 4 41 5 +36
Config 0 0 0 0
Generated 0 0 0 0
Other 4 37 12 +25
Total 59 1637 701 +936

Review metrics

Metric Value Why it matters
Reported startup budget 361,237 B gzip; 1,351 B below the unchanged limit The production-build measurement directly addresses the startup-budget failure without relaxing its threshold.

Stored data model

Persistent data-model change detected: database schema: src/audit/audit-event-queries.ts, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/project-worktree-startup.mjs, serialized state: scripts/e2e/lib/upgrade-survivor/project-worktree-startup.mjs, serialized state: scripts/lib/ci-node-test-plan.mts, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/project-worktree-startup.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep page-only copy behind the existing lazy catalog boundary and derive provisioning coverage from the single canonical wrapper inventory.

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

Yes: the original cold fixture omits a statically imported helper, and the supplied main-CI failure plus production-build measurements identify the startup-budget failure. Neither was executed during this read-only review.

Is this the best way to solve the issue?

Yes: the patch uses existing lazy catalog registration and CI policy watches, preserves shared labels and ordinary test ownership, and leaves thresholds unchanged.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c7436e77ca81.

Labels

Label justifications:

  • P2: This is a bounded startup-performance and validation improvement without evidence of an urgent user-facing outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected synthetic Usage before/after screenshots show preserved labels and presentation on UI sources unchanged since the prior review; the captured body separately reports the production startup reduction and successful native provisioning exercise. Screenshots are credited only for visible parity, and reported executions were not independently rerun.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected synthetic Usage before/after screenshots show preserved labels and presentation on UI sources unchanged since the prior review; the captured body separately reports the production startup reduction and successful native provisioning exercise. Screenshots are credited only for visible parity, and reported executions were not independently rerun.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected synthetic Usage before/after screenshots show preserved labels and presentation on UI sources unchanged since the prior review; the captured body separately reports the production startup reduction and successful native provisioning exercise. Screenshots are credited only for visible parity, and reported executions were not independently rerun.

Evidence

What I checked:

  • Verified review scope: The original head's raw first parent is c5cff2f. Its comparison with HEAD isolates the Usage, cold-fixture, and provisioning changes; the broader pinned delta includes incorporated upstream commits. (98bd35570b3f)
  • Incorporated changes already on main: The ancestry check succeeded. Channel, audit, compaction, and updater changes preceding this first parent are already incorporated into fetched main; they do not establish new merge risks for the remaining work. (c7436e77ca81)
  • Usage extraction remains useful: Fetched main still includes the extracted Usage analysis strings in its eager English catalog. The new registrar preserves the shared Usage object and overview title; the Usage view and its detail/overview consumers import metrics, which registers the fragment synchronously before rendering. (ui/src/i18n/locales/en.ts:3590, c7436e77ca81)
  • CI coverage preserves existing owners: The added watch reads the canonical wrapper inventory and selects provisioning alongside ordinary source tests. Only the inventory itself receives exclusive policy ownership. The new test checks emitted eager imports against the extracted files, including resolved workspace aliases. (scripts/lib/ci-node-test-plan.mts:143, 98bd35570b3f)
  • Review continuity: The UI sources and host catalog composition are unchanged from the earlier reviewed head. The supplied completed-review projection contains no findings or published rank-up moves. (ui/src/pages/usage/metrics.ts:15, 98bd35570b3f)
  • Inspected proof and reported measurements: Inspected both downloaded Usage screenshots from the supplied media manifest: labels, error-hour summary, and activity presentation match. The captured body at sourceRevision 11ba5be9c7e29864437fcd8682793883cb580d9939031b0a5a87ee500225f4bf separately reports 361,237 bytes startup gzip against a 362,588-byte limit, ten Usage E2E scenarios, and 135 integrated tooling tests. These executions were not rerun during this read-only review; screenshots establish visible parity, not bundle size. (ui/src/pages/usage/metrics.ts:15, 98bd35570b3f)

Likely related people:

  • Jason (Json): Raw commit 387f698 adds test/scripts/pr-worktree-provision.test.ts:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 387f69830a81; files: test/scripts/pr-worktree-provision.test.ts)
  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (1 earlier review cycle)
  • reviewed 2026-09-17T01:25:31.787Z sha c4a5c49 :: needs maintainer review before merge. :: none

steipete and others added 12 commits September 16, 2026 18:27
* fix(plugins): exclude scaffold tests from published packages

* fix(plugins): preserve feature compilation and verify scaffold packages
…0400)

Report compaction authentication failures through the existing preflight recovery reply while preserving explicit model selection, cooldowns, and cancellation.

Refs #150388.
)

Preserve literal Space keyboard input from the Control UI Browser panel through the shared browser action normalizer.

Refs #150298.
Reviewed-by: @shakkernerd
* improve: reduce audit event persistence overhead

* refactor: isolate prepared audit event queries
* fix(update): retain configuration and plugin failure details

* test(update): share diagnostic progress fixtures
shakkernerd and others added 2 commits September 17, 2026 03:14
Restore the required plugin discovery and configuration validation modules in fresh PR wrapper snapshots so review initialization completes.

Fixes #150449.
@steipete
steipete requested a review from a team as a code owner September 17, 2026 02:26
@steipete steipete changed the title improve(ui): load Usage analysis text with its page fix(ci): restore cold checkout and Control UI startup validation Sep 17, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 17, 2026
@steipete
steipete merged commit 8dd36a0 into main Sep 17, 2026
172 of 173 checks passed
@steipete
steipete deleted the codex/ui-usage-startup-budget-20260916 branch September 17, 2026 02:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…nclaw#150455)

Keep Control UI startup within its existing asset budget by loading Usage-only English with the page. Preserve all labels, shared search copy, translation order, and UI behavior.

Protect native PR provisioning through the canonical wrapper inventory: select the real provisioning test when copied source changes and verify its complete eager import closure. Include the newly imported bundled-source helper in the cold-worktree fixture. These changes preserve the reviewed work from openclaw#150465 and the original Usage and cold-fixture commits.

Validation: exact-head CI 35174399666 passed; 135 integrated tests passed with one existing platform skip; all selected type, lint, i18n, and boundary checks passed; independent P0-P2 review was clean. The integrated startup bundle is 361,237 bytes gzip against the unchanged 362,588-byte limit. The English catalog is byte-identical, and inspected before/after screenshots render in the PR.
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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: M 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.

6 participants