Repository navigation
Commit 34e8c48
committed
🐛 Give the exact-source record to the run that owns it (#722)
The record of which segments an expansion produced as source was a
module-scoped `WeakSet`, which `local/no-module-scoped-registry` refuses: one
table shared by every execution the process performs, surviving the run that
filled it and reachable from no caller's scope. CI caught it where a local lint
run did not, because the failure was one error among a thousand warnings.
It is now created inside the execution that owns it and handed down through
context, beside the segment-cause table it sits next to — reclaimed with the
run, answering nothing during the next. The security property is unchanged and
is what it always was: membership is keyed by the identity of the segment
objects canonical expansion marked, so nothing a document, a package or an
import can supply is able to join it. The context is exported for the two core
modules that produce and consume the mark and reaches neither public package
entrypoint.
The emission paths read that record once, where reading is an ordinary
operation rather than a durable one.
Claude-Session: https://claude.ai/code/session_01DNPFLq52HVSu3NH6WczYLf1 parent e474dff commit 34e8c48
4 files changed
Lines changed: 86 additions & 32 deletions
File tree
- packages/core
- src
- output
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
1761 | 1762 | | |
1762 | 1763 | | |
1763 | 1764 | | |
| 1765 | + | |
1764 | 1766 | | |
1765 | 1767 | | |
1766 | 1768 | | |
1767 | | - | |
| 1769 | + | |
1768 | 1770 | | |
1769 | 1771 | | |
1770 | 1772 | | |
| |||
1792 | 1794 | | |
1793 | 1795 | | |
1794 | 1796 | | |
1795 | | - | |
1796 | | - | |
| 1797 | + | |
| 1798 | + | |
1797 | 1799 | | |
1798 | 1800 | | |
1799 | 1801 | | |
| |||
1811 | 1813 | | |
1812 | 1814 | | |
1813 | 1815 | | |
1814 | | - | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
1815 | 1820 | | |
1816 | 1821 | | |
1817 | 1822 | | |
1818 | 1823 | | |
1819 | 1824 | | |
1820 | 1825 | | |
1821 | | - | |
| 1826 | + | |
1822 | 1827 | | |
1823 | 1828 | | |
1824 | 1829 | | |
| |||
1870 | 1875 | | |
1871 | 1876 | | |
1872 | 1877 | | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
1873 | 1883 | | |
1874 | 1884 | | |
1875 | 1885 | | |
| |||
1955 | 1965 | | |
1956 | 1966 | | |
1957 | 1967 | | |
1958 | | - | |
| 1968 | + | |
1959 | 1969 | | |
1960 | 1970 | | |
1961 | 1971 | | |
| |||
1993 | 2003 | | |
1994 | 2004 | | |
1995 | 2005 | | |
1996 | | - | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
1997 | 2010 | | |
1998 | 2011 | | |
1999 | 2012 | | |
| |||
2018 | 2031 | | |
2019 | 2032 | | |
2020 | 2033 | | |
2021 | | - | |
| 2034 | + | |
2022 | 2035 | | |
2023 | 2036 | | |
2024 | 2037 | | |
| |||
2175 | 2188 | | |
2176 | 2189 | | |
2177 | 2190 | | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
2178 | 2194 | | |
2179 | 2195 | | |
2180 | 2196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2760 | 2760 | | |
2761 | 2761 | | |
2762 | 2762 | | |
2763 | | - | |
| 2763 | + | |
2764 | 2764 | | |
2765 | 2765 | | |
2766 | 2766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 | | |
23 | | - | |
| 33 | + | |
24 | 34 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
33 | | - | |
34 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
35 | 62 | | |
36 | 63 | | |
37 | | - | |
| 64 | + | |
38 | 65 | | |
39 | 66 | | |
40 | 67 | | |
41 | 68 | | |
42 | 69 | | |
43 | | - | |
44 | | - | |
| 70 | + | |
| 71 | + | |
45 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
1478 | | - | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1482 | 1493 | | |
1483 | 1494 | | |
1484 | 1495 | | |
| |||
0 commit comments