Skip to content

Only Prism is implemented (audit-prism), and the frame lock binds frame/ and identity/ - #91

Merged
afflom merged 1 commit into
mainfrom
claude/project-thread-54i4ck
Nov 15, 2026
Merged

afflom merged 1 commit into
mainfrom
claude/project-thread-54i4ck

Conversation

@afflom

@afflom afflom commented Nov 15, 2026

Copy link
Copy Markdown
Member

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/ and identity/ were copied from the template by hand, and nothing bound their bytes.

What

  • audit-prism (xtask/src/audit.rs, run by xtask 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.
  • What isn't counted: output that a lock binds to an upstream is Prism's, as long as its bytes match: an app's frame.lock (it names a template commit) and identity/stitch.lock (it names the stitch commit whose model generates the Prism id). The template's own frame.lock names no source, so in the template the frame is counted.
  • Introduction: the ratchet starts at the commit that installs it. A parent with no pub mod prism in xtask/src/audit.rs sets no ceiling, so this PR records 13,441 lines in 77 files.
  • Frame list: frame/ (the panels) and identity/ (the Prism id) are added to FRAME, and framePath now admits those two folders. frame.lock is regenerated with --lock and 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 older frame-sync.mjs fetches this script first, as the README already describes.

Planted defects (TEMPLATE-VERIFICATION.md)

Defect Result
a new site/planted.mjs after the gate rejected: new non-Prism file
one line added to frame/panels.mjs rejected: grew by 1 lines (13441 to 13442)

Checks run here: cargo fmt --check, clippy -D warnings on xtask, cargo test --workspace --locked (9 ratchet tests), frame-sync.mjs --check (52 files).


Generated by Claude Code

…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
afflom merged commit 0851bb4 into main Nov 15, 2026
4 checks passed
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
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