Parity Check
Path:
loom-sprint-scaffold/loom/scripts/parity-check.tsRelative: loom/scripts/parity-check.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 170Bytes: 6,075Imports: 2Exports: 0
Content Preview
- #!/usr/bin/env bun
- /**
- * Parity Check — byte-stable decision log for LOOM monitor decision path.
- *
- * Replays a scripted trace through the monitor decision path and emits a
- * canonical JSON decision log (stable key order) to stdout.
- *
- * Usage:
- * bun run scripts/parity-check.ts
- *
- * The output is byte-stable across consecutive runs — pipe to a file and diff:
- * bun run scripts/parity-check.ts > /tmp/parity-1.json
- * bun run scripts/parity-check.ts > /tmp/parity-2.json
- * diff /tmp/