Skip to content

fix(ci): keep locale assets within the installed package budget - #206492

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-locale-package-entries-20261127
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-locale-package-entries-20261127

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The scheduled published-driver update fails because the installed package contains 47,978 entries, above the 47,500 release budget. Small optional Control UI translation dictionaries each add a separate installed file. Failing main run.

User Impact

The candidate fits the installed-package budget that protects older updaters. Translations still register only when requested, and startup preloads retain their existing URLs. No configuration changes are required.

Why This Change Was Made

The existing locale build owner groups optional dictionaries of at most 3 KiB into content-hashed assets capped at 8 KiB. Boot dictionaries, error groups, and larger dictionaries remain separate. This trades a bounded amount of optional first-use transfer for fewer installed files, without adding a runtime cache or changing the package budget.

Evidence

  • Paired builds from the same base: package-eligible Control UI files 3,837 → 3,221 (616 fewer). Bytes 62,159,900 → 62,194,274 (+34,374). The largest grouped asset is 8,190 bytes.
  • Full candidate build and package-tarball integrity check passed.
  • Public installer with Node 24.22.1 / npm 12.0.2: 47,362 installed entries / 574.9 MiB, within 47,500 / 900 MiB. Lifecycle markers cleared and the installed CLI reported the expected version.
  • 86 focused tests passed across Vite configuration, built assets, and locale loading. The added regression fails on the original emitter (six files instead of four), then passes with the fix.
  • Targeted lint and source/test UI typechecks passed.
  • Production-bundle German Roles-page comparison: 10/10 observations passed, five interleaved pairs, desktop Chromium, localhost HTTP with the synthetic Gateway. No measured timing metric exceeded the 20% regression threshold.
Browser metric Base median / p95 Candidate median / p95
Route ready 122.0 / 157.2 ms 116.8 / 164.6 ms
Renderer task time 184.8 / 235.1 ms 171.7 / 225.7 ms
Automation-to-assertion wall time 241.3 / 320.1 ms 238.2 / 287.3 ms

Route-ready ranges were 118.8–157.2 ms and 113.2–164.6 ms. This is a regression check of the production renderer with a fixture, not a live-Gateway latency claim.

Local ClawSweeper reviewed the complete committed range b56baaec9b8bd79288e04b9b1f6189df8edc55e0..5bb78277d919dd474f9a9dda9b7c9e998006d00e and found no actionable correctness or security defects. The change adds 46 net production lines and 59 net test lines within the existing build owner.

@vincentkoc vincentkoc self-assigned this Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 07:53
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Nov 27, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) November 27, 2026 07:57
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 27, 2026
@vincentkoc
vincentkoc merged commit ac1d074 into main Nov 27, 2026
160 of 161 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-locale-package-entries-20261127 branch November 27, 2026 08:10
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR combines small optional translation dictionaries into bounded, content-hashed assets to reduce installed files.

Example: Installing the candidate package through the public installer with Node 24.22.1 and npm 12.0.2.

  • Before: The reported installed tree contains 47,978 entries, exceeding the 47,500-entry budget.
  • After: The reported candidate contains 47,362 entries, while translations continue registering only when requested.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused producer-side repair with relevant installer, browser, and regression evidence; some hosted CI checks remain in progress.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The body records the candidate passing the public Linux installer under Node 24.22.1/npm 12.0.2 with 47,362 entries, completed lifecycle checks, and the expected CLI version; the production-bundle German Roles-page comparison exercises optional translations in Chromium with a synthetic Gateway. These results cover package output and browser loading without claiming live-Gateway latency.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Installed-package growth consumes the headroom needed to keep updates working with shipped updater limits.
Reason: The maintainer-authored change restores the existing package budget through a narrow build-only tradeoff with recorded installer and browser results.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a demonstrated installed-package budget failure with a focused change in the existing locale build owner; no actionable patch defects were found.

Reviewed head: 5bb78277d919dd474f9a9dda9b7c9e998006d00e

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI Vite locale plugin converts canonical translation catalogs into browser modules; the package includes those assets, and the existing runtime catalog loader registers requested namespaces.

flowchart LR
  A[Canonical translation catalogs] --> B[Vite locale plugin]
  B --> C[Separate boot and error assets]
  B --> D[Bounded optional dictionary groups]
  C --> E[Installed package]
  D --> E
  E --> F[Browser namespace loader]
Loading

Technical review

Best possible solution:

Keep bounded grouping in the existing locale emitter while preserving independent boot assets and namespace registration.

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

Current-main source emits one asset per namespace, and the linked scheduled update failed at the package-update step; the precise over-budget count is reported in the PR rather than independently reproduced during this read-only review.

Is this the best way to solve the issue?

The change fixes excess files at their producer, adds no runtime cache or competing owner, and preserves the lazy-registration contract.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Locale namespace emission and Chat preloads keeps the original intent (b32f01a: Preserve immutable locale URLs and compact parallel Chat preload metadata without another network round trip.)
  • Early locale namespace selection keeps the original intent (caaff17: Start translated Chat downloads early while keeping non-Chat surfaces lazy.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b32f01a adds ui/config/control-ui-locales.ts:316 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b32f01abae8d; files: ui/config/control-ui-locales.ts)
  • Vincent Koc: Raw commit 3ffdc1b adds ui/config/control-ui-locales.ts:70 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3ffdc1bfccd4; files: ui/config/control-ui-locales.ts)

PR surface

Source +46, Tests +59. Total +105 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 67 21 +46
Tests 1 61 2 +59
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 128 23 +105

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 3:09 AM ET / 08:09 UTC.

@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit 'fd681ab8786e062045fa5ec6261b1b06f60832eb': (2115 commits)
  fix: keep doctor --fix pending checks from creating SQLite sidecars (#206485)
  fix(ci): update iOS screenshot reducer gate (#206497)
  fix: keep chat photo previews sharp within their byte limits (#206461)
  fix: let agents use short Workboard card IDs
  fix(tui): run provider sign-in in the local TUI (#200605)
  improve(config): reduce repeated directory checks for larger agent rosters (#206494)
  perf(test): reuse the Periphery producer workflow snapshot (#189681)
  fix(ci): keep locale assets within the installed package budget (#206492)
  fix: preserve failed Apple chat messages across partial history pages (#205404)
  improve: avoid merging unrelated settings for agent directory lookups (#206489)
  fix: show typing while a queued follow-up turn runs (#201920)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  ...
vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit 'fd681ab8786e062045fa5ec6261b1b06f60832eb': (923 commits)
  fix: keep doctor --fix pending checks from creating SQLite sidecars (#206485)
  fix(ci): update iOS screenshot reducer gate (#206497)
  fix: keep chat photo previews sharp within their byte limits (#206461)
  fix: let agents use short Workboard card IDs
  fix(tui): run provider sign-in in the local TUI (#200605)
  improve(config): reduce repeated directory checks for larger agent rosters (#206494)
  perf(test): reuse the Periphery producer workflow snapshot (#189681)
  fix(ci): keep locale assets within the installed package budget (#206492)
  fix: preserve failed Apple chat messages across partial history pages (#205404)
  improve: avoid merging unrelated settings for agent directory lookups (#206489)
  fix: show typing while a queued follow-up turn runs (#201920)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  ...
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
)

(cherry picked from commit ac1d074)

Follow-up audit: b5023a7 trims test helpers and examples; no locale asset companion needed.

Co-authored-by: RomneyDa <[email protected]>
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 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. size: S 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