Skip to content
docs
Arxo ↗

Protect a provision and its descendants

For LLMs7 sections

I want to forbid changing a provision in a given window.

The end of an exclusive window must not be treated as protected; inside the window a descendant is protected.

Incorrect form
effective @2026-06-30
Arxo Law
language "law.core" version "0.2";
package recipe.i05 version "1.0.0";
namespace "urn:recipe:i-sources:05";
source Act { kind policy; }
edition Prev of Act { language ru; officiality unofficial; materialization_status ABSTRACT_ONLY; in_force [@2026-01-01, infinity); }
edition Next of Act { language ru; officiality unofficial; materialization_status ABSTRACT_ONLY; in_force [@2026-01-01, infinity); }
fragment Old in Prev { kind article; locator "article/2/paragraph/1"; text ru unofficial """Первый текст."""; }
fragment New in Next { kind article; locator "article/2/paragraph/1"; text ru unofficial """Второй текст."""; }
entrenchment Core { source Act; locator "article/2"; window [@2026-01-01, @2026-07-01); }
revision Change { previous Prev; next Next; relation amends; effective @2026-07-01; op replace { locator "article/2/paragraph/1"; language ru; text """Второй текст."""; } }
VariantResult
descendant, 1 Julyallowed
descendant, 30 JuneE5301
article/20, 30 Juneallowed
effective missingE5301
Python
>>> import runpy
>>> checks = runpy.run_path("docs/recipes/i-sources/resources/check.py")
>>> checks["migration"](https://github.com/arxohq/law/blob/master/docs/recipes/i-sources/5)
True

The teaches mutation reproduces LDC-E5301. Additional variants are checked by the shown adapter call.

Text protection does not detect a semantic conflict of a new standalone provision. Conflicting literals are needed for that.

The check covers the domain and the window; the example repeats the segment bound of article/2 versus article/20.

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

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