complior fix analyzes findings from your scan and applies remediation strategies. Every fix follows: structured plan → score prediction → diff preview → backup → apply → validate → evidence chain.
complior fix [--dry-run] [--ai] [--json] [--source scan | eval]
Principle: Fixer never invents compliance logic. All fixes are deterministic (templates + strategies). LLM only enriches document content with explicit --ai opt-in.
How it works
Discovery
Reads last ScanResult. Filters for type == 'fail' findings.
Planning
For each finding: finds matching strategy → builds FixPlan with actions (create/edit/splice).
Preview
Shows table with predicted score impact. Use --dry-run to stop here.
Apply
Backups original files → applies actions → resolves templates with passport data → re-scans project.
Validate
Checks: did the finding change from fail → pass? Records score delta.
Evidence
Records fix in evidence chain (.complior/evidence/) + undo history (.complior/fixes-history.json).
Commands
complior fix # Preview + apply all fixes
complior fix --dry-run # Preview only, don't apply
complior fix --ai # Apply + LLM enrichment for documents
complior fix --json # JSON output for CI/CD
complior fix --source eval # Fix from eval findings (default: scan)
TUI Fix page
Press F in TUI to open the Fix page:
Key Action SpaceToggle fix selection aSelect all nDeselect all dToggle diff preview EnterApply selected fixes
Fix Strategies All 18 strategies across 5 categories.
Document Generation How fixes generate compliance documents.