3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 07:32:58 +01:00

Read the large files by section: one awk call per section, titles for tests and legs, and reset the reading-cost trend

This commit is contained in:
2026-11-15 13:27:05 +01:00
committed by Lillem4n
parent 4bf5d8a9d1
commit 5c82464042
3 changed files with 25 additions and 12 deletions
+6 -3
View File
@@ -181,13 +181,16 @@ Per chunk:
the PR summary names each fix no round reviewed.
3. Merge the PR (standing authorization, this repo only, granted by the maintainer), report, stop.
A chunk reads these files in part, with `grep -n '^#'` for the headings and a ranged read for
the rest:
A chunk reads these files in part. One call prints a `## ` section by a fragment of its title:
`awk -v h='<title>' '/^## /{p=index($0,h)>0} p' <file> | head -80`.
- `CHANGELOG.md`: `## Unreleased` only, the one section a chunk edits.
- `MIGRATION.md`: the top `## From` section, the release being built.
- `README.md`: `## Goals`, `## Audience` and the sections the chunk changes or cites.
- `spec/flavour.md`: the sections the chunk changes or cites.
- `docs/decisions.md`: the entries the chunk cites, found by the titles indexed above, never the file.
- `spec/flavour.md`, `spec/html.md`: the sections the chunk changes or cites.
- A test file or `ci.sh`: its titles or legs, from `grep -n '^test(\|^leg' <file> | cut -c1-110`,
then a ranged read of the ones the chunk touches.
Reserved for the maintainer whatever any rule here says: changing `version` in `package.json` (a
bump on `main` publishes, `docs/decisions.md` §Publish on a version bump — every release is the