Repository navigation
fix(package): restore npm package size headroom - #129782
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
ClawSweeper rank-up moves reviewed against exact head
No code or scope changes are required from the review. |
|
/clownfish automerge |
|
Clownfish is on the reef for this PR. 🐠 I tagged A maintainer can call |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 12:25 AM ET / 04:25 UTC. ClawSweeper reviewWhat this changesThe PR removes the diffs and language-pack plugin outputs from the core build graph and generates selected Docker plugin assets before runtime postbuild stages them. Merge readinessNo blocking correctness finding found. This maintainer-authored, protected PR remains necessary: it aligns the already-external diffs packages with the core build and preserves selected Docker assets; exact-head checks are still incomplete. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherPackage assembly determines which plugin code enters the core npm artifact, while Docker selection builds and stages only explicitly selected plugin assets into its runtime image. The changed manifest and asset-discovery path control both the size budget and availability of the diff viewer runtime. flowchart LR
A[Plugin manifests] --> B[Core package build]
A --> C[Docker plugin selection]
C --> D[Generate plugin assets]
D --> E[Runtime postbuild]
E --> F[Docker runtime image]
B --> G[npm package artifact]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +10, Config +2, Other +15. Total +27 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the existing package-size cap, use the manifest-owned external distributions, and merge only after the exact head proves both the capped npm artifact and selected-Docker viewer assets. Do we have a high-confidence way to reproduce the issue? Yes in source: external packages are omitted from the normal core build, and the prior Docker sequence could run postbuild before their generated assets existed. This review did not execute the build because the checkout is read-only and its partial-clone history cannot hydrate without network access. Is this the best way to solve the issue? Yes: the existing official package catalog and root package exclusions already establish these as external packages, so removing their core build entries is more maintainable than increasing the size budget; Docker reuses its existing selected-plugin contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 22c101686f1e. 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
HistoryReview history (3 earlier review cycles)
|
|
Thanks, ClawSweeper. Clownfish picked up the reef notes and is starting a guarded repair pass. 🐠 Source: I will update this PR branch when I can. If GitHub branch permissions block that swim lane, I will open a safe credited replacement instead and keep it narrow. |
|
/clownfish stop |
|
🦞🧹
Draft PRs stay fix-only until GitHub marks them ready for review. Pause with Automerge progress:
Re-review progress:
|
|
Got it. Clownfish is floating this back to human review. 🐠 I kept the regular |
|
Thanks, ClawSweeper. Clownfish picked up the reef notes and is starting a guarded repair pass. 🐠 Source: I will update this PR branch when I can. If GitHub branch permissions block that swim lane, I will open a safe credited replacement instead and keep it narrow. |
|
Clownfish 🐠 reef automerge status No new branch changes from this lap. Clownfish kept the current tidy instead of splashing around. Target: #129782 Worker actions:
Nothing moved downstream from this pass: no branch update, replacement PR, merge, or re-review. fish notes: model gpt-5.5, reasoning medium. |
6327889 to
34c98fa
Compare
|
@clawsweeper re-review Behavior changed on exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
34c98fa to
3a6de25
Compare
|
Exact-head proof refreshed after the maintainer rebase to
The branch repair is unchanged; the rebase also includes main’s merged UI gzip-baseline refresh. |
|
Thanks, ClawSweeper. Clownfish is swimming another guarded repair lap for this PR. 🐠 Source: I will update this PR branch when I can. If GitHub branch permissions block that swim lane, I will open a safe credited replacement instead and keep it narrow. |
* origin/main: (24 commits) fix(gateway): reject rootless session permission modes (#128149) docs(memory): document shipped turn-taint propagation for network tool output (#129837) fix(ui): pool reply-less wake activity into one chat rollup (#128442) fix(package): prevent installs from deleting validated runtime assets (#129724) fix(nodes): approve silent initial node surfaces and name the pending surface approval (#129795) fix(backup): preserve configured agent state roots (#129773) fix(ui): own chat history issuance with a closed state machine (#129776) fix(cron): preserve cancellation reason after late finalization (#129331) fix(cron): prevent run waits from failing after clock changes (#129805) fix(telegram): route commentary through one frozen progress owner (#128259) fix(release): start approved VCR mirror recovery jobs (#129829) test: complete current-plugin-metadata-snapshot mock factories (#129791) test(telegram): remove duplicate reaction case (#129848) fix(channels): honor supported account reply-threading policies (#129679) refactor(cli): deduplicate lazy subcommand registration (#129351) fix(ai): report interrupted local-model streams instead of empty success (#129794) refactor(cli): consolidate Gateway fallback and hook ownership (#129802) fix(qa): reject token confidence lanes without executed evidence (#129830) fix(tui): fence session state and delayed actions (#129810) fix(control-ui): keep task progress full width on hover (#129832) ...
|
Clownfish 🐠 reef automerge status Clownfish finished this automerge repair swim without changing the branch. Target: #129782 Worker actions:
No branch push, rebase, replacement PR, merge, or ClawSweeper re-review was started on this lap. fish notes: model gpt-5.5, reasoning medium. |
|
Exact-head refresh proof for
No PR behavior changed in the refresh; the rerun was warranted because merged main #129724 strengthened the adjacent package inventory owner. |
|
@clawsweeper automerge |
|
Merged via squash.
|
* fix(package): externalize diffs build outputs * chore: remove release-owned changelog entry * fix(build): generate selected plugin assets before Docker staging --------- Co-authored-by: Dallin Romney <[email protected]>
Related: #129758
What Problem This Solves
The release npm package exceeded its audited unpacked-size limit because the diffs plugins' syntax-highlighting chunks were compiled into the core package graph.
Why This Change Was Made
Build the diffs plugins as isolated external packages, while reusing the existing Docker plugin-selection contract when staging static assets. Docker now runs manifest-owned asset generators before runtime postbuild, preserving the producer-before-copy invariant for explicitly selected external plugins.
This keeps plugin-only chunks out of the core tarball without raising the package budget, adding a fallback, changing package exclusions, or adding a parallel build path.
User Impact
Release packaging is under the existing 213,909,504-byte unpacked-size limit. Standalone and explicitly Docker-selected diffs plugin builds both retain
assets/viewer-runtime.js.Thanks @RomneyDa for reporting the package-size regression in #129758. This implementation does not reuse that PR's budget-increase patch.
Evidence
e41d949e919f5425d1d89e8450538f538477be8a.pnpm check:changed: passed before the mechanical current-main merge; exact-head CI covers the merged head.pnpm build:package: passed; 63 external plugin local distributions built.dist/assets/viewer-runtime.js.OPENCLAW_INTERNAL_DOCKER_BUILD_PLUGIN_IDS=diffs,diffs-language-pack pnpm build:dockerpassed and retained the same two final viewer assets.gpt-5.6-sol, high): clean; no actionable findings, overall confidence 0.98.Scope And LOC
The tooling growth threads the existing Docker selection into canonical static-asset discovery and adds one build-order contract.
This change was developed with AI assistance.