Parity

Path: loom-sprint-scaffold/loom/docs/PARITY.mdRelative: loom/docs/PARITY.mdSubproject: loom-sprint-scaffoldCategory: documentation
Lines: 95Bytes: 3,098Imports: 0Exports: 0

Content Preview

  1. # LOOM Parity Gate
  2. The parity gate ensures that the monitor decision path produces **byte-identical output**
  3. across consecutive runs and across different runtimes (bun vs workerd).
  4. ## Interactive Parity Check
  5. Run the parity script **twice** and diff the outputs:
  6. ```bash
  7. # From the loom-sprint-scaffold/loom directory:
  8. bun run scripts/parity-check.ts > /tmp/parity-1.json
  9. bun run scripts/parity-check.ts > /tmp/parity-2.json
  10. diff /tmp/parity-1.json /tmp/parity-2.json
  11. ```
  12. **Expected result:** no