Skip to content

fix(lexical): reject impossible pooled counts and disjoint distribution replays - #644

Merged
andy-zen-dev merged 4 commits into
masterfrom
scrip-lexical-pooled-feasibility-20261125
Nov 25, 2026
Merged

andy-zen-dev merged 4 commits into
masterfrom
scrip-lexical-pooled-feasibility-20261125

Conversation

@andy-zen-dev

Copy link
Copy Markdown
Collaborator

Refs #562. Saved lexical reports could claim a pooled type union or five-occurrence eligibility incompatible with the two declared token counts, or assign nonzero overlap / submaximal divergence to disjoint vocabularies. Enforce necessary source-free arithmetic identities in the common replay validator, including historical pre-overlap v1. Do not infer exact distributions from rounded endpoints. Regression matrix covers seven forged aggregates across JSON/CSV/HTML/Markdown and valid current/legacy reports. Independent exhaustive arithmetic experiment: 15,376 nonempty three-type count pairs (0..4 per side/type) satisfied the bounds. Local Git DNS failed; integrated tests and exact-head CI NOT_RUN at authorship. No metric definition, source, corpus, public diagnostic or Pages change. Reconciles merged #643 in queue revision 626. Later independent acceptance required.

@andy-zen-dev
andy-zen-dev merged commit 1064328 into master Nov 25, 2026
31 checks passed
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.

1 participant