| Internet-Draft | Corpus Compliance Evidence Chain (CCEC) | November 2026 |
| Ding | Expires 1 June 2027 | [Page] |
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.¶
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.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
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:¶
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.¶
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.¶
item_id.¶
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] |
+-------------------------------------------------------+
A CCEC manifest MUST be encoded as a UTF-8 JSON object [RFC8259]. Timestamps MUST conform to RFC 3339 [RFC3339] in UTC.¶
Table 1 defines the top-level members of a CCEC manifest.¶
| 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). |
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).¶
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).¶
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.¶
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.¶
To ensure that CCEC records are tamper-evident and replayable across organizational boundaries:¶
integrity.chain_digest.¶
integrity.signature.¶
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"
}
}
¶
[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:¶
v0.1.0 and listed in
the official extension registry.¶
10.5281/zenodo.24572672
https://doi.org/10.5281/zenodo.24572672
[ZENODO24572672].¶
rule_id definitions could silently
bypass mandatory checks. Implementations MUST
pin rule libraries by immutable version or cryptographic hash.¶
provenance.source_uri MUST NOT
automatically dereference untrusted external URIs during
validation to prevent Server-Side Request Forgery (SSRF).¶
CCEC manifests are metadata artifacts designed to be shared with auditors, regulators, or downstream model developers. Accordingly:¶
excerpt_digest and structural locator.¶
disposition: "redact" or "reject", the
corresponding evidence_ref MUST NOT
leak the redacted sensitive string in cleartext.¶
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.¶
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" }
}
}
}
}
¶