Backplane.AgentRuntime.Codex.PathGuard (backplane_agent_runtime v1.10.48)

Copy Markdown

Canonical, symlink-aware containment for Codex workspace paths.

Write authorization also rejects multiply linked regular targets. These checks inspect the current filesystem; they do not provide race-free OS isolation. Hosts requiring protection from concurrent hostile filesystem changes must use an operating-system sandbox in addition to these checks.

Summary

Functions

Checks containment and the current regular-file link count before a write.

Functions

authorize(root, path)

@spec authorize(binary(), binary()) ::
  {:ok, binary()} | {:error, Backplane.AgentRuntime.Error.t()}

authorize_write(root, path)

@spec authorize_write(binary(), binary()) ::
  {:ok, binary()} | {:error, Backplane.AgentRuntime.Error.t()}

Checks containment and the current regular-file link count before a write.