| name | consent-trace |
| description | Trace consent provenance. Auto-run when: work touches files containing personal data (profiles/, agents processing person names), after adding new data sources or storage, or user asks about consent or data protection. Invoke proactively without asking. |
Check consent coverage across all stored data:
curl -s http://localhost:8051/consent/coverage | python3 -c "import sys,json; d=json.load(sys.stdin); print(f\"Consent coverage: {d.get('with_consent_label',0)}/{d.get('total_points',0)} points labeled ({d.get('coverage_pct',0)}%)\nWith provenance: {d.get('with_provenance',0)}\nUnlabeled (public): {d.get('unlabeled',0)}\")"
To trace consent for a specific file, use:
curl -s "http://localhost:8051/consent/trace?source=/path/to/file.md" | python3 -m json.tool
To list active consent contracts:
curl -s http://localhost:8051/consent/contracts | python3 -m json.tool
Explain the results: what consent labels mean, which contracts justify data storage, what would happen on revocation, and what data is unprotected (public by default).