moxml 0.6.13 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adf6e5f1ca76598320e65ebac94a1e9bbd062cbf1174ede7291bf59fff917e03
4
- data.tar.gz: e59147df518ce7edf4bd02ecbabe183dd2cd5aef8824069ce2b49b44b41db52c
3
+ metadata.gz: 197f6b3f6d9f23287327f2c5aefdebbc16cb2cd4523695ab1495d0eefdcee23c
4
+ data.tar.gz: 422edda184e0b66f2b423fd0c0928d954bb037229eb3ed12155dd941b76753fb
5
5
  SHA512:
6
- metadata.gz: 313b2865b50d5180b39d387c8f3fbf36d31e0df383a9a3e2b573eac31a43f582363ae71e525c9a850f7db4dfcb49f719ea8aff60562d87c59df9098e2ce79f9a
7
- data.tar.gz: 1e558f7beb60d77b082b28e8aeb79f1c91549d7e4207c5aa5e7c40ba2ef9f619503427b07a129d8c1cf78ad05ca4fa93041fe4876c988ebebbc98734e682c593
6
+ metadata.gz: e4c523e7025aac3c59bcc35c4c45c92efff80acaa59118547d261048c95beb7c15c62e569a8957300c77a46ed009c8d3cf4ce8dc37bc354b73809f2cb2a6ad51
7
+ data.tar.gz: b1b13765285add2a63e0261d101a6bb63c8d3d0b66d57da6faa40d17dacfaf1082b0f51bb2a48316b37000e797abe71497485c47ddd62d237d57afc0a30aa7ee
@@ -0,0 +1,48 @@
1
+ name: moxml-testsuite
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ paths-ignore:
7
+ - '**.adoc'
8
+ pull_request:
9
+ paths-ignore:
10
+ - '**.adoc'
11
+ workflow_dispatch:
12
+
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.
20
+
21
+ jobs:
22
+ testsuite:
23
+ runs-on: ubuntu-latest
24
+ name: dataset gates (structure + identity)
25
+ steps:
26
+ - uses: actions/checkout@v6
27
+ - uses: actions/checkout@v6
28
+ with:
29
+ repository: lutaml/moxml-testsuite
30
+ path: testsuite
31
+ - uses: ruby/setup-ruby@v1
32
+ with:
33
+ ruby-version: '3.4'
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
40
+ working-directory: testsuite
41
+ run: |
42
+ bundle install
43
+ bundle exec rspec
44
+ - name: Identity gate (this checkout is the reference)
45
+ working-directory: testsuite
46
+ env:
47
+ MOXML_PATH: ${{ github.workspace }}
48
+ run: ruby tools/validate.rb
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ gem "base64"
12
12
  gem "benchmark"
13
13
  gem "benchmark-ips"
14
14
  gem "get_process_mem"
15
- gem "leptris", "~> 1.9.420.2"
15
+ gem "leptris", "~> 1.9.425"
16
16
  gem "libxml-ruby", ">= 5.0"
17
17
  gem "nokogiri", "~> 1.18"
18
18
  gem "oga"
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.420.2` (the tested pair; the gemspec itself has zero runtime dependencies). The adapter enforces the floor at load.
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
 
@@ -92,12 +92,21 @@ vendored at its release pin, driven by `cargo test`.
92
92
  |link:https://github.com/lutaml/moxml-ts[@lutaml/moxml] — fetches the
93
93
  pinned wasm bundles (`scripts/fetch-wasm.sh`), drives the families
94
94
  through the engine and model faces with vitest.
95
+
96
+ |Data repository
97
+ |link:https://github.com/lutaml/moxml-testsuite[moxml-testsuite] — the
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.
95
102
  |===
96
103
 
97
104
  The vendored-pin chain moxml → moxml-rs → moxml-ts means every tier
98
105
  tests the same rows: a dataset revision ships as a moxml release, the
99
106
  Rust crate re-vendors it at its next release, and the TS package pins
100
- both bundles.
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.
101
110
 
102
111
  == Why data, not prose
103
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moxml
4
- VERSION = "0.6.13"
4
+ VERSION = "0.6.15"
5
5
  end
@@ -124,6 +124,7 @@ module ModelCoverage
124
124
  "Status and precedence",
125
125
  "Mission and invariant",
126
126
  "Object model",
127
+ "The data plane (row contracts)",
127
128
  "Performance: a declared, non-semantic channel",
128
129
  ].freeze
129
130
 
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.13
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-15 00:00:00.000000000 Z
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
@@ -24,6 +24,7 @@ files:
24
24
  - ".github/workflows/dependent-repos.json"
25
25
  - ".github/workflows/dependent-tests.yml"
26
26
  - ".github/workflows/docs.yml"
27
+ - ".github/workflows/moxml-testsuite.yml"
27
28
  - ".github/workflows/nightly-fuzz.yml"
28
29
  - ".github/workflows/performance-release.yml"
29
30
  - ".github/workflows/performance.yml"