Autofix

Autofix is a bounded improvement that changes code to address a verified risk, then leaves the result for human review before it becomes part of the project.

What it means

An autofix is a narrow, reviewable code change generated to address a specific issue. It should have a clear reason, a bounded diff, and enough validation for a human to decide whether to merge it.

Why it matters for AI-written code

AI-written projects accumulate small risks quickly: weak tests, stale dependencies, confusing patterns, and security gaps. If every improvement waits for manual cleanup, the project drifts away from health faster than the team can recover it.

Guard and Fleet context

Guard uses autofix as part of the recurring audit cycle. It identifies weak areas, prepares focused improvements where safe, and verifies the result before treating the project as healthier.

How Enji Guard helps

Guard turns selected findings into reviewable pull requests and leaves unsafe or ambiguous work as issues. That keeps the project moving toward green without allowing automation to bypass human approval.