Repository navigation
id(phase-14): package the v1 shell conformance suite (#10931) - #12937
Merged
Merged
Conversation
One command now runs every v1 shell's recorded session against the F13.1 shell contract: `id world contract --check-suite <manifest>`. - contract/shell-suite.v1.json: the suite manifest. Every v1 shell (terminal, browser, native, hardware) with its capability statement -- the client frames it sends, the server frames it presents, the capability providers it declares, and the workflow frames its required workflow must exercise -- transcribed from the #6296 design record and each shell's code. - contract/sessions/{terminal,native}.jsonl: the recorded sessions for the two shells that have one today, in the checker's JSONL transcript format (the native session is its step-1 fixture's frames plus the join/snapshot its WorldClient performs). - id-worlds::shell_contract::check_suite: validates each statement against the contract, runs each recorded session through the F13.1 check, and fails loudly, naming the shell, when a shell has no capability statement, its statement claims frames the contract does not name, its session violates the contract, the session sends frames outside its statement, or the session never exercises a workflow frame its statement requires (PR #8243 review finding 1: a thin transcript is not a pass). Shells without a recorded session yet (browser, slice 1 #10927; hardware, slice 3 #10929) are reported UNRECORDED, never silently skipped; adding their session path to the manifest puts them under the same gate with no code change. - The contract reference doc gains a "The conformance suite" section. Tests: id-worlds shell_contract suite (20 passed, 8 new: shipped manifest parses and passes, no-statement / unknown-frame / out-of-statement / thin-session / contract-violation / unreadable failure modes); id-cli suite-command test (1 passed). End-to-end smoke: `terminal: PASS`, `native: PASS`, `browser: UNRECORDED`, `hardware: UNRECORDED` -- 4 of 4 shells pass against contract v1.14. Refs #10931. The issue stays open: its remaining data is the browser and hardware recorded sessions, owned by slices 1 and 3.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Refs #10931 (shells v1 slice 5 — conformance-suite packaging).
What this lands: the suite packaging itself. One command —
id world contract --check-suite pkgs/id/contract/shell-suite.v1.json— now runs every v1 shell's recorded session against the F13.1 shell contract, with each shell's capability statement as data.pkgs/id/contract/shell-suite.v1.json— the manifest: terminal, browser, native, and hardware, each with a capability statement (client frames it sends, server frames it presents, providers it declares, workflow frames its required workflow must exercise), transcribed from the id(phase-14): More shells (mobile, native, hardware) — v1 — first-iteration design #6296 design record and each shell's code (browser sends fromweb/src/world.ts; native's provider is the F13.7client.file.read).pkgs/id/contract/sessions/{terminal,native}.jsonl— recorded sessions in the checker's JSONL format for the two shells that have one today. The native session is its step-1 fixture's frames plus the join/snapshot itsWorldClientperforms.check_suiteinid-worlds::shell_contract+ the--check-suiteCLI flag: per shell it validates the statement against the contract, runs the session through the F13.1 check, and fails loudly — naming the shell — when a shell has no capability statement, its statement claims frames the contract does not name, the session violates the contract, the session sends frames outside its statement, or the session never exercises a required workflow frame (PR docs(id): More shells v1 first-iteration design record (#6296, Phase 14 topic #6279) #8243 review finding 1: conformance alone is not a gate; a thin transcript is not a pass).UNRECORDED, never silently skipped. Adding their session path to the manifest puts them under the same gate with no code change — which is why id(phase-14): shells v1 slice 5 — conformance-suite packaging for v1 shells (#6296) #10931 stays open for exactly that data.Verification:
cargo test -p id-worlds --lib shell_contract— 20 passed / 0 failed (8 new suite tests: shipped manifest parses, names every v1 shell, and passes on its recorded sessions; no-statement, unknown-frame, out-of-statement, thin-session, contract-violation, and unreadable-session failure modes each proven).cargo test -p id-cli --lib the_suite_command_runs_every_shell_in_a_manifest— 1 passed / 0 failed.cargo fmt --checkclean on both crates; diff is only the eight intended files.No hosted surface is touched, so the #1067 stop rule is not engaged.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.