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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f98fed507060aa402438904c53219866a92d2a3dcf36bfb0fc9fa15a8782ac8
4
- data.tar.gz: a5f2791889fdc6c98f420065a9c8ba502421b38f37d2600c02680ba00877d1a3
3
+ metadata.gz: 197f6b3f6d9f23287327f2c5aefdebbc16cb2cd4523695ab1495d0eefdcee23c
4
+ data.tar.gz: 422edda184e0b66f2b423fd0c0928d954bb037229eb3ed12155dd941b76753fb
5
5
  SHA512:
6
- metadata.gz: 8be80b6ab392cda9f819e157fd7ffc470f102ade4d89e5ef76374516741942c46def843df7caeaf5b2a09d82344958edd7dd65680042d1be8dfa6cc54cb769a4
7
- data.tar.gz: 312977967cf7d123db6f1bfd1c55d94f14f8a81ab966d562d4fb6f28c8199d9e7df07f726b3832cc0b77d6ef21b55f21d43903603cb7ec4b66117dec00a5f049
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 certifier runs against THIS checkout: the testsuite gem pins the
14
- # dataset rows, so a model answer change that stales the vendored
15
- # dataset (schema 5) goes red here — the same early warning the
16
- # moxml-rs/moxml-ts vendored pins provide.
17
- #
18
- # The dependent-rake shared workflow cannot carry this repo: its
19
- # gemspec line-filter drops every line containing the gem name, and
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: certify main (3.4)
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: Bind the testsuite to this checkout
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
- - name: Certify
43
+ bundle exec rspec
44
+ - name: Identity gate (this checkout is the reference)
44
45
  working-directory: testsuite
45
- run: bundle exec rspec
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.423"
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.423` (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
 
@@ -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
- |Suite gem
96
+ |Data repository
97
97
  |link:https://github.com/lutaml/moxml-testsuite[moxml-testsuite] — the
98
- certification gem: the dataset vendored, the runner driving any object
99
- that implements the certification protocol (parse, serialize,
100
- canonicalize, XSD validation, and the decision faces). The bundled
101
- moxml-backed Reference certifies a moxml engine; a facade that cannot
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 suite gem vendors the same rows for third-party
109
- engines: certification is open — implement the protocol, run the
110
- families, publish the report.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moxml
4
- VERSION = "0.6.14"
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.14
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