Wiki Lint Fix
Run batch validation on the vault and optionally auto-fix safe issues.
HARD-GATE
Tool
vault_lint
Parameters
| Param | Required | Description |
|---|---|---|
| fix | no | Auto-fix safe issues (default false) |
Protocol
- Call
vault_lintwithfix: false(report mode) - Categorize issues:
- Auto-fixable: duplicate edges, stale index entries
- Manual: broken wikilinks, orphan pages, missing frontmatter
- Report issue summary to calling tactic
- If calling tactic approves fix: call
vault_lintwithfix: true - Report what was fixed and what remains
Auto-Fix Scope
Safe to auto-fix:
- Duplicate edges → deduplicate (keep first occurrence)
- Stale index entries → remove from _index.json
Requires manual resolution:
- Broken wikilinks → need to determine correct target or remove link
- Orphan pages → need to find appropriate connections
- Missing frontmatter → need to determine correct values
Yield
Returns: { total_issues: number, errors: number, warnings: number, fixed: number }