Repository navigation
Foundry's Prism kernel decides which device's copy of the visitor's work wins (FA-94) - #240
Open
humuhumu33 wants to merge 4 commits into
Open
humuhumu33 wants to merge 4 commits into
humuhumu33 wants to merge 4 commits into
Conversation
…ork wins (FA-94) A sixth kind of workspace request, merge a record another device of the visitor's Prism ID sent: the newer copy is taken, a place this device does not hold is taken, and a tie goes to the sender only when it wins the tie, so two devices never both take and converge on one copy. A device-local place, an unauthentic or misplaced record, a closed workspace, and a copy over quota unless it is a deletion are refused by name. Three theorems (never older, converges, only what may enter) and thirteen merge words, each an acceptance vector the guest replays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ind the repository root in one line The doubled parentheses around the older-copy comparison did not parse (LLP2001 at WorkspaceProofs.lex.tex:283). Eight conformance tests now take the repository root as CARGO_MANIFEST_DIR/../.., so the counted lines shrink. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Why
Two devices of one Prism ID each keep the visitor's work. When they meet, each must decide, for everything the other sends, whether to take it or keep its own, and both must end with the same copy. That decision is the kernel's, proved.
What changes (
app/src/Workspace.lex.tex)A sixth kind of workspace request, 5, merge a record another device sent. It takes 14 words (122 bytes, inside the 128-byte wire).
takefor a newer copy, an absent place, or a tie the sender wins;keepotherwise.recordLocalOnly, new); an unauthentic or misplaced record; a copy over quota, unless it's a deletion.Evidence
WorkspaceProofs:mergeNeverTakesOlderHolds;mergeConvergesHolds: two devices exchanging one place never both take, whatever else holds;mergeTakesOnlyWhatMayEnterHolds.workspaceWords_mergewords proved by evaluation, each an acceptance vector.private_workspace_fa_94holds the arm, the theorems, and the words to the vectors one for one. It failed before the model and passes after.private_workspace_fa_91still holds all 32 workspace words to their vectors.application_main_integrationnow counts 368 vectors.Lean runs in this PR's CI (
just app). Locally, the SDK image was still downloading.Next
Once this merges, the kernel pin workflow builds the guest. Studio's sync (FA-95, stacked on #238) asks it.
🤖 Generated with Claude Code