Structs§
- Configured
Tool Spec - DagPlan
View - Lightweight plan view for scheduling (no execution state).
- Footprint
- Declared resource footprint for scheduling / policy.
- Policy
Decision - Policy output consumed by the turn loop and future DAG scheduler.
- Policy
Engine - Policy engine — stateless rule set (proposal §8.1, §8.1.2).
- Policy
Input - Inputs for a single tool policy evaluation.
- Policy
Plan Meta - Legacy-compatible plan flags derived from a policy decision.
- Policy
Shadow Stats - Shadow-mode counters (
tools.policy = "shadow"). - Resource
Set - Resource access summary (M2 minimal form; M3+ may split Fs/Net/Proc).
- Scheduler
Shadow Stats - Shadow-mode counters (
tools.scheduler = "shadow"). - Tool
Call - Tool
Call Runtime - Tool
Invocation - Tool
Manifest - Per-tool manifest consumed by PolicyEngine (M3) and DAG scheduler (M4).
- Tool
Registry - Tool
Result - Result of a tool execution.
- Tool
Spec
Enums§
- Approval
Need - Whether a tool call needs user approval before execution.
- Approval
Requirement - Approval requirement for a tool.
- Footprint
Provenance - Where a footprint declaration came from (proposal §8.1.2).
- Function
Call Error - Parallel
Resource Key - Resource bucket for DAG / batch parallel scheduling (M4 consumer).
- Policy
Session Mode - Session mode slice consumed by policy rules.
- Resource
Lock Mode - Shared vs exclusive lock for one scheduling resource slot.
- Sandbox
Class - Sandbox enforcement tier derived from footprint (proposal §8.1).
- Schedule
Resource - Coarse scheduling resource (path-level refinement lives in runtime bridge).
- Spawn
Class - Process / privilege class for tools that spawn subprocesses.
- Tool
Call Source - Tool
Capability - Capabilities that a tool may have or require.
- Tool
Error - Errors that can occur during tool execution.
Traits§
Functions§
- build_
execution_ waves - Build execution waves as plan index groups (proposal §8.2 DAG batching).
- derive_
conservative_ footprint - Derive a conservative footprint from capability flags and the M1 union bit.
- optional_
bool - Helper to extract an optional bool field with default.
- optional_
str - Helper to extract an optional string field from JSON input.
- optional_
u64 - Helper to extract an optional u64 field with default.
- policy_
shadow_ stats - record_
policy_ shadow_ diff - Record a shadow comparison between legacy and engine plan flags.
- record_
scheduler_ shadow_ diff - Record a shadow comparison between legacy and DAG execution groups.
- required_
str - Helper to extract a required string field from JSON input.
- required_
u64 - Helper to extract a required u64 field from JSON input.
- resource_
lock_ order - Stable sort key for deadlock-free lock acquisition order.
- resource_
lock_ targets - Resources to lock before executing one tool plan (writes → exclusive, reads → shared).
- scheduler_
shadow_ stats - wave_
parallel_ eligible - Whether every plan in a wave may use the parallel executor path.