Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
71e7530
Prism model: ncm's plasticity as the neuromorphic standard; Pages clo…
claude Nov 10, 2026
ce21a83
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 10, 2026
4d1e0f9
Pages client: Prism product model of the page, generated from it, wit…
claude Nov 10, 2026
9caee8f
Pages client acceptance is a factory obligation keyed on its own inputs
claude Nov 10, 2026
e0e2e30
pages-client: read the single-obligation route outputs
claude Nov 10, 2026
02a0fc0
Merge main (#129 squash, tree identical to the stacked base)
claude Nov 10, 2026
8b7b037
Merge main (#130, repeats at any offset) into the pages client
claude Nov 11, 2026
cbe2df8
Pages client: folders stream through the frame operations
claude Nov 11, 2026
0399607
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 11, 2026
cccf80f
Page acceptance: all-zero frames are reference frames again (#134)
claude Nov 11, 2026
aca17b9
Merge main (#131 per-leg closures, #134) into the pages client
claude Nov 11, 2026
69e3e0d
factory: the formal set holds web/index.html, a projection of the pag…
claude Nov 11, 2026
0ce33f1
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Nov 11, 2026
2df0067
Page acceptance: the page restores the released v0.2.0 and v0.3.0 arc…
claude Nov 11, 2026
208149f
template-check: report /tmp use before PrismPM's native regeneration
claude Nov 11, 2026
d7d1ea9
template-check: run PrismPM's template check before the xtask audit
claude Nov 11, 2026
60c4aef
template-check: report /tmp, tree sizes and cargo environment before …
claude Nov 11, 2026
8032234
template-check: build PrismPM's native regeneration in the workspace …
claude Nov 11, 2026
e6399ae
model-write: build into the target the template check names, not besi…
claude Nov 11, 2026
7c7aa57
template-check: the staged regeneration builds in a target directory …
claude Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/factory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: factory

on:
workflow_run:
workflows: [bootstrap, SDK offline reproducibility, release]
workflows: [bootstrap, SDK offline reproducibility, release, pages client]
types: [completed]

permissions:
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/pages-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# UC-WEB-01: the Pages client, built as the release builds it, driven through
# every journey of its Prism product model (src/Uorc/Page.lex.tex) in headless
# Chrome by scripts/page-acceptance.mjs.
#
# A factory obligation (`pages` in factory/graph.json): its identity covers only
# what the page reads (the client set, the wasm crate, web/, the brand files and
# the two scripts), so a change elsewhere finds its receipt and skips the work.
# The release gate needs it, so no release ships a page that fails its model.
name: pages client

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pages-client-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
route:
name: pages client / factory route
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs:
route: ${{ steps.route.outputs.route }}
identity: ${{ steps.route.outputs.identity }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
persist-credentials: false
- name: Route the page acceptance by its own inputs
id: route
run: node scripts/factory.mjs route pages | tee -a "$GITHUB_OUTPUT"

acceptance:
name: pages client / product model acceptance
needs: route
if: needs.route.outputs.route == 'observe'
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
persist-credentials: false
- name: Build the site and walk every journey of the product model in Chrome
id: run
shell: bash
run: |
set -euo pipefail
cargo build --locked --release -p uorc-wasm --target wasm32-unknown-unknown
mkdir -p .tmp/bench
for f in bench.html bench.json bench.md; do printf 'benchmarks are published with each release\n' > ".tmp/bench/$f"; done
node scripts/site.mjs .tmp/site --wasm target/wasm32-unknown-unknown/release/uorc_wasm.wasm --version "$(git describe --tags --always)-dev" --bench .tmp/bench
node scripts/page-acceptance.mjs .tmp/site --chrome "$(command -v google-chrome)" --report .tmp/page-acceptance.json
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always()
with:
name: page-acceptance
path: .tmp/page-acceptance.json
if-no-files-found: warn
retention-days: 30
- name: Record the outcome
if: always() && (steps.run.outcome == 'success' || steps.run.outcome == 'failure')
env:
IDENTITY: ${{ needs.route.outputs.identity }}
OUTCOME: ${{ steps.run.outcome }}
run: node scripts/factory.mjs outcome pages "$IDENTITY" "$OUTCOME" .tmp/factory
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
if: always() && (steps.run.outcome == 'success' || steps.run.outcome == 'failure')
with:
name: factory-outcome-pages
path: .tmp/factory/
if-no-files-found: error
retention-days: 3
7 changes: 7 additions & 0 deletions CONFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ The three honesty levels (R2):
| --- | --- | --- |
| `UC-OBJ-01` | `build` | Archives of ordered objects preserve the exact object boundary vector, including zero objects and distinct zero-length objects. |

## pages-client

| ID | Level | Statement |
| --- | --- | --- |
| `UC-WEB-01` | `build` | The Pages client is generated from and conforms to its Prism product model in Uorc.Page: stakeholders, features with their calls and acceptance cases, journeys, the page's UML state machine, operations, fields, controls, examples, error hints, sections, usage, links and quality measures. The generated page holds exactly the modeled elements, and a real browser walks every journey, takes every modeled transition, checks every control's enabled state in every state it reaches and holds every gated quality measure. |

## product-interfaces

| ID | Level | Statement |
Expand Down Expand Up @@ -161,3 +167,4 @@ The three honesty levels (R2):
| `UC-INT-04` | `build` | `build_evidence` | `not_measured` | Source-owned actual-call relations establish ordered hash admissions, drained selected-view EOF and checked cumulative basis/main work; composed generated-model controls reject failed-prefix resets and late corruption. Consumer snapshot preservation, canonical digest refinement and complete archive EOF remain separate obligations. |
| `UC-INT-05` | `build` | `build_evidence` | `not_measured` | Source-owned completed-view and continuous publication proofs derive the actual chosen-profile digest and emitted-image reads, discharging canonical driver termination and OwnedHash control/cleanup lifetime for both explicit format identities and arbitrary finite source input. Initial source-layout correspondence and full product acceptance remain separate consumer obligations. |
| `UC-NEU-01` | `build` | `kernel_theorem` | `not_measured` | The ncm coder's plasticity is stated as the Prism neuromorphic standard in Uorc.Neuromorphic, with kernel-checked bounds: every mixer weight stays within plus or minus 2^22 under the bounded Hebbian rule, potentiation never lowers and depression never raises a weight, the plasticity lies between 24 and 128 per 65536 (128 at the first byte, 24 in the limit), one bit's weight change is at most 16376 and every product fits a 32-bit lane, a context slot never steps past its gap to the coded bit and consolidates at count 127, and every probability-map point stays within 16 bits; the native coder reads the model's constants. |
| `UC-WEB-01` | `build` | `build_evidence` | `not_measured` | The Pages client is generated from and conforms to its Prism product model in Uorc.Page: stakeholders, features with their calls and acceptance cases, journeys, the page's UML state machine, operations, fields, controls, examples, error hints, sections, usage, links and quality measures. The generated page holds exactly the modeled elements, and a real browser walks every journey, takes every modeled transition, checks every control's enabled state in every state it reaches and holds every gated quality measure. |
19 changes: 18 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,22 @@ model:

# The hand-reviewed trust root is checked independently of generated project
# content. PrismPM then validates the canonical contract and both locks.
# PrismPM's native regeneration runs model-write in a copy of the tree staged
# in the SDK's /tmp, a 2 GiB tmpfs of which CARGO_HOME already holds 1.1 GiB,
# with a cleared environment. The note .tmp/model-write-target travels with
# the copy and sends its build to a target directory of its own on this
# workspace's disk. It is not the workspace's target: a binary built from the
# copy carries the copy's paths, and cargo would take it as current here.
template-check:
cargo run --locked -q -p xtask -- audit-bootstrap
mkdir -p .tmp && printf '%s' "{{justfile_directory()}}/target/regeneration" > .tmp/model-write-target
prismpm template check
rm -f .tmp/model-write-target
prismpm lock check

# Regenerate every model/document projection owned by the LexLean authority graph.
model-write:
cargo run --locked -q -p xtask -- check-model --write
cargo run --locked -q -p xtask --target-dir "$(cat .tmp/model-write-target 2>/dev/null || echo target)" -- check-model --write

# Direct R1 report: project prose cannot become a second UORC authority.
source-authority:
Expand All @@ -58,6 +66,15 @@ test:
cargo test --locked --workspace --exclude xtask
node --test scripts/site.test.mjs

# UC-WEB-01: build the Pages site as the release does (a stand-in benchmark
# page beside it) and walk every journey of the page's Prism product model in
# headless Chrome. CI runs the same steps in pages-client.yml.
pages:
cargo build --locked --release -p uorc-wasm --target wasm32-unknown-unknown
mkdir -p .tmp/bench && for f in bench.html bench.json bench.md; do printf 'benchmarks are published with each release\n' > .tmp/bench/$f; done
node scripts/site.mjs .tmp/site --wasm target/wasm32-unknown-unknown/release/uorc_wasm.wasm --version "$(git describe --tags --always)-dev" --bench .tmp/bench
node scripts/page-acceptance.mjs .tmp/site --report .tmp/page-acceptance.json

# The xtask suite: product-runtime, integrity, claims and offline harnesses.
formal-tests:
cargo test --locked -p xtask
Expand Down
3 changes: 3 additions & 0 deletions crates/model/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ pub struct AuthorityGraph {
pub claim_policy: ClaimPolicy,
/// Generated claim-disposition ledger.
pub ledger: Ledger,
/// The Prism product model of the Pages client.
pub page: crate::page::PageModel,
}

impl AuthorityGraph {
Expand Down Expand Up @@ -335,6 +337,7 @@ impl AuthorityGraph {
spec: "template/1".to_string(),
claim: claims,
},
page: crate::page::PageModel::load(root)?,
};

graph.model().check()?;
Expand Down
1 change: 1 addition & 0 deletions crates/model/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ pub fn render_all(graph: &AuthorityGraph) -> Vec<(String, String)> {
),
];
out.extend(render_feature_suites(graph));
out.push((crate::page::PAGE_PATH.to_string(), graph.page.render()));
out
}

Expand Down
1 change: 1 addition & 0 deletions crates/model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
pub mod authority;
pub mod claims;
pub mod codegen;
pub mod page;
pub mod registry;
pub mod varint;

Expand Down
Loading
Loading