gate
Validates specs or tickets for required fields, frozen state, hash integrity, and HEAD evidence, returning pass/fail with missing items before work proceeds.
Instructions
Deterministic evidence gate. Checks a spec (fields complete, frozen, hash intact) or a ticket (acceptance present, spec frozen and unchanged, evidence recorded at HEAD, review evidence when required). Returns pass/fail with the missing items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>"
},
"name": "gate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory used for the git HEAD lookup | |
| head | No | Override HEAD commit for the evidence check | |
| target | Yes | Spec reference (NNN, NNN-slug, path) or ticket id (ticket-NNN) | |
| project | No | Project slug (auto-detected if omitted) | |
| workspace_path | No | Absolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace. |