GeezerVison is showing github.com — id(phase-14): shells v2 slice 2 — TUI client feature completion on the shell contract (#6297) · Issue #12818 · developing-today/code
id(phase-14): shells v2 slice 2 — TUI client feature completion on the shell contract (#6297) #12818DescriptionFollow-on slice 2 of the More shells v2 outline (#6297; record doc/2026-11-23T03-17-14Z_design_more_shells_v2/, PR #12816). Scope source: #1071 (native TUI client, ratatui).
First deliverable is the TUI's capability statement (decision D3 in the outline): frames sent, server frames presented, capability providers declared, exclusions named. Then feature completion: the full text-native world-session workflow (join, read, act, reconnect under the v1 history-identity rule) at parity with the browser shell's text surface. Done = conformance on the recorded session plus behavioral completion checks for that workflow.
Refs #6297
Refs #1071 Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Pickup (xaltha): landing the first deliverable of this slice — the TUI's capability statement, per decision D3 of the v2 outline (doc/2026-11-23T03-17-14Z_design_more_shells_v2/, §2: the claimed subset recorded as its capability statement before implementation starts).
Scope of this pass, mirroring the #10928 slice (PR #12884) and stated in the hardware shell's style per the outline:
- 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: frames sent, server frames presented, capability 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 outline, or this issue, so none is invented), exclusions named (rich rendering, media, provider offers, world hosting / program authoring, offline reading, agent-profile surfaces);
tests/capability_statement.rs pinning the statement to the F13.1 contract file (pkgs/id/contract/shell-contract.v1.json) and to the workflow this issue names (join, read, act, reconnect under the v1 history-identity rule);
- README section + the test wiring the other shells carry (just recipe, flake check, PR check list, suite registry).
The claimed subset is derived from the browser shell's text surface (pkgs/id/web/src/world.ts, world-form.ts) — the parity anchor this issue names — not from the native GUI shell's wider one. Feature completion (the workflow itself, conformance on a recorded session, behavioral checks) remains open on this issue after this slice; the PR will say Refs, not Closes.
Branch: xaltha/12818-tui-capability. dezren39 commented on Nov 23, 2026 Progress (xaltha): the first deliverable of #12818 — the TUI capability statement (decision D3) — is up as PR #13111: #13111 (OPEN, MERGEABLE, head 7b58cdf14).
What the statement declares (recorded in the new crate pkgs/id/crates/id-tui-shell, workspace member, not a default member):
- Sends: chat, form_result, input, join, paste, records, resize
- Presents: error (as a session refusal), event, form_result_status, records, snapshot, view
- Providers: 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 this issue, so the statement declares none rather than inventing one
- Exclusions by name: rich rendering, media (including id: idea — native TUI client (ratatui) on the shell contract #1071's intent/byte image protocol — it needs frame kinds the F11.12 gate reserves to a contract revision), provider offers, world hosting and program authoring, offline reading, agent-profile surfaces (semantic_diff / screen_subscription)
- Reconnect: the v1 history-identity rule — divergence resolves by re-snapshot, never by merge
Derivation: the subset is the browser shell's text surface (pkgs/id/web/src/world.ts, world-form.ts) — the parity anchor this issue names — not the native GUI shell's wider surface, and not the browser's authoring frames. tests/capability_statement.rs pins the statement to the F13.1 contract file and to the workflow this issue names; it will grow builder/fold oracles as feature completion lands the builders and fold, per the #12884 pattern. Wiring included: test-tui-shell just recipe (+ regenerated just-recipes.json), flake check, PR check list, suite registry entry id.tui-shell.capability-statement.
Evidence:
- Laptop (worktree at
7b58cdf14): cargo test -p id-tui-shell — 6 passed, 0 failed, exit 0 (run detached under heavy multi-lane load, load avg ~50)
- Sandbox (rustup 1.99.0): 6/6; clippy 0 errors; rustfmt clean
check-suite-registry.sh: no new violations vs base (30 pre-existing unwired suites); check-id-pr-checks.sh: list matches flake.nix (39 checks, 11 excluded)
Remaining on #12818 after this slice: feature completion itself — frame builders, session fold, the three-panel presentation (#1071), then conformance on the recorded session plus behavioral completion checks for the join/read/act/reconnect workflow. The PR says Refs, not Closes. dezren39 commented on Nov 24, 2026
Triage verdict — oc-code-01, 2026-11-24 (queue task 22255)
Fresh check: the first deliverable, the TUI capability statement (decision D3), is resolved: PR #13111 is merged (pkgs/id/crates/id-tui-shell).
Remaining: the feature-completion half (join, read, act, reconnect under the v1 history-identity rule, at parity with the browser text surface, plus conformance and behavioral checks). That is effort/l feature work and stays on this issue as the open remainder. No new packet is filed in this triage pass; it needs a feature-slice dispatch.
No code changed in this pass. dezren39 commented on Nov 24, 2026 Triage verdict (lane code-h, 2026-11-24): fresh check confirms the first deliverable (TUI capability statement, D3) is merged via PR #13111. Remaining scope is the text-native world-session feature completion, a multi-step Rust build with conformance checks. It needs remote build dispatch that this lane cannot run in this pass. Parked for a later run with the shell leg up; no code changed here. developing-today-fleet commented on Nov 24, 2026
Triage verdict — felix, 2026-11-24 (queue task 23101)
Fresh check: the first deliverable, the TUI capability statement (decision D3), is resolved: PR #13111 merged 2026-11-24T05:04:12Z (merge commit c56c229); pkgs/id/crates/id-tui-shell is on main.
Remaining — feature completion has NOT started. Verified at clone head 2f51a35 (2026-11-24 07:12 CST): the crate holds only the statement — src/lib.rs (52 lines) is the CAPABILITY_STATEMENT_JSON constant plus a parse helper, tests/capability_statement.rs pins it to pkgs/id/contract/shell-contract.v1.json, and Cargo.toml depends only on serde_json. No frame builders, no session fold, no presentation, no transcript fixture, no behavioral checks. This confirms the two earlier verdicts today (task 22255; lane code-h); the difference in this pass is the routing below — the packets those passes called for are now filed.
Sizing (against the completed sibling, id-native-shell #10928, CLOSED — session/events/form modules on the shared frame layer id::frames / id::world_net / id::world_presentation, plus transcript/parity/live-session tests):
- Core: builders for the 7 sent frames the statement claims (chat, form_result, input, join, paste, records, resize) + the fold for the 6 presented frames (snapshot, event, view, records, form_result_status, error as session refusal) + reconnect under the v1 history-identity rule, with builder/fold oracle tests.
- Gate: ratatui three-panel presentation (id: idea — native TUI client (ratatui) on the shell contract #1071: room/object selector, room/document, chatroom) + recorded-session conformance + behavioral completion checks for join/read/act/reconnect — this issue's Done criterion per the design record §2.
Routing — two feature_slice packets enqueued in repo-health-code-pilot:
- Task 23488 — slice 1: frame builders + session fold with reconnect (dedupe
repo-health:v1:slice:developing-today/code:issue:12818:slice-1), queued now.
- Task 23489 — slice 2: three-panel presentation + recorded-session conformance gate (dedupe
repo-health:v1:slice:developing-today/code:issue:12818:slice-2), dep-blocked on task 23488 with a 3600s recheck. On green it closes this issue.
Dependency notes: slice 2 introduces ratatui + crossterm — named by #1071 as the TUI stack, not yet in the pkgs/id workspace; the packet requires the implementing lane to report name/version/why on the PR and here. #10931 (conformance-suite packaging) is still open, but it gates the cross-shell suite extension (v2 outline follow-on slice 5), not this issue's in-crate gate — the native shell's in-crate transcript test is the precedent, so neither slice waits on it.
#12818 stays open. No code changed in this pass. dezren39 commented on Nov 24, 2026
Progress (oc-code-03, queue task 23488, 2026-11-24): claim inherited from oc-code-07 (no code written there). Parked with resume condition: remote cargo dispatch reaches a working fleet shell leg. Remote build is required by the packet and the laptop shell leg is down this run (broker refused, HTTPS_PROXY unset), so the slice cannot be verified yet. Next slice resumes on the same packet once the leg is up. Tracking #14158. dezren39 commented on Nov 26, 2026 Merged in PR #15755 (squash bb80abf): id_tui_shell::present projects a folded session onto the three panels (room/object selector, room/document, chatroom), with every host string made escape-free. Remote run 45906576293 passed all 31 crate tests.
Lane 11 keeps the claim and takes the ratatui renderer next: drawing these panels and the input line into a terminal buffer, tested against ratatui's test backend. The iroh connection stays open after that.
Generated by Claude Code developing-today-fleet commented on Nov 27, 2026 Behavioral completion landed (slice-2 item c) — #16307 merged
Live-host behavioral tests are on main via #16307 (merge fd0228cf, bot-merged after the remote suite run went green). This issue stays open: the shipped iroh connection loop and the terminal loop (crossterm backend) remain.
Remote proof (post-merge main): fleet run 46071384238 — cd pkgs/id && cargo test -p id-tui-shell — 49 passed, 0 failed across 9 targets:
- lib 0 · behavioral 3 · frames/session 6 · present 9 · render 9 · keys 6 · recorded edge/doc 4 · suite 6+... (targets: 0/3/6/12/9/9/6/4/0)
New tests/behavioral.rs (3 tests, live in-process host over loopback iroh, tic-tac-toe program):
live_join_read_act_projects_and_renders — join→snapshot(1)+view, records read, input seq 2 + chat seq 3 folded in host order, present::project + ratatui TestBackend render shows the live chat line.
live_error_frame_refuses_without_losing_state — error frame → SessionError::Refused, folds nothing, session keeps working.
live_reconnect_resumes_contiguous_and_resnapshots_on_gap — two live participants; away-event 4 rejoined with after=3, contiguous replay resumes (sequences [2,3,4], no divergence); induced gap diverges/folds nothing until a fresh live snapshot re-establishes state. Resume-token note: the host only issues a token when screen patches are negotiated, so reconnect continuity here rests on after, not the token.
New deps (all dev-only; shipped crate still just ratatui 0.30.2, no crossterm):
- id-worlds (path,
sandbox feature) — live host + install harness
- iroh 1.5.0 — loopback endpoint/router (RelayMode::Disabled)
- iroh-blobs 0.103.1 — MemStore blob fixture the host expects
- tokio 1.54.1 (macros, rt-multi-thread, time) — async test runtime
Lockfile-only change otherwise.
Remaining for this issue: the shipped connection loop over iroh to a real (non-test) host, and the terminal loop on the crossterm backend — the renderer draws on the test backend only. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · escalated
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
- Found via: monitor reconciliation (Duty 4 protocol check)
- Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
- Expectation: holder posts an agent-note:v1 note or releases the item.
- Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|