moxml 0.6.14 → 0.6.15
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.
- checksums.yaml +4 -4
- data/.github/workflows/moxml-testsuite.yml +19 -16
- data/Gemfile +1 -1
- data/README.adoc +1 -1
- data/docs/_pages/conformance.adoc +8 -9
- data/docs/_references/processing-model.adoc +39 -0
- data/lib/moxml/version.rb +1 -1
- data/spec/support/model_coverage.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 197f6b3f6d9f23287327f2c5aefdebbc16cb2cd4523695ab1495d0eefdcee23c
|
|
4
|
+
data.tar.gz: 422edda184e0b66f2b423fd0c0928d954bb037229eb3ed12155dd941b76753fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4c523e7025aac3c59bcc35c4c45c92efff80acaa59118547d261048c95beb7c15c62e569a8957300c77a46ed009c8d3cf4ce8dc37bc354b73809f2cb2a6ad51
|
|
7
|
+
data.tar.gz: b1b13765285add2a63e0261d101a6bb63c8d3d0b66d57da6faa40d17dacfaf1082b0f51bb2a48316b37000e797abe71497485c47ddd62d237d57afc0a30aa7ee
|
|
@@ -10,21 +10,18 @@ on:
|
|
|
10
10
|
- '**.adoc'
|
|
11
11
|
workflow_dispatch:
|
|
12
12
|
|
|
13
|
-
# The
|
|
14
|
-
#
|
|
15
|
-
# dataset
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
# a gem named moxml-testsuite mentions "moxml" on nearly every line
|
|
21
|
-
# (spec.name, the version require_relative, the homepage). The local
|
|
22
|
-
# path override binds the checkout without touching the gemspec.
|
|
13
|
+
# The data gate runs against THIS checkout: lutaml/moxml-testsuite is
|
|
14
|
+
# the data-definition repository — the canonical home of the
|
|
15
|
+
# conformance dataset. Its identity gate regenerates the dataset from
|
|
16
|
+
# THIS checkout's case tables (rake conformance:export) and fails when
|
|
17
|
+
# the committed copy drifts — a model answer change that stales the
|
|
18
|
+
# dataset goes red here, the same early warning the moxml-rs/moxml-ts
|
|
19
|
+
# vendored pins provide.
|
|
23
20
|
|
|
24
21
|
jobs:
|
|
25
22
|
testsuite:
|
|
26
23
|
runs-on: ubuntu-latest
|
|
27
|
-
name:
|
|
24
|
+
name: dataset gates (structure + identity)
|
|
28
25
|
steps:
|
|
29
26
|
- uses: actions/checkout@v6
|
|
30
27
|
- uses: actions/checkout@v6
|
|
@@ -34,12 +31,18 @@ jobs:
|
|
|
34
31
|
- uses: ruby/setup-ruby@v1
|
|
35
32
|
with:
|
|
36
33
|
ruby-version: '3.4'
|
|
37
|
-
- name:
|
|
34
|
+
- name: Bundle THIS checkout (the identity gate runs the export here)
|
|
35
|
+
run: bundle install --jobs 4
|
|
36
|
+
- name: Structure gate (gem-free)
|
|
37
|
+
working-directory: testsuite
|
|
38
|
+
run: ruby tools/validate_schema.rb
|
|
39
|
+
- name: Tool-guard specs
|
|
38
40
|
working-directory: testsuite
|
|
39
41
|
run: |
|
|
40
|
-
bundle config set --local local.moxml "$GITHUB_WORKSPACE"
|
|
41
|
-
rm -f Gemfile.lock
|
|
42
42
|
bundle install
|
|
43
|
-
|
|
43
|
+
bundle exec rspec
|
|
44
|
+
- name: Identity gate (this checkout is the reference)
|
|
44
45
|
working-directory: testsuite
|
|
45
|
-
|
|
46
|
+
env:
|
|
47
|
+
MOXML_PATH: ${{ github.workspace }}
|
|
48
|
+
run: ruby tools/validate.rb
|
data/Gemfile
CHANGED
data/README.adoc
CHANGED
|
@@ -128,7 +128,7 @@ pair serves; cross-import schema sets (`Context#xsd_set`) ride the
|
|
|
128
128
|
compile_set face (1.9.386.0 ✓, the floor now requires it).
|
|
129
129
|
|===
|
|
130
130
|
|
|
131
|
-
NOTE: moxml's dev Gemfile pins `leptris ~> 1.9.
|
|
131
|
+
NOTE: moxml's dev Gemfile pins `leptris ~> 1.9.425` (the tested pair; the gemspec itself has zero runtime dependencies). The adapter enforces the floor at load.
|
|
132
132
|
`ox ~> 2.14`, `libxml-ruby >= 5.0`, and the vendored oga fork — the CI
|
|
133
133
|
matrix tests exactly those floors.
|
|
134
134
|
|
|
@@ -93,21 +93,20 @@ vendored at its release pin, driven by `cargo test`.
|
|
|
93
93
|
pinned wasm bundles (`scripts/fetch-wasm.sh`), drives the families
|
|
94
94
|
through the engine and model faces with vitest.
|
|
95
95
|
|
|
96
|
-
|
|
|
96
|
+
|Data repository
|
|
97
97
|
|link:https://github.com/lutaml/moxml-testsuite[moxml-testsuite] — the
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
answer a family sees it SKIP, never a quiet pass.
|
|
98
|
+
dataset's canonical home: the committed answers as data
|
|
99
|
+
(`tests/moxml-conformance.json`), a JSON Schema for every row, and
|
|
100
|
+
gem-free gates (structure + identity against this repo's export).
|
|
101
|
+
Runners live in the implementations, not in the data.
|
|
103
102
|
|===
|
|
104
103
|
|
|
105
104
|
The vendored-pin chain moxml → moxml-rs → moxml-ts means every tier
|
|
106
105
|
tests the same rows: a dataset revision ships as a moxml release, the
|
|
107
106
|
Rust crate re-vendors it at its next release, and the TS package pins
|
|
108
|
-
both bundles. The
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
both bundles. The dataset's canonical home (moxml-testsuite) proves
|
|
108
|
+
its copy identical to this repo's export on every run — regeneration
|
|
109
|
+
is `rake corpus:regen`, drift is a red identity gate.
|
|
111
110
|
|
|
112
111
|
== Why data, not prose
|
|
113
112
|
|
|
@@ -339,6 +339,45 @@ Pins:: `spec/consistency/loud_degradation_spec.rb`, `spec/moxml/adapter_capabili
|
|
|
339
339
|
routing gates the floor made constant are absent by design.
|
|
340
340
|
Adapters without a capability story answer nil.
|
|
341
341
|
|
|
342
|
+
=== The data plane (row contracts)
|
|
343
|
+
|
|
344
|
+
Pins:: none
|
|
345
|
+
|
|
346
|
+
The data plane is the batched-first public surface: cross a
|
|
347
|
+
language boundary once per batch, never per node. A row contract is
|
|
348
|
+
committed per face — shape (columns), order (document order),
|
|
349
|
+
encoding — and implementations answer it identically in every
|
|
350
|
+
language. Node-object accessors are the convenience layer over the
|
|
351
|
+
same answers, never the only path.
|
|
352
|
+
|
|
353
|
+
The element-rows contract:
|
|
354
|
+
|
|
355
|
+
* Columns, exactly: `[ordinal, parent, depth, qualified_name,
|
|
356
|
+
namespace_uri, attribute_pairs, text]` — `ordinal` is 0-based
|
|
357
|
+
document order over elements; `parent` is the containing element's
|
|
358
|
+
ordinal or null at the root; `depth` is 0 at the document element;
|
|
359
|
+
`qualified_name` is `prefix:local` or `local`;
|
|
360
|
+
`namespace_uri` is the element's namespace URI or null;
|
|
361
|
+
`attribute_pairs` is a flat name/value run in document order
|
|
362
|
+
(namespace declarations are not attributes — the engine's
|
|
363
|
+
namespace model carries them); `text` is the concatenation of the
|
|
364
|
+
element's character-data children (text + CDATA; comments and
|
|
365
|
+
processing instructions are not character data), whitespace runs
|
|
366
|
+
included.
|
|
367
|
+
* The batched read must beat the per-node baseline across the
|
|
368
|
+
boundary on the canonical shapes — the boundary budget
|
|
369
|
+
(bench-gated in the Rust tier). A face that cannot hold its
|
|
370
|
+
rows/µs under the per-node baseline is not batched enough.
|
|
371
|
+
* Unevaluable positions degrade one-directionally: an
|
|
372
|
+
implementation that cannot produce a row stays silent; it never
|
|
373
|
+
produces a differently-shaped row.
|
|
374
|
+
|
|
375
|
+
The faces live in the cross-language tiers: the Rust reference
|
|
376
|
+
emits the contract's dataset (`export_rows`), the testsuite vendors
|
|
377
|
+
it (`tests/data-plane-rows.json` with its fail-closed structural
|
|
378
|
+
gate), and every tier's row runner asserts byte-identical tuples
|
|
379
|
+
against it — the boundary budget bench-gated in the Rust tier.
|
|
380
|
+
|
|
342
381
|
=== Performance: a declared, non-semantic channel
|
|
343
382
|
|
|
344
383
|
Pins:: none
|
data/lib/moxml/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Moxml is a unified XML manipulation library that provides a common API
|