Expand description
Behavioral sequence guard – enforces tool ordering policies using the session journal.
This guard checks the tool invocation sequence recorded in the session journal against configurable ordering policies:
- Required predecessors: tool X can only run after tool Y has been invoked.
- Forbidden sequences: tool X cannot be invoked immediately after tool Y.
- Max consecutive: limits on how many times the same tool can run in a row.
- Required first tool: the first tool in a session must match a specific name.
The guard fails closed: if the session journal is unavailable, access is denied.
Structs§
- Behavioral
Sequence Guard - Guard that enforces tool ordering policies using the session journal.
- Sequence
Policy - Policy configuration for the behavioral sequence guard.