Index
telemetry
¶
Opt-in community telemetry: consent and privacy primitives.
Collection and submission are separate from user-global consent. No import in this package starts a network client or creates a consent record. See docs/telemetry.md for the data policy, inspection, revocation, and purge.
Classes¶
TelemetryCollector
¶
Capture sanitized score and live sheet outcomes for later inspection.
Callers own error isolation: a storage failure must never fail a job. Consent is user-global, independent of score-controlled telemetry settings.
Source code in src/marianne/telemetry/collector.py
Methods:¶
collect
¶
Stage one envelope only when enabled and the current grant is valid.
Source code in src/marianne/telemetry/collector.py
TelemetryConfig
¶
Bases: BaseModel
Default-off collection with local inspection before optional submission.
ConsentRecord
¶
Atomic, private consent record independent of any score's contents.
Do not cache this object’s state: long-running daemons must observe revocation. A caller may override the path for isolated tests, never via score YAML.
Source code in src/marianne/telemetry/consent.py
Attributes¶
Methods:¶
grant
¶
Persist explicit permission, retaining the ID of an existing grant.
collection_transaction
¶
Serialize grant/revoke with authorized appends across every spool.
Always acquire this before a spool lock. Revocation then waits for any already-authorized append and no append can finish after revoke returns.
Source code in src/marianne/telemetry/consent.py
revoke
¶
Stop collection first, then optionally remove the supplied local spool.
Source code in src/marianne/telemetry/consent.py
purge_spool
staticmethod
¶
Remove staged envelopes; a missing spool is already purged.
ConsentState
¶
Bases: str, Enum
Missing or unreadable records never imply permission.
Functions:¶
sanitize_outcome
¶
Copy outcome metrics and recursively redact nested diagnostic text.
sanitize_score
¶
Copy score data, removing private strings and telemetry transport settings.