Repository navigation
Only Prism is implemented (audit-prism), and the frame lock binds frame/ and identity/ - #91
Merged
Merged
Conversation
…ds frame/ and identity/ audit-prism, in xtask validate, is the shrink-only ratchet Foundry landed in UOR-Foundation/foundry#214, now in the template so every product made from it carries it. It counts non-Prism implementation (Rust, TS/JS, CSS, HTML, Python, shell, host Lean; non-blank, non-comment lines), measures it against the commit's first parent, and refuses a new non-Prism file and any net growth. Output a lock binds to an upstream (an app's frame.lock, the Prism id in identity/stitch.lock) is Prism's and is not counted while its bytes match; the template's own frame.lock names no source, so here the frame counts. The ratchet starts at the commit that installs it. The frame list now includes frame/ (the panels) and identity/ (the Prism id), so an app's frame.lock binds them byte for byte and --pin delivers them instead of a hand copy. framePath admits the two folders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LcnA6wEZHWvFUkLyK
afflom
pushed a commit
to UOR-Foundation/foundry
that referenced
this pull request
Nov 15, 2026
…d identity/ UOR-Foundation/template#91 adds frame/ and identity/ to the frame list, so frame.lock now binds all 52 frame files byte for byte and a re-pin delivers them. Only frame-sync.mjs and the lock change: every frame/ and identity/ file was already identical to the template's. audit-prism takes the template's copy: a lock binds only when it names its upstream, and the ratchet starts at the commit that installs it. The bound frame/ and identity/ files no longer count as Foundry's implementation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LcnA6wEZHWvFUkLyK
This was referenced Nov 15, 2026
Merged
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
Only Prism is ever implemented in a Prism product. Foundry has had the shrink-only ratchet since UOR-Foundation/foundry#214. This PR puts it in the template so every product made from the template carries it. It also closes the gap that would have made the ratchet refuse frame re-pins:
frame/andidentity/were copied from the template by hand, and nothing bound their bytes.What
audit-prism(xtask/src/audit.rs, run byxtask validate). It counts non-Prism implementation: tracked Rust, TS/JS, CSS, HTML, Python, shell, C/C++ and host Lean, non-blank and non-comment lines. It refuses a non-Prism file that the commit's first parent lacks, and any net growth over the parent. The ceiling is measured from the parent, so each removal lowers it once it merges, and a shallow clone fails.frame.lock(it names a template commit) andidentity/stitch.lock(it names the stitch commit whose model generates the Prism id). The template's ownframe.locknames no source, so in the template the frame is counted.pub mod prisminxtask/src/audit.rssets no ceiling, so this PR records 13,441 lines in 77 files.frame/(the panels) andidentity/(the Prism id) are added toFRAME, andframePathnow admits those two folders.frame.lockis regenerated with--lockand lists 52 files. Foundry's and prism-devrel's copies are byte-identical to these, so a re-pin changes only the locks. An app on an olderframe-sync.mjsfetches this script first, as the README already describes.Planted defects (TEMPLATE-VERIFICATION.md)
site/planted.mjsafter the gateframe/panels.mjsgrew by 1 lines (13441 to 13442)Checks run here:
cargo fmt --check, clippy-D warningson xtask,cargo test --workspace --locked(9 ratchet tests),frame-sync.mjs --check(52 files).Generated by Claude Code