Repository navigation
Conversation
…nt (#10928) Shells v1 slice 2's Done names three elements: the capability statement recorded, the conformance run wired into the check, and behavioral checks for the required workflow. The last two already landed with the F13.6 work (test-native-shell flake check runs the crate suite incl. transcript conformance; parity + live_session are the behavioral checks). The statement was the missing element. capability-statement.json records the shell in the contract's terms: the nine client frame kinds it sends, the nine server frame kinds it presents, its one declared provider (client.file.read, F13.7), its local-first posture, and its exclusions by name (rich surfaces, offline reading, mobile-native). tests/capability_statement.rs pins the record to ground truth: the contract file, the kinds the crate's builders and provider adapter actually emit, the kinds SessionState actually folds (with error as a session refusal and a closed fold for unclaimed kinds), and the adapter's offered provider set — so the statement cannot drift from the shell it describes without a test failing.
…orm fixture FormPresenter only trusts a form whose presentation token and fields validate against the native input manifest; the existing fixtures use a 32-hex token for that reason. Mirror them.
|
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 2 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 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.
Closes #10928.
The slice
#10928's Done has three elements. Audited against main before slicing:
id.native-shell.transcriptin.github/test-suite-registry.json; thetest-native-shellflake check (pkgs/id/flake.nix) runscargo nextest -p id-native-shell;tests/transcript.rschecks the recorded session against the F13.1 contract.tests/parity.rs(frame/presentation parity with the terminal shell) andtests/live_session.rs(one game through both the native loop and a terminal-style client, host journal as oracle).What changed
pkgs/id/crates/id-native-shell/capability-statement.json— the statement: nine client frame kinds sent (join, input, paste, resize, chat, screen_subscribe, form_result, provider_offer, provider_reply), nine server frame kinds presented (theSessionStatefold, witherrorsurfaced as a session refusal), the one declared provider (client.file.read, F13.7, declared viaprovider_offer, bounded by the F12.4 manifest composed with local bounds), the local-first posture, and exclusions by name (rich surfaces, offline reading, mobile-native).pkgs/id/crates/id-native-shell/tests/capability_statement.rs— pins the record to ground truth so it cannot drift: statement vs the contract file, vs the kinds the crate's builders + provider adapter actually emit, vs the kindsSessionStateactually folds (plus a closed fold: unclaimed contract kinds are rejected), vs the adapter's offered provider set.Dependency judgment
None on slice 1 (#10927 / PR #12814): that is the browser shell's web snapshot store; this shell is the native Rust crate and stands alone. #1067 stop rule not triggered — no hosted surface; the statement records the shell as local-first.
Verification (laptop, nix develop + fleet-build-lock, head 52158d2)
cargo test -p id-native-shell: 73 passed, 0 failed across all targets — lib 49, capability_statement 4/4, form_widgets 6, live_session 1, parity 3, provider_file_read_e2e 6, transcript 4.cargo clippy -p id-native-shell --all-targets: 0 errors (warnings are the pre-existing workspace set).check-suite-registry.sh: the new test is covered by the existingid.native-shell.transcriptsuite paths; the script's FAIL lines are the pre-existing unwired suites on main, unchanged by this PR.wayland-sys(pkg-config cannot find wayland-client) — the crate README's documented prerequisite; the run above is undernix develop, the same environment as the flake check.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.