diff --git a/phase-ends/current/logs/T10.c1.md b/phase-ends/current/logs/T10.c1.md new file mode 100644 index 0000000000..53a963057d --- /dev/null +++ b/phase-ends/current/logs/T10.c1.md @@ -0,0 +1,26 @@ +# T10.c1 — README Types at P38 close; census path no longer a phase literal + +## Changed +- `tools/progress.py` (fleet(), types block): picks newest `.run/P/census/type_census.json` by numeric N; prints `progress.py: types from ` to stderr; records `snapshot` + `census` path in progress.json `counts.types`. New keys: definitions_include/block_scope/fn_headers, distinct_names, duplicate_classes_gating/listed (summary.structs), dead_names/dead_names_kept, pad_names + parse_error_declarations (from `type_census.check_structs_inputs()` = restruct audit + ledger; not in the json; ~2.5 s). README Types paragraph: label `snapshot P38, `, full def split, listed/gating dup classes, variant/dead/pad/parse-error counts; "lying call declarations (an empty K&R list or a type narrower …)" (229 = 216 K&R-empty + 13 narrow; old wording "narrower" covered only 13). +- `tools/readability_progress.py` counts(): same newest-census rule; staleness = census head == HEAD OR census src_stamp == `lever_census.src_stamp()` (census at c5591de124, src unchanged since; stamp 287e6f521d908e6d matched). Without this it would refuse any docs-only commit after the census. +- `tools/timeline.py`: `struct_defs` from readability-progress.tsv → new "struct definitions" column + one bullet in story-timeline.md. +- Generated: README.md block, docs/progress.json, docs/progress.fleet.md, docs/readability-progress.tsv (+row `P38 close`), docs/readability.md, docs/story-timeline.{md,svg}. +- Tracked with `git add -f`: `.run/P38/census/type_census.{json,txt}`. + +## Commands +- `.venv/bin/python tools/progress.py --readme` → `docs/progress.json written; README block updated`; stderr `types from .run/P38/census/type_census.json`; README:32 shows 1,650 defs (1,021 canon / 326 include / 600 block-scope / 29 fn-headers / 0 file-scope), 1,024 names / 523 layouts, 53 classes covering 496 names, 53 listed (0 gating), 0 variant, 0 dead (3 kept), 0 pad, 0 parse-error, 229 lying / 24 callees. Levers line still 3,730. +- `readability_progress.py --snapshot "P38 close"` → row struct_defs=1650, narrow_decls=229. +- `timeline.py` → self-check OK (80 rows); `--check` → fresh (before committing). + +## Gotchas +- harness: `commit_task.sh` runs `git add -- ` on each arg; a NEW gitignored file fails it even after `git add -f`. Pre-stage with `git add -f` and leave those paths off the arg list (the script commits the whole index). +- harness: timeline.py counts commits per date from `git log`, so the commit that lands story-timeline.md makes the same-day `--check` STALE again (circular). Regenerating after the last commit of the day is the only fix; noted, not changed. +- fn-count moved 363,680 → 363,677 matchable in the regenerated fleet digest (tree state since the last committed report; not caused by this change). + +## tools-health (after commits 67c6710fb1 + timeline commit) +- `bash tools/run.sh --bg tools-health -- make tools-health` → FAIL: `tool_census --check: corpus 407 copies + 30 pointers checked; 19 gap(s)` (.run/logs/tools-health.log:5508-5525). +- 3 gaps from this task: corpus copies of tools/progress.py (P9), readability_progress.py (P10), timeline.py (P9) differ from source. +- 16 predate it (T5–T9 work): no dictionary row for tools/head_types.py, tools/struct_twins.py; corpus copies stale/missing for commit_task.sh, delever.py, head_types.py, lift_types.py, restruct.py, restruct_cycle.sh, share_body.py, struct_twins.py, type_census.py, record/docs/{retrospective,story}.md, record/phase-ends/PhaseEnd_Phase37.md. +- Fix = `tools/tool_census.py --corpus` (rewrites the whole decomp-architect corpus incl. others' files) + 2 hand-written dictionary rows; not done (outside this brief). +- tools-health also re-ran the lever census: Levers now read 3,729 (1,861 asm statements, 1,837 fns) vs the committed 3,730; left uncommitted with the other tools-health regenerations (.run/P35, .run/P36 census, README, docs/progress.*, story-timeline.md) for the expert. +- No `src/shared/.cdecl_allmacros.c` left; no orphaned workers in `ps`.