Commit aa0a2bb
committed
deferred item: scope-correct rename (shadowing), gated; Layer-2 boundary verified
(A) Scope-correct rename — the local-shadowing gap, CLOSED. The name-based rename
over-renames a shadowing local (param/let named like the def); the fix is identity
not spelling. chartroom's resolve.clj (Turtle #5) is a lexical resolver adding
refers_to edges (nearest enclosing scope), so renaming a def edits ONE node +
references follow refers_to — a shadowing local is a different node, untouched.
That's the principled "id-references" fix the deferral named, and it's Layer 2
(chartroom owns the engine). bin/test/code-as-claims/rename-scope.sh (CI-gated,
checks out chartroom) proves: def + caller-ref renamed; shadowing param + its use
untouched; recompiles. rename-in-store noted as the simpler module-local version.
(B) Layer-2 boundary — VERIFIED, not relocated. The language core (parse/check/
emit-clj/js/nix/types/ast) is clean: zero graph-engine machinery, only tombstone
comments for the removed (claim …) surface form. The code-intelligence engine
(resolver/rename/call-graph) is Layer 2 in chartroom; beagle gates RENT it. A
physical repo-split of bin/ tooling is org churn the principle doesn't require
(language already clean) and would risk the dev loop/gates — documented in
fram/docs as a separate deliberate migration, not a cleanliness fix.
Also: independently re-ran the eddy crm-v2 spike over its artifact with my own
reaches-closure — blast(contact.company)={contact.display-name}, decoy note.company
excluded. Unification confirmed both sides.1 parent c4089b3 commit aa0a2bb
4 files changed
Lines changed: 82 additions & 0 deletions
File tree
- .github/workflows
- bin/test/code-as-claims
- shadow-corpus
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
98 | 110 | | |
99 | 111 | | |
100 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| 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 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments