Pre-action gatekeeper check
pre_action_checkVerify a code change is justified by providing an executable reproduction of the problem before editing files. Blocks modifications unless evidence demonstrates the task is unsolved.
Instructions
Gatekeeper check. Call this BEFORE modifying any code. It verifies whether the change is justified by evidence and whether the task is already solved. If not justified, the agent MUST NOT edit files. Supply an executable reproduction under reproduction (a bare command plus args, never a shell string): free-text evidenceOfProblem alone is never enough to obtain an "allow".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runTests | No | Run the project test suite as extra evidence. Default false. | |
| reproduction | No | An executable command that reproduces the problem. | |
| affectedFiles | No | Files the agent intends to modify. | |
| proposedChange | Yes | The diff, or a natural-language description, of the proposed change. | |
| taskDescription | Yes | What the agent is trying to accomplish. | |
| evidenceOfProblem | No | Free-text proof that a problem exists. Not executable on its own; supply `reproduction` to obtain an allow decision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | What the state inspection stage found. | |
| reason | Yes | One or two sentences explaining the verdict. | |
| decision | Yes | The verdict for the proposed change. | |
| evidence | Yes | What the reproduction stage found. | |
| nextSteps | Yes | Ordered, actionable instructions. |