BURROW // API

Integration, provenance and evidence

Burrow exposes a CLI and one base Hovel module. It does not publish a separate REST service or SDK. This reference is generated with the same build as the site; use burrow capabilities to discover the contract of your installed executable.

Version and source

Build provenance
{
  "schemaVersion": 1,
  "module": {
    "name": "burrow",
    "version": "0.1.0"
  },
  "binarySHA256": "bf80c8971b5167212d0ee2d3bbf176011ca966343aa138a3fdd2d0d9ec9400d3",
  "contractSource": "core/connection/capabilities.go",
  "frontendSource": "core/cmd/burrow/capabilities.go",
  "hovelExecutableSHA256": "0df24452dd7dcd0ea13dd1f3a52547ecce26f51e3f1df89e1df4b3abc4b6dcf8",
  "hovelRuntimeURL": "https://github.com/vibepwners/hovel/releases/download/v0.4.4/hovel-0.4.4-py3-none-manylinux_2_28_x86_64.whl",
  "hovelWheelSHA256": "87205142bb21af86e68819372467b814949d9f5f86b321003e8aa2c721fb503a",
  "source": "https://github.com/Bochner/burrow",
  "versionPolicy": "schemaVersion versions discovery; module version identifies the Hovel module. binarySHA256 identifies the exact producer, including local uncommitted builds. Source paths refer to that build's checkout, not necessarily public main."
}

Base-module configuration

Only burrow@0.1.0; JSON-RPC stdio is owned by the public Hovel SDK. module is the Hovel launch entry point, not a human command.

The moduleCommand field marks accepted base-module command routes. Supply workspace and a quoted command. An empty command verifies existing workspace identity. Execute only through the verified workspace daemon; normal Hovel planning, confirmation and --allow-dangerous apply. Profile results live in result data; other supported command results also appear as JSON in summary.

action/generation/session/request/review/build are opaque confirmed-manager adapter inputs emitted by Burrow. Use generated chains or Burrow CLI; do not hand-author owner requests, launch keys or build hashes. connection is a retired input that always refuses nonempty values.

{
  "ChainConfig": [
    {
      "Key": "workspace",
      "Type": "string",
      "Required": true,
      "Default": "",
      "Description": "Explicit canonical Burrow workspace",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "command",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "Profile, file, retained-run or report command; empty inspects workspace",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "connection",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "Retired per-connection input; use the manager connect adapter",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "action",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "generation",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "session",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "request",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "review",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "",
      "Allowed": null,
      "Secret": false
    },
    {
      "Key": "build",
      "Type": "string",
      "Required": false,
      "Default": "",
      "Description": "",
      "Allowed": null,
      "Secret": false
    }
  ],
  "TargetConfig": null,
  "Outputs": null,
  "PlanningContext": {}
}

Saved-chain example

Run burrow --workspace /absolute/workspace status once to establish the verified workspace. Save this Hovel chain as /absolute/workspace/list.chain.json; it inspects retained runs. Use the installed pinned Hovel CLI to review and confirm the throw. Do not add bypass flags to automation implicitly.

{
  "apiVersion": "hovel.dev/v1alpha1",
  "kind": "Chain",
  "metadata": {
    "name": "burrow-inspect"
  },
  "spec": {
    "mode": "configured",
    "steps": [
      {
        "id": "burrow",
        "uses": "module:burrow@0.1.0"
      }
    ],
    "targets": [
      {
        "id": "local://burrow"
      }
    ],
    "config": {
      "workspace": "/absolute/workspace",
      "command": "run list"
    }
  }
}
hovel throw /absolute/workspace/list.chain.json --workspace /absolute/workspace --daemon-endpoint /absolute/workspace/hoveld.sock --allow-dangerous --json

Authoritative Hovel boundaries

Supported public Hovel RPC over the verified owner-protected workspace socket; Burrow-started pinned instances only. Burrow does not publish a separate REST service or SDK. General existing-daemon attachment and generic Mesh routing remain unsupported. Retained shell controls use RunSessionCommand with Request.command and private JSON in Request.inputData (Request.inputEncoding=utf-8), never Args for tokens. Observe uses args:[decimal byte offset]; snapshot optionally accepts args:[history lines 0..1000]; inspect has no arguments. Raw WriteSession refuses and ReadSession/TailSession return no terminal bytes. TUI tabs use these same retained sessions and private controls.

Upstream contractPinned source
chainschains at the pinned Hovel SDK revision
rpcrpc at the pinned Hovel SDK revision
sdksdk at the pinned Hovel SDK revision

Errors and exit status

Successful calls and passive reviews exit 0. A successful CLI call can still describe a failed remote command, partial transfer or incomplete capture. Check the returned outcome fields.

RouteError outputExit
workspace subcommandsJSON on stderr; workspace-specific codes1
close, profile connect, session commandsJSON on stderr; operation_failed1
other operationsText on stderr1
global flag parsingText; see the installed CLInonzero

Missing acknowledgement does not promise rollback. Inspect uncertain state before retrying.

Exact error contract
{
  "encoding": "text/stderr",
  "exitCode": 1,
  "lifecycle": {
    "encoding": "JSON/stderr",
    "exitCode": 1,
    "routes": [
      "close",
      "profile connect",
      "session create|list|inspect|close|claim|takeover|input|resize|release|observe|snapshot"
    ],
    "semantics": "Validation, stale review, ownership, dispatch and cleanup failures are structured. The message distinguishes the refusal; do not automatically retry an uncertain operation. Global flag parsing errors remain text.",
    "shape": "{error:{operation,workspacePath?,code:'operation_failed',message}}"
  },
  "prefix": "Burrow: ",
  "semantics": "Other routes: validation, ownership, unavailable-resource, approval, transport and persistence failures are text errors. Success/review JSON exits 0. A returned Run or transfer can still contain a failed/partial/uncertain outcome; inspect its state and capture fields. No stable error codes or automatic remote-exit propagation are promised.",
  "structured": false,
  "workspace": {
    "codes": [
      "invalid_arguments",
      "invalid_selection",
      "unverified",
      "review_required",
      "review_changed",
      "cleanup_unconfirmed",
      "registration_failed"
    ],
    "encoding": "JSON/stderr",
    "exitCode": 1,
    "routes": "workspace open|inspect|list|restart|retire",
    "semantics": "Only workspace subcommands use this structured error contract. Global flag parsing errors remain text. cleanup_unconfirmed may follow partial cleanup; inspect before retrying. registration_failed includes review.state=retired. Missing acknowledgement never promises rollback.",
    "shape": "{error:{operation,workspacePath?,code,message,review?:ManagerReview}}"
  }
}

Upstream Hovel can return non-JSON CLI failures; its wrapper JSON and module result are separate from Burrow's CLI stdout contract.

Aliases and presentation

Alias / presentation routeCapability
--load PATHprofile.load during startup
-ip/-socket/-ssh-key--host/--name/--key connection options
Ctrl+Nlogs.view
Saved profile Edit (Vim)profile.edit through a private one-profile draft; validates and binds revision on successful editor exit; CLI uses profile edit
download-cancel IDtransfer.cancel
file mode historyfiles.history
file mode ls/tree/cd/pwd/get/mget/putfiles.* / transfer.* with the selected connection and per-tab directories
reports/reportreport.list/read with a human renderer in TUI
tunc CONNECTION l|r ...tunnel.create (forward|reverse)
tund CONNECTION/IDtunnel.remove

Help/F1, Ctrl+P search/menu, Tab completion, command recall, scrolling, NO_COLOR, mouse toggle, clipboard copy, workspace/tab selection, Ctrl+L output/activity views, and file-mode back/exit alter presentation or select existing capabilities; they are not independent remote operations. Ctrl+] detaches and releases this frontend's shell claim; Alt+T explicitly takes control. Keep running retains shells.

Discovery always emits JSON. Workspace operations, close, profile connect and session commands use structured stderr on failure; human terminals apply the shared semantic JSON renderer to their results and errors. Other nonterminal stdout emits JSON; terminal stdout uses the shared semantic renderer. Shell, bare logs and run follow routes are interactive; logs --json returns historical notes without an editor. Workspace follow emits NDJSON with --json or a pipe, otherwise a colored scrolling feed. Private session controls require piped/file stdin AND stdout. Global flags precede the command; tokens after -- in run commands belong to the target program.

Evidence boundaries

Dispatch registration and successful route parsing prove reachability only. Reflected result schemas describe wire shapes, not execution outcomes. Referenced semantic checks assert selected real behavior; neither inventory size, shared help, nor upstream coverage percentages establish 100% parity.

CheckWhat it demonstrates
core/cmd/burrow/capabilities_check.pyReal executable discovery without local initialization; known route availability, ID lookup, schema references and command reachability.
core/cmd/burrow/terminal_check.pyReal human PTY entry and headless CLI reach the same saved-profile behavior; a saved setting does not create a connection.
docs/tools/docs/site_test.pyBuilt API inventory matches the binary contract, every capability has a deep link, navigation works, and search includes each ID.
Per-operation semantic-check pointersFocused existing assertions for selected actual behavior; read their scope. A pointer is not a claim that every possible outcome is tested.

Run aspect test //core/cmd/burrow:capabilities_test, aspect burrow-site check and the relevant aspect burrow-check gate. Route discovery and documentation do not establish full human/agent parity. The pinned Hovel v0.4.4 compatibility checks are required in the full gate.