Verification
This guide covers the lexicon verify command — the core of the verification pipeline. Verification runs gates, computes scores, checks coverage, and writes audit records.
Running Verification
Section titled “Running Verification”lexicon verifyThis executes the full pipeline:
- Loads gate definitions from
specs/gates.toml - Runs each gate command as a subprocess
- Loads the scoring model from
specs/scoring/model.toml - Maps gate results to scoring dimensions
- Computes the weighted score and verdict
- Writes an audit record to
.lexicon/audit/ - Prints a summary with gate results and score breakdown
Understanding the Output
Section titled “Understanding the Output”Gate Results
Section titled “Gate Results”Each gate reports one of:
- Pass — command exited with status 0
- Fail — command exited with non-zero status
- Skip — gate was in the skip list
- Error — command could not be executed
Score and Verdict
Section titled “Score and Verdict”The verdict follows this logic:
- If any required dimension failed → Fail
- If total score >= pass threshold (default 80%) → Pass
- If total score >= warn threshold (default 60%) → Warn
- Otherwise → Fail
Score Breakdown
Section titled “Score Breakdown”The lexicon verify output includes a detailed breakdown showing each dimension’s weight, value, and contribution to the total score.
Skipping Gates
Section titled “Skipping Gates”You can skip specific gates:
lexicon verify --skip doc-testsOnly gates with allow_skip = true may be skipped. Required gates with allow_skip = false cannot be skipped — the policy validator rejects the request.
CI Integration
Section titled “CI Integration”Add verification to your CI pipeline:
- name: Run lexicon verify run: lexicon verifySee the CI Integration guide for a complete GitHub Actions example.
Audit Trail
Section titled “Audit Trail”Every verification run is recorded as an audit entry in .lexicon/audit/. This provides a history of project health over time and ensures all verification results are attributable and reviewable.