diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 18:26:30 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 18:26:30 -0700 |
| commit | b10dab2f5ad83f642a03b5f800dea71651830beb (patch) | |
| tree | c15cbd7ad88ad7a9d52a0bdd8887e6da1fa04359 /plugins/code-modernization/assets | |
| parent | 54772aaaabf371dc212480fbf7da216bd65990c7 (diff) | |
code-modernization: extract-rules uses a shard builder and a rules renderer that ship with the plugin
The command used to carry a 35-line shard-building script inline and asked
the model to write a rules renderer on every run, so the shard list and the
BUSINESS_RULES.md layout varied from run to run and could not be tested.
scripts/make_shards.py builds the shard list from topology.json when the map
has run, and from the directory tree when it has not (skipping vendored,
generated and test-fixture directories, one shard per directory, split at 25
files or about 5,000 lines). scripts/render_rules.py turns the workflow's
result into BUSINESS_RULES.md and DATA_OBJECTS.md with RULE-NNN headings, the
SME section and the coverage gaps, and writes every value from the analysis as
plain text.
The workflow takes an optional sourceDir, so the code can live outside the
workspace, and shard files are kept relative to it. The command drops from 305
to about 150 lines.
Diffstat (limited to 'plugins/code-modernization/assets')
0 files changed, 0 insertions, 0 deletions
