1. Read before changing
Require the AI to inspect the authoritative design, relevant code and configuration before proposing a fix.
AI can accelerate design, implementation, debugging, review and testing. The important step is to make the project rules and verification stronger than the model's urge to produce a plausible answer quickly.
Require the AI to inspect the authoritative design, relevant code and configuration before proposing a fix.
Avoid “make the symptom disappear” patches. Ask which mechanism or invariant is actually wrong.
Patch the smallest correct region and preserve valid logic. Large rewrites create unnecessary new failure surface.
Tunable behavior belongs in configuration, not magic constants embedded in code.
Add a regression test that would have caught the original failure. Deterministic systems should remain deterministic.
A green pipeline is useful evidence, not the finish line. Run the actual behavior and inspect the result.
Goal: fix the underlying defect, not hide the symptom. Before proposing code: - read the relevant design/rules and cite them - trace the current behavior end to end - identify the first point where actual behavior diverges from intended behavior - distinguish root cause from downstream symptoms Constraints: - no silent fallback - no hardcoded tuning values - reuse existing utilities/mechanisms - patch, do not rewrite unrelated valid logic - preserve deterministic decision paths Output: 1. observed failure 2. intended behavior and authority 3. root cause 4. smallest complete fix plan 5. regression test 6. real-run verification plan Do not call the work complete merely because the code compiles or tests pass.