Repository navigation
Conversation
…tBody, ScriptEnd, ScriptFailed Contracts first (CLAUDE.md rule 3): the schema rows, tokens and parser. The codec, lemmas, examples and mutations follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…essages lemma_script_body_fits_frame: a ScriptBody of at most max_script_chunk octets, whatever its request id, fits one frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e's statement Contracts first (CLAUDE.md rule 3): fetch_sub (fetch_style's function with a script flag), the Script* frames, the sub-fetch's script flag, and the statement of theorem_script_fetch_shape. The proofs and the exec kernel follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tch_shape) FetchStyle and FetchScript run through one function, fetch_sub, with the sub-fetch's script flag choosing the frames; the existing sub-fetch lemmas and the noninterference proofs take the flag, and theorem_script_fetch_shape is proven. Verus: 876 verified, 0 errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…derer The 7.16 messages added lines to is_from_renderer, so dir-navigate-not-renderer and msg-display-direction no longer matched their find text. Only find/replace changed; expect and certificates are untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Included in #286, which verifies all open phase 7 pull requests together; this merges with it. |
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.
Phase 7.16, first slice: the kernel serves a renderer's script fetches, and the IPC schema carries the new messages.
UpdateUrlis decoded and allowed from a renderer, but the kernel does not act on it yet (see "Not done").What is in it
FetchScript,UpdateUrl,ScriptResponse,ScriptBody,ScriptEndandScriptFailed. 106 mutations, all killed with certificates.fetch_sub(the one functionFetchStyleandFetchScriptshare, with ascriptflag), theScript*frames, and the sub-fetch'sscriptflag. The spec and the statement oftheorem_script_fetch_shapewere committed before the proof (rule 3).theorem_script_fetch_shapeis proven, the existing sub-fetch theorems are restated overscript, and the exec kernel handlesFetchScript.find/replacetext of two stale clazel-ipc mutations (dir-navigate-not-renderer,msg-display-direction). Theirexpectvalues and certificates are unchanged.Not done, left for later PRs
UpdateUrlin the kernel, withtheorem_url_update_same_origin. Today the kernel ignores anUpdateUrl: the renderer's URL and the address bar do not change. Doing it means changing a renderer'surl(or adding a new state table), and that touches the kernel invariant, the noninterference unwinding, the exec records and every lemma that says "this message leaves the renderers alone". It deserves its own PR, with the statement committed first. The plan is to accept it only when the resolved URL's lock equals the renderer's lock and the lock is not opaque, which keepslock_of_url(r.url, r.id) == Some(r.lock), then restatetheorem_address_bar_integrityandtheorem_cookie_noninterferenceover it.Fetch(fetch()/XHR, CORS, forbidden headers), and with ittheorem_cors_read,theorem_forbidden_headersand ORB for no-cors responses (listed in the spec's modelling choices).theorem_popup_needs_inputandOpenTab.theorem_script_fetch_shape. None was added in this PR; the mutation count is 74, all of them the existing ones.Results (run locally)
cargo xtask verify --part crate clazel-ipc: CRATE PART PASSED. Verus: 218 verified, 0 errors. Mutations: 106 killed, 0 survived.cargo xtask verify --part crate clazel-kernel: CRATE PART PASSED. Verus: 876 verified, 0 errors. Mutations: 74 killed, 0 survived.cargo fmt,cargo clippy -p clazel-ipc -p clazel-kernel --all-targets -- -D warnings,cargo xtask check(static checks passed) andcargo test -p clazel-ipc -p clazel-kernelall pass.clazel-sysfile is touched. Full CI verification has not run on this PR, and its proof jobs need afull-verificationapproval, so this is not yet done.🤖 Generated with Claude Code