Overview
A capability plan is a declarative execution block inside CREATE AGENT CAPABILITY. It lets the database prepare context, run governed memory recall, invoke read-only capabilities, perform hybrid search, count/sum rows, and evaluate deterministic rules.
Plans keep policy and evidence preparation out of prompt glue. The LLM can explain or choose among allowed outputs, while Synapsor handles lookup scope, filters, evidence resources, and the structured payload.
Nested INVOKE steps are limited to read-only capabilities, recursive invocation is rejected, and plan steps are cataloged with the capability version.
Developer notes
- Use PLAN when a capability needs repeatable retrieval, checks, and evidence beyond a simple context.
- Use hidden ARG and SESSION values for tenant, principal, thread, branch, and object scope.
- Emit structured payload fields for settlement policies; do not make policies inspect arbitrary prose.
- Prefer handles and token budgets when capability output will be passed back into an LLM.