Skip to content

Hold the whole ICF in the Lean Person model, written from LexLean - #172

Merged
github-actions[bot] merged 6 commits into
mainfrom
claude/project-thread-5i4qdf
Nov 16, 2026
Merged

github-actions[bot] merged 6 commits into
mainfrom
claude/project-thread-5i4qdf

Conversation

@afflom

@afflom afflom commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Requested by Alex · project thread

The app's Lean model now holds WHO's ICF in full: app/src/PersonIcf.lex.tex is every entity of the pinned 2026-01 release as an IcfEntity, in the release's order. This is the ICF half of the Lean Person model; the schema.org half follows as its own PR.

  • GenIcfLean (new, in generators/person) writes the register from the tabulation, the same input the page's rows come from. Three steps in steps.json:
    • icflean runs on each 30 KiB piece and writes definitions of 50 entities each;
    • icfleannames lists those definitions and their sizes;
    • icfleanend appends them in order into icfRows, writes icfEntityCount, and closes the module.
  • Each IcfEntity keeps WHO's foundation and linearization ids, code, block id, title, level, kind, depth, residual and leaf flags, parent and coding note (licence terms 1.2.3). The title is kept as WHO's exact UTF-8 bytes, because 25 titles hold a percent sign, which a LexLean string cannot.
  • PersonProofs gains two guarantees, proved over all the entities:
    • icfCounted: the register holds exactly icfEntityCount entities;
    • icfKinded: every category has a code, and every chapter and block has none.
  • tools/generators/run.sh: a step may name an after file, a .gen/ output of an earlier step that its own output follows. No net lines added.
  • ST-01: who-icf now governs the register.
  • The register sits at app/src, outside Foundation/, and reuses the title phrase "Person model", so the 20 decision guests stay current and none is rebuilt.

Results:

  • The register is byte for byte what a Python twin of the same decomposition writes: 1,665 entities.
  • lexlean verify passes on all 77 app modules in the locked SDK (about 18 minutes locally).
  • Local: GN-01, GU-01 (tools/guests/gen.py check), HW-01 (26,291 lines, none added or grown), ST-01, gen.py --check, the person test 5/5, cargo fmt --check and the conformance tests pass.

Generated by Claude Code

generators/person writes app/src/PersonIcf.lex.tex: every entity of the
pinned ICF release as an IcfEntity, in the release's order. PersonProofs
proves the register holds the release's count and that categories, and
only categories, carry a code. A step's "after" names the .gen/ file its
output follows. The ICF governs the register in ST-01.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
@github-actions

Copy link
Copy Markdown
Contributor

Merge train notice: the merge train merges this pull request once it is green on current main; don't enable auto-merge.


Generated by Claude Code

A register stratum answers the six questions for app/src/PersonIcf.lex.tex:
a pinned classification held whole in the Lean model, checked at build.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
@github-actions

Copy link
Copy Markdown
Contributor

Merge train: ebd5a91: not merged, because it conflicts with main (0f9d804) and the pull requests the train takes before it. Fix it on this branch (merge main first) and the train tests it again.


Generated by Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
@github-actions

Copy link
Copy Markdown
Contributor

Merge train: 19d3295: not merged, because it conflicts with main (7815f8e) and the pull requests the train takes before it. Fix it on this branch (merge main first) and the train tests it again.


Generated by Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc

afflom commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

"page / gates" failed on c6252c7 in one browser acceptance, test/page/person.test.mjs:64 (CO-01), and only in the second of the two passes: the page reported WebAssembly.Instance(): Out of memory: Cannot allocate Wasm memory for new instance. The same test passed in the first pass of the same job, and this PR changes nothing the page serves (it adds app/src/PersonIcf.lex.tex, a generator module and a run.sh step option), so this reads as the runner running out of memory rather than this change. I re-ran the failed job once.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Merge train: c6252c7: not merged, because the fast gates or the browser acceptances refuse it merged with main (dfbb311) and the pull requests the train takes before it; see run 43878462045. Fix it on this branch (merge main first) and the train tests it again.


Generated by Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc

afflom commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

"page / gates" failed on 7b69d95 on a timing budget, not on this change: test/router/labels.test.mjs:87 measured QR-03 labeling-ms-per-100: 267 is above 250 while every suite ran side by side on the runner. All other acceptances passed, and this PR changes nothing the page serves or the router. #179 moves the time measures to run alone (and #181 fixes the Wasm out-of-memory seen on the earlier head); both wait for the merge train. I re-ran the failed job once.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Merge train: 7b69d95: not merged, because its check "page / gates" ended cancelled on this head, so it is not green; push to this branch to run it again. Fix it on this branch (merge main first) and the train tests it again.


Generated by Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QhtrMwp7JiJ6bJkzc
@github-actions
github-actions Bot merged commit f44efe5 into main Nov 16, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Live: this change is on the published page, as main fe7ec040132bcad07dcfafb0fa4dc2b07cd86c78.

The publish job opened the published page in a fresh Chromium and its live checks passed (PG-01, PD-01, PD-02): https://github.com/afflom/me/actions/runs/43977249372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants