Skip to content

fix(ui): refresh startup budget baseline - #125200

Merged
steipete merged 1 commit into
mainfrom
fix/control-ui-startup-budget
Aug 17, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/control-ui-startup-budget

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where a clean Control UI production build on current main failed the startup JS gzip ratchet after the intentional session placement, ownership, assignment, and participant UI additions landed in #125057.

Why This Change Was Made

The Node 24.15.0 build reproduces 339,585 B of startup JS gzip against the stale 338,241 B baseline plus 1,056 B tolerance. Inspection found no new accidental eager dependency: the affected session menu, owner chip, and participant facepile remain in their pre-existing startup ownership paths. This updates only the measured baseline through the repository baseline tool; tolerance and the 350 KiB hard ceiling are unchanged.

User Impact

No production or test behavior changes. Clean package and CI builds no longer fail on the intentional Control UI startup bytes already present on main.

Evidence

  • Node v24.15.0, with OPENCLAW_SKIP_PROVIDERS=1 OPENCLAW_SKIP_CHANNELS=1
  • Before: pnpm ui:build measured 339,585 B and failed by 288 B (339,585 > 338,241 + 1,056)
  • After: pnpm ui:build passed at 339,577 B (339,585 + 1,056 limit; build-to-build chunk-hash variance is covered by the existing tolerance)
  • pnpm check:changed passed
  • git diff --check passed
  • Production LOC: +0/-0; test LOC: +0/-0; metadata only

AI-assisted change.

@clawsweeper

clawsweeper Bot commented Aug 17, 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 17, 2026 09:51
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 17, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 5:57 AM ET / 09:57 UTC.

ClawSweeper review

What this changes

The PR updates the checked-in Control UI startup JavaScript gzip baseline from 338,241 to 339,585 bytes without changing the tolerance or hard ceiling.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No blocking findings. This maintainer-labelled PR is the narrow repair for a current-main Control UI build ratchet and should remain open for normal exact-head CI and merge review.

Priority: P3
Reviewed head: 088a1a0e9b15a8680f2610aacc9fbb7f97e45806

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused canonical baseline repair with source-backed guardrails and recorded build output.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI-ratchet update is exempt from the external-contributor real-behavior-proof gate; the body also records after-update build output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI-ratchet update is exempt from the external-contributor real-behavior-proof gate; the body also records after-update build output.
Evidence reviewed 5 items Current owner and enforcement path: The UI build invokes the Control UI performance validator after producing assets; the validator limits startup gzip to the lower of the committed baseline and hard cap, plus 1,056 bytes.
Current-main baseline is stale for the reported measurement: Current main records 338,241 bytes, while the PR changes only that value to 339,585 bytes; the 350 KiB cap remains defined in the checker.
Guardrail tests cover the retained policy: Existing tests verify the tolerance allowance, reject committed baselines above the fixed cap, and reject measurements beyond cap plus tolerance.
Findings None None.
Security None None.

How this fits together

The Control UI production build emits compressed startup assets which a repository checker measures. The checker compares those bytes with a committed ratchet baseline plus bounded tolerance and fails CI when the threshold or hard cap is exceeded.

flowchart LR
A[Control UI source] --> B[Production UI build]
B --> C[Compressed startup assets]
C --> D[Performance checker]
E[Committed baseline] --> D
D --> F[CI pass or failure]
Loading

Before merge

  • Complete next step (P2) - No repair work is needed; keep this protected maintainer PR open for normal exact-head CI and merge review.
Agent review details

Security

None.

PR surface

Other 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 1 1 1 0

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests +0/-0; baseline metadata 1 value changed The branch changes only the CI ratchet record, not shipped UI code or test logic.

Technical review

Best possible solution:

Land the measured baseline update once exact-head checks complete, retaining the existing 1,056-byte tolerance and 350 KiB ceiling.

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

Yes: current source shows that 338,241 bytes plus the fixed 1,056-byte tolerance rejects a 339,585-byte startup measurement, matching the build result recorded in the PR body.

Is this the best way to solve the issue?

Yes: updating the canonical measured baseline is the narrowest repair because it preserves both the tolerance and the independent 350 KiB hard ceiling.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a low-risk maintenance adjustment to a build-size ratchet with no runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI-ratchet update is exempt from the external-contributor real-behavior-proof gate; the body also records after-update build output.

Label justifications:

  • P3: This is a low-risk maintenance adjustment to a build-size ratchet with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored CI-ratchet update is exempt from the external-contributor real-behavior-proof gate; the body also records after-update build output.

Evidence

What I checked:

  • Current owner and enforcement path: The UI build invokes the Control UI performance validator after producing assets; the validator limits startup gzip to the lower of the committed baseline and hard cap, plus 1,056 bytes. (scripts/ui.mts:456, 4ffcd972d3c3)
  • Current-main baseline is stale for the reported measurement: Current main records 338,241 bytes, while the PR changes only that value to 339,585 bytes; the 350 KiB cap remains defined in the checker. (config/control-ui-startup-budget-baseline.json:2, 4ffcd972d3c3)
  • Guardrail tests cover the retained policy: Existing tests verify the tolerance allowance, reject committed baselines above the fixed cap, and reject measurements beyond cap plus tolerance. (test/scripts/control-ui-performance.test.ts:208, 4ffcd972d3c3)
  • History ties the drift to the merged UI feature: The first-parent history after the prior baseline maintenance records merged PR 125057 as the later main-branch change touching this baseline; its merge message explicitly describes raising the startup budget for the ownership UI surfaces. (config/control-ui-startup-budget-baseline.json:2, 55ce95fac803)
  • PR evidence: The PR body reports a Node 24.15 production build at 339,585 bytes and a passing after-update build; this is consistent with the checker’s current tolerance and cap contract. (config/control-ui-startup-budget-baseline.json:2, 088a1a0e9b15)

Likely related people:

  • steipete: Current history attributes both the preceding merged session feature and the prior Control UI baseline maintenance to steipete. (role: recent UI-budget and session-feature contributor; confidence: high; commits: 55ce95fac803, faed554dd674; files: config/control-ui-startup-budget-baseline.json, scripts/check-control-ui-performance.mts)

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.

Copy link
Copy Markdown
Contributor Author

Land-ready evidence for exact head 088a1a0e9b15a8680f2610aacc9fbb7f97e45806:

No provider or channel requests were made. No package, tag, or release publication is involved.

@steipete
steipete merged commit 7efd0f0 into main Aug 17, 2026
180 of 183 checks passed
@steipete
steipete deleted the fix/control-ui-startup-budget branch August 17, 2026 10:01

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(ui): refresh startup budget baseline This is item 3/3 in the current shard. Shard 2/44.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

2 participants