AEGIS policy evaluators
Typed spending, temporal, lineage, contract and composition APIs.
openagent-aegis-policy exposes five modules. Each evaluator expects the corresponding typed policy and verified operation context.
| Module | Input and role |
|---|---|
spending | Transaction information and configured spending rules |
temporal | Time policy, current time and optional cooldown |
lineage | Lineage requirements and verified identity context |
contract | Contract policy and a described contract interaction |
composition | Combine policy outcomes under the configured composition rule |
Apply policy before execution
Build context from authenticated identity and the actual requested operation. Evaluate the relevant policies and require the intended result before signing, issuing a credential or calling a tool. Do not allow the caller to substitute a weaker policy or fabricated spending history.
Policy evaluation is separate from persistence of usage and enforcement at the execution boundary. A spending evaluator does not automatically create a reliable transaction ledger. A contract evaluator is not unrestricted execution of arbitrary code.
Read the exact policy types, arguments and results. Exercise deny/no-match, boundary times, missing lineage, over-budget requests and composition behavior using the resolved version you deploy.