Expand description
Provenance write helpers — labor DID labelling and contestability.
This module provides functions that write PROV-O quins to PROVENANCE_CONTEXT
and wire contestability disputes into the DagStore Merkle-DAG.
Named graph contexts:
PROVENANCE_CONTEXT = q_hash("urn:qualia:context:provenance")
CONTEST_CONTEXT = q_hash("urn:qualia:context:contest")
Constants§
Functions§
- contest_
assertion - Record a contestability dispute against
disputed_hash. - full_
attribution - Full PROV-O labor attribution: creator + source + generated-at.
- is_
contested - Return
trueif the quin slice contains any contestability record fordata_hash. - label_
with_ worker_ did - Record that
data_hashwas labelled byworker_didatts(ms since epoch). - labellers
- Collect all worker DIDs that labelled
data_hash. - record_
cleaning - Record that
data_hashwas cleaned (normalised/de-duplicated) byagent_did. - record_
moderation - Record that
data_hashwas moderated (reviewed + approved or rejected) bymoderator_did. - resolve_
contest - Record resolution of a dispute.
- write_
activity - Write an activity record (labelling session, cleaning run, etc.) to
PROVENANCE_CONTEXT.