Documentation
¶
Index ¶
- Constants
- func InheritedCommandEnvironment(runtimeDir string) []string
- func PermissionArgs(command, runtimeDir string) []string
- func PermissionArgsWithReadRoots(command, runtimeDir string, additionalReadRoots ...string) []string
- func PrepareRuntime(runtimeDir string) error
- func RestrictedCommandEnvironment(runtimeDir string) []string
- func ToolEnvironment(runtimeDir string) map[string]string
- type Executor
- type Kind
- type Language
- type Request
- type Result
- type Status
- type Verifier
Constants ¶
const PermissionProfileName = "buckley-review-snapshot"
Variables ¶
This section is empty.
Functions ¶
func InheritedCommandEnvironment ¶
InheritedCommandEnvironment preserves the caller environment for Codex provider authentication while forcing all sandbox temp paths into runtimeDir. The child command still receives only ToolEnvironment through the permission profile's shell_environment_policy.
func PermissionArgs ¶
PermissionArgs returns the Codex CLI overrides for a review verification sandbox. The current Codex working directory is read-only, only its private TMPDIR is writable, and direct network access is disabled.
func PermissionArgsWithReadRoots ¶
func PermissionArgsWithReadRoots(command, runtimeDir string, additionalReadRoots ...string) []string
PermissionArgsWithReadRoots is PermissionArgs plus narrowly-scoped, read-only toolchain or dependency roots required by the verification run.
func PrepareRuntime ¶
PrepareRuntime creates the private writable directories referenced by the shared review sandbox environment. Native Codex and API verification must both call this before launching any build or test process.
func RestrictedCommandEnvironment ¶
RestrictedCommandEnvironment is safe for `codex sandbox`: it does not inherit credentials, proxy variables, hooks, or user configuration.
func ToolEnvironment ¶
ToolEnvironment is the complete environment visible to a verification process inside Codex's sandbox. Build and package managers are forced offline; all writable caches and temporary output live below runtimeDir.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor() *Executor
func NewExecutorWithCodexCommand ¶
NewExecutorWithCodexCommand configures an absolute Codex executable. When command is empty, discovery is limited to the fixed trusted executable path.
func NewSessionExecutorWithCodexCommand ¶
NewSessionExecutorWithCodexCommand reuses one private build runtime until Close. This lets verification calls share safe compiler caches.