Repository navigation
fix(package): keep npm release artifacts within size limits - #126448
Conversation
Exclude maintainer-only docs, shrink the Crabbox worker wallpaper, and keep installed dependency scans compatible with canonical self-contained worker bundles without changing release budgets.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 19, 2026, 7:03 PM ET / 23:03 UTC. ClawSweeper reviewWhat this changesThis PR trims files and a Crabbox wallpaper from the npm package while allowing two self-contained worker bundles through installed-package dependency verification. Merge readinessKeep open: the previous P2 remains unfixed on the unchanged head, where two worker artifacts bypass the only per-file parser bound before synchronous read and parse. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherRelease packaging builds the root npm artifact, then verifies installed distribution files and their declared runtime dependencies. Crabbox worker setup reads the bundled wallpaper when creating a worker desktop. flowchart LR
A[Source tree] --> B[NPM package artifact]
B --> C[Installed package verifier]
C --> D[File size and import checks]
D --> E[Release gate]
F[Crabbox wallpaper] --> G[Worker desktop setup]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +24, Config +5, Other +13. Total +42 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the two canonical worker paths exempt from the generic 6 MiB limit, but impose and test a finite worker-bundle parser cap before reading either file. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: a worker-path file over 6 MiB bypasses the generic check and is then fully read and parsed; focused regression coverage can establish the failing cap behavior. Is this the best way to solve the issue? No. The two-path exception is appropriately narrow, but removing the only per-file resource limit is not the best repair; a dedicated finite cap preserves the release invariant. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2fe6c0206d66. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Exclude maintainer-only docs, shrink the Crabbox worker wallpaper, and keep installed dependency scans compatible with canonical self-contained worker bundles without changing release budgets.
What Problem This Solves
Resolves a release-blocking problem where the root npm artifact exceeded its 202 MiB unpacked-size budget after the self-contained worker runtime and Crabbox desktop assets grew. The same release check also rejected the intentionally large canonical worker bundles during installed-package dependency verification.
Why This Change Was Made
The package now omits maintainer-only documentation sources, ships a desktop-scaled indexed Crabbox wallpaper instead of the 753 KiB source asset, and exempts only the two canonical self-contained worker artifacts from the generic 6 MiB parser bound while retaining regular-file, parse, and undeclared-dependency checks. The package-size budget and all other release gates remain unchanged.
User Impact
Maintainers can build and validate the root npm package on current main without raising the release budget. Crabbox workers retain the same lobster wallpaper design, delivered as a validated 1024×576 PNG suited to the stretched XFCE desktop background.
Evidence
node scripts/check-changed.mjs -- <changed files>passed all selected lanes.pnpm buildpassed.node --import tsx scripts/release-check.tspassed end to end, including installed-package verification.source=ref,suite_profile=package).Real Crabbox desktop comparison
Sanitized crops from the same task-owned AWS Crabbox XFCE surface show no visible background-texture regression after the asset reduction.
The live proof also exposed a separate current-main XFCE session-binding issue that can leave the wallpaper black when setup runs outside the renderer's desktop session. That lifecycle bug is tracked separately and is not caused by this image/package change.
AI-assisted: yes. The implementation, package ownership, generated binary, and runtime evidence were manually inspected and verified.