Skip to main content

Module provenance

Module provenance 

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

CONTEST_CONTEXT
PROVENANCE_CONTEXT

Functions§

contest_assertion
Record a contestability dispute against disputed_hash.
full_attribution
Full PROV-O labor attribution: creator + source + generated-at.
is_contested
Return true if the quin slice contains any contestability record for data_hash.
label_with_worker_did
Record that data_hash was labelled by worker_did at ts (ms since epoch).
labellers
Collect all worker DIDs that labelled data_hash.
record_cleaning
Record that data_hash was cleaned (normalised/de-duplicated) by agent_did.
record_moderation
Record that data_hash was moderated (reviewed + approved or rejected) by moderator_did.
resolve_contest
Record resolution of a dispute.
write_activity
Write an activity record (labelling session, cleaning run, etc.) to PROVENANCE_CONTEXT.