Repository navigation
Commit 09c1d91
docs(metadata): record what the
`packages/metadata/src/errors.ts` explains why the leaf subpath exists — the
root entry pulls the manager, every loader and the YAML/filesystem machinery,
and a consumer wanting a 40-line predicate should not load any of that.
Measured, that promise half holds, and the header did not say which half.
MEASURED 2026-09-08 on `origin/main` 8c1515e with
`scripts/check-lean-entry-closure.mjs`'s exported `measure()`/`byPackage()`:
both published conditions load four packages, and the manager, every loader,
`chokidar`, `glob`, `js-yaml` and `readdirp` are absent from all of them —
the accurate half, kept verbatim. But `import` evaluates 83 modules /
2,201,709 bytes and `require` 83 / 2,355,405, because `@objectstack/types`
imports both `@objectstack/spec/api` (1,401,253 B) and
`@objectstack/spec/security` (195,367 B) at module top as values.
The header now carries that, with the two costs separated — 143 bytes of
marginal in-repo contribution against the megabytes an out-of-repo consumer
pays — and labels the figures PROVENANCE, dated and tree-pinned, with the
instrument named so the next reader re-takes rather than quotes them.
Claude-Session: https://claude.ai/code/session_01ADLdAs2pVcH17h9tZKWMBg
Co-authored-by: Claude <noreply@anthropic.com>errors leaf entry actually loads in its own header (#16981)1 parent b834b48 commit 09c1d91
2 files changed
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
54 | 102 | | |
55 | 103 | | |
56 | 104 | | |
| |||
0 commit comments