Skip to content

fix(ci): record legitimate Control UI startup growth - #125156

Merged
steipete merged 1 commit into
mainfrom
steipete/ui-gzip-ratchet-repair
Aug 17, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/ui-gzip-ratchet-repair

Conversation

@steipete

@steipete steipete commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves the red build-artifacts job on main, where the Control UI startup-JavaScript gzip ratchet rejected a legitimate 219-byte increase from the session-placement move controls landed in #125036.

The last green push, CI run 32005436217 at 2a556234c, measured 338,485 B against an effective limit of 338,567 B, leaving 82 B of headroom. CI run 32005779745 at 7fd6d0684 measured 338,704 B: 219 B larger and 137 B over the ratchet.

Why This Change Was Made

The crossing change was f59e945013d / #125036. It adds the session-placement move controls and English strings without changing package or lockfile inputs. The move dialog and catalog helpers remain dynamically imported in separate lazy chunks, so this is legitimate feature growth rather than a duplicate dependency or unintended heavy startup import.

This updates only the CI-measured startup baseline from 337,511 B to 338,704 B. The fixed 350 KiB ceiling and 1,056 B platform/build variance tolerance remain unchanged.

This leaves 19,696 B of committed-baseline headroom under the 358,400 B hard cap. The maintainer explicitly approved recording the measured 338,704 B baseline; this records legitimate feature growth rather than silencing a regression.

Follow-up: #123709's pinned pre-C04 reader compatibility test cold-boots a historical checkout under TSX inside the unit shard. It took 54.7s in run 32005779745 and 76.3s in run 32006111932. Both checks-node-compact-large-2 jobs passed, but this valuable downgrade proof should move to or be prebuilt in a dedicated compatibility/package lane rather than raising the 120s timeout.

User Impact

No runtime behavior changes. Main CI accepts the intentionally larger Control UI startup bundle while retaining the existing hard performance ceiling.

Evidence

  • Before: 338,704 B versus 338,567 B effective limit, a 137 B overage in run 32005779745.
  • After: node --import tsx scripts/check-control-ui-performance.mts --json reports no violations with the 338,704 B recorded baseline.
  • pnpm ui:build
  • pnpm test test/scripts/control-ui-performance.test.ts — 13 tests passed.
  • pnpm check:changed
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted ... — clean, no accepted/actionable findings.
  • Production LOC: +0/-0. Baseline metadata: +3/-3. Tests: +0/-0.

AI-assisted; the code path, bundle ownership, and CI provenance were manually inspected.

@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 07:53
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 17, 2026
@steipete steipete self-assigned this 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, 3:59 AM ET / 07:59 UTC.

ClawSweeper review

What this changes

Updates the Control UI startup-JavaScript gzip baseline and its reason to record the measured size of the merged session-placement controls.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: this narrow maintainer-labeled CI repair is still needed because current main retains the prior 337,511 B baseline. The proposed 338,704 B record fits the existing bounded ratchet mechanism and leaves the 350 KiB ceiling unchanged.

Priority: P3
Reviewed head: 5b209f79476399d133f5b1be263c56003641d8c3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The narrowly scoped record matches the existing bounded budget contract; exact-head CI remains the final merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled internal CI baseline adjustment has no external-contributor real-behavior-proof requirement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled internal CI baseline adjustment has no external-contributor real-behavior-proof requirement.
Evidence reviewed 5 items Current-main baseline remains stale: The recorded current-main baseline is 337,511 B, so it does not yet include this PR's proposed 338,704 B measurement.
Budget guard remains bounded: The checker derives the startup limit from the lower of the recorded baseline and fixed 350 KiB ceiling, then adds the unchanged 1,056 B tolerance; it also rejects a baseline above that ceiling.
Exact branch change: The PR changes only the baseline value, reason, and date from 337,511 B to 338,704 B.
Findings None None.
Security None None.

How this fits together

The Control UI build emits compressed startup assets that a CI script compares with a recorded baseline, a small variance allowance, and a fixed hard ceiling. The result determines whether the build-artifacts job accepts the bundle.

flowchart LR
  A[Control UI source] --> B[Production UI build]
  B --> C[Compressed startup assets]
  D[Recorded gzip baseline] --> E[Budget evaluation]
  C --> E
  E --> F[Build-artifacts CI result]
Loading

Before merge

  • Complete next step (P2) - The protected maintainer label requires normal human handling; no discrete automated repair is needed.
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 3 3 0
Total 1 3 3 0

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests +0/-0; baseline metadata +3/-3 The PR changes only the CI-consumed measurement record and adds no runtime or test code.

Technical review

Best possible solution:

Land the measured baseline record after exact-head CI confirms the build-artifacts check, while retaining the checker’s fixed ceiling, tolerance, and ratchet safeguards.

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

Yes, from the CI artifact measurement stated in the PR: the current 337,511 B record plus the checker’s 1,056 B tolerance yields a 338,567 B limit, below the reported 338,704 B artifact. This read-only review did not rerun a UI build.

Is this the best way to solve the issue?

Yes. The existing checker explicitly supports bounded CI-measured baseline records; this uses that path without weakening the fixed 350 KiB ceiling or tolerance.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a narrowly scoped CI-baseline maintenance change 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-labeled internal CI baseline adjustment has no external-contributor real-behavior-proof requirement.

Label justifications:

  • P3: This is a narrowly scoped CI-baseline maintenance change 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-labeled internal CI baseline adjustment has no external-contributor real-behavior-proof requirement.

Evidence

What I checked:

Likely related people:

  • steipete: Blame attributes the baseline, budget evaluator, and update guard to Peter Steinberger's recent Control UI work; this PR continues that same path. (role: introduced and recently maintained the Control UI budget path; confidence: high; commits: 3d1185f1373c, 5b209f794763; files: scripts/check-control-ui-performance.mts, config/control-ui-startup-budget-baseline.json)

Rank-up moves

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

  • Allow the exact-head build-artifacts and remaining CI checks to settle 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.

@steipete
steipete merged commit faed554 into main Aug 17, 2026
183 checks passed
@steipete
steipete deleted the steipete/ui-gzip-ratchet-repair branch August 17, 2026 08:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete

Copy link
Copy Markdown
Contributor Author

Operator approval: Peter explicitly approved the Control UI startup-budget baseline update from 337511 to 338704 with reason session placement move controls as the sanctioned CI unbreak.

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.

1 participant