From be21d4ae4cd48e3230836a4755a624aed9380dd3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 00:15:13 +0000 Subject: [PATCH] feat: only Prism is implemented (audit-prism), and the frame lock binds 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 Claude-Session: https://claude.ai/code/session_013Asa3LcnA6wEZHWvFUkLyK --- README.md | 6 +- TEMPLATE-VERIFICATION.md | 27 +++ bootstrap/frame-sync.mjs | 45 +++- frame.lock | 138 ++++++++++- xtask/src/audit.rs | 501 +++++++++++++++++++++++++++++++++++++++ xtask/src/main.rs | 3 + 6 files changed, 713 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8f5c7d6..7c2c154 100644 --- a/README.md +++ b/README.md @@ -158,14 +158,16 @@ first. Every instance gets the same page; an app edits one file. a test or a mirror. The frame draws in its own shadow root and brings the brand's tokens to a page that has none, so any host can mount it. - **The page around it, locked.** Everything else on the page (the cards, - renderer, loader, service worker and the page gates) is pinned by + renderer, loader, service worker, the page gates, the frame's panels in + `frame/` and the Prism id in `identity/`) is pinned by `frame.lock`, as `brand.lock` pins the brand: reviewed bytes that change only when an app chooses to. `node bootstrap/frame-sync.mjs --check` runs in `pages.yml` before the build, and an app takes a newer page with `--pin