| Internet-Draft | Canonical Knowledge Integrity | November 2026 |
| Morrison | Expires 29 May 2027 | [Page] |
Knowledge artefacts such as documentation, policy specifications, configuration records and identity assertions are now served across two classes of surface at once. One is rendered for people, such as an HTML document or a formatted record view. The other is read by automated agents, such as a plain-text or JSON resource, a Model Context Protocol resource, a DNS record, a filesystem object, or a kernel-resident data structure. Independent code paths usually produce the two, and no protocol mechanism lets an agent check that what it received on its surface matches what a person approved on the rendered surface. Serving infrastructure can deliver different content to agents and to people, and neither consumer can detect that alone. This is called cloaking.¶
This memo specifies a content-integrity mechanism that applies unchanged at every scale. A publisher emits a Canonical Integrity Record: a machine-readable digest of a canonical artefact, computed under a declared, versioned normalisation procedure and published at a well-known location specific to each surface class. A consuming agent retrieves the artefact from each serving surface, recomputes the digest under the same normalisation, checks each result against the published record, and emits a structured anti-cloaking verdict. The mechanism reuses the HTTP digest fields of RFC 9530 and the well-known URI registry of RFC 8615 and extends them across surfaces and representations, including a kernel data-structure surface where there is no HTTP and no DNS and the check runs in kernel context.¶
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 29 May 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.¶
A single knowledge artefact is now routinely served across unlike surfaces. A
documentation page is served as HTML to a browser and as Markdown or JSON to an
automated agent, through content negotiation, through a Model Context Protocol
(MCP) resources/read call [MCP], or through a file indexed by an
llms.txt document [LLMSTXT]. A policy record is rendered in an
administrative interface for a human operator and served as a machine-readable
record to an agent holding a reader credential. A configuration value is
exposed to userspace through a virtual filesystem and held in a kernel data
structure visible to an in-kernel observer.¶
Independent code paths produce these surfaces, often at independent endpoints, and no protocol mechanism lets a consuming agent check that the agent-targeted content is consistent with the human-rendered content. The person sees only the rendered surface and the agent sees only the agent-targeted surface. Serving infrastructure that delivers different content to the two, whether through misconfiguration, compromise or design, cannot be detected by either consumer alone.¶
Search-engine optimisation has long called this cloaking: a server delivers different content to crawlers than to users. For agent-mediated knowledge delivery it is a first-order integrity concern, because the agent-targeted surface can carry instructions, policy or identity assertions that differ materially from what people reviewed and approved. Cloaking attacks against retrieval-augmented and agentic systems are documented in [PPWEB].¶
This memo specifies a mechanism by which:¶
a publisher computes a cryptographic digest of a canonical artefact under a declared, versioned, deterministic normalisation procedure, and publishes that digest in a Canonical Integrity Record at a well-known location specific to the surface class;¶
the artefact is served across a human-rendered surface and one or more agent-targeted surfaces such that the digest can be checked against any of them, either byte for byte or under a declared equivalence-preserving transformation; and¶
a consuming agent retrieves the artefact from each surface, recomputes the digest, checks each result against the published record, and emits a structured Anti-Cloaking Verdict, without trusting the serving infrastructure, including at the kernel data-structure layer where there is no HTTP and no DNS.¶
The same procedure applies to a kernel data structure, an operating-system file object, an HTTP document and an enterprise record. The only differences are the location at which the integrity record is published and the way each surface is read.¶
This memo reuses the Repr-Digest and Content-Digest representation-digest
fields and the hash-algorithm registry of [RFC9530], and the well-known URI
registry of [RFC8615]. Section 11 states what each adjacent mechanism does and what
it leaves open. This memo adds an equivalence check, across surfaces and representations,
against a canonical digest the publisher emits.¶
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.¶
The following terms are defined for the purposes of this document:¶
The authoritative representation of a knowledge artefact, as approved by the publishing party, against which every served surface is measured.¶
A distinct path by which a consuming party obtains a representation of an artefact. A surface is either human-rendered or agent-targeted.¶
A surface whose representation is produced for people to read, for example an HTML document, a formatted PDF, a record as displayed in an administrative interface, or a file as presented by an operating system's display layer.¶
A surface whose representation is produced for an automated agent, for
example a plain-text or JSON document obtained by content negotiation, an MCP
resources/read response, a DNS resource record, a file's raw byte stream
read through a system call, or a kernel data structure observed by an
in-kernel program.¶
One of the categories of surface to which this mechanism applies: http,
dns, mcp, file, kernel, or enterprise. The closed set of
surface-class identifiers is defined in Section 6.¶
A declared, deterministic, versioned procedure that maps a surface representation to the canonical byte sequence over which the digest is computed. It lets equivalence be tested across representations that differ only in representation-specific encoding.¶
The machine-readable record that carries the canonical digest, the normalisation version, and per-surface metadata. Its structure is defined in Section 4.¶
The structured record a consuming agent emits after cross-surface verification, defined in Section 8.¶
The automated party that retrieves an artefact across one or more surfaces and performs the verification procedure of Section 7.¶
The mechanism has four roles:¶
a publisher that holds the canonical artefact, computes its digest under a declared normalisation, and publishes the Canonical Integrity Record;¶
one or more serving surfaces, each delivering a representation of the artefact;¶
a consuming agent that retrieves the artefact across surfaces and checks each against the CIR; and¶
a well-known location, specific to the surface class, at which the CIR is published and from which any consuming party may retrieve it.¶
The consuming agent trusts the publisher's authority over the canonical digest (see Section 14 for how that authority is anchored) and trusts nothing about the serving infrastructure between the publisher and itself. The agent recomputes the digest from the bytes it received on each surface and never relies on a surface to assert its own integrity.¶
A Canonical Integrity Record is a JSON object [RFC8259]. A publisher MUST emit a CIR for any artefact for which cross-surface integrity is offered. The CIR contains the following members:¶
artefact (string, REQUIRED): a stable identifier for the canonical artefact
within the publisher's namespace.¶
digest (string, REQUIRED): the canonical digest, expressed using the
structured-field syntax and hash-algorithm names of the Repr-Digest field of
[RFC9530] (for example sha-256=:<base64>:). A publisher MUST use an
algorithm whose status in the "Hash Algorithms for HTTP Digest Fields"
registry is "Active" and MUST NOT use one whose status is "Deprecated".¶
normalisation (object, REQUIRED): an object with members uri (the stable
URL at which the normalisation procedure is specified) and version (a
monotonic version identifier). A consuming agent MUST apply the same
normalisation version when recomputing a digest.¶
surfaces (array, REQUIRED): an array of per-surface objects, each with members
class (a surface-class identifier from Section 6), locator (the
address, in the form the surface class uses, at which the representation is
obtained), and an OPTIONAL transform naming the equivalence-preserving
transformation that maps this surface's representation to the canonical byte
sequence.¶
provenance (object, OPTIONAL): an identity-provenance envelope, defined in
Section 10.¶
A CIR MUST NOT carry members other than those defined here, and a later revision of this memo is the only way to define more. A consuming agent that receives a CIR carrying an unrecognised member MUST reject the record and treat verification as failed. This closed-record rule stops a serving party from changing what verification means through extension fields.¶
Two representations of the same canonical artefact often differ in representation-specific encoding: an HTML rendering and a Markdown rendering of the same prose, two byte orderings of the same record, or two whitespace conventions. A plain byte digest reports these as divergent even when the content is identical. The Normalisation Procedure removes that difference.¶
A Normalisation Procedure is a deterministic function from a surface representation and a named transform to a canonical byte sequence. It MUST be:¶
Specified at a stable URL named in the CIR normalisation.uri.¶
Identified by a monotonic normalisation.version, carried in the CIR
alongside the digest.¶
Producing identical output for identical input on any conforming implementation.¶
A transform MAY be the identity transform (byte for byte), or an equivalence-preserving transform such as HTML-to-Markdown reduction, Unicode normalisation, whitespace canonicalisation, or inline-reference stripping. A consuming agent MUST confirm that it applies the same normalisation version as the publisher before accepting any cross-surface equivalence result. If the agent cannot obtain or cannot apply the named normalisation version, it MUST treat verification as indeterminate, never as successful.¶
Versioning matters for security. A transform that is too permissive can map materially different content to the same canonical bytes. Pinning the version in the CIR fixes which equivalence relation is in force for the agent and the publisher. A transform found to be unsafe is retired under its version number and is never silently redefined.¶
The set of surface-class identifiers is closed for a given version of this memo. Version 1 defines six classes. Each class fixes where the CIR is published and how a representation is read.¶
http:The artefact is an HTTP-served document. The CIR is published at
/.well-known/knowledge-integrity on the serving authority (see Section 13), and
MAY also be published as a DNS TXT record per the dns class. The
human-rendered surface is the representation served under Accept: text/html.
The agent-targeted surfaces are representations served under
Accept: text/plain, Accept: application/json, or Accept: text/markdown
at the same or a declared equivalent URL, a representation served through MCP
resources/read at the canonical resource URI, and a representation indexed
by an llms.txt document.¶
dns:The CIR digest is published as a DNS TXT resource record at
<label>._knowledge-integrity.<domain>, where <domain> is the artefact's
domain and <label> is the lowercase unpadded base32 [RFC4648], Section 6,
of the first 20 octets of SHA-256 over the CIR artefact value. A domain can
then publish more than one artefact. No new DNS resource record type is
introduced. Where DNSSEC [RFC4034] is deployed, the TXT record inherits its
zone-origin authentication. This memo does not require DNSSEC but composes
with it.¶
mcp:The artefact is served through an MCP resources/read call. The agent-targeted
surface is the resource content block. The CIR is obtained from the http or
enterprise class of the same authority.¶
file:The artefact is a file or directory object on a filesystem. The
CIR is published, on a filesystem with Linux extended attributes, in the
object's extended-attribute namespace under the attribute name
user.knowledge-integrity, as a sidecar file named
<object>.knowledge-integrity.json beside the object, or both. The human-rendered surface is the file as presented by
the operating system's display or document-rendering layer. The
agent-targeted surface is the file's raw byte stream as returned by a read
system call.¶
kernel:The artefact is a kernel-resident data structure, for example a policy map, a configuration record, or an identity-attestation record held in a BPF map. The CIR is published in a BPF map readable by an in-kernel program. The human-rendered surface is the userspace-visible representation of the structure, obtained through a virtual-filesystem read. The agent-targeted surface is the structure's raw in-kernel state, observed by an attached eBPF or Linux Security Module (LSM) hook program. On this surface there is no HTTP and no DNS, and integrity is checked in kernel context, below the virtual-filesystem layer and below any userspace library. Section 7 specifies how a consuming agent checks this surface.¶
enterprise:The artefact is a record held in an organisation's identity store. The CIR is published at a machine-readable endpoint of that store, reachable by agents holding a valid reader credential. The human-rendered surface is the record as displayed in the store's administrative interface. The agent-targeted surface is the record as served through a machine-readable protocol interface of the same store.¶
A consuming agent MUST treat the surface-class set as closed for the CIR's declared memo version. An agent that meets an unrecognised surface-class identifier MUST treat that surface as unverifiable and MUST NOT infer a verification procedure for it.¶
Given a CIR and two or more surfaces, a consuming agent performs the following procedure:¶
Acquire the CIR from the well-known location for its surface class. If the CIR cannot be retrieved, verification is indeterminate.¶
Confirm the normalisation version. Obtain the normalisation procedure named
by normalisation.uri and confirm the agent can apply normalisation.version.
If not, verification is indeterminate.¶
For each surface listed in the CIR surfaces array, and at minimum for one
human-rendered surface and one agent-targeted surface:¶
retrieve the representation from that surface's locator;¶
apply the surface's declared transform (or the identity transform)
under the confirmed normalisation version, producing canonical bytes;¶
compute the digest of those canonical bytes using the algorithm named in
the CIR digest; and¶
compare the computed digest against the CIR digest, recording a
boolean equivalence flag for the surface.¶
Decide. Verification SUCCEEDS only if every surface examined produced a matching digest. If any surface diverges, verification FAILS and the divergence is a cloaking signal. If any surface could not be retrieved or normalised, the result for that surface is indeterminate and the agent MUST NOT report overall success.¶
For the kernel surface class, step 3 runs in kernel context. The consuming
agent, or a kernel-resident delegate, attaches an eBPF or LSM program to a
kernel hook that fires on access to the data structure, reads the in-kernel
state, computes the digest within the program or hands the bytes to a
verifying routine, and compares the result against the CIR held in the BPF
map. The comparison detects divergence between the userspace-visible
representation and the kernel state without trusting the virtual-filesystem
layer or any userspace library. This memo calls that property kernel-resident
canonical integrity.¶
After verification, a consuming agent emits an Anti-Cloaking Verdict: a JSON object carrying at least:¶
artefact: the artefact identifier from the CIR;¶
cir_digest: the canonical digest the verdict was measured against;¶
surfaces: an array of objects, each with class, locator, the agent's
computed_digest, and a boolean equivalent flag; and¶
result: one of success, cloaking-detected, or indeterminate.¶
The verdict is a separate, self-contained record so that it can be logged,
forwarded, or cross-checked apart from the verification that produced it. A
cloaking-detected verdict identifies which surface pair diverged. What a
consumer does with a verdict is a matter of local policy and outside this memo.¶
Every surface is compared with the one CIR digest. A consuming agent
can therefore check any subset of surfaces without retrieving the rest.¶
A publisher MAY bind a CIR to an identity-provenance envelope: a structure
carrying at least the identity handle of the party that published or attested to
the canonical artefact, and a substrate-observation attestation that the
artefact was observed at publication time. A handle MAY be written as an
alter: URI [ALTER-URI], for example alter:~example.com.¶
Surface equivalence shows that two representations carry the same content. It does not show who attested to that content, because the attestation chain travels with the record, not with the bytes ([MORRISON-IFT], Section 6.5). When the envelope is present, a consuming agent can check both. The vocabulary for substrate-observation attestations is specified by [I-D.morrison-substrate-provenance-grammar], and the ~handle syntax by [I-D.morrison-mcp-dns-discovery]. This memo treats the envelope as an opaque, optional addition to the CIR and does not redefine those structures.¶
| Mechanism | What it provides | What this memo adds |
|---|---|---|
| Subresource Integrity [SRI] | A browser checks one fetched subresource against a hash the embedding page supplies inline | One surface, hash supplied inline by the embedder; no canonical digest from the publisher at a well-known location; no human-to-agent cross-surface check |
| Certificate Transparency [RFC6962] [RFC9162] | Append-only auditable logs of issued certificates | Its subject is certificates, not content; this memo reuses nothing from it and adds a content-equivalence check |
| Well-Known URIs [RFC8615] | A registry and convention for site-wide metadata locations | A location convention only; reused here as the CIR publication point, with no integrity meaning of its own |
| security.txt [RFC9116] | A well-known plain-text record of security contacts | Precedent for a record the publisher emits at a well-known location; no digest and no verification |
| HTTP Digest Fields [RFC9530] |
Content-Digest and Repr-Digest digests over a single HTTP message |
One hop and one response; the RFC says the fields are not a general protection against tampering; reused here for digest syntax and the algorithm registry, extended across surfaces |
| DNSSEC [RFC4033] [RFC4034] | Zone-origin authentication of DNS records | One surface only; no cross-surface equivalence; composes with the dns class |
| llms.txt [LLMSTXT] | A well-known curated index of a site's pages for agents | A discovery hint, with no integrity and no equivalence to the human-rendered page |
MCP resources/read [MCP]
|
A transport by which an agent reads named resources | A serving surface, not a guarantee; treated here as one surface to check |
None of these checks that content received across several serving surfaces is equivalent to a canonical artefact a person approved, without trusting the serving infrastructure. This memo specifies that check.¶
This memo specifies the integrity of a canonical knowledge artefact that a publisher emits and a consumer reads. Its digest is computed once, at publication, over a published artefact, and checked on read against each surface. It does not specify:¶
any check on claims or outputs an agent generates after reading the artefact;¶
any proof about what data was or was not used to produce an output; or¶
an event log between identities. The optional identity-provenance envelope of Section 10 refers to companion structures by name and defines none of its own.¶
An implementer of this memo needs nothing beyond the cross-surface equivalence check of a canonical published artefact, and the memo claims nothing wider.¶
This memo requests the following IANA actions.¶
IANA is requested to register the following entry in the "Well-Known URIs" registry established by [RFC8615]:¶
This memo is an Independent Submission and cannot register in the
standards tree ([RFC6838], Section 3.1). IANA is requested to register the
media type application/vnd.truealter.knowledge-integrity+json for the
Canonical Integrity Record in the vendor tree ([RFC6838], Section 3.2),
using the template of [RFC6838]:¶
Type name: application¶
Subtype name: vnd.truealter.knowledge-integrity+json¶
Required parameters: none¶
Optional parameters: none¶
Security considerations: see the Security Considerations of this memo¶
Interoperability considerations: none¶
Published specification: this memo¶
Applications that use this media type: agents that verify cross-surface integrity under this memo¶
Fragment identifier considerations: none¶
Additional information: magic number(s), file extension(s) and Macintosh file type code(s) are none¶
Person and email address to contact for further information: Blake Morrison, blake@truealter.com¶
Intended usage: COMMON¶
Restrictions on usage: none¶
Author: Blake Morrison¶
Change controller: the author of this memo¶
A publisher serves the CIR with this media type. A consuming agent can then tell a CIR from the artefact it describes.¶
This memo introduces no new hash algorithms. Digest algorithm names are drawn from the "Hash Algorithms for HTTP Digest Fields" registry of [RFC9530].¶
The dns surface class of Section 6 uses TXT resource records at
<label>._knowledge-integrity.<domain>. No new DNS resource record type is introduced.
IANA is requested to register the node name in the "Underscored and
Globally Scoped DNS Node Names" registry established by [RFC8552]:¶
The check is only as sound as the
consuming agent's binding to the publisher's authority over the canonical
digest. A serving party that can rewrite both the CIR and every surface can
present an internally consistent but wholly substituted artefact. The CIR
provenance envelope of Section 10, and out-of-band anchoring of the
publisher's identity (for example DNSSEC-protected publication under the dns
class, or a companion identity-resolution mechanism), raise the cost of this
attack. Implementations SHOULD anchor the CIR's authority to a key or handle the
consuming agent can verify independently of the surfaces being checked.¶
An overly permissive normalisation transform can map materially different content to identical canonical bytes, defeating the equivalence check. Transforms MUST be specified exactly and pinned by version in the CIR (Section 5). A consuming agent that cannot apply the exact named version MUST treat the result as indeterminate, never as success.¶
An agent that checks only one surface gains no protection against cloaking; the check has value only across at least one human-rendered and one agent-targeted surface. A consumer that checks only a subset of surfaces says nothing about the surfaces it did not retrieve, and a security-sensitive consumer SHOULD check every surface it depends on.¶
Checking integrity below the
virtual-filesystem and userspace-library layers is what protects the kernel
class against tampering in userspace. The trust boundary then becomes the kernel, the
attached eBPF or LSM program, and the BPF map. An attacker with control of the
kernel is outside this mechanism's threat model, as for any userspace integrity
check.¶
A consuming agent MUST reject a CIR carrying unrecognised members and MUST treat unrecognised surface classes as unverifiable (Section 4, Section 6). This stops a serving party from altering what verification means through unspecified extensions.¶
The Canonical Integrity Record is integrity metadata, not content, and is meant to be as public as the artefact it describes. Publishing a CIR for a non-public artefact discloses that the artefact exists, the digest of its canonical form, its surface locators, and, where a provenance envelope is present, the identity handle of the attesting party. Publishers SHOULD treat the CIR as disclosing as much as the artefact itself and SHOULD NOT publish a CIR for an artefact whose existence is itself confidential. Where a provenance envelope is attached, the privacy considerations of the referenced companion memos apply, read with the guidance of [RFC6973].¶
This memo is one of a set of independent submissions on agent-mediated identity and substrate integrity. It composes with the substrate-provenance grammar [I-D.morrison-substrate-provenance-grammar], the source of the provenance vocabulary for the optional envelope; the MCP DNS-discovery mechanism [I-D.morrison-mcp-dns-discovery], the source of the ~handle syntax used in the envelope; and the agent-channel fan-out memo [I-D.morrison-agent-channel-fan-out], a frame for delivering short structured messages, such as a verdict record, to the concurrent sessions of one identity. Where the canonical artefact is itself the output of identity inference, the compute-location gate [I-D.morrison-compute-location-gate] governs the provenance class under which it may be served. That gate is not needed to implement this memo. Each memo can be implemented on its own.¶
The cross-surface cloaking framing draws on documented cloaking attacks against retrieval-augmented and agentic systems [PPWEB], and the digest and well-known-location layers rest on [RFC9530] and [RFC8615].¶
draft-morrison-cross-surface-canonical-knowledge-00:¶
Initial version.¶