<< All versions
Skill v1.0.1
currentAutomated scan100/100semantica-agi/semantica/provenance
+2 new
──Details
PublishedOctober 18, 2026 at 05:23 AM
Content Hashsha256:19bb1bc371cec8d3...
Git SHA1928f801040b
Bump Typepatch
──Files
Files (1 file, 1.7 KB)
SKILL.md1.7 KBactive
SKILL.md · 72 lines · 1.7 KB
version: "1.0.1" name: provenance description: Trace data lineage, source attribution, audit trails, and W3C PROV-O export in Semantica graphs. Uses ProvenanceManager.
/semantica:provenance
Lineage and audit trails. Usage: /semantica:provenance <task> [args]
lineage <entity_id> [--depth N]
python
import osfrom semantica.provenance import ProvenanceManagerdb_path = os.path.expanduser("~/.semantica/prov.db") # storage_path is passed toos.makedirs(os.path.dirname(db_path), exist_ok=True) # sqlite3.connect() unexpandedpm = ProvenanceManager(storage_path=db_path) # SQLite, or omit for in-memorychain = pm.lineage(entity_id, depth=3)full = pm.get_lineage(entity_id) # complete ancestrydown = pm.get_descendants(entity_id) # what this entity influenced
sources <entity_id>
python
srcs = pm.get_all_sources(entity_id) # every source that contributedprov = pm.get_provenance(entity_id) # the raw PROV entryhist = pm.revision_history(entity_id)
audit [--since <iso-date>] [--format table|json]
python
log = pm.audit_log(since="2026-01-01", format="table")between = pm.query_recorded_between(start, end)stats = pm.get_statistics()
export [--format turtle|json-ld|xml]
W3C PROV-O export — this is the regulator-facing artifact.
python
rdf = pm.export_prov(format="turtle", base_uri="https://example.org/prov/")
invalidate <entity_id> <agent_id> [--reason ...]
Mark an entity superseded without deleting history.
python
pm.invalidate(entity_id, agent_id, reason="source retracted")
check [--strict]
python
report = pm.check(strict=False) # integrity check over the provenance store