Data Audit
Audits the SPARTA pipeline data coverage.
Usage
# Run full audit
.agent/skills/data-audit/run.sh
# Run for specific run ID (points to specific DB path if needed)
.agent/skills/data-audit/run.sh --run-id <run-id>
Logic
Connects to SPARTA DuckDB and calculates coverage for:
- Controls: Base set.
- URLs: Controls mapped to at least one URL.
- Knowledge: Controls mapped to URLs that have extracted chunks.
- QRA: Controls that have generated QRA pairs.
Visualization
After generating coverage data, offer to visualize via /create-figure:
# Pipeline coverage as stacked bar chart
create-figure metrics --input audit.json --output coverage.png --type bar --title "SPARTA Pipeline Coverage"
# Coverage heatmap by category
create-figure heatmap --input audit.json --output coverage-heatmap.png
When to offer: After presenting coverage percentages, ask: "Want me to chart the pipeline coverage?"