consent
consent
¶
Explicit user consent, read fresh at each collection/submission boundary.
Classes¶
ConsentState
¶
Bases: str, Enum
Missing or unreadable records never imply permission.
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.