Repository navigation
Conversation
…tovers The template's audit-prism ratchet refuses net growth in non-Prism code, and build-set wrote one Rust suite per app, each repeating the same four helpers: a fresh seven-app instance added 8 files and 510 lines and failed it. A set now writes one crates/conformance/tests/<set>.rs: one helper that pins a declaration's text, and one table line per claim, expanded by a macro into a test named for its ID. Each test asserts what the old ones did. Per-app suites a set no longer writes are removed. Three leftovers of the template's example app also go: its Contract entrypoint stays out of app/lexlean.toml, its TC-01 register row is dropped with its scenario and test, and the prism.qual and prism.sec lexicons the facet modules use are declared even when lexlean.toml already lists other sources. site/app.json's promise comes from the set's optional 'promise' member, or its title and purpose, instead of the template's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
The template's honesty gate reads test names from a '#[test]' line and the 'fn' line after it, so tests a macro expands are invisible to it. Each claim is now one '#[test]' and one 'fn' line in a #[rustfmt::skip] module, still 75 counted lines for a seven-app set against the 82 of the template example it replaces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
The single-app and set builders now share the compact suite writer, so the old per-app generator goes and the builder shrinks (81 lines out, 54 in), as the only-Prism ratchet asks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
…ct.rs The template's only-Prism ratchet refuses any new non-Prism file, so the set's compact suite replaces the template example's test file instead of adding one, and any earlier per-app or per-set test file is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
Four fewer generated lines per suite, so a model with more claims still shrinks the instance's non-Prism code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
…t runs in Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
…tes its design/ files With the merged OPM and UML views, prismpm verify's second regeneration does not reproduce the design/ files build emits, so verify refuses with PP5004. Removing Design (and its Compliance import and obligation) makes the set's app verify. The single-app build keeps its Design module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3Ns5C7CRWRVtEQBxEq
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.
Requested by Alex · project thread
Why
Building afflom/prism-kat (seven apps, one set) straight from
build-sethit four things I had to patch by hand. The goal is that a Prism is only its content (the prompts and the set) and the builder imports everything else.audit-prism) refuses net growth in non-Prism code.build-setwrote one Rust suite per app, each repeating the same four helpers, so the fresh seven-app instance added 8 files and 510 lines and failed againstmain.src/Contract.lex.texstayed inapp/lexlean.toml's entrypoints (LLC0101), because it was still on disk when the entrypoints were read.prism.qualandprism.seclexicons were never declared whenlexlean.tomlalready listed sources (LLR3001).TC-01register row survived its removed scenario and test, which failed the honesty gate (CM-02). Also,site/app.jsonkept the template's promise text.What changes (
builder/set.mjs)crates/conformance/tests/<set>.rs: onepinshelper, then one#[test]line and onefnline per claim in a#[rustfmt::skip]module. Each test makes the same two assertions as before (a property's condition plus "no request meets it", or a facet theorem's statement plusdecide). For prism-kat that is 75 counted lines, against the 82 of the template example it replaces. Per-app suites the set no longer writes are added toremove.TEMPLATE_EXAMPLEpaths, and a missingprism.arch,prism.qualorprism.secsource is appended.contractsuite's rows go when the template example is replaced (not when a set is hosted by a repository's own root).site/app.json'spromisecomes from the set's optionalpromisemember, or else from its title and purpose.Single-prompt
buildis unchanged.Checked
node builder/test.mjspasses DR-07, 08, 09, 10, 12, 13, 14, 17, 18, 19, 20, 21 and 22. I did not run DR-11 here: it builds every example in the template.build-setinto a fresh template copy writes no Contract entrypoint, declares all three prism lexicons and keeps no TC-01 row. Its suite passesrustfmt --check, and the template'sworkspace_test_namessees every claim's test.Generated by Claude Code