Commit 091ad47
Add LICENSE, versioned evidence schema, pluggable normalizer, property tests
- Apache-2.0 LICENSE file (enterprise blocker fixed)
- Evidence pack JSON Schema (src/evidence_schema.json) with EVIDENCE_SCHEMA_VERSION
constant embedded in every pack. Consumers MUST check schema_version before parsing.
- `usageguard describe` CLI command dumps the schema specification
- Normalizer trait (dyn Normalizer) replaces hardcoded alias map:
- BuiltinNormalizer: default 90+ aliases (Stripe, Orb, LangChain, CSV)
- Pipeline::with_normalizer(Box<dyn Normalizer>) for custom sources
- No recompile needed to add new event formats
- Property tests (proptest): seal/verify round-trip, tamper detection,
wrong-key detection across random batches of 1-20 events
- Custom normalizer integration test (end-to-end with Pipeline)
- Evidence schema validation test
61 tests green. Zero warnings.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 22cac0d commit 091ad47
10 files changed
Lines changed: 844 additions & 33 deletions
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 | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
0 commit comments