# Shadow telemetry validation

Staging implementation observes Prime `context` and `before_provider_request` events without returning replacements or mutating event values.

## Data retained

- SHA-256 fingerprint of canonical, credential-redacted payload
- byte size and previous-payload byte size
- byte-level longest common prefix and ratio
- request number, timestamp, stage, session ID, branch leaf ID, and change classification
- bounded in-memory trace (128 entries); no payload or message content

## Commands


## Validation

`npm run check` runs typechecking, lint, the Prime-native sidecar tests, and Python context-object tests. Coverage includes canonical fingerprints, credential redaction, UTF-8 byte LCP, append/rewrite classification, branch/session isolation, bounded traces, no payload mutation/content retention, and fail-open cyclic-payload handling.
