Skip to main content
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

1

Discovery

Reads last ScanResult. Filters for type == 'fail' findings.
2

Planning

For each finding: finds matching strategy → builds FixPlan with actions (create/edit/splice).
3

Preview

Shows table with predicted score impact. Use --dry-run to stop here.
4

Apply

Backups original files → applies actions → resolves templates with passport data → re-scans project.
5

Validate

Checks: did the finding change from fail → pass? Records score delta.
6

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:
KeyAction
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.