Skip to main content

metrics.validate-csv

Type: commands | Track: Enterprise

Cross-validate all CSV files in docs/static/data/ against actual framework state. Checks counts, assignee names, and data freshness. Delegates to qa-engineer.


Quick Start

Invoke via ADLC command interface: /metrics:validate-csv


Validation Checks

CheckSourceTarget CSV
Agent count.claude/agents/*.md file countcomponents.csv Agents row
Command count.claude/commands/**/*.md recursivecomponents.csv Commands row
DORA freshnessCSV updated field vs current datedora.csv — flag if >7 days stale
Story IDs uniquestories.csv ID columnNo duplicate story IDs
Story states validstories.csv status columnOnly known states allowed
Assignee namesstories.csv assignee columnNames match agent registry

Benefits

  1. Catches drift between actual framework state and CSV SSOT — prevents NO_ESTIMATED_COUNTS anti-pattern in retrospectives and standups
  2. Validates DORA freshness — stale DORA data produces inaccurate ceremony outputs
  3. Prevents THIN_STORY_INFLATION — validates story records have required fields (AC, KR mapping, points)
  4. Single command replaces manual cross-referencing across 6+ CSV columns

When to Use

AttributeDetail
PersonaQA Engineer
TriggerData integrity check — before a sprint ceremony (standup, review, retro) to ensure CSV data is accurate, or after a sprint planning session when multiple stories and components were added
Business ValueCross-validates CSV data vs framework state — prevents ceremonies from reporting inaccurate metrics (e.g., component counts that are off by 3, stale DORA values from last sprint); evidence of data integrity for governance audits
FrequencySprint

Example: As a QA Engineer, I need to validate CSV data before the sprint review because the review template reads from stories.csv and components.csv, and any drift between actual state and CSV values will produce an inaccurate stakeholder report. I run /metrics:validate-csv which cross-validates agent/command/skill counts against actual directory scans, checks DORA freshness, and validates story state transitions, producing a PASS/FAIL report with specific drift items to remediate.

Delegates to qa-engineer. Reads CSV and framework files only — no mutations.