Skip to main content

tri self

Dogfooding self-check — Trinity CLI tests itself.

Commands

CommandDescription
tri self test [--ci]Run 5 quality gates
tri self healthDoctor health report (alias)
tri self benchmarkPerformance benchmark (stub)
tri self helpShow sub-commands

Quality Gates

GateCheckThreshold
BUILDzig buildexit 0
TESTzig build testexit 0
FORMATzig fmt --check src/exit 0
HEALTHdoctor scan → health score≥ 70
VERDICTtoxic verdict score≥ SOLID (70+)

CI Mode

tri self test --ci exits with non-zero code (number of failed gates) for CI pipeline integration.

Example Output

🔬 TRI SELF TEST — Dogfooding Quality Gates
════════════════════════════════════════════

[1/5] BUILD — zig build ... ✅ PASS (exit 0)
[2/5] TEST — zig build test ... ✅ PASS (exit 0)
[3/5] FORMAT — zig fmt --check src/ ... ❌ FAIL (exit 1)
[4/5] HEALTH — doctor scan (threshold ≥ 70) ... ❌ FAIL (score=67/100 (INFECTED))
[5/5] VERDICT — toxic verdict (threshold ≥ SOLID) ... ❌ FAIL (score=65/100 (MEDIOCRE))

════════════════════════════════════════════
📊 RESULT: 2/5 passed, 3/5 failed