Class SandboxFilesystemSpec
java.lang.Object
io.agentscope.harness.agent.filesystem.spec.SandboxFilesystemSpec
- Direct Known Subclasses:
DockerFilesystemSpec
Declarative sandbox filesystem configuration.
Unlike AbstractFilesystem, this type is not a runtime filesystem implementation.
It only describes how to create a sandbox-backed filesystem at build time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SandboxClientOptionsprotected abstract SandboxClient<?>executionGuard(SandboxExecutionGuard executionGuard) Sets aSandboxExecutionGuardthat serialises concurrent executions on the same isolation slot.isolationScope(IsolationScope scope) protected abstract SandboxSnapshotSpecsnapshotSpec(SandboxSnapshotSpec snapshotSpec) final SandboxContextfinal SandboxContexttoSandboxContext(Path hostWorkspaceRoot) workspaceProjectionEnabled(boolean enabled) workspaceProjectionRoots(List<String> includeRoots) protected abstract WorkspaceSpec
-
Constructor Details
-
SandboxFilesystemSpec
public SandboxFilesystemSpec()
-
-
Method Details
-
createClient
-
clientOptions
-
snapshotSpec
-
workspaceSpec
-
isolationScope
-
getIsolationScope
-
snapshotSpec
-
getSnapshotSpecOverride
-
executionGuard
Sets aSandboxExecutionGuardthat serialises concurrent executions on the same isolation slot.Only relevant for
IsolationScope.AGENTandIsolationScope.GLOBALscopes, where multiple callers could otherwise race on the same persistent state. Whennull(default), no guard is applied and the existing no-lock behaviour is preserved.- Parameters:
executionGuard- the guard to apply, ornullfor no guard- Returns:
- this spec
-
getExecutionGuard
-
workspaceProjectionEnabled
-
workspaceProjectionRoots
-
toSandboxContext
-
toSandboxContext
-