| name | bug-fix |
| description | Route bug-fix using exact migration registry [{"unit":"bug-fix/default","routing":{"positive_triggers":["Correct the invoice rounding regression and add a test that proves the root cause.","Fix the failing request parser after reproducing the error and tracing its execution path.","Resolve this production behavior discrepancy with the narrowest tested code change."],"negative_boundaries":["Diagnose why the parser fails but do not change any files.","Implement a new invoice discount feature from the approved specification.","Review the current diff without modifying production code."]}}]. |
Fix a Bug
Restore an intended invariant through evidence, a narrow correction, and regression proof.
Workflow
- Reproduce the failure or establish a concrete counterexample. Record the exact command, input, output, and affected path when available.
- Trace the real execution path from entry point to the violated invariant. State a falsifiable root cause; do not patch only the visible symptom.
- Define the smallest acceptable behavior change and its regression case. Preserve unrelated user changes and repository conventions.
- Apply the narrowest correction. Avoid speculative cleanup, new features, and broad restructuring.
- Add or strengthen a regression test that fails for the original behavior and passes with the correction when feasible. If a reliable test cannot be added, explain the concrete limitation and substitute evidence.
- Complete focused checks, then the repository's sd0x review and deterministic verification workflows. Any post-review fix invalidates the previous fingerprint and requires review again.
Result
Report the reproduction, root cause, changed invariant, regression coverage, executed checks, and any residual risk. Do not claim either gate without runtime-recorded evidence for the current fingerprint.
{
"positive_triggers": [
"Correct the invoice rounding regression and add a test that proves the root cause.",
"Fix the failing request parser after reproducing the error and tracing its execution path.",
"Resolve this production behavior discrepancy with the narrowest tested code change."
],
"negative_boundaries": [
"Diagnose why the parser fails but do not change any files.",
"Implement a new invoice discount feature from the approved specification.",
"Review the current diff without modifying production code."
]
}