Skip to main content

Workspace

A workspace is the agent's working directory boundary for tools that read and write files. Workspaces make file operations explicit, containable, and durable across runs.

Properties

  • Each agent has a single workspace directory (identified by a WorkspaceId).
  • Tools operate relative to that workspace by default.
  • The gateway can inject selected workspace files into context to reduce tool calls.
  • The workspace filesystem is an operator-visible surface for files and artifacts; long-term memory is stored in the StateStore (see Memory).

Durability (hard requirement)

  • A workspace filesystem is persistent: files written during one run are available across runs.
  • In single-host deployments, TYRUM_HOME is a durable local directory on disk.
  • In clustered deployments, a workspace is backed by durable storage (for example a PVC) and must remain available across pod reschedules.

HA semantics (RWO without RWX)

Kubernetes ReadWriteOnce volumes are compatible with durable workspaces if we enforce single-writer semantics:

  • Only one running execution context mounts a given workspace volume read/write at a time.
  • The system enforces this with StateStore-backed leases/claims and a ToolRunner boundary (see Scaling and high availability).

This avoids requiring RWX network filesystems while still supporting multi-node scheduling.

Safety expectations

  • Enforce path boundaries (no arbitrary filesystem traversal).
  • Redact secrets and avoid logging sensitive file content.
  • Make destructive operations require explicit confirmation where appropriate.