memory_sentinel_create
Persist a watching sentinel that triggers on timers, thresholds, patterns, or webhooks to gate linked actions.
Instructions
Persist a watching sentinel and optional gates on existing linkedActionIds. Supply config as JSON: timer needs positive durationMs; threshold needs metric, operator gt/lt/eq and numeric value; pattern needs a pattern string; webhook needs a path. Timers schedule a local callback; other types rely on checks or external triggering. Returns {success,sentinel} and records audit state. Use memory_checkpoint for a manually resolved external gate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Sentinel name | |
| type | Yes | Type: webhook, timer, threshold, pattern, approval, custom | |
| config | No | JSON config (timer: {durationMs}, threshold: {metric,operator,value}, pattern: {pattern}, webhook: {path}) | |
| expiresInMs | No | Auto-expire after ms | |
| linkedActionIds | No | Comma-separated action IDs to gate |