Skip to content

id(phase-14): package the v1 shell conformance suite (#10931) - #12937

Merged
dezren39 merged 1 commit into
mainfrom
lane-eq/10931-shell-suite
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-eq/10931-shell-suite

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

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.

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.
  • End-to-end smoke with the built binary against the shipped manifest:
terminal: PASS (5 frames, recorded session)
browser: UNRECORDED (capability statement ok, no recorded session yet)
native: PASS (7 frames, recorded session)
hardware: UNRECORDED (capability statement ok, no recorded session yet)
suite: 4 of 4 shells pass, 2 recorded session(s) checked against shell contract v1.14
  • cargo fmt --check clean on both crates; diff is only the eight intended files.

No hosted surface is touched, so the #1067 stop rule is not engaged.


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ef7d73e3-fd86-40f4-b8f1-924752b910fe
Commits

Reviewing files that changed from the base of the PR and between 38a774d and 44a8c09.

Files selected for processing: 8

  • doc/2026-10-25T05-54-40Z_reference_shell_contract/2026-10-25T05-54-40Z_reference_shell_contract.md
  • pkgs/id/contract/sessions/native.jsonl
  • pkgs/id/contract/sessions/terminal.jsonl
  • pkgs/id/contract/shell-suite.v1.json
  • pkgs/id/crates/id-cli/src/cli/world.rs
  • pkgs/id/crates/id-cli/src/commands/world.rs
  • pkgs/id/crates/id-worlds/src/shell_contract.rs
  • pkgs/id/crates/id-worlds/src/shell_contract/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:24:23.176902Z 44a8c09 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit d3b31ab into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-eq/10931-shell-suite branch November 23, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant