Commit 695b8c8
Doug Hamaker
Add dispute example bundle: end-to-end billing dispute proof
examples/dispute/ contains a complete scenario:
- raw_events.json: 5 synthetic AI usage events (Acme Corp, 37,500 requests)
- evidence.json: sealed evidence pack (schema 0.2.0, key_id dispute-demo-2026-q2)
- evidence_tampered.json: same pack with event[1].quantity changed (4100 -> 2900)
- verify_valid.txt: exact output of usageguard verify on intact pack
- verify_tampered.txt: exact output on tampered pack (Event 1: leaf hash mismatch)
- README.md: scenario, file descriptions, try-it commands, authority note
No new CLI commands. No runtime changes.
4 regression tests:
- bundled valid evidence verifies
- bundled tampered evidence fails on event 1
- raw event count matches sealed event count
- tampered event has different quantity, others unchanged
80 Rust + 16 Python = 96 tests green.1 parent e2a0b38 commit 695b8c8
8 files changed
Lines changed: 987 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments