policysnapshot

package
v0.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package policysnapshot used to persist the sandbox policy to a per-session JSON file so hook-mode `agent-sandbox exec` could route from a frozen copy the agent could not edit. That routing is gone — execd now interprets the agent's command line itself, under an operator-written nono profile, with no `allow_commands`/`drop_commands` left to freeze — so this package keeps only the one thing that outlived it: the shared state directory path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StateDir

func StateDir() (string, error)

StateDir returns agent-sandbox's per-user state directory: $XDG_STATE_HOME/agent-sandbox, falling back to ~/.local/state/agent-sandbox. It is the single source of truth for this path; the execd socket (internal/claude) and `agent-sandbox doctor`'s execd-readiness check both derive their paths from it, so the two stay in sync if it ever moves.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL