Repository navigation
fix(package): account for bundled docs growth - #126970
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 11:35 PM ET / August 21, 2026, 03:35 UTC. ClawSweeper reviewWhat this changesThe PR raises the npm package unpacked-size ceiling from 202 MiB to 204 MiB and updates the release-check expectation. Merge readinessKeep open. Current main still rejects packages above 202 MiB, while this branch raises the shared release/install guard to 204 MiB and continues to reject the documented 213.6 MiB bloat case; exact-head package preflight remains the final check. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherRelease tooling reads npm-pack metadata before publication and rejects unexpectedly large install artifacts. The same shared size helper is used by the release check and Docker package-install smoke, affecting whether a package may proceed through release validation. flowchart LR
A[Packaged files and docs] --> B[npm pack metadata]
B --> C[Shared size budget]
C --> D{Within 204 MiB?}
D -->|Yes| E[Release and install checks continue]
D -->|No| F[Report package bloat]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0, Other +1. Total +1 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the intentional bundled docs and land the 204 MiB limit once exact-head package validation confirms the intended artifact passes and the historical bloat guard still fails. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the current 202 MiB comparison rejects the PR body's reported 203.4 MiB package, and the helper is called by the release preflight. The PR body also links the observed failing preflight. Is this the best way to solve the issue? Yes, conditionally: changing the existing shared guard is the narrowest repair because package docs are already a declared published surface and both release paths consume this helper. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5e00a07db8b2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
This is temporary, I have kicked off a bundle size audit in parallel to address root cause
Summary
Root cause
Preflight at
bafa32fd544b5ad8ac0cba75ebb76bef2250e1d7produced a 203.4 MiB unpacked package. Compared with the last green preflight targetfdc1c2e6c1b5f41d00edb2eb55244fa7c51f87dd, package-included docs grew from 6,836,915 bytes to 9,526,623 bytes while bundled skills stayed flat. Those docs are intentionally installed so agents can resolve the package-local docs path; no duplicated channel shim, extension tree, or new binary asset accounts for the overage.Failed proof: https://github.com/openclaw/openclaw/actions/runs/32442022790/job/96654478072
Validation
git diff --checkProduction/tooling delta: +1/-1 effective constant/comment adjustment; test delta +1/-1.