Repository navigation
fix(packaging): exclude source-build ledgers from npm packages - #190030
Conversation
Keep source-module URL metadata in build trees for source AOT compilation, while excluding it from root and separately packed AI publication. Preserve runtime resources and canonical distribution inventories. Allocate exactly 143 net regression-test lines for real npm/pnpm root and bundled-AI pack coverage, runtime exports, and inventory agreement; leave the shared baseline unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR excludes source-build module ledgers from root and AI npm packages while preserving them in source build trees. Example: Pack a build containing dist/.source-module-urls/build.json.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes unnecessary package contents still present on main, with no actionable introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherPackage manifests select build outputs for npm publication, while distribution inventories describe the shipped files and standalone source builds consume the retained ledgers. flowchart TD
A[Source build] --> B[Runtime outputs and source ledgers]
B --> C[Standalone source compiler]
B --> D[Root and AI package manifests]
D --> E[Published runtime packages]
D --> F[Distribution inventories]
Technical reviewBest possible solution: Keep the exclusions in the existing package manifests, preserving source ledgers and canonical inventory generation. Do we have a high-confidence way to reproduce the issue? Current-main manifests include the dist trees that receive source-module ledgers; supplied mutation controls exercise the missing exclusions, but this review ran no reproduction. Is this the best way to solve the issue? The two manifest exclusions are the smallest complete fix: they use existing publication owners and inventory filtering without deleting source-build inputs or adding runtime machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 46a33537efbf. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +240, Config +2, Other +5. Total +247 across 10 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 1, 2026, 2:46 PM ET / 19:46 UTC (Revision 3). |
Baseline-Refresh: 7a426d1dddcbcc390f79a4a248b308df2c79aff2
|
@clawsweeper re-review Exact head: |
|
🦞👀 Re-review progress:
|
* fix(anthropic): validate cancellation across stdin notifications * test(process): avoid returning from close promise executor * test(process): preserve typed stdin error identity (cherry picked from commit 50efbfd)
|
@clawsweeper re-review Please review exact head ae2b4ef. The signed follow-up integrates the landed stdin test-contract repair from #190335. Current composed Node/Bun suites, services typecheck, static checks and incremental source review passed; unchanged package proof and its original artifact identity are documented in the updated PR body. Hosted CI remains an independent landing gate. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(packaging): omit source-build ledgers from published packages Keep source-module URL metadata in build trees for source AOT compilation, while excluding it from root and separately packed AI publication. Preserve runtime resources and canonical distribution inventories. Allocate exactly 143 net regression-test lines for real npm/pnpm root and bundled-AI pack coverage, runtime exports, and inventory agreement; leave the shared baseline unchanged. * test(packaging): type fixture package names * test(packaging): complete declared publication fixture inputs * test(anthropic): cover repeated stdin failure notifications (#190335) * fix(anthropic): validate cancellation across stdin notifications * test(process): avoid returning from close promise executor * test(process): preserve typed stdin error identity (cherry picked from commit 50efbfd) (cherry picked from commit 5f229e0)
…law#190030) * fix(packaging): omit source-build ledgers from published packages Keep source-module URL metadata in build trees for source AOT compilation, while excluding it from root and separately packed AI publication. Preserve runtime resources and canonical distribution inventories. Allocate exactly 143 net regression-test lines for real npm/pnpm root and bundled-AI pack coverage, runtime exports, and inventory agreement; leave the shared baseline unchanged. * test(packaging): type fixture package names * test(packaging): complete declared publication fixture inputs * test(anthropic): cover repeated stdin failure notifications (openclaw#190335) * fix(anthropic): validate cancellation across stdin notifications * test(process): avoid returning from close promise executor * test(process): preserve typed stdin error identity (cherry picked from commit 0285717)
* test(e2e): align legacy operator requested exec policy * fix(doctor): preserve legacy upgrade backups and native assignments * fix(doctor): retain opt-in backup discovery typing * test(doctor): compare captured file bytes directly * fix(doctor): inspect admitted state schema content * fix: refresh the reviewed correction baseline Baseline-Refresh: e20ab99aad2669c5ee844498d5e939d0a1031cd8 * test(doctor): avoid shadowing state descriptor * fix(package): restore installed entry budget (#188097) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit d6d76cd) * fix(packaging): exclude source-build ledgers from npm packages (#190030) * fix(packaging): omit source-build ledgers from published packages Keep source-module URL metadata in build trees for source AOT compilation, while excluding it from root and separately packed AI publication. Preserve runtime resources and canonical distribution inventories. Allocate exactly 143 net regression-test lines for real npm/pnpm root and bundled-AI pack coverage, runtime exports, and inventory agreement; leave the shared baseline unchanged. * test(packaging): type fixture package names * test(packaging): complete declared publication fixture inputs * test(anthropic): cover repeated stdin failure notifications (#190335) * fix(anthropic): validate cancellation across stdin notifications * test(process): avoid returning from close promise executor * test(process): preserve typed stdin error identity (cherry picked from commit 50efbfd) (cherry picked from commit 5f229e0) * fix: refresh the reviewed correction baseline Baseline-Refresh: 131d3c9a10faf98d2bdb4e2b79051307c1e88f4f Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
…186506) * test(e2e): align legacy operator requested exec policy * fix(doctor): preserve legacy upgrade backups and native assignments * fix(doctor): retain opt-in backup discovery typing * test(doctor): compare captured file bytes directly * fix(doctor): inspect admitted state schema content * fix: refresh the reviewed correction baseline Baseline-Refresh: e20ab99aad2669c5ee844498d5e939d0a1031cd8 * test(doctor): avoid shadowing state descriptor * fix(package): restore installed entry budget (openclaw#188097) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 1864046) * fix(packaging): exclude source-build ledgers from npm packages (openclaw#190030) * fix(packaging): omit source-build ledgers from published packages Keep source-module URL metadata in build trees for source AOT compilation, while excluding it from root and separately packed AI publication. Preserve runtime resources and canonical distribution inventories. Allocate exactly 143 net regression-test lines for real npm/pnpm root and bundled-AI pack coverage, runtime exports, and inventory agreement; leave the shared baseline unchanged. * test(packaging): type fixture package names * test(packaging): complete declared publication fixture inputs * test(anthropic): cover repeated stdin failure notifications (openclaw#190335) * fix(anthropic): validate cancellation across stdin notifications * test(process): avoid returning from close promise executor * test(process): preserve typed stdin error identity (cherry picked from commit 0285717) (cherry picked from commit dcfd10f) * fix: refresh the reviewed correction baseline Baseline-Refresh: 131d3c9a10faf98d2bdb4e2b79051307c1e88f4f Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
What Problem This Solves
Build-only source-module ledgers are published in the main and bundled AI packages and count toward installed-tree limits enforced by shipped updaters.
User Impact
Installed packages omit unused build metadata while retaining runtime exports and package integrity inventories. Source builds retain the ledgers needed to construct standalone artifacts.
Why This Change Was Made
Exclude
.source-module-urlsdirectories at both owning package manifests. Tests exercise real npm and pnpm publication, independently packed AI, similarly named runtime directories, and filename/content inventories. Production delta: two manifest rules; no runtime, migration or budget changes.The frozen baseline
c2a39e4cincludes the merged Brotli omission from #188097 and Workboard lint repair from #190044. Native signed composition preserves those changes and the original package commits.The later signed follow-up copies only the landed three-file test/allocation delta from #190335. It corrects the independent Anthropic raw-stdin notification assumption that blocked earlier CI, preserving cancellation identity, diagnostic barriers and terminal-error singleton checks. No production event suppression or broader main refresh is introduced.
Evidence
ae2b4efb752c66c89ee4ad1782ae5073b17f1762; treea9dbd21ae695cf92ea79997772731aac24719c5d. Its direct parent is the qualified packaging sourcea1dbb291; only two tests and their LF allocation differ. Every other tracked blob/mode and all 105 recorded package-proof inputs are unchanged.a1dbb291: eight focused Linux files passed 202 tests per runtime on Bun and Node. Root-only and AI-only in-memory manifest mutation controls each produced exactly two intended npm/pnpm failures, with no unhandled errors; original suites passed afterward. This is mutation proof, not a base-checkout reproduction.efd9be6645aa1257620a5a36c70176a15d52ebb45f8acfab0e7485ddb875adbdbelongs to sourcea1dbb291, with carrier9006eefc4e98684f26784df26459c23ff719d02f. It is not relabeled as a new composed-head build. A later best-effort portal-sync warning leaves portal inventory freshness unconfirmed, without invalidating its provider-stop receipt.191755ec11, worker1. All ten phases settled naturally; source stayed unchanged and task scratch was removed.a1dbb291toae2b4efbcompleted with zero findings and all preservation/settlement guards passing. It covers the test integration; the unchanged packaging implementation retains its separately accepted review.The fresh proof command passed. Its original outer receipt remains
STOP_UNCONFIRMED; a later read-only native status independently confirmed resource release and completed cleanup, with hostless terminal state. The original receipt was not rewritten. Current-head CI and both required CI gates passed. Security Review, OpenGrep, CodeQL and Critical Quality workflows passed. The separate CodeQL aggregate check is neutral because 17 configurations present on main are absent from this PR; this is not a blanket code-scanning clearance. Exact-head ClawSweeper review reports zero findings, no before-merge requests and no rank-up moves. No inherited-CI exception or waiver is applied.CI attempt 1 had one Android request-arrival timeout in
NodeRuntimeAgentSelectionTest.lateAgentListCannotEraseANewerPickerChoicebefore its newer-selection assertion (failed job). The test, owner and Gradle inputs matched the prior passing source; one same-head job-specific diagnostic rerun passed under the workflow's native rerun policy (attempt 2 job). No source, timeout or assertion changed. The initial failure remains recorded and its cause is not established. Follow-up: investigate that Android agent-list request-arrival timeout; no unrelated Android change is included here.The selected Doctor smoke does not qualify the separate deferred-schema/R2 behavior in #186506. Follow-up: consolidate cancellation ownership between the package-build launcher and its implementation; that remains separate from these publication rules.