Skip to content

Client: derive the text class, raw length, page bytes and v0.4 era; count the page share once - #187

Open
afflom wants to merge 5 commits into
claude/project-thread-njrm7zfrom
claude/project-thread-jk2an1
Open

afflom wants to merge 5 commits into
claude/project-thread-njrm7zfrom
claude/project-thread-jk2an1

Conversation

@afflom

@afflom afflom commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Stacked on #180. It lands after #180 and is retargeted to main once #180 merges.

What

The Client numbers that can be derived now come from the modules that state them. Every number that remains a choice is still counted.

  • Text class (src/Uorc/Wire/Text.lex.tex).
    • The printable range comes from the ASCII code table's shape, generated from Word: 16 rows and 8 columns. The first graphic code is 2 × 16, and DEL is 8 × 16 − 1.
    • HT, LF and CR are named wire identities of the ASCII format.
    • printableFrom calls Text::printable.
  • v0.4 portfolio (src/Uorc/Wire/Portfolio.lex.tex). The family ids are built as successors from 0, and the window depth is a wire identity. v04Pair and recentWindow read them.
  • Raw archive length. rawLength is the archive's own header (preimage with an empty body, with the body length swapped for n's), plus n, plus Word::digestBytes (256 bits / 8). It replaced 2·|number n| + n + 41.
  • Page bytes. pageBytes is now the frame's tables, plus the spare set when the host keeps tables, plus input and output, plus the held window. It replaced 2·tables + 2·n + held.
  • Host memory. hostMemory is 1 GiB (built from Word) divided by pageWorkersPerGiB. pageWorkersPerGiB stays one counted site: it is the page's chosen share, not yet derived from the device. The page_worker_is_the_pages_host_rule test holds the native WORKERS_PER_GIB equal to it.
  • Run budgets. The Budget and Allowances values (2^40 and 2^20) are unchanged and still counted. They are an unmet requirement: derive them from the input size and the host's step rate.

All values are identical, so archive bytes do not change. An earlier revision of this PR added a "declared host" kind to the figures check. It is removed, because it would have exempted chosen budgets.

Measured

Checks run locally

  • figures check and cargo test -p figures pass.
  • page_worker_is_the_pages_host_rule passes.
  • lexlean lock --check, fmt --check --all and check --all (96 modules) pass at the pin.
  • client-export --check passes.
  • lexlean check on the staged client closure (81 modules) passes.
  • The full client export is running, and its record will be pushed here before merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_013Asa3LzgnA6Pz4jrM6Qz1i

… declarations

The client's last fixed numbers outside the engine's coordinates go to the
modules that state them: the page worker's host and what a run is granted
(Uorc.Host.Declared, a declared host the figures check reports apart from
the register), the ASCII text class built from the code table's shape
(Uorc.Wire.Text), the v0.4 portfolio's family ids and window depth
(Uorc.Wire.Portfolio), and the raw archive's length from its own header and
the digest width (Uorc.Wire.Word::digestBytes). Register 3,781 -> 3,757;
Client.lex.tex 32 -> 8 (family, textFrame, policy: the engine's coordinates).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3LzgnA6Pz4jrM6Qz1i
…ly what derives

The declared-host kind admitted chosen budgets (2 workers per GiB, 2^40 of
work and 2^20 frames per run) as host facts, so it is gone: the run budgets
stay where they were, counted, and the workers per GiB is one counted site
in Client from which hostMemory is derived. The ASCII line controls are
named wire identities of Uorc.Wire.Text. Register 3,781 -> 3,770.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3LzgnA6Pz4jrM6Qz1i
@afflom afflom changed the title Client: read the page host, run budgets, text class and v0.4 era from declarations Client: derive the text class, raw length, page bytes and v0.4 era; count the page share once Nov 16, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3LzgnA6Pz4jrM6Qz1i
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3LzgnA6Pz4jrM6Qz1i
…to claude/project-thread-jk2an1

# Conflicts:
#	model/figures.toml

This branch has not been deployed

No deployments
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