Write scope
write_scope
WriteAccessDecision
dataclass
Verdict for one attempted filesystem mutation.
Source code in packages/axm/src/axm/tools/write_scope.py
WriteContract
dataclass
Validated wire representation of a session filesystem write scope.
Source code in packages/axm/src/axm/tools/write_scope.py
contains(location)
Return whether a resolved location is under the execution root.
from_json(raw)
classmethod
Decode, validate and normalize a JSON transport payload.
Source code in packages/axm/src/axm/tools/write_scope.py
| Python | |
|---|---|
from_mapping(raw)
classmethod
Validate and normalize a transported contract mapping.
Source code in packages/axm/src/axm/tools/write_scope.py
permits(location)
Return whether a resolved location is under an allowed prefix.
resolve(base, candidate)
decide_write_access(contract, tool_name, tool_input=None)
Decide whether an AXM call may write where its payload requests.
Source code in packages/axm/src/axm/tools/write_scope.py
write_contract_from_env(env=None)
Load the optional process-scoped contract, failing closed if malformed.