Commit bbf7614
test(objectql): measure the lean entry's loaded-module closure as a package set (#16939)
The ADR-0076 D2 boundary is guarded today by a source scan over two
hard-coded names in packages/objectql/src/core-boundary.ratchet.test.ts.
That shape is neither transitive nor able to see a heavyweight arriving
through any other specifier, which is how #14680 arrived — three packages
deep, invisible to every gate for the whole time it was live.
scripts/check-lean-entry-closure.mjs loads the BUILT lean entry in a fresh
child per published condition, collects the evaluated module set through
module.registerHooks unioned with require.cache, attributes each module to
its owning package, and asserts:
DENIED no module belongs to a package ADR-0076 D2 excludes
ADMITTED the measured package set equals ADMITTED_PACKAGES exactly —
so an arrival nobody predicted fails BY NAME, which is the one
thing a forbidden list cannot do
AGREE the two published conditions carry the same package set
No size figure anywhere: the #9803 discipline the neighbouring file
established is inherited, and re-measured on this subject — the package set
is identical across the import and require conditions while the module
count and byte total are not.
With no dist/ it exits 3 PREREQUISITE NOT MET, never a skip and never a
pass; it runs in ci.yml's build-core, which builds first.
Claude-Session: https://claude.ai/code/session_01ADLdAs2pVcH17h9tZKWMBg
Co-authored-by: Claude <noreply@anthropic.com>1 parent ee4a59b commit bbf7614
5 files changed
Lines changed: 877 additions & 0 deletions
File tree
- .github/workflows
- packages/objectql/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
1722 | 1737 | | |
1723 | 1738 | | |
1724 | 1739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
| |||
0 commit comments