Skip to content

id(native-shell): record the Linux desktop shell's capability statement (#10928) - #12884

Open
dezren39 wants to merge 3 commits into
mainfrom
xaltha/10928-native-shell-capability
Open

dezren39 wants to merge 3 commits into
mainfrom
xaltha/10928-native-shell-capability

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #10928.

The slice

#10928's Done has three elements. Audited against main before slicing:

  • Conformance run wired into the check — already landed. Suite id.native-shell.transcript in .github/test-suite-registry.json; the test-native-shell flake check (pkgs/id/flake.nix) runs cargo nextest -p id-native-shell; tests/transcript.rs checks the recorded session against the F13.1 contract.
  • Behavioral checks — already landed with the F13.6 step-2 work: tests/parity.rs (frame/presentation parity with the terminal shell) and tests/live_session.rs (one game through both the native loop and a terminal-style client, host journal as oracle).
  • Capability statement recorded — was missing; this PR lands it. No shell had a recorded statement in the contract's terms.

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 (the SessionState fold, with error surfaced as a session refusal), the one declared provider (client.file.read, F13.7, declared via provider_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 kinds SessionState actually folds (plus a closed fold: unclaimed contract kinds are rejected), vs the adapter's offered provider set.
  • Crate README gains a "Capability statement" section pointing at both.

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).
  • rustfmt clean on the new test. check-suite-registry.sh: the new test is covered by the existing id.native-shell.transcript suite paths; the script's FAIL lines are the pre-existing unwired suites on main, unchanged by this PR.
  • Note: a plain-cargo first attempt fails in wayland-sys (pkg-config cannot find wayland-client) — the crate README's documented prerequisite; the run above is under nix develop, the same environment as the flake check.

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

…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.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:28
@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 2 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: a5dc9ec7-cd9b-485b-af23-0ef00cc3ab38
Commits

Reviewing files that changed from the base of the PR and between 4e69f9e and 52158d2.

Files selected for processing: 3

  • pkgs/id/crates/id-native-shell/README.md
  • pkgs/id/crates/id-native-shell/capability-statement.json
  • pkgs/id/crates/id-native-shell/tests/capability_statement.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-23T04:30:00.766097Z 52158d2 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.

This branch has not been deployed

No deployments
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.

id(phase-14): shells v1 slice 2 — first native shell (Linux desktop) on the shared frame layer (#6296)

1 participant