@inventarch/db 3.7.0 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -66,7 +66,7 @@ The `./internal/*` subpaths serve specific toolchain consumers and are not a sta
66
66
 
67
67
  - **It never writes authored source.** Its only writes are the disposable cache, which `cache: false` turns off, and the capture pair and evidence files, each only when you call its writer.
68
68
  - **It makes no network request and no installation write.** Reads verify installed distributions and refuse missing, corrupt or drifted state. Acquiring and installing archives belongs to the application, such as the `ia` CLI.
69
- - **Admission is not evaluation.** Opening a workspace runs no conformance suite unless you pass `conformance: 'verify'`, which runs `@inventarch/compliance`'s `package-v1` profile in the same process, and never a prose case. `bindChecks` runs no evaluator that is not built in: such a check stays `not-evaluated`, which is never a pass.
69
+ - **Admission is not evaluation.** Opening a workspace runs no conformance suite unless you pass `conformance: 'verify'`, which runs `@inventarch/compliance`'s `package` profile in the same process, and never a prose case. `bindChecks` runs no evaluator that is not built in: such a check stays `not-evaluated`, which is never a pass.
70
70
  - **A scope narrows reads; it does not decide who reads.** Unscoped reads and issuing independent scopes are privileged host inspection, and the host that holds the handle decides what it discloses. Call `isCompleteScope(token)` before you show `report`, `refused` or `unadmitted` to a reader: only a whole-workspace scope may disclose them.
71
71
  - **Evidence is not attestation.** A runner journal's hash chain establishes internal integrity, not an external observer, authorized execution or real-world effects.
72
72
 
package/SPEC.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  `tests/check-evidence.test.ts` pins D13's exact scope selection against both ancestor and descendant scopes and lexical prefixes. A matching verdict passes alone even when its neighboring scopes fail; without the exact scope, the result remains not-evaluated.
4
4
 
5
- `safePath` locates a symlink or junction refusal at the first unsafe workspace-relative component it encounters. Evidence writers preserve that location, so recovery can replace the workspace link itself instead of acting on a child through its external target. The walk stops before traversing the refused component; the existing read-only evidence behavior remains unchanged.
5
+ `safePath` locates a symlink or junction refusal at the first unsafe workspace-relative component it encounters. Evidence writers preserve that location, so recovery can replace the workspace link itself instead of acting on a child through its external target. The walk stops before traversing the refused component; the existing read-only evidence behavior remains unchanged. The corpus source walk (D01) lstats each folder once per walk rather than once per read, and after it reads a source it checks that the source's final path is the workspace's final path joined with the source's own path. If a folder on the way was replaced by a link or junction since the walk vetted it, the walk refuses IA-DB-PATH-UNSAFE at the first such folder. A read through a replaced parent folder used to pass the post-read identity check, because the name and the opened file resolved through the same junction (`tests/vetted-walk.test.ts`). The walk also checks that the file at that final path is the file it opened, by device and inode; when it is not, the name passed to another file or to nothing once the file was opened, and line 9 says what the walk does then.
6
6
 
7
7
  Opened reads (2026-10-20): every db reader that opens a name before it judges what is there (the installed-distribution reader, the `.ia/workspace.json` manifest reader, package source capture, `readWorkspaceBytes`, `readEvidence` and, since 2026-10-21, the corpus source walk and the capture pair reader) opens it so that a terminal device put at the name cannot become the process's controlling terminal (`O_NOCTTY`, where the platform has that flag); the device is then judged as any other entry that is not a regular file. They all open with one internal flags constant (`OPENED_READ_FLAGS` in `src/named.ts`), so a flag cannot reach one reader and miss another.
8
8
 
9
- Opened corpus and capture reads (2026-10-21): the corpus source walk (D01) and the capture pair reader (`readCapture`, `planCapture` and `writeCapture`, D08a) no longer read by name a file they checked. Each opens the name it checked with those flags (read-only, no-follow, non-blocking, no controlling terminal, each where the platform has it), judges what opened, reads a regular file through that descriptor as before, and closes it on every path. A FIFO put at the name after the check is not waited on, and a terminal there does not become the controlling terminal. What opens that is not a regular file is refused: a corpus source as IA-DB-SOURCE-UNAVAILABLE `Cannot read exact UTF-8 source <path>: not a regular file`, a capture file as IA-DB-PATH-UNSAFE `<path> is not a regular file` with that `path`, which `readCapture` ignores. When the open fails, the name is judged instead: a final link, which the no-follow flag refuses, is IA-DB-PATH-UNSAFE, `Source alias is not admitted: <path>` for a corpus source and the `safePath` link refusal for a capture file; another entry that is not a regular file is refused as one that opens; and a missing name, or a regular file that does not open, answers with the open's error, which each reader handles as before (the walk's IA-DB-SOURCE-CHANGED or IA-DB-SOURCE-UNAVAILABLE `Cannot read exact UTF-8 source`; for `planCapture` and `writeCapture`, the filesystem error itself). A regular file's bytes, and every result for a name that is still a regular file when it is opened, are unchanged, a file that grows, shrinks or is renamed over before the open included. Where the platform has no no-follow flag (Windows), the open follows a final link, so each reader then checks, once it has read the file and while it still holds it, that the name still names that file, as package source capture does (`OPENS_THROUGH_LINKS` in `src/named.ts`): a name that is now a link gets the link refusal above, and one that names nothing or another file is IA-DB-SOURCE-CHANGED `Source replaced during read: <path>` for a corpus source and, for a capture file, the `entryAt` refusal of what is there or else IA-DB-PATH-UNSAFE `<path> changed while it was read` with that `path`. `tests/inputs.test.ts` and `tests/retention.test.ts` pin the read through the descriptor and its close after a read, after a failed one and after a refusal, a directory, a FIFO and a socket swapped in as the name is opened, with no open waiting on a writer and nothing written, a link swapped in the same way, the bytes kept where the open refuses links and a name passes to another file once it is opened, and the flags of each open. `tests/open-follows-links.test.ts` loads the readers with no no-follow flag and pins the identity check: a link swapped in as the name is opened, and a name that names another file, nothing or another device once the file is read.
9
+ Opened corpus and capture reads (2026-10-21): the corpus source walk (D01) and the capture pair reader (`readCapture`, `planCapture` and `writeCapture`, D08a) no longer read by name a file they checked. Each opens the name it checked with those flags (read-only, no-follow, non-blocking, no controlling terminal, each where the platform has it), judges what opened, reads a regular file through that descriptor as before, and closes it on every path. A FIFO put at the name after the check is not waited on, and a terminal there does not become the controlling terminal. What opens that is not a regular file is refused: a corpus source as IA-DB-SOURCE-UNAVAILABLE `Cannot read exact UTF-8 source <path>: not a regular file`, a capture file as IA-DB-PATH-UNSAFE `<path> is not a regular file` with that `path`, which `readCapture` ignores. When the open fails, the name is judged instead: a final link, which the no-follow flag refuses, is IA-DB-PATH-UNSAFE, `Source alias is not admitted: <path>` for a corpus source and the `safePath` link refusal for a capture file; another entry that is not a regular file is refused as one that opens; and a missing name, or a regular file that does not open, answers with the open's error, which each reader handles as before (the walk's IA-DB-SOURCE-CHANGED or IA-DB-SOURCE-UNAVAILABLE `Cannot read exact UTF-8 source`; for `planCapture` and `writeCapture`, the filesystem error itself). A regular file's bytes, and every result for a name that is still a regular file when it is opened, are unchanged, a file that grows, shrinks or is renamed over before the open included. Where the platform has no no-follow flag (Windows), the open follows a final link, so each reader then checks, once it has read the file and while it still holds it, that the name still names that file, as package source capture does (`OPENS_THROUGH_LINKS` in `src/named.ts`): a name that is now a link gets the link refusal above, and one that names nothing or another file is IA-DB-SOURCE-CHANGED `Source replaced during read: <path>` for a corpus source and, for a capture file, the `entryAt` refusal of what is there or else IA-DB-PATH-UNSAFE `<path> changed while it was read` with that `path`. Where the open refuses links, the corpus walk checks the same once it has read a source (line 5): on Linux, where the descriptor says which file it holds (`/proc/self/fd`), a source whose name another file was renamed over, or which was removed, once it was opened keeps the bytes read, as before; where the platform cannot say (macOS, or a Linux without /proc), that cannot be told from a folder swapped away and back, so it is IA-DB-SOURCE-CHANGED `Source replaced during read: <path>`, as on Windows. A removed source keeps its bytes only when the descriptor shows it has no name left: one removed while another hard link to it remains, or on a filesystem that does not report a removed open file that way (NFS, some FUSE and 9p mounts), is refused the same way. `tests/inputs.test.ts` and `tests/retention.test.ts` pin the read through the descriptor and its close after a read, after a failed one and after a refusal, a directory, a FIFO and a socket swapped in as the name is opened, with no open waiting on a writer and nothing written, a link swapped in the same way, on Linux the bytes kept where a name passes to another file or to nothing once it is opened, and the refusal where the descriptor cannot say what it holds, and the flags of each open. `tests/open-follows-links.test.ts` loads the readers with no no-follow flag and pins the identity check: a link swapped in as the name is opened, and a name that names another file, nothing or another device once the file is read.
10
10
 
11
11
  ## Runner journal evidence
12
12
 
@@ -32,7 +32,7 @@ The public `@inventarch/db/descriptors` entrypoint owns the pure, bounded, versi
32
32
 
33
33
  The public `@inventarch/db/distribution` entrypoint owns strict version-1 transport decoders and canonical bytes for release descriptors/manifests, portable locks, generation membership and activation pointers. JSON rejects duplicate decoded keys and unknown fields; object input must be bounded plain data without accessors or aliases. Native parsing stays in language. Package IDs are provider-qualified lowercase `provider/name`; versions and ranges use pinned SemVer. `commonRange(a, b)` returns a range accepting exactly what both ranges accept, or null when it cannot write one: the narrower of two nested ranges as spelled when it admits no prerelease, otherwise the sorted conjunction of their comparators, and null for a prerelease in a conjunction or a result past the 256-character range limit. No absolute path or credential enters a portable lock. Metadata limits are 4 MiB, 128 selected bundles and 10,000 files, beside separate archive/file ceilings. Decoding copies and freezes output. A release descriptor's `distribution` is its one optional key (2026-10-09): a workspace that releases nothing, as one a default `ia init` creates, omits it, and the decoded `ReleaseDescriptor` then has no `distribution` property; present, it must still be a native distribution identity, never null. A bundle manifest always carries one, and its decoded keys keep their order, so canonical bytes are unchanged.
34
34
 
35
- The same entrypoint shapes the installed-implementation catalog a host payload carries: `checkInstalledImplementations(value)` admits exactly `format` `ia.installed-implementations.v1`, an `evaluators` section with an `ia-evaluator-catalog/1.x` format and at most 1,024 entries, and at most 1,024 `operations` sorted by id and unique, each `available` (id, version, operation identity, handler, input and output validator ids, a portable `runtime/node_modules/...` handler module inside one of its sorted `packages`, and the module's SHA-256), `unavailable` or `revoked` with a single-line reason, and returns the value or the first reason it is not one; it reads, loads and executes nothing. `@inventarch/distribution` verifies a catalog against its payload with it and `@inventarch/workspace-runtime` binds records against its rows (`InstalledOperation`).
35
+ The same entrypoint shapes the installed-implementation catalog a host payload carries: `checkInstalledImplementations(value)` admits exactly `format` `ia.installed-implementations.v1`, an `evaluators` section with either the current `evaluator-catalog` format and an integer `formatVersion` or the legacy `ia-evaluator-catalog/1.x` format (no `formatVersion`) and at most 1,024 entries, and at most 1,024 `operations` sorted by id and unique, each `available` (id, version, operation identity, handler, input and output validator ids, a portable `runtime/node_modules/...` handler module inside one of its sorted `packages`, and the module's SHA-256), `unavailable` or `revoked` with a single-line reason, and returns the value or the first reason it is not one; it reads, loads and executes nothing. `@inventarch/distribution` verifies a catalog against its payload with it and `@inventarch/workspace-runtime` binds records against its rows (`InstalledOperation`).
36
36
 
37
37
  Generation membership enumerates selected bundle IDs/archive digests and source inventories derived from verified manifests, with deterministic identical-system deduplication and contributing-package provenance. Readers verify complete file inventory, exact canonical generation bytes and the active lock, and load only selected source bytes. `readInstalledGeneration` and `readExpandedBundle` canonicalize the root first, as `open` does, so a root reached through a link reads the same installation. Inside that root, an installed file's path is refused when a link is on the way or at its name (`Installed path traverses a link/junction`); the file is then opened read-only before it is judged, without waiting on a FIFO, and read through that descriptor. A final link put in its place meanwhile is refused: by the open's no-follow flag where the platform has one, otherwise (Windows) by the identity recheck after the read. A missing file is absent; anything but a single-link regular file within its bound is corrupt-state `Expected bounded unaliased regular file`; an unreadable one throws its filesystem error. At most its size and one byte more is read: a file that grows past its size is `Installed file grew beyond limit`, and one that changes size or links, or that its name no longer names, by the end of the read is refused as unaliased. An unpinned regular file named `.DS_Store` or `._*`, which a Mac writes into directories it opens, is skipped; a pinned one is verified like any other, and a link or special file of such a name is refused (`platformDebris`). Candidate installation is an explicit host-selected input option; it does not bypass admission or grant writes. The generated installation workspace uses native composition and direct-distribution use edges. Installed sources retain adopted band 90/methodology; generated installation state uses band 100/workspace. Active generation and monotonic counter participate in revision and scope freshness. Existing authored/adopted callers keep their behavior when no installation exists.
38
38
 
@@ -84,7 +84,7 @@ D09. get, records, referencedBy, directedView, resolveSeat, words, roots, resolv
84
84
 
85
85
  D09a. Registered words. `words(options)` on every reader returns the frozen, sorted keywords the read view's registry registers for its admitted systems, the floor's `system` and `schema` included; a keyword two systems register at the winning band is blocked and absent, and so is every word of a system admission blocked. It is the closed set a runtime scope key's `word` is checked against (runtime R14). `options` bind as `get` binds them; a scope narrows records, never the registry (a child scope that would change it refuses, D07), so every scope of a view reads the same words. Only the keywords are exposed: the registry, its registrations and its consent ledgers stay private. It adds no snapshot field, cache payload or revision input, it never reads the D08a capture pair, and the frozen Door routes do not call it.
86
86
 
87
- D10. Reports retain source/graph/compliance namespaces and original attribution. Database operational errors use IA-DB-ROOT-INVALID, PATH-UNSAFE, SOURCE-UNAVAILABLE, SOURCE-CHANGED, SCOPE-UNAVAILABLE, SCOPE-MISMATCH, STALE, CLOSED, OUT-OF-SCOPE, CACHE-UNAVAILABLE and DRAFT-INVALID (D12), the eleven codes `DB_CODES` lists. Errors are typed DbError values; cache observations are warnings. Kernel/fixture/adoption evidence stays explicitly not-evaluated when unavailable. Opening a corpus executes no conformance suite unless the reader passes `conformance: 'verify'`, which runs the compliance package's `package-v1` profile in-process (C31) and binds its evidence to the opened graph (D10a); it never executes prose cases.
87
+ D10. Reports retain source/graph/compliance namespaces and original attribution. Database operational errors use IA-DB-ROOT-INVALID, PATH-UNSAFE, SOURCE-UNAVAILABLE, SOURCE-CHANGED, SCOPE-UNAVAILABLE, SCOPE-MISMATCH, STALE, CLOSED, OUT-OF-SCOPE, CACHE-UNAVAILABLE and DRAFT-INVALID (D12), the eleven codes `DB_CODES` lists. Errors are typed DbError values; cache observations are warnings. Kernel/fixture/adoption evidence stays explicitly not-evaluated when unavailable. Opening a corpus executes no conformance suite unless the reader passes `conformance: 'verify'`, which runs the compliance package's `package` profile in-process (C31) and binds its evidence to the opened graph (D10a); it never executes prose cases.
88
88
 
89
89
  D10a. Conformance verification (2026-10-18; amends D10). `ViewOptions.conformance`, `OpenOptions.conformance` and `EditorOptions.conformance` take `verify`. With it, every view passes compliance `evaluate` its graph's own revision inputs, `{sources, languageVersion: LANGUAGE_VERSION, kernelDigest: KERNEL_DIGEST}` with D03's derived input among the sources, together with `verifyKernel(<floor>)` and `verifyFixtures()`. The floor is the sources at a `.ia/src/floor/` path and floor placement, as C31 reads it: the embedded, explicit or local floor the capture selected (D02). The verdicts, their `basis` and `Report.conformance` are exactly what `evaluate` returns, never reinterpreted: a floor whose content differs from the embedded one, line endings aside, fails COMP-KERNEL, which fails the report, and a verified fixture result names the suites the profile does not run. The revision hashes neither location nor phase, so every location and phase view binds. Evidence is built per process: the fixture profile once, and the kernel once per floor, keyed by its exact paths and texts, keeping the sixteen floors most recently used; evidence a producer could not evaluate is not kept, so a later read runs it again. A handle's `preview` drafts and `refresh`, and an editor snapshot's candidates, updates and refreshes, keep the option. Only reports change. Each view also evaluates the report it would have without the option (`View.unverified`, the same report when it does not verify), and D14 admits validation and runner evidence from that report alone, as the validate request, which does not verify, binds and records it: a verified COMP-KERNEL failure does not refuse evidence, and a whole-workspace `@check` that runs COMP-KERNEL or COMP-FIXTURES is bound for evidence as not-evaluated, so it records nothing. So admission, the evidence a view reads, the graph, `revision`, `authoredRevision`, membership, retention, the capture pair and the cache payload (D06) are the same with or without the option, and a handle opened with it reads and writes the cache as one opened without. A validate request that verifies must likewise record its evidence from the checks bound without the option, or every reader refuses that evidence. Without the option nothing new runs: no producer is called, and `evaluate` receives the options it always has, so every report is as it was. `tests/editor.test.ts` pins both checks verified for an embedded floor through an editor snapshot, a phase view, a location view, a candidate, an update, an editor refresh, a disk handle, its draft and its refresh, the cache read as a hit and, on a fresh root, written with the bytes an unverified open writes; COMP-KERNEL failing, and the report with it, for a local floor one byte away; the same evidence, revision, authored revision and records with and without the option, both for a whole-workspace check running COMP-KERNEL beside a passing one and for a report that verification fails; no producer call and both checks not-evaluated, with no `conformance`, for readers that do not ask (strict and structural editors, a disk handle, a candidate and a draft); the fixture profile run once per process and the kernel once per floor, the least recently used of seventeen floors evicted and a hit refreshed, and evidence a producer could not evaluate run again. `tests/runner-evidence.test.ts` pins the same runner evidence, revision and records with and without the option for a report that verification fails.
90
90
 
@@ -116,7 +116,7 @@ Projection integration: the public `systemMember(path)` remains the sole authore
116
116
 
117
117
  Authoring asset closure: distribution metadata permits the exact `.ia/authoring.resources.json` path only as an `asset`, and explicit `.ia/src/**/*.md` paths only as `documentation`. Other hidden/build paths and role substitutions remain invalid. This is a bounded path/role allowance, not an asset validity verdict: the distribution owner verifies the closed manifest, exact resource pins and native joins before packing/verifying/installing guide-bearing archives. Native floor code remains supplied by the fixed language floor rather than an archive's documentation assets.
118
118
 
119
- Path identity: `src/paths.ts`, exported from `@inventarch/db`, compares paths by what the volume opens, because APFS folds case and Unicode normalization and NTFS folds case. `sameFile` compares device and inode (a path it cannot examine, such as a link loop, is compared by `pathKey`); `within(parent, child)` walks the child's real ancestors by device and inode, and compares folded settled spellings only while the parent does not exist; `unaliased(path, real)` accepts another spelling of the same existing names and refuses a link or junction in any component, and a path that is not absolute and normalized, since the kernel walks a `link/..` pair through the link (on win32, where the kernel removes `..` before it follows a junction, it compares the normalized path case-folded, which also refuses subst drives and 8.3 names); `linked` finds that link; `pathKey` folds the key of a relative path that may not exist, case on win32 and `caseFold` on darwin: NFC and full Unicode case folding, as APFS compares names, so `ß` and `ss` are one name there, while the dotless `ı` stays apart from `i`. The same key names draft paths (`preview.ts`), editor overlays (`editor/index.ts`) and sources (`inputs.ts`), so on macOS two of them that differ only in case or Unicode case are one path, refused as a duplicate; a case-sensitive APFS volume holding both `A.ia` and `a.ia` is refused there as a duplicate source. `@inventarch/runtime` re-exports all of them but `linked` and `caseFold`, for the apps that depend on it rather than on `@inventarch/db`.
119
+ Path identity: `src/paths.ts`, exported from `@inventarch/db`, compares paths by what the volume opens, because APFS folds case and Unicode normalization and NTFS folds case. `sameFile` compares device and inode, except where either inode is `unidentified` (a volume that reports 0 or all ones, as some network and ReFS volumes on Windows do, which never means "the same file"): it then compares the exact real paths, never folded, as `within` does and the CLI's tracked-root comparison does through the shared `sameIdentity` (a path it cannot examine, such as a link loop, is compared by `pathKey`); `within(parent, child)` walks the child's real ancestors by device and inode, and compares folded settled spellings only while the parent does not exist; `unaliased(path, real)` accepts another spelling of the same existing names and refuses a link or junction in any component, and a path that is not absolute and normalized, since the kernel walks a `link/..` pair through the link (on win32, where the kernel removes `..` before it follows a junction, it compares the normalized path case-folded, which also refuses subst drives and 8.3 names); `linked` finds that link; `pathKey` folds the key of a relative path that may not exist, case on win32 and `caseFold` on darwin: NFC and full Unicode case folding, as APFS compares names, so `ß` and `ss` are one name there, while the dotless `ı` stays apart from `i`. The same key names draft paths (`preview.ts`), editor overlays (`editor/index.ts`) and sources (`inputs.ts`), so on macOS two of them that differ only in case or Unicode case are one path, refused as a duplicate; a case-sensitive APFS volume holding both `A.ia` and `a.ia` is refused there as a duplicate source. `@inventarch/runtime` re-exports all of them but `linked` and `caseFold`, for the apps that depend on it rather than on `@inventarch/db`.
120
120
 
121
121
  ### Explicit package-local authored inputs
122
122
 
@@ -1 +1 @@
1
- {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/canon/links.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAgBxD;AA2QD,4HAA4H;AAC5H,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAqC1D;AAED,0HAA0H;AAC1H,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CASvF"}
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/canon/links.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAC1F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AACD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAgBxD;AAqVD,4HAA4H;AAC5H,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAqC1D;AAED,0HAA0H;AAC1H,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CASvF"}
@@ -28,64 +28,90 @@ const FENCE = /^ {0,3}(`{3,}|~{3,})/;
28
28
  const DEFINITION = /^ {0,3}\[(?:[^\]\\]|\\.)+\]:\s*(<[^>\n]*>|\S+)/;
29
29
  const ATTRIBUTE = /\b(href|src|id|name)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'<>=`]+))/gi;
30
30
  const SETEXT = /^ {0,3}(?:=+|-+)[ \t]*$/;
31
- const SPACE = /\s/;
32
- /** A character `\s` matches. */
33
- const isSpace = (char) => char !== undefined && SPACE.test(char);
31
+ /**
32
+ * A UTF-16 code unit `\s` matches: ECMAScript's WhiteSpace and LineTerminator, that is \t, \n, \v, \f, \r, the space
33
+ * separators of Unicode category Zs, U+FEFF, and the line and paragraph separators U+2028 and U+2029.
34
+ */
35
+ function isSpaceCode(code) {
36
+ if (code <= 0x20)
37
+ return code === 0x20 || (code >= 0x09 && code <= 0x0d);
38
+ if (code < 0xa0)
39
+ return false;
40
+ return (code === 0xa0 ||
41
+ code === 0x1680 ||
42
+ (code >= 0x2000 && code <= 0x200a) ||
43
+ code === 0x2028 ||
44
+ code === 0x2029 ||
45
+ code === 0x202f ||
46
+ code === 0x205f ||
47
+ code === 0x3000 ||
48
+ code === 0xfeff);
49
+ }
50
+ /** A UTF-16 code unit `.` does not match. */
51
+ const isTerminatorCode = (code) => code === 0x0a || code === 0x0d || code === 0x2028 || code === 0x2029;
34
52
  /** A space or a tab, the blanks around an ATX heading's marks. */
35
53
  const isBlank = (char) => char === ' ' || char === '\t';
36
- /** A character `.` does not match. */
37
- const isTerminator = (char) => char === '\n' || char === '\r' || char === '\u2028' || char === '\u2029';
38
- /** `\\.` matches at `at`: a backslash and a character `.` matches. */
39
- const isEscape = (text, at) => text[at] === '\\' && at + 1 < text.length && !isTerminator(text[at + 1]);
40
54
  const unescape = (text) => text.replace(/\\([!-/:-@[-`{-~])/g, '$1');
41
55
  const destination = (raw) => unescape(raw.startsWith('<') ? raw.slice(1, -1) : raw);
42
56
  /**
43
57
  * Code spans hold no links: each is blanked, keeping the columns. The matches of
44
58
  * `` /(`+)(?!`)[\s\S]*?(?<!`)\1(?!`)/g ``: an opening run (a whole backtick run, or failing that each shorter tail of it)
45
59
  * closes at the next whole run of the same length. Each run is visited once and each length's runs are consumed in
46
- * order, so the scan is linear.
60
+ * order, so the scan is linear. A line of a few runs, the usual case, looks for the closing run directly: at most
61
+ * `FEW` runs are read for each length tried, which is still linear.
47
62
  */
63
+ const FEW = 8;
48
64
  function withoutCodeSpans(line) {
49
- const runs = [];
50
- for (let at = 0; at < line.length;) {
51
- if (line[at] !== '`') {
52
- at++;
53
- continue;
54
- }
55
- const start = at;
56
- while (line[at] === '`')
65
+ const opening = line.indexOf('`');
66
+ if (opening < 0)
67
+ return line;
68
+ const starts = [], lengths = [];
69
+ for (let at = opening; at >= 0; at = line.indexOf('`', at)) {
70
+ starts.push(at);
71
+ while (line.charCodeAt(at) === 0x60)
57
72
  at++;
58
- runs.push({ start, length: at - start });
73
+ lengths.push(at - starts[starts.length - 1]);
59
74
  }
60
- if (runs.length < 2)
75
+ const count = starts.length;
76
+ if (count < 2)
61
77
  return line;
62
- const byLength = new Map(), cursor = new Map();
63
- runs.forEach((run, index) => {
64
- const same = byLength.get(run.length);
65
- if (same === undefined)
66
- byLength.set(run.length, [index]);
67
- else
68
- same.push(index);
69
- });
70
- /** The first run of `length` after run `after`; `after` never decreases, so each cursor only moves forward. */
71
- const following = (length, after) => {
72
- const same = byLength.get(length);
73
- if (same === undefined)
78
+ let following;
79
+ if (count <= FEW)
80
+ following = (length, after) => {
81
+ for (let at = after + 1; at < count; at++)
82
+ if (lengths[at] === length)
83
+ return at;
74
84
  return undefined;
75
- let at = cursor.get(length) ?? 0;
76
- while (at < same.length && same[at] <= after)
77
- at++;
78
- cursor.set(length, at);
79
- return same[at];
80
- };
85
+ };
86
+ else {
87
+ const byLength = new Map(), cursor = new Map();
88
+ lengths.forEach((length, index) => {
89
+ const same = byLength.get(length);
90
+ if (same === undefined)
91
+ byLength.set(length, [index]);
92
+ else
93
+ same.push(index);
94
+ });
95
+ /** The first run of `length` after run `after`; `after` never decreases, so each cursor only moves forward. */
96
+ following = (length, after) => {
97
+ const same = byLength.get(length);
98
+ if (same === undefined)
99
+ return undefined;
100
+ let at = cursor.get(length) ?? 0;
101
+ while (at < same.length && same[at] <= after)
102
+ at++;
103
+ cursor.set(length, at);
104
+ return same[at];
105
+ };
106
+ }
81
107
  let blanked = '', copied = 0;
82
- for (let index = 0; index < runs.length; index++) {
83
- const run = runs[index];
84
- for (let length = run.length; length > 0; length--) {
108
+ for (let index = 0; index < count; index++) {
109
+ const start = starts[index], run = lengths[index];
110
+ for (let length = run; length > 0; length--) {
85
111
  const closing = following(length, index);
86
112
  if (closing === undefined)
87
113
  continue;
88
- const from = run.start + run.length - length, to = runs[closing].start + length;
114
+ const from = start + run - length, to = starts[closing] + length;
89
115
  blanked += line.slice(copied, from) + ' '.repeat(to - from);
90
116
  copied = to;
91
117
  index = closing;
@@ -175,7 +201,7 @@ function atxContent(line) {
175
201
  if (!isBlank(line[at]))
176
202
  return null;
177
203
  for (let index = at; index < line.length; index++)
178
- if (isTerminator(line[index]))
204
+ if (isTerminatorCode(line.charCodeAt(index)))
179
205
  return null;
180
206
  while (isBlank(line[at]))
181
207
  at++;
@@ -192,56 +218,102 @@ function atxContent(line) {
192
218
  }
193
219
  return line.slice(at, end);
194
220
  }
195
- /** For each index of `text` and its end, the first index at or after it holding `char`, else -1. */
196
- function nextIndex(text, char) {
197
- const next = new Int32Array(text.length + 1).fill(-1);
198
- for (let at = text.length - 1; at >= 0; at--)
199
- next[at] = text[at] === char ? at : next[at + 1];
200
- return next;
221
+ /**
222
+ * The tables `inlineLinks` fills, kept between lines so that a document of many short lines allocates them once. They
223
+ * grow to at most `REUSED` entries each, so at most 8 × 65536 × 4 B = 2 MiB stays allocated for the life of the
224
+ * process. A span of `REUSED` code units or more gets tables of its own, so one huge line does not hold its memory
225
+ * after the scan.
226
+ */
227
+ const REUSED = 1 << 16;
228
+ let tables = [];
229
+ function tablesFor(size) {
230
+ const length = size + 1;
231
+ if (length > REUSED)
232
+ return Array.from({ length: 8 }, () => new Int32Array(length));
233
+ if (tables.length === 0 || tables[0].length < length) {
234
+ const capacity = Math.min(REUSED, Math.max(256, length, 2 * (tables[0]?.length ?? 0)));
235
+ tables = Array.from({ length: 8 }, () => new Int32Array(capacity));
236
+ }
237
+ return tables;
238
+ }
239
+ /** Fills `next` from `from` to `text`'s end: each index's first index at or after it holding `char`, else -1. */
240
+ function fillNext(next, text, char, from) {
241
+ let filled = from;
242
+ for (let at = text.indexOf(char, from); at >= 0; at = text.indexOf(char, at + 1)) {
243
+ next.fill(at, filled, at + 1);
244
+ filled = at + 1;
245
+ }
246
+ next.fill(-1, filled, text.length + 1);
201
247
  }
202
248
  /**
203
249
  * The inline links and images of a line, as the global regex
204
250
  * `/(!?)\[((?:[^[\]\\]|\\.|\[[^\]]*\])*)\]\(\s*(<[^>\n]*>|(?:[^\s()\\]|\\.|\((?:[^\s()\\]|\\.)*\))*)(?:\s+(?:"[^"]*"|'[^']*'|\([^)]*\)))?\s*\)/g`
205
251
  * matches them, with its destination (group 3) as written. Each repeated part of that regex is deterministic, so where a
206
252
  * scan of it stops from each index is computed once, right to left; each `[` is then tried in constant time.
253
+ *
254
+ * Only the span from the first `[` through the last `)` is scanned. Every match starts at a `[` and ends at a `)`, and
255
+ * the regex has no lookaround, so a match consumes only characters of that span, and whether it matches, and how,
256
+ * depends on nothing outside it.
207
257
  */
208
- function inlineLinks(line) {
258
+ function inlineLinks(whole) {
209
259
  const found = [];
210
- if (!line.includes(']('))
260
+ const first = whole.indexOf('['), last = whole.lastIndexOf(')');
261
+ if (first < 0 || last < first || !whole.includes('](', first))
211
262
  return found;
212
- const size = line.length, space = new Int32Array(size + 1), label = new Int32Array(size + 1), inner = new Int32Array(size + 1), plain = new Int32Array(size + 1), bracket = nextIndex(line, ']'), quote = nextIndex(line, '"'), apostrophe = nextIndex(line, "'"), paren = nextIndex(line, ')'), angle = nextIndex(line, '>');
263
+ const line = whole.slice(0, last + 1), size = line.length, [space, label, inner, plain, quote, apostrophe, paren, angle] = tablesFor(size);
213
264
  /** Where a title that opens with `opener` looks for its close. */
214
265
  const closes = (opener) => opener === '"' ? quote : opener === "'" ? apostrophe : opener === '(' ? paren : undefined;
266
+ fillNext(quote, line, '"', first);
267
+ fillNext(apostrophe, line, "'", first);
268
+ fillNext(paren, line, ')', first);
269
+ fillNext(angle, line, '>', first);
215
270
  space[size] = label[size] = inner[size] = plain[size] = size;
216
- for (let at = size - 1; at >= 0; at--) {
217
- const char = line[at], escape = isEscape(line, at);
271
+ // The first `]` after `at`, else -1; and the code unit after `at`, else -1 (the slice ends in `)`, so a backslash
272
+ // always has a next unit).
273
+ let bracket = -1, next = -1;
274
+ for (let at = size - 1; at >= first; at--) {
275
+ const code = line.charCodeAt(at), blank = isSpaceCode(code);
276
+ if (!blank && code !== 0x5b && code !== 0x5c && code !== 0x5d && code !== 0x28 && code !== 0x29) {
277
+ // A code unit none of the parts below stops at.
278
+ space[at] = at;
279
+ label[at] = label[at + 1];
280
+ inner[at] = inner[at + 1];
281
+ plain[at] = plain[at + 1];
282
+ next = code;
283
+ continue;
284
+ }
285
+ // `\\.` matches at `at`.
286
+ const escape = code === 0x5c && next >= 0 && !isTerminatorCode(next);
218
287
  // `\s*`: the first index that is not a space.
219
- space[at] = isSpace(char) ? space[at + 1] : at;
288
+ space[at] = blank ? space[at + 1] : at;
220
289
  // The label, `(?:[^[\]\\]|\\.|\[[^\]]*\])*`.
221
- if (char === ']')
290
+ if (code === 0x5d)
222
291
  label[at] = at;
223
- else if (char === '\\')
292
+ else if (code === 0x5c)
224
293
  label[at] = escape ? label[at + 2] : at;
225
- else if (char === '[')
226
- label[at] = bracket[at + 1] < 0 ? at : label[bracket[at + 1] + 1];
294
+ else if (code === 0x5b)
295
+ label[at] = bracket < 0 ? at : label[bracket + 1];
227
296
  else
228
297
  label[at] = label[at + 1];
229
298
  // Inside a bracketed destination part, `(?:[^\s()\\]|\\.)*`.
230
- if (isSpace(char) || char === '(' || char === ')')
299
+ if (blank || code === 0x28 || code === 0x29)
231
300
  inner[at] = at;
232
- else if (char === '\\')
301
+ else if (code === 0x5c)
233
302
  inner[at] = escape ? inner[at + 2] : at;
234
303
  else
235
304
  inner[at] = inner[at + 1];
236
305
  // A plain destination, `(?:[^\s()\\]|\\.|\((?:[^\s()\\]|\\.)*\))*`.
237
- if (isSpace(char) || char === ')')
306
+ if (blank || code === 0x29)
238
307
  plain[at] = at;
239
- else if (char === '\\')
308
+ else if (code === 0x5c)
240
309
  plain[at] = escape ? plain[at + 2] : at;
241
- else if (char === '(')
310
+ else if (code === 0x28)
242
311
  plain[at] = line[inner[at + 1]] === ')' ? plain[inner[at + 1] + 1] : at;
243
312
  else
244
313
  plain[at] = plain[at + 1];
314
+ if (code === 0x5d)
315
+ bracket = at;
316
+ next = code;
245
317
  }
246
318
  /** Where `(?:\s+(?:"[^"]*"|'[^']*'|\([^)]*\)))?\s*\)` ends when it starts at `from`, else -1. */
247
319
  const tail = (from) => {
@@ -254,7 +326,7 @@ function inlineLinks(line) {
254
326
  }
255
327
  return opener === ')' ? after + 1 : -1;
256
328
  };
257
- let from = 0, at = line.indexOf('[');
329
+ let from = 0, at = first;
258
330
  while (at >= 0) {
259
331
  const end = label[at + 1];
260
332
  let stop = -1, raw = '';
@@ -1 +1 @@
1
- {"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/canon/links.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,UAAU,aAAa;IAC3B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAkB,CAAC;IACvC,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,MAAM,IAAI,GAAG,IAAI;aACd,WAAW,EAAE;aACb,OAAO,CAAC,8BAA8B,EAAE,EAAE,CAAC;aAC3C,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACtB,IAAI,IAAI,GAAG,IAAI,CAAC;QAChB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;YACvC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACrB,IAAI,GAAG,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,KAAK,GAAG,sBAAsB,CAAC;AACrC,MAAM,UAAU,GAAG,gDAAgD,CAAC;AACpE,MAAM,SAAS,GAAG,qEAAqE,CAAC;AACxF,MAAM,MAAM,GAAG,yBAAyB,CAAC;AACzC,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,gCAAgC;AAChC,MAAM,OAAO,GAAG,CAAC,IAAwB,EAAW,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9F,kEAAkE;AAClE,MAAM,OAAO,GAAG,CAAC,IAAwB,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AAC,CAAC,EAAE,KAAK,CAAC,CAAC;QACzF,QAAQ,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;KACnE,CAAC;AACJ,CAAC"}
package/dist/checks.d.ts CHANGED
@@ -15,8 +15,8 @@ import type { Node } from '@inventarch/graph';
15
15
  * `createEvaluatorCatalog`, `selectEvaluator`): `supported` is bound, but no host implementation is bound to run it in
16
16
  * this release (`bindEvaluators` with none), so its result is not-evaluated; `unavailable`, an entry the catalog does
17
17
  * not list, a catalog that is not valid, or no catalog at all is unavailable, not-evaluated; `revoked`, or a catalog
18
- * that failed verification, is revoked, an error. The host registers no evaluator codec in this release, so each schema
19
- * id the catalog's entries declare is given one that accepts nothing (`inertCodecs`): the catalog's structure and
18
+ * that failed verification, is revoked, an error. The host registers no evaluator codec in this release, so each codec
19
+ * the catalog's entries declare is given one that accepts nothing (`inertCodecs`): the catalog's structure and
20
20
  * statuses are checked as compliance checks them, and nothing it lists can validate an input or produce evidence.
21
21
  */
22
22
  export declare const WHOLE_WORKSPACE_SCOPE = "*";
@@ -25,6 +25,7 @@ export type CheckCatalog = {
25
25
  readonly status: 'present';
26
26
  readonly evaluators: {
27
27
  readonly format: string;
28
+ readonly formatVersion?: number;
28
29
  readonly entries: readonly unknown[];
29
30
  };
30
31
  } | {
@@ -1 +1 @@
1
- {"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../src/checks.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG9C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,6FAA6F;AAC7F,MAAM,MAAM,YAAY,GACpB;IACE,QAAQ,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B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,sGAAsG;IACtG,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,iGAAiG;IACjG,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAoCD;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,SAAS,OAAO,EAAE,EAC5B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,QAAQ,GAAE,WAAW,CAAC,MAAM,CAAa,GACxC;IAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE,CAa3E;AAED,8GAA8G;AAC9G,wBAAgB,UAAU,CACxB,OAAO,EAAE,SAAS,IAAI,EAAE,EACxB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,EAChC,OAAO,EAAE,YAAY,GACpB,SAAS,YAAY,EAAE,CA2GzB"}
package/dist/checks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bindEvaluators, CHECK_IDS, checkRunner, createEvaluatorCatalog, selectEvaluator, } from '@inventarch/compliance';
1
+ import { bindEvaluators, CHECK_IDS, checkRunner, createEvaluatorCatalog, isCodecRef, legacyCodecRef, selectEvaluator, } from '@inventarch/compliance';
2
2
  /**
3
3
  * D13: binding each `@check` at validate. A check names its evaluator (`check.implementation`, else `check.runs`;
4
4
  * compliance `checkRunner`) and selects what it covers with the text `check.scope`. Binding decides which
@@ -14,8 +14,8 @@ import { bindEvaluators, CHECK_IDS, checkRunner, createEvaluatorCatalog, selectE
14
14
  * `createEvaluatorCatalog`, `selectEvaluator`): `supported` is bound, but no host implementation is bound to run it in
15
15
  * this release (`bindEvaluators` with none), so its result is not-evaluated; `unavailable`, an entry the catalog does
16
16
  * not list, a catalog that is not valid, or no catalog at all is unavailable, not-evaluated; `revoked`, or a catalog
17
- * that failed verification, is revoked, an error. The host registers no evaluator codec in this release, so each schema
18
- * id the catalog's entries declare is given one that accepts nothing (`inertCodecs`): the catalog's structure and
17
+ * that failed verification, is revoked, an error. The host registers no evaluator codec in this release, so each codec
18
+ * the catalog's entries declare is given one that accepts nothing (`inertCodecs`): the catalog's structure and
19
19
  * statuses are checked as compliance checks them, and nothing it lists can validate an input or produce evidence.
20
20
  */
21
21
  export const WHOLE_WORKSPACE_SCOPE = '*';
@@ -29,17 +29,27 @@ const fieldText = (node, section, key) => {
29
29
  }
30
30
  return null;
31
31
  };
32
- /** One codec per schema id `entries` declare, each refusing every value (see the module comment). */
32
+ /**
33
+ * One codec per `{id, version}` `entries` declare, each refusing every value (see the module comment). Entries name
34
+ * codecs as `inputCodec` / `outputCodec` references in the current shape, or as `inputSchemaId` / `outputSchemaId`
35
+ * `name@major` strings in the legacy `ia-evaluator-catalog/1.x` shape, which compliance's `legacyCodecRef` reads. A
36
+ * value that is neither gets no codec, so compliance refuses that entry as unknown.
37
+ */
33
38
  function inertCodecs(entries) {
34
- const ids = new Set();
39
+ const refs = new Map();
35
40
  for (const entry of entries)
36
41
  if (entry !== null && typeof entry === 'object')
37
- for (const key of ['inputSchemaId', 'outputSchemaId']) {
38
- const id = entry[key];
39
- if (typeof id === 'string')
40
- ids.add(id);
42
+ for (const [current, legacy] of [
43
+ ['inputCodec', 'inputSchemaId'],
44
+ ['outputCodec', 'outputSchemaId'],
45
+ ]) {
46
+ const fields = entry, declared = fields[current] ?? fields[legacy], ref = isCodecRef(declared) ? declared : legacyCodecRef(declared);
47
+ if (ref !== undefined)
48
+ refs.set(`${ref.id}#${ref.version}`, ref);
41
49
  }
42
- return [...ids].sort().map((id) => Object.freeze({ id, validate: () => false }));
50
+ return [...refs.entries()]
51
+ .sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
52
+ .map(([, ref]) => Object.freeze({ id: ref.id, version: ref.version, validate: () => false }));
43
53
  }
44
54
  const RANK = { pass: 0, 'not-evaluated': 1, fail: 2 };
45
55
  /**
@@ -85,7 +95,7 @@ export function bindChecks(records, report, catalog) {
85
95
  });
86
96
  }
87
97
  catch (error) {
88
- // A schema id that is not a codec id at all: compliance refuses the registration itself.
98
+ // A refused registration: compliance refuses the catalog itself.
89
99
  evaluators = { ok: 'refused', reason: error instanceof Error ? error.message : String(error) };
90
100
  }
91
101
  return evaluators;
@@ -1 +1 @@
1
- {"version":3,"file":"checks.js","sourceRoot":"","sources":["../src/checks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,SAAS,EACT,WAAW,EACX,sBAAsB,EACtB,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAKhC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AA4BzC,MAAM,SAAS,GAAG,CAAC,IAAU,EAAE,OAAe,EAAE,GAAW,EAAiB,EAAE;IAC5E,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,QAAQ;QACnC,IAAI,SAAS,CAAC,IAAI,KAAK,OAAO;YAC5B,KAAK,MAAM,KAAK,IAAI,SAAS,CAAC,MAAM;gBAClC,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAK,KAAuB,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;oBACvF,MAAM,KAAK,GAAI,KAAuB,CAAC,KAAK,CAAC;oBAC7C,OAA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,EAAE,CACnB,CAAC;IACJ,CAAC,CAAC,CACL,CAAC;AACJ,CAAC"}
@@ -3,7 +3,7 @@ import { verifyFixtures, verifyKernel } from '@inventarch/compliance';
3
3
  import { canonicalPath } from '@inventarch/language';
4
4
  /** How many floors' kernel evidence a process keeps: an editor that edits its local floor verifies each new one. */
5
5
  const KERNEL_FLOORS = 16;
6
- /** The package-v1 fixture evidence: the profile runs only the package's own files, so one run serves the process. */
6
+ /** The package fixture evidence: the profile runs only the package's own files, so one run serves the process. */
7
7
  let fixtures;
8
8
  /** Kernel evidence by the exact floor it verified, least recently used first. */
9
9
  const kernels = new Map();
@@ -1 +1 @@
1
- {"version":3,"file":"conformance.js","sourceRoot":"","sources":["../src/conformance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,oHAAoH;AACpH,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,qHAAqH;AACrH,IAAI,QAAqC,CAAC;AAC1C,iFAAiF;AACjF,MAAM,OAAO,GAAG,IAAI,GAAG,EAA0B,CAAC;AAClD,MAAM,OAAO,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,MAAsB;IAClD,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO;SACzB,MAAM,CACL,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,KAAK,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,I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