lib/cmetrics/docs/ai/bug-fix.md
Produce a minimal, regression-tested fix with explicit compatibility and memory ownership review.
Use after an observed defect has enough evidence to justify changing CMetrics.
Run the focused CTest target, then scripts/agent-verify.sh. Ownership fixes
also require the applicable checks in memory-safety-review.md. Format changes
require round-trip and malformed-input coverage.
Report root cause, fix, regression test, exact commands/results, compatibility impact, dependency impact, and unresolved risks.
Stop when the intended behavior requires a maintainer decision, the fix belongs in a dependency, a public or wire contract must change without agreement, or a safe reproducer cannot be created.