Skip to main content

Module resolve

Module resolve 

Source
Expand description

CSpace resolution — determines an agent’s initial capability space from Seed + Config inputs.

The resolution follows a priority chain:

  1. Explicit cspace hint on the seed → parse and use it.
  2. Persona role → map known roles to built-in templates.
  3. Default → fall back to the worker template.

§Example

use oxios_kernel::capability::resolve::resolve_cspace;
use oxios_kernel::types::AgentId;

let cspace = resolve_cspace(None, Some("operator"), None, AgentId::new_v4());
assert!(cspace.len() > 2);

Functions§

resolve_cspace
Resolve an agent’s initial CSpace from the available context.