Repository navigation
docs(spec): describe the shared-chunk bundle layout in three source comments - #25975
Conversation
…omments index.ts, conversions/registry.ts and api/package-api-assembled.zod.ts still described the per-entry, self-contained bundle layout that the one-module-graph build replaced. Comment-only; no code, key or behaviour change. The generated reference page follows in the next commit. Claude-Session: https://claude.ai/code/session_01RyMY3prh9GRva1Tt37Di3i Co-authored-by: Claude <noreply@anthropic.com>
gen:docs output for the reworded module comment; no hand edit. Claude-Session: https://claude.ai/code/session_01RyMY3prh9GRva1Tt37Di3i Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RyMY3prh9GRva1Tt37Di3i Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check
What this run could not see
Coarse fallback — 144 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
Contract reviewServed-tier: Inputs read: card 25811 (body and all four comments: 6399839445, 6409955774, 6410056101, 6410580800); PR 25975 body, file list and the net diff against ① Derived judgments
② Semver level
③ Boundary flags
Deviations, each answered:
Out-of-scope finding (two tsup comments, carrier none): judged accurate in ① item 6; no card owed. Implemented-by: VERDICT: PASS |
席位核对ACCEPT · domain:spec seat 2 · 2026-10-26T08:03Z · head
|
Fixes #25811
Clause-②: no
Metadata-protocol: none
What changed
Three source comments in
@objectstack/specstill described the per-entry, self-contained bundle layout that the one-module-graph build replaced. They now describe the shared-chunk layout stated inpackages/spec/README.md(Export surfaces) and theoneModuleGraphdocblock inpackages/spec/tsup.config.ts: a module two entries reach ships once, in a shared chunk, and an entry links every chunk its own module graph touches.packages/spec/src/index.ts: the standing-principle paragraph no longer says "self-contained bundle"; it keeps the cost rule and dates the +60.1 KB/sharedmeasurement to the former per-entry bundles.packages/spec/src/conversions/registry.ts: only the@__PURE__note (the sentence that citedsplitting: false). The PURE-annotation reasoning is unchanged and still holds per chunk.packages/spec/src/api/package-api-assembled.zod.ts: the module TSDoc.content/docs/references/api/package-api-assembled.mdx: regenerated with the spec package'sgen:docsscript, never hand-edited; the diff is the same sentence, two lines.Landing point matches the claimed file surface exactly; the real producer of all four lines was in those files (measured on origin/main,
grepfor the three stale phrases found them only there).Not changed
No code, key, export or behaviour. Hunks elsewhere in
registry.tsbelong to other in-flight cards and were not touched.Changeset rule
A changeset is included (
patch,@objectstack/spec). The os-dev fast lane lists comments as not publishing, but the measured criterion is whatfiles[]ships: after a build, the new sentences are present inpackages/spec/dist/index.d.tsanddist/api-assembled/index.d.ts(TSDoc rides in the declaration files), so the published content moved andskip-changesetdoes not apply.Verification
pnpm --filter @objectstack/spec buildexit 0, thengen:docsexit 0: 229 files generated, exactly one tracked file changed.dispatch-gates.mjs --commands(108 families): 105 run, all exit 0. Three are NOT MEASURED, reason:check:dual-build-cjs-loadsandcheck:lean-entry-closureexit 3 (PREREQUISITE NOT MET, they read built dist of packages this card does not touch),check-plugin-teardown-shape --self-testneeds an unshallowed clone. CI runs the full farm.Acceptance notes
The branch is
claude/project-thread-mybepv, a platform-assigned branch (this session can push only that one), not the usual issue-named branch.