---
title: "How Foundry was modeled"
url: https://afflom.github.io/prism-devrel/case-studies/foundry/
diataxis: explanation
developer-journey: evaluate
collection: case-studies
collection-group: "Foundry"
subject: https://github.com/UOR-Foundation/foundry
commit: 5fa2a21e5acadcac3f0f13fe98ae142064918794
---

# How Foundry was modeled

> Who the Foundry model is for and what they care about. Then how those concerns became facets.

**Figure: The records of Foundry by facet.** Every record of the Foundry model, counted by facet. Each one is taught by at least one page of this case study.

| | Count |
| --- | --- |
| Behavior and proofs | 247 |
| Application | 1 |

Foundry says what it is in its own model:

> 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.

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`.

This case study reads every facet record of Foundry. Each record is taught by at least one page here, and no page teaches a record Foundry does not declare.

248 records, 248 covered, 5 pages, 2 facets.

## People, concerns and the application

These are the records of Foundry that say who the model is for, what they care about, and what its holo is built from. Each viewpoint of the architecture pairs one stakeholder with one concern.

### `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

## Learning paths

The pages of this case study, by the stage of the developer journey each one serves:

- Discover: [Slides and video script](https://afflom.github.io/prism-devrel/case-studies/foundry/slides/).
- Build: [Behavior and proofs](https://afflom.github.io/prism-devrel/case-studies/foundry/behavior/), [Record explorer](https://afflom.github.io/prism-devrel/case-studies/foundry/explorer/), [llms.txt and Markdown twins](https://afflom.github.io/prism-devrel/case-studies/foundry/agents/).

## Pages of this case study

| Page | Modality | Records | What you get |
| --- | --- | --- | --- |
| [How Foundry was modeled](https://afflom.github.io/prism-devrel/case-studies/foundry/) | Walkthrough | 1 | Who the Foundry model is for and what they care about. Then how those concerns became facets. |
| [Behavior and proofs](https://afflom.github.io/prism-devrel/case-studies/foundry/behavior/) | Reference | 247 | Every theorem of Foundry, and how it is proved. The Lean kernel checks each one. |
| [Slides and video script](https://afflom.github.io/prism-devrel/case-studies/foundry/slides/) | Slides and script | 2 | One slide for each facet of Foundry, with a script to read over it. |
| [Record explorer](https://afflom.github.io/prism-devrel/case-studies/foundry/explorer/) | Interactive | 0 | Search every record of Foundry by name, facet or text. Each result links to the pages that teach it. |
| [llms.txt and Markdown twins](https://afflom.github.io/prism-devrel/case-studies/foundry/agents/) | Agent twin | 0 | The Foundry case study as plain text for agents. It has llms.txt, a twin of each page and a feed. |

## Facets of Foundry

Each facet links to the page that explains it for every Prism model, beside the count for this one:

| Facet | Records |
| --- | --- |
| [Behavior and proofs](https://afflom.github.io/prism-devrel/facets/behavior/) | 247 |
| [Application](https://afflom.github.io/prism-devrel/facets/application/) | 1 |

