Repository navigation
Product model v0.5: codec point per frame, claims and engine state in inspect and the page - #135
Merged
Merged
Conversation
…sure v2 Uorc.Neuromorphic (src/Uorc/Neuromorphic.lex.tex) states the plasticity of every learning part of the ncm coder as the Prism neuromorphic standard, in the codec's own integer (offset) form, with kernel-checked bounds: - hebbianBoundsHold: every mixer weight stays within +-2^22 under the bounded Hebbian rule; potentiation never lowers and depression never raises a weight. - plasticityBoundsHold: the plasticity 24 + 104*4096/(4096+pos) lies in [24, 128] per 65536 (closed vectors 128, 76, 25, 24 by decide). - laneFitHolds: |x * err * plasticity| <= 1,073,217,536 < 2^31, so the SIMD kernels' 32-bit lanes cannot overflow, and one bit changes a weight by at most 16,376. - slot plasticity: rates 131072/(2n+3) lie in [510, 43690], a slot never steps past its gap to the coded bit, and consolidates at count 127. - refinementBoundsHold: probability-map points stay within 16 bits. The products are proved through `scale`, the product by its recursion (scaleIsMultiply bridges it to `*`), with each bound carried in one induction, since omega has no nonlinear arithmetic. The native coder reads the model's constants from ncm::standard (byte identical output); tests/neuromorphic.rs holds them equal to the model's and the theorem inventory complete. Registered as UC-NEU-01 (kernel_theorem). The Pages site becomes a Prism browser closure v2 (PrismPM SPEC 1.2.1): index.html, app.css, app.js, uorc.js, uorc_bg.wasm, provenance.json and the ten Hologram brand files (fonts, licences, icons, manifest.webmanifest), flat and same-origin, installable, with no remote load. The brand files are vendored byte-identical to PrismPM's (vendor/hologram-brand). scripts/site.mjs assembles and checks the closure (provenance.json names every file's SHA-256); release.yml uses it and `just test` runs its tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3MmVJi8mhN3UZ6rgwH
…-5h3yzm # Conflicts: # .github/workflows/release.yml # scripts/ci-receipt.sh
…h browser acceptance src/Uorc/Page.lex.tex states the page in Prism's product-modeling vocabulary (Foundation.Arch stakeholders, features, journeys and UML state machine; Foundation.Qual requirements and measures; the text/3 workbench's operations, fields, examples, error hints, sections, usage, links and labels), registered as UC-WEB-01. repo-model checks it as PrismPM checks its own (PP2014-PP2017, one initial state, closed triggers, reachability, closed sets) and renders web/index.html from it; app.js interprets the embedded model. The codec runs in a module worker (uorc.js), with progress, Cancel, typed error hints and recovery from a stopped worker. In-memory decoding no longer spawns threads, which trapped WebAssembly on Verify, every example and every folder archive. The wasm client builds with SIMD128 (1.34x, same bytes). scripts/page-acceptance.mjs drives the built site in headless Chrome over the DevTools protocol: every journey, all 17 acceptance cases, all 11 transitions, controls checked against the model in every state, gated quality measures. CI runs it in pages-client.yml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
The page acceptance runs as obligation `pages` (factory/graph.json): its identity covers the client set, the wasm crate, web/, the brand files and the two site scripts, so other changes find its receipt and skip it. The release gate needs it, and factory.yml records its receipts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
The sequential one-core decode path stays ahead of the threaded scheduler, which now counts cores per block. The acceptance's repeat input is a repeated passage: under #130 three all-zero frames are coded as ncm frames, not reference frames, so they no longer exercise reference decoding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
compressTreeBlob and decompressTreeBlob run a file tree a frame at a time (FrameEncoder::objects over the tree layout; decoded frames split at their object lengths), so a folder of any size never sits whole in wasm memory. The wasm test checks the streamed tree equals the library's compress_tree bytes and restores the same entries. The model's features name the new calls, and the acceptance checks that every uorc.* call a feature names exists in the shipped uorc.js. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
The formal and scripts sets exclude the page acceptance and its workflow; the pages obligation and its gate edge sit beside #131's per-leg inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
…e model #131's legs run on a checkout materialized to their inputs, and the formal set excluded web/, so reproducibility found the check-model projection web/index.html missing (URP004). The page is rendered from src/Uorc/Page.lex.tex, so it belongs with the formal inputs; the rest of web/ stays out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
…-1dvr1c # Conflicts: # .cargo/config.toml
…hives New acceptance case decompress-released (feature decompressArchive): every archive in crates/uorc/tests/compat is restored in the browser to its original bytes. Measured against ncm v4 (#133): 18 cases pass; compress 178 KB/s, decompress 467 KB/s, worker memory 215 MiB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
The rest legs fail with ENOSPC while PrismPM's template check builds the regeneration copy in the SDK container's 2 GiB /tmp; locally the copy and its build peak at 0.72 GB both at the last green revision and now. Print what holds /tmp at that point so the cause is measured, not guessed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
Measured in the rest leg: when PrismPM's native regeneration starts, /tmp (2 GiB tmpfs in the SDK container) already holds 1.2 GB, all of it /tmp/prismpm-cargo-1001, the debug xtask build audit-bootstrap leaves there. The regeneration copies the tree (0.13 GB) and builds it from scratch (0.72 GB at peak, measured in a 2 GiB tmpfs), so the lexlean rlib write hits ENOSPC. Running the template check first gives it an empty /tmp; both checks still run and must pass. Drops the /tmp report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
…the template check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
…target Measured in the rest leg: the SDK container's /tmp is a 2 GiB tmpfs and CARGO_HOME (/tmp/prismpm-cargo-1001) already holds 1.1 GiB of it when the template check starts. Native regeneration copies the tree there (0.13 GB) and built it from scratch beside the copy (0.69 GiB at peak), which ran out of space writing the lexlean rlib. With CARGO_TARGET_DIR at the workspace's target on disk the build reuses audit-bootstrap's compiled dependencies, rebuilds the workspace crates from the staged sources, and /tmp holds only the copy (measured in a 2 GiB tmpfs: 0.13 GB, 4 s instead of 43 s). Restores the original order and drops the diagnostics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
…de the staged copy PrismPM runs model-write in a copy of the tree staged in the SDK's /tmp (a 2 GiB tmpfs of which CARGO_HOME holds 1.1 GiB) with a cleared environment that keeps only PATH, the toolchain homes, HOME and XDG_CACHE_HOME, so CARGO_TARGET_DIR (8032234) never reached it. The template check now leaves .tmp/model-write-target, which is copied with the tree, and model-write builds into that directory (the workspace's target on disk) when the note is there and into target otherwise. Simulated with the same cleared environment in a 2 GiB tmpfs: /tmp holds only the 0.13 GB copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
…of its own On e6399ae the template check passed, but the next recipe (validate) ran the xtask binary the staged copy had built into the workspace's target: cargo took it as current, and it read sources at the copy's deleted /tmp path. The note now names target/regeneration, still on the workspace's disk and shared with nothing else. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3N6Mcveqrwnu6XBiYk
A step is one model input evaluated for one coded bit, read from a frame header alone. A codec point names basis, profile word, state and lanes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LszhHCxmceQ2V8xxx
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LszhHCxmceQ2V8xxx
… inspect and the page - Info JSON and `uorc inspect` name each frame's codec point (basis, profile word, model state, lanes, κ) and its exact decode steps, from uorc::performance (lane 1's vocabulary, cherry-picked). - Uorc.Page: readModel feature on the evaluator journey, inspect columns for the codec point and the claims naming it, theorem/claim/weight tables, faithfulModel requirement with two gated measures. - scripts/site.mjs publishes model.json (ledger UC-PERF rows, frontier.toml, model/engine.toml) beside the closure; release attaches it and summarises it in the notes; factory `pages` keys on the three files. - Browser acceptance: inspect-codec-point, model-theorems, model-claims, model-engine. UC-WEB-02 registered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PSU8BqT6iazmFzCy1
They are exported by LexLean and keyed by their export identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PSU8BqT6iazmFzCy1
…-nzuiti # Conflicts: # CONFORMANCE.md # crates/model/src/page.rs # docs/verification/pages-client.md # factory/graph.json # features/suites/pages-client.feature # model/ids.toml # model/ledger.toml # scripts/page-acceptance.mjs # src/Uorc/Page.lex.tex # src/Uorc/Registry.lex.tex # web/app.js # web/index.html
The x86 filter is a coordinate of the codec point (lane 1: bit 31 of the point's profile); the representation names it, and inspect now shows it beside the profile word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PSU8BqT6iazmFzCy1
…ine file Merge main into the product model lane. model.json now reads frontier.toml's nested [[claim.members]] tables and model/engine.toml as uorc/engine/1 (rule30_state, [[strategy]] words named by [[weight]] index, [[generator]] weights). The theorems table is labelled for the performance rows it lists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PSU8BqT6iazmFzCy1
One inspect JSON carries steps (shared with #137) plus the codec point. The release builds model.json from the factory-decided claims/frontier.toml (--frontier), attaches both registers, and its notes add the performance rows and engine line after frontier.md instead of repeating the claims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3PSU8BqT6iazmFzCy1
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
v0.5 lane 5: the Prism product model shows the v0.5 performance model wherever the product shows an archive.
Stacked on #132 (the page model). It also carries lane 1's two vocabulary commits (
uorc::performance, cherry-picked from claude/project-thread-5x220g), which become no-ops once lane 1 merges. Merge order: after lanes 2 and 3. Retarget tomainonce #132 merges.What changes
Info::to_json, and souorc inspect --json, the wasminspectand the page, now carriesstate,lanes,stepsandcodec_pointfromuorc::performance.uorc inspectprints the same values as text lines. Steps are exact and come from the header alone. A raw frame costs 1 step per byte and a reference frame costs 0. An ncm frame costs 8 × the inputs its profile word keeps, per byte. For example, an 8 MiB frame under 0x7e1ff costs 1,342,177,280 steps.readModelfeature on the evaluator journey. The inspect table gets columns for the profile word, model state, lanes, steps, codec point κ and the recorded claims that name the point. There are model-view tables for theorems, claims and engine weights, plus an engine line (tick, rule30 register, consolidated). AfaithfulModelrequirement has two gated measures,differingCodecPointsanddifferingModelValues, both with threshold 0. Usage blocks are updated.scripts/site.mjspublishes it beside the closure, the way it already publishes the bench page. It holds the ledger'sUC-PERF-*rows, the[[claim]]tables offrontier.tomland the state inmodel/engine.toml(tick,rule30,consolidated,[[weight]] strategy/family/value). The small TOML reader refuses anything it cannot read faithfully. Until lanes 2 and 3 land, the page says "None recorded in this release."uorc-<tag>-model.jsonis attached to the release, and the notes get a "What this release claims" summary. The factory obligationpagesnow keys onmodel/ledger.toml,frontier.tomlandmodel/engine.toml. A new claim or engine tick therefore reruns only the browser acceptance.Evidence
inspect_names_each_frames_codec_point_uc_web_02(cli.rs): for an ncm frame and a raw frame, the JSON and text output equalCodecPoint::of(..).kappa()andframe_steps.the_model_view_holds_every_model_table_uc_web_02, plus a new planted defect (a table with no columns) inplanted_model_defects_are_rejected_uc_web_01.site.test.mjs: the model.json projection, integers above 2^53 kept exact, and unreadable TOML refused.inspect-codec-pointcompares every frame of a 3-frame stream with the library's inspect in the same page, against a register that claims the first frame's point. Two planted defects in the builtapp.jseach fail the gate (recorded in docs/verification/pages-client.md).cargo xtask check-modelreports 30 ids (CM-01).audit-source-authority,audit-deferralandaudit-limitspass. clippy and fmt are clean.Generated by Claude Code