martin_preflight
Validate a coding task's budget, constraints, and verification plan before execution to prevent runaway loops and token waste.
Instructions
Read-only validation of a planned Martin run before any execution or spend. This is the last required step before martin_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model override passed to the CLI. | |
| engine | No | Which agent CLI would be used. Defaults to claude. | |
| maxUsd | No | Hard budget ceiling in USD. | |
| context | No | Optional issue context carried into the run contract. | |
| maxTokens | No | Maximum total tokens across all attempts. | |
| objective | Yes | The coding task to validate. | |
| projectId | No | ||
| maxMinutes | No | Estimated wall-clock minutes allowed for the run contract. | |
| policyPack | No | ||
| deniedPaths | No | Repo-relative path globs Martin must never modify. | |
| maxCommands | No | Estimated maximum commands allowed for the run contract. | |
| workspaceId | No | ||
| allowedPaths | No | Repo-relative path globs Martin may modify. | |
| maxIterations | No | Maximum number of loop attempts. | |
| maxFilesChanged | No | Estimated maximum files changed for the run contract. | |
| verificationPlan | No | Commands that must all exit 0 for completion. | |
| workingDirectory | No | Optional repo-root override resolved under the MCP workspace root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| summary | Yes | ||
| warnings | Yes | ||
| execution | Yes | ||
| readiness | Yes | ||
| normalized | Yes | ||
| receiptScope | Yes |