Skip to main content

Module payload

Module payload 

Source
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: