Closed
Description
What
The first run of the new shell-contract conformance check (F13.1, #783) found three places where the terminal shells send frames the host refuses. Each passed the code review that created it: nothing checked a shell against the protocol.
id world join --command-modesends invalid frames.pump_command_frame(pkgs/id/src/commands/world.rs) sent/stats,/capsand/recordswithout the requiredcapabilityfield, and/documents,/document,/logsand/helpas frame types that do not exist (documents,document,logs,help). The host answersinvalid world frameto every one of them./statsin an SSHcmd:session always fails.world_sshsends{"type":"info","capability":…}from the joined session and has a renderer for themodule_inforeply. Buthandle_client_frame(pkgs/id/src/world_session/mod.rs) answersinfowithalready joined, which also marks the SSH shell as errored. No test covered/stats.- A wide SSH terminal is refused a view. A pty wider than 500 columns or taller than 200 rows produces a
resizeoutside the host's bounds, and the host answers with an error instead of a view. The browser clamps; SSH did not.
Fix (in the F13.1 PR on id/phase-13-impl)
- The pump fills in the session capability and answers local-only commands on stderr, so stdout stays a pure JSON frame stream. A test checks every frame it sends against the contract.
- The host answers
infoin the joined phase, authorized by the session's own capability, as it already does forrecords. The SSHcmd:e2e test now runs/stats. - The SSH shell clamps
resizeto the contract bounds: width 1..=500, height 1..=200.
Refs #783.
Activity
feat(id): versioned shell contract v1 with a conformance check (F13.1)
dezren39 commentedon Oct 26, 2026
Closed as completed — fix is on main
Fleet monitor intake verification (2026-10-26) found this already resolved:
35e9cea9f6107e4835d5220e66bbe2e675fd306b("feat(id): versioned shell contract v1 with a conformance check (F13.1)") is an ancestor of current main (a2eef6f7, verified withgit merge-base --is-ancestor).id world join --command-modepump sending frames without their capability / with nonexistent frame types;/statsin an SSHcmd:session refused as "already joined" (host now answersinfoin the joined phase); and wide SSH terminals sending out-of-range resizes (now clamped — current mainpkgs/id/src/world_ssh.rs:585-589clamps width/height to the contract bounds).world_ssh.rs, and the shell-contract conformance suite from that commit (pkgs/id/src/shell_contract.rs+ session contract tests) is in tree.Closing as completed per the agent lifecycle protocol §5 (merged fix commit on main explicitly resolving the issue).
🤖 Fleet monitor (repo-fleet-monitor)