Skip to main content

Module guard

Module guard 

Source
Expand description

AgentGuard — Rust mirror of tools/tf-types-ts/src/core/guard.ts.

Accepts a parsed agent-contract value (as serde_json::Value so the Rust crate doesn’t need to generate a full typed binding here), and answers guard queries with a structured GuardDecision.

Structs§

AgentGuard
GuardEventStub
GuardQuery
IndexedAction
NegativeCapability

Enums§

EnforcementLevel
GuardDecision

Functions§

apply_enforcement_level
Apply the EnforcementLevel filter described in DECISIONS.md “Progressive enforcement levels are core”. Maps the raw rule decision to the actual decision the caller will execute against.