Autofix Harness¶
Component id: autofix
Source contract: BlockContract for autofix.
Overview¶
The Autofix Dogfood Harness is a single frozen component that hardens a codebase toward production readiness. It inspects the code, picks the highest-yield next step, applies a propose-only fix in an isolated git worktree, tests the result through the correct interface (GUI / TUI / REST / MCP / shell), records traces in workspace memory, reflects with a T3 self-improvement loop, extracts reusable algorithms, and repeats.
The harness never auto-merges. Every proposed change stops at a human-approval gate; the founder merges. It reuses the existing G6 self-improvement engine (reliability/self_improve/), patch server, autonomy governor, and reliability orchestrator rather than re-implementing them. See docs/autofix/GOAL.md for the full mission brief.
Good at¶
- selecting the highest-yield next reliability fix from an audit backlog
- applying propose-only patches in an isolated git worktree
- testing a change through its real interface (GUI / TUI / REST / MCP / shell)
Not suited for¶
- auto-merging or applying changes without human approval
- fixes that cannot be validated through an existing interface
Mitigates¶
Known Failure Modes¶
audit_source_missing: exceptionsurface_unavailable: degradation_flag
State Surface¶
- Persistence:
project - Queryable via:
scorecard - Retention:
90d
Extension Points¶
training_signal_inputs:('reliability_incidents',)validation_gate:meta_eval_suiteallowed_mutation_surfaces:('prompts', 'detector_thresholds')
Verification¶
- Method:
invariant_tier_t3 - Human review gate:
False - Fallback block:
none