diff --git a/CLAUDE.md b/CLAUDE.md index 8100f356..c4fbabc5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,4 +1,4 @@ -# Working in Prism AI Foundry +# Working in Prism Foundry Read `AGENTS.md` first; its rules R1 to R6 bind every change. diff --git a/CONFORMANCE.md b/CONFORMANCE.md index 307ac008..c35e602f 100644 --- a/CONFORMANCE.md +++ b/CONFORMANCE.md @@ -411,6 +411,12 @@ model does not sanction. | --- | --- | --- | | `FA-87` | `build` | A chat turn is answered only by Foundry's own model in Prism, and Prism R4 refuses every route to another model before the request leaves the tab | +## private-workspace + +| ID | Level | Statement | +| --- | --- | --- | +| `FA-91` | `build` | A private workspace opens only for the Prism id that owns it, on a device with a live session and its current boundary key; a record is read only when authentic and in place and stored only sealed; the workspace kept before an id moves in once; and Foundry's Prism kernel names every refusal | + ## product-model | ID | Level | Statement | diff --git a/README.md b/README.md index 34717fe3..0c5ec9b3 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@
-
+
Start building | Spec | Conformance | For AI agents | Community @@ -20,11 +20,11 @@ > **Turn your ideas into apps you can prove.** > -> Describe what you want to build. Prism AI Foundry builds it, proves it, and publishes it to a live URL. +> Describe what you want to build. Prism Foundry builds it, proves it, and publishes it to a live URL. AI can take you from prompt to production in minutes. What it can't tell you is whether the app does what you asked. A preview shows that it worked once. Tests show that it worked for the cases someone thought of. -Prism AI Foundry adds the step that settles it: **formal verification**. Every rule your app promises is proved mathematically, for every possible input, before it can go live. Not tested. Proved. +Prism Foundry adds the step that settles it: **formal verification**. Every rule your app promises is proved mathematically, for every possible input, before it can go live. Not tested. Proved. Building and previewing run in your browser, with no install and no sign-in. Publishing happens on your device too: the app becomes a holo, named by its contents, that you share as a file or a link. Proving does too: Lean's kernel, compiled to WebAssembly, proves an app's rules in your tab, and no server takes part. An app that keeps state between requests is still proved on a hosted verifier. @@ -34,20 +34,20 @@ Building and previewing run in your browser, with no install and no sign-in. Pub The same flow you already know, with one more step. -| Step | You | Prism AI Foundry | +| Step | You | Prism Foundry | |---|---|---| | **1. Describe** | Say what you want, in plain words | Writes the app and the rules it must follow | | **2. Iterate** | Chat, tweak, preview | Checks the rules are complete and consistent | | **3. Prove** | Approve the rules | Proves every rule in Lean, for every input | | **4. Publish** | Share one link | Ships the app with its proof inside, as one file named by its contents | -Edit anything after it is proved and Prism AI Foundry returns to step 2. The proof badge always describes the app you have, never an older version. +Edit anything after it is proved and Prism Foundry returns to step 2. The proof badge always describes the app you have, never an older version.
## Why proof matters -| | Typical AI app builder | Prism AI Foundry | +| | Typical AI app builder | Prism Foundry | |---|---|---| | You describe | An app | An app | | You get | Code that seems to work | Rules proved for every input | @@ -80,9 +80,9 @@ Want to see the proof engine on its own? The [kernel page](https://uor-foundatio -## What Prism AI Foundry proves about itself +## What Prism Foundry proves about itself -Prism AI Foundry holds itself to the same standard. Lean proves each of these for every request: +Prism Foundry holds itself to the same standard. Lean proves each of these for every request: | Promise | ID | |---|---| @@ -90,7 +90,7 @@ Prism AI Foundry holds itself to the same standard. Lean proves each of these fo | Never publishes an unproved app | FK-02 | | Every edit sends the app back to drafting | FK-03 | | Never proves rules that skipped the check | FK-04 | -| With no grant, only Prism AI Foundry itself may act | FK-05 | +| With no grant, only Prism Foundry itself may act | FK-05 | | With no grant, nothing reaches the network | FK-06 | | A denial always wins | FK-07 | | A preview or published app needs an explicit grant | FK-08 | @@ -174,7 +174,7 @@ Only Prism is implemented. Behavior is written in the Prism model (`*.lex.tex`); ## Community and acknowledgments -Join the [Discord](https://discord.gg/ZwuZaNyuve), or open an issue on GitHub. Prism AI Foundry is built with [PrismPM](https://github.com/UOR-Foundation/PrismPM), [LexLean](https://github.com/UOR-Foundation/LexLean) and [prism-code](https://www.npmjs.com/package/prism-code), on the work of the [UOR Foundation](https://uor.foundation/), and opens in the same frame as [Hologram OS](https://github.com/Hologram-Technologies/hologram-os). +Join the [Discord](https://discord.gg/ZwuZaNyuve), or open an issue on GitHub. Prism Foundry is built with [PrismPM](https://github.com/UOR-Foundation/PrismPM), [LexLean](https://github.com/UOR-Foundation/LexLean) and [prism-code](https://www.npmjs.com/package/prism-code), on the work of the [UOR Foundation](https://uor.foundation/), and opens in the same frame as [Hologram OS](https://github.com/Hologram-Technologies/hologram-os). ## License diff --git a/app/product.json b/app/product.json index ce5b8a0c..e7e9237d 100644 --- a/app/product.json +++ b/app/product.json @@ -2,7 +2,7 @@ "schema": "prism/product/1", "lastModified": "2026-11-14T00:00:00Z", "goal": "Turn an idea typed in a browser tab into a full Prism model, proved by Lean and shared as one self-verifying holo, with no sign-in and no model outside Foundry.", - "title": "Prism AI Foundry", + "title": "Prism Foundry", "repository": "UOR-Foundation/foundry", "license": "MIT OR Apache-2.0", "stakeholders": [ @@ -900,19 +900,27 @@ }, { "name": "Prism id", - "text": "The frame keeps one Prism id per visitor, stitch's, made on first touch with no sign-in; a session verifies only for its app, an active device and its time, and linking, removal and recovery are quiet panel actions over stitch's relay.", + "text": "The frame keeps one Prism id per visitor, stitch's, made on first touch with no sign-in; a session verifies only for its app, an active device and its time, and linking, removal and recovery are quiet panel actions over stitch's relay; the kernel opens a private workspace only for that id and names every refusal.", "ids": [ - "FA-88" + "FA-88", + "FA-91" ], "calls": [ - "FoundrySpecification::prismIdBoundary" + "FoundrySpecification::prismIdBoundary", + "Workspace::dispatchWorkspace" ], "registry": [], "components": [ "frame", - "relay" + "relay", + "kernel", + "store" ], - "acceptance": [] + "acceptance": [ + "WorkspaceProofs::workspaceWords_ownerOpens", + "WorkspaceProofs::workspaceWords_anotherIdRefused", + "WorkspaceProofs::workspaceWords_tamperedRecordRefused" + ] }, { "name": "Libraries and settings", @@ -1488,7 +1496,7 @@ { "name": "Studio shell", "stakeholder": "App builder", - "text": "Foundry opens at once in the tab: the sidebar, the title bar and the Prism frame, with no sign-in and the shell served from its verified closure.", + "text": "Foundry opens at once in the tab: the sidebar, with Search (a centred palette over the apps and chats in memory, Ctrl or Cmd K) under Home, More for the items the visitor tucks away (Edit sidebar) and the Prism frame's Prism ID panel at its foot, and the title bar, with no sign-in and the shell served from its verified closure.", "requires": [ "Shell integrity", "Windows and tools", diff --git a/app/src/Compliance.lex.tex b/app/src/Compliance.lex.tex index d27cd868..6c80d32a 100644 --- a/app/src/Compliance.lex.tex +++ b/app/src/Compliance.lex.tex @@ -29,6 +29,8 @@ \importmodule{VersionPreviewProtocol} \importmodule{WorkOwnership} \importmodule{WorkProtocol} +\importmodule{Workspace} +\importmodule{WorkspaceProofs} \title{standards reference} \begin{semanticmodule} structure{ @@ -48,7 +50,7 @@ name: obligations, parameters: [], result: (List Obligation), - body: (cons (record Obligation {index := 0, standard := "ISO/IEC/IEEE 42010:2022", subject := "Architecture description", text := "Stakeholders, concerns, viewpoints and views are declared and their references resolve.", evidence := (cons "Architecture::architectureDescriptionHolds" (nil String))}) (cons (record Obligation {index := 1, standard := "ISO/PAS 19450:2015 and OMG UML 2.5.1", subject := "Design views", text := "Building an app from an idea is an OPM view; every journey is a UML sequence along the data flows, and the build-phase machine is the kernel's own rules (10 views).", evidence := (cons "Design::viewOpmBuild" (cons "Design::viewUmlComponents" (cons "Design::viewUmlIdeaToAProvedApp" (cons "Design::viewUmlPublishAnApp" (cons "Design::viewUmlReturnToAnApp" (cons "Design::viewUmlShapeTheStudio" (cons "Design::viewUmlUseAPublishedApp" (cons "Design::viewUmlReplayAHolo" (cons "Design::viewUmlChangeFoundry" (cons "Design::viewUmlPhases" (nil String)))))))))))}) (cons (record Obligation {index := 2, standard := "ISO 9241-11:2018", subject := "Context of use", text := "Every stakeholder is a user group with a goal; every goal is a journey whose tasks are screens, each accepted (7 goals, 18 tasks).", evidence := (cons "Users::everyGoalHasItsUser" (cons "Users::everyTaskServesAGoal" (cons "Users::everyTaskIsAccepted" (cons "Users::everyMeasureNamesAGoal" (nil String)))))}) (cons (record Obligation {index := 3, standard := "ISO/IEC 25010:2023", subject := "Product quality", text := "All 9 characteristics and 40 subcharacteristics are declared; each is stated by a requirement with a measure or listed open (30 open); every budget and experience rule of the kernel is a measure whose threshold is the kernel's term.", evidence := (cons "Quality::qualityModelHolds" (cons "Quality::openSubcharacteristicCount" (nil String)))}) (cons (record Obligation {index := 4, standard := "ISO/IEC 27034-1:2011, ISO/IEC 27005:2022 and STRIDE per element", subject := "Application security and risk", text := "Every threat has a STRIDE category and a mapped control with evidence, or an accepted risk with its rationale; every category STRIDE per element opens on the 42 components and data flows is answered by a threat or stated open (132 open).", evidence := (cons "Security::strideEnumerated" (cons "Security::strideOpenCount" (cons "Security::controlSet" (nil String))))}) (cons (record Obligation {index := 5, standard := "Prism R4 (afflom/me app/specs/r4)", subject := "Own language and reasoning", text := "Every chat turn is decided by R4 before its request is made and before its answer is shown; Foundry grants no route, so only its own model answers.", evidence := (cons "PrismR4Proofs::r4Inv001Holds" (cons "PrismR4Proofs::r4Inv002Holds" (cons "PrismR4Proofs::r4Inv003Holds" (cons "PrismR4Proofs::r4Inv004Holds" (cons "PrismR4Proofs::r4Inv005Holds" (cons "PrismR4Proofs::r4Inv006Holds" (cons "PrismR4Proofs::r4Inv007Holds" (nil String))))))))}) (cons (record Obligation {index := 6, standard := "Prism AI Foundry specification", subject := "authority", text := "Every product-owned behavior has exactly one canonical semantic owner. An imported behavior names its external authority and an independently checked typed boundary. Authoring front ends and generated projections cannot independently redefine behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 7, standard := "Prism AI Foundry specification", subject := "features", text := "Features declare versioned identity, vocabulary, inputs, outputs, state, events, errors, effects, dependencies, conflicts, projection targets, resource budgets, accessibility and applicable quality obligations.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 8, standard := "Prism AI Foundry specification", subject := "routing", text := "A replaceable semantic router proposes ranked features, dependencies, ambiguities and unresolved constraints from typed intent. Held-out relevance, dependency completeness, abstention and latency measurements qualify routing; proposal confidence grants no acceptance authority.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 9, standard := "Prism AI Foundry specification", subject := "composition", text := "Prism independently admits interfaces, dependency closure, conflicts, permissions, budgets and evidence obligations. Both the Foundry application and each generated application have separate finite declared release scopes.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 10, standard := "Prism AI Foundry specification", subject := "projection", text := "Product behavior is generated from the accepted model or crosses a declared typed adapter. Independent runtime comparison and qualified compiler evidence bind execution to the exact accepted semantics. An unsupported channel cannot report empty success as capability fulfillment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 11, standard := "Prism AI Foundry specification", subject := "proofScope", text := "Every assurance claim binds its property, model, source, executable, toolchain, oracle and dependency identities. Specification proofs, projection preservation, runtime acceptance, measurements and live release acceptance remain separate claims.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 12, standard := "Prism AI Foundry specification", subject := "effects", text := "Network, inference, storage, preview, build and publication effects require explicit permission, transmitted-data disclosure, provider and credential ownership, timeout, malformed-response, revocation and offline behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 13, standard := "Prism AI Foundry specification", subject := "identity", text := "An identity includes object kind, canonicalization profile, algorithm, digest and version. Recompute identities independently and retain transformation relationships among model, source, executable, assets, evidence, archive and deployment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 14, standard := "Prism AI Foundry specification", subject := "packaging", text := "A complete locked production dependency closure reproduces the accepted artifacts. Independently validate the archive and reconstruction. Dependency or manifest mutation prevents promotion.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 15, standard := "Prism AI Foundry specification", subject := "journeys", text := "Declared creation, editing, preview, verification, restore, cancellation, recovery and publication journeys have positive and negative runtime acceptance. State, view, effects, diagnostics, focus and publication decisions share an authoritative command boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 16, standard := "Prism AI Foundry specification", subject := "quality", text := "Functional correctness does not imply accessibility, audiovisual fidelity, usability or performance. Each declared quality requirement has an appropriate independent oracle, measurement or human assessment and a threshold fixed before acceptance.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 17, standard := "Prism AI Foundry specification", subject := "release", text := "The release receipt binds the declared scope to exact models, source, toolchain, dependencies, artifacts, evidence and destination. Independent retrieval and live replay establish deployment acceptance; a successful process exit alone does not.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 18, standard := "Prism AI Foundry specification", subject := "representation", text := "Exact byte compression retains original-object identity separately from representation, decoder and basis identities. Self-contained and conditional-basis accounting are distinct. Missing bases fail explicitly. Application optimization requires its own behavioral-preservation contract.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 19, standard := "Prism AI Foundry specification", subject := "ownership", text := "Admit and reserve work before executing effects. Retain achieved state, outstanding owners, spent work, unused reservations and resumable obligations after failure or cancellation. Semantic work, scheduling reservations and physical resource measurements remain distinct.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 20, standard := "Prism AI Foundry specification", subject := "factory", text := "Use the qualified PrismPM factory for dependency-scoped obligations. Bind declared input closures, prerequisite identities, commands, environments, policy and oracles. Materialized closures reject undeclared inputs. Scheduling weights affect order only; receipt reuse never weakens the complete acceptance boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 21, standard := "SPDX MIT OR Apache-2.0", subject := "Licensing", text := "Foundry and its model are offered under MIT OR Apache-2.0.", evidence := (cons "ForgeKernel::application" (nil String))}) (nil Obligation))))))))))))))))))))))) + body: (cons (record Obligation {index := 0, standard := "ISO/IEC/IEEE 42010:2022", subject := "Architecture description", text := "Stakeholders, concerns, viewpoints and views are declared and their references resolve.", evidence := (cons "Architecture::architectureDescriptionHolds" (nil String))}) (cons (record Obligation {index := 1, standard := "ISO/PAS 19450:2015 and OMG UML 2.5.1", subject := "Design views", text := "Building an app from an idea is an OPM view; every journey is a UML sequence along the data flows, and the build-phase machine is the kernel's own rules (10 views).", evidence := (cons "Design::viewOpmBuild" (cons "Design::viewUmlComponents" (cons "Design::viewUmlIdeaToAProvedApp" (cons "Design::viewUmlPublishAnApp" (cons "Design::viewUmlReturnToAnApp" (cons "Design::viewUmlShapeTheStudio" (cons "Design::viewUmlUseAPublishedApp" (cons "Design::viewUmlReplayAHolo" (cons "Design::viewUmlChangeFoundry" (cons "Design::viewUmlPhases" (nil String)))))))))))}) (cons (record Obligation {index := 2, standard := "ISO 9241-11:2018", subject := "Context of use", text := "Every stakeholder is a user group with a goal; every goal is a journey whose tasks are screens, each accepted (7 goals, 18 tasks).", evidence := (cons "Users::everyGoalHasItsUser" (cons "Users::everyTaskServesAGoal" (cons "Users::everyTaskIsAccepted" (cons "Users::everyMeasureNamesAGoal" (nil String)))))}) (cons (record Obligation {index := 3, standard := "ISO/IEC 25010:2023", subject := "Product quality", text := "All 9 characteristics and 40 subcharacteristics are declared; each is stated by a requirement with a measure or listed open (30 open); every budget and experience rule of the kernel is a measure whose threshold is the kernel's term.", evidence := (cons "Quality::qualityModelHolds" (cons "Quality::openSubcharacteristicCount" (nil String)))}) (cons (record Obligation {index := 4, standard := "ISO/IEC 27034-1:2011, ISO/IEC 27005:2022 and STRIDE per element", subject := "Application security and risk", text := "Every threat has a STRIDE category and a mapped control with evidence, or an accepted risk with its rationale; every category STRIDE per element opens on the 42 components and data flows is answered by a threat or stated open (132 open).", evidence := (cons "Security::strideEnumerated" (cons "Security::strideOpenCount" (cons "Security::controlSet" (nil String))))}) (cons (record Obligation {index := 5, standard := "Prism R4 (afflom/me app/specs/r4)", subject := "Own language and reasoning", text := "Every chat turn is decided by R4 before its request is made and before its answer is shown; Foundry grants no route, so only its own model answers.", evidence := (cons "PrismR4Proofs::r4Inv001Holds" (cons "PrismR4Proofs::r4Inv002Holds" (cons "PrismR4Proofs::r4Inv003Holds" (cons "PrismR4Proofs::r4Inv004Holds" (cons "PrismR4Proofs::r4Inv005Holds" (cons "PrismR4Proofs::r4Inv006Holds" (cons "PrismR4Proofs::r4Inv007Holds" (nil String))))))))}) (cons (record Obligation {index := 6, standard := "Prism Foundry specification", subject := "authority", text := "Every product-owned behavior has exactly one canonical semantic owner. An imported behavior names its external authority and an independently checked typed boundary. Authoring front ends and generated projections cannot independently redefine behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 7, standard := "Prism Foundry specification", subject := "features", text := "Features declare versioned identity, vocabulary, inputs, outputs, state, events, errors, effects, dependencies, conflicts, projection targets, resource budgets, accessibility and applicable quality obligations.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 8, standard := "Prism Foundry specification", subject := "routing", text := "A replaceable semantic router proposes ranked features, dependencies, ambiguities and unresolved constraints from typed intent. Held-out relevance, dependency completeness, abstention and latency measurements qualify routing; proposal confidence grants no acceptance authority.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 9, standard := "Prism Foundry specification", subject := "composition", text := "Prism independently admits interfaces, dependency closure, conflicts, permissions, budgets and evidence obligations. Both the Foundry application and each generated application have separate finite declared release scopes.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 10, standard := "Prism Foundry specification", subject := "projection", text := "Product behavior is generated from the accepted model or crosses a declared typed adapter. Independent runtime comparison and qualified compiler evidence bind execution to the exact accepted semantics. An unsupported channel cannot report empty success as capability fulfillment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 11, standard := "Prism Foundry specification", subject := "proofScope", text := "Every assurance claim binds its property, model, source, executable, toolchain, oracle and dependency identities. Specification proofs, projection preservation, runtime acceptance, measurements and live release acceptance remain separate claims.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 12, standard := "Prism Foundry specification", subject := "effects", text := "Network, inference, storage, preview, build and publication effects require explicit permission, transmitted-data disclosure, provider and credential ownership, timeout, malformed-response, revocation and offline behavior.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 13, standard := "Prism Foundry specification", subject := "identity", text := "An identity includes object kind, canonicalization profile, algorithm, digest and version. Recompute identities independently and retain transformation relationships among model, source, executable, assets, evidence, archive and deployment.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 14, standard := "Prism Foundry specification", subject := "packaging", text := "A complete locked production dependency closure reproduces the accepted artifacts. Independently validate the archive and reconstruction. Dependency or manifest mutation prevents promotion.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 15, standard := "Prism Foundry specification", subject := "journeys", text := "Declared creation, editing, preview, verification, restore, cancellation, recovery and publication journeys have positive and negative runtime acceptance. State, view, effects, diagnostics, focus and publication decisions share an authoritative command boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 16, standard := "Prism Foundry specification", subject := "quality", text := "Functional correctness does not imply accessibility, audiovisual fidelity, usability or performance. Each declared quality requirement has an appropriate independent oracle, measurement or human assessment and a threshold fixed before acceptance.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 17, standard := "Prism Foundry specification", subject := "release", text := "The release receipt binds the declared scope to exact models, source, toolchain, dependencies, artifacts, evidence and destination. Independent retrieval and live replay establish deployment acceptance; a successful process exit alone does not.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 18, standard := "Prism Foundry specification", subject := "representation", text := "Exact byte compression retains original-object identity separately from representation, decoder and basis identities. Self-contained and conditional-basis accounting are distinct. Missing bases fail explicitly. Application optimization requires its own behavioral-preservation contract.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 19, standard := "Prism Foundry specification", subject := "ownership", text := "Admit and reserve work before executing effects. Retain achieved state, outstanding owners, spent work, unused reservations and resumable obligations after failure or cancellation. Semantic work, scheduling reservations and physical resource measurements remain distinct.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 20, standard := "Prism Foundry specification", subject := "factory", text := "Use the qualified PrismPM factory for dependency-scoped obligations. Bind declared input closures, prerequisite identities, commands, environments, policy and oracles. Materialized closures reject undeclared inputs. Scheduling weights affect order only; receipt reuse never weakens the complete acceptance boundary.", evidence := (cons "FoundrySpecification::requirement" (nil String))}) (cons (record Obligation {index := 21, standard := "SPDX MIT OR Apache-2.0", subject := "Licensing", text := "Foundry and its model are offered under MIT OR Apache-2.0.", evidence := (cons "ForgeKernel::application" (nil String))}) (nil Obligation))))))))))))))))))))))) } definition{ diff --git a/app/src/Design.lex.tex b/app/src/Design.lex.tex index 3190d78f..89ab1546 100644 --- a/app/src/Design.lex.tex +++ b/app/src/Design.lex.tex @@ -202,6 +202,20 @@ body: (record Foundation.Arch::SystemProcess {owner := "Architecture::componentStitchRelay"}) } +definition{ + name: processPrismIdInFoundryKernelGuest, + parameters: [], + result: Foundation.Arch::SystemProcess, + body: (record Foundation.Arch::SystemProcess {owner := "Architecture::componentFoundryKernelGuest"}) +} + +definition{ + name: processPrismIdInDeviceStore, + parameters: [], + result: Foundation.Arch::SystemProcess, + body: (record Foundation.Arch::SystemProcess {owner := "Architecture::componentDeviceStore"}) +} + definition{ name: processShowHome, parameters: [], @@ -521,7 +535,7 @@ name: viewUmlComponents, parameters: [], result: Foundation.Arch::DesignView, - body: (record Foundation.Arch::DesignView {title := "Components of Prism AI Foundry", viewpoint := "Architecture::viewpointAppVisitorIntegrityOfPublishedApps", diagram := (ctor Foundation.Arch::DesignDiagram.umlComponent)}) + body: (record Foundation.Arch::DesignView {title := "Components of Prism Foundry", viewpoint := "Architecture::viewpointAppVisitorIntegrityOfPublishedApps", diagram := (ctor Foundation.Arch::DesignDiagram.umlComponent)}) } definition{ @@ -1620,301 +1634,329 @@ name: msgIdeaToAProvedApp28, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 28, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowHome"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 28, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processPrismIdInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp29, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 29, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowHome"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 29, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processPrismIdInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp30, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 30, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processIdeaRoutingInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 30, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processPrismIdInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp31, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 31, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processIdeaRoutingInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 31, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processPrismIdInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp32, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 32, source := "Architecture::componentStudio", target := "Architecture::componentModelInPrism", process := "Design::processIdeaRoutingInModelInPrism"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 32, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowHome"}) } definition{ name: msgIdeaToAProvedApp33, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 33, source := "Architecture::componentModelInPrism", target := "Architecture::componentStudio", process := "Design::processIdeaRoutingInModelInPrism"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 33, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowHome"}) } definition{ name: msgIdeaToAProvedApp34, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 34, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowChat"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 34, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processIdeaRoutingInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp35, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 35, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowChat"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 35, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processIdeaRoutingInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp36, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 36, source := "Architecture::componentStudio", target := "Architecture::componentPrismBuilder", process := "Design::processFullModelExtrapolationInPrismBuilder"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 36, source := "Architecture::componentStudio", target := "Architecture::componentModelInPrism", process := "Design::processIdeaRoutingInModelInPrism"}) } definition{ name: msgIdeaToAProvedApp37, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 37, source := "Architecture::componentPrismBuilder", target := "Architecture::componentStudio", process := "Design::processFullModelExtrapolationInPrismBuilder"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 37, source := "Architecture::componentModelInPrism", target := "Architecture::componentStudio", process := "Design::processIdeaRoutingInModelInPrism"}) } definition{ name: msgIdeaToAProvedApp38, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 38, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processCanonicalModelInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 38, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowChat"}) } definition{ name: msgIdeaToAProvedApp39, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 39, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processCanonicalModelInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 39, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowChat"}) } definition{ name: msgIdeaToAProvedApp40, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 40, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processFeatureCompositionInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 40, source := "Architecture::componentStudio", target := "Architecture::componentPrismBuilder", process := "Design::processFullModelExtrapolationInPrismBuilder"}) } definition{ name: msgIdeaToAProvedApp41, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 41, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processFeatureCompositionInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 41, source := "Architecture::componentPrismBuilder", target := "Architecture::componentStudio", process := "Design::processFullModelExtrapolationInPrismBuilder"}) } definition{ name: msgIdeaToAProvedApp42, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 42, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processBuildPhaseInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 42, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processCanonicalModelInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp43, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 43, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processBuildPhaseInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 43, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processCanonicalModelInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp44, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 44, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processExperienceRulesInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 44, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processFeatureCompositionInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp45, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 45, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processExperienceRulesInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 45, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processFeatureCompositionInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp46, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 46, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processVersionsAndPreviewInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 46, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processBuildPhaseInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp47, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 47, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processVersionsAndPreviewInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 47, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processBuildPhaseInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp48, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 48, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processVersionsAndPreviewInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 48, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processExperienceRulesInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp49, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 49, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processVersionsAndPreviewInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 49, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processExperienceRulesInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp50, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 50, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowPreview"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 50, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processVersionsAndPreviewInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp51, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 51, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowPreview"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 51, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processVersionsAndPreviewInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp52, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 52, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processStatefulAppsInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 52, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processVersionsAndPreviewInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp53, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 53, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processStatefulAppsInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 53, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processVersionsAndPreviewInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp54, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 54, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processStatefulAppsInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 54, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowPreview"}) } definition{ name: msgIdeaToAProvedApp55, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 55, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processStatefulAppsInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 55, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowPreview"}) } definition{ name: msgIdeaToAProvedApp56, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 56, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processEventAdmissionInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 56, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processStatefulAppsInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp57, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 57, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processEventAdmissionInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 57, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processStatefulAppsInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp58, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 58, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processEventAdmissionInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 58, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processStatefulAppsInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp59, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 59, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processEventAdmissionInDeviceStore"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 59, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processStatefulAppsInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp60, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 60, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processBuildsInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 60, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processEventAdmissionInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp61, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 61, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processBuildsInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 61, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processEventAdmissionInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp62, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 62, source := "Architecture::componentStudio", target := "Architecture::componentOriginKernelWorker", process := "Design::processBuildsInOriginKernelWorker"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 62, source := "Architecture::componentStudio", target := "Architecture::componentDeviceStore", process := "Design::processEventAdmissionInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp63, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 63, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processExperienceBudgetsInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 63, source := "Architecture::componentDeviceStore", target := "Architecture::componentStudio", process := "Design::processEventAdmissionInDeviceStore"}) } definition{ name: msgIdeaToAProvedApp64, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 64, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processExperienceBudgetsInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 64, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processBuildsInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp65, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 65, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowProofStatus"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 65, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processBuildsInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp66, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 66, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowProofStatus"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 66, source := "Architecture::componentStudio", target := "Architecture::componentOriginKernelWorker", process := "Design::processBuildsInOriginKernelWorker"}) } definition{ name: msgIdeaToAProvedApp67, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 67, source := "Architecture::componentStudio", target := "Architecture::componentLeanChecker", process := "Design::processProofInLeanChecker"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 67, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processExperienceBudgetsInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp68, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 68, source := "Architecture::componentLeanChecker", target := "Architecture::componentStudio", process := "Design::processProofInLeanChecker"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 68, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processExperienceBudgetsInFoundryKernelGuest"}) } definition{ name: msgIdeaToAProvedApp69, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 69, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processProofInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 69, source := "Architecture::componentBrowser", target := "Architecture::componentStudio", process := "Design::processShowProofStatus"}) } definition{ name: msgIdeaToAProvedApp70, parameters: [], result: Foundation.Arch::UmlMessage, - body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 70, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processProofInFoundryKernelGuest"}) + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 70, source := "Architecture::componentStudio", target := "Architecture::componentBrowser", process := "Design::processShowProofStatus"}) +} + +definition{ + name: msgIdeaToAProvedApp71, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 71, source := "Architecture::componentStudio", target := "Architecture::componentLeanChecker", process := "Design::processProofInLeanChecker"}) +} + +definition{ + name: msgIdeaToAProvedApp72, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 72, source := "Architecture::componentLeanChecker", target := "Architecture::componentStudio", process := "Design::processProofInLeanChecker"}) +} + +definition{ + name: msgIdeaToAProvedApp73, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.synchronous), order := 73, source := "Architecture::componentStudio", target := "Architecture::componentFoundryKernelGuest", process := "Design::processProofInFoundryKernelGuest"}) +} + +definition{ + name: msgIdeaToAProvedApp74, + parameters: [], + result: Foundation.Arch::UmlMessage, + body: (record Foundation.Arch::UmlMessage {view := "Design::viewUmlIdeaToAProvedApp", kind := (ctor Foundation.Arch::UmlMessageKind.reply), order := 74, source := "Architecture::componentFoundryKernelGuest", target := "Architecture::componentStudio", process := "Design::processProofInFoundryKernelGuest"}) } definition{ diff --git a/app/src/Features.lex.tex b/app/src/Features.lex.tex index da38cec4..f89e6f33 100644 --- a/app/src/Features.lex.tex +++ b/app/src/Features.lex.tex @@ -25,6 +25,8 @@ \importmodule{VersionPreviewProtocol} \importmodule{WorkOwnership} \importmodule{WorkProtocol} +\importmodule{Workspace} +\importmodule{WorkspaceProofs} \importmodule{Architecture} \importmodule{Foundation.Arch} \title{feature} @@ -1338,6 +1340,27 @@ body: "crates/conformance/tests/kernel_owner_handoff.rs::kernel_owner_handoff_fa_75" } +definition{ + name: acceptWorkspaceProofsWorkspaceWordsOwnerOpens, + parameters: [], + result: String, + body: "WorkspaceProofs::workspaceWords_ownerOpens" +} + +definition{ + name: acceptWorkspaceProofsWorkspaceWordsAnotherIdRefused, + parameters: [], + result: String, + body: "WorkspaceProofs::workspaceWords_anotherIdRefused" +} + +definition{ + name: acceptWorkspaceProofsWorkspaceWordsTamperedRecordRefused, + parameters: [], + result: String, + body: "WorkspaceProofs::workspaceWords_tamperedRecordRefused" +} + definition{ name: testFA88, parameters: [], @@ -1345,6 +1368,13 @@ body: "crates/conformance/tests/prism_id.rs::prism_id_fa_88" } +definition{ + name: testFA91, + parameters: [], + result: String, + body: "crates/conformance/tests/in_tab_kernel_verdict.rs::private_workspace_fa_91" +} + definition{ name: testFA61, parameters: [], @@ -1643,7 +1673,7 @@ name: featurePrismId, parameters: [], result: Foundation.Arch::Feature, - body: (record Foundation.Arch::Feature {statement := "Prism id (FA-88): The frame keeps one Prism id per visitor, stitch's, made on first touch with no sign-in; a session verifies only for its app, an active device and its time, and linking, removal and recovery are quiet panel actions over stitch's relay.", calls := (cons "FoundrySpecification::prismIdBoundary" (nil String)), acceptance := (cons "Features::testFA88" (nil String))}) + body: (record Foundation.Arch::Feature {statement := "Prism id (FA-88, FA-91): The frame keeps one Prism id per visitor, stitch's, made on first touch with no sign-in; a session verifies only for its app, an active device and its time, and linking, removal and recovery are quiet panel actions over stitch's relay; the kernel opens a private workspace only for that id and names every refusal.", calls := (cons "FoundrySpecification::prismIdBoundary" (cons "Workspace::dispatchWorkspace" (nil String))), acceptance := (cons "Features::acceptWorkspaceProofsWorkspaceWordsOwnerOpens" (cons "Features::acceptWorkspaceProofsWorkspaceWordsAnotherIdRefused" (cons "Features::acceptWorkspaceProofsWorkspaceWordsTamperedRecordRefused" (cons "Features::testFA88" (cons "Features::testFA91" (nil String))))))}) } definition{ @@ -1671,7 +1701,7 @@ name: screenStudioShell, parameters: [], result: Foundation.Arch::Feature, - body: (record Foundation.Arch::Feature {statement := "Studio shell screen, for the app builder: Foundry opens at once in the tab: the sidebar, the title bar and the Prism frame, with no sign-in and the shell served from its verified closure.", calls := (cons "Features::featureShellIntegrity" (cons "Features::featureWindowsAndTools" (cons "Features::featureHostBoundary" (cons "Features::featurePrivateTelemetry" (cons "Features::featureProjectStore" (cons "Features::featureChat" (cons "Features::featureLibrariesAndSettings" (cons "Features::featureOwnLanguageAndReasoning" (cons "Features::featureReleaseIntegration" (cons "Features::featureEffectGate" (cons "Features::featurePrismId" (nil String)))))))))))), acceptance := (cons "Features::acceptStudioShellBudget" (cons "Features::featureShellIntegrity" (cons "Features::featureWindowsAndTools" (cons "Features::featureHostBoundary" (cons "Features::featurePrivateTelemetry" (cons "Features::featureProjectStore" (cons "Features::featureChat" (cons "Features::featureLibrariesAndSettings" (cons "Features::featureOwnLanguageAndReasoning" (cons "Features::featureReleaseIntegration" (cons "Features::featureEffectGate" (cons "Features::featurePrismId" (nil String)))))))))))))}) + body: (record Foundation.Arch::Feature {statement := "Studio shell screen, for the app builder: Foundry opens at once in the tab: the sidebar, with Search (a centred palette over the apps and chats in memory, Ctrl or Cmd K) under Home, More for the items the visitor tucks away (Edit sidebar) and the Prism frame's Prism ID panel at its foot, and the title bar, with no sign-in and the shell served from its verified closure.", calls := (cons "Features::featureShellIntegrity" (cons "Features::featureWindowsAndTools" (cons "Features::featureHostBoundary" (cons "Features::featurePrivateTelemetry" (cons "Features::featureProjectStore" (cons "Features::featureChat" (cons "Features::featureLibrariesAndSettings" (cons "Features::featureOwnLanguageAndReasoning" (cons "Features::featureReleaseIntegration" (cons "Features::featureEffectGate" (cons "Features::featurePrismId" (nil String)))))))))))), acceptance := (cons "Features::acceptStudioShellBudget" (cons "Features::featureShellIntegrity" (cons "Features::featureWindowsAndTools" (cons "Features::featureHostBoundary" (cons "Features::featurePrivateTelemetry" (cons "Features::featureProjectStore" (cons "Features::featureChat" (cons "Features::featureLibrariesAndSettings" (cons "Features::featureOwnLanguageAndReasoning" (cons "Features::featureReleaseIntegration" (cons "Features::featureEffectGate" (cons "Features::featurePrismId" (nil String)))))))))))))}) } definition{ diff --git a/app/src/ForgeKernel.lex.tex b/app/src/ForgeKernel.lex.tex index 8fb84805..06733398 100644 --- a/app/src/ForgeKernel.lex.tex +++ b/app/src/ForgeKernel.lex.tex @@ -15,6 +15,7 @@ \importmodule{VersionPreviewProtocol} \importmodule{InTabKernelProtocol} \importmodule{RuleJudge} +\importmodule{Workspace} \importmodule{FeatureComposition} \importmodule{CompositionProtocol} \importmodule{CompositionFixtures} @@ -637,7 +638,7 @@ } definition{ - name: dispatchApplication, + name: dispatchProtocols, parameters: [value : Bytes], result: Bytes, body: (if (prim equal (sliceOf value 0 5) 0x7265616420 : Bool) then (IdeaReader::readIdea (sliceOf value 5 (prim subtract (Foundation.Bytes::byteLength value) 5 : Nat))) else (if (prim equal (sliceOf value 0 8) 0x7072657669657720 : Bool) then (VersionPreviewProtocol::dispatchPreview (sliceOf value 8 (prim subtract (Foundation.Bytes::byteLength value) 8 : Nat))) else (if (prim equal (sliceOf value 0 6) 0x717565756520 : Bool) then (ChatQueueProtocol::dispatchQueue (sliceOf value 6 (prim subtract (Foundation.Bytes::byteLength value) 6 : Nat))) else (if (prim equal (sliceOf value 0 8) 0x70726f706f736520 : Bool) then (RoutingProtocol::dispatchRouting (sliceOf value 8 (prim subtract (Foundation.Bytes::byteLength value) 8 : Nat))) else (if (prim equal (sliceOf value 0 9) 0x696e74657261637420 : Bool) then (InteractionProtocol::dispatchInteraction (sliceOf value 9 (prim subtract (Foundation.Bytes::byteLength value) 9 : Nat))) else (if (prim equal (sliceOf value 0 6) 0x6576656e7420 : Bool) then (EventProtocol::dispatchEvent (sliceOf value 6 (prim subtract (Foundation.Bytes::byteLength value) 6 : Nat))) else (if (prim equal (sliceOf value 0 5) 0x776f726b20 : Bool) then (WorkProtocol::dispatchWork (sliceOf value 5 (prim subtract (Foundation.Bytes::byteLength value) 5 : Nat))) else (if (prim equal (sliceOf value 0 8) 0x636f6d706f736520 : Bool) then (CompositionProtocol::dispatchComposition (sliceOf value 8 (prim subtract (Foundation.Bytes::byteLength value) 8 : Nat))) else (if (64 (Foundation.Bytes::byteLength value)) then 0x696e76616c6964 else (let head : Nat := (fieldEnd value 0 (Foundation.Bytes::byteLength value)); (if (prim equal (sliceOf value 0 head) 0x67617465 : Bool) then (if (head (Foundation.Bytes::byteLength value)) then (match (decodeGate1 value (head + 1)) @@ -662,6 +663,14 @@ axioms: [Quot.sound, propext] } +definition{ + name: dispatchApplication, + parameters: [value : Bytes], + result: Bytes, + body: (if (prim equal (sliceOf value 0 10) 0x776f726b737061636520 : Bool) then (Workspace::dispatchWorkspace (sliceOf value 10 (prim subtract (Foundation.Bytes::byteLength value) 10 : Nat))) else (dispatchProtocols value)), + axioms: [Quot.sound, propext] +} + definition{ name: dispatch, parameters: [value : Bytes], @@ -789,11 +798,18 @@ body: (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303031303030303030303730303030303030313030303030303032303030303030303330303030303030343030303030303035303030303030303630303030303030373030303030303038303030303030, response := 0x6f6b2030313030303030303031303030303030303130303030303030373030303030303031303030303030303230303030303030333030303030303034303030303030303530303030303030363030303030303037303030303030303830303030303030313030303030303032303030303030303330303030303030343030303030303035303030303030303630303030303030373030303030303038303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303032303030303030303730303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030, response := 0x6f6b2030313030303030303034303030303030303130303030303030373030303030303031303030303030303230303030303030333030303030303034303030303030303530303030303030363030303030303037303030303030303830303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030303130303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303032303030303030303730303030303030393030303030303061303030303030306230303030303030633030303030303064303030303030306530303030303030663030303030303130303030303030, response := 0x6f6b2030313030303030303034303030303030303130303030303030373030303030303031303030303030303230303030303030333030303030303034303030303030303530303030303030363030303030303037303030303030303830303030303030393030303030303061303030303030306230303030303030633030303030303064303030303030306530303030303030663030303030303130303030303030303130303030303030393030303030303061303030303030306230303030303030633030303030303064303030303030306530303030303030663030303030303130303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303033303030303030303730303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030, response := 0x6f6b2030313030303030303034303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303130303030303030313030303030303032303030303030303330303030303030343030303030303035303030303030303630303030303030373030303030303038303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303034303030303030303730303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030, response := 0x6f6b2030313030303030303034303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303130303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303035303030303030303830303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030, response := 0x6f6b2030313030303030303034303030303030303130303030303030383030303030303031303030303030303230303030303030333030303030303034303030303030303530303030303030363030303030303037303030303030303830303030303030393030303030303061303030303030306230303030303030633030303030303064303030303030306530303030303030663030303030303130303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303031303030303030303830303030303030313030303030303032303030303030303330303030303030343030303030303035303030303030303630303030303030373030303030303038303030303030, response := 0x70726576696577416c72656164794f776e6564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303032303030303030303730303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030, response := 0x70726576696577496e616374697665}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303033303030303030303730303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030, response := 0x70726576696577496e616374697665}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303035303030303030303830303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030, response := 0x70726576696577496e616374697665}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303032303030303030303830303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030, response := 0x7072657669657757726f6e674f776e6572}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303033303030303030303830303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030, response := 0x7072657669657757726f6e674f776e6572}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303034303030303030303830303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030, response := 0x7072657669657757726f6e674f776e6572}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030333030303030303035303030303030303730303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030, response := 0x7072657669657757726f6e674f776e6572}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x70726576696577203031303030303030303330303030303030313030303030303037303030303030303130303030303030323030303030303033303030303030303430303030303030353030303030303036303030303030303730303030303030383030303030303039303030303030306130303030303030623030303030303063303030303030306430303030303030653030303030303066303030303030313030303030303030323030303030303032303030303030303730303030303031313030303030303132303030303030313330303030303031343030303030303135303030303030313630303030303031373030303030303138303030303030, response := 0x707265766965775265766973696f6e436f6e666c696374}) (previewAcceptanceTail)))))))))))))))) } +definition{ + name: workspaceAcceptance, + parameters: [], + result: (List Foundation.View.Text.V1.Model::AcceptanceVector), + body: (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b737061636520303130303030303030303030303030303030303030303030303130303030303030313030303030303031303030303030, response := 0x6f6b}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b737061636520303130303030303030303030303030303031303030303030303130303030303030313030303030303031303030303030, response := 0x776f726b737061636544657669636552656d6f766564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b737061636520303130303030303030303030303030303030303030303030303030303030303030313030303030303031303030303030, response := 0x776f726b737061636553657373696f6e45787069726564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b737061636520303130303030303030303030303030303030303030303030303130303030303030303030303030303031303030303030, response := 0x776f726b73706163654e6f744f776e6572}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b737061636520303130303030303030303030303030303030303030303030303130303030303030313030303030303030303030303030, response := 0x776f726b73706163654b65795374616c65}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303031303030303030303130303030303030313030303030303031303030303030, response := 0x6f6b}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303031303030303030303030303030303030313030303030303031303030303030, response := 0x776f726b7370616365436c6f736564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303031303030303030303130303030303030303030303030303031303030303030, response := 0x7265636f726454616d7065726564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303031303030303030303130303030303030313030303030303030303030303030, response := 0x7265636f72644d6973706c61636564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303032303030303030303130303030303030313030303030303031303030303030, response := 0x6f6b}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303032303030303030303130303030303030303030303030303031303030303030, response := 0x7265636f7264556e7365616c6564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303032303030303030303130303030303030313030303030303030303030303030, response := 0x776f726b737061636551756f74614578636565646564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b7370616365203031303030303030303330303030303030313030303030303030303030303030, response := 0x6f6b}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b7370616365203031303030303030303330303030303030313030303030303031303030303030, response := 0x776f726b7370616365416c72656164794d6f766564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b7370616365203031303030303030303430303030303030313030303030303031303030303030, response := 0x6f6b}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b7370616365203031303030303030303430303030303030313030303030303030303030303030, response := 0x7365616c6564436f70794e6f74436f6d6d6974746564}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b737061636520303230303030303030303030303030303030303030303030303130303030303030313030303030303031303030303030, response := 0x6d616c666f726d6564576f726b737061636552657175657374}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b73706163652030313030303030303033303030303030303130303030303030303030303030303030303030303030, response := 0x6d616c666f726d6564576f726b737061636552657175657374}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x776f726b7370616365203031303030303030303930303030303030313030303030303031303030303030, response := 0x6d616c666f726d6564576f726b737061636552657175657374}) (previewAcceptance)))))))))))))))))))) +} + definition{ name: ruleAcceptance, parameters: [], result: (List Foundation.View.Text.V1.Model::AcceptanceVector), - body: (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030353030303030303031303030303030, response := 0x6f6b20303130303030303030303030303030303030303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030353030303030303030303030303030, response := 0x6f6b20303130303030303030323030303030303031303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030323030303030303030303030303030, response := 0x6f6b20303130303030303030313030303030303032303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030333030303030303030303030303030, response := 0x6f6b20303130303030303030313030303030303032303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303031653030303030303030303030303030, response := 0x6f75744f66426f756e6473}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c65203031303030303030303130303030303030303030303030303039303030303030303730303030303030303030303030303034303030303030, response := 0x6f6b20303130303030303030373030303030303030303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030323030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030353030303030303031303030303030, response := 0x6d616c666f726d656452756c6552657175657374}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c6520303130303030303030323030303030303030303030303030313830303030303030303030303030303031303030303030303130303030303030313030303030303031303030303030303030303030303030353030303030303034303030303030303130303030303030353030303030303031303030303030, response := 0x6d616c666f726d656452756c6552657175657374}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c6520303130303030303030323030303030303030303030303030313830303030303030303030303030303031303030303030303130303030303030323030303030303031303030303030303030303030303030313030303030303034303030303030303130303030303030313030303030303032303030303030303030303030303030323030303030303033303030303030303530303030303030313030303030303030303030303030, response := 0x6d616c666f726d656452756c6552657175657374}) (previewAcceptance)))))))))) + body: (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030353030303030303031303030303030, response := 0x6f6b20303130303030303030303030303030303030303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030353030303030303030303030303030, response := 0x6f6b20303130303030303030323030303030303031303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030323030303030303030303030303030, response := 0x6f6b20303130303030303030313030303030303032303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030333030303030303030303030303030, response := 0x6f6b20303130303030303030313030303030303032303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030313030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303031653030303030303030303030303030, response := 0x6f75744f66426f756e6473}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c65203031303030303030303130303030303030303030303030303039303030303030303730303030303030303030303030303034303030303030, response := 0x6f6b20303130303030303030373030303030303030303030303030}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c652030323030303030303032303030303030303030303030303031383030303030303030303030303030303130303030303030313030303030303032303030303030303130303030303030303030303030303031303030303030303430303030303030313030303030303031303030303030303230303030303030303030303030303032303030303030303330303030303030353030303030303031303030303030, response := 0x6d616c666f726d656452756c6552657175657374}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c6520303130303030303030323030303030303030303030303030313830303030303030303030303030303031303030303030303130303030303030313030303030303031303030303030303030303030303030353030303030303034303030303030303130303030303030353030303030303031303030303030, response := 0x6d616c666f726d656452756c6552657175657374}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x72756c6520303130303030303030323030303030303030303030303030313830303030303030303030303030303031303030303030303130303030303030323030303030303031303030303030303030303030303030313030303030303034303030303030303130303030303030313030303030303032303030303030303030303030303030323030303030303033303030303030303530303030303030313030303030303030303030303030, response := 0x6d616c666f726d656452756c6552657175657374}) (workspaceAcceptance)))))))))) } definition{ diff --git a/app/src/Quality.lex.tex b/app/src/Quality.lex.tex index 45a18d9b..8e39883c 100644 --- a/app/src/Quality.lex.tex +++ b/app/src/Quality.lex.tex @@ -753,7 +753,7 @@ name: characteristicNames, parameters: [], result: (List Named), - body: (cons (record Named {index := 0, name := "Compatibility", text := "Compatibility, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 1, name := "Flexibility", text := "Flexibility, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 2, name := "Functional suitability", text := "Functional suitability, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 3, name := "Interaction capability", text := "Interaction capability, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 4, name := "Maintainability", text := "Maintainability, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 5, name := "Performance efficiency", text := "Performance efficiency, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 6, name := "Reliability", text := "Reliability, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 7, name := "Safety", text := "Safety, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (cons (record Named {index := 8, name := "Security", text := "Security, as ISO/IEC 25010:2023 defines it, for Prism AI Foundry."}) (nil Named)))))))))) + body: (cons (record Named {index := 0, name := "Compatibility", text := "Compatibility, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 1, name := "Flexibility", text := "Flexibility, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 2, name := "Functional suitability", text := "Functional suitability, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 3, name := "Interaction capability", text := "Interaction capability, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 4, name := "Maintainability", text := "Maintainability, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 5, name := "Performance efficiency", text := "Performance efficiency, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 6, name := "Reliability", text := "Reliability, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 7, name := "Safety", text := "Safety, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (cons (record Named {index := 8, name := "Security", text := "Security, as ISO/IEC 25010:2023 defines it, for Prism Foundry."}) (nil Named)))))))))) } definition{ diff --git a/app/src/Security.lex.tex b/app/src/Security.lex.tex index 01acefb5..b369fed6 100644 --- a/app/src/Security.lex.tex +++ b/app/src/Security.lex.tex @@ -334,7 +334,7 @@ name: controlSet, parameters: [], result: Production.ThreatModel::ControlSet, - body: (record Production.ThreatModel::ControlSet {title := "Prism AI Foundry security controls", text := "Prism AI Foundry asks Prism R4 before every chat turn and its kernel guest before every phase change and every effect. Turn an idea typed in a browser tab into a full Prism model, proved by Lean and shared as one self-verifying holo, with no sign-in and no model outside Foundry.", version := "0.1.0", lastModified := "2026-11-14T00:00:00Z"}) + body: (record Production.ThreatModel::ControlSet {title := "Prism Foundry security controls", text := "Prism Foundry asks Prism R4 before every chat turn and its kernel guest before every phase change and every effect. Turn an idea typed in a browser tab into a full Prism model, proved by Lean and shared as one self-verifying holo, with no sign-in and no model outside Foundry.", version := "0.1.0", lastModified := "2026-11-14T00:00:00Z"}) } definition{ diff --git a/app/src/Workspace.lex.tex b/app/src/Workspace.lex.tex new file mode 100644 index 00000000..2fa7c21e --- /dev/null +++ b/app/src/Workspace.lex.tex @@ -0,0 +1,72 @@ +\begin{lexlean}{Workspace} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{WorkProtocol} +\importmodule{CompositionProtocol} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: openCode, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + result: Nat, + body: (if (removed =? 1) then 1 else (if (not (live =? 1)) then 2 else (if (not (owner =? 1)) then 3 else (if (not (key =? 1)) then 4 else 0)))) +} + +definition{ + name: readCode, + parameters: [opened : Nat, authentic : Nat, bound : Nat], + result: Nat, + body: (if (not (opened =? 1)) then 5 else (if (not (authentic =? 1)) then 6 else (if (not (bound =? 1)) then 7 else 0))) +} + +definition{ + name: storeCode, + parameters: [opened : Nat, sealed : Nat, within : Nat], + result: Nat, + body: (if (not (opened =? 1)) then 5 else (if (not (sealed =? 1)) then 8 else (if (not (within =? 1)) then 9 else 0))) +} + +definition{ + name: moveCode, + parameters: [opened : Nat, moved : Nat], + result: Nat, + body: (if (not (opened =? 1)) then 5 else (if (moved =? 1) then 10 else 0)) +} + +definition{ + name: removeCode, + parameters: [opened : Nat, committed : Nat], + result: Nat, + body: (if (not (opened =? 1)) then 5 else (if (not (committed =? 1)) then 11 else 0)) +} + +definition{ + name: workspaceEncode, + parameters: [code : Nat], + result: Bytes, + body: (if (code =? 0) then 0x6f6b else (if (code =? 1) then 0x776f726b737061636544657669636552656d6f766564 else (if (code =? 2) then 0x776f726b737061636553657373696f6e45787069726564 else (if (code =? 3) then 0x776f726b73706163654e6f744f776e6572 else (if (code =? 4) then 0x776f726b73706163654b65795374616c65 else (if (code =? 5) then 0x776f726b7370616365436c6f736564 else (if (code =? 6) then 0x7265636f726454616d7065726564 else (if (code =? 7) then 0x7265636f72644d6973706c61636564 else (if (code =? 8) then 0x7265636f7264556e7365616c6564 else (if (code =? 9) then 0x776f726b737061636551756f74614578636565646564 else (if (code =? 10) then 0x776f726b7370616365416c72656164794d6f766564 else (if (code =? 11) then 0x7365616c6564436f70794e6f74436f6d6d6974746564 else 0x6d616c666f726d6564576f726b737061636552657175657374)))))))))))) +} + +definition{ + name: workspaceAnswer, + parameters: [words : (List Nat)], + result: Bytes, + body: (if ((WorkProtocol::word words 0) =? 1) then (if (((WorkProtocol::word words 1) =? 0) && ((prim length words : Nat) =? 6)) then (workspaceEncode (openCode (WorkProtocol::word words 2) (WorkProtocol::word words 3) (WorkProtocol::word words 4) (WorkProtocol::word words 5))) else (if (((WorkProtocol::word words 1) =? 1) && ((prim length words : Nat) =? 5)) then (workspaceEncode (readCode (WorkProtocol::word words 2) (WorkProtocol::word words 3) (WorkProtocol::word words 4))) else (if (((WorkProtocol::word words 1) =? 2) && ((prim length words : Nat) =? 5)) then (workspaceEncode (storeCode (WorkProtocol::word words 2) (WorkProtocol::word words 3) (WorkProtocol::word words 4))) else (if (((WorkProtocol::word words 1) =? 3) && ((prim length words : Nat) =? 4)) then (workspaceEncode (moveCode (WorkProtocol::word words 2) (WorkProtocol::word words 3))) else (if (((WorkProtocol::word words 1) =? 4) && ((prim length words : Nat) =? 4)) then (workspaceEncode (removeCode (WorkProtocol::word words 2) (WorkProtocol::word words 3))) else 0x6d616c666f726d6564576f726b737061636552657175657374))))) else 0x6d616c666f726d6564576f726b737061636552657175657374) +} + +definition{ + name: dispatchWorkspace, + parameters: [bytes : Bytes], + result: Bytes, + body: (if (128 (prim length bytes : Nat)) then 0x776f726b737061636552657175657374546f6f4c61726765 else (let decoded : CompositionProtocol::DecodedWords := (CompositionProtocol::decodeWords bytes 0 16 (nil Nat)); (if (project decoded valid) then (workspaceAnswer (project decoded value)) else 0x6d616c666f726d6564576f726b737061636552657175657374))), + axioms: [Quot.sound, propext] +} + +definition{ + name: workspaceWireBoundary, + parameters: [], + result: String, + body: "Requests use workspace-space then lowercase little-endian uint32 hex words: version 1; the kind (0 open, 1 read a record, 2 store a record, 3 move the workspace kept before an id, 4 remove its plain copy); then one word per fact, 1 for yes and any other value for no. Open: this device was removed, the session is live, the id owns the workspace, the device holds the current boundary key. Read: the workspace is open, the sealed bytes are authentic, the record is the one its place names. Store: open, sealed, within quota. Move: open, already moved. Remove: open, the sealed copy is committed. The answer is ok or the first refusal: workspaceDeviceRemoved, workspaceSessionExpired, workspaceNotOwner, workspaceKeyStale, workspaceClosed, recordTampered, recordMisplaced, recordUnsealed, workspaceQuotaExceeded, workspaceAlreadyMoved, sealedCopyNotCommitted. Any other shape is malformedWorkspaceRequest, and more than 128 bytes is workspaceRequestTooLarge." +} +\end{semanticmodule} +\end{lexlean} diff --git a/app/src/WorkspaceProofs.lex.tex b/app/src/WorkspaceProofs.lex.tex new file mode 100644 index 00000000..8fea7318 --- /dev/null +++ b/app/src/WorkspaceProofs.lex.tex @@ -0,0 +1,279 @@ +\begin{lexlean}{WorkspaceProofs} +\useglossary{lexlean.std.bool@1.2.0} +\useglossary{lexlean.std.nat@1.2.0} +\importmodule{Workspace} +\title{Boolean} +\begin{semanticmodule} +definition{ + name: breaksOpensOnlyForOwner, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + result: Bool, + body: ((not (owner =? 1)) && ((Workspace::openCode removed live owner key) =? 0)) +} + +theorem{ + name: opensOnlyForOwnerHolds, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + statement: ((breaksOpensOnlyForOwner removed live owner key) = false), + proof: linear_arithmetic{definitions: [Workspace::openCode, breaksOpensOnlyForOwner]}, + axioms: [Classical.choice, Quot.sound, propext] +} + +definition{ + name: breaksOpensOnlyWithCurrentKey, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + result: Bool, + body: ((not (key =? 1)) && ((Workspace::openCode removed live owner key) =? 0)) +} + +theorem{ + name: opensOnlyWithCurrentKeyHolds, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + statement: ((breaksOpensOnlyWithCurrentKey removed live owner key) = false), + proof: linear_arithmetic{definitions: [Workspace::openCode, breaksOpensOnlyWithCurrentKey]}, + axioms: [Classical.choice, Quot.sound, propext] +} + +definition{ + name: breaksOpensOnlyWithLiveSession, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + result: Bool, + body: ((not (live =? 1)) && ((Workspace::openCode removed live owner key) =? 0)) +} + +theorem{ + name: opensOnlyWithLiveSessionHolds, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + statement: ((breaksOpensOnlyWithLiveSession removed live owner key) = false), + proof: linear_arithmetic{definitions: [Workspace::openCode, breaksOpensOnlyWithLiveSession]}, + axioms: [Classical.choice, Quot.sound, propext] +} + +definition{ + name: breaksRemovedDeviceNeverOpens, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + result: Bool, + body: ((removed =? 1) && ((Workspace::openCode removed live owner key) =? 0)) +} + +theorem{ + name: removedDeviceNeverOpensHolds, + parameters: [removed : Nat, live : Nat, owner : Nat, key : Nat], + statement: ((breaksRemovedDeviceNeverOpens removed live owner key) = false), + proof: linear_arithmetic{definitions: [Workspace::openCode, breaksRemovedDeviceNeverOpens]}, + axioms: [Quot.sound, propext] +} + +definition{ + name: breaksReadNeedsAuthentic, + parameters: [opened : Nat, authentic : Nat, bound : Nat], + result: Bool, + body: ((((not (opened =? 1)) || (not (authentic =? 1))) || (not (bound =? 1))) && ((Workspace::readCode opened authentic bound) =? 0)) +} + +theorem{ + name: readNeedsAuthenticHolds, + parameters: [opened : Nat, authentic : Nat, bound : Nat], + statement: ((breaksReadNeedsAuthentic opened authentic bound) = false), + proof: linear_arithmetic{definitions: [Workspace::readCode, breaksReadNeedsAuthentic]}, + axioms: [Classical.choice, Quot.sound, propext] +} + +definition{ + name: breaksStoreNeedsSealed, + parameters: [opened : Nat, sealed : Nat, within : Nat], + result: Bool, + body: ((((not (opened =? 1)) || (not (sealed =? 1))) || (not (within =? 1))) && ((Workspace::storeCode opened sealed within) =? 0)) +} + +theorem{ + name: storeNeedsSealedHolds, + parameters: [opened : Nat, sealed : Nat, within : Nat], + statement: ((breaksStoreNeedsSealed opened sealed within) = false), + proof: linear_arithmetic{definitions: [Workspace::storeCode, breaksStoreNeedsSealed]}, + axioms: [Classical.choice, Quot.sound, propext] +} + +definition{ + name: breaksMoveAtMostOnce, + parameters: [opened : Nat, moved : Nat], + result: Bool, + body: ((moved =? 1) && ((Workspace::moveCode opened moved) =? 0)) +} + +theorem{ + name: moveAtMostOnceHolds, + parameters: [opened : Nat, moved : Nat], + statement: ((breaksMoveAtMostOnce opened moved) = false), + proof: linear_arithmetic{definitions: [Workspace::moveCode, breaksMoveAtMostOnce]}, + axioms: [Quot.sound, propext] +} + +definition{ + name: breaksPlainRemovedAfterCommit, + parameters: [opened : Nat, committed : Nat], + result: Bool, + body: ((not (committed =? 1)) && ((Workspace::removeCode opened committed) =? 0)) +} + +theorem{ + name: plainRemovedAfterCommitHolds, + parameters: [opened : Nat, committed : Nat], + statement: ((breaksPlainRemovedAfterCommit opened committed) = false), + proof: linear_arithmetic{definitions: [Workspace::removeCode, breaksPlainRemovedAfterCommit]}, + axioms: [Classical.choice, Quot.sound, propext] +} + +theorem{ + name: workspaceWords_ownerOpens, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 0 (cons 0 (cons 1 (cons 1 (cons 1 (nil Nat)))))))) = 0x6f6b), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_removedDeviceRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 0 (cons 1 (cons 1 (cons 1 (cons 1 (nil Nat)))))))) = 0x776f726b737061636544657669636552656d6f766564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_expiredSessionRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 0 (cons 0 (cons 0 (cons 1 (cons 1 (nil Nat)))))))) = 0x776f726b737061636553657373696f6e45787069726564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_anotherIdRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 0 (cons 0 (cons 1 (cons 0 (cons 1 (nil Nat)))))))) = 0x776f726b73706163654e6f744f776e6572), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_staleKeyRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 0 (cons 0 (cons 1 (cons 1 (cons 0 (nil Nat)))))))) = 0x776f726b73706163654b65795374616c65), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_authenticRecordRead, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 1 (cons 1 (cons 1 (cons 1 (nil Nat))))))) = 0x6f6b), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_closedWorkspaceRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 1 (cons 0 (cons 1 (cons 1 (nil Nat))))))) = 0x776f726b7370616365436c6f736564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_tamperedRecordRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 1 (cons 1 (cons 0 (cons 1 (nil Nat))))))) = 0x7265636f726454616d7065726564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_misplacedRecordRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 1 (cons 1 (cons 1 (cons 0 (nil Nat))))))) = 0x7265636f72644d6973706c61636564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_sealedRecordStored, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 2 (cons 1 (cons 1 (cons 1 (nil Nat))))))) = 0x6f6b), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_unsealedRecordRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 2 (cons 1 (cons 0 (cons 1 (nil Nat))))))) = 0x7265636f7264556e7365616c6564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_overQuotaRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 2 (cons 1 (cons 1 (cons 0 (nil Nat))))))) = 0x776f726b737061636551756f74614578636565646564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_firstMoveAllowed, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 3 (cons 1 (cons 0 (nil Nat)))))) = 0x6f6b), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_secondMoveRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 3 (cons 1 (cons 1 (nil Nat)))))) = 0x776f726b7370616365416c72656164794d6f766564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_plainRemovedAfterCommit, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 4 (cons 1 (cons 1 (nil Nat)))))) = 0x6f6b), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_plainKeptBeforeCommit, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 4 (cons 1 (cons 0 (nil Nat)))))) = 0x7365616c6564436f70794e6f74436f6d6d6974746564), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_versionRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 2 (cons 0 (cons 0 (cons 1 (cons 1 (cons 1 (nil Nat)))))))) = 0x6d616c666f726d6564576f726b737061636552657175657374), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_trailingWordRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 3 (cons 1 (cons 0 (cons 0 (nil Nat))))))) = 0x6d616c666f726d6564576f726b737061636552657175657374), + proof: reflexivity{}, + axioms: [] +} + +theorem{ + name: workspaceWords_unknownKindRefused, + parameters: [], + statement: ((Workspace::workspaceAnswer (cons 1 (cons 9 (cons 1 (cons 1 (nil Nat)))))) = 0x6d616c666f726d6564576f726b737061636552657175657374), + proof: reflexivity{}, + axioms: [] +} +\end{semanticmodule} +\end{lexlean} diff --git a/crates/conformance/tests/in_tab_kernel_verdict.rs b/crates/conformance/tests/in_tab_kernel_verdict.rs index 24264614..37396fe9 100644 --- a/crates/conformance/tests/in_tab_kernel_verdict.rs +++ b/crates/conformance/tests/in_tab_kernel_verdict.rs @@ -53,3 +53,19 @@ fn rule_judge_fa_90() { assert_eq!(theorems, vectors); assert!(theorems >= 9); } + +/// `FA-91`: A private workspace opens only for the Prism id that owns it, on a device with a live session and its current boundary key; a record is read only when authentic and in place and stored only sealed; the workspace kept before an id moves in once; and Foundry's Prism kernel names every refusal +#[test] +fn private_workspace_fa_91() { + // Lean proves every workspaceWords theorem by evaluation (`just app`) and the kernel gate replays + // each as an acceptance vector in the compiled guest; this holds the two to each other and to dispatch. + let workspace = include_str!("../../../app/src/WorkspaceProofs.lex.tex"); + let kernel = include_str!("../../../app/src/ForgeKernel.lex.tex"); + assert!(kernel.contains("(Workspace::dispatchWorkspace (sliceOf value 10")); + let theorems = workspace.matches("name: workspaceWords_").count(); + assert_eq!( + theorems, + kernel.matches("request := 0x776f726b737061636520").count() + ); + assert!(theorems >= 19 && kernel.contains("(workspaceAcceptance))))")); +} diff --git a/features/suites/private-workspace.feature b/features/suites/private-workspace.feature new file mode 100644 index 00000000..06b97ff4 --- /dev/null +++ b/features/suites/private-workspace.feature @@ -0,0 +1,9 @@ +Feature: private-workspace + + @FA-91 @build + Scenario: A private workspace opens only for the Prism id that owns it, on a device with a live session and its current boundary key; a record is read only when authentic and in place and stored only sealed; the workspace kept before an id moves in once; and Foundry's Prism kernel names every refusal + Given the Workspace module in Foundry's Prism kernel, reached by the workspace request prefix + When the kernel is asked to open a workspace, read or store a record, move the workspace kept before an id, or remove its plain copy + Then it answers ok only for the owning id on a device with a live session and the current boundary key, for an authentic record in its place, for a sealed record within quota, for a first move, and for a removal after the sealed copy is committed + And every other request is refused by name, a removed device first, and a wrong version, a trailing word or an unknown kind is malformedWorkspaceRequest + And each answer is a theorem Lean proves by evaluation and an acceptance vector the compiled guest replays diff --git a/model/ids.toml b/model/ids.toml index b6939872..0c14870f 100644 --- a/model/ids.toml +++ b/model/ids.toml @@ -861,3 +861,9 @@ id = "FA-90" level = "build" suite = "rule-judge" statement = "A published app's answer is decided by the rule judge in Foundry's Prism kernel: the first rule whose conditions all hold decides, otherwise decides when none does, and a request outside the fields' bounds is refused" + +[[id]] +id = "FA-91" +level = "build" +suite = "private-workspace" +statement = "A private workspace opens only for the Prism id that owns it, on a device with a live session and its current boundary key; a record is read only when authentic and in place and stored only sealed; the workspace kept before an id moves in once; and Foundry's Prism kernel names every refusal" diff --git a/site/app.json b/site/app.json index f2441967..b0c6dcd3 100644 --- a/site/app.json +++ b/site/app.json @@ -2,7 +2,7 @@ "name": "Foundry kernel", "shortName": "Foundry", "live": "https://uor-foundation.github.io/foundry/app/", - "purpose": "Decide the next build phase of a Prism AI Foundry app, and whether an origin may use an effect. Send phase and event separated by a space, and it answers drafting, checked, proving, proved or published. Send gate, then origin, effect, whether a grant record exists, whether it grants and whether it denies, and it answers allow or deny. Anything else gets invalid request.", + "purpose": "Decide the next build phase of a Prism Foundry app, and whether an origin may use an effect. Send phase and event separated by a space, and it answers drafting, checked, proving, proved or published. Send gate, then origin, effect, whether a grant record exists, whether it grants and whether it denies, and it answers allow or deny. Anything else gets invalid request.", "inputLabel": "Request: phase event, or gate origin effect record granted denied", "placeholder": "drafting check", "submitLabel": "Decide", @@ -29,7 +29,7 @@ "proposition": { "name": "judge", "text": "judge request :=\n event is edit → drafting\n event is check and phase is drafting → checked\n event is approve and phase is checked → proving\n event is attest and phase is proving → proved\n event is fail and phase is proving → checked\n event is publish and phase is proved → published\n phase is drafting → drafting\n phase is checked → checked\n phase is proving → proving\n phase is proved → proved\n otherwise → published", - "plain": "Decide the next build phase of a Prism AI Foundry app from its current phase and the event that just happened." + "plain": "Decide the next build phase of a Prism Foundry app from its current phase and the event that just happened." }, "theorems": [ { diff --git a/studio/scripts/stamp_shell.py b/studio/scripts/stamp_shell.py index 72340a42..17430a9f 100644 --- a/studio/scripts/stamp_shell.py +++ b/studio/scripts/stamp_shell.py @@ -37,7 +37,7 @@ for name in ("package.json", "tailwind.config.ts", "index.html", "AI_RULES.md"): if (src / name).exists(): shutil.copy(src / name, dst / name) -# The product is Prism AI Foundry: the staged scaffold's words say so (the badge, the link); the vendored tree is untouched. +# The product is Prism Foundry: the staged scaffold's words say so (the badge, the link); the vendored tree is untouched. WORD = re.compile(r"\bDyad\b") for p in dst.rglob("*"): if p.is_file() and p.suffix in (".tsx", ".ts", ".md", ".html", ".json"): diff --git a/studio/shell/host.js b/studio/shell/host.js index 084f0e09..b6b1ca11 100644 --- a/studio/shell/host.js +++ b/studio/shell/host.js @@ -890,13 +890,6 @@ async function stepSpec(appId, way) { catch (e) { liveEditors.delete(appId); await refreshLive(appId); refuse(appId, null, e.message); throw e; } }); } -// What the user points at, said to the agent with the request, so "make this cheaper" has a "this". -function pointedNote(appId) { - const p = livePointed.get(appId); - if (!p) return ""; - const paths = Object.entries(p.edit).filter(([, v]) => Array.isArray(v)).map(([slot, v]) => `${slot} at ${JSON.stringify(v)}`).join("; "); - return `\n\n(The user is pointing at the ${p.kind} "${p.text}" on the screen${paths ? ": " + paths : ""}. To change it, write a