Skip to main content

Module template

Module template 

Source
Expand description

Capability templates — preset CSpace configurations for common agent roles.

Templates provide a declarative way to define an agent’s initial capability set. They encode the “principle of least privilege” by starting from minimal access and layering on rights as the role demands.

§Hierarchy

worker()     → Exec + Browser
  standard() → worker + Memory(READ)
  operator() → standard + Space + Agent + A2a + Program + MCP + Memory(WRITE)
  supervisor() → operator + Security + Budget + Resource + Cron

§Example

use oxios_kernel::capability::template::CapabilityTemplate;
use oxios_kernel::types::AgentId;

let cspace = CapabilityTemplate::standard().build_for(AgentId::new_v4());
assert!(cspace.len() > 0);

Structs§

CapabilityTemplate
Builder for constructing preset capability spaces.