Skip to content

BS-33: the canonical project manifest and its digest as source (ProjectText) - #463

Closed
humuhumu33 wants to merge 2 commits into
claude/issue-274-lock-textfrom
claude/issue-274-project-text
Closed

humuhumu33 wants to merge 2 commits into
claude/issue-274-lock-textfrom
claude/issue-274-project-text

Conversation

@humuhumu33

Copy link
Copy Markdown
Contributor

Part of #274: the canonical text of the project manifest and its digest (BS-33, ProjectConfig::canonical_toml and config_sha256) as language-1.2 source, with roots canonicalProject and configSha256 of ProjectText. With BS-31 and BS-32, it covers every input of the source ID that is written canonically.

Draft, stacked on #458 (BS-31). ProjectText writes through LockText's TOML string, array and line writers.

Design

canonicalProject writes a configuration exactly as lexlean lock canonicalizes it:

  • the ten header keys in their fixed order, with the pinned Lean toolchain;
  • the lexicon sources sorted by package with the stable merge sort of Order, or lexicon_source = [] when there is none;
  • the artifact sources and the source packages, in their order;
  • the [limits] table, with eleven rows in their fixed order;
  • the PDF provider.

configSha256 is the lower-case hex SHA-256 of that text. Each root admits exactly allocation and overflow, and neither admits recursion. Reading and validating a manifest stay in the host.

The oracle is the existing public code of config.rs. No Rust outside the case changes.

Evidence

Measured on the normative host on #458 over release/v0.4 at cf76090d4:

Leg Runs Agreed
named vectors 12 (10 texts, 2 digests), reaching every kind of lexicon source, the empty list, two sources of one package, every optional table, escapes, and the largest limit all
the 351 committed manifests that parse, and 200 seeded runs of each root, evaluator 561 texts, 553 digests all
the same with 1,000 seeded runs of each root, pinned rustc 2,714 all
planted defects, each on its own named vector 12 all detected

Each of the 351 committed manifests that parse is already its own canonical text. Lean verifies the module, and the eligibility report gives each root exactly allocation and overflow.

Gates at the head

cargo fmt --check, validate-model (480 IDs), validate-spec-links (480 rows), clippy on the workspace with -D warnings, the Intel lane plan test, and the 17 RP cases pass.

CI is expected red until the regeneration

The two packages are not committed yet, so conformance_bs_33 stops at the stack-bound step after the differentials above have agreed. The regeneration will commit them, together with #458's.

🤖 Generated with Claude Code

humuhumu33 and others added 2 commits November 10, 2026 13:35
…manifest

The next slice of the project manager as source (#274), on BS-31: the row
(register 479 -> 480, the §31 table, the RP-07 check and its case), the
scenario, the §17.23 prose, the CHANGELOG entry, the README's claim, the CI
part and its Intel lane, and the case, conformance_bs_33, which holds
ProjectText.canonicalProject and configSha256 to ProjectConfig::canonical_toml
and config_sha256 on hand-built configurations, on every committed
lexlean.toml that parses, and on seeded ones, with 12 planted defects each
named by its vector. VERIFICATION.md records the first run: the evaluator
agrees on 561 and 553 runs, rustc on 2,714, and every plant is detected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bootstrap/src/ProjectText.lex.tex over LockText: canonicalProject writes a
configuration as lexlean lock canonicalizes it, and configSha256 is the hex
SHA-256 of that text. Lean verifies the module and each root is eligible
with exactly allocation and overflow. The entrypoint, the lock, the two
export roots, and the project README follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@afflom afflom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bounded source review of exact 70b3377 against stacked #458 base a5bfa93: no new concrete source defect found in this review. ProjectText’s field encoding, canonical header/limit/PDF ordering, stable equal-package ordering and direct SHA-256 composition agree with the public config.rs oracle on inspection. Expected differential values call the public oracle directly. The BS-33 part/vv row and Intel print-lane addition retain the existing entries.

This is source evidence only. The reported counts reconcile arithmetically at 351 parsed manifests (561 text + 553 digest evaluator cases; 2,714 native cases), but I did not reproduce measurements, Lean/policy checks or plants. The corpus walker scans the filesystem and silently ignores read_dir failures; this review therefore does not establish an exact tracked-manifest inventory.

The explicitly missing canonical_project/config_sha256 packages, required generated products, exact export equality and final combined-tree qualification remain outstanding. Current CI42825985627 is draft/stacked development with host/Atlas groups skipped; repro42825985661 passing does not make it full release acceptance. Keep this draft and #274 open pending complete reviewed delivery. Existing contributor ownership is preserved; no competing implementation, regeneration or rerun was started.

@humuhumu33

Copy link
Copy Markdown
Contributor Author

Landed in #480 (merge aaf845507 on release/v0.4), which carries this change with the BS-25..34 batch, regenerated together and verified by full gate run 43135541484. The branch is kept.

@humuhumu33 humuhumu33 closed this Nov 12, 2026
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