satisfy_gate
Mark gate conditions as satisfied with evidence, such as confirming PR threads are checked, storing verification for 5 minutes.
Instructions
Satisfy a gate condition (e.g., after checking PR threads). Evidence is stored with a 5-minute TTL.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | Yes | Gate condition ID to satisfy (e.g., pr_threads_checked) | |
| evidence | No | Evidence text (e.g., "0 unresolved threads") |
Implementation Reference
- scripts/gates-engine.js:140-148 (handler)The core function that satisfies a gate by updating the gate state in a local file.
function satisfyCondition(conditionId, evidence) { const state = loadState(); state[conditionId] = { timestamp: Date.now(), evidence: evidence || '', }; saveState(state); return state[conditionId]; } - adapters/mcp/server-stdio.js:411-421 (handler)MCP tool handler for satisfy_gate, which calls the satisfyCondition utility.
case 'satisfy_gate': { if (!args.gate) { throw new Error('gate is required'); } const entry = satisfyCondition(args.gate, args.evidence || ''); return toTextResult({ satisfied: true, gate: args.gate, ...entry, }); }