Markdown for LLMs
LDC-E5401 — Computed consolidation differs from the declared edition
The source Markdown for this article. Copy it into your assistant or download it as a text file.
# LDC-E5401 — Computed consolidation differs from the declared edition
## What it means
A revision edge says how one edition turns into the next: a list of
operations applied to the older edition must produce exactly the declared
newer edition. The compiler replays the operations itself and compares the
result with the declared text, fragment by fragment. When at least one
fragment differs, the compiler reports the first divergence and accepts
neither version automatically — the operations or the declared edition need
to change so both sides agree.
## Example
```law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
source ORDER { kind ministerial_order; }
edition ED_2025 of ORDER { language ru; officiality official; }
edition ED_2026 of ORDER { language ru; officiality official; }
fragment F_OLD in ED_2025 { kind article; locator "article/5";
text ru official """старая редакция"""; }
fragment F_NEW in ED_2026 { kind article; locator "article/5";
text ru official """новая редакция пункта"""; }
revision LAW_1 {
previous ED_2025;
next ED_2026;
relation amends;
op replace { locator "article/5"; language ru; text """новая редакция"""; }
}
```
## Fix
```law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
source ORDER { kind ministerial_order; }
edition ED_2025 of ORDER { language ru; officiality official; }
edition ED_2026 of ORDER { language ru; officiality official; }
fragment F_OLD in ED_2025 { kind article; locator "article/5";
text ru official """старая редакция"""; }
fragment F_NEW in ED_2026 { kind article; locator "article/5";
text ru official """новая редакция"""; }
revision LAW_1 {
previous ED_2025;
next ED_2026;
relation amends;
op replace { locator "article/5"; language ru; text """новая редакция"""; }
}
```
## Engine message
The engine reports this in its own wording:
```text
example.law:12:10: error LDC-E5401: edge "LAW_1": applying operations to ED_2025 does not yield ED_2026 — article/5 (ru) diverges; neither the computed consolidation nor the declared one is accepted as true automatically (§32.2)
```
## Related
- [Time](/constructs/time/) — how editions and effective moments order amendments.
- [Sources](/constructs/sources/) — how editions carry fragment texts.