Skip to content
docs
Arxo ↗

LDC-E5201 — A fragment text that fails its pinned hash

For LLMs5 sections

A fragment may pin its official text with a content hash: the engine hashes the exact bytes of the quoted text and compares. Any drift — an edited word, a stray space, a re-wrapped line — breaks the match, and the compiler refuses the fragment at the hash. The pin no longer describes the text it travels with.

Recompute the hash from the current text after every edit, or drop the pin while the text is still in flux.

Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
source S1 { kind statute; }
edition E1 of S1 { language en; officiality official; }
fragment F1 in E1 { text en official "Duty applies."; content_hash "sha256:0000000000000000000000000000000000000000000000000000000000000000"; }
Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
source S1 { kind statute; }
edition E1 of S1 { language en; officiality official; }
fragment F1 in E1 { text en official "Duty applies."; content_hash "sha256:856b1e8e64a12ad81399ff2e9a415829921c3789ef6e5e1f2518c756ca607593"; }

The engine reports this in its own wording:

Output
example.law:7:68: error LDC-E5201: fragment "F1": text hash (en) does not match the declared content_hash — §194 formalization source text hash mismatch (declared sha256:0000000000000000000000000000000000000000000000000000000000000000, actual sha256:856b1e8e64a12ad81399ff2e9a415829921c3789ef6e5e1f2518c756ca607593)

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.