Repository navigation
Commit 8ccec5b
docs(adr): retain the current layering engine (ADR 0032) (#3286)
* chore(layering): add boundary-engine spike harness
Measures dependency-cruiser 18.5 and fallow 3.32 against the custom
layering edge model for R2, R4, R5, R6, R77, R78, R14 and R71: edge-set
diff, planted-violation parity, and runtime. Not a gate; ADR 0032 owns
its deletion.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs(adr): keep the custom layering edge model (ADR 0032)
Records the #3278 boundary-tool spike: neither dependency-cruiser nor
fallow boundaries reaches parity for the eight plain graph rules, and
either would add a second import graph beside the one ~20 other rules
consume. Includes the four comparison tables and revisit triggers.
Closes #3278
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(layering): make the boundary-engine spike reproducible
- Refuse to run unless the production roots hold exactly the tracked
tree: the engines read the disk, the custom rules read tracked files.
- Exclude test modules, helpers included, from R4 (start, first hop and
via nodes) and R5/R6 through one TEST_PATH pattern.
- Report engine stderr, exit status and signal when output is not JSON.
- Record plants in a manifest before touching the tree; restore on exit,
error and SIGINT/SIGTERM/SIGHUP, and at the next start after SIGKILL.
- Median of five runs, and measure every runtime the ADR reports.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs(adr): re-measure ADR 0032 on the reproducible harness
Runtime table and fallow's marginal cost now come from the harness run;
custom messages cite check.ts report() instead of ADR 0010; the index
entry says the ADR evaluates a replacement rather than performing one.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* fix(layering): never restore over files edited since a spike plant
The plant manifest outlives a killed run, so restoring it blindly could
overwrite a tracked file edited in between. Record each touched file's
content before and after planting; restore only when every file still
holds one of the two, and otherwise stop without touching anything.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs(adr): anchor ADR 0032 to the commit its tables were measured at
Status names d9959f5, where the harness produced the tables (its
production tree is 7dda0c2's); the Measured section separates what the
harness emits from the line counts of the deletion table; runtimes are
re-measured there, and fallow's marginal cost is stated as within noise.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs(adr): pin ADR 0032 to d9959f5 and drop the spike harness
The harness imports internal symbols from six layering modules, and no
gate typechecks or fallow-scans scripts/layering/, so a rename would
break it silently. It now lives only at d9959f5, where every number
in the ADR was produced; the Measured and Deletion sections retrieve it
with git show. Numbers the pinned run did not emit are removed or stated
as file counts at that commit.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs(adr): name the spine symbols the pinned harness reads
At d9959f5 the harness derives R5/R6 from model.ts's RANKED_ZONES and
zoneRank, not TARGET_DAG_RANK, and writes the other rules' paths inline
(R77's from RUNNER_SUBTREE) rather than reading the rule tables.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
* docs(adr): narrow ADR 0032 to one replaceable import model
Adopt the maintainer's decision statement. Graph-based checks share one
normalized import model whose implementation stays replaceable; list its
actual consumers and the facts they need instead of tying it to the AST
rules. Separate the semantic blockers (missed dynamic imports, orphan
files) from migration costs (formatting, config comments, a path check
for filesystem-placement rules), retarget the revisit triggers, and link
the parser-gap follow-up #3293.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>1 parent 0c1ebb3 commit 8ccec5b
2 files changed
Lines changed: 172 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 | + | |
| 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 | + | |
| 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 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments