---
title: "Slides and video script"
url: https://afflom.github.io/prism-devrel/case-studies/foundry/slides/
diataxis: explanation
developer-journey: discover
collection: case-studies
collection-group: "Foundry"
subject: https://github.com/UOR-Foundation/foundry
commit: 5fa2a21e5acadcac3f0f13fe98ae142064918794
---

# Slides and video script

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

Subject: [Foundry](https://github.com/UOR-Foundation/foundry) at commit [`5fa2a21e5aca`](https://github.com/UOR-Foundation/foundry/tree/5fa2a21e5acadcac3f0f13fe98ae142064918794), 248 facet records, source digest `6e5e13608777e1a0`.

**Figure: The talk, slide by slide.** One title slide, then one slide for each facet of Foundry, each showing one real record.

1. Foundry: title
2. Behavior and proofs: theorem
3. Application: TextApplication

## Slide: 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.

## Slide: 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`.

## Slide: 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](https://github.com/UOR-Foundation/foundry/blob/5fa2a21e5acadcac3f0f13fe98ae142064918794/app/src/ChatQueue.lex.tex)

- 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, slides

### `Forge kernel`

`ForgeKernel::application` · TextApplication · #79 · [source](https://github.com/UOR-Foundation/foundry/blob/5fa2a21e5acadcac3f0f13fe98ae142064918794/app/src/ForgeKernel.lex.tex)

- 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: case-study, slides

