Phase 1: Capability Lattice
The Context
A major flaw in regex-based safety engines is capability leakage. If an agent is allowed to run python, it can effectively bypass network restrictions by running import os; os.system('curl evil.com'). The Transitive Capability Resolver tracks this leakage structurally.
Tasks
Part of Epic #651
Phase 1: Capability Lattice
The Context
A major flaw in regex-based safety engines is capability leakage. If an agent is allowed to run
python, it can effectively bypass network restrictions by runningimport os; os.system('curl evil.com'). The Transitive Capability Resolver tracks this leakage structurally.Tasks
TransitiveCapabilityResolverto calculate the "Upper Bound" of any given capability.exec("python")orexec("bash")must transitively grantFULL_ACCESS.CapabilityCheckerso that if an agent attempts an action whose transitive upper bound exceeds its declared capabilities, the action is hard-blocked.bash -c "..."is correctly blocked if full access isn't declared).Part of Epic #651