Session operations
Commands and contracts for session. Place global flags before the command. Examples use placeholders and do not grant approval.
| Operation | Availability | Purpose |
|---|---|---|
session.claim | supported | Claim an unclaimed shell |
session.close | supported | Close one retained SSH shell |
session.create | supported | Create a Hovel-retained SSH shell |
session.input | supported | Submit controller input |
session.inspect | supported | Inspect retained shell identity and state |
session.list | supported | List retained shells for a connection |
session.observe | supported | Read independent bounded shell output |
session.release | supported | Release control and retain the shell |
session.resize | supported | Resize the controlled shell |
session.snapshot | supported | Recover a current screen after missed output |
session.takeover | supported | Explicitly replace the observed controller generation |
session.claim
Claim an unclaimed shell
supported
Invocation
burrow --workspace PATH session claim CONNECTION ID --request-stdinExample
burrow --workspace /absolute/workspace session claim target shell-id --request-stdinParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
shell-claim·object- One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Options / request fields
One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Field / option Type Presence Description / constraints columnsintegerOptional At most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum:1· Maximum:1000labelstringOptional At most 64 UTF-8 bytes; no control/format characters; not a liveness assertion.
Default:"agent"rowsintegerOptional At most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum:1· Maximum:1000
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Shared shell owner enforces control; no automatic reconnect. Owner operation notes record only identity, controller changes, input counts and provider results. requestID correlates with follow; auditError reports incomplete persistence without losing a successful claim token or accepted prefix. Release proceeds if logging is unavailable.
Returns
ShellControl. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session claim CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.close
Close one retained SSH shell
supported
Invocation
burrow --workspace PATH session close CONNECTION ID [--yes] [--review HASH]Example
burrow --workspace /absolute/workspace session close target shell-idParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
yes·boolean- --yes is explicit approval; discovery never adds it automatically.
Default:
false review·string- --review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
Approval and effects
CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.
Terminates and waits for its owned SSH subprocess; preserves the master and sibling resources. Remote-command outcomes and escaped descendants remain uncertain.
Returns
ShellReview. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session close CONNECTION ID [--yes] [--review HASH]; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/sessions_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.create
Create a Hovel-retained SSH shell
supported
Invocation
burrow --workspace PATH session create CONNECTION [--columns N --rows N] [--yes] [--review HASH]Example
burrow --workspace /absolute/workspace session create targetParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
shell-geometry·object- Optional --columns and --rows; defaults 80x24, each 1..1000, at most 20000 cells. Bound into the creation review and validated by the shell owner.
Options / request fields
Optional --columns and --rows; defaults 80x24, each 1..1000, at most 20000 cells. Bound into the creation review and validated by the shell owner.
Field / option Type Presence Description / constraints --columnsintegerOptional Default: 80· Minimum:1· Maximum:1000--rowsintegerOptional Default: 24· Minimum:1· Maximum:1000 yes·boolean- --yes is explicit approval; discovery never adds it automatically.
Default:
false review·string- --review HASH from recap binds the reviewed request or resource. Required with --yes for transfers and headless workspace restart/retire; optional for connect, profile connect, close and other advertised routes. Not accepted by tunnel remove.
Approval and effects
CLI returns a review first; repeat with --yes after approval. --review HASH, where supported, binds the recap. TUI uses the shared review dialog.
Creates one shell through the exact existing manager and master; survives launcher exit. Supports owner-fenced control and independent observation through session commands.
Returns
ShellReview. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session create CONNECTION [--columns N --rows N] [--yes] [--review HASH]; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/sessions_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.input
Submit controller input
supported
Invocation
burrow --workspace PATH session input CONNECTION ID --request-stdinExample
burrow --workspace /absolute/workspace session input target shell-id --request-stdinParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
shell-input·object- One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Options / request fields
One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Field / option Type Presence Description / constraints datastringRequired 1..4096 decoded bytes. acceptedBytes counts only the accepted prefix; no execution result or automatic retry. tokenstringRequired See full schema.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Shared shell owner enforces control; no automatic reconnect. Owner operation notes record only identity, controller changes, input counts and provider results. requestID correlates with follow; auditError reports incomplete persistence without losing a successful claim token or accepted prefix. Release proceeds if logging is unavailable.
Returns
ShellControl. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session input CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.inspect
Inspect retained shell identity and state
supported
Invocation
burrow --workspace PATH session inspect CONNECTION IDExample
burrow --workspace /absolute/workspace session inspect target shell-idParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Reads lifecycle and bounded output counts; never reads terminal bytes or reconnects.
Returns
Shell. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session inspect CONNECTION ID; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/sessions_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.list
List retained shells for a connection
supported
Invocation
burrow --workspace PATH session list CONNECTIONExample
burrow --workspace /absolute/workspace session list targetParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Reads Hovel session records; unavailable modules remain explicit.
Returns
Shells. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session list CONNECTION; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/sessions_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.observe
Read independent bounded shell output
supported
Invocation
burrow --workspace PATH session observe CONNECTION ID [OFFSET]Example
burrow --workspace /absolute/workspace session observe target shell-idParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Shared shell owner enforces control; no automatic reconnect.
Returns
ShellOutput. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session observe CONNECTION ID [OFFSET]; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.release
Release control and retain the shell
supported
Invocation
burrow --workspace PATH session release CONNECTION ID --request-stdinExample
burrow --workspace /absolute/workspace session release target shell-id --request-stdinParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
shell-release·object- One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Options / request fields
One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Field / option Type Presence Description / constraints tokenstringRequired See full schema.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Shared shell owner enforces control; no automatic reconnect. Owner operation notes record only identity, controller changes, input counts and provider results. requestID correlates with follow; auditError reports incomplete persistence without losing a successful claim token or accepted prefix. Release proceeds if logging is unavailable.
Returns
ShellControl. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session release CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.resize
Resize the controlled shell
supported
Invocation
burrow --workspace PATH session resize CONNECTION ID --request-stdinExample
burrow --workspace /absolute/workspace session resize target shell-id --request-stdinParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
shell-resize·object- One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Options / request fields
One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Field / option Type Presence Description / constraints columnsintegerRequired At most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum:1· Maximum:1000rowsintegerRequired At most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum:1· Maximum:1000tokenstringRequired See full schema.
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Shared shell owner enforces control; no automatic reconnect. Owner operation notes record only identity, controller changes, input counts and provider results. requestID correlates with follow; auditError reports incomplete persistence without losing a successful claim token or accepted prefix. Release proceeds if logging is unavailable.
Returns
ShellControl. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session resize CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.snapshot
Recover a current screen after missed output
supported
Invocation
burrow --workspace PATH session snapshot CONNECTION ID [HISTORY]Example
burrow --workspace /absolute/workspace session snapshot target shell-idParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
history-offset·integer- Snapshot history offset in lines, clamped to available history; 0 is current display. Observer-local, no input or geometry change.
Default:
0· Minimum:0· Maximum:1000
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Returns a bounded complete display snapshot and byte position, or up to 1000 lines back with snapshot-history. Includes input modes for safe encoding. Never sends input or changes geometry.
Returns
ShellOutput. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session snapshot CONNECTION ID [HISTORY]; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |
session.takeover
Explicitly replace the observed controller generation
supported
Invocation
burrow --workspace PATH session takeover CONNECTION ID --request-stdinExample
burrow --workspace /absolute/workspace session takeover target shell-id --request-stdinParameters
connection·string- Explicit existing connection name; live verified manager ownership is required for operations using its transport.
session-id·string- Opaque Hovel shell session ID; requires the explicit workspace and connection name.
shell-takeover·object- One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Options / request fields
One JSON object on private stdin with --request-stdin; at most 8192 bytes. Piped/file stdout required. Never put tokens in argv, history, logs or evidence.
Field / option Type Presence Description / constraints columnsintegerOptional At most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum:1· Maximum:1000generationintegerRequired Observed controlGeneration from inspect; never guessed or retried automatically.
Minimum:0labelstringOptional At most 64 UTF-8 bytes; no control/format characters; not a liveness assertion.
Default:"agent"rowsintegerOptional At most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum:1· Maximum:1000
Approval and effects
No additional approval; the invocation itself authorizes the described effect. Hovel throws still require their normal confirmation and --allow-dangerous.
Shared shell owner enforces control; no automatic reconnect. Owner operation notes record only identity, controller changes, input counts and provider results. requestID correlates with follow; auditError reports incomplete persistence without losing a successful claim token or accepted prefix. Release proceeds if logging is unavailable.
Returns
ShellControl. See errors and exit status before interpreting command success.
Other entry points and verification
| Contract | Behavior |
|---|---|
| Human entry point | Headless CLI: session takeover CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions |
| Scope | Explicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified. |
| Headless equivalents | Use the direct invocation or availability limitation above. |
| Base-module command | Use the advertised route above; no base-module command string. |
| Presentation | Includes operational behavior. |
| Source / checks | dispatch: core/connection/session_control_linux.gosemantic-check: core/cmd/burrow/sessions_lab.py |