Skip to content

id(tui-shell): record the TUI capability statement (shells v2 slice 2, #12818) - #13111

Open
dezren39 wants to merge 1 commit into
mainfrom
xaltha/12818-tui-capability
Open

dezren39 wants to merge 1 commit into
mainfrom
xaltha/12818-tui-capability

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #12818.

The slice

#12818's first deliverable is the TUI's capability statement (decision D3 in the v2 outline, doc/2026-11-23T03-17-14Z_design_more_shells_v2/, §2): the claimed subset recorded before implementation starts. This PR lands only that deliverable; feature completion (the full text-native workflow, conformance on the recorded session, behavioral completion checks) remains open on #12818.

Following the pattern of the #10928 slice (PR #12884), in the hardware shell's style as the outline prescribes:

  • New crate pkgs/id/crates/id-tui-shell — a workspace member but not a default member, like the other shells — whose first recorded content is the statement. Later slices build the frame layer and presentation on it here.
  • capability-statement.json — sends chat, form_result, input, join, paste, records, resize; presents error, event, form_result_status, records, snapshot, view (error as a session refusal); providers declared: none — no F13.7 provider is named for the TUI in id: idea — native TUI client (ratatui) on the shell contract #1071, the v2 outline, or id(phase-14): shells v2 slice 2 — TUI client feature completion on the shell contract (#6297) #12818, so none is invented; exclusions named: rich rendering, media (incl. id: idea — native TUI client (ratatui) on the shell contract #1071's intent/byte image protocol, which needs frame kinds the F11.12 gate reserves), provider offers, world hosting and program authoring, offline reading, agent-profile surfaces. Reconnect records the v1 history-identity rule (re-snapshot, never merge).
  • Derivation: the claimed subset is the browser shell's text surface (pkgs/id/web/src/world.ts, world-form.ts) — the parity anchor the issue names — not the native GUI shell's wider one: no screen_subscribe, no semantic_diff, no provider frames, and not the browser's own authoring frames (install_*, compile) either.
  • tests/capability_statement.rs — pins the statement to the F13.1 contract file (pkgs/id/contract/shell-contract.v1.json), to the workflow the issue names (join, read, act, reconnect), to the embedded copy in the crate, and against silently widening to the native GUI surface. When the builders and session fold land, this check grows the same builder/fold oracles id(native-shell): record the Linux desktop shell's capability statement (#10928) #12884's carries.
  • README gains the crate's statement section, mirroring id(native-shell): record the Linux desktop shell's capability statement (#10928) #12884's.
  • Wiring the other shells carry: test-tui-shell just recipe (+ regenerated just-recipes.json), flake check, PR check list entry, and suite-registry entry id.tui-shell.capability-statement.

Verification

  • Laptop (worktree at head 7b58cdf14): cargo test -p id-tui-shell — 6 passed, 0 failed (capability_statement 6/6; lib and doc targets 0). The laptop was under heavy multi-lane load (load avg ~50) and the run went through a detached log after the build-lock lease stalled; exit code 0 recorded in the log.
  • Sandbox (direct rustup 1.99.0 toolchain): same result, 6/6; cargo clippy -p id-tui-shell --all-targets 0 errors (warnings are the standing workspace metadata set); rustfmt clean.
  • check-suite-registry.sh: violation set identical to the base (30 pre-existing unwired suites; the new suite is registered, no new violations). check-id-pr-checks.sh: "id PR check list matches pkgs/id/flake.nix: 39 checks, 11 excluded".

New dependency surface: none beyond serde_json (already a workspace dependency everywhere); the crate is not a default member, so the ordinary id build is unchanged.


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

…#12818)

First deliverable of #12818, per decision D3 of the more-shells v2
outline (doc/2026-11-23T03-17-14Z_design_more_shells_v2, section 2):
the TUI's claimed subset, recorded as its capability statement
before implementation starts, in the pattern of the #10928 slice
(PR #12884) and stated in the hardware shell's style.

- New crate pkgs/id/crates/id-tui-shell (workspace member, not a
  default member, like the other shells) whose first recorded
  content is the statement.
- capability-statement.json: sends join/input/paste/resize/chat/
  form_result/records; presents snapshot/event/view/
  form_result_status/records with error as a session refusal;
  providers declared: none (no F13.7 provider is named for the
  TUI in #1071, the outline, or #12818); exclusions named: rich
  rendering, media, provider offers, world hosting and program
  authoring, offline reading, agent-profile surfaces. The subset
  is the browser shell's text surface (pkgs/id/web), the parity
  anchor the issue names - not the native GUI shell's wider one.
- tests/capability_statement.rs pins the statement to the F13.1
  contract file and to the workflow the issue names (join, read,
  act, reconnect under the v1 history-identity rule).
- Wiring the other shells carry: test-tui-shell just recipe (+
  regenerated just-recipes.json), flake check, PR check list,
  suite registry entry id.tui-shell.capability-statement.

Feature completion (builders, fold, presentation, conformance on
a recorded session) remains open on #12818.
@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 42 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: 87f3258f-2d25-4bab-add3-26a426dcae19
Commits

Reviewing files that changed from the base of the PR and between 9523ad4 and 7b58cdf.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 11

  • .github/scripts/id-pr-checks.txt
  • .github/test-suite-registry.json
  • pkgs/id/Cargo.toml
  • pkgs/id/crates/id-tui-shell/Cargo.toml
  • pkgs/id/crates/id-tui-shell/README.md
  • pkgs/id/crates/id-tui-shell/capability-statement.json
  • pkgs/id/crates/id-tui-shell/src/lib.rs
  • pkgs/id/crates/id-tui-shell/tests/capability_statement.rs
  • pkgs/id/flake.nix
  • pkgs/id/just-recipes.json
  • pkgs/id/justfile
  • 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-23T08:18:38.530331Z 7b58cdf 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.

1 participant