Linting and review
Knowledge packs drift unless they are checked. Agent Knowledge treats linting as a first-class workflow.
If you are setting up the minimal loop, start with the health-check section in the knowledge engineering loop.
What to lint
A linter should detect:
- missing required frontmatter
- broken file references
- orphan wiki pages
- duplicated entities
- stale claims
- claims without sources when grounding is required
- contradictions between compiled views and wiki pages
- raw sources accidentally copied into runtime views
- prompt-injection text in sources
- secrets or credentials in sources
Review report
Write review runs to runs/:
text
runs/
└── lint-2026-05-01.md1
2
2
Example report:
markdown
# Lint report: 2026-05-01
Status: needs-review
## Findings
- Missing source anchor for pricing claim in `compiled/facts.md`.
- `wiki/entities/acme-widget.md` conflicts with `compiled/boundaries.md` on medical claims.
## Required actions
- Add source anchor for pricing.
- Ask product owner to resolve compliance claim.1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
Human confirmation
Agents can propose edits, but status changes should be explicit:
yaml
status: ready
trust: user-confirmed1
2
2
For official trust, require an organization-defined approval process.