PrismDevRelOpen the app
Case studies: Slides and video script

Overview

Case studies

UORust

How UORust was modeledArchitecture walkthroughDesign views in OPM and UMLFeatures and journeysSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsSystem and releaseExtension facetsCommand referenceSlides and video scriptRecord explorerllms.txt and Markdown twins

Prism-DevRel

How Prism-DevRel was modeledArchitecture walkthroughDesign views in OPM and UMLFeatures and journeysSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsExtension facetsSlides and video scriptRecord explorerllms.txt and Markdown twins

Rule 30

How Rule 30 was modeledArchitecture walkthroughSecurity and threat modelQuality model (ISO/IEC 25010)Behavior and proofsSlides and video scriptRecord explorerllms.txt and Markdown twins

Verdant Resonance

How Verdant Resonance was modeledBehavior and proofsExtension facetsSlides and video scriptRecord explorerllms.txt and Markdown twins

Foundry

How Foundry was modeledBehavior and proofsSlides and video scriptRecord explorerllms.txt and Markdown twins

// case study · Foundry

Slides and video script

One slide for each facet of Foundry, with a script to read over it.

Subject: Foundry at commit 5fa2a21e5aca, 248 facet records, source digest 6e5e13608777e1a0.

The talk, slide by slide1. Foundry: title 2. Behavior and proofs: theorem 3. Application: TextApplication01Foundrytitle02Behavior and proofstheorem03ApplicationTextApplicationThe talk, slide by slide1. Foundry: title 2. Behavior and proofs: theorem 3. Application: TextApplication01Foundrytitle02Behavior and proofstheorem03ApplicationTextApplication
The talk, slide by slide. One title slide, then one slide for each facet of Foundry, each showing one real record.
The data in this figure
StepWhat happens
1. Foundrytitle
2. Behavior and proofstheorem
3. ApplicationTextApplication

Foundry

  • 248 facet records
  • 5 pages teach them
Script

This talk walks through Foundry one facet at a time. Every record it shows is real, quoted from the model at commit 5fa2a21e5aca.

Behavior and proofs

  • 247 records in this facet
  • For example: queue_activeEdit (theorem)
Script

Behavior is what the Lean kernel checks. The example on screen is ChatQueue::queue_activeEdit.

Application

  • 1 record in this facet
  • For example: Forge kernel (TextApplication)
Script

The application record is what a holo is built from: its entry root, its acceptance vectors and its view. The example on screen is ForgeKernel::application.

queue_activeEdit

ChatQueue::queue_activeEdit theorem #0 source

statement
((transitionQueue (record QueueState {revision := 3, paused := 0, stopPolicy := 2, active := 11, owner := 7, items := (cons 11 (cons 12 (cons 13 (nil Nat))))}) 3 (record QueueCommand {kind := 4, item := 11, index := 0, owner := 0, observedStop := 0})) = (ctor Result.error [QueueState, QueueError] (ctor QueueError.queueActiveConflict)))
proof
reflexivity

Taught by Behavior and proofs, Slides and video script

Forge kernel

ForgeKernel::application TextApplication #79 source

Forge kernel 18 entries
profile
prismpm/text-application/1
cargoName
prism-forge-kernel
cargoVersion
0.1.0
cargoDescription
Decide the next build phase of a Hologram Forge app, whether an origin may use an effect, and the experience rules Forge is held to.
cargoRepository
https://github.com/UOR-Foundation/PrismPM
cargoHomepage
https://github.com/UOR-Foundation/PrismPM
libraryRoots
  • PrismForgeKernel.EventAdmission.admitEvent
  • PrismForgeKernel.FeatureComposition.admitComposition
  • PrismForgeKernel.ForgeKernel.dispatch
  • PrismForgeKernel.ProposalAdmission.admitProposal
  • PrismForgeKernel.WorkOwnership.initialize
  • PrismForgeKernel.WorkOwnership.transition
acceptanceVectors
(previewAcceptance)
entryRoot
PrismForgeKernel.ForgeKernel.dispatch
coreContract
hologram:guest/core-wasm@1
requestMaximum
(32776 : UInt32)
responseMaximum
(4096 : UInt32)
guestAllocationMaximum
(32784 : UInt32)
capabilitiesEmpty
true
fatArchive
true
primaryLayer
(0 : UInt8)
viewLayer
(1 : UInt8)
view
TextView
title
Forge kernel
heading
Forge kernel
inputLabel
Request: phase event, or gate origin effect record granted denied
submitLabel
Decide
outputLabel
Answer
inputError
Invalid request
responseError
Invalid response

Taught by How Foundry was modeled, Slides and video script

explanationDiscovercase studyMarkdown

Words on this page 5
facet
One view of a model, such as its architecture, its security or its quality. Each facet holds records.
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.
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.
acceptance test
An input and the output the app must give for it. The holo replays each one before it is offered.