propose_minimal_fix
Generate a minimal, high-confidence patch for a diagnosed test failure, returning a unified diff with explanation, confidence, and risk level.
Instructions
Generate the smallest possible high-confidence patch for a diagnosed root cause. Always prefer minimal edits. Returns a unified diff, explanation, confidence, and risk level. Call diagnose_test_failure first when possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| git_diff | No | ||
| language | No | ||
| diagnosis | No | Output from a previous diagnose_test_failure call. Strongly recommended. | |
| framework | No | ||
| constraints | No | Any constraints the agent must respect (e.g. 'do not change public API', 'keep existing test structure') | |
| test_output | Yes | ||
| source_files | Yes | ||
| root_cause_id | No | Which ranked root cause to fix (1-based). Defaults to 1. |