canon 0.3.123 → 0.3.125
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/docs/HANDOFF.adoc +77 -26
- data/lib/canon/comparison/node_inspector.rb +17 -4
- data/lib/canon/comparison/xml_comparator.rb +4 -3
- data/lib/canon/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b203097b191fc83c22d4e5d091c9558e7c43e8544ead70dae7e17f70d4a3f60
|
|
4
|
+
data.tar.gz: be396b430f798bfe53c931e7eb49b6e2fa97bde9d9c48b968bfd41f6a6f12ff8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ea68cf0daa2a6290cd2fca74ec53bdf310597f4c3641bffea73d30b82d21614f1216bd4d3c25602bf87389ab61b8af067340feac3da045a99e2764fa6b87e3b
|
|
7
|
+
data.tar.gz: 9d2e6cc4ad93a583b52055ba2aeeeab159593282b5141b5a57f0ee08b9061a20067318b677b65dd88e241bbcb2e016f042bad6f765e5b526c3f99ff162f0c8a7
|
data/docs/HANDOFF.adoc
CHANGED
|
@@ -5,18 +5,21 @@ published: false
|
|
|
5
5
|
|
|
6
6
|
A snapshot of the open arcs across the org repos — what is known, where
|
|
7
7
|
to dig, and what has already been proven — so any team can pick an issue
|
|
8
|
-
up cold. Statuses as of 2026-11-
|
|
8
|
+
up cold. Statuses as of 2026-11-05.
|
|
9
9
|
|
|
10
10
|
== State of the world
|
|
11
11
|
|
|
12
|
-
Shipped since the last board (2026-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
Shipped since the last board (2026-11-01): leptris 1.9.401→**1.9.408**
|
|
13
|
+
(the 1.9.407 plan ns_prefix deep-copy fix — the use-after-free behind
|
|
14
|
+
lutaml-model#1126's poisoning signatures; release PR leptris#1973),
|
|
15
|
+
yeptris **0.6.55**, moxml **0.6.2** (the engine XHTML display mode,
|
|
16
|
+
moxml#390 — canon's fixture-ready lane is now engine-served end to
|
|
17
|
+
end), lutaml-model **0.8.169** (the native emission lane fix series:
|
|
18
|
+
plan poisoning #1126, the render contract #1136, the valued
|
|
19
|
+
child_deferred gate #1130, xmlns retention #1131), canon 0.3.123
|
|
20
|
+
(floors `leptris ~> 1.9.401`, `moxml ~> 0.6.2`, `yeptris ~> 0.6.55`;
|
|
21
|
+
the subset-xpath engine grew parent/self/attribute steps, PR
|
|
22
|
+
canon#308).
|
|
20
23
|
|
|
21
24
|
== lutaml/canon
|
|
22
25
|
|
|
@@ -24,11 +27,12 @@ moxml lines: `>= 0.5.139, < 0.7`), canon 0.3.118 (floors `leptris ~>
|
|
|
24
27
|
|===
|
|
25
28
|
|Item |Status |Known + first moves
|
|
26
29
|
|
|
27
|
-
|Floors raised (0.3.
|
|
30
|
+
|Floors raised (0.3.123)
|
|
28
31
|
|Shipped
|
|
29
|
-
|`leptris ~> 1.9.
|
|
30
|
-
verified against exactly those engines (
|
|
31
|
-
pending). Constraints live in the gemspec only;
|
|
32
|
+
|`leptris ~> 1.9.401`, `yeptris ~> 0.6.55`, `moxml ~> 0.6.2` — all
|
|
33
|
+
verified against exactly those engines (2760 examples, 0 failures, 25
|
|
34
|
+
pending, verified 2026-11-05). Constraints live in the gemspec only;
|
|
35
|
+
Gemfile/Gemfile.local
|
|
32
36
|
are untracked verification lanes.
|
|
33
37
|
|
|
34
38
|
|Opal lane
|
|
@@ -39,11 +43,13 @@ The `RUBY_ENGINE == "opal"` branches in lib stay for the moxml-ts wasm
|
|
|
39
43
|
migration (moxml#489).
|
|
40
44
|
|
|
41
45
|
|Subset-xpath mini engine (`lib/canon/xml/xpath_engine.rb`)
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
|Shipped (canon#308, 0.3.123)
|
|
47
|
+
|The `..` and `@attr` step forms are implemented under a linear
|
|
48
|
+
context model: element steps filter one level down (block semantics),
|
|
49
|
+
parent/self/attribute steps operate on the matched nodes themselves,
|
|
50
|
+
and attribute nodes render per strict C14N law (only when the owner
|
|
51
|
+
element is in the node-set). The `//`-rooted and `./`-rooted relative
|
|
52
|
+
forms resolve from the document root, matching the subset context.
|
|
47
53
|
|===
|
|
48
54
|
|
|
49
55
|
== lutaml/moxml
|
|
@@ -76,6 +82,18 @@ plan-path-FFI perf slices
|
|
|
76
82
|
|Open (umbrella)
|
|
77
83
|
|Re-baseline against 1.9.398 with the interleaved A/B harness before
|
|
78
84
|
opening new slices — the old ~3-4x numbers predate the closed slices.
|
|
85
|
+
|
|
86
|
+
|Plan descriptor memory safety + the 1.9.408 line
|
|
87
|
+
|Shipped (1.9.407/1.9.408); #1972 open
|
|
88
|
+
|1.9.407 fixes the `leptris_plan_build` use-after-free: attribute
|
|
89
|
+
rows' `ns_prefix` was the one caller-anchored string NOT deep-copied,
|
|
90
|
+
so the built descriptor read freed FFI anchor memory at serialize
|
|
91
|
+
time (the lutaml-model#1126 empty-output / garbage-prefix
|
|
92
|
+
signatures). There is no capability constant for a pure bugfix, so
|
|
93
|
+
consumers gate on the version floor. 1.9.408 is the next release line
|
|
94
|
+
(release PR #1973, merged 2026-11-05). Open on top: PR #1972
|
|
95
|
+
(xsd: namespace-aware particle typing — substitution members ride
|
|
96
|
+
attributeGroup refs).
|
|
79
97
|
|===
|
|
80
98
|
|
|
81
99
|
== leptris/yeptris
|
|
@@ -108,6 +126,16 @@ platforms)
|
|
|
108
126
|
|Open, partially improved
|
|
109
127
|
|Remaining: scalar-route derivation cost. `benchmarks/PERF-LEDGER.md`
|
|
110
128
|
has the trusted-into entries.
|
|
129
|
+
|
|
130
|
+
|yeptris#951 — plain fold emits raw lead-stripped 0x85 at a
|
|
131
|
+
¥-preceded NEL run + the PS-as-break law
|
|
132
|
+
|CLOSED (2026-11-05)
|
|
133
|
+
|Diff 1 (the raw continuation bytes in a k=2 NEL fold) fixed by the
|
|
134
|
+
engine team; Diff 2 settled as a comparator-claimed documented
|
|
135
|
+
divergence — libyaml's `READ_LINE` breaks AT LS/PS but spells them as
|
|
136
|
+
their raw 3 bytes (the fold law never applies since the join test
|
|
137
|
+
expects `\n`), while yeptris folds the run to one `\n`. The suite is
|
|
138
|
+
silent either way.
|
|
111
139
|
|===
|
|
112
140
|
|
|
113
141
|
== leptris/yeptris-ruby
|
|
@@ -130,17 +158,39 @@ If the CBOR face reopens, copy the registry law and its pin wholesale.
|
|
|
130
158
|
|Item |Status |Known + first moves
|
|
131
159
|
|
|
132
160
|
|moxml 0.6 admission
|
|
133
|
-
|Shipped (0.8.
|
|
161
|
+
|Shipped (0.8.156; line now at 0.8.169)
|
|
134
162
|
|`>= 0.5.139, < 0.7`; the Opal boot lane pins moxml 0.5.x locally in
|
|
135
163
|
`opal.yml` (Gemfile-append + plain `bundle update moxml` — bundler 4
|
|
136
164
|
removed `update --version`) until the moxml-ts wasm migration.
|
|
137
165
|
|
|
166
|
+
|The native emission lane fix series (the uniword corpus, 2026-11-05)
|
|
167
|
+
|Shipped (0.8.165-0.8.169)
|
|
168
|
+
|Four arcs, all closed: **#1126** (plans poison every later instance
|
|
169
|
+
of a class) root-caused to an ENGINE use-after-free —
|
|
170
|
+
`leptris_plan_build` kept a caller-anchored attribute `ns_prefix`
|
|
171
|
+
pointer into freed FFI anchor memory; fixed leptris 1.9.407.
|
|
172
|
+
**#1136** (render_default: false ignored — ghost `w:default="0"`
|
|
173
|
+
attributes) fixed by applying the DOM lane's `rule.render?` contract
|
|
174
|
+
at all three native emission sites (6fd1c0fc, 0.8.168). **#1130**
|
|
175
|
+
(nested same-element recursion drops data — the bibliography's
|
|
176
|
+
Author → author collapse to `<b:Author/>`) fixed by the compatibility
|
|
177
|
+
gate refusing valued `:child_deferred` rows, which ride the DOM lane
|
|
178
|
+
(PR #1135, 01ab5a3a, 0.8.169). **#1140** (dotx glossary TOC document
|
|
179
|
+
displaces body elements across sdtContent) is the #1130 shape —
|
|
180
|
+
bisect-proven fixed by the same gate; the OTHER five skip-listed dotx
|
|
181
|
+
glossary shapes fail identically with the native lane OFF (DOM lane,
|
|
182
|
+
engine without PLAN_OP_RAW), so they are uniword's pre-existing
|
|
183
|
+
TODO.refactor/14 drift, not this lane. Also shipped: #1131 (xmlns
|
|
184
|
+
declarations retained on parsed models, dbd7eb36).
|
|
185
|
+
|
|
138
186
|
|update-baselines red on every main push
|
|
139
|
-
|
|
|
140
|
-
|checkout's persisted Authorization extraheader
|
|
187
|
+
|Shipped (0be7a7fc + a784f452)
|
|
188
|
+
|checkout's persisted Authorization extraheader collided with
|
|
141
189
|
create-pull-request's token ("Duplicate header: Authorization", HTTP
|
|
142
|
-
400) on the action's `git remote prune`.
|
|
143
|
-
false` on that job's checkout
|
|
190
|
+
400) on the action's `git remote prune`. Fixed with
|
|
191
|
+
`persist-credentials: false` on that job's checkout, plus the
|
|
192
|
+
`contents: write` + `pull-requests: write` grants (the git push and
|
|
193
|
+
the API PR creation are separate permissions).
|
|
144
194
|
|
|
145
195
|
|metanorma/docbook dependent leg (ubuntu/macos)
|
|
146
196
|
|PR metanorma/docbook#15
|
|
@@ -194,10 +244,11 @@ the remaining step is the vendor commit into pubid's `data/parg/`
|
|
|
194
244
|
(proven mechanical: baking origin/main at 1.3.121 yields `edition 2`
|
|
195
245
|
headers with bindings intact — iso 84, bsi 92, ashrae 37). The
|
|
196
246
|
owner's `worktrees/grammar-rebake` is on it. standoc's severity
|
|
197
|
-
question (#1318/#1324) is re-pinned
|
|
247
|
+
question (#1318/#1324/#1325) is RESOLVED — re-pinned on standoc main
|
|
248
|
+
directly by the owner (the dup PR #1333 was closed as superseded):
|
|
198
249
|
relaton 3.0.2 degrades `ISO 0a` to RELATON_4 at severity 3, which a
|
|
199
|
-
severity-2 filter legitimately drops
|
|
200
|
-
|
|
250
|
+
severity-2 filter legitimately drops, and the suppression semantics
|
|
251
|
+
are at-or-above N.
|
|
201
252
|
|===
|
|
202
253
|
|
|
203
254
|
== Mechanics every team hits
|
|
@@ -122,11 +122,24 @@ module Canon
|
|
|
122
122
|
XmlParsing.children(node)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
# Text/comment content with XML 1.0 §2.11 line-end normalization
|
|
126
|
+
# (CRLF and lone CR -> LF). Conformant parsers normalize line
|
|
127
|
+
# ends in all parsed content, but engines disagree in practice —
|
|
128
|
+
# libxml2 preserves \r inside comment data and text nodes while
|
|
129
|
+
# the leptris lane normalizes — so the comparison normalizes at
|
|
130
|
+
# this single seam to keep equivalence engine-neutral (canon#310:
|
|
131
|
+
# the svg/* corpus fixtures carry CRLF comments and text and
|
|
132
|
+
# compared inequivalent under the raw-nokogiri lane).
|
|
125
133
|
def self.text_content(node)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
134
|
+
raw = if node.is_a?(Canon::Xml::Nodes::TextNode)
|
|
135
|
+
node.value.to_s
|
|
136
|
+
elsif node.is_a?(Canon::Xml::Node)
|
|
137
|
+
node.text_content.to_s
|
|
138
|
+
else
|
|
139
|
+
XmlParsing.text_content(node).to_s
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
raw.gsub(/\r\n?/, "\n")
|
|
130
143
|
end
|
|
131
144
|
|
|
132
145
|
def self.node_type(node)
|
|
@@ -539,9 +539,10 @@ module Canon
|
|
|
539
539
|
match_opts = opts[:match_opts]
|
|
540
540
|
behavior = match_opts[:comments]
|
|
541
541
|
|
|
542
|
-
#
|
|
543
|
-
|
|
544
|
-
|
|
542
|
+
# Line ends normalized per XML 1.0 §2.11 in NodeInspector —
|
|
543
|
+
# engines disagree on \r inside comment data (canon#310).
|
|
544
|
+
content1 = NodeInspector.text_content(n1)
|
|
545
|
+
content2 = NodeInspector.text_content(n2)
|
|
545
546
|
|
|
546
547
|
# Check if content differs
|
|
547
548
|
contents_differ = content1 != content2
|
data/lib/canon/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: canon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.125
|
|
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-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: diff-lcs
|
|
@@ -44,28 +44,28 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 1.9.
|
|
47
|
+
version: 1.9.412
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 1.9.
|
|
54
|
+
version: 1.9.412
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: moxml
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.6.
|
|
61
|
+
version: 0.6.4
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 0.6.
|
|
68
|
+
version: 0.6.4
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: paint
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -142,14 +142,14 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 0.6.
|
|
145
|
+
version: 0.6.60
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: 0.6.
|
|
152
|
+
version: 0.6.60
|
|
153
153
|
description: |-
|
|
154
154
|
Canon provides canonicalization and pretty-printing for various serialization
|
|
155
155
|
formats (XML, HTML, JSON, YAML), producing standardized forms suitable for
|