()
| 29 | } |
| 30 | |
| 31 | function usage() { |
| 32 | return [ |
| 33 | 'Usage: node scripts/verify-telemetry-integrity.js [--project-root path] [--json] [--strict-legacy]', |
| 34 | ' node scripts/verify-telemetry-integrity.js --file .planning/telemetry/agent-runs.jsonl', |
| 35 | '', |
| 36 | 'Verifies hashed telemetry and artifact JSONL records. Legacy records are reported,', |
| 37 | 'but allowed unless --strict-legacy is set.', |
| 38 | ].join('\n'); |
| 39 | } |
| 40 | |
| 41 | function render(report) { |
| 42 | const lines = []; |