Examples: Example apps
Overview
Example appsDecision tables
Rule 30 cellStrike dieWise deferralCurrent supportHeader workPlant attunementCapability routePublish gateProposal admissionCompression admissionQuorum commitAddress admissionDataflow policyDraft admissionCoded matmul admissionUTQC row honestyCalculator protocolRequantization clampJCS NFC admissionTwo-seed barDocs sync// example · Overview
Example apps
Apps built from one prompt each, grouped by pattern, and verified before they go live.
Each example is one prompt for an app from a real Prism or UOR project, with rules read from that project's source. The builder writes the whole app from the prompt. The pages workflow verifies every one before the site goes live. They are grouped by the pattern they follow: DMN decision tables, XACML policy decisions and UML state machines.
33 examples: 21 decision tables · 6 policy decisions · 6 state machines.
Decision tables
The rules are tried in order, and the first one that matches gives the answer. If none matches, the default answer applies. This is a DMN decision table with the FIRST hit policy. OMG DMN 1.5, hit policy FIRST.
Decision tables 21 items
afflom/rule30
Rule 30 cell
Find the next state of one Rule 30 cell from its neighbours, so every row of the pattern can be replayed and checked.
3 rules · 2 proved properties · 11 threats · 19 vectors · verified
afflom/karst-zero
Strike die
Roll one strike die in Karst: Zero Horizon, with cover and momentum. Then every roll in a fight can be replayed.
6 rules · 4 proved properties · 13 threats · 43 vectors · verified
afflom/prism-ciris
Wise deferral
Decide if a CIRIS agent goes ahead, asks a Wise Authority first, or stops. Then each of its choices can be checked later.
4 rules · 5 proved properties · 14 threats · 52 vectors · verified
afflom/prism-legal
Current support
Tell if a PrismLegal matter is current. A legal strategy should only rest on support that is checked, grounded and up to date.
4 rules · 3 proved properties · 12 threats · 51 vectors · verified
afflom/prism-btc
Header work
Decide if a block header's hash meets its target, so any node can check the proof of work from the header alone.
3 rules · 3 proved properties · 12 threats · 34 vectors · verified
afflom/verdant-resonance
Plant attunement
Decide if a player's gesture in Verdant Resonance reaches the plant they face. The garden then answers the same walk the same way.
3 rules · 3 proved properties · 12 threats · 42 vectors · verified
afflom/uorust
Capability route
Decide how UORust records a Rust target by the effect it reaches. Every effect becomes a threat in the model, and nothing hides as pure.
4 rules · 3 proved properties · 12 threats · 19 vectors · verified
afflom/prism-devrel
Publish gate
Decide if Prism-DevRel may publish its pages, so no reader ever sees a page that gets the model wrong.
3 rules · 3 proved properties · 12 threats · 32 vectors · verified
UOR-Foundation/foundry
Proposal admission
Decide if a router's proposal joins the app. A stale, unclear or clashing proposal never becomes part of it.
4 rules · 4 proved properties · 13 threats · 36 vectors · verified
UOR-Foundation/compression
Compression admission
Decide if a new UORC archive replaces the best one so far. A smaller size must never come at the cost of lost data.
4 rules · 3 proved properties · 12 threats · 40 vectors · verified
UOR-Foundation/malachite-usdc
Quorum commit
Decide if a round of votes commits a block. A validator commits only when enough others agree, and only once it holds the block itself.
3 rules · 3 proved properties · 12 threats · 38 vectors · verified
UOR-Foundation/uor-addr
Address admission
Decide if a value gets a UOR-ADDR address. Two values that mean the same thing share one label, and a broken value gets none.
4 rules · 3 proved properties · 12 threats · 26 vectors · verified
UOR-Foundation/prism-code
Dataflow policy
Decide if a Prism dataflow script is accepted, rejected for breaking a policy, or an error. A script that leaks memory or personal data is never accepted.
5 rules · 4 proved properties · 13 threats · 57 vectors · verified
UOR-Foundation/lexlean-mcp
Draft admission
Decide if LexLean MCP takes a draft from an AI model. No file path leaves its folders, and no draft goes over the owner's limits.
11 rules · 5 proved properties · 15 threats · 60 vectors · verified
afflom/lexlean-matmul
Coded matmul admission
Decide if a coded matrix request is computed, or which error it gets. The checks run in the order the LexLean Matmul protocol sets.
10 rules · 4 proved properties · 13 threats · 71 vectors · verified
afflom/UOR-Atlas-UTQC
UTQC row honesty
Decide if a row of the UOR Atlas UTQC dictionary passes the honesty check, so no row claims more than its source shows.
5 rules · 4 proved properties · 13 threats · 53 vectors · verified
UOR-Foundation/calculator-example
Calculator protocol
Sort a Calculator request by the kind of answer it gets. A bad, unknown or too-large request never gets a number back.
4 rules · 4 proved properties · 13 threats · 44 vectors · verified
UOR-Foundation/MNIST
Requantization clamp
Sort how the MNIST network squeezes a 32-bit sum into an 8-bit value, so no value ever falls outside 0 to 255.
2 rules · 3 proved properties · 12 threats · 25 vectors · verified
UOR-Foundation/uor-jcs-nfc
JCS NFC admission
Give the one refusal code for a broken JSON document, or let it through. Then every tool refuses the same input with the same code.
10 rules · 4 proved properties · 13 threats · 40 vectors · verified
UOR-Foundation/uor-r4
Two-seed bar
Decide if a two-seed UOR-R4 run beats its baselines, so a result inside the noise is never called a win.
6 rules · 3 proved properties · 12 threats · 72 vectors · verified
UOR-Foundation/website
Docs sync
Decide what the nightly docs sync does to uor.foundation. The site must never swap its docs for an empty or unchecked release.
6 rules · 4 proved properties · 13 threats · 49 vectors · verified
Policy decisions
The answer is one XACML 3.0 decision: permit, deny, not-applicable, indeterminate. A policy that applies gives permit or deny. If none applies, the answer is not-applicable. If the request cannot be judged, it is indeterminate. OASIS XACML 3.0 policy decision point.
Policy decisions 6 items
UOR-Foundation/holo-search
Open policy
Decide if Holo Search opens the app an address names. Nothing runs unless its bytes match the address, its model checks and its tests pass.
5 rules · 5 proved properties · 14 threats · 42 vectors · verified
UOR-Foundation/kappa-registry
Namespace authorization
Decide if kappa-registry lets someone change a namespace. Only its owner, a key holder or a short chain of trust can write.
10 rules · 4 proved properties · 13 threats · 52 vectors · verified
UOR-Foundation/LexLean
Axiom policy
Decide if a declaration uses only the axioms its source allows. Then lexlean verify publishes nothing that rests on more.
6 rules · 6 proved properties · 15 threats · 55 vectors · verified
afflom/WASM-GEMM-GNAF
GNAF claim wording
Decide which words a GNAF document may use for a claim. No README or ledger may say more than the Lean kernel checked.
7 rules · 4 proved properties · 13 threats · 41 vectors · verified
afflom/emporous
Emporous admission
Decide if Emporous lets an object into a namespace. Each object must come from someone who is allowed to add it there.
5 rules · 4 proved properties · 13 threats · 35 vectors · verified
UOR-Foundation/foundry-web
Portal publication
Decide if foundry-web may publish a portal release. Only the exact build that was checked and approved can go live.
6 rules · 4 proved properties · 14 threats · 46 vectors · verified
State machines
The answer is the next state, given the current state and an event. This is a UML state machine written as one pure function. The state travels in the request, so the app keeps nothing between requests. The builder proves what holds over every run. OMG UML 2.5.1 behavioral state machine.
State machines 6 items
UOR-Foundation/MCP
MCP task lifecycle
Find an MCP task's next state, so a client that polls, updates or cancels it always sees the state the protocol would write.
14 rules · 9 proved properties · 18 threats · 65 vectors · 5 states · verified
UOR-Foundation/PrismPM
Container lifecycle
Move a PrismPM holo container through its Docker life. A holo that fails its check never runs, and a running one is never removed.
10 rules · 6 proved properties · 15 threats · 44 vectors · 4 states · verified
afflom/atlas-explorer
Atlas walk controls
Find the next state of the Atlas Explorer view from the button pressed. Then each walk through the E8 orbit can be replayed step by step.
11 rules · 5 proved properties · 14 threats · 41 vectors · 4 states · verified
afflom/aistudio-experiment
Vault escrow lifecycle
Find the next status of an escrow in the PrismPM Vault from the step applied to it. Then locking, release and refund can be replayed.
6 rules · 5 proved properties · 14 threats · 55 vectors · 4 states · verified
UOR-Foundation/template
Release lifecycle
Move a template release from build to accept, one step at a time. No release is accepted before every step has passed in order.
10 rules · 5 proved properties · 14 threats · 41 vectors · 6 states · verified
UOR-Foundation/uor-foundry
Organization lifecycle
Move a Foundry organization through its life. Only its own admins can switch it on, pause it or retire it.
7 rules · 5 proved properties · 14 threats · 50 vectors · 4 states · verified
Words on this page 11
- record
- One entry in a facet: a component, a threat, a measure or a journey step, with the place in the source it came from.
- LexLean
- The language Prism models are written in. It reads like LaTeX and compiles to Lean 4.
- Lean kernel
- The small checker at the heart of the Lean prover. It accepts a proof only if every step follows the rules.
- holo
- The app Prism builds: one signed, verified file that a browser or a device runs.
- κ
- A content address: a hash of the exact bytes a record was read from, so anyone can check where it came from.
- MCP
- Model Context Protocol: an open protocol through which AI agents call tools such as the Prism builder.
- UOR
- Universal Object Reference: the UOR Foundation's framework for naming any object by its content.
- decision table
- A table of rules, as in OMG DMN 1.5: each row says which inputs lead to which outcome.
- XACML
- OASIS eXtensible Access Control Markup Language 3.0: a policy decides permit, deny, not applicable or indeterminate.
- state machine
- A model of something that is always in one state and moves between states on events, as in UML 2.5.1.
- prompt
- One JSON document that describes an app. The builder turns it into every facet of a Prism model.