BURROW // API

Session operations

Commands and contracts for session. Place global flags before the command. Examples use placeholders and do not grant approval.

OperationAvailabilityPurpose
session.claimsupportedClaim an unclaimed shell
session.closesupportedClose one retained SSH shell
session.createsupportedCreate a Hovel-retained SSH shell
session.inputsupportedSubmit controller input
session.inspectsupportedInspect retained shell identity and state
session.listsupportedList retained shells for a connection
session.observesupportedRead independent bounded shell output
session.releasesupportedRelease control and retain the shell
session.resizesupportedResize the controlled shell
session.snapshotsupportedRecover a current screen after missed output
session.takeoversupportedExplicitly replace the observed controller generation

session.claim

Claim an unclaimed shell

supported

Invocation

burrow --workspace PATH session claim CONNECTION ID --request-stdin

Example

burrow --workspace /absolute/workspace session claim target shell-id --request-stdin

Parameters

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 / optionTypePresenceDescription / constraints
columnsintegerOptionalAt most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum: 1 · Maximum: 1000
labelstringOptionalAt most 64 UTF-8 bytes; no control/format characters; not a liveness assertion.
Default: "agent"
rowsintegerOptionalAt 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
ContractBehavior
Human entry pointHeadless CLI: session claim CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

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-id

Parameters

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
ContractBehavior
Human entry pointHeadless CLI: session close CONNECTION ID [--yes] [--review HASH]; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/sessions_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

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 target

Parameters

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 / optionTypePresenceDescription / constraints
--columnsintegerOptionalDefault: 80 · Minimum: 1 · Maximum: 1000
--rowsintegerOptionalDefault: 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
ContractBehavior
Human entry pointHeadless CLI: session create CONNECTION [--columns N --rows N] [--yes] [--review HASH]; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/sessions_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

session.input

Submit controller input

supported

Invocation

burrow --workspace PATH session input CONNECTION ID --request-stdin

Example

burrow --workspace /absolute/workspace session input target shell-id --request-stdin

Parameters

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 / optionTypePresenceDescription / constraints
datastringRequired1..4096 decoded bytes. acceptedBytes counts only the accepted prefix; no execution result or automatic retry.
tokenstringRequiredSee 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
ContractBehavior
Human entry pointHeadless CLI: session input CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

session.inspect

Inspect retained shell identity and state

supported

Invocation

burrow --workspace PATH session inspect CONNECTION ID

Example

burrow --workspace /absolute/workspace session inspect target shell-id

Parameters

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
ContractBehavior
Human entry pointHeadless CLI: session inspect CONNECTION ID; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/sessions_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

session.list

List retained shells for a connection

supported

Invocation

burrow --workspace PATH session list CONNECTION

Example

burrow --workspace /absolute/workspace session list target

Parameters

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
ContractBehavior
Human entry pointHeadless CLI: session list CONNECTION; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/sessions_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

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-id

Parameters

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
ContractBehavior
Human entry pointHeadless CLI: session observe CONNECTION ID [OFFSET]; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

session.release

Release control and retain the shell

supported

Invocation

burrow --workspace PATH session release CONNECTION ID --request-stdin

Example

burrow --workspace /absolute/workspace session release target shell-id --request-stdin

Parameters

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 / optionTypePresenceDescription / constraints
tokenstringRequiredSee 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
ContractBehavior
Human entry pointHeadless CLI: session release CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

session.resize

Resize the controlled shell

supported

Invocation

burrow --workspace PATH session resize CONNECTION ID --request-stdin

Example

burrow --workspace /absolute/workspace session resize target shell-id --request-stdin

Parameters

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 / optionTypePresenceDescription / constraints
columnsintegerRequiredAt most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum: 1 · Maximum: 1000
rowsintegerRequiredAt most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum: 1 · Maximum: 1000
tokenstringRequiredSee 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
ContractBehavior
Human entry pointHeadless CLI: session resize CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

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-id

Parameters

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
ContractBehavior
Human entry pointHeadless CLI: session snapshot CONNECTION ID [HISTORY]; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory

session.takeover

Explicitly replace the observed controller generation

supported

Invocation

burrow --workspace PATH session takeover CONNECTION ID --request-stdin

Example

burrow --workspace /absolute/workspace session takeover target shell-id --request-stdin

Parameters

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 / optionTypePresenceDescription / constraints
columnsintegerOptionalAt most 20000 cells in columns × rows. Omitted claim/takeover dimensions retain current geometry; explicit null is refused.
Minimum: 1 · Maximum: 1000
generationintegerRequiredObserved controlGeneration from inspect; never guessed or retried automatically.
Minimum: 0
labelstringOptionalAt most 64 UTF-8 bytes; no control/format characters; not a liveness assertion.
Default: "agent"
rowsintegerOptionalAt 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
ContractBehavior
Human entry pointHeadless CLI: session takeover CONNECTION ID --request-stdin; TUI shell tabs attach to these same retained sessions
ScopeExplicit workspace, connection name and opaque Hovel shell ID; connection creation and manager generation are verified.
Headless equivalentsUse the direct invocation or availability limitation above.
Base-module commandUse the advertised route above; no base-module command string.
PresentationIncludes operational behavior.
Source / checksdispatch: core/connection/session_control_linux.go
semantic-check: core/cmd/burrow/sessions_lab.py

Evidence limits · JSON inventory