memory_guard_before
Preflight memory check before executing an action, recalling past failures and warnings to block risky moves or advise caution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the action. | |
| mode | No | Underlying capsule mode. Defaults to conservative. | |
| tool | No | Tool or command family about to be used, e.g. Bash, npm test, Edit, deploy. | |
| files | No | File paths to fingerprint in the required guard receipt. | |
| limit | No | Max recall results to consider before preflight categorization. | |
| scope | No | agent restricts memory recall to this server agent identity. shared searches the whole store. Defaults to agent. | |
| action | Yes | Natural-language description of the action the agent is about to take. | |
| strict | No | If true, high-severity memory warnings produce decision=block instead of caution. | |
| session_id | No | Session identifier for grouping the required guard receipt event. | |
| budget_chars | No | Capsule budget in characters. | |
| include_status | No | Include memory health in the response and warning calculation. Defaults to true. | |
| include_capsule | No | If false, omit the embedded Memory Capsule from the response. | |
| failure_window_hours | No | How far back to check failed tool events. Defaults to 168 hours. | |
| acknowledge_prior_failure | No | Acknowledge an exact prior failure and request one audited caution-level retry. Does not bypass unrelated Guard blocks. |