-# Common Lisp Topic Maps — Slice 19C
+# Common Lisp Topic Maps — Slice 19D1
+
+Slice 19D1 adds **`topic-maps/xtm`**, an XTM 2.0 identity/`instanceOf` subset.
+Six unchanged XTM sources match their original CXTM baselines byte-for-byte;
+results are separate from the unchanged **204 PASS / 4 FAIL / 65 NOT-RUN** CTM
+contracts. No CTM XTM-Mergemap integration or full XTM conformance is claimed.
+See [the XTM API, model and reproduction guide](docs/slice-19d1-xtm-identity.md).
+
Slice 19D0B qualifies local, versioned CXML/closure-common encoding corrections:
**58 original and 88 additional XML checks PASS** in fresh offline SBCL 2.5.4.
The required entry point is `topic-maps.xml:parse-octets` after offline source
-patch preparation; it enforces external-resource denial. No XTM deserializer
-is implemented. See [encoding qualification](docs/slice-19d0b-cxml-encoding.md).
+patch preparation; it enforces external-resource denial. Slice 19D1 uses that boundary for its independent XTM 2.0 identity reader. See [encoding qualification](docs/slice-19d0b-cxml-encoding.md).
Slice 19D0 made pinned CXML sources available to ASDF through the Nix source
environment. Its initial parser qualification failed on UTF-16 supplementary
`:resource-resolver` on `deserialize-string` / `deserialize-file`. Resources are
supplied as bytes by the caller, deserialized with independent environments,
and transferred by Slice 19A's TMDM content import. No implicit file/network
-retrieval or XTM deserialization is provided (Include is added by Slice 19C).
+retrieval is provided (Include is added by Slice 19C). XTM Mergemap remains unsupported.
See [Reading CTM Mergemap](docs/reading-ctm-mergemap.md) and
[Slice 19B validation](docs/slice-19b-validation.md).
The registered corpus now has **194 PASS, 2 known DateTime FAIL, 77 NOT-RUN**:
--- /dev/null
+# Slice 19D1 — Reading XTM 2.0 identity
+
+Base: `1691c8e0712e30666de2e667a5050eccb0086f71`. This is an independent
+`topic-maps/xtm` ASDF system depending on `topic-maps/tmdm` and `topic-maps/xml`.
+It neither depends on CTM nor changes the existing information-item model.
+
+## Normative basis and implementation boundary
+
+The [published-equivalent XTM 2.0 text](https://www.isotopicmaps.org/sam/sam-xtm/)
+is ISO/IEC 13250-3:2007, not XTM 2.1. Clauses 4.1–4.2 establish the XML Infoset
+input; 4.3.1 and Annex A specify namespaces and grammar. Clauses 4.3.3–4.3.4
+require percent-UTF-8 decoding and Document-IRI resolution. Clauses 4.4–4.8
+specify map creation, required topic IDs and the three identity properties.
+Clause 4.9 maps `instanceOf` to type-instance Associations. Clause 4.20 searches
+existing SI/II locators before creating a reference Topic; a hit adds no II.
+
+[TMDM](https://www.isotopicmaps.org/sam/sam-model/2006-06-18/) 4.2, 5.1–5.3,
+5.7–5.8, 6.2, 6.6–6.7 and 7.1–7.2 govern locator identity, canonical same-map
+merging and Core Subjects. Existing public TMDM operations implement those
+transformations. The XML ID-uniqueness set contains strings only, never Topics.
+
+[CXTM](https://www.isotopicmaps.org/cxtm/cxtm.html) 3.2–3.4, 3.10–3.15, 3.18
+and clause 4 supply the existing numbering, reference, locator and ordering
+rules. Baselines contain relative locators because CXTM 3.18 removes the given
+base-locator prefix; stored TMDM identifiers stay absolute. CXTM is not used to
+infer TMDM identity.
+
+Local choices: XML events form a temporary source tree, validated before model
+construction. Deserialization then follows document order, including forward
+references. Existing replacement handles remain authoritative. Unknown XTM
+structure is rejected; excluded grammar extension points signal unsupported,
+without claiming full validation of their unimplemented subgrammars. TMDM
+conflicts propagate as their original specific conditions, rather than becoming
+XML errors. No transaction policy or extra merging rule is attributed to XTM.
+
+## Public API and diagnostics
+
+```lisp
+(topic-maps.xtm:deserialize-octets octets
+ :document-iri "https://example.invalid/maps/example.xtm"
+ :source-key "caller-supplied:source-label")
+```
+
+Returns a new actual `topic-maps.tmdm:topic-map`. Octets are an unsigned-byte-8
+vector; no filenames or decoded strings are implicitly accepted. Document IRI
+is required, absolute and fragment-free. Source-Key affects diagnostics only.
+Source bytes and source-tree nodes are not mixed into the TMDM information items.
+
+`xtm-rejection` carries `error-code`, `error-detail`, `error-document-iri`,
+`error-source-key`, `error-line`, `error-column`. Positions are approximate SAX
+positions at a start-tag boundary, never invented source spans. `xtm-unsupported`
+is a separate condition. `xtm-xml-error` retains `error-cause` and distinguishes
+`:xml-not-well-formed` from `:doctype-forbidden`. Existing TMDM
+`item-identifier-error` and `core-subject-error` are preserved. API argument/type
+errors and an unqualified XML runtime are configuration errors, not XTM rejects.
+
+All actual XML parsing goes through `topic-maps.xml:parse-octets`. Its unchanged
+19D0B ABI markers, mandatory namespaces, rejecting DOCTYPE/entity policy and
+strict patched decoders remain required. There are no retrieval callbacks,
+file opens or network retrieval in the XTM reader. External `topicRef` locators
+create/reuse Topics without retrieving the referenced document. The pinned
+CXML XML-1.0 name tables check ID/NCName characters; this helper does not bypass
+the XML byte boundary. ID whitespace is collapsed and document uniqueness checked.
+
+## Original contracts and actual model
+
+The Document IRI for each input is:
+`https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/<file>`.
+
+| Unmodified original | Actual TMDM | CXTM bytes |
+|---|---|---:|
+| empty.xtm | empty Topic Map | 23 |
+| topic.xtm | one Topic, II = Document IRI + `#topic` | 114 |
+| itemid-tm.xtm | empty Map, Map II = Document IRI + `#the-topic-map` | 94 |
+| topic-type.xtm | five Topics, one Association, two Roles | 963 |
+| topic-type-duplicate.xtm | same normalized information items | 963 |
+| merge-three-way.xtm | one Topic with the three absolute `#topic`, `#topic2`, `#topic3` IIs | 168 |
+
+The separate XTM report records six genuine CTM-independent reader/CXTM
+comparisons. The remaining 107 positive and 11 negative XTM inputs are unexecuted;
+they are not imported as passing contracts. These six results do not establish
+complete XTM conformance.
+
+The unchanged `ctm/in/mergemap-xtm.sub` is also read directly with its own absolute
+Document IRI under that same base. Its Topics are the `#lars` and `#person` II
+Topics plus the three Core SI Topics `.../model/type-instance`, `.../model/type`,
+`.../model/instance`. One Association has the type-instance Topic as its Type.
+Its Roles have `(Type, Player)` = `(type, person)` and `(instance, lars)`.
+All Parent, Type, Player, rolesPlayed and canonical-handle references are checked
+by actual EQ. This direct fixture is **not** the CTM Mergemap contract.
+
+Retained Topic, Association and Role handles are checked during later declaration
+merges. Tests distinguish an SI hit (no new II) from a forward reference which
+first creates an II and later merges; declaration order therefore can affect
+identifier sets. Subject Locators are not used by topicRef lookup. Separate
+Document IRIs preserve different local identities. CXTM leaves both current
+objects and retained handles unchanged.
+
+## Reproduce offline
+
+No new dependency downloads. Use the already qualified original sources and
+unchanged local decoder patches:
+
+```sh
+cd /Users/rgb/workspace/topic-maps
+python3 scripts/validate-slice-19d1.py \
+ --sbcl /nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl \
+ --output /tmp/topic-maps-19d1-review
+```
+
+The driver prepares sources with offline Nix evaluation and verified hashes,
+then runs XML qualification, two independent XTM processes with byte-identical
+reports, and the unchanged full regression. SBCL runs under `sandbox-exec` with
+network denied; there are no loads into persistent images. `execution.json`
+records commands, times, source hashes, temporary runtime provenance and results.
+A full offline Nix rebuild is **NOT-RUN**; existing Store sources plus fresh
+patched-source ASDF loading are tested. XML qualification is not an XTM PASS.
+
+For inspection, prepare once (the target must not already exist):
+
+```sh
+cd /Users/rgb/workspace/topic-maps
+xtm_registry=$(python3 scripts/prepare-cxml.py --directory /tmp/xtm-review-sources --registry)
+/usr/bin/sandbox-exec -p '(version 1)(allow default)(deny network*)' \
+ /usr/bin/env CL_SOURCE_REGISTRY="$xtm_registry" \
+ /nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl \
+ --no-sysinit --no-userinit
+```
+
+In this fresh process:
+
+```lisp
+(require :asdf)
+(asdf:load-asd #P"/Users/rgb/workspace/topic-maps/topic-maps.asd")
+(asdf:load-system "topic-maps/xtm")
+(defparameter *map*
+ (with-open-file (in #P"/Users/rgb/workspace/topic-maps/vendor/cxtm/ctm/in/mergemap-xtm.sub"
+ :element-type '(unsigned-byte 8))
+ (let ((bytes (make-array (file-length in) :element-type '(unsigned-byte 8))))
+ (read-sequence bytes in)
+ (topic-maps.xtm:deserialize-octets bytes
+ :document-iri "https://example.invalid/mergemap-xtm.sub"
+ :source-key "pinned:ctm/in/mergemap-xtm.sub"))))
+(describe *map*)
+(defparameter *association* (first (topic-maps.tmdm:topic-map-associations *map*)))
+(describe *association*)
+(dolist (role (topic-maps.tmdm:association-roles *association*))
+ (describe role)
+ (describe (topic-maps.tmdm:association-role-player role)))
+(eq *map* (topic-maps.tmdm:association-parent *association*)) ; T
+```
+
+Not implemented: CTM XTM-Mergemap dispatch, XTM mergeMap, Names, Variants,
+Occurrences, explicit Associations, Reification and embedded XML values.
+No HyperDoc changes or additional XTM features belong to this slice.
--- /dev/null
+{
+ "baseCommit": "1691c8e0712e30666de2e667a5050eccb0086f71",
+ "branch": "codex/ctm-slice-19d1",
+ "startedAtUTC": "2026-10-18T19:51:17.521128+00:00",
+ "finishedAtUTC": "2026-10-18T19:51:48.977718+00:00",
+ "runtime": "SBCL 2.5.4",
+ "newDependencyDownloads": 0,
+ "sourcePreparationCommand": [
+ "python3",
+ "scripts/prepare-cxml.py",
+ "--directory",
+ "/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/topic-maps-19d1-h7zsjh0y/sources"
+ ],
+ "qualifiedSourceProvenance": {
+ "sources": [
+ {
+ "name": "cxml",
+ "sha256": "18fls3bx7vmnxfa6qara8fxp316d8kb3izar0kysvqg6l0a45a51",
+ "source": "/nix/store/5075y4alv1is8n78bcsfcaj0mfpqz195-source",
+ "url": "http://beta.quicklisp.org/archive/cxml/2020-06-10/cxml-20200610-git.tgz",
+ "version": "20200610-git"
+ },
+ {
+ "name": "closure-common",
+ "sha256": "0k5r2qxn122pxi301ijir3nayi9sg4d7yiy276l36qmzwhp4mg5n",
+ "source": "/nix/store/yw7j44h85ilvrg9jsnwcyz048nbl3cl9-source",
+ "url": "http://beta.quicklisp.org/archive/closure-common/2018-10-18/closure-common-20181018-git.tgz",
+ "version": "20181018-git"
+ },
+ {
+ "name": "babel",
+ "sha256": "0359bj3yr6frybcmg8qr5vi4q8hzbsb7hmvxdc0jgkfz3c33q667",
+ "source": "/nix/store/76bbavhilddfxd2b56inkdzi6ym860cs-source",
+ "url": "http://beta.quicklisp.org/archive/babel/2024-10-12/babel-20241012-git.tgz",
+ "version": "20241012-git"
+ },
+ {
+ "name": "alexandria",
+ "sha256": "0jq0n59s0r9yl374f0zpdnaflb5g853yqvax7ka8rnypspyykwdw",
+ "source": "/nix/store/i6nnd3amy08a3f3v8q76nh9kw9434z29-source",
+ "url": "http://beta.quicklisp.org/archive/alexandria/2024-10-12/alexandria-20241012-git.tgz",
+ "version": "20241012-git"
+ },
+ {
+ "name": "trivial-features",
+ "sha256": "0r33ycg1wsmglbsychglzkd6fachnnqfzd0w9mhpwi6cz94hx7c3",
+ "source": "/nix/store/fldw3972prvmlv87f0qf69myk79kz1g4-source",
+ "url": "http://beta.quicklisp.org/archive/trivial-features/2023-06-18/trivial-features-20230618-git.tgz",
+ "version": "20230618-git"
+ },
+ {
+ "name": "trivial-gray-streams",
+ "sha256": "0iw6q5hx7x8sc5s7ikvsjccsksbm0rd13d54mkrg62sc56hjywrm",
+ "source": "/nix/store/sk5ab989c1q4yb1b6rwh0rsa5d2iiq5b-source",
+ "url": "http://beta.quicklisp.org/archive/trivial-gray-streams/2024-10-12/trivial-gray-streams-20241012-git.tgz",
+ "version": "20241012-git"
+ },
+ {
+ "name": "puri",
+ "sha256": "0gq2rsr0aihs0z20v4zqvmdl4szq53b52rh97pvnmwrlbn4mapmd",
+ "source": "/nix/store/9h9dj9dlm06x99n3px6vsqh40c6djan8-source",
+ "url": "http://beta.quicklisp.org/archive/puri/2020-10-16/puri-20201016-git.tgz",
+ "version": "20201016-git"
+ }
+ ],
+ "patches": [
+ {
+ "package": "cxml",
+ "patch": "patches/cxml-19d0b.patch",
+ "sha256": "86720fb7960057def9092e8e75332ce45348b9809766667b8e6b1901c7cf5f24",
+ "changedFiles": {
+ "xml/xml-parse.lisp": {
+ "before": "ab9adf0468889ad59cce2eef51530504a77a2c460d73ca291f9625e0bad4ea00",
+ "after": "fe8be457127977b41a198d70426c3d194499af123a68cd165e27886993931d30"
+ }
+ },
+ "application": "patching file 'xml/xml-parse.lisp'"
+ },
+ {
+ "package": "closure-common",
+ "patch": "patches/closure-common-19d0b.patch",
+ "sha256": "bbe8e956a147f6f122025e3c355bb13cf0d55ad811d1d4003f9ab50976aed74a",
+ "changedFiles": {
+ "encodings.lisp": {
+ "before": "f7bf3ebbb2e37fdb8f497320a2e8770196f31a51cb74b43a48b82fa6b12cb442",
+ "after": "d9c1cd3f66ae2189988ada0da75568a198a17b082b1609b20a085eeb3b0e73e1"
+ },
+ "xstream.lisp": {
+ "before": "b373d1c4b880a1ee41e779db046f84e3a252d843700ece826151111269ce45e8",
+ "after": "1acdc5eecb03022488c0cf0274a021844035c6ad6aa5a9fd2cc1cd0c5819d338"
+ }
+ },
+ "application": "patching file encodings.lisp\npatching file xstream.lisp"
+ }
+ ],
+ "effectiveSources": [
+ {
+ "name": "cxml",
+ "source": "/private/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/topic-maps-19d1-h7zsjh0y/sources/cxml"
+ },
+ {
+ "name": "closure-common",
+ "source": "/private/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/topic-maps-19d1-h7zsjh0y/sources/closure-common"
+ },
+ {
+ "name": "babel",
+ "source": "/nix/store/76bbavhilddfxd2b56inkdzi6ym860cs-source"
+ },
+ {
+ "name": "alexandria",
+ "source": "/nix/store/i6nnd3amy08a3f3v8q76nh9kw9434z29-source"
+ },
+ {
+ "name": "trivial-features",
+ "source": "/nix/store/fldw3972prvmlv87f0qf69myk79kz1g4-source"
+ },
+ {
+ "name": "trivial-gray-streams",
+ "source": "/nix/store/sk5ab989c1q4yb1b6rwh0rsa5d2iiq5b-source"
+ },
+ {
+ "name": "puri",
+ "source": "/nix/store/9h9dj9dlm06x99n3px6vsqh40c6djan8-source"
+ }
+ ],
+ "sourceRegistry": "(:source-registry (:tree \"/private/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/topic-maps-19d1-h7zsjh0y/sources/cxml/\") (:tree \"/private/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/topic-maps-19d1-h7zsjh0y/sources/closure-common/\") (:tree \"/nix/store/76bbavhilddfxd2b56inkdzi6ym860cs-source/\") (:tree \"/nix/store/i6nnd3amy08a3f3v8q76nh9kw9434z29-source/\") (:tree \"/nix/store/fldw3972prvmlv87f0qf69myk79kz1g4-source/\") (:tree \"/nix/store/sk5ab989c1q4yb1b6rwh0rsa5d2iiq5b-source/\") (:tree \"/nix/store/9h9dj9dlm06x99n3px6vsqh40c6djan8-source/\") :ignore-inherited-configuration)"
+ },
+ "sourceSHA256": {
+ "src/package.lisp": "1f80cc513a004287bf2691ee7e2d03ea9eec929ddcf980a38c055ae9d29a59c4",
+ "src/filesystem.lisp": "472bd62e0d836939fd145741cb9077e923f3cba82e04dc644d059ac2c4c9296f",
+ "src/corpus.lisp": "af7f3b93a170db36ab5a962bfa13aaff38288b3e3e5c32e44cc15367f4c238a0",
+ "src/report.lisp": "b548959df4de210068718f4f041e29132782046093cf3236662d983cb23bd4fe",
+ "src/cxtm/package.lisp": "ead818427000962e3bcd374711d311204d615fa313d1f8c4d89a63c7f47cd97b",
+ "src/cxtm/canonicalizer.lisp": "ddf277a41595a07638d16ceaa886560e0303477fa5fe0cd47a0058803946c1f7",
+ "src/cxtm/nfc-data.lisp": "d6e93694673f37d1b46cbb8afb1948a913efa2a218755b19ecf7bedda9e7d844",
+ "src/cxtm/unicode.lisp": "fc96efb81c0dd503d28821751675539eb517304f039a82cec7866a51cfa8297a",
+ "src/xml/package.lisp": "fb57cefcf977245115d96e2a69c7cb7c8e121164e91dec441d48f06be7df9a8c",
+ "src/xml/parser.lisp": "fc91d297feb8d79ae137f29ec2a1198986dd377dbff1c56aa826e204388013c5",
+ "src/tmdm/package.lisp": "2891303aec12c19cff574c26d0fc6371dc1c1c4147768b5fc870fefdf02e5ac0",
+ "src/tmdm/integers.lisp": "4b37be581f871f59ac06d7ed47435266d09b4b68ce2310d00716aabd7c8f8c31",
+ "src/tmdm/merging.lisp": "05e5b61e525b9ae3ef50bc3e5ae7137e279a49517146dbc8992c18c689be2de5",
+ "src/tmdm/item-identifiers.lisp": "49dcabb67dc5b0e0548d6092ecf6f9145f1e32809a30975ce5897208a0a83e74",
+ "src/tmdm/datetimes.lisp": "97fab02c50b92bdb6ff66babe38d794ee78cfe23cff8ed2e102fe7b565a12402",
+ "src/tmdm/occurrences.lisp": "1b184a0f325ddaae148ffce8b81c3e8666e356044acbf06eca44da588f590ab5",
+ "src/tmdm/variants.lisp": "f8f4be9cbb58d17ea9bcac1fe19db593b24dc97a5c7eb3bbe9b4413489122e79",
+ "src/tmdm/dates.lisp": "cce7999eeb4df5d39aab1152a73971ae21e20059fd57b9b2a6b202b608e2535c",
+ "src/tmdm/reification.lisp": "9476931118aa964c88b672012a13098a08ae752e3f5c29c27343e985aad2a638",
+ "src/tmdm/associations.lisp": "cc86f08693a0f4be141757f003f9be476bbb9fe0805484dec8d1692eb7aeef18",
+ "src/tmdm/core-subjects.lisp": "bbf2f10392fc30f2a1d951215642aae1acf7664c52ff2455d1504f9d90fc4904",
+ "src/tmdm/decimals.lisp": "9b27880929a42afd89b1745860582ca48f41e2d7ce02bd7422cf3b730464867a",
+ "src/tmdm/import.lisp": "e072f8381504eea93b8c87bf9146a55c9807fc0d441d1c025b24f6ff93a16769",
+ "src/tmdm/items.lisp": "2d1a7d30b7cbdcdbf8ab7e402307729e2b34184efcb1a8e26b07a5c8012a2c36",
+ "src/xtm/package.lisp": "972d2bab16a97a758594e8242aed789016e1b94865169ac90fbec45df90799a1",
+ "src/xtm/reader.lisp": "8e0aaf51321a911c2b97ab0439ec55b5f6bf1193038589308c1fb355b45ffc16",
+ "src/xtm/iri.lisp": "14766359c69e3c68a1201e76a31554a4872765afceec1c600048a27cf8bd6d36",
+ "src/ctm/package.lisp": "344f43ed94b7c4dc5d049593cbd969c3bf1d3c0084104980c8b12e294745bde1",
+ "src/ctm/reader.lisp": "9f6dd86110f3098230f4e584cfd66130c38d53ed491a2dc07c95acce6f68f777",
+ "src/ctm/templates.lisp": "3b9774c975fe03457666c65bb50132602ef4db9120ceda5003b0bb89785faff4",
+ "src/ctm/resources.lisp": "cecf5799f10b64a3fc4df848e08fa0894190408a3ff0c86876b161e8dcce7cd1",
+ "src/ctm/unicode.lisp": "55ce1af0b45d0f75a4162f8aba9fa8c1fd87ef1ef5f374efa85fe2f3c17f219f",
+ "src/ctm/lexer.lisp": "cfafe8a136bf7bbe7f8846282127d92e92d8ddbbdae3c239410cab1bf5fa7cc0",
+ "src/ctm/iri.lisp": "700c53d48cf11585c69f9355e4f12ca8500edaad5371fdf1d3662f980d97b7db",
+ "src/ctm/conditions.lisp": "9d422ded9ba0dd953faf1c862dd7e4de0e191f49868571db438e8df5f5f632a4",
+ "tests/ctm-report.lisp": "c202e0360ea46bdb13d82bcc1a7f86c03fc1506e926ba1327448126918ff7697",
+ "tests/ctm-merging.lisp": "12f8d4c05f58ab698346aee3561dc69024866db0e9ad4e57ecdd3b944dcf1371",
+ "tests/package.lisp": "446b55f7e7917fdd68a5c797b20518535144ae636a630c08e0f866c71153f969",
+ "tests/ctm-decimals.lisp": "714293c865e355f89aa9911011067c3425c12be5e1bf838be1b4a682c53dd866",
+ "tests/cxtm.lisp": "aadd4df99d450494965d37a63d884b64f96bf41d8c9db4eb30b9dd91951d46b0",
+ "tests/association-report.lisp": "53bae4008ad496220ab9521f26f03883eb075252f910fbae1dbc19b97750b18f",
+ "tests/ctm-mergemap.lisp": "5e6f9cadeb172caca12818defb8c6847885a32144fb1cb48d33b0e8522a752f3",
+ "tests/ctm-datetime-timezones.lisp": "9ca6eeb63e9dc9c312e3d834e1c1fc3fd7da4a2c02fbd2e2b64759fd4bdd3a49",
+ "tests/ctm-scopes.lisp": "a817a847537a8a37d12069794e1100365901dcff79accfa08d88cca1ad1b3605",
+ "tests/ctm-templates.lisp": "d252d655740f5ee4acf319edd534effa7c0e7ecf179bc2f5f93c120c596f50c0",
+ "tests/ctm-occurrences.lisp": "530f8bde9e4e16cc2979fbf79c0490bd822bdb227a71b6730777fb2eaa5f5c72",
+ "tests/ctm-dates.lisp": "da85e2e71da0f17c38238bf121b598e34af87b9f726ccbfce648a6ae8e0aad81",
+ "tests/ctm-typed-names.lisp": "2013317b66d0fb245d2ea390b4340dd2dbf42044edabf7d63b603b9a99bccfba",
+ "tests/ctm-include.lisp": "1429a04ab1f31d731a8391dbe820da2a642c4d8f56667911c9a553a6214d2eef",
+ "tests/item-identifiers.lisp": "d544e6dfd10f95cf156841f5bf392581774bbff291b0cfa59f3e465c0159cdd9",
+ "tests/ctm-associations.lisp": "3ca2021fe19fd43e5a0fa4f3f40efb7e3ddeb377f5eab73f3472016fafa77ea5",
+ "tests/ctm-prefixes.lisp": "bc3527604cacc0dbe6c16db3cd544e1adbd241ef68d0679c2e180c59ad997a1d",
+ "tests/ctm-references.lisp": "9393da9625af6981b20bfa17b06e9c0d264be01c778c808fd48c0ba3bf24f5bd",
+ "tests/cxml-encoding-regressions.lisp": "e9129d0beba928e2bc557417b8807ded648e4db638bec9d25a2001dc1134e342",
+ "tests/cxml-probe.lisp": "15f6b43ff11fe69e0ba2ca7232505de9d86abf006bd0f04cece8dea6b1e9e0ff",
+ "tests/foundation.lisp": "93ddfa5e5f5f17285bf1280f17bc24fcab127d191c9496756629d18707167fea",
+ "tests/test_corpus.py": "fd7ccdb2e1b814a4dd0944cee6c09ebab0a332dde30741094905b854d09a88a6",
+ "tests/ctm-package.lisp": "78c788d026a13565eeb6183ca2874484d3a52ee71b3846eab30fa9d34ad0c385",
+ "tests/association-graphs.lisp": "c3bab14683c0fe9dc3dc9e1ef724793862e3ae883d3d783f057cdac9afbd989c",
+ "tests/ctm-variants.lisp": "4744308544eba36d5f0c3355c060a0297beaf5ad5494b780395ec822c94d49ab",
+ "tests/ctm-association-arity.lisp": "adedd0aa2bf6087d20a7a51630927a7076009d566b1c9acbd11407e7d6fcf52f",
+ "tests/map-import.lisp": "718ee7b7319d53895c5bd9fb0175a8f93be5de14a661d37080a8c59231114f56",
+ "tests/xtm-identity.lisp": "50703da4a0b03d0c34494adda1332c072554b2e3b3791834e2ee9c40dad54161",
+ "tests/reification.lisp": "19e192c9249ad40d45b57710aa6102e28bc9ac14f828b76d29121a42e1d1bdbe",
+ "tests/ctm-integers.lisp": "18b7fa387fbd3cfae3e245ea0010c4665d09db75e278cb63522d6220506ca7e4",
+ "tests/ctm-datetimes.lisp": "130a8997497b4e5d2d0f19ec7e77988019f28c287c234b5ef7e442fd4a3439cd",
+ "tests/ctm-identity.lisp": "c5ee9360c6e4f731a436950ea0966315a21204f3e853088a712763bafccb7ff7",
+ "tests/merge-graphs.lisp": "6ae0d02a2e28eada4c2b4531078277fc4d6f07cb4a0f816614d3bef3ab2da21e",
+ "tests/ctm-type-relationships.lisp": "857ef9a44ac78f73816a9cf7853076adc4546b236a1ec3b49acb2ee31a659936",
+ "scripts/check-timezones.py": "2d14d8cca241c909b01edbfad7975ee714d7301e13f47b7aba10020cc4576d54",
+ "scripts/validate-slice-18.py": "34e9130487e7038e2b194118cd69707ae1f94ad4b483b4f28f26d9d2ddc8bd65",
+ "scripts/check-typed-names.py": "ef6b052f552dfd008e05282e7d2d8ae8b537a945acedfc4e7c0a46ea4f822d4c",
+ "scripts/validate-slice-6.py": "4f952ad9a60f0591c7512ad6aa1dc33956cebc935476cfa10de7d79905c49daa",
+ "scripts/check-include.py": "12b4b6e721759430f865d28df88b56d12d2a74682d9e52f8fafaf72acef0fcda",
+ "scripts/validate-slice-7.py": "c4639f6a1aface28b914a0c1c9fb54fcb9bfcda7b14141f7c14a855b55545d99",
+ "scripts/check-cxtm.py": "6bee9e15db460c649afd5100fb96da5d2b24b335983c9a0711582f6e18be94b5",
+ "scripts/validate-slice-19d1.py": "3ee4869efd24cac899031a7547d43e015558a98632f55592979f3f0ff19be577",
+ "scripts/check-variants.py": "b46beb92b0765129b96a9df1b424c190789977a1d50a249af47893fa1733602f",
+ "scripts/check-mergemap.py": "730011714e35731bb803d4176a53925f283cadf1c632dac3922dbb6bcac7734a",
+ "scripts/fresh-sbcl.lisp": "771cce103925aae2cffaa9e9438a67ad9b823b4faf8465ecc05cf0044a18427e",
+ "scripts/validate-cxml-19d0b.py": "cb556418bbae5140c8136d3ee76005611936e9a36bf7351c5f1a6ef85999c730",
+ "scripts/validate-slice-17b.py": "ab39eb21bae6e273ed3e4217932cafee81af8f8e731d71aed75f36d038814a8f",
+ "scripts/check-scopes.py": "291931a3e7e6d903bb7acbcb41aa149e7d63897646745194ca876d9353f929c1",
+ "scripts/validate-slice-19a.py": "6702e11fa9ac91ac59fe4c78fab0d39f494d84cbdc95522c0587cf04199e0624",
+ "scripts/validate-slice-16b.py": "0518d1cff552278bd142d9fd0886f9617bbf52ca5b6964bcc4e75d0735bc462c",
+ "scripts/check-merging.py": "6f4d8242524f0ecaed334d88fb5f2a127910dac3d67cd10f00bdfe7d22a4c76d",
+ "scripts/validate-slice-8.py": "8c98cbd0e007c93fddf35c0525b86563c559113213d9323275cd255fa95363a4",
+ "scripts/check-integers.py": "cfa6c01f08ffd523ce2b8a9924bcd406a0532e689bbd05f8a204a43ed6276690",
+ "scripts/check-dates.py": "62e536da481bfe3b304077b319f9d3935f229e4474c747b8957f7c44e75f79de",
+ "scripts/check-templates.py": "2e86af6f506160e26bc982ff87679fd56e962d2d1bd251c000ae7f6d43ca90cb",
+ "scripts/prepare-cxml.py": "93f21c4c513cb3f7afdd1dc98675d1bba027b027ebca69d68916aba01bce62c9",
+ "scripts/validate-slice-13.py": "d17711a21a78fa58d1e18310cd4aa5b5fc13939d7d34a7edddbe0ca5b0ec3091",
+ "scripts/check-nfc.py": "4616fb09ed145358b7fcebc89354af5c50e4863560dfc7eb3b1ee9c1ab0f4e18",
+ "scripts/check-associations.py": "91f61e3656f9f56e2e43a1f513ebbb7ea54499845e4a5c1336e06f2a4547d251",
+ "scripts/check-references.py": "8d8bba4b1ab048a1122b20f1dd64e04fd12deadb805b6b5579c286b16818b7c7",
+ "scripts/validate-slice-9.py": "0e523de6d7d952a0958129be3c4427af17f9bb7445a8af8206cd399d6232d1a5",
+ "scripts/validate-slice-14.py": "1b30337fb575903afbdfd1e220eabc5686e5057bbc42796a2931079aff5be874",
+ "scripts/check-prefixes.py": "754eaee06045603b7bc0f75f2c4973d18692e038ee374e490eac48e033eb51b3",
+ "scripts/fresh-xtm.lisp": "3417b39c2f98c0146f5a61186990732109347ffef2f9beabdb41206e017884f1",
+ "scripts/validate-slice-10.py": "cb41eef305655b5efafeb8c9471772969fdd9546b593c8f5358c515e215e9102",
+ "scripts/validate-slice-12a.py": "85533b3497cfb805f32866a9866659a67cf303325c8c2c0f50790a01e3c41486",
+ "scripts/validate-slice-19c.py": "387c1018157c7b72196ffc13e37250fe329077f3ec1800a6a796e3659ff11383",
+ "scripts/check-occurrences.py": "d78236ad469277cf8c2c27e99d7a976625c607acc48ddc622f01b0e881b5eef4",
+ "scripts/check-semantics.py": "a70164a461a90d0dc09e73c97d0db7cc338022bf8a069b0f056734603da0c48e",
+ "scripts/validate-slice-17a.py": "b682dfe4973e24062f0cab1ff2f6e4561fb087ddb5f32e2b0b12203b37c534bd",
+ "scripts/validate-slice-11.py": "47b90a0a035333ceebc9db5113303f16ad093acee0461006c2fe6e08d5f4f44f",
+ "scripts/check-report.py": "12f4244da6258330a1a3bb36bf127748e5945b0ba79ed35d52083cabbda7801d",
+ "scripts/validate-slice-16a.py": "8e68f8721cf296cdb8709e17476fa3cf6a2fe498e93b63f477c316fb94ce67df",
+ "scripts/validate-slice-19b.py": "3c521657431306cec21445c169c78808a76c597933aa7387526471ff8085513c",
+ "scripts/validate-slice-15.py": "836fb574b7fe75594a635ffe317cd960b5dfff3a92fb9a6fd5e7713385573820",
+ "scripts/check-arity.py": "d59bdafabc43ef6bf7f562fc3a486735e1a5e490ac14830ee66c562f64a8266b",
+ "scripts/check-decimals.py": "cf02664d7bab57d4515a297a8301cbf5f30d3db3d04698627920c86eccb379d5",
+ "scripts/validate-cxml.py": "c6e1864c4adc14d9108b9295c5922666dcbe860d38f216f0b95253b76f9544e6",
+ "scripts/check-datetimes.py": "23e3c7ee8d99ba2664db4f7a835115a2aa9c1a71b4a9278f9ca2331877f01b56",
+ "scripts/check-map-import.py": "1e5d1212bf386ed16b5beef835e5f669c33edf03c796dd1d4ed36bc61d105b51",
+ "scripts/generate-nfc-data.py": "14db9a2ad100ec6cb24b31451a65aba9621bf01c4980a2432c70e4a7248fdbae",
+ "scripts/check-reification.py": "0874e679719aa00ce40da3ec23c93351823b8aa88b761c5949238500c0fd7cef",
+ "scripts/check-relationships.py": "a6dca44999a5ed6900f8ec1ff0a3fc8c7b5ab486ea126a0b69e7f34a710a4746",
+ "scripts/test.sh": "d0f71d116a41b36b5fe92a9dd724929daca4a2971f6d50390b9a5716b9c150c7",
+ "scripts/corpus.py": "c2324e68b2d29c0cb1492301d7df2d6598cae3930bbf48d3572318a01c324a12",
+ "scripts/check-item-identifiers.py": "df26cb283defcebad0bbd50f4213369108a35a9a57ca4fd68e98903839d44196",
+ "docs/slice-14-validation.md": "a39744fc590075058051f13cd45d050148f3b4d0b31d59f4fa5c7d004509bebb",
+ "docs/slice-19d0-cxml.md": "8f27f930b29f4b268510ec9be51584fc9f7d3d38591702f4c4b77e12c6f04686",
+ "docs/slice-10-validation.md": "c7e1d9a724a134270057fe82ac68abef88f87704071db9a576b5eb540586d1a9",
+ "docs/reading-first-occurrences.md": "dc02cf0d1839a51b74526d330882fb639ce28efe246d9792dca3fb0c56e45cc2",
+ "docs/slice-4-validation.md": "6d7dde9ef071af5fcd850f401742eb149b26aa48b258de227ef779e43442eb32",
+ "docs/reading-scope.md": "aa48ae3f9339f70d7eea68dbf35075a1136d28527bd2252d6e2186e2ade64dd3",
+ "docs/architecture.md": "3fd353ba4fababd5d4e865f90a9fc16bf4b6d8566a22bf644a96879c0ab1b042",
+ "docs/slice-7-validation.md": "036d14f9a07df4fb5b65484fb606c74a474b02106cab076032420ab9b47ad9ed",
+ "docs/reading-map-content-import.md": "ba93b829e766bc43f2e5a379da22e069c513c2db7eef899fbcd7b12b5a41ccb3",
+ "docs/slice-19d1-xtm-identity.md": "e3dc6b9c62748f8354e99c4b523710a3f8a2fa63b308a53117ab76d2afed050f",
+ "docs/slice-3-validation.md": "b0cd084e8932826f50dd6eb0dbbcbf549f0bdfaad536105562bb09ee4aa4e3f0",
+ "docs/slice-13-validation.md": "2a03c0bda1c4a90e97f7dc250d4093e7c93cd79e023fd4b38e66747d68efab22",
+ "docs/slice-19c-validation.md": "81b9d2314f8c4429a97532d39e3dba13882f9ccdf1916013e225fbb9ba60c992",
+ "docs/reading-variants.md": "eac4ae6f2ebeb048999c8400def71fc9e82a607711ecc1675fe707feb0a8ffe2",
+ "docs/reading-reification.md": "2097cd0d45ca5b2c0a971b06f7f9d6bf817d3fe00640942193733d70fdaff58e",
+ "docs/validation.md": "447a4a8568ea58dfebc6aff615101f90cef87f7fceacf5ccc1fc109b47680899",
+ "docs/slice-9-validation.md": "a4ae4d7b72edb283438b78c511e9c1e34f8f77ca5d82cd9fbbe386a51062ea05",
+ "docs/inventory.md": "b2c3660cd20991532a7a86229372df0468130bbfdb9fa7ed780f5dde251545bc",
+ "docs/slice-1a-validation.md": "6147ee80f9f9218fd6269277643c35023cca64be978e8f35955885a0f2c02ef1",
+ "docs/slice-19d0b-cxml-encoding.md": "ca3342a6226a7eb865107df70d4a8d5ce53f7b4960ff51791a63296bc2fe67f3",
+ "docs/reading-canonical-topic-maps.md": "5f00de1a0b06e1959054c8a16658f3d084a95d0a504c1cd6f4c8f7e082c8fd3c",
+ "docs/reading-date-occurrences.md": "b2e2af09ac6eb2c2847009b54247f348338b84b79993c47fc963ee9bc7d8cb04",
+ "docs/slice-16a-validation.md": "42844e0f1b5558d5d04399a00baf79124c0cf5cbb8561d159be697900e6c0aca",
+ "docs/reading-integer-occurrences.md": "c4d6f0e3ff723f2982428717b715802bb825eda148ac5a2b3438981b597ac6c0",
+ "docs/reading-ctm-templates.md": "2f3994eaa6019a36075272e6d834f19499b64f4582bb2b856044960bdcd9784b",
+ "docs/slice-17b-validation.md": "4c9af675f3948ce67162bf46b0f9bdb7568b937705f0091e75489aeb7e51b2a3",
+ "docs/slice-19a-validation.md": "4989a796495262facd66ab5943649f3d71ab4e33cddd16784b9ee0936bd2467b",
+ "docs/reading-ctm-mergemap.md": "2369f6283c34ca46ef7e35951e286cd8a11285851b5f11937f98faeac97f227d",
+ "docs/reading-first-five-ctm-documents.md": "a79e3efeed240a3d5d9af38203a2389157c1cda5638923b0fca1cbdb6c8cca1f",
+ "docs/reading-datetime-occurrences.md": "c5b5d9fd4a037fcb30cf99e1e121141e6f1216691aa924c0b8b75d919ff8285a",
+ "docs/reading-ctm-include.md": "cd2029c34e01507306483c29a326fa0760ffd5198f7592b945a6a275a7eca4a0",
+ "docs/slice-19b-validation.md": "d159b3a654ce0e2eba41abcba520b06044f8cc258e5956716c7598730f1588d2",
+ "docs/slice-18-validation.md": "7921f377621bbbcfd8569a5587fc547fd5959b00f9ad6e450311b5f57d8187be",
+ "docs/reading-association-arity.md": "07ad03813255ad5dc46aa8b102001bf674b17d3668e88981f8f4135e4c700377",
+ "docs/reading-type-relationships.md": "f466c14bde43e94d80e4e0fde52f4178d748bcb11ef91460bd7d17143d772df7",
+ "docs/slice-16b-validation.md": "946d82defb77ed28a83a177e46357859b7f6e84c34c7e6abbb14c455d3a88bad",
+ "docs/reading-topic-merging.md": "bd18b2d98e645c7db79be589ae3155480745c7418be665912ea45013a9462ee4",
+ "docs/reading-prefixes-and-datatypes.md": "3b4ab5f8942918a8a432106fcfc47e7e7da220d9e42a803cc6f4b0c282c9db69",
+ "docs/slice-17a-validation.md": "a828452295e5230b131d536340af82cfaea51952972a4c2e75d9d18682c558b3",
+ "docs/slice-8-validation.md": "80b511a8a565a317b50754aa5e940c32b06f651e7e7c8bdc371281619529186e",
+ "docs/coverage.md": "968d387b3ec3bcdffba519314d3e7e126588c3ccc1ced4589330fe9592f5d8c1",
+ "docs/reading-datetime-timezones.md": "34f8679eb85b24c3f0a2f1c21c3c43e63e971ca0b35ed1cfcd5b1b8a44412a76",
+ "docs/slice-1-api-and-boundaries.md": "be21952b837e455d9ab6c5e5e533d5e21c9dfd07697aed643c905f8008fdb6ad",
+ "docs/slice-2-validation.md": "aca317eb521b968602239ae96751a42faf1f05fd0894b544f510a6e8687eba32",
+ "docs/reading-topic-references.md": "7513d32cf9ea168207767f2ddffdfa0a5789c90d2eea632eb94e1b9c11a8f72b",
+ "docs/reading-first-ctm-associations.md": "7b00b101a4099fb8dfb8517aa506b2fbd1df23e8c0d4ec68ddfd934b050f9084",
+ "docs/reading-item-identifiers.md": "191078ebb1aeb74f2a5b18fb4ef16258f769c831b93891ccfc8464376797abad",
+ "docs/slice-6-validation.md": "df184ae861adb74167768e3cd2da66ab5f18e69b7dca773eef5f7aa201fc518f",
+ "docs/slice-12a-validation.md": "17ae0257cd109387e97362d0d3e66358964213f78cf903c3a825cda906fb8aba",
+ "docs/reading-typed-topic-names.md": "01e5929305f479c6133f441f0e122df651b33adcf2ce695175e4bf9043b2e39f",
+ "docs/reading-decimal-occurrences.md": "89fc7fa561066af1ae51330a9cb5d12906608af6e4832a009e7ab4be88fa6311",
+ "docs/slice-11-validation.md": "3cfcabca71691a22f3d12a051c314ce77a6720f4321093fd6d30b46a7ed63596",
+ "docs/slice-15-validation.md": "e5a69a535065b9c7675168428d0cdc46dd11515b841b6eca9fbf7ed0542378fa",
+ "docs/slice-1-validation.md": "c706bdb5816c32c1a547bd2aee89741131efedb1e325bb16c879154831f46bbc",
+ "docs/slice-5-validation.md": "ae44d9702db286eafe67a4094e713f1a5e994b7697659a7ee2438537c9cf5a48",
+ "topic-maps.asd": "613b3920c54719ac487dcdba19f8409402f80318fc0ccfe37d383fbbab79fd5a",
+ "README.md": "8756f3effcaf6a4c16a63264a0caefeb688d91e576eebf7acc6aaa6022c95a96",
+ "flake.nix": "b369bfbafd868829ff146a58898d11221c76f19e6c6a38cac65ed4213ac926c4",
+ "flake.lock": "d5fabc162f32d7f15fb0afcbc7ea674a91e7719f3fd920401f615e8c24a5c5db"
+ },
+ "protectedCorpusAndDecoderPatchesUnchanged": true,
+ "xmlBoundaryStaticAndRuntimeChecks": "PASS",
+ "runs": [
+ {
+ "label": "xml",
+ "command": [
+ "/usr/bin/sandbox-exec",
+ "-p",
+ "(version 1)(allow default)(deny network*)",
+ "/nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl",
+ "--noinform",
+ "--no-sysinit",
+ "--no-userinit",
+ "--script",
+ "tests/cxml-probe.lisp"
+ ],
+ "freshProcess": true,
+ "network": "denied by sandbox-exec",
+ "startedAtUTC": "2026-10-18T19:51:22.775372+00:00",
+ "exitCode": 0,
+ "finishedAtUTC": "2026-10-18T19:51:28.188748+00:00",
+ "passedChecks": 146
+ },
+ {
+ "label": "xtm-1",
+ "command": [
+ "/usr/bin/sandbox-exec",
+ "-p",
+ "(version 1)(allow default)(deny network*)",
+ "/nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl",
+ "--noinform",
+ "--no-sysinit",
+ "--no-userinit",
+ "--script",
+ "scripts/fresh-xtm.lisp"
+ ],
+ "freshProcess": true,
+ "network": "denied by sandbox-exec",
+ "startedAtUTC": "2026-10-18T19:51:28.189415+00:00",
+ "exitCode": 0,
+ "finishedAtUTC": "2026-10-18T19:51:29.570446+00:00",
+ "passedChecks": 327
+ },
+ {
+ "label": "xtm-2",
+ "command": [
+ "/usr/bin/sandbox-exec",
+ "-p",
+ "(version 1)(allow default)(deny network*)",
+ "/nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl",
+ "--noinform",
+ "--no-sysinit",
+ "--no-userinit",
+ "--script",
+ "scripts/fresh-xtm.lisp"
+ ],
+ "freshProcess": true,
+ "network": "denied by sandbox-exec",
+ "startedAtUTC": "2026-10-18T19:51:29.571416+00:00",
+ "exitCode": 0,
+ "finishedAtUTC": "2026-10-18T19:51:30.599091+00:00",
+ "passedChecks": 327
+ }
+ ],
+ "ctmStatuses": {
+ "pass": 204,
+ "fail": 4,
+ "unsupported": 0,
+ "not-run": 65
+ },
+ "retainedLispChecks": 12100,
+ "retainedChecks": {
+ "FOUNDATION": 54,
+ "CTM-IDENTITY-SEMANTICS": 123,
+ "CTM-MERGING-SEMANTICS": 646,
+ "CTM-ASSOCIATIONS-SEMANTICS": 657,
+ "CXTM": 445,
+ "OCCURRENCES": 1101,
+ "PREFIX-DATATYPES": 150,
+ "INTEGERS": 665,
+ "DECIMALS": 715,
+ "DATES": 1806,
+ "DATETIMES": 217,
+ "TIMEZONES": 1944,
+ "TYPED-NAMES": 106,
+ "SCOPES": 293,
+ "VARIANTS": 324,
+ "REFERENCES": 238,
+ "ITEM-IDENTIFIERS": 244,
+ "REIFICATION": 236,
+ "ASSOCIATION-ARITY": 337,
+ "TYPE-RELATIONSHIPS": 1016,
+ "TEMPLATES": 297,
+ "MAP-IMPORT": 275,
+ "MERGEMAP": 118,
+ "INCLUDE": 93
+ },
+ "retainedRegressionCommand": [
+ "python3",
+ "scripts/validate-slice-19c.py",
+ "--sbcl",
+ "/nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl",
+ "--output",
+ "/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/topic-maps-19d1-h7zsjh0y/regression"
+ ],
+ "retainedReportsByteIdentical": [
+ "arity.json",
+ "associations.json",
+ "cxtm.json",
+ "dates.json",
+ "datetimes.json",
+ "decimals.json",
+ "identifiers.json",
+ "include.json",
+ "integers.json",
+ "map-import.json",
+ "mergemap.json",
+ "merging.json",
+ "occurrences.json",
+ "prefixes.json",
+ "references.json",
+ "reification.json",
+ "relationships.json",
+ "scopes.json",
+ "semantics.json",
+ "templates.json",
+ "timezones.json",
+ "typed-names.json",
+ "validation.json",
+ "variants.json"
+ ],
+ "xtmStatuses": {
+ "pass": 6,
+ "fail": 0,
+ "unsupported": 0,
+ "not-run": 0
+ },
+ "unexecutedOtherXTMInputs": {
+ "positive": 107,
+ "negative": 11
+ },
+ "directXTMHelperSource": "PASS; 5 Topics, 1 Association, 2 Roles; not a CTM Mergemap PASS",
+ "deterministicXTMReports": true,
+ "persistentLispImagesTouched": false,
+ "fullOfflineNixRebuild": "NOT-RUN; original Store sources, verified existing local patches and fresh offline ASDF loads."
+}
--- /dev/null
+{"importedStatuses": {"fail": 4, "not-run": 65, "pass": 204, "unsupported": 0}, "regressionChecks": {"ASSOCIATION-ARITY": 337, "CTM-ASSOCIATIONS-SEMANTICS": 657, "CTM-IDENTITY-SEMANTICS": 123, "CTM-MERGING-SEMANTICS": 646, "CXTM": 445, "DATES": 1806, "DATETIMES": 217, "DECIMALS": 715, "FOUNDATION": 54, "INCLUDE": 93, "INTEGERS": 665, "ITEM-IDENTIFIERS": 244, "MAP-IMPORT": 275, "MERGEMAP": 118, "OCCURRENCES": 1101, "PREFIX-DATATYPES": 150, "REFERENCES": 238, "REIFICATION": 236, "SCOPES": 293, "TEMPLATES": 297, "TIMEZONES": 1944, "TYPE-RELATIONSHIPS": 1016, "TYPED-NAMES": 106, "VARIANTS": 324}, "runtime": "SBCL 2.5.4", "totalLispChecks": 12100}
+SLICE-19C-VALIDATION-PASS: fresh offline regression; seven byte-exact Include originals, three rejections, two original mismatches; retained contracts unchanged
--- /dev/null
+{
+ "baseCommit": "5e716c078b885e97ebe858230ce7d8578e65ae4b",
+ "branch": "codex/ctm-slice-19c",
+ "runtime": "SBCL 2.5.4",
+ "startedAtUTC": "2026-10-18T19:51:31.089852+00:00",
+ "finishedAtUTC": "2026-10-18T19:51:48.592902+00:00",
+ "command": [
+ "/usr/bin/sandbox-exec",
+ "-p",
+ "(version 1)(allow default)(deny network*)",
+ "/usr/bin/env",
+ "PYTHONDONTWRITEBYTECODE=1",
+ "SBCL=/nix/store/hlsiblxpxr1hax3dw9x8znd6zy097ddj-sbcl-2.5.4/bin/sbcl",
+ "TOPIC_MAPS_REPORT=/var/folders/y1/yhhpj5wd7cb5325t8__1ct2r0000gn/T/tmdm-slice-19c-validation-t7dn474p/validation.json",
+ "/Users/rgb/workspace/topic-maps/scripts/test.sh"
+ ],
+ "exitCode": 0,
+ "freshSBCL": true,
+ "network": "denied by sandbox-exec",
+ "regressionChecks": {
+ "FOUNDATION": 54,
+ "CTM-IDENTITY-SEMANTICS": 123,
+ "CTM-MERGING-SEMANTICS": 646,
+ "CTM-ASSOCIATIONS-SEMANTICS": 657,
+ "CXTM": 445,
+ "OCCURRENCES": 1101,
+ "PREFIX-DATATYPES": 150,
+ "INTEGERS": 665,
+ "DECIMALS": 715,
+ "DATES": 1806,
+ "DATETIMES": 217,
+ "TIMEZONES": 1944,
+ "TYPED-NAMES": 106,
+ "SCOPES": 293,
+ "VARIANTS": 324,
+ "REFERENCES": 238,
+ "ITEM-IDENTIFIERS": 244,
+ "REIFICATION": 236,
+ "ASSOCIATION-ARITY": 337,
+ "TYPE-RELATIONSHIPS": 1016,
+ "TEMPLATES": 297,
+ "MAP-IMPORT": 275,
+ "MERGEMAP": 118,
+ "INCLUDE": 93
+ },
+ "totalLispChecks": 12100,
+ "importedStatuses": {
+ "pass": 204,
+ "fail": 4,
+ "unsupported": 0,
+ "not-run": 65
+ },
+ "importedStatusChanges": [
+ [
+ "ctm/in/include-prefix.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/in/include-prefix2.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/in/include-template-wildcard.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/in/include-template.ctm",
+ "not-run",
+ "fail"
+ ],
+ [
+ "ctm/in/include-tm-reifier.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/in/include-topicref.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/in/include-wildcard.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/in/include-wildcard2.ctm",
+ "not-run",
+ "fail"
+ ],
+ [
+ "ctm/in/include.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/invalid/include-prefix.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/invalid/include-prefix2.ctm",
+ "not-run",
+ "pass"
+ ],
+ [
+ "ctm/invalid/include-xtm.ctm",
+ "not-run",
+ "pass"
+ ]
+ ],
+ "retainedOriginalCXTMOutputsAndModelObservationsUnchanged": true,
+ "originalCorpusAndReferencesUnchanged": true,
+ "tmdmAndCxtmSourcesUnchanged": true,
+ "documentedInspectionPassed": true,
+ "baseLexerCounterprobePassed": true,
+ "sourceSHA256": {
+ "src/package.lisp": "1f80cc513a004287bf2691ee7e2d03ea9eec929ddcf980a38c055ae9d29a59c4",
+ "src/filesystem.lisp": "472bd62e0d836939fd145741cb9077e923f3cba82e04dc644d059ac2c4c9296f",
+ "src/corpus.lisp": "af7f3b93a170db36ab5a962bfa13aaff38288b3e3e5c32e44cc15367f4c238a0",
+ "src/report.lisp": "b548959df4de210068718f4f041e29132782046093cf3236662d983cb23bd4fe",
+ "src/cxtm/package.lisp": "ead818427000962e3bcd374711d311204d615fa313d1f8c4d89a63c7f47cd97b",
+ "src/cxtm/canonicalizer.lisp": "ddf277a41595a07638d16ceaa886560e0303477fa5fe0cd47a0058803946c1f7",
+ "src/cxtm/nfc-data.lisp": "d6e93694673f37d1b46cbb8afb1948a913efa2a218755b19ecf7bedda9e7d844",
+ "src/cxtm/unicode.lisp": "fc96efb81c0dd503d28821751675539eb517304f039a82cec7866a51cfa8297a",
+ "src/xml/package.lisp": "fb57cefcf977245115d96e2a69c7cb7c8e121164e91dec441d48f06be7df9a8c",
+ "src/xml/parser.lisp": "fc91d297feb8d79ae137f29ec2a1198986dd377dbff1c56aa826e204388013c5",
+ "src/tmdm/package.lisp": "2891303aec12c19cff574c26d0fc6371dc1c1c4147768b5fc870fefdf02e5ac0",
+ "src/tmdm/integers.lisp": "4b37be581f871f59ac06d7ed47435266d09b4b68ce2310d00716aabd7c8f8c31",
+ "src/tmdm/merging.lisp": "05e5b61e525b9ae3ef50bc3e5ae7137e279a49517146dbc8992c18c689be2de5",
+ "src/tmdm/item-identifiers.lisp": "49dcabb67dc5b0e0548d6092ecf6f9145f1e32809a30975ce5897208a0a83e74",
+ "src/tmdm/datetimes.lisp": "97fab02c50b92bdb6ff66babe38d794ee78cfe23cff8ed2e102fe7b565a12402",
+ "src/tmdm/occurrences.lisp": "1b184a0f325ddaae148ffce8b81c3e8666e356044acbf06eca44da588f590ab5",
+ "src/tmdm/variants.lisp": "f8f4be9cbb58d17ea9bcac1fe19db593b24dc97a5c7eb3bbe9b4413489122e79",
+ "src/tmdm/dates.lisp": "cce7999eeb4df5d39aab1152a73971ae21e20059fd57b9b2a6b202b608e2535c",
+ "src/tmdm/reification.lisp": "9476931118aa964c88b672012a13098a08ae752e3f5c29c27343e985aad2a638",
+ "src/tmdm/associations.lisp": "cc86f08693a0f4be141757f003f9be476bbb9fe0805484dec8d1692eb7aeef18",
+ "src/tmdm/core-subjects.lisp": "bbf2f10392fc30f2a1d951215642aae1acf7664c52ff2455d1504f9d90fc4904",
+ "src/tmdm/decimals.lisp": "9b27880929a42afd89b1745860582ca48f41e2d7ce02bd7422cf3b730464867a",
+ "src/tmdm/import.lisp": "e072f8381504eea93b8c87bf9146a55c9807fc0d441d1c025b24f6ff93a16769",
+ "src/tmdm/items.lisp": "2d1a7d30b7cbdcdbf8ab7e402307729e2b34184efcb1a8e26b07a5c8012a2c36",
+ "src/xtm/package.lisp": "972d2bab16a97a758594e8242aed789016e1b94865169ac90fbec45df90799a1",
+ "src/xtm/reader.lisp": "8e0aaf51321a911c2b97ab0439ec55b5f6bf1193038589308c1fb355b45ffc16",
+ "src/xtm/iri.lisp": "14766359c69e3c68a1201e76a31554a4872765afceec1c600048a27cf8bd6d36",
+ "src/ctm/package.lisp": "344f43ed94b7c4dc5d049593cbd969c3bf1d3c0084104980c8b12e294745bde1",
+ "src/ctm/reader.lisp": "9f6dd86110f3098230f4e584cfd66130c38d53ed491a2dc07c95acce6f68f777",
+ "src/ctm/templates.lisp": "3b9774c975fe03457666c65bb50132602ef4db9120ceda5003b0bb89785faff4",
+ "src/ctm/resources.lisp": "cecf5799f10b64a3fc4df848e08fa0894190408a3ff0c86876b161e8dcce7cd1",
+ "src/ctm/unicode.lisp": "55ce1af0b45d0f75a4162f8aba9fa8c1fd87ef1ef5f374efa85fe2f3c17f219f",
+ "src/ctm/lexer.lisp": "cfafe8a136bf7bbe7f8846282127d92e92d8ddbbdae3c239410cab1bf5fa7cc0",
+ "src/ctm/iri.lisp": "700c53d48cf11585c69f9355e4f12ca8500edaad5371fdf1d3662f980d97b7db",
+ "src/ctm/conditions.lisp": "9d422ded9ba0dd953faf1c862dd7e4de0e191f49868571db438e8df5f5f632a4",
+ "tests/ctm-report.lisp": "c202e0360ea46bdb13d82bcc1a7f86c03fc1506e926ba1327448126918ff7697",
+ "tests/ctm-merging.lisp": "12f8d4c05f58ab698346aee3561dc69024866db0e9ad4e57ecdd3b944dcf1371",
+ "tests/package.lisp": "446b55f7e7917fdd68a5c797b20518535144ae636a630c08e0f866c71153f969",
+ "tests/ctm-decimals.lisp": "714293c865e355f89aa9911011067c3425c12be5e1bf838be1b4a682c53dd866",
+ "tests/cxtm.lisp": "aadd4df99d450494965d37a63d884b64f96bf41d8c9db4eb30b9dd91951d46b0",
+ "tests/association-report.lisp": "53bae4008ad496220ab9521f26f03883eb075252f910fbae1dbc19b97750b18f",
+ "tests/ctm-mergemap.lisp": "5e6f9cadeb172caca12818defb8c6847885a32144fb1cb48d33b0e8522a752f3",
+ "tests/ctm-datetime-timezones.lisp": "9ca6eeb63e9dc9c312e3d834e1c1fc3fd7da4a2c02fbd2e2b64759fd4bdd3a49",
+ "tests/ctm-scopes.lisp": "a817a847537a8a37d12069794e1100365901dcff79accfa08d88cca1ad1b3605",
+ "tests/ctm-templates.lisp": "d252d655740f5ee4acf319edd534effa7c0e7ecf179bc2f5f93c120c596f50c0",
+ "tests/ctm-occurrences.lisp": "530f8bde9e4e16cc2979fbf79c0490bd822bdb227a71b6730777fb2eaa5f5c72",
+ "tests/ctm-dates.lisp": "da85e2e71da0f17c38238bf121b598e34af87b9f726ccbfce648a6ae8e0aad81",
+ "tests/ctm-typed-names.lisp": "2013317b66d0fb245d2ea390b4340dd2dbf42044edabf7d63b603b9a99bccfba",
+ "tests/ctm-include.lisp": "1429a04ab1f31d731a8391dbe820da2a642c4d8f56667911c9a553a6214d2eef",
+ "tests/item-identifiers.lisp": "d544e6dfd10f95cf156841f5bf392581774bbff291b0cfa59f3e465c0159cdd9",
+ "tests/ctm-associations.lisp": "3ca2021fe19fd43e5a0fa4f3f40efb7e3ddeb377f5eab73f3472016fafa77ea5",
+ "tests/ctm-prefixes.lisp": "bc3527604cacc0dbe6c16db3cd544e1adbd241ef68d0679c2e180c59ad997a1d",
+ "tests/ctm-references.lisp": "9393da9625af6981b20bfa17b06e9c0d264be01c778c808fd48c0ba3bf24f5bd",
+ "tests/cxml-encoding-regressions.lisp": "e9129d0beba928e2bc557417b8807ded648e4db638bec9d25a2001dc1134e342",
+ "tests/cxml-probe.lisp": "15f6b43ff11fe69e0ba2ca7232505de9d86abf006bd0f04cece8dea6b1e9e0ff",
+ "tests/foundation.lisp": "93ddfa5e5f5f17285bf1280f17bc24fcab127d191c9496756629d18707167fea",
+ "tests/test_corpus.py": "fd7ccdb2e1b814a4dd0944cee6c09ebab0a332dde30741094905b854d09a88a6",
+ "tests/ctm-package.lisp": "78c788d026a13565eeb6183ca2874484d3a52ee71b3846eab30fa9d34ad0c385",
+ "tests/association-graphs.lisp": "c3bab14683c0fe9dc3dc9e1ef724793862e3ae883d3d783f057cdac9afbd989c",
+ "tests/ctm-variants.lisp": "4744308544eba36d5f0c3355c060a0297beaf5ad5494b780395ec822c94d49ab",
+ "tests/ctm-association-arity.lisp": "adedd0aa2bf6087d20a7a51630927a7076009d566b1c9acbd11407e7d6fcf52f",
+ "tests/map-import.lisp": "718ee7b7319d53895c5bd9fb0175a8f93be5de14a661d37080a8c59231114f56",
+ "tests/xtm-identity.lisp": "50703da4a0b03d0c34494adda1332c072554b2e3b3791834e2ee9c40dad54161",
+ "tests/reification.lisp": "19e192c9249ad40d45b57710aa6102e28bc9ac14f828b76d29121a42e1d1bdbe",
+ "tests/ctm-integers.lisp": "18b7fa387fbd3cfae3e245ea0010c4665d09db75e278cb63522d6220506ca7e4",
+ "tests/ctm-datetimes.lisp": "130a8997497b4e5d2d0f19ec7e77988019f28c287c234b5ef7e442fd4a3439cd",
+ "tests/ctm-identity.lisp": "c5ee9360c6e4f731a436950ea0966315a21204f3e853088a712763bafccb7ff7",
+ "tests/merge-graphs.lisp": "6ae0d02a2e28eada4c2b4531078277fc4d6f07cb4a0f816614d3bef3ab2da21e",
+ "tests/ctm-type-relationships.lisp": "857ef9a44ac78f73816a9cf7853076adc4546b236a1ec3b49acb2ee31a659936",
+ "scripts/check-timezones.py": "2d14d8cca241c909b01edbfad7975ee714d7301e13f47b7aba10020cc4576d54",
+ "scripts/validate-slice-18.py": "34e9130487e7038e2b194118cd69707ae1f94ad4b483b4f28f26d9d2ddc8bd65",
+ "scripts/check-typed-names.py": "ef6b052f552dfd008e05282e7d2d8ae8b537a945acedfc4e7c0a46ea4f822d4c",
+ "scripts/validate-slice-6.py": "4f952ad9a60f0591c7512ad6aa1dc33956cebc935476cfa10de7d79905c49daa",
+ "scripts/check-include.py": "12b4b6e721759430f865d28df88b56d12d2a74682d9e52f8fafaf72acef0fcda",
+ "scripts/validate-slice-7.py": "c4639f6a1aface28b914a0c1c9fb54fcb9bfcda7b14141f7c14a855b55545d99",
+ "scripts/check-cxtm.py": "6bee9e15db460c649afd5100fb96da5d2b24b335983c9a0711582f6e18be94b5",
+ "scripts/validate-slice-19d1.py": "3ee4869efd24cac899031a7547d43e015558a98632f55592979f3f0ff19be577",
+ "scripts/check-variants.py": "b46beb92b0765129b96a9df1b424c190789977a1d50a249af47893fa1733602f",
+ "scripts/check-mergemap.py": "730011714e35731bb803d4176a53925f283cadf1c632dac3922dbb6bcac7734a",
+ "scripts/fresh-sbcl.lisp": "771cce103925aae2cffaa9e9438a67ad9b823b4faf8465ecc05cf0044a18427e",
+ "scripts/validate-cxml-19d0b.py": "cb556418bbae5140c8136d3ee76005611936e9a36bf7351c5f1a6ef85999c730",
+ "scripts/validate-slice-17b.py": "ab39eb21bae6e273ed3e4217932cafee81af8f8e731d71aed75f36d038814a8f",
+ "scripts/check-scopes.py": "291931a3e7e6d903bb7acbcb41aa149e7d63897646745194ca876d9353f929c1",
+ "scripts/validate-slice-19a.py": "6702e11fa9ac91ac59fe4c78fab0d39f494d84cbdc95522c0587cf04199e0624",
+ "scripts/validate-slice-16b.py": "0518d1cff552278bd142d9fd0886f9617bbf52ca5b6964bcc4e75d0735bc462c",
+ "scripts/check-merging.py": "6f4d8242524f0ecaed334d88fb5f2a127910dac3d67cd10f00bdfe7d22a4c76d",
+ "scripts/validate-slice-8.py": "8c98cbd0e007c93fddf35c0525b86563c559113213d9323275cd255fa95363a4",
+ "scripts/check-integers.py": "cfa6c01f08ffd523ce2b8a9924bcd406a0532e689bbd05f8a204a43ed6276690",
+ "scripts/check-dates.py": "62e536da481bfe3b304077b319f9d3935f229e4474c747b8957f7c44e75f79de",
+ "scripts/check-templates.py": "2e86af6f506160e26bc982ff87679fd56e962d2d1bd251c000ae7f6d43ca90cb",
+ "scripts/prepare-cxml.py": "93f21c4c513cb3f7afdd1dc98675d1bba027b027ebca69d68916aba01bce62c9",
+ "scripts/validate-slice-13.py": "d17711a21a78fa58d1e18310cd4aa5b5fc13939d7d34a7edddbe0ca5b0ec3091",
+ "scripts/check-nfc.py": "4616fb09ed145358b7fcebc89354af5c50e4863560dfc7eb3b1ee9c1ab0f4e18",
+ "scripts/check-associations.py": "91f61e3656f9f56e2e43a1f513ebbb7ea54499845e4a5c1336e06f2a4547d251",
+ "scripts/check-references.py": "8d8bba4b1ab048a1122b20f1dd64e04fd12deadb805b6b5579c286b16818b7c7",
+ "scripts/validate-slice-9.py": "0e523de6d7d952a0958129be3c4427af17f9bb7445a8af8206cd399d6232d1a5",
+ "scripts/validate-slice-14.py": "1b30337fb575903afbdfd1e220eabc5686e5057bbc42796a2931079aff5be874",
+ "scripts/check-prefixes.py": "754eaee06045603b7bc0f75f2c4973d18692e038ee374e490eac48e033eb51b3",
+ "scripts/fresh-xtm.lisp": "3417b39c2f98c0146f5a61186990732109347ffef2f9beabdb41206e017884f1",
+ "scripts/validate-slice-10.py": "cb41eef305655b5efafeb8c9471772969fdd9546b593c8f5358c515e215e9102",
+ "scripts/validate-slice-12a.py": "85533b3497cfb805f32866a9866659a67cf303325c8c2c0f50790a01e3c41486",
+ "scripts/validate-slice-19c.py": "387c1018157c7b72196ffc13e37250fe329077f3ec1800a6a796e3659ff11383",
+ "scripts/check-occurrences.py": "d78236ad469277cf8c2c27e99d7a976625c607acc48ddc622f01b0e881b5eef4",
+ "scripts/check-semantics.py": "a70164a461a90d0dc09e73c97d0db7cc338022bf8a069b0f056734603da0c48e",
+ "scripts/validate-slice-17a.py": "b682dfe4973e24062f0cab1ff2f6e4561fb087ddb5f32e2b0b12203b37c534bd",
+ "scripts/validate-slice-11.py": "47b90a0a035333ceebc9db5113303f16ad093acee0461006c2fe6e08d5f4f44f",
+ "scripts/check-report.py": "12f4244da6258330a1a3bb36bf127748e5945b0ba79ed35d52083cabbda7801d",
+ "scripts/validate-slice-16a.py": "8e68f8721cf296cdb8709e17476fa3cf6a2fe498e93b63f477c316fb94ce67df",
+ "scripts/validate-slice-19b.py": "3c521657431306cec21445c169c78808a76c597933aa7387526471ff8085513c",
+ "scripts/validate-slice-15.py": "836fb574b7fe75594a635ffe317cd960b5dfff3a92fb9a6fd5e7713385573820",
+ "scripts/check-arity.py": "d59bdafabc43ef6bf7f562fc3a486735e1a5e490ac14830ee66c562f64a8266b",
+ "scripts/check-decimals.py": "cf02664d7bab57d4515a297a8301cbf5f30d3db3d04698627920c86eccb379d5",
+ "scripts/validate-cxml.py": "c6e1864c4adc14d9108b9295c5922666dcbe860d38f216f0b95253b76f9544e6",
+ "scripts/check-datetimes.py": "23e3c7ee8d99ba2664db4f7a835115a2aa9c1a71b4a9278f9ca2331877f01b56",
+ "scripts/check-map-import.py": "1e5d1212bf386ed16b5beef835e5f669c33edf03c796dd1d4ed36bc61d105b51",
+ "scripts/generate-nfc-data.py": "14db9a2ad100ec6cb24b31451a65aba9621bf01c4980a2432c70e4a7248fdbae",
+ "scripts/check-reification.py": "0874e679719aa00ce40da3ec23c93351823b8aa88b761c5949238500c0fd7cef",
+ "scripts/check-relationships.py": "a6dca44999a5ed6900f8ec1ff0a3fc8c7b5ab486ea126a0b69e7f34a710a4746",
+ "scripts/test.sh": "d0f71d116a41b36b5fe92a9dd724929daca4a2971f6d50390b9a5716b9c150c7",
+ "scripts/corpus.py": "c2324e68b2d29c0cb1492301d7df2d6598cae3930bbf48d3572318a01c324a12",
+ "scripts/check-item-identifiers.py": "df26cb283defcebad0bbd50f4213369108a35a9a57ca4fd68e98903839d44196",
+ "docs/slice-14-validation.md": "a39744fc590075058051f13cd45d050148f3b4d0b31d59f4fa5c7d004509bebb",
+ "docs/slice-19d0-cxml.md": "8f27f930b29f4b268510ec9be51584fc9f7d3d38591702f4c4b77e12c6f04686",
+ "docs/slice-10-validation.md": "c7e1d9a724a134270057fe82ac68abef88f87704071db9a576b5eb540586d1a9",
+ "docs/reading-first-occurrences.md": "dc02cf0d1839a51b74526d330882fb639ce28efe246d9792dca3fb0c56e45cc2",
+ "docs/slice-4-validation.md": "6d7dde9ef071af5fcd850f401742eb149b26aa48b258de227ef779e43442eb32",
+ "docs/reading-scope.md": "aa48ae3f9339f70d7eea68dbf35075a1136d28527bd2252d6e2186e2ade64dd3",
+ "docs/architecture.md": "3fd353ba4fababd5d4e865f90a9fc16bf4b6d8566a22bf644a96879c0ab1b042",
+ "docs/slice-7-validation.md": "036d14f9a07df4fb5b65484fb606c74a474b02106cab076032420ab9b47ad9ed",
+ "docs/reading-map-content-import.md": "ba93b829e766bc43f2e5a379da22e069c513c2db7eef899fbcd7b12b5a41ccb3",
+ "docs/slice-19d1-xtm-identity.md": "e3dc6b9c62748f8354e99c4b523710a3f8a2fa63b308a53117ab76d2afed050f",
+ "docs/slice-3-validation.md": "b0cd084e8932826f50dd6eb0dbbcbf549f0bdfaad536105562bb09ee4aa4e3f0",
+ "docs/slice-13-validation.md": "2a03c0bda1c4a90e97f7dc250d4093e7c93cd79e023fd4b38e66747d68efab22",
+ "docs/slice-19c-validation.md": "81b9d2314f8c4429a97532d39e3dba13882f9ccdf1916013e225fbb9ba60c992",
+ "docs/reading-variants.md": "eac4ae6f2ebeb048999c8400def71fc9e82a607711ecc1675fe707feb0a8ffe2",
+ "docs/reading-reification.md": "2097cd0d45ca5b2c0a971b06f7f9d6bf817d3fe00640942193733d70fdaff58e",
+ "docs/validation.md": "447a4a8568ea58dfebc6aff615101f90cef87f7fceacf5ccc1fc109b47680899",
+ "docs/slice-9-validation.md": "a4ae4d7b72edb283438b78c511e9c1e34f8f77ca5d82cd9fbbe386a51062ea05",
+ "docs/inventory.md": "b2c3660cd20991532a7a86229372df0468130bbfdb9fa7ed780f5dde251545bc",
+ "docs/slice-1a-validation.md": "6147ee80f9f9218fd6269277643c35023cca64be978e8f35955885a0f2c02ef1",
+ "docs/slice-19d0b-cxml-encoding.md": "ca3342a6226a7eb865107df70d4a8d5ce53f7b4960ff51791a63296bc2fe67f3",
+ "docs/reading-canonical-topic-maps.md": "5f00de1a0b06e1959054c8a16658f3d084a95d0a504c1cd6f4c8f7e082c8fd3c",
+ "docs/reading-date-occurrences.md": "b2e2af09ac6eb2c2847009b54247f348338b84b79993c47fc963ee9bc7d8cb04",
+ "docs/slice-16a-validation.md": "42844e0f1b5558d5d04399a00baf79124c0cf5cbb8561d159be697900e6c0aca",
+ "docs/reading-integer-occurrences.md": "c4d6f0e3ff723f2982428717b715802bb825eda148ac5a2b3438981b597ac6c0",
+ "docs/reading-ctm-templates.md": "2f3994eaa6019a36075272e6d834f19499b64f4582bb2b856044960bdcd9784b",
+ "docs/slice-17b-validation.md": "4c9af675f3948ce67162bf46b0f9bdb7568b937705f0091e75489aeb7e51b2a3",
+ "docs/slice-19a-validation.md": "4989a796495262facd66ab5943649f3d71ab4e33cddd16784b9ee0936bd2467b",
+ "docs/reading-ctm-mergemap.md": "2369f6283c34ca46ef7e35951e286cd8a11285851b5f11937f98faeac97f227d",
+ "docs/reading-first-five-ctm-documents.md": "a79e3efeed240a3d5d9af38203a2389157c1cda5638923b0fca1cbdb6c8cca1f",
+ "docs/reading-datetime-occurrences.md": "c5b5d9fd4a037fcb30cf99e1e121141e6f1216691aa924c0b8b75d919ff8285a",
+ "docs/reading-ctm-include.md": "cd2029c34e01507306483c29a326fa0760ffd5198f7592b945a6a275a7eca4a0",
+ "docs/slice-19b-validation.md": "d159b3a654ce0e2eba41abcba520b06044f8cc258e5956716c7598730f1588d2",
+ "docs/slice-18-validation.md": "7921f377621bbbcfd8569a5587fc547fd5959b00f9ad6e450311b5f57d8187be",
+ "docs/reading-association-arity.md": "07ad03813255ad5dc46aa8b102001bf674b17d3668e88981f8f4135e4c700377",
+ "docs/reading-type-relationships.md": "f466c14bde43e94d80e4e0fde52f4178d748bcb11ef91460bd7d17143d772df7",
+ "docs/slice-16b-validation.md": "946d82defb77ed28a83a177e46357859b7f6e84c34c7e6abbb14c455d3a88bad",
+ "docs/reading-topic-merging.md": "bd18b2d98e645c7db79be589ae3155480745c7418be665912ea45013a9462ee4",
+ "docs/reading-prefixes-and-datatypes.md": "3b4ab5f8942918a8a432106fcfc47e7e7da220d9e42a803cc6f4b0c282c9db69",
+ "docs/slice-17a-validation.md": "a828452295e5230b131d536340af82cfaea51952972a4c2e75d9d18682c558b3",
+ "docs/slice-8-validation.md": "80b511a8a565a317b50754aa5e940c32b06f651e7e7c8bdc371281619529186e",
+ "docs/coverage.md": "968d387b3ec3bcdffba519314d3e7e126588c3ccc1ced4589330fe9592f5d8c1",
+ "docs/reading-datetime-timezones.md": "34f8679eb85b24c3f0a2f1c21c3c43e63e971ca0b35ed1cfcd5b1b8a44412a76",
+ "docs/slice-1-api-and-boundaries.md": "be21952b837e455d9ab6c5e5e533d5e21c9dfd07697aed643c905f8008fdb6ad",
+ "docs/slice-2-validation.md": "aca317eb521b968602239ae96751a42faf1f05fd0894b544f510a6e8687eba32",
+ "docs/reading-topic-references.md": "7513d32cf9ea168207767f2ddffdfa0a5789c90d2eea632eb94e1b9c11a8f72b",
+ "docs/reading-first-ctm-associations.md": "7b00b101a4099fb8dfb8517aa506b2fbd1df23e8c0d4ec68ddfd934b050f9084",
+ "docs/reading-item-identifiers.md": "191078ebb1aeb74f2a5b18fb4ef16258f769c831b93891ccfc8464376797abad",
+ "docs/slice-6-validation.md": "df184ae861adb74167768e3cd2da66ab5f18e69b7dca773eef5f7aa201fc518f",
+ "docs/slice-12a-validation.md": "17ae0257cd109387e97362d0d3e66358964213f78cf903c3a825cda906fb8aba",
+ "docs/reading-typed-topic-names.md": "01e5929305f479c6133f441f0e122df651b33adcf2ce695175e4bf9043b2e39f",
+ "docs/reading-decimal-occurrences.md": "89fc7fa561066af1ae51330a9cb5d12906608af6e4832a009e7ab4be88fa6311",
+ "docs/slice-11-validation.md": "3cfcabca71691a22f3d12a051c314ce77a6720f4321093fd6d30b46a7ed63596",
+ "docs/slice-15-validation.md": "e5a69a535065b9c7675168428d0cdc46dd11515b841b6eca9fbf7ed0542378fa",
+ "docs/slice-1-validation.md": "c706bdb5816c32c1a547bd2aee89741131efedb1e325bb16c879154831f46bbc",
+ "docs/slice-5-validation.md": "ae44d9702db286eafe67a4094e713f1a5e994b7697659a7ee2438537c9cf5a48",
+ "topic-maps.asd": "613b3920c54719ac487dcdba19f8409402f80318fc0ccfe37d383fbbab79fd5a",
+ "README.md": "8756f3effcaf6a4c16a63264a0caefeb688d91e576eebf7acc6aaa6022c95a96"
+ },
+ "qualification": "CTM Include with immediate-parent Document/Wildcard environments, per-level aliases and source-preserving Templates. All twelve originals execute: seven byte-equal positives, three rejections, two explicit mismatches. Two retained DateTime FAILs unchanged; XTM remains NOT-RUN.",
+ "artifactsSHA256": {
+ "actual/include-prefix.ctm.cxtm": "b03a943988df0e1ccc3a822ed8430c4664efbfb4245a117fec263bf27ead4497",
+ "actual/include-prefix2.ctm.cxtm": "2a44eb756e08549856f2b12b048f993740b7b1f590d331b3c9c15db8d48bc3db",
+ "actual/include-template-wildcard.ctm.cxtm": "3ba753012de6e8976059dadf78e60f7f447d2910df79b12e8b2f8fdd0a61dd10",
+ "actual/include-template.ctm.cxtm": "15326a49da9e44f4a3f886414aa2134cf3ba0f7682bb52259e3b64138ac5e864",
+ "actual/include-tm-reifier.ctm.cxtm": "473a5807db2c0a090d9cf61259a0dc96a6f49f797418ed5516e5bc96ee1472b4",
+ "actual/include-topicref.ctm.cxtm": "95af4ff7d130903b00b38727edef08e944e6ce0c555f514327d3294517f24658",
+ "actual/include-wildcard.ctm.cxtm": "0e06b660af3d44b6a1eb5b5d8e896dfa54a435b3daf089d0c77e48f67186cdba",
+ "actual/include-wildcard2.ctm.cxtm": "be6e7114120452715b740956b25d8c1ec263814d2210e6ea323976055ecc082e",
+ "actual/include.ctm.cxtm": "ec6600347d32624ee3f7c0e73d2a4dc9ba11eecd3c033f021e95e0e3aac69d60",
+ "arity.json": "02ffd2fbfd379ec140e13f665190c84e6781af9394fe194e8ddef4175e21b7e0",
+ "associations.json": "31b1e7a0552904f8f1bcbb6028d461a04460c3945d0534773bbbb57034e2e64f",
+ "base-control.log": "39badc7277e408144b9c1c00d82aaf77d4b760209448d0d4001a3f103656f7d3",
+ "cxtm.json": "10612369817fbd336f8035648abade081a2c6848408f6533b1a79c013cb318b5",
+ "dates.json": "92c38576019d05ff80903b189a264b3b85d422957797be7b8c0459348e4e8580",
+ "datetimes.json": "4badf7237d6e25df7b5e30673adf04b259ab57750562deea3635ff5c78d847c4",
+ "decimals.json": "3147c6d3ae1a8cf6041d4008be3dc177411139a5737b8122c9e1b41eb188d1ed",
+ "describe.log": "6e1649d0b9664603acff6579d05fbfbee3bc6c952ea7bf7cbff6498c9bd80339",
+ "identifiers.json": "5107966e75b2599a8b3b02b82e320967eb7588263ab129011a079dd77d3582a9",
+ "include.json": "f740b70dfbf8e5790f4ab8ac3df3e40ef62fa18a47dcee7f12f2e6d7c573eea7",
+ "integers.json": "a117e7eecbbd4092725c95e9f3f10dd1c0279f5ce3575c29c94e5bd6020ae45d",
+ "map-import.json": "883052223d825e6e0b86b128e4e0ebb92432e57395cebf32a42c43f43530864e",
+ "mergemap.json": "6f78d3ca676093514fd5def2699f233458ded4a39e949b7a9716f5a645b33802",
+ "merging.json": "d38e3ba85aaaceb63bcd481b1c3670f70efca876afc4b5ff92032c91c099d5c3",
+ "occurrences.json": "4b4889e62153fbcb658c75c752ea2bb39244cbf08596abb3190473a47119144d",
+ "prefixes.json": "01ea278fc301c98539e60a327bcf1d9976ba7abd23113a3e1c109a2d60bfe623",
+ "references.json": "bfe5fd9aca4701d10853c33e984663b50a6acb67e767d5d5c2f84f3bd98b521d",
+ "reification.json": "c5037082b0fd507707290b434ab648e4645341899362fd11be6752d579997890",
+ "relationships.json": "d96021c0f00c98129f54646535f0995ca5f9c39d2f0b8a8814d00e2eab37171c",
+ "scopes.json": "1f05cb6c023553798cd94940384c3170d3aaac7d513d9769c07dc096a034158b",
+ "semantics.json": "7ae0747a6fd87e7726513f3d8e3b49c6c123337a3364922c005c35216a62d561",
+ "templates.json": "9f1e6f3508dbfd745dd9aee47f4a6c3d82620347c2b63c188e353334f554b311",
+ "tests.log": "eda4f33ab8a43116a8a516de04c081a337ff5d07124393b91bcf413e0e5b58ae",
+ "timezones.json": "cd17799042eb4c76a7bbfcc81d1c82e3f88b390ed106dbf5c5d7ee5e8b136142",
+ "typed-names.json": "9df3ea1fcc45d82c16d79eab0348630a9eb3bd3e36715af820576b3008276630",
+ "validation.json": "c4a303e4baf0d5ce41f3b1e1c4e8be90104eb1946a344305873b339e1089672a",
+ "variants.json": "8a7d5c5cf202f4cb1f1b444675ed4042bf7d3a343132291d4a2985d55db27804"
+ }
+}
--- /dev/null
+CORPUS-INTEGRITY-PASS: {"auxiliary": 22, "baselines": 231, "invalid": 42, "missingBaselines": [], "unmatchedBaselines": [], "valid": 231}
+..
+----------------------------------------------------------------------
+Ran 2 tests in 0.014s
+
+OK
+; compiling file "/Users/rgb/workspace/topic-maps/src/package.lisp" (written 13 OCT 2026 11:05:43 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/package-tmpGHU3ALSV.fasl
+; compilation finished in 0:00:00.003
+; compiling file "/Users/rgb/workspace/topic-maps/src/filesystem.lisp" (written 13 OCT 2026 11:09:14 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/filesystem-tmpAAURSO1.fasl
+; compilation finished in 0:00:00.014
+; compiling file "/Users/rgb/workspace/topic-maps/src/corpus.lisp" (written 13 OCT 2026 11:09:14 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/corpus-tmp5GEXGEG5.fasl
+; compilation finished in 0:00:00.107
+; compiling file "/Users/rgb/workspace/topic-maps/src/report.lisp" (written 14 OCT 2026 05:51:46 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/report-tmpAR3FSGEY.fasl
+; compilation finished in 0:00:00.039
+; compiling file "/Users/rgb/workspace/topic-maps/tests/package.lisp" (written 13 OCT 2026 11:17:48 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/package-tmpJAIDFZTC.fasl
+; compilation finished in 0:00:00.001
+; compiling file "/Users/rgb/workspace/topic-maps/tests/foundation.lisp" (written 14 OCT 2026 05:51:46 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/foundation-tmp8V3J6PE9.fasl
+; compilation finished in 0:00:00.039
+FOUNDATION-PASS: 54 infrastructure checks; 231 valid, 42 invalid, 231 baselines, 22 auxiliaries; 273 CTM cases NOT-RUN, zero CTM passes.
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/package.lisp" (written 18 OCT 2026 12:43:22 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/package-tmp9V47YWQF.fasl
+; compilation finished in 0:00:00.003
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/integers.lisp" (written 16 OCT 2026 07:06:07 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/integers-tmp9BN22RMA.fasl
+; compilation finished in 0:00:00.016
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/decimals.lisp" (written 16 OCT 2026 08:18:19 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/decimals-tmp1CXFJSK9.fasl
+; compilation finished in 0:00:00.016
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/dates.lisp" (written 16 OCT 2026 12:57:36 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/dates-tmpX4BRKI0R.fasl
+; compilation finished in 0:00:00.060
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/datetimes.lisp" (written 17 OCT 2026 07:39:44 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/datetimes-tmpQ371UGST.fasl
+; compilation finished in 0:00:00.090
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/items.lisp" (written 18 OCT 2026 06:51:54 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/items-tmp2OWI3Q7U.fasl
+; compilation finished in 0:00:00.151
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/core-subjects.lisp" (written 18 OCT 2026 09:07:18 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/core-subjects-tmp9KKTJMYV.fasl
+; compilation finished in 0:00:00.012
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/item-identifiers.lisp" (written 18 OCT 2026 06:55:56 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/item-identifiers-tmpJU0JWO19.fasl
+; compilation finished in 0:00:00.061
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/reification.lisp" (written 18 OCT 2026 12:43:22 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/reification-tmpZX2WN8N4.fasl
+; compilation finished in 0:00:00.049
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/merging.lisp" (written 18 OCT 2026 12:49:58 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/merging-tmpOU81XRV0.fasl
+; compilation finished in 0:00:00.066
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/occurrences.lisp" (written 18 OCT 2026 06:52:49 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/occurrences-tmpY2ML9CFA.fasl
+; compilation finished in 0:00:00.031
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/variants.lisp" (written 18 OCT 2026 06:52:49 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/variants-tmpX2JYJDQE.fasl
+; compilation finished in 0:00:00.033
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/associations.lisp" (written 18 OCT 2026 06:52:49 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/associations-tmpOPCILR65.fasl
+; compilation finished in 0:00:00.021
+; compiling file "/Users/rgb/workspace/topic-maps/src/tmdm/import.lisp" (written 18 OCT 2026 12:43:24 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/tmdm/import-tmpRV9F8A9A.fasl
+; compilation finished in 0:00:00.021
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/package.lisp" (written 18 OCT 2026 01:41:47 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/package-tmpK2ZAJT4I.fasl
+; compilation finished in 0:00:00.001
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/conditions.lisp" (written 18 OCT 2026 02:51:55 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/conditions-tmpUX5S4ADN.fasl
+; compilation finished in 0:00:00.017
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/unicode.lisp" (written 14 OCT 2026 06:08:41 AM):
+
+; file: /Users/rgb/workspace/topic-maps/src/ctm/unicode.lisp
+; in: DEFUN SCALAR-CHARACTER
+; (TOPIC-MAPS.CTM::PROBLEM 'TOPIC-MAPS.CTM:CTM-UNSUPPORTED
+; :CHARACTER-REPERTOIRE POSITION
+; "The Common Lisp implementation cannot represent this Unicode character.")
+;
+; note: deleting unreachable code
+
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/unicode-tmp10401X32.fasl
+; compilation finished in 0:00:00.042
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/iri.lisp" (written 18 OCT 2026 02:50:41 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/iri-tmpZ7CBRM0G.fasl
+; compilation finished in 0:00:00.069
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/lexer.lisp" (written 18 OCT 2026 02:50:41 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/lexer-tmp9OZEQ0G2.fasl
+; compilation finished in 0:00:00.124
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/reader.lisp" (written 18 OCT 2026 03:05:02 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/reader-tmpB2JTL1W9.fasl
+; compilation finished in 0:00:00.281
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/templates.lisp" (written 18 OCT 2026 02:50:41 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/templates-tmpP3BI68WQ.fasl
+; compilation finished in 0:00:00.105
+; compiling file "/Users/rgb/workspace/topic-maps/src/ctm/resources.lisp" (written 18 OCT 2026 03:05:02 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/ctm/resources-tmpQDARA81Z.fasl
+; compilation finished in 0:00:00.031
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-package.lisp" (written 14 OCT 2026 06:12:17 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-package-tmpYEMMM7SE.fasl
+; compilation finished in 0:00:00.001
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-identity.lisp" (written 18 OCT 2026 02:57:43 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-identity-tmp73HU0RPK.fasl
+; compilation finished in 0:00:00.078
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-report.lisp" (written 14 OCT 2026 08:37:02 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-report-tmpIO5N7K88.fasl
+; compilation finished in 0:00:00.014
+CTM-IDENTITY-SEMANTICS-PASS: 123 checks, 5 imported semantic cases, required prefix rejection; no CXTM equality passes.
+;
+; compilation unit finished
+; printed 1 note
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-merging.lisp" (written 14 OCT 2026 07:41:46 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-merging-tmpCM21U60Z.fasl
+; compilation finished in 0:00:00.055
+; compiling file "/Users/rgb/workspace/topic-maps/tests/merge-graphs.lisp" (written 14 OCT 2026 07:41:46 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/merge-graphs-tmp9DT7SEFG.fasl
+; compilation finished in 0:00:00.029
+CTM-MERGING-SEMANTICS-PASS: 646 checks, 11 pinned semantic cases; no CXTM equality passes.
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-associations.lisp" (written 18 OCT 2026 11:30:53 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-associations-tmp8065ESJT.fasl
+; compilation finished in 0:00:00.074
+; compiling file "/Users/rgb/workspace/topic-maps/tests/association-graphs.lisp" (written 14 OCT 2026 08:37:02 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/association-graphs-tmp7S8Z6FGF.fasl
+; compilation finished in 0:00:00.019
+; compiling file "/Users/rgb/workspace/topic-maps/tests/association-report.lisp" (written 14 OCT 2026 08:37:02 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/association-report-tmpSIT3QPKP.fasl
+; compilation finished in 0:00:00.011
+CTM-ASSOCIATIONS-SEMANTICS-PASS: 657 checks, 8 pinned cases; no CXTM equality passes.
+; compiling file "/Users/rgb/workspace/topic-maps/src/cxtm/package.lisp" (written 14 OCT 2026 05:49:40 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/cxtm/package-tmpE0PA0714.fasl
+; compilation finished in 0:00:00.014
+; compiling file "/Users/rgb/workspace/topic-maps/src/cxtm/nfc-data.lisp" (written 14 OCT 2026 05:59:26 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/cxtm/nfc-data-tmpJRWHHVG0.fasl
+; compilation finished in 0:00:00.335
+; compiling file "/Users/rgb/workspace/topic-maps/src/cxtm/unicode.lisp" (written 14 OCT 2026 05:59:27 PM):
+
+; file: /Users/rgb/workspace/topic-maps/src/cxtm/unicode.lisp
+; in: DEFUN NFC
+; (TOPIC-MAPS.CXTM::FAIL :UNSUPPORTED-CHARACTER
+; "Lisp character repertoire is insufficient." T)
+;
+; note: deleting unreachable code
+
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/cxtm/unicode-tmp4WZVROCX.fasl
+; compilation finished in 0:00:00.062
+; compiling file "/Users/rgb/workspace/topic-maps/src/cxtm/canonicalizer.lisp" (written 18 OCT 2026 09:07:18 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/src/cxtm/canonicalizer-tmpA0I3UKX8.fasl
+; compilation finished in 0:00:00.140
+; compiling file "/Users/rgb/workspace/topic-maps/tests/cxtm.lisp" (written 18 OCT 2026 06:55:56 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/cxtm-tmp267Y2N80.fasl
+; compilation finished in 0:00:00.144
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-occurrences.lisp" (written 18 OCT 2026 06:55:56 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-occurrences-tmpOUPE5FSJ.fasl
+; compilation finished in 0:00:00.137
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-prefixes.lisp" (written 18 OCT 2026 02:57:43 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-prefixes-tmpIGHCU6ZA.fasl
+; compilation finished in 0:00:00.085
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-integers.lisp" (written 17 OCT 2026 07:41:22 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-integers-tmpBO0TUGLK.fasl
+; compilation finished in 0:00:00.101
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-decimals.lisp" (written 16 OCT 2026 08:22:14 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-decimals-tmpIIXPIQNW.fasl
+; compilation finished in 0:00:00.133
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-dates.lisp" (written 16 OCT 2026 08:46:50 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-dates-tmpOHM494YR.fasl
+; compilation finished in 0:00:00.177
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-datetimes.lisp" (written 17 OCT 2026 07:37:00 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-datetimes-tmpOVFB07XF.fasl
+; compilation finished in 0:00:00.105
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-datetime-timezones.lisp" (written 17 OCT 2026 07:40:43 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-datetime-timezones-tmpG6VFGMYP.fasl
+; compilation finished in 0:00:00.053
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-typed-names.lisp" (written 18 OCT 2026 06:55:56 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-typed-names-tmp4QIPRMOF.fasl
+; compilation finished in 0:00:00.061
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-scopes.lisp" (written 18 OCT 2026 11:31:38 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-scopes-tmpGW0QV22K.fasl
+; compilation finished in 0:00:00.140
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-variants.lisp" (written 18 OCT 2026 11:32:21 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-variants-tmp2K9J0HSR.fasl
+; compilation finished in 0:00:00.121
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-references.lisp" (written 18 OCT 2026 02:57:43 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-references-tmpP44I4E0Y.fasl
+; compilation finished in 0:00:00.124
+; compiling file "/Users/rgb/workspace/topic-maps/tests/item-identifiers.lisp" (written 18 OCT 2026 07:00:02 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/item-identifiers-tmp63LQ7EX6.fasl
+; compilation finished in 0:00:00.109
+; compiling file "/Users/rgb/workspace/topic-maps/tests/reification.lisp" (written 18 OCT 2026 07:09:43 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/reification-tmp86F1A8FB.fasl
+; compilation finished in 0:00:00.124
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-association-arity.lisp" (written 18 OCT 2026 11:30:53 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-association-arity-tmpH7D4HL98.fasl
+; compilation finished in 0:00:00.108
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-type-relationships.lisp" (written 18 OCT 2026 09:20:20 AM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-type-relationships-tmpCDM7YXYI.fasl
+; compilation finished in 0:00:00.089
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-templates.lisp" (written 18 OCT 2026 02:57:43 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-templates-tmpLM57P5P.fasl
+; compilation finished in 0:00:00.078
+; compiling file "/Users/rgb/workspace/topic-maps/tests/map-import.lisp" (written 18 OCT 2026 12:54:30 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/map-import-tmpZE69DN33.fasl
+; compilation finished in 0:00:00.143
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-mergemap.lisp" (written 18 OCT 2026 01:57:45 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-mergemap-tmpG8099TO3.fasl
+; compilation finished in 0:00:00.144
+; compiling file "/Users/rgb/workspace/topic-maps/tests/ctm-include.lisp" (written 18 OCT 2026 03:05:02 PM):
+
+; wrote /tmp/topic-maps-fasls/Users/rgb/workspace/topic-maps/tests/ctm-include-tmpTASQCYAW.fasl
+; compilation finished in 0:00:00.099
+CXTM ctm/in/simple.ctm: PASS
+CXTM ctm/in/subject-identifier.ctm: PASS
+CXTM ctm/in/subject-locator.ctm: PASS
+CXTM ctm/in/item-identifier.ctm: PASS
+CXTM ctm/in/name.ctm: PASS
+CXTM ctm/in/topic-subject-identifier.ctm: PASS
+CXTM ctm/in/topic-subject-identifier-wrapped.ctm: PASS
+CXTM ctm/in/topic-subject-identifier-duplicate.ctm: PASS
+CXTM ctm/in/topic-subject-locator.ctm: PASS
+CXTM ctm/in/topic-subject-locator-wrapped.ctm: PASS
+CXTM ctm/in/topic-subject-locator-semi.ctm: PASS
+CXTM ctm/in/topic-subject-locator-duplicate.ctm: PASS
+CXTM ctm/in/topic-item-identifier.ctm: PASS
+CXTM ctm/in/topic-item-identifier-wrapped.ctm: PASS
+CXTM ctm/in/topic-item-identifier-duplicate.ctm: PASS
+CXTM ctm/in/name-duplicate.ctm: PASS
+CXTM ctm/in/association.ctm: PASS
+CXTM ctm/in/association-binary.ctm: PASS
+CXTM ctm/in/association-binary-duplicate.ctm: PASS
+CXTM ctm/in/association-type-sid.ctm: PASS
+CXTM ctm/in/association-with-comment.ctm: PASS
+CXTM ctm/in/association-with-comment2.ctm: PASS
+CXTM ctm/in/association-with-comment3.ctm: PASS
+CXTM ctm/in/association-with-comment4.ctm: PASS
+CXTM-PASS: 445 checks; 24 original byte comparisons; 25 imported PASS, 248 NOT-RUN.
+OCCURRENCE-CXTM ctm/in/occurrence-string.ctm: PASS
+OCCURRENCE-CXTM ctm/in/occurrence-string2.ctm: PASS
+OCCURRENCE-CXTM ctm/in/occurrence-uri-relative.ctm: PASS
+OCCURRENCE-CXTM ctm/in/occurrence-two.ctm: PASS
+OCCURRENCES-PASS: 1101 checks; 4 new byte-equal baselines; 29 imported PASS, 244 NOT-RUN.
+PREFIX-CXTM ctm/in/occurrence-explicit-datatype.ctm: PASS (359 bytes)
+PREFIX-CXTM ctm/in/occurrence-datatype-unknown.ctm: PASS (339 bytes)
+PREFIX-CXTM ctm/in/prefix-duplicate.ctm: PASS (141 bytes)
+PREFIX-CXTM ctm/in/prefix-duplicate2.ctm: PASS (260 bytes)
+PREFIX-CXTM ctm/in/prefix-multiline.ctm: PASS (141 bytes)
+PREFIX-REJECTION ctm/invalid/prefix-collision.ctm: PREFIX-COLLISION in ctm/invalid/prefix-collision.ctm at CHARACTER 43 (line 2, column 9): Prefix "ex" is already bound to "http://www.example.org/", not "http://www.example.net/".
+PREFIX-REJECTION ctm/invalid/prefix-undefined2.ctm: UNDEFINED-PREFIX in ctm/invalid/prefix-undefined2.ctm at CHARACTER 136 (line 6, column 15): Prefix "xsd" has no binding.
+PREFIX-DATATYPES-PASS: 150 checks; 5 new byte-exact baselines, 2 specific rejections; 36 imported PASS, 237 NOT-RUN.
+INTEGER-CXTM ctm/in/occurrence-integer.ctm: PASS (351 bytes)
+INTEGER-CXTM ctm/in/occurrence-integer2.ctm: PASS (351 bytes)
+INTEGER-CXTM ctm/in/occurrence-integer-plus-sign.ctm: PASS (351 bytes)
+INTEGER-CXTM ctm/in/occurrence-integer-minus-sign.ctm: PASS (352 bytes)
+INTEGER-CXTM ctm/in/occurrence-integer-leading-zeros.ctm: PASS (1741 bytes)
+INTEGER-CXTM ctm/in/occurrence-explicit-datatype2.ctm: PASS (352 bytes)
+INTEGERS-PASS: 665 checks; 6 new byte-exact baselines; 42 imported PASS, 231 NOT-RUN.
+DECIMAL-CXTM ctm/in/occurrence-decimal.ctm: PASS (353 bytes)
+DECIMAL-CXTM ctm/in/occurrence-decimal-dot.ctm: PASS (353 bytes)
+DECIMAL-CXTM ctm/in/occurrence-decimal-dot-neg.ctm: PASS (354 bytes)
+DECIMAL-CXTM ctm/in/occurrence-decimal-leading-zeros.ctm: PASS (353 bytes)
+DECIMAL-CXTM ctm/in/occurrence-decimal-minus-sign.ctm: PASS (354 bytes)
+DECIMAL-CXTM ctm/in/occurrence-decimal-plus-sign.ctm: PASS (353 bytes)
+DECIMAL-CXTM ctm/in/occurrence-decimal-1.0.ctm: PASS (353 bytes)
+DECIMALS-PASS: 715 checks; 7 new byte-exact baselines; 49 imported PASS, 224 NOT-RUN.
+DATE-CXTM ctm/in/occurrence-date.ctm: PASS (357 bytes)
+DATE-CXTM ctm/in/occurrence-date2.ctm: PASS (357 bytes)
+DATE-CXTM ctm/in/occurrence-date3.ctm: PASS (1066 bytes)
+DATE-CXTM ctm/in/occurrence-date-negative.ctm: PASS (358 bytes)
+DATE-CXTM ctm/in/occurrence-date-another-century.ctm: PASS (359 bytes)
+DATE-REJECTION ctm/invalid/date-invalid-day.ctm: PASS (INVALID-DATE-DAY at 2:14)
+DATE-REJECTION ctm/invalid/date-invalid-month.ctm: PASS (INVALID-DATE-MONTH at 2:14)
+DATE-REJECTION ctm/invalid/date-invalid-year.ctm: PASS (INVALID-DATE-YEAR at 2:14)
+DATE-REJECTION ctm/invalid/date-invalid-year2.ctm: PASS (INVALID-DATE-YEAR at 6:14)
+DATE-REJECTION ctm/invalid/date-invalid-year3.ctm: PASS (INVALID-DATE-YEAR at 6:14)
+DATES-PASS: 1806 checks; 5 new exact baselines and 5 specific rejections; 59 imported PASS, 214 NOT-RUN.
+DATETIME-CXTM ctm/in/occurrence-datetime.ctm: PASS (370 bytes)
+DATETIME-CXTM ctm/in/occurrence-datetime2.ctm: FAIL-known-baseline-discrepancy (370 bytes)
+DATETIME-CXTM ctm/in/occurrence-datetime-fractional.ctm: PASS (677 bytes)
+DATETIME-CXTM ctm/in/occurrence-datetime-timezone.ctm: PASS (674 bytes)
+DATETIME-CXTM ctm/in/occurrence-datetime-timezone2.ctm: FAIL-known-baseline-discrepancy (674 bytes)
+DATETIMES-PASS: 217 semantic checks; corpus: 62 PASS, 2 known normative discrepancy FAIL, 209 NOT-RUN.
+TIMEZONES-PASS: 1944 checks; 1681 signed offset minutes, pure canonicalization and lexical TMDM equality.
+TYPED-NAME-CXTM ctm/in/name.ctm: PASS
+TYPED-NAME-CXTM ctm/in/name2.ctm: PASS
+TYPED-NAME-CXTM ctm/in/name-type.ctm: PASS
+TYPED-NAME-CXTM ctm/in/name-duplicate.ctm: PASS
+TYPED-NAMES-PASS: 106 checks; four original comparisons; 64 PASS, 2 known FAIL, 207 NOT-RUN.
+SCOPE-CXTM ctm/in/name-scope.ctm: PASS (615 bytes)
+SCOPE-CXTM ctm/in/occurrence-scope.ctm: PASS (646 bytes)
+SCOPE-CXTM ctm/in/association-scope.ctm: PASS (794 bytes)
+SCOPES-PASS: 293 checks; 3 original byte-exact comparisons; 67 PASS, 2 known FAIL, 204 NOT-RUN.
+VARIANT-CXTM ctm/in/variant.ctm: PASS (592 bytes)
+VARIANT-CXTM ctm/in/variants.ctm: PASS (857 bytes)
+VARIANT-CXTM ctm/in/variant-duplicate.ctm: PASS (592 bytes)
+VARIANTS-PASS: 324 checks; 3 original byte-exact comparisons, 1 specific rejection; 71 PASS, 2 known FAIL, 200 NOT-RUN.
+REFERENCE-CXTM ctm/in/wildcard.ctm: PASS (113 bytes), counter 1
+REFERENCE-CXTM ctm/in/wildcard-named.ctm: PASS (117 bytes), counter 1
+REFERENCE-CXTM ctm/in/wildcard-named2.ctm: PASS (301 bytes), counter 3
+REFERENCE-CXTM ctm/in/wildcard-named-merge.ctm: PASS (117 bytes), counter 1
+REFERENCE-CXTM ctm/in/association-scope-embedded.ctm: PASS (1651 bytes), counter 2
+REFERENCE-CXTM ctm/in/association-scope-embedded2.ctm: PASS (1863 bytes), counter 3
+REFERENCE-CXTM ctm/in/association-type-embedded.ctm: PASS (727 bytes), counter 1
+REFERENCE-CXTM ctm/in/association-type-embedded-merge.ctm: PASS (622 bytes), counter 2
+REFERENCE-CXTM ctm/in/embedded-semicolon.ctm: PASS (727 bytes), counter 1
+REFERENCE-CXTM ctm/in/name-scope-embedded.ctm: PASS (1331 bytes), counter 2
+REFERENCE-CXTM ctm/in/name-scope-embedded2.ctm: PASS (1543 bytes), counter 3
+REFERENCE-CXTM ctm/in/name-type-embedded.ctm: PASS (495 bytes), counter 1
+REFERENCE-CXTM ctm/in/nested-twice.ctm: PASS (737 bytes), counter 2
+REFERENCE-CXTM ctm/in/occurrence-scope-embedded.ctm: PASS (1503 bytes), counter 2
+REFERENCE-CXTM ctm/in/occurrence-scope-embedded2.ctm: PASS (1715 bytes), counter 3
+REFERENCE-CXTM ctm/in/occurrence-type-embedded.ctm: PASS (573 bytes), counter 1
+REFERENCE-CXTM ctm/in/role-player-embedded.ctm: PASS (721 bytes), counter 1
+REFERENCE-CXTM ctm/in/role-type-embedded.ctm: PASS (721 bytes), counter 1
+REFERENCE-CXTM ctm/in/subject-identifier-embedded.ctm: PASS (597 bytes), counter 1
+REFERENCE-CXTM ctm/in/variant-scope-embedded.ctm: PASS (1637 bytes), counter 3
+REFERENCE-CXTM ctm/in/variant-scope-embedded2.ctm: PASS (1985 bytes), counter 4
+REFERENCES-PASS: 238 checks; 21 original byte-exact comparisons and 1 specific rejection; 93 PASS, 2 known FAIL, 178 NOT-RUN.
+ITEM-IDENTIFIERS-PASS: 244 checks; 7 manually constructed original XTM2 baseline comparisons; no XTM reader or imported status changes.
+REIFICATION-CXTM ctm/in/tm-reifier.ctm: PASS (126 bytes)
+REIFICATION-CXTM ctm/in/tm-reifier2.ctm: PASS (347 bytes)
+REIFICATION-CXTM ctm/in/tm-reifier3.ctm: PASS (128 bytes)
+REIFICATION-CXTM ctm/in/name-reifier.ctm: PASS (433 bytes)
+REIFICATION-CXTM ctm/in/variant-reifier.ctm: PASS (697 bytes)
+REIFICATION-CXTM ctm/in/occurrence-reifier.ctm: PASS (464 bytes)
+REIFICATION-CXTM ctm/in/occurrence-reifier-nested.ctm: PASS (678 bytes)
+REIFICATION-CXTM ctm/in/occurrence-reifier-nested-nested.ctm: PASS (947 bytes)
+REIFICATION-CXTM ctm/in/association-reifier.ctm: PASS (612 bytes)
+REIFICATION-CXTM ctm/in/role-reifier.ctm: PASS (612 bytes)
+REIFICATION-CXTM ctm/in/role-duplicate-reified-qnames.ctm: PASS (736 bytes)
+REIFICATION-PASS: 236 checks; 11 original byte-exact comparisons, 2 specific rejections; 106 PASS, 2 known FAIL, 165 NOT-RUN.
+ARITY-CXTM ctm/in/association-duplicate-role.ctm: PASS (1157 bytes)
+ASSOCIATION-ARITY-PASS: 337 checks; one new original CTM/CXTM contract; 107 PASS, 2 known FAIL, 164 NOT-RUN.
+RELATIONSHIP-CXTM ctm/in/isa-relationship.ctm: PASS (963 bytes)
+RELATIONSHIP-CXTM ctm/in/isa-relationship-duplicate.ctm: PASS (963 bytes)
+RELATIONSHIP-CXTM ctm/in/isa-relationship-duplicate2.ctm: PASS (963 bytes)
+RELATIONSHIP-CXTM ctm/in/isa-relationship-embedded.ctm: PASS (1181 bytes)
+RELATIONSHIP-CXTM ctm/in/isa-relationship-type-qname.ctm: PASS (991 bytes)
+RELATIONSHIP-CXTM ctm/in/ako-relationship.ctm: PASS (977 bytes)
+RELATIONSHIP-CXTM ctm/in/ako-relationship-duplicate.ctm: PASS (977 bytes)
+RELATIONSHIP-CXTM ctm/in/ako-relationship-duplicate2.ctm: PASS (977 bytes)
+RELATIONSHIP-CXTM ctm/in/ako-relationship-embedded.ctm: PASS (1190 bytes)
+RELATIONSHIP-CXTM ctm/in/ako-relationship-supertype-qname.ctm: PASS (1005 bytes)
+RELATIONSHIP-CXTM ctm/in/ako-merge-away.ctm: PASS (1590 bytes)
+RELATIONSHIP-CXTM ctm/in/subject-identifier-topicref.ctm: PASS (989 bytes)
+RELATIONSHIP-CXTM ctm/in/item-identifier-topicref.ctm: PASS (985 bytes)
+TYPE-RELATIONSHIPS-PASS: 1016 checks; 13 original CXTM contracts; 120 PASS, 2 known FAIL, 151 NOT-RUN.
+TEMPLATE-CXTM ctm/in/association-scope-embedded3.ctm: PASS (2431 bytes)
+TEMPLATE-CXTM ctm/in/association-scope-embedded4.ctm: PASS (3613 bytes)
+TEMPLATE-CXTM ctm/in/name-scope-embedded3.ctm: PASS (2105 bytes)
+TEMPLATE-CXTM ctm/in/name-scope-embedded4.ctm: PASS (3284 bytes)
+TEMPLATE-CXTM ctm/in/occurrence-scope-embedded3.ctm: PASS (2277 bytes)
+TEMPLATE-CXTM ctm/in/occurrence-scope-embedded4.ctm: PASS (3457 bytes)
+TEMPLATE-CXTM ctm/in/prefix-template-scope.ctm: PASS (263 bytes)
+TEMPLATE-CXTM ctm/in/template-ambiguous-parameter.ctm: PASS (376 bytes)
+TEMPLATE-CXTM ctm/in/template-ambiguous-parameter2.ctm: PASS (407 bytes)
+TEMPLATE-CXTM ctm/in/template-ambiguous-parameter3.ctm: PASS (399 bytes)
+TEMPLATE-CXTM ctm/in/template-ambiguous-parameter4.ctm: PASS (1506 bytes)
+TEMPLATE-CXTM ctm/in/template-assoc-embedded-topic.ctm: PASS (23 bytes)
+TEMPLATE-CXTM ctm/in/template-duplicate-name.ctm: PASS (438 bytes)
+TEMPLATE-CXTM ctm/in/template-forward-ref.ctm: PASS (825 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-embedded.ctm: PASS (401 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-embedded2.ctm: PASS (401 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-noargs-isa.ctm: PASS (963 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-noargs2.ctm: PASS (828 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-prefix-notation.ctm: PASS (328 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-twice.ctm: PASS (402 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard-named.ctm: PASS (331 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard-named2.ctm: PASS (331 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard-named3.ctm: PASS (646 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard-named4.ctm: PASS (331 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard-named5.ctm: PASS (577 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard-named6.ctm: PASS (581 bytes)
+TEMPLATE-CXTM ctm/in/template-invocation-wildcard.ctm: PASS (484 bytes)
+TEMPLATE-CXTM ctm/in/template-item-identifier.ctm: PASS (131 bytes)
+TEMPLATE-CXTM ctm/in/template-item-identifier2.ctm: PASS (131 bytes)
+TEMPLATE-CXTM ctm/in/template-item-identifier4.ctm: PASS (157 bytes)
+TEMPLATE-CXTM ctm/in/template-nested-occtype.ctm: PASS (576 bytes)
+TEMPLATE-CXTM ctm/in/template-nested-occtype2.ctm: PASS (737 bytes)
+TEMPLATE-CXTM ctm/in/template-noop.ctm: PASS (23 bytes)
+TEMPLATE-CXTM ctm/in/template-noop2.ctm: PASS (23 bytes)
+TEMPLATE-CXTM ctm/in/template-noop3.ctm: PASS (23 bytes)
+TEMPLATE-CXTM ctm/in/template-references.ctm: PASS (23 bytes)
+TEMPLATE-CXTM ctm/in/template-simple.ctm: PASS (114 bytes)
+TEMPLATE-CXTM ctm/in/template-subject-identifier.ctm: PASS (141 bytes)
+TEMPLATE-CXTM ctm/in/template-subject-locator.ctm: PASS (131 bytes)
+TEMPLATE-CXTM ctm/in/template-subject-locator2.ctm: PASS (131 bytes)
+TEMPLATE-CXTM ctm/in/template-subject-locator4.ctm: PASS (194 bytes)
+TEMPLATE-CXTM ctm/in/template-topic-nested.ctm: PASS (678 bytes)
+TEMPLATE-CXTM ctm/in/template-topic-nested2.ctm: PASS (596 bytes)
+TEMPLATE-CXTM ctm/in/template-typed-value.ctm: PASS (351 bytes)
+TEMPLATE-CXTM ctm/in/template-wildcard-named.ctm: PASS (211 bytes)
+TEMPLATE-CXTM ctm/in/template-wildcard-named2.ctm: PASS (211 bytes)
+TEMPLATE-CXTM ctm/in/template-wildcard-named3.ctm: PASS (211 bytes)
+TEMPLATE-CXTM ctm/in/template-wildcard-named4.ctm: PASS (919 bytes)
+TEMPLATE-CXTM ctm/in/template-wildcard.ctm: PASS (203 bytes)
+TEMPLATE-CXTM ctm/in/template-wildcard2.ctm: PASS (293 bytes)
+TEMPLATE-CXTM ctm/in/tmlab-tmql-issue-48.ctm: PASS (2358 bytes)
+TEMPLATE-CXTM ctm/in/topic-embedded-template-invocation.ctm: PASS (1357 bytes)
+TEMPLATE-CXTM ctm/in/topic-identifier-eq-template-name.ctm: PASS (207 bytes)
+TEMPLATE-CXTM ctm/in/topic-template-invocation-unary.ctm: PASS (328 bytes)
+TEMPLATE-CXTM ctm/in/topic-template-invocation.ctm: PASS (328 bytes)
+TEMPLATE-CXTM ctm/in/variant-scope-embedded3.ctm: PASS (2547 bytes)
+TEMPLATE-CXTM ctm/in/variant-scope-embedded4.ctm: PASS (3734 bytes)
+TEMPLATE-REJECTION ctm/invalid/embedded-topic-template.ctm: PASS (INVALID-TEMPLATE-BODY)
+TEMPLATE-REJECTION ctm/invalid/occurrence-explicit-datatype-as-parameter.ctm: PASS (VARIABLE-DATATYPE)
+TEMPLATE-REJECTION ctm/invalid/prefix-template-scope.ctm: PASS (INVALID-TEMPLATE-BODY)
+TEMPLATE-REJECTION ctm/invalid/template-bad-type.ctm: PASS (INVALID-TEMPLATE-ARGUMENT)
+TEMPLATE-REJECTION ctm/invalid/template-missing-args.ctm: PASS (TEMPLATE-ARITY)
+TEMPLATE-REJECTION ctm/invalid/template-missing-def.ctm: PASS (UNDEFINED-TEMPLATE)
+TEMPLATE-REJECTION ctm/invalid/template-name-collision.ctm: PASS (DUPLICATE-TEMPLATE)
+TEMPLATE-REJECTION ctm/invalid/tm-reifier-in-template.ctm: PASS (INVALID-TEMPLATE-BODY)
+TEMPLATE-REJECTION ctm/invalid/variable-undefined.ctm: PASS (VARIABLE-OUTSIDE-TEMPLATE)
+TEMPLATE-REJECTION ctm/invalid/variable-undefined2.ctm: PASS (VARIABLE-OUTSIDE-TEMPLATE)
+TEMPLATES-PASS: 297 checks; 57 byte-exact originals, 10 specific rejections; 187 PASS, 2 known FAIL, 84 NOT-RUN.
+MAP-IMPORT-PASS: 275 checks; no CTM import contracts executed.
+MERGEMAP-CXTM ctm/in/mergemap.ctm: PASS (1511 bytes)
+MERGEMAP-CXTM ctm/in/mergemap-syntax-qname.ctm: PASS (1511 bytes)
+MERGEMAP-CXTM ctm/in/mergemap-template.ctm: PASS (1529 bytes)
+MERGEMAP-CXTM ctm/in/mergemap-tm-reifier.ctm: PASS (134 bytes)
+MERGEMAP-REJECTION ctm/invalid/mergemap-missing-syntax-iri.ctm: PASS (EXPECTED-MERGEMAP-NOTATION)
+MERGEMAP-REJECTION ctm/invalid/mergemap-template.ctm: PASS (UNDEFINED-TEMPLATE)
+MERGEMAP-REJECTION ctm/invalid/mergemap-unknown-syntax.ctm: PASS (UNKNOWN-MERGEMAP-NOTATION)
+MERGEMAP-PASS: 118 checks; four byte-exact originals, three specific rejections.
+INCLUDE-CXTM ctm/in/include.ctm: PASS (1939/1939 bytes)
+INCLUDE-CXTM ctm/in/include-prefix.ctm: PASS (140/140 bytes)
+INCLUDE-CXTM ctm/in/include-prefix2.ctm: PASS (261/261 bytes)
+INCLUDE-CXTM ctm/in/include-template.ctm: FAIL (353/401 bytes)
+INCLUDE-CXTM ctm/in/include-template-wildcard.ctm: PASS (330/330 bytes)
+INCLUDE-CXTM ctm/in/include-tm-reifier.ctm: PASS (375/375 bytes)
+INCLUDE-CXTM ctm/in/include-topicref.ctm: PASS (1490/1490 bytes)
+INCLUDE-CXTM ctm/in/include-wildcard.ctm: PASS (499/499 bytes)
+INCLUDE-CXTM ctm/in/include-wildcard2.ctm: FAIL (719/669 bytes)
+INCLUDE-REJECTION ctm/invalid/include-prefix.ctm: PASS (UNDEFINED-PREFIX)
+INCLUDE-REJECTION ctm/invalid/include-prefix2.ctm: PASS (UNDEFINED-PREFIX)
+INCLUDE-REJECTION ctm/invalid/include-xtm.ctm: PASS (INVALID-IRI)
+INCLUDE-PASS: 93 checks; seven byte-exact originals, three rejections, two explicit baseline FAILs.
+;
+; compilation unit finished
+; printed 1 note
+NFC-ORACLE-PASS: 16294 independent Unicode 15.1.0 comparisons (canonical mappings, all Hangul, 1000 seeded combining sequences)
+REPORT-JSON-PASS: deterministic schema, draft qualification, case contracts and only warranted imported status changes
+BASELINE-SEMANTIC-EVIDENCE-PASS: five frozen baselines support the selected properties; no canonicalization claimed
+MERGING-BASELINE-SEMANTIC-EVIDENCE-PASS: 11 frozen baselines; no canonicalization or canonical numbering
+ASSOCIATION-BASELINE-SEMANTIC-EVIDENCE-PASS: 8 frozen baselines, Role items and roles-played; no canonicalization
+CXTM-INDEPENDENT-PASS: 176 byte-exact unchanged baselines; 4 explicit normative discrepancy; canonical XML and reference integrity
+OCCURRENCE-INDEPENDENT-PASS: four original sources, actual parents/types, lexical values, datatype locators, no extra items
+PREFIX-INDEPENDENT-PASS: 7 original sources, 5 model observations, 2 specific rejections with independently checked positions
+INTEGER-INDEPENDENT-PASS: 6 original sources/model observations; 143 arithmetic-oracle probes, including 10000-digit integers
+DECIMAL-INDEPENDENT-PASS: 7 original sources/model observations; 157 Decimal arithmetic-oracle probes, including 10000-digit components
+DATE-INDEPENDENT-PASS: 5 original sources/model observations; 5 specific rejections; 396 arbitrary-precision calendar probes; 15 century decisions
+DATETIME-INDEPENDENT-PASS: 5 original model observations; 45 exact calendar/fraction probes; 2 documented discrepancies
+TIMEZONE-INDEPENDENT-PASS: 1774 exact UTC probes; 1681 signed offset minutes; stored strings and CXTM checked separately
+TYPED-NAMES-INDEPENDENT-PASS: four original sources, exact identifier sets and Name value/Parent/Type relations
+SCOPES-INDEPENDENT-PASS: three original model observations, Topic identity categories and Scope sets; independent XML ordering/Role references
+VARIANTS-INDEPENDENT-PASS: three original model observations; Parent identity, datatype locators, Scope sets and XML ordering
+REFERENCES-INDEPENDENT-PASS: 21 original model graphs; identity categories, generated locators/counters, Parent/Type/Player/Scope/Variant relations
+ITEM-IDENTIFIERS-INDEPENDENT-PASS: 7 hand-built original XTM2 baseline matches; all seven II positions, locator ordering and Topic references; no XTM deserialization claim
+REIFICATION-INDEPENDENT-PASS: 11 original model observations, canonical Topic identity and bidirectional Reifier references; 2 specific rejection reasons/positions
+ARITY-INDEPENDENT-PASS: original Topic/Role object observations; 12 canonical XML witnesses with complete Role references
+RELATIONSHIPS-INDEPENDENT-PASS: 13 original TMDM reference graphs; eight exact Core Subject locators; 304 atomic conflict observations
+TEMPLATES-INDEPENDENT-PASS: 57 original model graphs and 10 specific rejection contracts
+MAP-IMPORT-REPORT-PASS: model/metadata/reference evidence only; imported contracts unchanged
+MERGEMAP-INDEPENDENT-PASS: four unchanged byte baselines/model identities; three intended negative causes and exact resources
+INCLUDE-INDEPENDENT-PASS: nine model traces, each alias level, separate two baseline discrepancies, three intended negative causes
--- /dev/null
+;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
+ yes, using code points.
+;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
+ yes, using code points.
+;;; Building Closure with CHARACTER RUNES
+CXML-CHECK-PASS asdf-cxml-found-and-loaded
+CXML-CHECK-PASS asdf-dependency:closure-common
+CXML-CHECK-PASS asdf-dependency:puri
+CXML-CHECK-PASS asdf-dependency:babel
+CXML-CHECK-PASS asdf-dependency:alexandria
+CXML-CHECK-PASS asdf-dependency:trivial-features
+CXML-CHECK-PASS asdf-dependency:trivial-gray-streams
+CXML-CHECK-PASS namespace-expanded-element
+CXML-CHECK-PASS unprefixed-attribute-has-no-namespace
+CXML-CHECK-PASS prefixed-attribute-namespace
+CXML-CHECK-PASS unicode-astral-character
+CXML-CHECK-PASS default-namespace-and-nested-rebinding
+CXML-CHECK-PASS utf8-no-bom:bmp
+CXML-CHECK-PASS utf8-no-bom:astral
+CXML-CHECK-PASS utf8-bom:bmp
+CXML-CHECK-PASS utf8-bom:astral
+CXML-CHECK-PASS utf16le-bom:bmp
+CXML-CHECK-PASS utf16le-bom:astral
+CXML-CHECK-PASS utf16be-bom:bmp
+CXML-CHECK-PASS utf16be-bom:astral
+CXML-CHECK-PASS utf16le-explicit-no-bom:bmp
+CXML-CHECK-PASS utf16le-explicit-no-bom:astral
+CXML-CHECK-PASS utf16be-explicit-no-bom:bmp
+CXML-CHECK-PASS utf16be-explicit-no-bom:astral
+CXML-CHECK-PASS utf16-bom-without-declaration:bmp
+CXML-CHECK-PASS utf16-bom-without-declaration:astral
+CXML-CHECK-PASS predefined-entities-and-character-references
+CXML-CHECK-PASS xml-line-end-normalization
+CXML-CHECK-PASS xml-attribute-whitespace-normalization
+CXML-CHECK-PASS misnested
+CXML-REJECTION misnested WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS duplicate-attribute
+CXML-REJECTION duplicate-attribute WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS duplicate-expanded-attribute
+CXML-REJECTION duplicate-expanded-attribute WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS undeclared-prefix
+CXML-REJECTION undeclared-prefix WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS multiple-roots
+CXML-REJECTION multiple-roots WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS unclosed-root
+CXML-REJECTION unclosed-root WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS undefined-entity
+CXML-REJECTION undefined-entity WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS forbidden-nul-reference
+CXML-REJECTION forbidden-nul-reference WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS forbidden-surrogate-reference
+CXML-REJECTION forbidden-surrogate-reference WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS invalid-utf8
+CXML-REJECTION invalid-utf8 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS doctype-without-subset
+CXML-REJECTION doctype-without-subset DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS internal-entity
+CXML-REJECTION internal-entity DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS external-file-dtd
+CXML-REJECTION external-file-dtd DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS external-network-dtd
+CXML-REJECTION external-network-dtd DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS external-general-entity
+CXML-REJECTION external-general-entity DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS external-parameter-entity
+CXML-REJECTION external-parameter-entity DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS safe-policy-never-invokes-external-resolver
+CXML-CHECK-PASS resolver-file-dtd
+CXML-REJECTION resolver-file-dtd EXTERNAL-RESOURCE-FORBIDDEN
+CXML-CHECK-PASS resolver-file-dtd:called
+CXML-CHECK-PASS resolver-network-dtd
+CXML-REJECTION resolver-network-dtd EXTERNAL-RESOURCE-FORBIDDEN
+CXML-CHECK-PASS resolver-network-dtd:called
+CXML-CHECK-PASS resolver-file-entity
+CXML-REJECTION resolver-file-entity EXTERNAL-RESOURCE-FORBIDDEN
+CXML-CHECK-PASS resolver-file-entity:called
+CXML-CHECK-PASS resolver-network-entity
+CXML-REJECTION resolver-network-entity EXTERNAL-RESOURCE-FORBIDDEN
+CXML-CHECK-PASS resolver-network-entity:called
+CXML-CHECK-PASS resolver-parameter-entity
+CXML-REJECTION resolver-parameter-entity EXTERNAL-RESOURCE-FORBIDDEN
+CXML-CHECK-PASS resolver-parameter-entity:called
+CXML-CHECK-PASS nil-resolver-reaches-cxml-fallback
+CXML-REJECTION nil-resolver-reaches-cxml-fallback FALLBACK-REACHED
+CXML-CHECK-PASS exactly-one-fallback-only-in-nil-counterprobe
+CXML-CHECK-PASS utf8-invalid:stray-continuation
+CXML-REJECTION utf8-invalid:stray-continuation WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:bad-continuation
+CXML-REJECTION utf8-invalid:bad-continuation WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:overlong-two
+CXML-REJECTION utf8-invalid:overlong-two WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:overlong-three
+CXML-REJECTION utf8-invalid:overlong-three WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:overlong-four
+CXML-REJECTION utf8-invalid:overlong-four WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:encoded-surrogate
+CXML-REJECTION utf8-invalid:encoded-surrogate WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:above-unicode-limit
+CXML-REJECTION utf8-invalid:above-unicode-limit WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:illegal-leading-f5
+CXML-REJECTION utf8-invalid:illegal-leading-f5 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:obsolete-five-byte-form
+CXML-REJECTION utf8-invalid:obsolete-five-byte-form WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:obsolete-six-byte-form
+CXML-REJECTION utf8-invalid:obsolete-six-byte-form WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-invalid:illegal-leading-ff
+CXML-REJECTION utf8-invalid:illegal-leading-ff WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-truncated:C2
+CXML-REJECTION utf8-truncated:C2 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-truncated:E0A0
+CXML-REJECTION utf8-truncated:E0A0 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-truncated:F09FA6
+CXML-REJECTION utf8-truncated:F09FA6 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-invalid:le:isolated-low
+CXML-REJECTION utf16-invalid:le:isolated-low WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-invalid:le:high-then-letter
+CXML-REJECTION utf16-invalid:le:high-then-letter WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-invalid:le:high-then-high
+CXML-REJECTION utf16-invalid:le:high-then-high WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-truncated:le:odd-octet
+CXML-REJECTION utf16-truncated:le:odd-octet WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-truncated:le:unfinished-high
+CXML-REJECTION utf16-truncated:le:unfinished-high WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-invalid:be:isolated-low
+CXML-REJECTION utf16-invalid:be:isolated-low WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-invalid:be:high-then-letter
+CXML-REJECTION utf16-invalid:be:high-then-letter WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-invalid:be:high-then-high
+CXML-REJECTION utf16-invalid:be:high-then-high WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-truncated:be:odd-octet
+CXML-REJECTION utf16-truncated:be:odd-octet WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf16-truncated:be:unfinished-high
+CXML-REJECTION utf16-truncated:be:unfinished-high WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS scalar-boundaries:UTF-8
+CXML-CHECK-PASS line-ending-normalization:UTF-8
+CXML-CHECK-PASS refill:UTF-8:8189
+CXML-CHECK-PASS refill:UTF-8:8190
+CXML-CHECK-PASS refill:UTF-8:8191
+CXML-CHECK-PASS refill:UTF-8:8192
+CXML-CHECK-PASS scalar-boundaries:UTF-16LE
+CXML-CHECK-PASS line-ending-normalization:UTF-16LE
+CXML-CHECK-PASS refill:UTF-16LE:8189
+CXML-CHECK-PASS refill:UTF-16LE:8190
+CXML-CHECK-PASS refill:UTF-16LE:8191
+CXML-CHECK-PASS refill:UTF-16LE:8192
+CXML-CHECK-PASS scalar-boundaries:UTF-16BE
+CXML-CHECK-PASS line-ending-normalization:UTF-16BE
+CXML-CHECK-PASS refill:UTF-16BE:8189
+CXML-CHECK-PASS refill:UTF-16BE:8190
+CXML-CHECK-PASS refill:UTF-16BE:8191
+CXML-CHECK-PASS refill:UTF-16BE:8192
+CXML-CHECK-PASS bomless-missing-or-wrong-label:UTF-16LE:UTF-16
+CXML-REJECTION bomless-missing-or-wrong-label:UTF-16LE:UTF-16 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-missing-or-wrong-label:UTF-16LE:NIL
+CXML-REJECTION bomless-missing-or-wrong-label:UTF-16LE:NIL WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-missing-or-wrong-label:UTF-16LE:UTF-8
+CXML-REJECTION bomless-missing-or-wrong-label:UTF-16LE:UTF-8 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-without-declaration:UTF-16LE
+CXML-REJECTION bomless-without-declaration:UTF-16LE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-pi-without-xml-declaration:UTF-16LE
+CXML-REJECTION bomless-pi-without-xml-declaration:UTF-16LE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bom-declaration-disagreement:UTF-16LE
+CXML-REJECTION bom-declaration-disagreement:UTF-16LE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS opposite-endian-declaration:UTF-16LE
+CXML-REJECTION opposite-endian-declaration:UTF-16LE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS explicit-endian-label-with-bom:UTF-16LE
+CXML-REJECTION explicit-endian-label-with-bom:UTF-16LE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-missing-or-wrong-label:UTF-16BE:UTF-16
+CXML-REJECTION bomless-missing-or-wrong-label:UTF-16BE:UTF-16 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-missing-or-wrong-label:UTF-16BE:NIL
+CXML-REJECTION bomless-missing-or-wrong-label:UTF-16BE:NIL WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-missing-or-wrong-label:UTF-16BE:UTF-8
+CXML-REJECTION bomless-missing-or-wrong-label:UTF-16BE:UTF-8 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-without-declaration:UTF-16BE
+CXML-REJECTION bomless-without-declaration:UTF-16BE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bomless-pi-without-xml-declaration:UTF-16BE
+CXML-REJECTION bomless-pi-without-xml-declaration:UTF-16BE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS bom-declaration-disagreement:UTF-16BE
+CXML-REJECTION bom-declaration-disagreement:UTF-16BE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS opposite-endian-declaration:UTF-16BE
+CXML-REJECTION opposite-endian-declaration:UTF-16BE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS explicit-endian-label-with-bom:UTF-16BE
+CXML-REJECTION explicit-endian-label-with-bom:UTF-16BE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-bom-wrong-declaration:UTF-16
+CXML-REJECTION utf8-bom-wrong-declaration:UTF-16 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-bom-wrong-declaration:UTF-16LE
+CXML-REJECTION utf8-bom-wrong-declaration:UTF-16LE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-bom-wrong-declaration:UTF-16BE
+CXML-REJECTION utf8-bom-wrong-declaration:UTF-16BE WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS utf8-bom-wrong-declaration:ISO-8859-1
+CXML-REJECTION utf8-bom-wrong-declaration:ISO-8859-1 WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS unknown-encoding-is-fatal
+CXML-REJECTION unknown-encoding-is-fatal WELL-FORMEDNESS-VIOLATION
+CXML-CHECK-PASS encoding-name-case-insensitive
+CXML-CHECK-PASS public-api-rejects-string-input
+CXML-REJECTION public-api-rejects-string-input SIMPLE-TYPE-ERROR
+CXML-CHECK-PASS public-api-no-resolver-override
+CXML-REJECTION public-api-no-resolver-override SIMPLE-PROGRAM-ERROR
+CXML-CHECK-PASS public-api-guard-with-nil-handler
+CXML-REJECTION public-api-guard-with-nil-handler DOCTYPE-FORBIDDEN
+CXML-CHECK-PASS public-resolver-signals
+CXML-REJECTION public-resolver-signals EXTERNAL-RESOURCE-FORBIDDEN
+CXML-CHECK-PASS public-api-refuses-unqualified-dependency
+CXML-REJECTION public-api-refuses-unqualified-dependency UNQUALIFIED-PARSER
+CXML-CHECK-PASS public-api-returns-identical-sax-result
+CXML-CHECK-PASS decoder-needs-more:UTF-8:1
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-8:1
+CXML-REJECTION decoder-incomplete-at-eof:UTF-8:1 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-8:2
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-8:2
+CXML-REJECTION decoder-incomplete-at-eof:UTF-8:2 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-8:3
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-8:3
+CXML-REJECTION decoder-incomplete-at-eof:UTF-8:3 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-16-LITTLE-ENDIAN:1
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-16-LITTLE-ENDIAN:1
+CXML-REJECTION decoder-incomplete-at-eof:UTF-16-LITTLE-ENDIAN:1 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-16-LITTLE-ENDIAN:2
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-16-LITTLE-ENDIAN:2
+CXML-REJECTION decoder-incomplete-at-eof:UTF-16-LITTLE-ENDIAN:2 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-16-LITTLE-ENDIAN:3
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-16-LITTLE-ENDIAN:3
+CXML-REJECTION decoder-incomplete-at-eof:UTF-16-LITTLE-ENDIAN:3 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-16-BIG-ENDIAN:1
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-16-BIG-ENDIAN:1
+CXML-REJECTION decoder-incomplete-at-eof:UTF-16-BIG-ENDIAN:1 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-16-BIG-ENDIAN:2
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-16-BIG-ENDIAN:2
+CXML-REJECTION decoder-incomplete-at-eof:UTF-16-BIG-ENDIAN:2 ENCODING-ERROR
+CXML-CHECK-PASS decoder-needs-more:UTF-16-BIG-ENDIAN:3
+CXML-CHECK-PASS decoder-incomplete-at-eof:UTF-16-BIG-ENDIAN:3
+CXML-REJECTION decoder-incomplete-at-eof:UTF-16-BIG-ENDIAN:3 ENCODING-ERROR
+CXML-SUMMARY 146 PASS 0 FAIL
--- /dev/null
+{"scope":"XTM 2.0 identity subset, six registered positive contracts only; no CTM Mergemap integration","corpusCommit":"cd165b150176c1d6842b37be9cc9051b40d4996b","statuses":{"pass":6,"fail":0,"unsupported":0,"not-run":0},"otherCorpusInputs":{"positiveUnexecuted":107,"negativeUnregisteredUnexecuted":11},"checks":["empty:original-byte-exact","empty:pure","empty:deterministic","empty:topic-count","empty:association-count","topic:original-byte-exact","topic:pure","topic:deterministic","topic:topic-count","topic:association-count","topic:actual-item-locator","itemid-tm:original-byte-exact","itemid-tm:pure","itemid-tm:deterministic","itemid-tm:topic-count","itemid-tm:association-count","map:actual-item-locator","topic-type:original-byte-exact","topic-type:pure","topic-type:deterministic","topic-type:topic-count","topic-type:association-count","topic-type:counts","topic-type:map-parent-eq","topic-type:association-type-eq","topic-type:role-parent-eq","topic-type:players-eq","topic-type:roles-played-eq","topic-type:canonical-handles","topic-type-duplicate:original-byte-exact","topic-type-duplicate:pure","topic-type-duplicate:deterministic","topic-type-duplicate:topic-count","topic-type-duplicate:association-count","topic-type-duplicate:counts","topic-type-duplicate:map-parent-eq","topic-type-duplicate:association-type-eq","topic-type-duplicate:role-parent-eq","topic-type-duplicate:players-eq","topic-type-duplicate:roles-played-eq","topic-type-duplicate:canonical-handles","merge-three-way:original-byte-exact","merge-three-way:pure","merge-three-way:deterministic","merge-three-way:topic-count","merge-three-way:association-count","merge:three-identifiers","forward:counts","forward:map-parent-eq","forward:association-type-eq","forward:role-parent-eq","forward:players-eq","forward:roles-played-eq","forward:canonical-handles","backward:counts","backward:map-parent-eq","backward:association-type-eq","backward:role-parent-eq","backward:players-eq","backward:roles-played-eq","backward:canonical-handles","si-hit:counts","si-hit:map-parent-eq","si-hit:association-type-eq","si-hit:role-parent-eq","si-hit:players-eq","si-hit:roles-played-eq","si-hit:canonical-handles","si-hit:no-extra-ii","forward-si:counts","forward-si:map-parent-eq","forward-si:association-type-eq","forward-si:role-parent-eq","forward-si:players-eq","forward-si:roles-played-eq","forward-si:canonical-handles","forward-si:created-ii-retained","ii-hit:counts","ii-hit:map-parent-eq","ii-hit:association-type-eq","ii-hit:role-parent-eq","ii-hit:players-eq","ii-hit:roles-played-eq","ii-hit:canonical-handles","ii-hit:identifiers-unchanged","direct-si:actual-eq","direct-si:no-ii","retained:forward-handle-eq","retained:role-player-canonical","retained:role-parent-canonical","retained:cxtm-does-not-mutate","documents:distinct-object","documents:distinct-local-locators","identity:three-categories","unicode:id-collapse","unicode:href-percent-utf8","iri:../folder/./x#t","iri:#t","iri:?q#t","iri:http://EXAMPLE.test:80/a","iri:http://example.test/a%20b#t","order:canonical-independence","encoding:UTF-8:T","encoding:UTF-16LE:T","encoding:UTF-16BE:T","encoding:UTF-16LE:NIL","encoding:UTF-16BE:NIL","transitive:mixed-identifiers-one-topic","transitive:three-ii-two-si","reference:subject-locator-is-not-si-or-ii","cascade:before-two-associations","cascade:after-one-association","cascade:retained-association-handles-eq","cascade:retained-role-handles-eq","cascade:stored-type-player-canonical","cascade:retained-topic-handle-eq","cascade:all-handles-pure","namespace:prefix-equivalent","source-key:not-topic-identity","external-reference:no-retrieval:counts","external-reference:no-retrieval:map-parent-eq","external-reference:no-retrieval:association-type-eq","external-reference:no-retrieval:role-parent-eq","external-reference:no-retrieval:players-eq","external-reference:no-retrieval:roles-played-eq","external-reference:no-retrieval:canonical-handles","missing-id:class","missing-id:code","missing-id:context","missing-id:position","invalid-id:class","invalid-id:code","invalid-id:context","invalid-id:position","id-colon:class","id-colon:code","id-colon:context","id-colon:position","id-empty:class","id-empty:code","id-empty:context","id-empty:position","id-spaces:class","id-spaces:code","id-spaces:context","id-spaces:position","duplicate-id:class","duplicate-id:code","duplicate-id:context","duplicate-id:position","unknown-attribute:class","unknown-attribute:code","unknown-attribute:context","unknown-attribute:position","qualified-attribute:class","qualified-attribute:code","qualified-attribute:context","qualified-attribute:position","unknown-element:class","unknown-element:code","unknown-element:context","unknown-element:position","wrong-namespace-child:class","wrong-namespace-child:code","wrong-namespace-child:context","wrong-namespace-child:position","topic-identity-order:class","topic-identity-order:code","topic-identity-order:context","topic-identity-order:position","map-identity-order:class","map-identity-order:code","map-identity-order:context","map-identity-order:position","instance-duplicate:class","instance-duplicate:code","instance-duplicate:context","instance-duplicate:position","empty-instance:class","empty-instance:code","empty-instance:context","empty-instance:position","missing-href:class","missing-href:code","missing-href:context","missing-href:position","nonempty-locator:class","nonempty-locator:code","nonempty-locator:context","nonempty-locator:position","locator-text:class","locator-text:code","locator-text:context","locator-text:position","non-whitespace:class","non-whitespace:code","non-whitespace:context","non-whitespace:position","no-ref-fragment:class","no-ref-fragment:code","no-ref-fragment:context","no-ref-fragment:position","bad-ref-fragment:class","bad-ref-fragment:code","bad-ref-fragment:context","bad-ref-fragment:position","empty-ref-fragment:class","empty-ref-fragment:code","empty-ref-fragment:context","empty-ref-fragment:position","xpointer-ref:class","xpointer-ref:code","xpointer-ref:context","xpointer-ref:position","relative-colon:class","relative-colon:code","relative-colon:context","relative-colon:position","decoded-control:class","decoded-control:code","decoded-control:context","decoded-control:position","bad-percent:class","bad-percent:code","bad-percent:context","bad-percent:position","bad-percent-utf8:class","bad-percent-utf8:code","bad-percent-utf8:context","bad-percent-utf8:position","invalid-iri:class","invalid-iri:code","invalid-iri:context","invalid-iri:position","missing-version:class","missing-version:code","missing-version:context","missing-version:position","version-21:class","version-21:code","version-21:context","version-21:position","no-namespace:class","no-namespace:code","no-namespace:context","no-namespace:position","namespace-10:class","namespace-10:code","namespace-10:context","namespace-10:position","xml-misnested:class","xml-misnested:code","xml-misnested:context","xml-misnested:position","xml-duplicate-attribute:class","xml-duplicate-attribute:code","xml-duplicate-attribute:context","xml-duplicate-attribute:position","xml-undeclared-prefix:class","xml-undeclared-prefix:code","xml-undeclared-prefix:context","xml-undeclared-prefix:position","doctype:<!DOCTYPE topicMap>:class","doctype:<!DOCTYPE topicMap>:code","doctype:<!DOCTYPE topicMap>:context","doctype:<!DOCTYPE topicMap>:position","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:class","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:code","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:context","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:position","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:class","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:code","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:context","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:position","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:class","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:code","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:context","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:position","unsupported-name:class","unsupported-name:code","unsupported-name:context","unsupported-name:position","unsupported-occurrence:class","unsupported-occurrence:code","unsupported-occurrence:context","unsupported-occurrence:position","unsupported-association:class","unsupported-association:code","unsupported-association:context","unsupported-association:position","unsupported-mergemap:class","unsupported-mergemap:code","unsupported-mergemap:context","unsupported-mergemap:position","unsupported-reifier:class","unsupported-reifier:code","unsupported-reifier:context","unsupported-reifier:position","diagnostic:multiline-observed-position","document-iri:NIL","document-iri:\"relative.xtm\"","document-iri:\"https://example.test/a#fragment\"","api:raw-bytes-required","tmdm:identifier-conflict-not-xml-or-xtm","tmdm:identifier-conflict-specific","tmdm:core-subject-conflict-preserved","actual-reader:invalid-utf8:#(195 40)","actual-reader:invalid-utf8:#(192 175)","actual-reader:invalid-utf8:#(226 130)","actual-reader:invalid-utf8:#(237 160 128)","actual-reader:astral-surrogate:UTF-16LE","actual-reader:astral-surrogate:UTF-16BE","actual-reader:invalid-surrogate:#(0 216)","actual-reader:invalid-surrogate:#(0 220)","actual-reader:invalid-surrogate:#(0 216 65 0)","boundary:real-parse-octets-only-once","direct-sub:counts","direct-sub:map-parent-eq","direct-sub:association-type-eq","direct-sub:role-parent-eq","direct-sub:players-eq","direct-sub:roles-played-eq","direct-sub:canonical-handles","direct-sub:exact-lars-ii","direct-sub:exact-person-ii","direct-sub:no-names-occurrences","checks:unique-test-names"],"cases":[{"id":"xtm2/in/empty.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/empty.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 23 bytes; original baseline 23 bytes."]},{"id":"xtm2/in/topic.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/topic.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 114 bytes; original baseline 114 bytes."]},{"id":"xtm2/in/itemid-tm.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/itemid-tm.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 94 bytes; original baseline 94 bytes."]},{"id":"xtm2/in/topic-type.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/topic-type.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 963 bytes; original baseline 963 bytes."]},{"id":"xtm2/in/topic-type-duplicate.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/topic-type-duplicate.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 963 bytes; original baseline 963 bytes."]},{"id":"xtm2/in/merge-three-way.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-three-way.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 168 bytes; original baseline 168 bytes."]}],"helperSource":{"id":"ctm/in/mergemap-xtm.sub","status":"pass","topics":5,"associations":1,"roles":2,"ctmMergemapContract":"NOT-RUN; direct helper deserialization only"},"actualAndExpected":[{"id":"xtm2/in/empty.xtm","actual":"<topicMap>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A</topicMap>\u000A","byteLength":23},{"id":"xtm2/in/topic.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","byteLength":114},{"id":"xtm2/in/itemid-tm.xtm","actual":"<topicMap>\u000A<itemIdentifiers>\u000A<locator>#the-topic-map</locator>\u000A</itemIdentifiers>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<itemIdentifiers>\u000A<locator>#the-topic-map</locator>\u000A</itemIdentifiers>\u000A</topicMap>\u000A","byteLength":94},{"id":"xtm2/in/topic-type.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","byteLength":963},{"id":"xtm2/in/topic-type-duplicate.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","byteLength":963},{"id":"xtm2/in/merge-three-way.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A<locator>#topic2</locator>\u000A<locator>#topic3</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A<locator>#topic2</locator>\u000A<locator>#topic3</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","byteLength":168}]}
--- /dev/null
+;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
+ yes, using code points.
+;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
+ yes, using code points.
+;;; Building Closure with CHARACTER RUNES
+XTM-CHECK-PASS empty:original-byte-exact
+XTM-CHECK-PASS empty:pure
+XTM-CHECK-PASS empty:deterministic
+XTM-CHECK-PASS empty:topic-count
+XTM-CHECK-PASS empty:association-count
+XTM-CHECK-PASS topic:original-byte-exact
+XTM-CHECK-PASS topic:pure
+XTM-CHECK-PASS topic:deterministic
+XTM-CHECK-PASS topic:topic-count
+XTM-CHECK-PASS topic:association-count
+XTM-CHECK-PASS topic:actual-item-locator
+XTM-CHECK-PASS itemid-tm:original-byte-exact
+XTM-CHECK-PASS itemid-tm:pure
+XTM-CHECK-PASS itemid-tm:deterministic
+XTM-CHECK-PASS itemid-tm:topic-count
+XTM-CHECK-PASS itemid-tm:association-count
+XTM-CHECK-PASS map:actual-item-locator
+XTM-CHECK-PASS topic-type:original-byte-exact
+XTM-CHECK-PASS topic-type:pure
+XTM-CHECK-PASS topic-type:deterministic
+XTM-CHECK-PASS topic-type:topic-count
+XTM-CHECK-PASS topic-type:association-count
+XTM-CHECK-PASS topic-type:counts
+XTM-CHECK-PASS topic-type:map-parent-eq
+XTM-CHECK-PASS topic-type:association-type-eq
+XTM-CHECK-PASS topic-type:role-parent-eq
+XTM-CHECK-PASS topic-type:players-eq
+XTM-CHECK-PASS topic-type:roles-played-eq
+XTM-CHECK-PASS topic-type:canonical-handles
+XTM-CHECK-PASS topic-type-duplicate:original-byte-exact
+XTM-CHECK-PASS topic-type-duplicate:pure
+XTM-CHECK-PASS topic-type-duplicate:deterministic
+XTM-CHECK-PASS topic-type-duplicate:topic-count
+XTM-CHECK-PASS topic-type-duplicate:association-count
+XTM-CHECK-PASS topic-type-duplicate:counts
+XTM-CHECK-PASS topic-type-duplicate:map-parent-eq
+XTM-CHECK-PASS topic-type-duplicate:association-type-eq
+XTM-CHECK-PASS topic-type-duplicate:role-parent-eq
+XTM-CHECK-PASS topic-type-duplicate:players-eq
+XTM-CHECK-PASS topic-type-duplicate:roles-played-eq
+XTM-CHECK-PASS topic-type-duplicate:canonical-handles
+XTM-CHECK-PASS merge-three-way:original-byte-exact
+XTM-CHECK-PASS merge-three-way:pure
+XTM-CHECK-PASS merge-three-way:deterministic
+XTM-CHECK-PASS merge-three-way:topic-count
+XTM-CHECK-PASS merge-three-way:association-count
+XTM-CHECK-PASS merge:three-identifiers
+XTM-CHECK-PASS forward:counts
+XTM-CHECK-PASS forward:map-parent-eq
+XTM-CHECK-PASS forward:association-type-eq
+XTM-CHECK-PASS forward:role-parent-eq
+XTM-CHECK-PASS forward:players-eq
+XTM-CHECK-PASS forward:roles-played-eq
+XTM-CHECK-PASS forward:canonical-handles
+XTM-CHECK-PASS backward:counts
+XTM-CHECK-PASS backward:map-parent-eq
+XTM-CHECK-PASS backward:association-type-eq
+XTM-CHECK-PASS backward:role-parent-eq
+XTM-CHECK-PASS backward:players-eq
+XTM-CHECK-PASS backward:roles-played-eq
+XTM-CHECK-PASS backward:canonical-handles
+XTM-CHECK-PASS si-hit:counts
+XTM-CHECK-PASS si-hit:map-parent-eq
+XTM-CHECK-PASS si-hit:association-type-eq
+XTM-CHECK-PASS si-hit:role-parent-eq
+XTM-CHECK-PASS si-hit:players-eq
+XTM-CHECK-PASS si-hit:roles-played-eq
+XTM-CHECK-PASS si-hit:canonical-handles
+XTM-CHECK-PASS si-hit:no-extra-ii
+XTM-CHECK-PASS forward-si:counts
+XTM-CHECK-PASS forward-si:map-parent-eq
+XTM-CHECK-PASS forward-si:association-type-eq
+XTM-CHECK-PASS forward-si:role-parent-eq
+XTM-CHECK-PASS forward-si:players-eq
+XTM-CHECK-PASS forward-si:roles-played-eq
+XTM-CHECK-PASS forward-si:canonical-handles
+XTM-CHECK-PASS forward-si:created-ii-retained
+XTM-CHECK-PASS ii-hit:counts
+XTM-CHECK-PASS ii-hit:map-parent-eq
+XTM-CHECK-PASS ii-hit:association-type-eq
+XTM-CHECK-PASS ii-hit:role-parent-eq
+XTM-CHECK-PASS ii-hit:players-eq
+XTM-CHECK-PASS ii-hit:roles-played-eq
+XTM-CHECK-PASS ii-hit:canonical-handles
+XTM-CHECK-PASS ii-hit:identifiers-unchanged
+XTM-CHECK-PASS direct-si:actual-eq
+XTM-CHECK-PASS direct-si:no-ii
+XTM-CHECK-PASS retained:forward-handle-eq
+XTM-CHECK-PASS retained:role-player-canonical
+XTM-CHECK-PASS retained:role-parent-canonical
+XTM-CHECK-PASS retained:cxtm-does-not-mutate
+XTM-CHECK-PASS documents:distinct-object
+XTM-CHECK-PASS documents:distinct-local-locators
+XTM-CHECK-PASS identity:three-categories
+XTM-CHECK-PASS unicode:id-collapse
+XTM-CHECK-PASS unicode:href-percent-utf8
+XTM-CHECK-PASS iri:../folder/./x#t
+XTM-CHECK-PASS iri:#t
+XTM-CHECK-PASS iri:?q#t
+XTM-CHECK-PASS iri:http://EXAMPLE.test:80/a
+XTM-CHECK-PASS iri:http://example.test/a%20b#t
+XTM-CHECK-PASS order:canonical-independence
+XTM-CHECK-PASS encoding:UTF-8:T
+XTM-CHECK-PASS encoding:UTF-16LE:T
+XTM-CHECK-PASS encoding:UTF-16BE:T
+XTM-CHECK-PASS encoding:UTF-16LE:NIL
+XTM-CHECK-PASS encoding:UTF-16BE:NIL
+XTM-CHECK-PASS transitive:mixed-identifiers-one-topic
+XTM-CHECK-PASS transitive:three-ii-two-si
+XTM-CHECK-PASS reference:subject-locator-is-not-si-or-ii
+XTM-CHECK-PASS cascade:before-two-associations
+XTM-CHECK-PASS cascade:after-one-association
+XTM-CHECK-PASS cascade:retained-association-handles-eq
+XTM-CHECK-PASS cascade:retained-role-handles-eq
+XTM-CHECK-PASS cascade:stored-type-player-canonical
+XTM-CHECK-PASS cascade:retained-topic-handle-eq
+XTM-CHECK-PASS cascade:all-handles-pure
+XTM-CHECK-PASS namespace:prefix-equivalent
+XTM-CHECK-PASS source-key:not-topic-identity
+XTM-CHECK-PASS external-reference:no-retrieval:counts
+XTM-CHECK-PASS external-reference:no-retrieval:map-parent-eq
+XTM-CHECK-PASS external-reference:no-retrieval:association-type-eq
+XTM-CHECK-PASS external-reference:no-retrieval:role-parent-eq
+XTM-CHECK-PASS external-reference:no-retrieval:players-eq
+XTM-CHECK-PASS external-reference:no-retrieval:roles-played-eq
+XTM-CHECK-PASS external-reference:no-retrieval:canonical-handles
+XTM-CHECK-PASS missing-id:class
+XTM-CHECK-PASS missing-id:code
+XTM-CHECK-PASS missing-id:context
+XTM-CHECK-PASS missing-id:position
+XTM-CHECK-PASS invalid-id:class
+XTM-CHECK-PASS invalid-id:code
+XTM-CHECK-PASS invalid-id:context
+XTM-CHECK-PASS invalid-id:position
+XTM-CHECK-PASS id-colon:class
+XTM-CHECK-PASS id-colon:code
+XTM-CHECK-PASS id-colon:context
+XTM-CHECK-PASS id-colon:position
+XTM-CHECK-PASS id-empty:class
+XTM-CHECK-PASS id-empty:code
+XTM-CHECK-PASS id-empty:context
+XTM-CHECK-PASS id-empty:position
+XTM-CHECK-PASS id-spaces:class
+XTM-CHECK-PASS id-spaces:code
+XTM-CHECK-PASS id-spaces:context
+XTM-CHECK-PASS id-spaces:position
+XTM-CHECK-PASS duplicate-id:class
+XTM-CHECK-PASS duplicate-id:code
+XTM-CHECK-PASS duplicate-id:context
+XTM-CHECK-PASS duplicate-id:position
+XTM-CHECK-PASS unknown-attribute:class
+XTM-CHECK-PASS unknown-attribute:code
+XTM-CHECK-PASS unknown-attribute:context
+XTM-CHECK-PASS unknown-attribute:position
+XTM-CHECK-PASS qualified-attribute:class
+XTM-CHECK-PASS qualified-attribute:code
+XTM-CHECK-PASS qualified-attribute:context
+XTM-CHECK-PASS qualified-attribute:position
+XTM-CHECK-PASS unknown-element:class
+XTM-CHECK-PASS unknown-element:code
+XTM-CHECK-PASS unknown-element:context
+XTM-CHECK-PASS unknown-element:position
+XTM-CHECK-PASS wrong-namespace-child:class
+XTM-CHECK-PASS wrong-namespace-child:code
+XTM-CHECK-PASS wrong-namespace-child:context
+XTM-CHECK-PASS wrong-namespace-child:position
+XTM-CHECK-PASS topic-identity-order:class
+XTM-CHECK-PASS topic-identity-order:code
+XTM-CHECK-PASS topic-identity-order:context
+XTM-CHECK-PASS topic-identity-order:position
+XTM-CHECK-PASS map-identity-order:class
+XTM-CHECK-PASS map-identity-order:code
+XTM-CHECK-PASS map-identity-order:context
+XTM-CHECK-PASS map-identity-order:position
+XTM-CHECK-PASS instance-duplicate:class
+XTM-CHECK-PASS instance-duplicate:code
+XTM-CHECK-PASS instance-duplicate:context
+XTM-CHECK-PASS instance-duplicate:position
+XTM-CHECK-PASS empty-instance:class
+XTM-CHECK-PASS empty-instance:code
+XTM-CHECK-PASS empty-instance:context
+XTM-CHECK-PASS empty-instance:position
+XTM-CHECK-PASS missing-href:class
+XTM-CHECK-PASS missing-href:code
+XTM-CHECK-PASS missing-href:context
+XTM-CHECK-PASS missing-href:position
+XTM-CHECK-PASS nonempty-locator:class
+XTM-CHECK-PASS nonempty-locator:code
+XTM-CHECK-PASS nonempty-locator:context
+XTM-CHECK-PASS nonempty-locator:position
+XTM-CHECK-PASS locator-text:class
+XTM-CHECK-PASS locator-text:code
+XTM-CHECK-PASS locator-text:context
+XTM-CHECK-PASS locator-text:position
+XTM-CHECK-PASS non-whitespace:class
+XTM-CHECK-PASS non-whitespace:code
+XTM-CHECK-PASS non-whitespace:context
+XTM-CHECK-PASS non-whitespace:position
+XTM-CHECK-PASS no-ref-fragment:class
+XTM-CHECK-PASS no-ref-fragment:code
+XTM-CHECK-PASS no-ref-fragment:context
+XTM-CHECK-PASS no-ref-fragment:position
+XTM-CHECK-PASS bad-ref-fragment:class
+XTM-CHECK-PASS bad-ref-fragment:code
+XTM-CHECK-PASS bad-ref-fragment:context
+XTM-CHECK-PASS bad-ref-fragment:position
+XTM-CHECK-PASS empty-ref-fragment:class
+XTM-CHECK-PASS empty-ref-fragment:code
+XTM-CHECK-PASS empty-ref-fragment:context
+XTM-CHECK-PASS empty-ref-fragment:position
+XTM-CHECK-PASS xpointer-ref:class
+XTM-CHECK-PASS xpointer-ref:code
+XTM-CHECK-PASS xpointer-ref:context
+XTM-CHECK-PASS xpointer-ref:position
+XTM-CHECK-PASS relative-colon:class
+XTM-CHECK-PASS relative-colon:code
+XTM-CHECK-PASS relative-colon:context
+XTM-CHECK-PASS relative-colon:position
+XTM-CHECK-PASS decoded-control:class
+XTM-CHECK-PASS decoded-control:code
+XTM-CHECK-PASS decoded-control:context
+XTM-CHECK-PASS decoded-control:position
+XTM-CHECK-PASS bad-percent:class
+XTM-CHECK-PASS bad-percent:code
+XTM-CHECK-PASS bad-percent:context
+XTM-CHECK-PASS bad-percent:position
+XTM-CHECK-PASS bad-percent-utf8:class
+XTM-CHECK-PASS bad-percent-utf8:code
+XTM-CHECK-PASS bad-percent-utf8:context
+XTM-CHECK-PASS bad-percent-utf8:position
+XTM-CHECK-PASS invalid-iri:class
+XTM-CHECK-PASS invalid-iri:code
+XTM-CHECK-PASS invalid-iri:context
+XTM-CHECK-PASS invalid-iri:position
+XTM-CHECK-PASS missing-version:class
+XTM-CHECK-PASS missing-version:code
+XTM-CHECK-PASS missing-version:context
+XTM-CHECK-PASS missing-version:position
+XTM-CHECK-PASS version-21:class
+XTM-CHECK-PASS version-21:code
+XTM-CHECK-PASS version-21:context
+XTM-CHECK-PASS version-21:position
+XTM-CHECK-PASS no-namespace:class
+XTM-CHECK-PASS no-namespace:code
+XTM-CHECK-PASS no-namespace:context
+XTM-CHECK-PASS no-namespace:position
+XTM-CHECK-PASS namespace-10:class
+XTM-CHECK-PASS namespace-10:code
+XTM-CHECK-PASS namespace-10:context
+XTM-CHECK-PASS namespace-10:position
+XTM-CHECK-PASS xml-misnested:class
+XTM-CHECK-PASS xml-misnested:code
+XTM-CHECK-PASS xml-misnested:context
+XTM-CHECK-PASS xml-misnested:position
+XTM-CHECK-PASS xml-duplicate-attribute:class
+XTM-CHECK-PASS xml-duplicate-attribute:code
+XTM-CHECK-PASS xml-duplicate-attribute:context
+XTM-CHECK-PASS xml-duplicate-attribute:position
+XTM-CHECK-PASS xml-undeclared-prefix:class
+XTM-CHECK-PASS xml-undeclared-prefix:code
+XTM-CHECK-PASS xml-undeclared-prefix:context
+XTM-CHECK-PASS xml-undeclared-prefix:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:position
+XTM-CHECK-PASS unsupported-name:class
+XTM-CHECK-PASS unsupported-name:code
+XTM-CHECK-PASS unsupported-name:context
+XTM-CHECK-PASS unsupported-name:position
+XTM-CHECK-PASS unsupported-occurrence:class
+XTM-CHECK-PASS unsupported-occurrence:code
+XTM-CHECK-PASS unsupported-occurrence:context
+XTM-CHECK-PASS unsupported-occurrence:position
+XTM-CHECK-PASS unsupported-association:class
+XTM-CHECK-PASS unsupported-association:code
+XTM-CHECK-PASS unsupported-association:context
+XTM-CHECK-PASS unsupported-association:position
+XTM-CHECK-PASS unsupported-mergemap:class
+XTM-CHECK-PASS unsupported-mergemap:code
+XTM-CHECK-PASS unsupported-mergemap:context
+XTM-CHECK-PASS unsupported-mergemap:position
+XTM-CHECK-PASS unsupported-reifier:class
+XTM-CHECK-PASS unsupported-reifier:code
+XTM-CHECK-PASS unsupported-reifier:context
+XTM-CHECK-PASS unsupported-reifier:position
+XTM-CHECK-PASS diagnostic:multiline-observed-position
+XTM-CHECK-PASS document-iri:NIL
+XTM-CHECK-PASS document-iri:"relative.xtm"
+XTM-CHECK-PASS document-iri:"https://example.test/a#fragment"
+XTM-CHECK-PASS api:raw-bytes-required
+XTM-CHECK-PASS tmdm:identifier-conflict-not-xml-or-xtm
+XTM-CHECK-PASS tmdm:identifier-conflict-specific
+XTM-CHECK-PASS tmdm:core-subject-conflict-preserved
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(195 40)
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(192 175)
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(226 130)
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(237 160 128)
+XTM-CHECK-PASS actual-reader:astral-surrogate:UTF-16LE
+XTM-CHECK-PASS actual-reader:astral-surrogate:UTF-16BE
+XTM-CHECK-PASS actual-reader:invalid-surrogate:#(0 216)
+XTM-CHECK-PASS actual-reader:invalid-surrogate:#(0 220)
+XTM-CHECK-PASS actual-reader:invalid-surrogate:#(0 216 65 0)
+XTM-CHECK-PASS boundary:real-parse-octets-only-once
+XTM-CHECK-PASS direct-sub:counts
+XTM-CHECK-PASS direct-sub:map-parent-eq
+XTM-CHECK-PASS direct-sub:association-type-eq
+XTM-CHECK-PASS direct-sub:role-parent-eq
+XTM-CHECK-PASS direct-sub:players-eq
+XTM-CHECK-PASS direct-sub:roles-played-eq
+XTM-CHECK-PASS direct-sub:canonical-handles
+XTM-CHECK-PASS direct-sub:exact-lars-ii
+XTM-CHECK-PASS direct-sub:exact-person-ii
+XTM-CHECK-PASS direct-sub:no-names-occurrences
+XTM-CHECK-PASS checks:unique-test-names
+XTM-SUMMARY 327 PASS 0 FAIL; 6 original CXTM PASS; helper source PASS
--- /dev/null
+{"scope":"XTM 2.0 identity subset, six registered positive contracts only; no CTM Mergemap integration","corpusCommit":"cd165b150176c1d6842b37be9cc9051b40d4996b","statuses":{"pass":6,"fail":0,"unsupported":0,"not-run":0},"otherCorpusInputs":{"positiveUnexecuted":107,"negativeUnregisteredUnexecuted":11},"checks":["empty:original-byte-exact","empty:pure","empty:deterministic","empty:topic-count","empty:association-count","topic:original-byte-exact","topic:pure","topic:deterministic","topic:topic-count","topic:association-count","topic:actual-item-locator","itemid-tm:original-byte-exact","itemid-tm:pure","itemid-tm:deterministic","itemid-tm:topic-count","itemid-tm:association-count","map:actual-item-locator","topic-type:original-byte-exact","topic-type:pure","topic-type:deterministic","topic-type:topic-count","topic-type:association-count","topic-type:counts","topic-type:map-parent-eq","topic-type:association-type-eq","topic-type:role-parent-eq","topic-type:players-eq","topic-type:roles-played-eq","topic-type:canonical-handles","topic-type-duplicate:original-byte-exact","topic-type-duplicate:pure","topic-type-duplicate:deterministic","topic-type-duplicate:topic-count","topic-type-duplicate:association-count","topic-type-duplicate:counts","topic-type-duplicate:map-parent-eq","topic-type-duplicate:association-type-eq","topic-type-duplicate:role-parent-eq","topic-type-duplicate:players-eq","topic-type-duplicate:roles-played-eq","topic-type-duplicate:canonical-handles","merge-three-way:original-byte-exact","merge-three-way:pure","merge-three-way:deterministic","merge-three-way:topic-count","merge-three-way:association-count","merge:three-identifiers","forward:counts","forward:map-parent-eq","forward:association-type-eq","forward:role-parent-eq","forward:players-eq","forward:roles-played-eq","forward:canonical-handles","backward:counts","backward:map-parent-eq","backward:association-type-eq","backward:role-parent-eq","backward:players-eq","backward:roles-played-eq","backward:canonical-handles","si-hit:counts","si-hit:map-parent-eq","si-hit:association-type-eq","si-hit:role-parent-eq","si-hit:players-eq","si-hit:roles-played-eq","si-hit:canonical-handles","si-hit:no-extra-ii","forward-si:counts","forward-si:map-parent-eq","forward-si:association-type-eq","forward-si:role-parent-eq","forward-si:players-eq","forward-si:roles-played-eq","forward-si:canonical-handles","forward-si:created-ii-retained","ii-hit:counts","ii-hit:map-parent-eq","ii-hit:association-type-eq","ii-hit:role-parent-eq","ii-hit:players-eq","ii-hit:roles-played-eq","ii-hit:canonical-handles","ii-hit:identifiers-unchanged","direct-si:actual-eq","direct-si:no-ii","retained:forward-handle-eq","retained:role-player-canonical","retained:role-parent-canonical","retained:cxtm-does-not-mutate","documents:distinct-object","documents:distinct-local-locators","identity:three-categories","unicode:id-collapse","unicode:href-percent-utf8","iri:../folder/./x#t","iri:#t","iri:?q#t","iri:http://EXAMPLE.test:80/a","iri:http://example.test/a%20b#t","order:canonical-independence","encoding:UTF-8:T","encoding:UTF-16LE:T","encoding:UTF-16BE:T","encoding:UTF-16LE:NIL","encoding:UTF-16BE:NIL","transitive:mixed-identifiers-one-topic","transitive:three-ii-two-si","reference:subject-locator-is-not-si-or-ii","cascade:before-two-associations","cascade:after-one-association","cascade:retained-association-handles-eq","cascade:retained-role-handles-eq","cascade:stored-type-player-canonical","cascade:retained-topic-handle-eq","cascade:all-handles-pure","namespace:prefix-equivalent","source-key:not-topic-identity","external-reference:no-retrieval:counts","external-reference:no-retrieval:map-parent-eq","external-reference:no-retrieval:association-type-eq","external-reference:no-retrieval:role-parent-eq","external-reference:no-retrieval:players-eq","external-reference:no-retrieval:roles-played-eq","external-reference:no-retrieval:canonical-handles","missing-id:class","missing-id:code","missing-id:context","missing-id:position","invalid-id:class","invalid-id:code","invalid-id:context","invalid-id:position","id-colon:class","id-colon:code","id-colon:context","id-colon:position","id-empty:class","id-empty:code","id-empty:context","id-empty:position","id-spaces:class","id-spaces:code","id-spaces:context","id-spaces:position","duplicate-id:class","duplicate-id:code","duplicate-id:context","duplicate-id:position","unknown-attribute:class","unknown-attribute:code","unknown-attribute:context","unknown-attribute:position","qualified-attribute:class","qualified-attribute:code","qualified-attribute:context","qualified-attribute:position","unknown-element:class","unknown-element:code","unknown-element:context","unknown-element:position","wrong-namespace-child:class","wrong-namespace-child:code","wrong-namespace-child:context","wrong-namespace-child:position","topic-identity-order:class","topic-identity-order:code","topic-identity-order:context","topic-identity-order:position","map-identity-order:class","map-identity-order:code","map-identity-order:context","map-identity-order:position","instance-duplicate:class","instance-duplicate:code","instance-duplicate:context","instance-duplicate:position","empty-instance:class","empty-instance:code","empty-instance:context","empty-instance:position","missing-href:class","missing-href:code","missing-href:context","missing-href:position","nonempty-locator:class","nonempty-locator:code","nonempty-locator:context","nonempty-locator:position","locator-text:class","locator-text:code","locator-text:context","locator-text:position","non-whitespace:class","non-whitespace:code","non-whitespace:context","non-whitespace:position","no-ref-fragment:class","no-ref-fragment:code","no-ref-fragment:context","no-ref-fragment:position","bad-ref-fragment:class","bad-ref-fragment:code","bad-ref-fragment:context","bad-ref-fragment:position","empty-ref-fragment:class","empty-ref-fragment:code","empty-ref-fragment:context","empty-ref-fragment:position","xpointer-ref:class","xpointer-ref:code","xpointer-ref:context","xpointer-ref:position","relative-colon:class","relative-colon:code","relative-colon:context","relative-colon:position","decoded-control:class","decoded-control:code","decoded-control:context","decoded-control:position","bad-percent:class","bad-percent:code","bad-percent:context","bad-percent:position","bad-percent-utf8:class","bad-percent-utf8:code","bad-percent-utf8:context","bad-percent-utf8:position","invalid-iri:class","invalid-iri:code","invalid-iri:context","invalid-iri:position","missing-version:class","missing-version:code","missing-version:context","missing-version:position","version-21:class","version-21:code","version-21:context","version-21:position","no-namespace:class","no-namespace:code","no-namespace:context","no-namespace:position","namespace-10:class","namespace-10:code","namespace-10:context","namespace-10:position","xml-misnested:class","xml-misnested:code","xml-misnested:context","xml-misnested:position","xml-duplicate-attribute:class","xml-duplicate-attribute:code","xml-duplicate-attribute:context","xml-duplicate-attribute:position","xml-undeclared-prefix:class","xml-undeclared-prefix:code","xml-undeclared-prefix:context","xml-undeclared-prefix:position","doctype:<!DOCTYPE topicMap>:class","doctype:<!DOCTYPE topicMap>:code","doctype:<!DOCTYPE topicMap>:context","doctype:<!DOCTYPE topicMap>:position","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:class","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:code","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:context","doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:position","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:class","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:code","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:context","doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:position","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:class","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:code","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:context","doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:position","unsupported-name:class","unsupported-name:code","unsupported-name:context","unsupported-name:position","unsupported-occurrence:class","unsupported-occurrence:code","unsupported-occurrence:context","unsupported-occurrence:position","unsupported-association:class","unsupported-association:code","unsupported-association:context","unsupported-association:position","unsupported-mergemap:class","unsupported-mergemap:code","unsupported-mergemap:context","unsupported-mergemap:position","unsupported-reifier:class","unsupported-reifier:code","unsupported-reifier:context","unsupported-reifier:position","diagnostic:multiline-observed-position","document-iri:NIL","document-iri:\"relative.xtm\"","document-iri:\"https://example.test/a#fragment\"","api:raw-bytes-required","tmdm:identifier-conflict-not-xml-or-xtm","tmdm:identifier-conflict-specific","tmdm:core-subject-conflict-preserved","actual-reader:invalid-utf8:#(195 40)","actual-reader:invalid-utf8:#(192 175)","actual-reader:invalid-utf8:#(226 130)","actual-reader:invalid-utf8:#(237 160 128)","actual-reader:astral-surrogate:UTF-16LE","actual-reader:astral-surrogate:UTF-16BE","actual-reader:invalid-surrogate:#(0 216)","actual-reader:invalid-surrogate:#(0 220)","actual-reader:invalid-surrogate:#(0 216 65 0)","boundary:real-parse-octets-only-once","direct-sub:counts","direct-sub:map-parent-eq","direct-sub:association-type-eq","direct-sub:role-parent-eq","direct-sub:players-eq","direct-sub:roles-played-eq","direct-sub:canonical-handles","direct-sub:exact-lars-ii","direct-sub:exact-person-ii","direct-sub:no-names-occurrences","checks:unique-test-names"],"cases":[{"id":"xtm2/in/empty.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/empty.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 23 bytes; original baseline 23 bytes."]},{"id":"xtm2/in/topic.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/topic.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 114 bytes; original baseline 114 bytes."]},{"id":"xtm2/in/itemid-tm.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/itemid-tm.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 94 bytes; original baseline 94 bytes."]},{"id":"xtm2/in/topic-type.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/topic-type.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 963 bytes; original baseline 963 bytes."]},{"id":"xtm2/in/topic-type-duplicate.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/topic-type-duplicate.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 963 bytes; original baseline 963 bytes."]},{"id":"xtm2/in/merge-three-way.xtm","documentIRI":"https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/merge-three-way.xtm","status":"pass","actualOutcome":"cxtm-match","diagnostics":["Actual 168 bytes; original baseline 168 bytes."]}],"helperSource":{"id":"ctm/in/mergemap-xtm.sub","status":"pass","topics":5,"associations":1,"roles":2,"ctmMergemapContract":"NOT-RUN; direct helper deserialization only"},"actualAndExpected":[{"id":"xtm2/in/empty.xtm","actual":"<topicMap>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A</topicMap>\u000A","byteLength":23},{"id":"xtm2/in/topic.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","byteLength":114},{"id":"xtm2/in/itemid-tm.xtm","actual":"<topicMap>\u000A<itemIdentifiers>\u000A<locator>#the-topic-map</locator>\u000A</itemIdentifiers>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<itemIdentifiers>\u000A<locator>#the-topic-map</locator>\u000A</itemIdentifiers>\u000A</topicMap>\u000A","byteLength":94},{"id":"xtm2/in/topic-type.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","byteLength":963},{"id":"xtm2/in/topic-type-duplicate.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#format</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.1\"></rolePlayed>\u000A</topic>\u000A<topic number=\"2\">\u000A<itemIdentifiers>\u000A<locator>#xtm</locator>\u000A</itemIdentifiers>\u000A<rolePlayed ref=\"association.1.role.2\"></rolePlayed>\u000A</topic>\u000A<topic number=\"3\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"4\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<topic number=\"5\">\u000A<subjectIdentifiers>\u000A<locator>http://psi.topicmaps.org/iso13250/model/type-instance</locator>\u000A</subjectIdentifiers>\u000A</topic>\u000A<association number=\"1\">\u000A<type topicref=\"5\"></type>\u000A<role number=\"1\">\u000A<player topicref=\"1\"></player>\u000A<type topicref=\"4\"></type>\u000A</role>\u000A<role number=\"2\">\u000A<player topicref=\"2\"></player>\u000A<type topicref=\"3\"></type>\u000A</role>\u000A</association>\u000A</topicMap>\u000A","byteLength":963},{"id":"xtm2/in/merge-three-way.xtm","actual":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A<locator>#topic2</locator>\u000A<locator>#topic3</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","expected":"<topicMap>\u000A<topic number=\"1\">\u000A<itemIdentifiers>\u000A<locator>#topic</locator>\u000A<locator>#topic2</locator>\u000A<locator>#topic3</locator>\u000A</itemIdentifiers>\u000A</topic>\u000A</topicMap>\u000A","byteLength":168}]}
--- /dev/null
+;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
+ yes, using code points.
+;;; Checking for wide character support... WARNING: Lisp implementation doesn't use UTF-16, but accepts surrogate code points.
+ yes, using code points.
+;;; Building Closure with CHARACTER RUNES
+XTM-CHECK-PASS empty:original-byte-exact
+XTM-CHECK-PASS empty:pure
+XTM-CHECK-PASS empty:deterministic
+XTM-CHECK-PASS empty:topic-count
+XTM-CHECK-PASS empty:association-count
+XTM-CHECK-PASS topic:original-byte-exact
+XTM-CHECK-PASS topic:pure
+XTM-CHECK-PASS topic:deterministic
+XTM-CHECK-PASS topic:topic-count
+XTM-CHECK-PASS topic:association-count
+XTM-CHECK-PASS topic:actual-item-locator
+XTM-CHECK-PASS itemid-tm:original-byte-exact
+XTM-CHECK-PASS itemid-tm:pure
+XTM-CHECK-PASS itemid-tm:deterministic
+XTM-CHECK-PASS itemid-tm:topic-count
+XTM-CHECK-PASS itemid-tm:association-count
+XTM-CHECK-PASS map:actual-item-locator
+XTM-CHECK-PASS topic-type:original-byte-exact
+XTM-CHECK-PASS topic-type:pure
+XTM-CHECK-PASS topic-type:deterministic
+XTM-CHECK-PASS topic-type:topic-count
+XTM-CHECK-PASS topic-type:association-count
+XTM-CHECK-PASS topic-type:counts
+XTM-CHECK-PASS topic-type:map-parent-eq
+XTM-CHECK-PASS topic-type:association-type-eq
+XTM-CHECK-PASS topic-type:role-parent-eq
+XTM-CHECK-PASS topic-type:players-eq
+XTM-CHECK-PASS topic-type:roles-played-eq
+XTM-CHECK-PASS topic-type:canonical-handles
+XTM-CHECK-PASS topic-type-duplicate:original-byte-exact
+XTM-CHECK-PASS topic-type-duplicate:pure
+XTM-CHECK-PASS topic-type-duplicate:deterministic
+XTM-CHECK-PASS topic-type-duplicate:topic-count
+XTM-CHECK-PASS topic-type-duplicate:association-count
+XTM-CHECK-PASS topic-type-duplicate:counts
+XTM-CHECK-PASS topic-type-duplicate:map-parent-eq
+XTM-CHECK-PASS topic-type-duplicate:association-type-eq
+XTM-CHECK-PASS topic-type-duplicate:role-parent-eq
+XTM-CHECK-PASS topic-type-duplicate:players-eq
+XTM-CHECK-PASS topic-type-duplicate:roles-played-eq
+XTM-CHECK-PASS topic-type-duplicate:canonical-handles
+XTM-CHECK-PASS merge-three-way:original-byte-exact
+XTM-CHECK-PASS merge-three-way:pure
+XTM-CHECK-PASS merge-three-way:deterministic
+XTM-CHECK-PASS merge-three-way:topic-count
+XTM-CHECK-PASS merge-three-way:association-count
+XTM-CHECK-PASS merge:three-identifiers
+XTM-CHECK-PASS forward:counts
+XTM-CHECK-PASS forward:map-parent-eq
+XTM-CHECK-PASS forward:association-type-eq
+XTM-CHECK-PASS forward:role-parent-eq
+XTM-CHECK-PASS forward:players-eq
+XTM-CHECK-PASS forward:roles-played-eq
+XTM-CHECK-PASS forward:canonical-handles
+XTM-CHECK-PASS backward:counts
+XTM-CHECK-PASS backward:map-parent-eq
+XTM-CHECK-PASS backward:association-type-eq
+XTM-CHECK-PASS backward:role-parent-eq
+XTM-CHECK-PASS backward:players-eq
+XTM-CHECK-PASS backward:roles-played-eq
+XTM-CHECK-PASS backward:canonical-handles
+XTM-CHECK-PASS si-hit:counts
+XTM-CHECK-PASS si-hit:map-parent-eq
+XTM-CHECK-PASS si-hit:association-type-eq
+XTM-CHECK-PASS si-hit:role-parent-eq
+XTM-CHECK-PASS si-hit:players-eq
+XTM-CHECK-PASS si-hit:roles-played-eq
+XTM-CHECK-PASS si-hit:canonical-handles
+XTM-CHECK-PASS si-hit:no-extra-ii
+XTM-CHECK-PASS forward-si:counts
+XTM-CHECK-PASS forward-si:map-parent-eq
+XTM-CHECK-PASS forward-si:association-type-eq
+XTM-CHECK-PASS forward-si:role-parent-eq
+XTM-CHECK-PASS forward-si:players-eq
+XTM-CHECK-PASS forward-si:roles-played-eq
+XTM-CHECK-PASS forward-si:canonical-handles
+XTM-CHECK-PASS forward-si:created-ii-retained
+XTM-CHECK-PASS ii-hit:counts
+XTM-CHECK-PASS ii-hit:map-parent-eq
+XTM-CHECK-PASS ii-hit:association-type-eq
+XTM-CHECK-PASS ii-hit:role-parent-eq
+XTM-CHECK-PASS ii-hit:players-eq
+XTM-CHECK-PASS ii-hit:roles-played-eq
+XTM-CHECK-PASS ii-hit:canonical-handles
+XTM-CHECK-PASS ii-hit:identifiers-unchanged
+XTM-CHECK-PASS direct-si:actual-eq
+XTM-CHECK-PASS direct-si:no-ii
+XTM-CHECK-PASS retained:forward-handle-eq
+XTM-CHECK-PASS retained:role-player-canonical
+XTM-CHECK-PASS retained:role-parent-canonical
+XTM-CHECK-PASS retained:cxtm-does-not-mutate
+XTM-CHECK-PASS documents:distinct-object
+XTM-CHECK-PASS documents:distinct-local-locators
+XTM-CHECK-PASS identity:three-categories
+XTM-CHECK-PASS unicode:id-collapse
+XTM-CHECK-PASS unicode:href-percent-utf8
+XTM-CHECK-PASS iri:../folder/./x#t
+XTM-CHECK-PASS iri:#t
+XTM-CHECK-PASS iri:?q#t
+XTM-CHECK-PASS iri:http://EXAMPLE.test:80/a
+XTM-CHECK-PASS iri:http://example.test/a%20b#t
+XTM-CHECK-PASS order:canonical-independence
+XTM-CHECK-PASS encoding:UTF-8:T
+XTM-CHECK-PASS encoding:UTF-16LE:T
+XTM-CHECK-PASS encoding:UTF-16BE:T
+XTM-CHECK-PASS encoding:UTF-16LE:NIL
+XTM-CHECK-PASS encoding:UTF-16BE:NIL
+XTM-CHECK-PASS transitive:mixed-identifiers-one-topic
+XTM-CHECK-PASS transitive:three-ii-two-si
+XTM-CHECK-PASS reference:subject-locator-is-not-si-or-ii
+XTM-CHECK-PASS cascade:before-two-associations
+XTM-CHECK-PASS cascade:after-one-association
+XTM-CHECK-PASS cascade:retained-association-handles-eq
+XTM-CHECK-PASS cascade:retained-role-handles-eq
+XTM-CHECK-PASS cascade:stored-type-player-canonical
+XTM-CHECK-PASS cascade:retained-topic-handle-eq
+XTM-CHECK-PASS cascade:all-handles-pure
+XTM-CHECK-PASS namespace:prefix-equivalent
+XTM-CHECK-PASS source-key:not-topic-identity
+XTM-CHECK-PASS external-reference:no-retrieval:counts
+XTM-CHECK-PASS external-reference:no-retrieval:map-parent-eq
+XTM-CHECK-PASS external-reference:no-retrieval:association-type-eq
+XTM-CHECK-PASS external-reference:no-retrieval:role-parent-eq
+XTM-CHECK-PASS external-reference:no-retrieval:players-eq
+XTM-CHECK-PASS external-reference:no-retrieval:roles-played-eq
+XTM-CHECK-PASS external-reference:no-retrieval:canonical-handles
+XTM-CHECK-PASS missing-id:class
+XTM-CHECK-PASS missing-id:code
+XTM-CHECK-PASS missing-id:context
+XTM-CHECK-PASS missing-id:position
+XTM-CHECK-PASS invalid-id:class
+XTM-CHECK-PASS invalid-id:code
+XTM-CHECK-PASS invalid-id:context
+XTM-CHECK-PASS invalid-id:position
+XTM-CHECK-PASS id-colon:class
+XTM-CHECK-PASS id-colon:code
+XTM-CHECK-PASS id-colon:context
+XTM-CHECK-PASS id-colon:position
+XTM-CHECK-PASS id-empty:class
+XTM-CHECK-PASS id-empty:code
+XTM-CHECK-PASS id-empty:context
+XTM-CHECK-PASS id-empty:position
+XTM-CHECK-PASS id-spaces:class
+XTM-CHECK-PASS id-spaces:code
+XTM-CHECK-PASS id-spaces:context
+XTM-CHECK-PASS id-spaces:position
+XTM-CHECK-PASS duplicate-id:class
+XTM-CHECK-PASS duplicate-id:code
+XTM-CHECK-PASS duplicate-id:context
+XTM-CHECK-PASS duplicate-id:position
+XTM-CHECK-PASS unknown-attribute:class
+XTM-CHECK-PASS unknown-attribute:code
+XTM-CHECK-PASS unknown-attribute:context
+XTM-CHECK-PASS unknown-attribute:position
+XTM-CHECK-PASS qualified-attribute:class
+XTM-CHECK-PASS qualified-attribute:code
+XTM-CHECK-PASS qualified-attribute:context
+XTM-CHECK-PASS qualified-attribute:position
+XTM-CHECK-PASS unknown-element:class
+XTM-CHECK-PASS unknown-element:code
+XTM-CHECK-PASS unknown-element:context
+XTM-CHECK-PASS unknown-element:position
+XTM-CHECK-PASS wrong-namespace-child:class
+XTM-CHECK-PASS wrong-namespace-child:code
+XTM-CHECK-PASS wrong-namespace-child:context
+XTM-CHECK-PASS wrong-namespace-child:position
+XTM-CHECK-PASS topic-identity-order:class
+XTM-CHECK-PASS topic-identity-order:code
+XTM-CHECK-PASS topic-identity-order:context
+XTM-CHECK-PASS topic-identity-order:position
+XTM-CHECK-PASS map-identity-order:class
+XTM-CHECK-PASS map-identity-order:code
+XTM-CHECK-PASS map-identity-order:context
+XTM-CHECK-PASS map-identity-order:position
+XTM-CHECK-PASS instance-duplicate:class
+XTM-CHECK-PASS instance-duplicate:code
+XTM-CHECK-PASS instance-duplicate:context
+XTM-CHECK-PASS instance-duplicate:position
+XTM-CHECK-PASS empty-instance:class
+XTM-CHECK-PASS empty-instance:code
+XTM-CHECK-PASS empty-instance:context
+XTM-CHECK-PASS empty-instance:position
+XTM-CHECK-PASS missing-href:class
+XTM-CHECK-PASS missing-href:code
+XTM-CHECK-PASS missing-href:context
+XTM-CHECK-PASS missing-href:position
+XTM-CHECK-PASS nonempty-locator:class
+XTM-CHECK-PASS nonempty-locator:code
+XTM-CHECK-PASS nonempty-locator:context
+XTM-CHECK-PASS nonempty-locator:position
+XTM-CHECK-PASS locator-text:class
+XTM-CHECK-PASS locator-text:code
+XTM-CHECK-PASS locator-text:context
+XTM-CHECK-PASS locator-text:position
+XTM-CHECK-PASS non-whitespace:class
+XTM-CHECK-PASS non-whitespace:code
+XTM-CHECK-PASS non-whitespace:context
+XTM-CHECK-PASS non-whitespace:position
+XTM-CHECK-PASS no-ref-fragment:class
+XTM-CHECK-PASS no-ref-fragment:code
+XTM-CHECK-PASS no-ref-fragment:context
+XTM-CHECK-PASS no-ref-fragment:position
+XTM-CHECK-PASS bad-ref-fragment:class
+XTM-CHECK-PASS bad-ref-fragment:code
+XTM-CHECK-PASS bad-ref-fragment:context
+XTM-CHECK-PASS bad-ref-fragment:position
+XTM-CHECK-PASS empty-ref-fragment:class
+XTM-CHECK-PASS empty-ref-fragment:code
+XTM-CHECK-PASS empty-ref-fragment:context
+XTM-CHECK-PASS empty-ref-fragment:position
+XTM-CHECK-PASS xpointer-ref:class
+XTM-CHECK-PASS xpointer-ref:code
+XTM-CHECK-PASS xpointer-ref:context
+XTM-CHECK-PASS xpointer-ref:position
+XTM-CHECK-PASS relative-colon:class
+XTM-CHECK-PASS relative-colon:code
+XTM-CHECK-PASS relative-colon:context
+XTM-CHECK-PASS relative-colon:position
+XTM-CHECK-PASS decoded-control:class
+XTM-CHECK-PASS decoded-control:code
+XTM-CHECK-PASS decoded-control:context
+XTM-CHECK-PASS decoded-control:position
+XTM-CHECK-PASS bad-percent:class
+XTM-CHECK-PASS bad-percent:code
+XTM-CHECK-PASS bad-percent:context
+XTM-CHECK-PASS bad-percent:position
+XTM-CHECK-PASS bad-percent-utf8:class
+XTM-CHECK-PASS bad-percent-utf8:code
+XTM-CHECK-PASS bad-percent-utf8:context
+XTM-CHECK-PASS bad-percent-utf8:position
+XTM-CHECK-PASS invalid-iri:class
+XTM-CHECK-PASS invalid-iri:code
+XTM-CHECK-PASS invalid-iri:context
+XTM-CHECK-PASS invalid-iri:position
+XTM-CHECK-PASS missing-version:class
+XTM-CHECK-PASS missing-version:code
+XTM-CHECK-PASS missing-version:context
+XTM-CHECK-PASS missing-version:position
+XTM-CHECK-PASS version-21:class
+XTM-CHECK-PASS version-21:code
+XTM-CHECK-PASS version-21:context
+XTM-CHECK-PASS version-21:position
+XTM-CHECK-PASS no-namespace:class
+XTM-CHECK-PASS no-namespace:code
+XTM-CHECK-PASS no-namespace:context
+XTM-CHECK-PASS no-namespace:position
+XTM-CHECK-PASS namespace-10:class
+XTM-CHECK-PASS namespace-10:code
+XTM-CHECK-PASS namespace-10:context
+XTM-CHECK-PASS namespace-10:position
+XTM-CHECK-PASS xml-misnested:class
+XTM-CHECK-PASS xml-misnested:code
+XTM-CHECK-PASS xml-misnested:context
+XTM-CHECK-PASS xml-misnested:position
+XTM-CHECK-PASS xml-duplicate-attribute:class
+XTM-CHECK-PASS xml-duplicate-attribute:code
+XTM-CHECK-PASS xml-duplicate-attribute:context
+XTM-CHECK-PASS xml-duplicate-attribute:position
+XTM-CHECK-PASS xml-undeclared-prefix:class
+XTM-CHECK-PASS xml-undeclared-prefix:code
+XTM-CHECK-PASS xml-undeclared-prefix:context
+XTM-CHECK-PASS xml-undeclared-prefix:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap>:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>:position
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:class
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:code
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:context
+XTM-CHECK-PASS doctype:<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>:position
+XTM-CHECK-PASS unsupported-name:class
+XTM-CHECK-PASS unsupported-name:code
+XTM-CHECK-PASS unsupported-name:context
+XTM-CHECK-PASS unsupported-name:position
+XTM-CHECK-PASS unsupported-occurrence:class
+XTM-CHECK-PASS unsupported-occurrence:code
+XTM-CHECK-PASS unsupported-occurrence:context
+XTM-CHECK-PASS unsupported-occurrence:position
+XTM-CHECK-PASS unsupported-association:class
+XTM-CHECK-PASS unsupported-association:code
+XTM-CHECK-PASS unsupported-association:context
+XTM-CHECK-PASS unsupported-association:position
+XTM-CHECK-PASS unsupported-mergemap:class
+XTM-CHECK-PASS unsupported-mergemap:code
+XTM-CHECK-PASS unsupported-mergemap:context
+XTM-CHECK-PASS unsupported-mergemap:position
+XTM-CHECK-PASS unsupported-reifier:class
+XTM-CHECK-PASS unsupported-reifier:code
+XTM-CHECK-PASS unsupported-reifier:context
+XTM-CHECK-PASS unsupported-reifier:position
+XTM-CHECK-PASS diagnostic:multiline-observed-position
+XTM-CHECK-PASS document-iri:NIL
+XTM-CHECK-PASS document-iri:"relative.xtm"
+XTM-CHECK-PASS document-iri:"https://example.test/a#fragment"
+XTM-CHECK-PASS api:raw-bytes-required
+XTM-CHECK-PASS tmdm:identifier-conflict-not-xml-or-xtm
+XTM-CHECK-PASS tmdm:identifier-conflict-specific
+XTM-CHECK-PASS tmdm:core-subject-conflict-preserved
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(195 40)
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(192 175)
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(226 130)
+XTM-CHECK-PASS actual-reader:invalid-utf8:#(237 160 128)
+XTM-CHECK-PASS actual-reader:astral-surrogate:UTF-16LE
+XTM-CHECK-PASS actual-reader:astral-surrogate:UTF-16BE
+XTM-CHECK-PASS actual-reader:invalid-surrogate:#(0 216)
+XTM-CHECK-PASS actual-reader:invalid-surrogate:#(0 220)
+XTM-CHECK-PASS actual-reader:invalid-surrogate:#(0 216 65 0)
+XTM-CHECK-PASS boundary:real-parse-octets-only-once
+XTM-CHECK-PASS direct-sub:counts
+XTM-CHECK-PASS direct-sub:map-parent-eq
+XTM-CHECK-PASS direct-sub:association-type-eq
+XTM-CHECK-PASS direct-sub:role-parent-eq
+XTM-CHECK-PASS direct-sub:players-eq
+XTM-CHECK-PASS direct-sub:roles-played-eq
+XTM-CHECK-PASS direct-sub:canonical-handles
+XTM-CHECK-PASS direct-sub:exact-lars-ii
+XTM-CHECK-PASS direct-sub:exact-person-ii
+XTM-CHECK-PASS direct-sub:no-names-occurrences
+XTM-CHECK-PASS checks:unique-test-names
+XTM-SUMMARY 327 PASS 0 FAIL; 6 original CXTM PASS; helper source PASS
--- /dev/null
+(require :asdf)
+(setf *compile-verbose* nil *load-verbose* nil)
+(assert (string= "2.5.4" (lisp-implementation-version)))
+(asdf:load-asd (merge-pathnames "../topic-maps.asd" *load-truename*))
+(asdf:test-system "topic-maps/xtm")
+(let ((report (uiop:getenv "TOPIC_MAPS_XTM_REPORT")))
+ (when report (uiop:symbol-call :topic-maps.xtm.tests :write-report report)))
+(assert (not (find-package :topic-maps.ctm)))
--- /dev/null
+#!/usr/bin/env python3
+"""Fresh offline XTM identity checks plus the unchanged XML and CTM regressions."""
+import argparse
+import datetime
+import hashlib
+import json
+import os
+from pathlib import Path
+import re
+import shutil
+import subprocess
+import tempfile
+
+ROOT = Path(__file__).resolve().parent.parent
+BASE = '1691c8e0712e30666de2e667a5050eccb0086f71'
+POLICY = '(version 1)(allow default)(deny network*)'
+
+
+def command(args):
+ return subprocess.check_output(args, cwd=ROOT, text=True).strip()
+
+
+def sha(path):
+ return hashlib.sha256(path.read_bytes()).hexdigest()
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument('--sbcl', default=os.environ.get('SBCL', 'sbcl'))
+ parser.add_argument('--output', type=Path, default=ROOT / 'reports/slice-19d1')
+ args = parser.parse_args()
+ runtime = shutil.which(args.sbcl)
+ assert runtime and command([runtime, '--version']) == 'SBCL 2.5.4'
+ output = args.output.resolve()
+ output.mkdir(parents=True, exist_ok=True)
+ protected_paths = ['src/tmdm', 'src/ctm', 'src/cxtm', 'src/xml', 'patches', 'flake.nix',
+ 'flake.lock', 'vendor', 'references', 'scripts/prepare-cxml.py',
+ 'tests/cxml-probe.lisp', 'tests/cxml-encoding-regressions.lisp', 'scripts/test.sh']
+ assert not command(['git', 'diff', BASE, '--'] + protected_paths)
+ protected = {str(p.relative_to(ROOT)): sha(p) for directory in ['vendor/cxtm', 'references', 'patches']
+ for p in (ROOT / directory).rglob('*') if p.is_file()}
+ sources = {str(p.relative_to(ROOT)): sha(p) for directory in ['src', 'tests', 'scripts', 'docs']
+ for p in (ROOT / directory).rglob('*') if p.is_file() and p.suffix in ['.lisp', '.py', '.sh', '.md']}
+ sources.update({p: sha(ROOT / p) for p in ['topic-maps.asd', 'README.md', 'flake.nix', 'flake.lock']})
+ started = datetime.datetime.now(datetime.timezone.utc).isoformat()
+ # The XTM source must have exactly one XML parse entry, the qualified boundary.
+ xtm_source = '\n'.join(p.read_text() for p in sorted((ROOT / 'src/xtm').glob('*.lisp')))
+ assert xtm_source.count('(topic-maps.xml:parse-octets ') == 1
+ assert not re.search(r'\(cxml:parse[-\w]*\s', xtm_source, re.I)
+ runs = []
+ with tempfile.TemporaryDirectory(prefix='topic-maps-19d1-') as tmp:
+ tmp = Path(tmp)
+ preparation = ['python3', 'scripts/prepare-cxml.py', '--directory', str(tmp / 'sources')]
+ provenance = json.loads(command(preparation))
+ environment = dict(os.environ, CL_SOURCE_REGISTRY=provenance['sourceRegistry'], PYTHONDONTWRITEBYTECODE='1')
+ for label, script in [('xml', 'tests/cxml-probe.lisp'), ('xtm-1', 'scripts/fresh-xtm.lisp'),
+ ('xtm-2', 'scripts/fresh-xtm.lisp')]:
+ env = dict(environment)
+ if label.startswith('xtm'):
+ env['TOPIC_MAPS_XTM_REPORT'] = str(output / (label + '.json'))
+ invocation = ['/usr/bin/sandbox-exec', '-p', POLICY, runtime,
+ '--noinform', '--no-sysinit', '--no-userinit', '--script', script]
+ context = {'label': label, 'command': invocation, 'freshProcess': True,
+ 'network': 'denied by sandbox-exec',
+ 'startedAtUTC': datetime.datetime.now(datetime.timezone.utc).isoformat()}
+ result = subprocess.run(invocation, cwd=ROOT, env=env, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, timeout=120)
+ (output / (label + '.log')).write_bytes(result.stdout)
+ context.update(exitCode=result.returncode, finishedAtUTC=datetime.datetime.now(datetime.timezone.utc).isoformat())
+ assert result.returncode == 0, label + ' failed; see saved log'
+ prefix = 'CXML' if label == 'xml' else 'XTM'
+ passed = re.findall(r'^' + prefix + r'-CHECK-PASS (.+)$', result.stdout.decode(), re.M)
+ assert len(passed) == len(set(passed))
+ assert prefix + '-SUMMARY ' + str(len(passed)) + ' PASS 0 FAIL' in result.stdout.decode()
+ context['passedChecks'] = len(passed)
+ if label == 'xml':
+ assert len(passed) == 146
+ else:
+ report = json.loads((output / (label + '.json')).read_text())
+ assert report['checks'] == passed
+ assert report['statuses'] == {'pass': 6, 'fail': 0, 'unsupported': 0, 'not-run': 0}
+ assert report['helperSource']['status'] == 'pass'
+ assert len(report['cases']) == 6
+ for case in report['actualAndExpected']:
+ assert case['actual'].encode() == case['expected'].encode()
+ assert report['otherCorpusInputs'] == {'positiveUnexecuted': 107, 'negativeUnregisteredUnexecuted': 11}
+ runs.append(context)
+ assert (output / 'xtm-1.json').read_bytes() == (output / 'xtm-2.json').read_bytes()
+ regression_dir = tmp / 'regression'
+ invocation = ['python3', 'scripts/validate-slice-19c.py', '--sbcl', runtime, '--output', str(regression_dir)]
+ result = subprocess.run(invocation, cwd=ROOT, env=environment, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT, timeout=180)
+ (output / 'regression-driver.log').write_bytes(result.stdout)
+ assert result.returncode == 0, 'Retained regression failed'
+ regression = json.loads((regression_dir / 'execution.json').read_text())
+ assert regression['totalLispChecks'] == 12100
+ assert regression['importedStatuses'] == {'pass': 204, 'fail': 4, 'unsupported': 0, 'not-run': 65}
+ identical = []
+ for previous in sorted((ROOT / 'reports/slice-19c').glob('*.json')):
+ if previous.name != 'execution.json':
+ assert (regression_dir / previous.name).read_bytes() == previous.read_bytes(), previous.name
+ identical.append(previous.name)
+ for name in ['tests.log', 'execution.json']:
+ shutil.copyfile(regression_dir / name, output / ('regression-' + name))
+ assert protected == {p: sha(ROOT / p) for p in protected}
+ assert sources == {p: sha(ROOT / p) for p in sources}
+ assert not command(['git', 'diff', BASE, '--'] + protected_paths)
+ evidence = {'baseCommit': BASE, 'branch': command(['git', 'branch', '--show-current']),
+ 'startedAtUTC': started, 'finishedAtUTC': datetime.datetime.now(datetime.timezone.utc).isoformat(),
+ 'runtime': 'SBCL 2.5.4', 'newDependencyDownloads': 0, 'sourcePreparationCommand': preparation,
+ 'qualifiedSourceProvenance': provenance, 'sourceSHA256': sources,
+ 'protectedCorpusAndDecoderPatchesUnchanged': True, 'xmlBoundaryStaticAndRuntimeChecks': 'PASS',
+ 'runs': runs, 'ctmStatuses': regression['importedStatuses'],
+ 'retainedLispChecks': regression['totalLispChecks'], 'retainedChecks': regression['regressionChecks'],
+ 'retainedRegressionCommand': invocation, 'retainedReportsByteIdentical': identical,
+ 'xtmStatuses': {'pass': 6, 'fail': 0, 'unsupported': 0, 'not-run': 0},
+ 'unexecutedOtherXTMInputs': {'positive': 107, 'negative': 11},
+ 'directXTMHelperSource': 'PASS; 5 Topics, 1 Association, 2 Roles; not a CTM Mergemap PASS',
+ 'deterministicXTMReports': True, 'persistentLispImagesTouched': False,
+ 'fullOfflineNixRebuild': 'NOT-RUN; original Store sources, verified existing local patches and fresh offline ASDF loads.'}
+ (output / 'execution.json').write_text(json.dumps(evidence, indent=2) + '\n')
+ print(json.dumps({k: evidence[k] for k in ['runtime', 'runs', 'ctmStatuses', 'retainedLispChecks', 'xtmStatuses']}, indent=2))
+
+
+if __name__ == '__main__':
+ main()
--- /dev/null
+(in-package #:topic-maps.xtm)
+
+;; RFC 3986 5.2 algorithm, shared policy with CTM but no CTM dependency.
+;; Do not use PURI rendering here: it removes ports and rewrites locator spellings.
+
+(defstruct iri-parts scheme authority (path "") query fragment)
+
+(defun ascii-letter-p (c)
+ (or (char<= #\a c #\z) (char<= #\A c #\Z)))
+(defun scheme-p (text)
+ (and (plusp (length text)) (ascii-letter-p (char text 0))
+ (every (lambda (c) (or (ascii-letter-p c) (find c "0123456789+-."))) text)))
+(defun starts-with (prefix string)
+ (and (<= (length prefix) (length string))
+ (string= prefix string :end2 (length prefix))))
+
+(defun split-iri (iri)
+ (let* ((fragment-position (position #\# iri))
+ (fragment (when fragment-position (subseq iri (1+ fragment-position))))
+ (remaining (subseq iri 0 fragment-position))
+ (query-position (position #\? remaining))
+ (query (when query-position (subseq remaining (1+ query-position))))
+ (head (subseq remaining 0 query-position))
+ (colon (position #\: head))
+ (scheme (when (and colon (scheme-p (subseq head 0 colon))) (subseq head 0 colon)))
+ (rest (if scheme (subseq head (1+ colon)) head))
+ (slash (when (starts-with "//" rest) (position #\/ rest :start 2)))
+ (authority (when (starts-with "//" rest) (subseq rest 2 slash)))
+ (path (if authority (if slash (subseq rest slash) "") rest)))
+ (make-iri-parts :scheme scheme :authority authority :path path :query query :fragment fragment)))
+
+(defun join-iri (parts)
+ (with-output-to-string (out)
+ (when (iri-parts-scheme parts) (format out "~A:" (iri-parts-scheme parts)))
+ (when (iri-parts-authority parts) (format out "//~A" (iri-parts-authority parts)))
+ (write-string (iri-parts-path parts) out)
+ (when (iri-parts-query parts) (format out "?~A" (iri-parts-query parts)))
+ (when (iri-parts-fragment parts) (format out "#~A" (iri-parts-fragment parts)))))
+
+(defun remove-dot-segments (path)
+ ;; RFC 3986 5.2.4, preserving empty segments and terminal slashes.
+ (let ((input path) (output ""))
+ (loop while (plusp (length input)) do
+ (cond ((starts-with "../" input) (setf input (subseq input 3)))
+ ((starts-with "./" input) (setf input (subseq input 2)))
+ ((starts-with "/./" input) (setf input (subseq input 2)))
+ ((string= input "/.") (setf input "/"))
+ ((or (starts-with "/../" input) (string= input "/.."))
+ (setf input (if (string= input "/..") "/" (subseq input 3))
+ output (subseq output 0 (or (position #\/ output :from-end t) 0))))
+ ((or (string= input ".") (string= input "..")) (setf input ""))
+ (t (let ((end (position #\/ input :start (if (char= (char input 0) #\/) 1 0))))
+ (setf output (concatenate 'string output (subseq input 0 end))
+ input (if end (subseq input end) ""))))))
+ output))
+
+(defun resolve-iri (reference document node)
+ "XTM 4.3.4: percent UTF-8 decoding, then RFC 3986 resolution; never fetch."
+ (let* ((reference (validate-decoded-reference (unescape-reference reference node) node))
+ (r (split-iri reference)) (b (split-iri document))
+ (target (make-iri-parts :fragment (iri-parts-fragment r))))
+ (cond
+ ((iri-parts-scheme r)
+ (setf (iri-parts-scheme target) (iri-parts-scheme r)
+ (iri-parts-authority target) (iri-parts-authority r)
+ (iri-parts-path target) (remove-dot-segments (iri-parts-path r))
+ (iri-parts-query target) (iri-parts-query r)))
+ (t
+ (setf (iri-parts-scheme target) (iri-parts-scheme b))
+ (cond ((iri-parts-authority r)
+ (setf (iri-parts-authority target) (iri-parts-authority r)
+ (iri-parts-path target) (remove-dot-segments (iri-parts-path r))
+ (iri-parts-query target) (iri-parts-query r)))
+ (t
+ (setf (iri-parts-authority target) (iri-parts-authority b))
+ (if (zerop (length (iri-parts-path r)))
+ (setf (iri-parts-path target) (iri-parts-path b)
+ (iri-parts-query target) (or (iri-parts-query r) (iri-parts-query b)))
+ (setf (iri-parts-path target)
+ (remove-dot-segments
+ (if (starts-with "/" (iri-parts-path r))
+ (iri-parts-path r)
+ (concatenate 'string
+ (if (and (iri-parts-authority b) (zerop (length (iri-parts-path b))))
+ "/"
+ (subseq (iri-parts-path b) 0
+ (let ((slash (position #\/ (iri-parts-path b) :from-end t)))
+ (if slash (1+ slash) 0))))
+ (iri-parts-path r))))
+ (iri-parts-query target) (iri-parts-query r)))))))
+ (join-iri target)))
+
+(defun unescape-reference (text node)
+ ;; XTM 4.3.4 explicitly decodes percent escapes before resolving, including
+ ;; reserved characters. Babel is an existing qualified CXML dependency.
+ (when (some (lambda (c) (or (<= (char-code c) 32) (find c "<>\"{}|^`\\"))) text)
+ (reject :invalid-iri "Illegal character in the original IRI reference." node))
+ (when (> (count #\# text) 1) (reject :invalid-iri "Multiple fragment delimiters." node))
+ (with-output-to-string (out)
+ (loop for i from 0 below (length text) do
+ (if (char= (char text i) #\%)
+ (let ((bytes nil))
+ (loop while (and (< i (length text)) (char= (char text i) #\%)) do
+ (unless (and (< (+ i 2) (length text))
+ (digit-char-p (char text (1+ i)) 16)
+ (digit-char-p (char text (+ i 2)) 16))
+ (reject :invalid-percent-escape "Expected two hexadecimal digits." node))
+ (push (+ (* 16 (digit-char-p (char text (1+ i)) 16))
+ (digit-char-p (char text (+ i 2)) 16)) bytes)
+ (incf i 3))
+ (handler-case
+ (write-string (babel:octets-to-string
+ (coerce (nreverse bytes) '(vector (unsigned-byte 8)))
+ :encoding :utf-8 :errorp t) out)
+ (babel:character-decoding-error ()
+ (reject :invalid-percent-utf8 "Percent escapes are not valid UTF-8." node)))
+ (decf i))
+ (write-char (char text i) out)))))
+
+(defun require-document-iri (iri)
+ ;; Document IRI is already an absolute locator, not another escaped href.
+ (unless (and (stringp iri) (plusp (length iri))
+ (iri-parts-scheme (split-iri iri))
+ (not (find #\# iri))
+ (notany (lambda (c) (or (<= (char-code c) 32) (find c "<>\"{}|^`\\"))) iri))
+ (reject :invalid-document-iri "An explicit absolute, fragment-free Document IRI is required."))
+ iri)
+
+(defun validate-decoded-reference (iri node)
+ ;; Percent-unescaping is required even for reserved characters. It must not
+ ;; introduce controls or malformed relative-path/fragment structure.
+ (let* ((parts (split-iri iri)) (path (iri-parts-path parts))
+ (first-segment (subseq path 0 (position #\/ path))))
+ (when (or (some (lambda (c) (or (< (char-code c) 32) (= (char-code c) 127))) iri)
+ (> (count #\# iri) 1)
+ (and (null (iri-parts-scheme parts)) (find #\: first-segment)))
+ (reject :invalid-iri "Invalid decoded IRI reference." node)))
+ iri)
--- /dev/null
+(defpackage #:topic-maps.xtm
+ (:use #:cl)
+ (:export #:deserialize-octets
+ #:xtm-error #:xtm-rejection #:xtm-unsupported #:xtm-xml-error
+ #:error-code #:error-detail #:error-document-iri #:error-source-key
+ #:error-line #:error-column #:error-cause))
+(in-package #:topic-maps.xtm)
+
+(define-condition xtm-error (error)
+ ((code :initarg :code :reader error-code)
+ (detail :initarg :detail :reader error-detail)
+ (document-iri :initarg :document-iri :reader error-document-iri)
+ (source-key :initarg :source-key :reader error-source-key)
+ (line :initarg :line :initform nil :reader error-line)
+ (column :initarg :column :initform nil :reader error-column))
+ (:report (lambda (c out)
+ (format out "XTM ~A at ~A (~A), approximately ~A:~A: ~A"
+ (error-code c) (error-source-key c) (error-document-iri c)
+ (error-line c) (error-column c) (error-detail c)))))
+(define-condition xtm-rejection (xtm-error) ())
+(define-condition xtm-unsupported (xtm-error) ())
+(define-condition xtm-xml-error (xtm-error)
+ ((cause :initarg :cause :reader error-cause)))
+
+(defvar *document-iri*)
+(defvar *source-key*)
+(defun reject (code detail &optional node (class 'xtm-rejection))
+ (error class :code code :detail detail :document-iri *document-iri*
+ :source-key *source-key* :line (when node (node-line node))
+ :column (when node (node-column node))))
--- /dev/null
+(in-package #:topic-maps.xtm)
+
+(defparameter +namespace+ "http://www.topicmaps.org/xtm/")
+;; This is a source tree of XML events, not a second Topic Maps object model.
+;; Positions are SAX approximations at the end of a start tag, never byte spans.
+(defstruct node uri name attributes children line column)
+(defclass source-handler (sax:default-handler)
+ ((stack :initform nil :accessor handler-stack)
+ (root :initform nil :accessor handler-root)))
+(defmethod sax:start-element ((h source-handler) uri local qname attributes)
+ (declare (ignore qname))
+ (let ((node (make-node :uri uri :name local :line (sax:line-number h)
+ :column (sax:column-number h)
+ :attributes (mapcar (lambda (a)
+ (list (sax:attribute-namespace-uri a)
+ (sax:attribute-local-name a)
+ (sax:attribute-value a))) attributes))))
+ (if (handler-stack h) (push node (node-children (first (handler-stack h))))
+ (setf (handler-root h) node))
+ (push node (handler-stack h))))
+(defmethod sax:characters ((h source-handler) data)
+ (when (handler-stack h) (push (copy-seq data) (node-children (first (handler-stack h))))))
+(defmethod sax:end-element ((h source-handler) uri local qname)
+ (declare (ignore uri local qname))
+ (let ((node (pop (handler-stack h)))) (setf (node-children node) (nreverse (node-children node)))))
+(defmethod sax:end-document ((h source-handler)) (handler-root h))
+
+(defun xml-space-p (c) (find c '(#\Space #\Tab #\Newline #\Return)))
+(defun collapse-space (text)
+ ;; xsd:ID has whiteSpace=collapse, even with a non-validating XML processor.
+ (with-output-to-string (out)
+ (let ((written nil) (pending nil))
+ (loop for c across text do
+ (if (xml-space-p c) (when written (setf pending t))
+ (progn (when pending (write-char #\Space out))
+ (write-char c out) (setf written t pending nil)))))))
+(defun ncname-p (text)
+ ;; Use the pinned XML processor's XML 1.0 name character tables; exclude ':'
+ ;; for XML Schema ID/NCName and XPointer shorthand pointers (XTM 4.5/4.20).
+ (and (plusp (length text)) (not (find #\: text))
+ (cxml::valid-name-p (runes:string-rod text))))
+(defun attributes (node allowed required)
+ (dolist (attr (node-attributes node))
+ (unless (and (or (null (first attr)) (equal (first attr) ""))
+ (member (second attr) allowed :test #'string=))
+ (reject :unexpected-attribute (format nil "Attribute ~S on ~A." (second attr) (node-name node)) node)))
+ (dolist (name required)
+ (unless (find name (node-attributes node) :key #'second :test #'string=)
+ (reject (if (string= name "id") :missing-id :missing-attribute)
+ (format nil "Required ~A attribute is absent." name) node))))
+(defun attr (node name)
+ (third (find name (node-attributes node) :key #'second :test #'string=)))
+(defun elements (node)
+ (loop for child in (node-children node)
+ if (stringp child) do
+ (unless (every #'xml-space-p child)
+ (reject :unexpected-text "Only XML whitespace is allowed here." node))
+ else collect child))
+(defun check-namespace (node)
+ (unless (equal (node-uri node) +namespace+)
+ (reject :invalid-namespace "Expected the XTM 2.0 namespace." node)))
+(defun unsupported (node)
+ (reject :unsupported-construct (format nil "XTM ~A is not implemented in this subset." (node-name node))
+ node 'xtm-unsupported))
+(defun check-reifier (node)
+ (when (attr node "reifier")
+ (reject :reification "XTM Reification is outside this subset." node 'xtm-unsupported)))
+(defun leaf-href (node)
+ (attributes node '("href") '("href"))
+ (when (elements node) (reject :unexpected-child "A locator element must be empty." node))
+ (resolve-iri (attr node "href") *document-iri* node))
+(defun reference-iri (node)
+ (let* ((iri (leaf-href node)) (fragment (iri-parts-fragment (split-iri iri))))
+ (unless (and fragment (ncname-p fragment))
+ (reject :invalid-topic-ref "topicRef requires an XPointer shorthand fragment." node))
+ iri))
+
+(defun validate-source (root)
+ "Check the supported XTM schema before model construction; keep event order.
+Unsupported legal extension points are explicit; no claim to validate excluded
+constructs' complete subgrammars is made. XML errors have already been checked."
+ (let ((ids (make-hash-table :test #'equal))) ; XML ID uniqueness only, no Topics.
+ (labels ((validate (node context)
+ (check-namespace node)
+ (let ((name (node-name node)))
+ (unless (member name context :test #'string=)
+ (reject :unexpected-element (format nil "Unexpected ~A element." name) node))
+ (cond
+ ((string= name "topicMap")
+ (attributes node '("version" "reifier") '("version"))
+ (unless (equal (attr node "version") "2.0")
+ (reject :invalid-version "This reader accepts XTM version 2.0 only." node))
+ (check-reifier node)
+ (let ((phase 0))
+ (dolist (child (elements node))
+ (let* ((name (node-name child))
+ (next (cond ((string= name "itemIdentity") 0)
+ ((string= name "mergeMap") 1) (t 2))))
+ (when (< next phase) (reject :element-order "topicMap child order is invalid." child))
+ (setf phase next)
+ (validate child '("itemIdentity" "mergeMap" "topic" "association"))))))
+ ((string= name "topic")
+ (attributes node '("id") '("id"))
+ (let ((id (collapse-space (attr node "id"))))
+ (unless (ncname-p id) (reject :invalid-id "topic/@id must be an XML Schema ID." node))
+ (when (gethash id ids) (reject :duplicate-id "Duplicate XML ID in this document." node))
+ (setf (gethash id ids) t))
+ (let ((phase 0) (instance-seen nil))
+ (dolist (child (elements node))
+ (let* ((name (node-name child))
+ (next (cond ((member name '("itemIdentity" "subjectLocator" "subjectIdentifier")
+ :test #'string=) 0)
+ ((string= name "instanceOf") 1) (t 2))))
+ (when (< next phase) (reject :element-order "topic child order is invalid." child))
+ (when (= next 1)
+ (when instance-seen (reject :duplicate-instance-of "Only one instanceOf element is allowed." child))
+ (setf instance-seen t))
+ (setf phase next)
+ (validate child '("itemIdentity" "subjectLocator" "subjectIdentifier" "instanceOf" "name" "occurrence"))))))
+ ((string= name "instanceOf")
+ (attributes node nil nil)
+ (unless (elements node) (reject :empty-instance-of "instanceOf needs at least one topicRef." node))
+ (dolist (child (elements node)) (validate child '("topicRef"))))
+ ((string= name "topicRef") (reference-iri node))
+ ((member name '("itemIdentity" "subjectIdentifier" "subjectLocator") :test #'string=)
+ (leaf-href node))
+ (t (unsupported node))))))
+ (validate root '("topicMap"))))
+ root)
+
+(defun find-reference-topic (map iri)
+ ;; XTM 4.20 searches the actual model, not a speculative pre-scan registry.
+ ;; Unlike INTERN-TOPIC, a hit MUST NOT add another identifier category.
+ (let ((topic (find-if (lambda (topic)
+ (or (member iri (topic-maps.tmdm:topic-subject-identifiers topic) :test #'string=)
+ (member iri (topic-maps.tmdm:topic-item-identifiers topic) :test #'string=)))
+ (topic-maps.tmdm:topic-map-topics map))))
+ (if topic (topic-maps.tmdm:canonical-topic topic)
+ (topic-maps.tmdm:intern-topic map :item-identifier iri))))
+(defun core-topic (map local)
+ (topic-maps.tmdm:intern-topic map :subject-identifier
+ (concatenate 'string "http://psi.topicmaps.org/iso13250/model/" local)))
+(defun read-instance-of (node owner map)
+ (dolist (ref (elements node))
+ (let ((type (find-reference-topic map (reference-iri ref))))
+ (topic-maps.tmdm:make-association map (core-topic map "type-instance")
+ (list (list (core-topic map "type") type)
+ (list (core-topic map "instance") (topic-maps.tmdm:canonical-topic owner)))))))
+(defun read-topic (node map)
+ (let ((topic (topic-maps.tmdm:intern-topic map :item-identifier
+ (concatenate 'string *document-iri* "#" (collapse-space (attr node "id"))))))
+ (dolist (child (elements node))
+ (let ((name (node-name child)))
+ (if (string= name "instanceOf") (read-instance-of child topic map)
+ (setf topic (topic-maps.tmdm:add-topic-identifier topic
+ (cond ((string= name "itemIdentity") :item-identifier)
+ ((string= name "subjectIdentifier") :subject-identifier)
+ (t :subject-locator))
+ (leaf-href child))))))
+ (topic-maps.tmdm:canonical-topic topic)))
+(defun deserialize-octets (bytes &key document-iri source-key)
+ "Deserialize raw XML octets into a new TMDM Topic Map (XTM 2.0 identity subset).
+DOCUMENT-IRI is required, absolute and fragment-free. SOURCE-KEY is a diagnostic
+label only. XML positions are approximate SAX line/column values, not spans.
+XML-policy errors, XTM rejection/unsupported and original TMDM conflicts remain
+distinct. No resources are fetched. No externally supplied Map is mutated."
+ (check-type bytes (vector (unsigned-byte 8)))
+ (let ((*document-iri* document-iri) (*source-key* source-key)
+ (handler (make-instance 'source-handler)))
+ (require-document-iri document-iri)
+ (let* ((root
+ (handler-case (topic-maps.xml:parse-octets bytes handler)
+ (cxml:well-formedness-violation (c)
+ (error 'xtm-xml-error :code :xml-not-well-formed :cause c
+ :detail (princ-to-string c) :document-iri document-iri :source-key source-key
+ :line (sax:line-number handler) :column (sax:column-number handler)))
+ (topic-maps.xml:doctype-forbidden (c)
+ (error 'xtm-xml-error :code :doctype-forbidden :cause c
+ :detail "DOCTYPE forbidden by the mandatory XML byte boundary."
+ :document-iri document-iri :source-key source-key
+ :line (sax:line-number handler) :column (sax:column-number handler)))))
+ (map (topic-maps.tmdm:make-topic-map)))
+ (validate-source root)
+ (dolist (child (elements root))
+ (if (string= (node-name child) "itemIdentity")
+ (topic-maps.tmdm:add-item-identifier map (leaf-href child))
+ (read-topic child map)))
+ map)))
--- /dev/null
+(defpackage #:topic-maps.xtm.tests
+ (:use #:cl #:topic-maps.tmdm)
+ (:import-from #:topic-maps.xtm #:deserialize-octets #:xtm-rejection #:xtm-unsupported
+ #:xtm-xml-error #:error-code #:error-document-iri #:error-source-key #:error-line #:error-column)
+ (:export #:run-tests #:write-report))
+(in-package #:topic-maps.xtm.tests)
+
+(defparameter *document* "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/xtm2/in/example.xtm")
+(defvar *checks* nil)
+(defvar *cases* nil)
+(defvar *outputs* nil)
+(defvar *fixture* nil)
+(defun check (name truth)
+ (push name *checks*)
+ (unless truth (error "XTM test failed: ~A" name))
+ (format t "XTM-CHECK-PASS ~A~%" name))
+(defun bytes (text &optional (encoding :utf-8) bom)
+ (concatenate '(vector (unsigned-byte 8))
+ (if bom (ecase encoding (:utf-8 #(239 187 191)) (:utf-16le #(255 254)) (:utf-16be #(254 255))) #())
+ (babel:string-to-octets text :encoding encoding :use-bom nil)))
+(defun file-bytes (path)
+ (with-open-file (in path :element-type '(unsigned-byte 8))
+ (let ((data (make-array (file-length in) :element-type '(unsigned-byte 8))))
+ (assert (= (read-sequence data in) (length data))) data)))
+(defun corpus-path (relative) (merge-pathnames relative (topic-maps.test-foundation:default-corpus-root)))
+(defun document (body) (format nil "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'>~A</topicMap>" body))
+(defun read-body (body &optional (iri *document*))
+ (deserialize-octets (bytes (document body)) :document-iri iri :source-key "local:xtm-semantic-test"))
+(defun by-id (map name)
+ (find-if (lambda (topic) (member (concatenate 'string *document* "#" name)
+ (topic-item-identifiers topic) :test #'string=)) (topic-map-topics map)))
+(defun by-si (map iri) (find iri (topic-map-topics map) :test (lambda (iri topic) (member iri (topic-subject-identifiers topic) :test #'string=))))
+(defun core (map name) (by-si map (concatenate 'string "http://psi.topicmaps.org/iso13250/model/" name)))
+(defun condition-from (thunk) (handler-case (progn (funcall thunk) nil) (error (c) c)))
+(defun rejection (name source class code)
+ (let ((c (condition-from (lambda () (deserialize-octets (bytes source) :document-iri *document* :source-key name)))))
+ (check (concatenate 'string name ":class") (typep c class))
+ (check (concatenate 'string name ":code") (eq code (error-code c)))
+ (check (concatenate 'string name ":context") (and (equal (error-document-iri c) *document*) (equal (error-source-key c) name)))
+ (check (concatenate 'string name ":position") (and (integerp (error-line c)) (plusp (error-line c))
+ (integerp (error-column c)) (not (minusp (error-column c)))))))
+(defun public-state (map)
+ ;; Actual references are retained in the snapshot, not only equivalent XML.
+ (list (item-identifiers map)
+ (mapcar (lambda (topic) (list topic (topic-parent topic) (topic-item-identifiers topic)
+ (topic-subject-identifiers topic) (topic-subject-locators topic)
+ (topic-names topic) (topic-occurrences topic) (topic-roles-played topic))) (topic-map-topics map))
+ (mapcar (lambda (a) (list a (association-parent a) (association-type a) (association-scope a) (item-identifiers a)
+ (mapcar (lambda (r) (list r (association-role-parent r) (association-role-type r)
+ (association-role-player r) (item-identifiers r))) (association-roles a))))
+ (topic-map-associations map))))
+(defun graph-checks (label map owner type)
+ (let* ((a (first (topic-map-associations map))) (roles (association-roles a))
+ (instance (find (core map "instance") roles :key #'association-role-type :test #'eq))
+ (type-role (find (core map "type") roles :key #'association-role-type :test #'eq)))
+ (check (concatenate 'string label ":counts") (and (= 5 (length (topic-map-topics map))) (= 1 (length (topic-map-associations map))) (= 2 (length roles))))
+ (check (concatenate 'string label ":map-parent-eq") (and (eq map (association-parent a)) (every (lambda (topic) (eq map (topic-parent topic))) (topic-map-topics map))))
+ (check (concatenate 'string label ":association-type-eq") (eq (association-type a) (core map "type-instance")))
+ (check (concatenate 'string label ":role-parent-eq") (every (lambda (role) (eq a (association-role-parent role))) roles))
+ (check (concatenate 'string label ":players-eq") (and (eq owner (association-role-player instance)) (eq type (association-role-player type-role))))
+ (check (concatenate 'string label ":roles-played-eq") (and (member instance (topic-roles-played owner) :test #'eq) (member type-role (topic-roles-played type) :test #'eq)))
+ (check (concatenate 'string label ":canonical-handles") (and (eq a (canonical-association a)) (every (lambda (r) (eq r (canonical-association-role r))) roles)))))
+
+(defun original-contracts ()
+ (setf *cases* nil *outputs* nil)
+ (dolist (name '("empty" "topic" "itemid-tm" "topic-type" "topic-type-duplicate" "merge-three-way"))
+ (let* ((id (format nil "xtm2/in/~A.xtm" name))
+ (iri (concatenate 'string "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/" id))
+ (source (corpus-path id)) (baseline (corpus-path (format nil "xtm2/baseline/~A.xtm.cxtm" name)))
+ (case (topic-maps.test-foundation:make-test-case :id id :category :valid :source-pathname source
+ :document-iri iri :expected-outcome :cxtm-equal :expected-baseline baseline
+ :clauses '("XTM 2.0 4.3-4.9,4.20" "TMDM 5.1-5.3,5.7-5.8,6,7.2" "CXTM 3.13,3.18,4")))
+ (map (deserialize-octets (file-bytes source) :document-iri iri :source-key id))
+ (before (public-state map))
+ (actual (topic-maps.cxtm:canonicalize-octets map :base-locator iri))
+ (expected (file-bytes baseline)))
+ (topic-maps.test-foundation:record-result case (if (equalp actual expected) :cxtm-match :cxtm-mismatch)
+ :diagnostics (list (format nil "Actual ~D bytes; original baseline ~D bytes." (length actual) (length expected))))
+ (push case *cases*) (push (list id actual expected) *outputs*)
+ (check (concatenate 'string name ":original-byte-exact") (equalp actual expected))
+ (check (concatenate 'string name ":pure") (equal before (public-state map)))
+ (check (concatenate 'string name ":deterministic") (equalp actual (topic-maps.cxtm:canonicalize-octets map :base-locator iri)))
+ (check (concatenate 'string name ":topic-count") (= (length (topic-map-topics map))
+ (cond ((member name '("empty" "itemid-tm") :test #'equal) 0) ((member name '("topic-type" "topic-type-duplicate") :test #'equal) 5) (t 1))))
+ (check (concatenate 'string name ":association-count") (= (length (topic-map-associations map))
+ (if (member name '("topic-type" "topic-type-duplicate") :test #'equal) 1 0)))
+ (when (equal name "topic")
+ (check "topic:actual-item-locator" (equal (topic-item-identifiers (first (topic-map-topics map))) (list (concatenate 'string iri "#topic")))))
+ (when (equal name "itemid-tm")
+ (check "map:actual-item-locator" (equal (item-identifiers map) (list (concatenate 'string iri "#the-topic-map")))))
+ (when (equal name "merge-three-way")
+ (check "merge:three-identifiers" (= 3 (length (topic-item-identifiers (first (topic-map-topics map)))))))
+ (when (member name '("topic-type" "topic-type-duplicate") :test #'equal)
+ (let ((*document* iri)) (graph-checks name map (by-id map "xtm") (by-id map "format"))))))
+ (setf *cases* (nreverse *cases*) *outputs* (nreverse *outputs*)))
+
+(defun semantic-tests ()
+ (dolist (body '("<topic id='a'><instanceOf><topicRef href='#b'/></instanceOf></topic><topic id='b'/>"
+ "<topic id='b'/><topic id='a'><instanceOf><topicRef href='#b'/></instanceOf></topic>"))
+ (let ((map (read-body body)))
+ (graph-checks (if (search "id='b'/>" body :start2 0 :end2 (min 20 (length body))) "backward" "forward") map (by-id map "a") (by-id map "b"))))
+ (let* ((map (read-body "<topic id='type'><subjectIdentifier href='#si'/></topic><topic id='a'><instanceOf><topicRef href='#si'/></instanceOf></topic>"))
+ (type (by-id map "type")))
+ (graph-checks "si-hit" map (by-id map "a") type)
+ (check "si-hit:no-extra-ii" (equal (topic-item-identifiers type) (list (concatenate 'string *document* "#type")))))
+ (let* ((map (read-body "<topic id='a'><instanceOf><topicRef href='#si'/></instanceOf></topic><topic id='type'><subjectIdentifier href='#si'/></topic>"))
+ (type (by-id map "type")))
+ (graph-checks "forward-si" map (by-id map "a") type)
+ (check "forward-si:created-ii-retained" (= 2 (length (topic-item-identifiers type)))))
+ (let* ((map (read-body "<topic id='type'><itemIdentity href='#alias'/></topic><topic id='a'><instanceOf><topicRef href='#alias'/><topicRef href='#type'/></instanceOf></topic>"))
+ (type (by-id map "type")))
+ (graph-checks "ii-hit" map (by-id map "a") type)
+ (check "ii-hit:identifiers-unchanged" (= 2 (length (topic-item-identifiers type)))))
+ (let* ((map (make-topic-map)) (si (intern-topic map :subject-identifier (concatenate 'string *document* "#s")))
+ (hit (topic-maps.xtm::find-reference-topic map (concatenate 'string *document* "#s"))))
+ (check "direct-si:actual-eq" (eq si hit))
+ (check "direct-si:no-ii" (null (topic-item-identifiers si))))
+ ;; Retain the exact object produced by a forward reference, then deserialize
+ ;; a later declaration with the same reader operation in the same context.
+ (let* ((map (make-topic-map))
+ (old (topic-maps.xtm::find-reference-topic map (concatenate 'string *document* "#future")))
+ (other (intern-topic map :subject-identifier "urn:shared"))
+ (a (make-association map (core-topic-for-test map "type-instance")
+ (list (list (core-topic-for-test map "instance") old) (list (core-topic-for-test map "type") other))))
+ (role (find old (association-roles a) :key #'association-role-player :test #'eq)))
+ (let* ((topic-maps.xtm::*document-iri* *document*) (topic-maps.xtm::*source-key* "retained-forward")
+ (root (topic-maps.xml:parse-octets
+ (bytes (document "<topic id='future'><subjectIdentifier href='urn:shared'/></topic>"))
+ (make-instance 'topic-maps.xtm::source-handler))))
+ (topic-maps.xtm::validate-source root)
+ (topic-maps.xtm::read-topic (first (topic-maps.xtm::elements root)) map))
+ (check "retained:forward-handle-eq" (and (eq (canonical-topic old) (canonical-topic other)) (not (eq old (canonical-topic old)))))
+ (check "retained:role-player-canonical" (eq (association-role-player role) (canonical-topic old)))
+ (check "retained:role-parent-canonical" (eq (association-role-parent role) (canonical-association a)))
+ (let ((before (public-state map)) (pointer (topic-maps.tmdm::%topic-forward old)))
+ (topic-maps.cxtm:canonicalize map :base-locator *document*)
+ (check "retained:cxtm-does-not-mutate" (and (equal before (public-state map)) (eq pointer (topic-maps.tmdm::%topic-forward old))))))
+ (let ((a (read-body "<topic id='same'/>") ) (b (read-body "<topic id='same'/>" "https://other.example/map.xtm")))
+ (check "documents:distinct-object" (not (eq (first (topic-map-topics a)) (first (topic-map-topics b)))))
+ (check "documents:distinct-local-locators" (not (equal (topic-item-identifiers (first (topic-map-topics a))) (topic-item-identifiers (first (topic-map-topics b)))))))
+ (let ((map (read-body "<topic id='a'><subjectLocator href='resource'/><subjectIdentifier href='urn:subject'/><itemIdentity href='#alias'/></topic>")))
+ (check "identity:three-categories" (let ((topic (first (topic-map-topics map))))
+ (and (= 2 (length (topic-item-identifiers topic)))
+ (equal '("urn:subject") (topic-subject-identifiers topic))
+ (equal (list (concatenate 'string (subseq *document* 0 (1+ (position #\/ *document* :from-end t))) "resource")) (topic-subject-locators topic))))))
+ (let ((map (read-body "<topic id=' Ä水 '><subjectIdentifier href='http://example.org/%C3%A4/%F0%9F%A6%8A'/></topic>")))
+ (check "unicode:id-collapse" (by-id map "Ä水"))
+ (check "unicode:href-percent-utf8" (equal '("http://example.org/ä/🦊") (topic-subject-identifiers (first (topic-map-topics map))))))
+ (dolist (pair '(("../folder/./x#t" "https://example.test/folder/x#t")
+ ("#t" "https://example.test/a/map.xtm#t")
+ ("?q#t" "https://example.test/a/map.xtm?q#t")
+ ("http://EXAMPLE.test:80/a" "http://EXAMPLE.test:80/a")
+ ("http://example.test/a%20b#t" "http://example.test/a b#t")))
+ (let ((topic-maps.xtm::*document-iri* *document*) (topic-maps.xtm::*source-key* "iri-test"))
+ (check (concatenate 'string "iri:" (first pair))
+ (equal (topic-maps.xtm::resolve-iri (first pair) "https://example.test/a/map.xtm" nil) (second pair)))))
+ (let* ((source (document "<topic id='a'/><topic id='b'><instanceOf><topicRef href='#a'/></instanceOf></topic>"))
+ (one (read-body "<topic id='a'/><topic id='b'><instanceOf><topicRef href='#a'/></instanceOf></topic>"))
+ (two (read-body "<topic id='b'><instanceOf><topicRef href='#a'/></instanceOf></topic><topic id='a'/>")))
+ (check "order:canonical-independence" (equal (topic-maps.cxtm:canonicalize one :base-locator *document*) (topic-maps.cxtm:canonicalize two :base-locator *document*)))
+ (dolist (spec '((:utf-8 t "UTF-8") (:utf-16le t "UTF-16") (:utf-16be t "UTF-16")
+ (:utf-16le nil "UTF-16LE") (:utf-16be nil "UTF-16BE")))
+ (destructuring-bind (encoding bom label) spec
+ (let* ((xml (format nil "<?xml version='1.0' encoding='~A'?>~A" label source))
+ (map (deserialize-octets (bytes xml encoding bom) :document-iri *document*)))
+ (check (format nil "encoding:~A:~A" encoding bom) (equal (topic-maps.cxtm:canonicalize one :base-locator *document*) (topic-maps.cxtm:canonicalize map :base-locator *document*))))))))
+(defun core-topic-for-test (map name)
+ (intern-topic map :subject-identifier (concatenate 'string "http://psi.topicmaps.org/iso13250/model/" name)))
+
+(defun identity-cascade-tests ()
+ (let ((map (read-body "<topic id='a'><subjectIdentifier href='urn:one'/></topic><topic id='b'><subjectIdentifier href='urn:two'/></topic><topic id='c'><itemIdentity href='#a'/><subjectIdentifier href='urn:two'/></topic>")))
+ (check "transitive:mixed-identifiers-one-topic" (= 1 (length (topic-map-topics map))))
+ (check "transitive:three-ii-two-si" (let ((topic (first (topic-map-topics map))))
+ (and (= 3 (length (topic-item-identifiers topic))) (= 2 (length (topic-subject-identifiers topic)))))))
+ (let* ((map (read-body "<topic id='s'><subjectLocator href='#x'/></topic><topic id='a'><instanceOf><topicRef href='#x'/></instanceOf></topic>"))
+ (s (by-id map "s")) (x (by-id map "x")))
+ (check "reference:subject-locator-is-not-si-or-ii" (and s x (not (eq s x)) (= 6 (length (topic-map-topics map))))))
+ (let* ((map (make-topic-map)) (topic-maps.xtm::*document-iri* *document*)
+ (topic-maps.xtm::*source-key* "association-cascade")
+ (root (topic-maps.xml:parse-octets
+ (bytes (document "<topic id='a'><instanceOf><topicRef href='#t1'/><topicRef href='#t2'/></instanceOf></topic><topic id='t1'><itemIdentity href='#t2'/></topic>"))
+ (make-instance 'topic-maps.xtm::source-handler)))
+ (nodes (topic-maps.xtm::elements (topic-maps.xtm::validate-source root))))
+ (topic-maps.xtm::read-topic (first nodes) map)
+ (let* ((associations (topic-map-associations map))
+ (roles (loop for a in associations append (association-roles a)))
+ (old-type (by-id map "t2")))
+ (check "cascade:before-two-associations" (= 2 (length associations)))
+ (topic-maps.xtm::read-topic (second nodes) map)
+ (let ((a (first (topic-map-associations map))))
+ (check "cascade:after-one-association" (and (= 1 (length (topic-map-associations map))) (= 2 (length (association-roles a)))))
+ (check "cascade:retained-association-handles-eq" (every (lambda (old) (eq a (canonical-association old))) associations))
+ (check "cascade:retained-role-handles-eq" (every (lambda (r) (member (canonical-association-role r) (association-roles a) :test #'eq)) roles))
+ (check "cascade:stored-type-player-canonical" (every (lambda (r) (and (eq a (association-role-parent r))
+ (eq (association-role-type r) (canonical-topic (association-role-type r)))
+ (eq (association-role-player r) (canonical-topic (association-role-player r))))) (association-roles a)))
+ (check "cascade:retained-topic-handle-eq" (eq (canonical-topic old-type) (by-id map "t1")))
+ (let* ((handles (append associations roles (list old-type)))
+ (pointers (mapcar #'topic-maps.tmdm::canonical-item handles))
+ (before (public-state map)))
+ (topic-maps.cxtm:canonicalize map :base-locator *document*)
+ (check "cascade:all-handles-pure" (and (equal before (public-state map))
+ (every #'eq pointers (mapcar #'topic-maps.tmdm::canonical-item handles))))))))
+ (let* ((prefixed "<x:topicMap xmlns:x='http://www.topicmaps.org/xtm/' version='2.0'><x:topic id='a'/></x:topicMap>")
+ (source (bytes prefixed))
+ (a (deserialize-octets source :document-iri *document* :source-key "disk:a"))
+ (b (deserialize-octets source :document-iri *document* :source-key "memory:b")))
+ (check "namespace:prefix-equivalent" (by-id a "a"))
+ (check "source-key:not-topic-identity" (equal (topic-item-identifiers (by-id a "a")) (topic-item-identifiers (by-id b "a")))))
+ (let* ((map (read-body "<topic id='a'><instanceOf><topicRef href='https://external.example/map.xtm#unfetched'/></instanceOf></topic>"))
+ (type (find-if (lambda (topic) (member "https://external.example/map.xtm#unfetched" (topic-item-identifiers topic) :test #'equal)) (topic-map-topics map))))
+ (graph-checks "external-reference:no-retrieval" map (by-id map "a") type)))
+
+(defun negative-tests ()
+ (dolist (spec '(("missing-id" "<topic/>" :missing-id)
+ ("invalid-id" "<topic id='2bad'/>" :invalid-id)
+ ("id-colon" "<topic id='a:b'/>" :invalid-id)
+ ("id-empty" "<topic id=''/>" :invalid-id)
+ ("id-spaces" "<topic id='a b'/>" :invalid-id)
+ ("duplicate-id" "<topic id='a'/><topic id=' a '/>" :duplicate-id)
+ ("unknown-attribute" "<topic id='a' other='v'/>" :unexpected-attribute)
+ ("qualified-attribute" "<topic xmlns:x='urn:x' x:id='a'/>" :unexpected-attribute)
+ ("unknown-element" "<topic id='a'><garbage/></topic>" :unexpected-element)
+ ("wrong-namespace-child" "<topic xmlns='urn:other' id='a'/>" :invalid-namespace)
+ ("topic-identity-order" "<topic id='a'><instanceOf><topicRef href='#b'/></instanceOf><itemIdentity href='#c'/></topic>" :element-order)
+ ("map-identity-order" "<topic id='a'/><itemIdentity href='#map'/>" :element-order)
+ ("instance-duplicate" "<topic id='a'><instanceOf><topicRef href='#b'/></instanceOf><instanceOf><topicRef href='#b'/></instanceOf></topic>" :duplicate-instance-of)
+ ("empty-instance" "<topic id='a'><instanceOf/></topic>" :empty-instance-of)
+ ("missing-href" "<topic id='a'><subjectIdentifier/></topic>" :missing-attribute)
+ ("nonempty-locator" "<topic id='a'><subjectIdentifier href='urn:s'><topic/></subjectIdentifier></topic>" :unexpected-child)
+ ("locator-text" "<topic id='a'><subjectIdentifier href='urn:s'>text</subjectIdentifier></topic>" :unexpected-text)
+ ("non-whitespace" "text" :unexpected-text)
+ ("no-ref-fragment" "<topic id='a'><instanceOf><topicRef href='other.xtm'/></instanceOf></topic>" :invalid-topic-ref)
+ ("bad-ref-fragment" "<topic id='a'><instanceOf><topicRef href='#2bad'/></instanceOf></topic>" :invalid-topic-ref)
+ ("empty-ref-fragment" "<topic id='a'><instanceOf><topicRef href='#'/></instanceOf></topic>" :invalid-topic-ref)
+ ("xpointer-ref" "<topic id='a'><instanceOf><topicRef href='#xpointer(a)'/></instanceOf></topic>" :invalid-topic-ref)
+ ("relative-colon" "<topic id='a'><subjectIdentifier href='1bad:subject'/></topic>" :invalid-iri)
+ ("decoded-control" "<topic id='a'><subjectIdentifier href='urn:%00'/></topic>" :invalid-iri)
+ ("bad-percent" "<topic id='a'><subjectIdentifier href='urn:%GG'/></topic>" :invalid-percent-escape)
+ ("bad-percent-utf8" "<topic id='a'><subjectIdentifier href='urn:%C3%28'/></topic>" :invalid-percent-utf8)
+ ("invalid-iri" "<topic id='a'><subjectIdentifier href='urn:a b'/></topic>" :invalid-iri)))
+ (rejection (first spec) (document (second spec)) 'xtm-rejection (third spec)))
+ (rejection "missing-version" "<topicMap xmlns='http://www.topicmaps.org/xtm/'/>" 'xtm-rejection :missing-attribute)
+ (rejection "version-21" "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.1'/>" 'xtm-rejection :invalid-version)
+ (rejection "no-namespace" "<topicMap version='2.0'/>" 'xtm-rejection :invalid-namespace)
+ (rejection "namespace-10" "<topicMap xmlns='http://www.topicmaps.org/xtm/1.0/' version='2.0'/>" 'xtm-rejection :invalid-namespace)
+ (rejection "xml-misnested" "<a><b></a>" 'xtm-xml-error :xml-not-well-formed)
+ (rejection "xml-duplicate-attribute" "<topicMap version='2.0' version='2.0'/>" 'xtm-xml-error :xml-not-well-formed)
+ (rejection "xml-undeclared-prefix" "<x:topicMap/>" 'xtm-xml-error :xml-not-well-formed)
+ (dolist (body '("<!DOCTYPE topicMap>" "<!DOCTYPE topicMap SYSTEM 'file:///tmp/no-xtm-file'>"
+ "<!DOCTYPE topicMap SYSTEM 'http://127.0.0.1:9/no-xtm-network'>"
+ "<!DOCTYPE topicMap [<!ENTITY e SYSTEM 'file:///tmp/no-xtm-file'>]>"))
+ (rejection (concatenate 'string "doctype:" body) (concatenate 'string body (document "")) 'xtm-xml-error :doctype-forbidden))
+ (dolist (spec '(("unsupported-name" "<topic id='a'><name><value>Name</value></name></topic>" :unsupported-construct)
+ ("unsupported-occurrence" "<topic id='a'><occurrence><type><topicRef href='#t'/></type><resourceData>v</resourceData></occurrence></topic>" :unsupported-construct)
+ ("unsupported-association" "<association><type><topicRef href='#t'/></type><role><type><topicRef href='#r'/></type><topicRef href='#p'/></role></association>" :unsupported-construct)
+ ("unsupported-mergemap" "<mergeMap href='other.xtm'/>" :unsupported-construct)))
+ (rejection (first spec) (document (second spec)) 'xtm-unsupported (third spec)))
+ (rejection "unsupported-reifier" "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0' reifier='#r'/>" 'xtm-unsupported :reification)
+ (let ((c (condition-from (lambda () (read-body (format nil "~%~%<topic id='2bad'/>"))))))
+ (check "diagnostic:multiline-observed-position" (and (typep c 'xtm-rejection) (= 3 (error-line c)) (plusp (error-column c)))))
+ (dolist (iri '(nil "relative.xtm" "https://example.test/a#fragment"))
+ (let ((c (condition-from (lambda () (deserialize-octets (bytes (document "")) :document-iri iri :source-key "document")))))
+ (check (format nil "document-iri:~S" iri) (and (typep c 'xtm-rejection) (eq (error-code c) :invalid-document-iri)))))
+ (check "api:raw-bytes-required" (typep (condition-from (lambda () (deserialize-octets (document "") :document-iri *document*))) 'type-error))
+ (let* ((source "<itemIdentity href='#a'/><topic id='a'/>")
+ (c (condition-from (lambda () (read-body source)))))
+ (check "tmdm:identifier-conflict-not-xml-or-xtm" (and (typep c 'item-identifier-error) (not (typep c 'topic-maps.xtm:xtm-error))))
+ (check "tmdm:identifier-conflict-specific" (eq (item-identifier-error-code c) :duplicate-item-identifier)))
+ (let ((c (condition-from (lambda () (read-body "<topic id='a'><subjectIdentifier href='http://psi.topicmaps.org/iso13250/model/type'/><subjectIdentifier href='http://psi.topicmaps.org/iso13250/model/instance'/></topic>")))))
+ (check "tmdm:core-subject-conflict-preserved" (and (typep c 'core-subject-error) (eq :core-subject-conflict (core-subject-error-code c)))))
+ (dolist (bad '(#(195 40) #(192 175) #(226 130) #(237 160 128)))
+ (let ((c (condition-from (lambda () (deserialize-octets
+ (concatenate '(vector (unsigned-byte 8)) (bytes "<topicMap xmlns='http://www.topicmaps.org/xtm/' version='2.0'><topic id='a'><subjectIdentifier href='urn:")
+ (coerce bad '(vector (unsigned-byte 8))) (bytes "'/></topic></topicMap>")) :document-iri *document*)))))
+ (check (format nil "actual-reader:invalid-utf8:~S" bad) (and (typep c 'xtm-xml-error) (eq :xml-not-well-formed (error-code c))))))
+ ;; Astral Unicode in an href exercises the qualified UTF-16 decoder through
+ ;; the real XTM reader. No pre-decoding strings are accepted by its API.
+ (dolist (encoding '(:utf-16le :utf-16be))
+ (let ((map (deserialize-octets (bytes (document "<topic id='a'><subjectIdentifier href='urn:🦊'/></topic>") encoding t) :document-iri *document*)))
+ (check (format nil "actual-reader:astral-surrogate:~A" encoding) (by-si map "urn:🦊"))))
+ (dolist (bad '(#(0 216) #(0 220) #(0 216 65 0)))
+ (let ((c (condition-from (lambda ()
+ (deserialize-octets (concatenate '(vector (unsigned-byte 8))
+ (bytes "<r>" :utf-16le t) (coerce bad '(vector (unsigned-byte 8))) (bytes "</r>" :utf-16le)) :document-iri *document*)))))
+ (check (format nil "actual-reader:invalid-surrogate:~S" bad) (typep c 'xtm-xml-error))))
+ ;; Verify the required entry point is actually called exactly once and sees
+ ;; the original octet vector by EQ, not a reconstructed decoded XML string.
+ (let* ((original (symbol-function 'topic-maps.xml:parse-octets))
+ (source (bytes (document "<topic id='a'/>"))) (calls 0) (same nil))
+ (unwind-protect
+ (progn (setf (symbol-function 'topic-maps.xml:parse-octets)
+ (lambda (bytes handler) (incf calls) (setf same (eq source bytes)) (funcall original bytes handler)))
+ (deserialize-octets source :document-iri *document*)
+ (check "boundary:real-parse-octets-only-once" (and (= 1 calls) same)))
+ (setf (symbol-function 'topic-maps.xml:parse-octets) original))))
+
+(defun helper-source-test ()
+ (let* ((id "ctm/in/mergemap-xtm.sub")
+ (iri (concatenate 'string "https://xtm-tests.example.invalid/cd165b150176c1d6842b37be9cc9051b40d4996b/" id))
+ (*document* iri) (map (deserialize-octets (file-bytes (corpus-path id)) :document-iri iri :source-key id)))
+ (graph-checks "direct-sub" map (by-id map "lars") (by-id map "person"))
+ (check "direct-sub:exact-lars-ii" (equal (list (concatenate 'string iri "#lars")) (topic-item-identifiers (by-id map "lars"))))
+ (check "direct-sub:exact-person-ii" (equal (list (concatenate 'string iri "#person")) (topic-item-identifiers (by-id map "person"))))
+ (check "direct-sub:no-names-occurrences" (every (lambda (topic) (and (null (topic-names topic)) (null (topic-occurrences topic)))) (topic-map-topics map)))
+ (setf *fixture* map)))
+
+(defun run-tests ()
+ (setf *checks* nil *fixture* nil)
+ (original-contracts) (semantic-tests) (identity-cascade-tests) (negative-tests) (helper-source-test)
+ (check "checks:unique-test-names" (= (length *checks*) (length (remove-duplicates *checks* :test #'equal))))
+ (format t "XTM-SUMMARY ~D PASS 0 FAIL; 6 original CXTM PASS; helper source PASS~%" (length *checks*))
+ (length *checks*))
+
+(defun write-report (pathname)
+ (let ((cases *cases*) (fixture *fixture*))
+ (flet ((fields (&rest args) (apply #'topic-maps.test-foundation::fields args))
+ (array (items) (coerce items 'vector)))
+ (with-open-file (out pathname :direction :output :if-exists :supersede :external-format :utf-8)
+ (topic-maps.test-foundation::emit-json-value
+ (fields "scope" "XTM 2.0 identity subset, six registered positive contracts only; no CTM Mergemap integration"
+ "corpusCommit" "cd165b150176c1d6842b37be9cc9051b40d4996b"
+ "statuses" (fields "pass" (count :pass cases :key #'topic-maps.test-foundation:test-case-status)
+ "fail" (count :fail cases :key #'topic-maps.test-foundation:test-case-status)
+ "unsupported" 0 "not-run" 0)
+ "otherCorpusInputs" (fields "positiveUnexecuted" (- (length (directory (corpus-path "xtm2/in/*.xtm"))) (length cases))
+ "negativeUnregisteredUnexecuted" (length (directory (corpus-path "xtm2/invalid/*.xtm"))))
+ "checks" (array (reverse *checks*))
+ "cases" (array (loop for case in cases collect
+ (fields "id" (topic-maps.test-foundation:test-case-id case)
+ "documentIRI" (topic-maps.test-foundation:test-case-document-iri case)
+ "status" (string-downcase (symbol-name (topic-maps.test-foundation:test-case-status case)))
+ "actualOutcome" (string-downcase (symbol-name (topic-maps.test-foundation:test-case-actual-outcome case)))
+ "diagnostics" (array (topic-maps.test-foundation:test-case-diagnostics case)))))
+ "helperSource" (fields "id" "ctm/in/mergemap-xtm.sub" "status" "pass" "topics" (length (topic-map-topics fixture))
+ "associations" (length (topic-map-associations fixture)) "roles" 2
+ "ctmMergemapContract" "NOT-RUN; direct helper deserialization only")
+ "actualAndExpected" (array (loop for (id actual expected) in *outputs* collect
+ (fields "id" id "actual" (babel:octets-to-string actual :encoding :utf-8)
+ "expected" (babel:octets-to-string expected :encoding :utf-8) "byteLength" (length actual))))) out)
+ (terpri out)))))
:perform (asdf:test-op (operation component)
(declare (ignore operation component))
(uiop:symbol-call :topic-maps.include.tests :run-tests)))
+
+(asdf:defsystem "topic-maps/xtm"
+ :description "XTM 2.0 identity/instanceOf subset using the qualified XML byte boundary"
+ :version "0.19.1" :license "MIT" :depends-on ("topic-maps/tmdm" "topic-maps/xml") :serial t
+ :components ((:file "src/xtm/package") (:file "src/xtm/iri") (:file "src/xtm/reader"))
+ :in-order-to ((asdf:test-op (asdf:test-op "topic-maps/xtm/tests"))))
+
+(asdf:defsystem "topic-maps/xtm/tests"
+ :description "Separate XTM identity model checks and six original CXTM contracts"
+ :depends-on ("topic-maps/xtm" "topic-maps/cxtm" "topic-maps") :serial t
+ :components ((:file "tests/xtm-identity"))
+ :perform (asdf:test-op (operation component)
+ (declare (ignore operation component))
+ (uiop:symbol-call :topic-maps.xtm.tests :run-tests)))