The audit/ directory is the persistent human feedback surface. It lets a user select or quote a passage, attach a severity and comment, and have the agent later resolve that feedback without losing it in chat history.
Feedback may come from:
plugins/obsidian-audit/web/audit/
20260425-143022-example.md
resolved/
Open feedback lives directly in audit/. Processed feedback moves to audit/resolved/. Do not delete feedback history unless the user explicitly asks.
Preferred frontmatter:
---
id: 20260425-143022-a1b2
target: wiki/concepts/example.md
target_lines: [45, 52]
anchor_before: "text before selection"
anchor_text: "selected text"
anchor_after: "text after selection"
severity: warn
author: user
source: obsidian-plugin
created: 2026-04-25T14:30:22+08:00
status: open
---
Body:
# Comment
The selected claim is stale. Source X says...
# Resolution
<!-- Filled when processed. -->
Severity order: error, warn, suggest, info.
python scripts/audit_review.py <wiki-root> --open when the standard layout fits.target_lines, anchor_text, and surrounding context.audit/resolved/.For stale anchors, do not silently drop the feedback. Re-anchor, ask the user, or defer with an explicit note.
audit-shared/Shared TypeScript utilities used by both feedback surfaces:
Use this when modifying the plugin or web viewer so both tools continue to write compatible audit files.
plugins/obsidian-audit/Obsidian plugin workflow:
Typical commands from the source stack:
cd audit-shared && npm install && npm run build
cd ../plugins/obsidian-audit && npm install && npm run build
npm run link -- "/path/to/vault"
Only run dependency installation when the user wants the plugin built locally.
web/Local web viewer workflow:
cd audit-shared && npm install && npm run build
cd ../web && npm install && npm run build
npm start -- --wiki "/path/to/wiki-root" --port 4175
The viewer renders Markdown, wikilinks, Mermaid, and KaTeX, shows wiki navigation, lists open audits for the current page, and lets the user select text to submit feedback.
Treat it as a local personal tool. If a port is in use, use another local port.
Run python scripts/lint_wiki.py <wiki-root> when the standard layout fits. Otherwise manually inspect:
Recommended settings:
raw/assets/.Useful plugins:
Small wikis can be navigated through the index/map. Larger wikis may use local search tools such as qmd.
Search is only for locating candidate pages. The agent should still read the relevant pages before answering.