Licensing, Consent, and Data-Use Signals › Building an auditable manifest

Michael BrenndoerferNovember 25, 20262 min read
Language AI HandbookAll chapters
Part 21 of 67Data Governance, Provenance, and Synthetic Ecosystems
Chapter 150Licensing, Consent, and Data-Use Signals › Building an auditable manifest
Reading section 12 of 16 · Building an auditable manifest · 2 minSection 12 of 16 · 2 min

Section 12 of 16 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Keep the example manifest deterministic for fixed inputs and policy version. Store the reasons beside the decision, so a later reviewer can reproduce the result and see which checks led to it.

PythonIn [25]
CollapseExpand
def fingerprint(record):
    payload = json.dumps(
        record, sort_keys=True, separators=(",", ":"), ensure_ascii=False
    )
    return hashlib.sha256(payload.encode("utf-8")).hexdigest()


def captured_signals(doc):
    signals = {
        spec.name: getattr(doc, spec.name)
        for spec in fields(doc)
        if spec.metadata.get("signal", True)
    }
    signals["jurisdiction"] = doc.jurisdiction.value
    return signals


manifest = {
    "manifest_version": "2.0",
    "policy": "handbook-2025-11-v2",
    "config": {"honor_registries": True},
    "purpose": "commercial_training",
    "checked_at": "2025-11-01T00:00:00Z",  # fixed so the output is reproducible
    "documents": [],
}

for doc in corpus:
    signals = captured_signals(doc)
    res = resolve(doc, Purpose(manifest["purpose"]), **manifest["config"])
    manifest["documents"].append(
        {
            "doc_id": doc.doc_id,
            "host": doc.host,
            "text_sha256": hashlib.sha256(
                doc.excerpt.encode("utf-8")
            ).hexdigest(),
            "signals": signals,
            "signal_sha256": fingerprint(signals),
            "jurisdiction": res.jurisdiction,
            "decision": res.decision,
            "privacy_gate": res.privacy_gate,
            "obligations": res.obligations,
            "reasons": res.reasons,
            "triggers": res.triggers,
        }
    )
ConsoleOut [26]
CollapseExpand
{
  "doc_id": "forum-us",
  "host": "forum.example",
  "text_sha256": "6f69fe65e690f6a774d05948d5d9cb8f0ce13253260a2f6cb6d30585c52e03fe",
  "signals": {
    "doc_id": "forum-us",
    "host": "forum.example",
    "license_expr": "CC-BY-NC-4.0",
    "tos_training": "allowed",
    "robots_allowed": true,
    "tdm_reserved": false,
    "registry_optout": false,
    "personal_data": true,
    "jurisdiction": "US"
  },
  "signal_sha256": "15b7efd2c7c14aed720f32812b7540c6bcc360ea36c188ae1f3c07f74b10b2de",
  "jurisdiction": "US",
  "decision": "exclude",
  "privacy_gate": "hold_before_use",
  "obligations": [
    {
      "stage": "before_release",
      "task": "list the source in the data card"
    },
    {
      "stage": "before_use",
      "task": "privacy review: lawful basis, minimisation, erasure path"
    }
  ],
  "reasons": [
    "CC BY-NC 4.0: non-commercial clause",
    "CC BY-NC 4.0: attribution",
    "contains personal data"
  ],
  "triggers": [
    "non_commercial",
    "attribution",
    "personal_data"
  ]
}

The manifest preserves typed signal values, the jurisdiction, the purpose, configuration and reason codes. The SHA-256 values fingerprint the UTF-8 excerpt and the canonical JSON signals separately. The excerpt is absent from the signal record and the resolver never reads it. Replay this fixture with the saved policy version, configuration, purpose and typed signals. A production manifest also needs references to the archived body, timestamped observations and underlying legal instruments. Privacy holds and obligations include the stage at which work is due.

ConsoleOut [27]
CollapseExpand
allow                     2
allow_with_obligations    3
review                    2
exclude                   4

- [at_generation] filter verbatim code reproduction
- [before_release] list the source in the data card
- [before_release] track share-alike sources for release review
- [before_use] privacy review: lawful basis, minimisation, erasure path
- [before_use] verify the Art. 4 basis and record the reservation check date

The list above pools tasks across all screening decisions, including review and exclusion. Assign work from each included record’s own stage and task, and keep review or exclusion tasks alongside their recorded decision. In the commercial fixture, the excluded forum record contributes the privacy-review item.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy