martin_preflight
Validate the run contract before execution to catch engine, verifier, path scope, or budget issues. Use after planning and before running to prevent wasted spend.
Instructions
Read-only validation of the exact run contract before execution or spend. Use after planning and before martin_run to check engine, verifier, path scope, and budget. Do not use as execution or completion proof. Next: call martin_run if allowed, otherwise resolve the reported blocker.
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 |