Pixir.WorkspaceStrategy (pixir v0.1.17)

Copy Markdown View Source

Workspace Strategy vocabulary for Subagents and Workflow steps.

A Workspace Strategy describes how a child sees files and whether writes can mutate the parent workspace. Subagents execute shared and isolated, and may opt in to virtual_overlay with operator-owned read-set context. Workflow steps also support explicit virtual commands. Each invocation imports host files afresh and returns an unapplied virtual_diff; only commands within that invocation share virtual edits. Canonical Logs/artifacts persist on disk; no persistent Session scratch is implied.

Summary

Functions

Return compact Delegation Context fields for a modeled workspace mode.

Normalize a runtime workspace mode or return a structured error.

Functions

delegation_context(mode, metadata \\ %{})

@spec delegation_context(term(), map()) :: {:ok, map()} | {:error, map()}

Return compact Delegation Context fields for a modeled workspace mode.

normalize_runtime_mode(mode, scope, details \\ %{}, opts \\ [])

@spec normalize_runtime_mode(term(), String.t(), map(), keyword()) ::
  {:ok, String.t()} | {:error, map()}

Normalize a runtime workspace mode or return a structured error.