Expand description
Anonymous telemetry payload construction.
Builds a TelemetryPayload from benchmark results and hardware data.
The payload is strictly hardware data only — no personal information.
§Privacy (VAL-TELE-005, VAL-TELE-006)
- No username, hostname, home directory paths, email, IP addresses
- All payload keys are from a predefined allow-list of hardware/benchmark fields
- PII validation runs before any payload is finalized
§Schema (VAL-TELE-007)
- Payload conforms to JSON schema
- Serialized payload does not exceed 64 KiB
Constants§
- PAYLOAD_
ALLOW_ LIST - Allow-list of top-level keys permitted in the telemetry payload. No other keys are allowed — this prevents accidental inclusion of PII.
Functions§
- build_
payload - Build a telemetry payload from hardware info and benchmark outcome.
- serialize_
payload - Serialize a payload to JSON, ensuring it meets all constraints.
- validate_
payload - Validate that a serialized payload conforms to all constraints: