Internet-Draft Corpus Compliance Evidence Chain (CCEC) November 2026
Ding Expires 1 June 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-author-ai-corpus-compliance-evidence-00
Published:
Intended Status:
Informational
Expires:
Author:
A. Ding
Tsinghua University

A Clause-Level Compliance Evidence Chain and Provenance Manifest Format for Domain-Specific AI Training and Evaluation Corpora

Abstract

Domain-specific Large Language Models (LLMs) deployed in regulated industries such as finance rely heavily on curated training and evaluation corpora. However, existing dataset packaging practices rarely preserve item-level provenance, auditable processing lineage, clause-level regulatory compliance checks, and reproducible benchmark validation within a single interoperable structure.

This document specifies the Clause-Level Compliance Evidence Chain (CCEC), a JSON-based data model and serialization format that binds corpus items to verifiable evidence across four lifecycle stages: question-answer generation, data processing, compliance review, and capability evaluation. The format enables automated corpus intake inspection, replayable compliance auditing, and cross-organizational reuse of domain benchmarks. An open-source reference implementation targeting financial corpora is documented to demonstrate operational feasibility.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 1 June 2027.

▲

Table of Contents

1. Introduction

The adoption of Large Language Models (LLMs) in regulated sectors--most notably financial services--places stringent accountability requirements on training, fine-tuning, retrieval, and evaluation corpora. Across industry practice, three coupled operational gaps recur:

  1. Unverifiable provenance and compliance: Source attribution, licensing terms, and regulatory constraints are frequently stripped during multi-hop ingestion and cleaning, preventing item-level compliance verification.
  2. Lack of a shared quality yardstick: Generic text heuristics (e.g., perplexity or lexical deduplication) fail to capture domain-critical defects such as misaligned financial tables, reporting-basis mismatches, or unsupported numerical assertions.
  3. Scarcity of auditable gold standards: Without traceable links between evaluation items, authoritative source disclosures, and expert verification records, corpus quality improvements cannot be objectively validated.

Existing documentation artifacts such as Datasheets for Datasets [GEBRU2021] provide valuable narrative context at the dataset level, but they are neither machine-enforceable nor granular enough to support item-level, clause-by-clause regulatory auditing.

This document defines the Clause-Level Compliance Evidence Chain (CCEC), a lightweight, JSON-serialized evidence manifest format [RFC8259] designed to accompany AI corpus items throughout an integrated four-stage governance-evaluation lifecycle: (1) QA generation, (2) data processing, (3) compliance review, and (4) capability evaluation. While motivated by financial disclosures (annual reports, corporate announcements, and research reports), the data model is domain-agnostic and applicable to other regulated domains such as healthcare, legal, and public administration.

1.1. Requirements Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2. Terminology

Corpus Item
A discrete unit of training or evaluation data (e.g., a question-answer pair, document passage, or instruction-response tuple) identified by a persistent item_id.
Source Anchor
A machine-resolvable pointer locating the exact passage, table cell, section, or footnote in an authoritative source document from which a Corpus Item is derived.
Operator
A versioned, parameterized data transformation or scoring component executed within a declarative governance pipeline.
Clause-Rule-Evidence Tuple
A structured assertion binding a specific legal, regulatory, or internal-policy clause to an executable decision rule and the observed verification evidence.
Compliance Evidence Chain (CCEC)
An ordered, tamper-evident JSON record capturing provenance, processing lineage, clause-level compliance verdicts, and benchmark evaluation results for a Corpus Item or Corpus Batch.

3. Integrated Governance-Evaluation Lifecycle

A conforming CCEC implementation organizes corpus production into four sequential stages coupled by a shared evidence ledger:

+-------------+  +--------------+  +--------------+  +--------------+
| 1. QA       |->| 2. Data      |->| 3. Compliance|->| 4. Capability|
| Generation  |  | Processing   |  | Review       |  | Evaluation   |
+-------------+  +--------------+  +--------------+  +--------------+
       |                |                 |                 |
       +----------------+-----------------+-----------------+
                                | (append & hash-chain)
                                v
      +-------------------------------------------------------+
      |  Clause-Level Compliance Evidence Chain (CCEC)        |
      |  [provenance -> operators -> clauses -> benchmark]    |
      +-------------------------------------------------------+
Figure 1: Integrated Four-Stage Governance-Evaluation Lifecycle
  1. QA Generation: Converts source documents into structured corpus items while attaching mandatory source provenance and Source Anchors.
  2. Data Processing: Applies declarative, versioned Operators for cleaning, normalization, deduplication, and quality scoring.
  3. Compliance Review: Evaluates each item against a decoupled rule library decomposed into Clause-Rule-Evidence Tuples, recording per-clause verdicts and dispositions.
  4. Capability Evaluation: Evaluates corpus quality distributions and downstream model performance against a versioned domain benchmark, feeding error signals back to earlier stages.

4. CCEC Data Model and JSON Serialization

A CCEC manifest MUST be encoded as a UTF-8 JSON object [RFC8259]. Timestamps MUST conform to RFC 3339 [RFC3339] in UTC.

4.1. Top-Level Manifest Object

Table 1 defines the top-level members of a CCEC manifest.

Table 1: Top-Level Members of a CCEC Manifest Object
Field Type Req. Description
ccec_version string MUST Specification version (e.g., "0.1.0").
item_id string MUST Globally unique identifier (URI or UUID) for the corpus item.
batch_id string SHOULD Identifier of the ingestion or release batch.
created_at string MUST RFC 3339 UTC timestamp of initial manifest creation.
content_digest object MUST Cryptographic hash (alg, value) of the canonical corpus item payload.
provenance object MUST Stage 1 source attribution, license, and anchor metadata (Section 4.2).
processing_lineage array MUST Ordered list of Stage 2 operator execution records (Section 4.3).
compliance_checks array MUST List of Stage 3 clause-level evaluation records (Section 4.4).
evaluation object SHOULD Stage 4 benchmark and gold-standard metadata (Section 4.5).
integrity object SHOULD Chained digest and optional detached signature (Section 4.6).

4.2. Stage 1: Provenance and Source Anchor (provenance)

The provenance object MUST include:

  • source_uri (string): Canonical identifier or URI of the source document.
  • source_type (string): Document class (e.g., "annual_report", "exchange_announcement", "research_report").
  • document_version (string): Release date, filing period, or revision hash.
  • license_class (string): Machine-readable authorization or licensing category (e.g., "public_regulatory_disclosure", "licensed_vendor", "internal_restricted").
  • anchors (array of objects): One or more Source Anchors, each containing locator_type (e.g., "section_table", "char_span", "page_bbox"), locator_value, and an OPTIONAL excerpt_digest (SHA-256 hash of the referenced text span).

4.3. Stage 2: Processing Lineage (processing_lineage)

Each element in processing_lineage represents a single Operator invocation and MUST contain:

  • operator_id (string): Unique name or URI of the operator.
  • operator_version (string): Semantic version or Git commit hash.
  • executed_at (string): RFC 3339 timestamp.
  • parameters_digest (string): Digest of the operator configuration parameters.
  • outcome (string): One of "retained", "modified", "flagged", or "dropped".
  • quality_scores (object, OPTIONAL): Key-value map of quantitative quality metrics (e.g., factual grounding score, numerical consistency score).

4.4. Stage 3: Clause-Level Compliance Checks (compliance_checks)

Each element in compliance_checks encodes a Clause-Rule-Evidence Tuple and MUST contain:

  • framework_id (string): Regulatory or policy framework identifier (e.g., "CN-GenAI-2023", "EU-AI-Act-2024", "Internal-MRM-Policy").
  • clause_id (string): Specific article or clause reference (e.g., "Art.7(1)").
  • rule_id (string): Versioned identifier of the executable rule in the compliance rule library.
  • verdict (string): One of "pass", "fail", "needs_human_review", or "not_applicable".
  • disposition (string): Action taken ("admit", "quarantine", "redact", "reject").
  • evidence_ref (string): Pointer to the field, log, or rule output supporting the verdict.
  • reviewer_mode (string): Either "automated", "human", or "hybrid".

A Corpus Item MUST NOT be marked eligible for production training intake if any mandatory clause check carries a verdict of "fail" without a recorded remediation and subsequent passing re-evaluation.

4.5. Stage 4: Capability Evaluation (evaluation)

When present, the evaluation object MUST contain:

  • benchmark_id (string): Identifier of the evaluation suite (e.g., "FinanceCorpusBench").
  • benchmark_version (string): Semantic version or archival DOI of the benchmark.
  • task_category (string): Evaluation dimension (e.g., "numerical_reasoning", "cross_table_qa", "disclosure_comprehension").
  • gold_tier (string): Verification tier ("expert_verified", "rule_cross_checked", "sampled_audit").
  • metrics (object): Quantitative evaluation scores and inter-annotator or rule agreement rates.

4.6. Integrity and Evidence Chaining (integrity)

To ensure that CCEC records are tamper-evident and replayable across organizational boundaries:

  • Implementations SHOULD compute a SHA-256 digest [FIPS180-4] over the canonical JSON serialization of each stage object and store the chained digest in integrity.chain_digest.
  • For cross-institutional exchange or regulatory submission, implementations SHOULD sign the CCEC manifest using JSON Web Signature (JWS) [RFC7515] or CBOR Object Signing and Encryption (COSE) [RFC9052], referencing the signing key via integrity.signature.

5. Worked Example: Financial Annual Report QA Item

The following non-normative example illustrates a CCEC manifest for a question-answer item extracted from a listed company's annual report and validated through an open-source governance pipeline.

{
  "ccec_version": "0.1.0",
  "item_id": "urn:uuid:6c9a2e10-8b3d-4f1a-9a12-7e4b2c1d9f01",
  "batch_id": "fin-annual-2026Q4-001",
  "created_at": "2026-11-20T08:15:00Z",
  "content_digest": {
    "alg": "sha-256",
    "value": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934c"
  },
  "provenance": {
    "source_uri": "https://disclosure.example/2025-annual.pdf",
    "source_type": "annual_report",
    "document_version": "FY2025-v1",
    "license_class": "public_regulatory_disclosure",
    "anchors": [
      {
        "locator_type": "section_table",
        "locator_value": "Sec 4.2, Table 3 (Income Stmt), Row 5",
        "excerpt_digest": "9f86d081884c7d659a2feaa0c55ad015a3bf"
      }
    ]
  },
  "processing_lineage": [
    {
      "operator_id": "dataflow.finance.table_qa_normalizer",
      "operator_version": "0.1.0",
      "executed_at": "2026-11-20T08:16:12Z",
      "parameters_digest": "sha256:4b227777d4dd1fc61c6f884f4864",
      "outcome": "retained",
      "quality_scores": {
        "unit_consistency": 1.0,
        "anchor_grounding": 0.98
      }
    }
  ],
  "compliance_checks": [
    {
      "framework_id": "CN-GenAI-Measures-2023",
      "clause_id": "Art.7(1)-LawfulSource",
      "rule_id": "rule.provenance.public_filing_v1",
      "verdict": "pass",
      "disposition": "admit",
      "evidence_ref": "provenance.license_class",
      "reviewer_mode": "automated"
    },
    {
      "framework_id": "CN-PIPL-2021",
      "clause_id": "Art.4-PII-Screening",
      "rule_id": "rule.pii.ner_regex_v2",
      "verdict": "pass",
      "disposition": "admit",
      "evidence_ref": "logs/pii-scan-20261120.json#item-001",
      "reviewer_mode": "automated"
    }
  ],
  "evaluation": {
    "benchmark_id": "FinanceCorpusBench",
    "benchmark_version": "0.1.0",
    "task_category": "numerical_reasoning",
    "gold_tier": "rule_cross_checked",
    "metrics": {
      "exact_numerical_match": 1.0
    }
  },
  "integrity": {
    "chain_digest": "sha256:2c26b46b68ffc68ff99b453c1d3041341342"
  }
}

6. Implementation Status

[Note to RFC Editor: Please remove this section prior to publication, per RFC 7942 [RFC7942].]

An open-source reference implementation of the four-stage governance-evaluation pipeline, clause-level compliance evidence chain, and financial corpus evaluation benchmark (FinanceCorpusBench) has been developed on top of the open-source DataFlow framework:

7. Security Considerations

8. Privacy Considerations

CCEC manifests are metadata artifacts designed to be shared with auditors, regulators, or downstream model developers. Accordingly:

9. IANA Considerations

This document has no IANA actions in its current -00 revision. Future revisions may request registration of the media type application/ccec+json in the IANA Media Types registry and a controlled vocabulary registry for license_class and verdict values.

10. References

10.1. Normative References

[FIPS180-4]
National Institute of Standards and Technology (NIST), "Secure Hash Standard (SHS)", FIPS PUB 180-4, , <https://csrc.nist.gov/publications/detail/fips/180/4/final>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC3339]
Klyne, G. and C. Newman, "Date and Time on the Internet: Timestamps", RFC 3339, DOI 10.17487/RFC3339, , <https://www.rfc-editor.org/info/rfc3339>.
[RFC7515]
Jones, M., Bradley, J., and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, DOI 10.17487/RFC7515, , <https://www.rfc-editor.org/info/rfc7515>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8259]
Bray, T., Ed., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, DOI 10.17487/RFC8259, , <https://www.rfc-editor.org/info/rfc8259>.
[RFC9052]
Schaad, J., "CBOR Object Signing and Encryption (COSE): Structures and Process", STD 96, RFC 9052, DOI 10.17487/RFC9052, , <https://www.rfc-editor.org/info/rfc9052>.

10.2. Informative References

[DATAFLOWPR601]
OpenDCAI DataFlow Community, "Pull Request #601: Domain-Specific Financial Corpus Governance Extensions", , <https://github.com/OpenDCAI/DataFlow/pull/601>.
[EUAIACT]
European Union, "Regulation (EU) 2024/1689 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act)", Official Journal of the European Union, .
[GEBRU2021]
Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J., Wallach, H., Daume III, H., and K. Crawford, "Datasheets for Datasets", Communications of the ACM, vol. 64, no. 12, pp. 86-92, , <https://doi.org/10.1145/3458723>.
[NISTRMF]
National Institute of Standards and Technology (NIST), "Artificial Intelligence Risk Management Framework (AI RMF 1.0)", NIST AI 100-1, , <https://doi.org/10.6028/NIST.AI.100-1>.
[RFC7942]
Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, , <https://www.rfc-editor.org/info/rfc7942>.
[ZENODO24572672]
One, A., "Financial LLM Corpus Governance Toolchain and FinanceCorpusBench (Source Code Archive)", DOI 10.5281/zenodo.24572672, , <https://doi.org/10.5281/zenodo.24572672>.

Appendix A. CCEC Manifest JSON Schema (Informative)

The following JSON Schema (Draft 2020-12) defines the core structural constraints for validating a CCEC manifest object.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.org/schemas/ccec-0.1.0.schema.json",
  "title": "Clause-Level Compliance Evidence Chain (CCEC)",
  "type": "object",
  "required": [
    "ccec_version", "item_id", "created_at", "content_digest",
    "provenance", "processing_lineage", "compliance_checks"
  ],
  "properties": {
    "ccec_version": { "type": "string" },
    "item_id": { "type": "string", "minLength": 1 },
    "batch_id": { "type": "string" },
    "created_at": { "type": "string", "format": "date-time" },
    "content_digest": {
      "type": "object",
      "required": ["alg", "value"],
      "properties": {
        "alg": {
          "type": "string",
          "enum": ["sha-256", "sha-384", "sha-512"]
        },
        "value": {
          "type": "string",
          "pattern": "^[0-9a-fA-F]{64,128}$"
        }
      }
    },
    "provenance": {
      "type": "object",
      "required": [
        "source_uri", "source_type", "document_version",
        "license_class", "anchors"
      ],
      "properties": {
        "source_uri": { "type": "string", "format": "uri" },
        "source_type": { "type": "string" },
        "document_version": { "type": "string" },
        "license_class": { "type": "string" },
        "anchors": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "required": ["locator_type", "locator_value"],
            "properties": {
              "locator_type": { "type": "string" },
              "locator_value": { "type": "string" },
              "excerpt_digest": { "type": "string" }
            }
          }
        }
      }
    },
    "processing_lineage": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "operator_id", "operator_version", "executed_at",
          "parameters_digest", "outcome"
        ],
        "properties": {
          "operator_id": { "type": "string" },
          "operator_version": { "type": "string" },
          "executed_at": { "type": "string", "format": "date-time" },
          "parameters_digest": { "type": "string" },
          "outcome": {
            "type": "string",
            "enum": ["retained", "modified", "flagged", "dropped"]
          },
          "quality_scores": { "type": "object" }
        }
      }
    },
    "compliance_checks": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "framework_id", "clause_id", "rule_id", "verdict",
          "disposition", "evidence_ref", "reviewer_mode"
        ],
        "properties": {
          "framework_id": { "type": "string" },
          "clause_id": { "type": "string" },
          "rule_id": { "type": "string" },
          "verdict": {
            "type": "string",
            "enum": [
              "pass", "fail", "needs_human_review", "not_applicable"
            ]
          },
          "disposition": {
            "type": "string",
            "enum": ["admit", "quarantine", "redact", "reject"]
          },
          "evidence_ref": { "type": "string" },
          "reviewer_mode": {
            "type": "string",
            "enum": ["automated", "human", "hybrid"]
          }
        }
      }
    },
    "evaluation": {
      "type": "object",
      "required": [
        "benchmark_id", "benchmark_version", "task_category",
        "gold_tier", "metrics"
      ],
      "properties": {
        "benchmark_id": { "type": "string" },
        "benchmark_version": { "type": "string" },
        "task_category": { "type": "string" },
        "gold_tier": {
          "type": "string",
          "enum": [
            "expert_verified", "rule_cross_checked", "sampled_audit"
          ]
        },
        "metrics": { "type": "object" }
      }
    },
    "integrity": {
      "type": "object",
      "properties": {
        "chain_digest": { "type": "string" },
        "signature": { "type": "string" }
      }
    }
  }
}

Author's Address

Tianrong Ding
Tsinghua University
Beijing
China