Repository navigation
Prove stateful apps in the tab: Lean's kernel judges the app's own terms - #230
Merged
Merged
Conversation
The last hosted step is gone. A stateful app's module is written as Lean kernel terms in the tab (prism.js moduleTerms): structures become nested Prod, guards become ite over Bool, and each theorem's proof applies a lemma studio/proof proved once (PrismLive.Tables: refused, left, right, outside, full, stale) or is by evaluation. The pinned Lean kernel in the worker judges them against the shipped library, and the Forge kernel guest gives the verdict, as for rule apps. The check at the end of a Build turn is in the tab too: the module reads, its first frame draws, every type resolves and every theorem can be stated. The hosted prover (proveFiles, the MCP client) and the copy of the hosted checker are deleted. FA-85 (reuse of hosted proofs) is retired with them: there is no hosted proof left to reuse, and the kernel judges a whole app in about 100 ms. Its threat control now points at FA-86. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdusN9UGDiUFDM7bZ
afflom
pushed a commit
that referenced
this pull request
Nov 16, 2026
Since #230 a stateful app is read, checked and proved in the tab, so no shell code transfers source to a hosted service. The permission boundary that guarded those transfers is deleted with its dialog, its unit and browser gates, its conformance test and feature suite, the CSS for its "Active" request pill, and its entries in the register, the Features and FoundrySpecification modules and product.json. The Versions and preview feature now says a preview sends no source anywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdusN9UGDiUFDM7bZ
afflom
added a commit
that referenced
this pull request
Nov 16, 2026
#232) * Retire hosted source permission (FA-83): nothing sends source any more Since #230 a stateful app is read, checked and proved in the tab, so no shell code transfers source to a hosted service. The permission boundary that guarded those transfers is deleted with its dialog, its unit and browser gates, its conformance test and feature suite, the CSS for its "Active" request pill, and its entries in the register, the Features and FoundrySpecification modules and product.json. The Versions and preview feature now says a preview sends no source anywhere. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdusN9UGDiUFDM7bZ * Keep FoundrySpecification canonical after the boundary's removal Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Asa3LdusN9UGDiUFDM7bZ --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Stateful apps are now checked and proved entirely in the browser tab. This removes the last hosted step (mcp.uor.foundation) from the Build and approve flow.
prism.js moduleTermswrites the app's own data form as Lean kernel terms:Prod;iteoverBool;Nat/Boolfunctions;ByteArray.size (String.toUTF8 s).studio/proof(PrismLive.Tables:refused,left,right,outside,full,stale), or is by evaluation (Eq.refl).check_suffixagainst the shipped library. The library was re-exported with the new roots, and the binding updated to 2113 declarations. The Forge kernel guest then gives the verdict, as it does for rule apps.proveFiles, the MCP client);live/v2/check.mjs,library.json).Evidence
live_app_prove.test.mjs) on the pinned glue, kernel and library:propext/Quot.soundonly.studio/tools/*.test.mjspasses, excepttelemetry, which fails only on the untracked local bundle.hosted_source_permission_browser,live_main_integration_browser,read_only_chat_execution_browserandbuild_source_browserpass.Follow-up
FA-83 (hosted source permission) still holds, vacuously: no shell code sends source any more. Retiring that module is a separate change.
Generated by Claude Code