]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - docs/slice-18-validation.md
Implement CTM Mergemap with explicit byte resources and isolated environments
[topic-maps.git] / docs / slice-18-validation.md
1 # Slice 18 — Templates: validation and boundaries
2
3 Base: `963f2a09444100d37e49cccbd6634879bd6742b5`; branch
4 `codex/ctm-slice-18`. Runtime, UTC execution interval, exact command, source and
5 artifact hashes are recorded in `reports/slice-18/execution.json`.
6
7 Reproduce from the repository root:
8
9 ```sh
10 python3 scripts/validate-slice-18.py --sbcl /nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl
11 ```
12
13 The complete retained suite and the Template suite execute in a fresh SBCL 2.5.4
14 process under `sandbox-exec` with network denied and user/system init disabled.
15 No additional version, relocation or cache-policy work is performed.
16
17 Expected validated results:
18
19 - 11,317 retained + 297 new = **11,614 Lisp assertions**, zero assertion failures.
20 - Both Python unit tests, 16,294 independent NFC comparisons and all independent
21 report/model checkers pass.
22 - **57** additional unchanged positive originals pass byte-for-byte;
23 **10** additional negative originals pass their specific rejection contracts.
24 - Imported status: **187 PASS, 2 known DateTime FAIL, 0 UNSUPPORTED, 84 NOT-RUN**.
25 The passing contracts comprise 165 positive comparisons and 22 rejections.
26 - All prior 108 positive outputs, both known discrepancy outputs, earlier model
27 observations and all unrelated imported records are unchanged.
28 - Corpus/reference hashes and TMDM/CXTM sources are unchanged from the base.
29 - Original-baseline byte equality is separate from direct Lisp reference tests
30 and from the independent Python relation between observed model and XML.
31
32 The replacement of old feature-boundary assumptions is deliberate: definitions
33 now have no model effects, and supported Template-dependent Variant sources now
34 parse. `a()` is an Invocation with no definition, rather than an empty
35 Association; `a(r p)` has malformed Invocation arguments. Their diagnostic tests
36 now follow the extended grammar. Existing assertion totals are retained.
37
38 The connected Merge witness retains Topic, Name, Variant, Occurrence,
39 Association, Role and Reifier handles; verifies Identifier unions and inverse
40 references; and checks continued Tail ownership. Core-Subject and Variant-scope
41 conflicts retain the existing atomic operation policy. Serialization preserves
42 all held slots and forwarding links. Body-definition tests instrument interning
43 and inspect stored CTM statement/token objects and the untouched Counter.
44
45 `base-control.log` loads the committed old CTM definitions in another disposable
46 process and confirms that definitions, Tail Invocations and variables were
47 unsupported there. `describe.log` executes the published inspection forms;
48 object addresses are observations of that process only.
49
50 The seven explicit grammar cases and four Import-dependent cases remain
51 NOT-RUN; see `reading-ctm-templates.md` for the exact distinction. The two
52 DateTime FAILs remain normative baseline discrepancies, not regression errors.
53 The expansion depth limit is resource policy. Duplicate parameter names are
54 rejected as an API binding policy. There is no whole-invocation transaction
55 promise. Include/Mergemap, cross-document merging, additional literal forms,
56 encodings and HyperDoc changes remain excluded.