Repository navigation
BS-71: the model declarations as source (SemanticModels) - #496
Draft
humuhumu33 wants to merge 15 commits into
Draft
humuhumu33 wants to merge 15 commits into
humuhumu33 wants to merge 15 commits into
Conversation
The artifact, contract, realization, evidence and model declarations of the semantic module language (SPEC.md §17.12) with the twenty types they hold, as language-1.2 source in bootstrap/, seventh slice of the typed IR (#269): modelDeclarationText of SemanticModels, held to the canonical JSON of their serde form. The module and the case encoders and examples are generated from one description of the oracle types (scratch schemagen.py / gen71.py); 35 planted defects. Register row (500), SPEC §31 row and §17.23 prose, scenario, bdd part and lane, README count and range, CHANGELOG, VERIFICATION record, roots, the register-count mirrors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 12, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lders Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stack-bound step of the regeneration maps a package to its root by name, so a root is the camel case of its package and unique in the project: semanticTermText, semanticProofText, semanticDeclarationText, semanticModuleText, and wholeSemanticModuleText. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BS-71is the seventh slice of the typed IR of #269, stacked on #491 (BS-70). It covers the artifact, contract, realization, evidence and model declarations of the semantic-module language (§17.12), with the twenty types they hold:They are language-1.2 source in
bootstrap/src/SemanticModels.lex.tex.modelDeclarationTextSemanticDeclarationvariantsGenerated from one description: the module, the case's Rust encoders and the case's example builders all come from one schema of the oracle's types (a generator script kept in the session's scratch folder, not committed). Where that schema and the oracle disagree, the case fails to encode or compare.
The case is
crates/conformance/src/cases/bootstrap/semantic_models.rs. Its runs:It also plants 35 defects: each one misspells a serialized kind or name, and the first example holding that kind or name catches it.
State: draft, for the parent's batch.
lexlean checkandfmt --checkpass.case/ir-bs71(BS-65..71).🤖 Generated with Claude Code