@altopelago/sansa 0.9.0 → 0.9.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.
@@ -0,0 +1,148 @@
1
+ # Experimental SANSA Mutate Policy Plan Filter
2
+
3
+ SANSA.Mutate describes requested changes. A mutation policy authorizes and
4
+ constrains those changes before a host adapter applies them.
5
+
6
+ This layer is intentionally outside the conservative Mutate core:
7
+
8
+ - SANSA Address identifies mutation targets.
9
+ - SANSA Resolve binds those targets to host-exposed bindings.
10
+ - SANSA Query and Instruction may help select or lower mutation intent.
11
+ - SANSA Mutate builds an exact-target mutation plan.
12
+ - Mutation Policy decides whether that plan is allowed.
13
+ - The host adapter applies allowed operations.
14
+
15
+ The document being mutated must not define the authority rules for its own
16
+ mutation. Policies are supplied by a trusted consumer, host, ASP layer,
17
+ application, or adapter boundary. An externally selected AEOS schema or
18
+ validator may determine whether the proposed state is legal, but it does not
19
+ authorize the mutation.
20
+
21
+ Policy authorizes or denies already planned intent. It must not silently rewrite
22
+ the plan, reinterpret runtime strings as SANSA Instruction source, or make
23
+ schema-invalid values valid. If a policy wants a different operation, the
24
+ consumer should request and plan that operation explicitly.
25
+
26
+ Unsupported policy fields are invalid rather than ignored. This keeps attempted
27
+ future behavior, such as `rewrite`, and claimed provenance, such as `by`, from
28
+ being mistaken for active authority.
29
+
30
+ ## Workbench Prototype
31
+
32
+ The Mutate Workbench includes an experimental JSON policy plan filter advertised
33
+ as `sansa.mutate.policy.planFilter`. When enabled, the workbench runs mutation
34
+ planning first, then evaluates the planned operations against the policy. Denied
35
+ plans are not applied.
36
+
37
+ The browser example catalog includes policy-boundary examples for an allowed
38
+ quantity replacement, a default-deny create failure, and an explicit-deny SKU
39
+ replacement failure. Selecting one of those examples enables the Policy tab and
40
+ loads the policy JSON used by the test case.
41
+
42
+ In the current workbench pipeline, policy runs after Instruction parsing,
43
+ lowering, and SANSA.Mutate planning, and before target-surface validation or
44
+ apply. That ordering keeps policy decisions over exact planned operations while
45
+ still allowing a denied plan to avoid later target rendering work. Other
46
+ consumers may choose a different post-plan ordering for policy and
47
+ target-surface checks, but both checks remain outside Instruction source and
48
+ before apply.
49
+
50
+ The current prototype shape is deliberately small:
51
+
52
+ ```json
53
+ {
54
+ "default": "deny",
55
+ "rules": [
56
+ {
57
+ "allow": true,
58
+ "operations": ["replace"],
59
+ "target": "$.inventory.items.*.qty",
60
+ "datatypes": ["number", "int32"]
61
+ },
62
+ {
63
+ "allow": true,
64
+ "operations": ["create"],
65
+ "parent": "$.inventory.items.*",
66
+ "names": ["status"],
67
+ "datatype": "string",
68
+ "values": ["pending", "active"]
69
+ }
70
+ ]
71
+ }
72
+ ```
73
+
74
+ `default` is either `"deny"` or `"allow"`. Each rule must explicitly declare
75
+ `"allow": true` or `"allow": false`. Rules are evaluated in order. A matching
76
+ rule with `"allow": false` denies the operation. A matching rule with
77
+ `"allow": true` allows it. If no rule matches, `default` decides.
78
+
79
+ ## Rule Fields
80
+
81
+ The prototype supports these rule fields:
82
+
83
+ - `operations` or `operation`: allowed operation name or names.
84
+ - `target`: SANSA selector matched against `replace` and `remove` targets.
85
+ - `parent`: SANSA selector matched against `create` parents.
86
+ - `container`: SANSA selector matched against `insert` and `move` containers.
87
+ - `source`: SANSA selector matched against `move` sources.
88
+ - `anchor`: SANSA selector matched against `before` / `after` placement anchors.
89
+ - `names` or `name`: allowed create names.
90
+ - `datatypes` or `datatype`: allowed effective datatype.
91
+ - `kinds` or `kind`: allowed effective representation kind.
92
+ - `values` or `value`: allowed supplied value payload.
93
+
94
+ Address matchers are SANSA address expressions, so list/item matching uses
95
+ `.*`, not `[*]`.
96
+ They are parsed and resolved as addresses rather than compared as raw strings:
97
+ quoted member selectors such as `$.inventory.["display tags"]` and escaped
98
+ quoted selectors such as `$.inventory.["quote\"key"]` match the corresponding
99
+ planned canonical address roles after resolution.
100
+ An `anchor` matcher only matches operations whose placement has a resolved
101
+ `before` or `after` anchor. It does not match `first` or `last` placements.
102
+
103
+ For `replace`, effective datatype and kind fall back to the current target
104
+ binding metadata when the mutation request does not provide explicit hints. For
105
+ `create` and `insert`, they fall back to the supplied JSON value family.
106
+
107
+ ## Diagnostics
108
+
109
+ Policy failures use workbench diagnostics with `phase: "policy"`:
110
+
111
+ ```text
112
+ SANSA_MUTATE_POLICY_DENIED [policy] operation 0: Mutation policy has no allow rule for create
113
+ SANSA_MUTATE_POLICY_INVALID [policy] rule 0 (field by, scope rule): Mutation policy rule field 'by' is not supported
114
+ ```
115
+
116
+ Invalid policy documents fail before authorization:
117
+
118
+ - `SANSA_MUTATE_POLICY_INVALID_JSON`
119
+ - `SANSA_MUTATE_POLICY_INVALID`
120
+ - `SANSA_MUTATE_POLICY_INVALID_ADDRESS`
121
+
122
+ The response may include `operationIndex` and `ruleIndex` to identify the
123
+ affected operation or rule. Invalid policy shape may also include
124
+ `policyField`, `policyScope`, and `policyAddress` so tools can highlight the
125
+ failing top-level field, rule field, matcher role, or unsupported matcher
126
+ address. Unsupported top-level policy fields and unsupported rule fields are
127
+ reported as invalid policy input.
128
+
129
+ The experimental `npm run cts:mutate` lane includes policy plan-filter cases for
130
+ allowed and denied rules, singular and plural matcher aliases, selector address
131
+ matchers, unsupported fields, invalid address matchers, and claimed provenance
132
+ that must not become policy authority.
133
+
134
+ ## Open Design Questions
135
+
136
+ This prototype does not yet define the full policy language. Open questions
137
+ include:
138
+
139
+ - whether policy belongs in AEOS, a standalone SANSA profile, or both;
140
+ - whether rules should support reusable named schemas;
141
+ - how deep container-shape validation should be expressed;
142
+ - how reference following should be requested without mutating the referenced
143
+ value;
144
+ - how profiles should define domain-specific datatype compatibility.
145
+
146
+ The current goal is to test the boundary: mutation plans are valid or invalid
147
+ according to SANSA.Mutate, then authorized or denied according to a trusted
148
+ policy layer.
@@ -11,6 +11,7 @@ npm run query -- --query-file query.sansaq --fixture fixtures/query-inventory.js
11
11
  npm run query -- --policy validation --query 'from $.inventory.items.* where .qty >= 4 select .sku'
12
12
  npm run query -- --disable-transform --query 'from $.table.content.* select objectFrom($.table.header.*, .*)'
13
13
  npm run query -- --max-from-bindings 3 --query 'from $.inventory.items.* select .sku'
14
+ npm run query -- --value-semantics fr --query 'from $.inventory.items.* order by .name asc select .name'
14
15
  npm run query -- --params '{"source":{"type":"SansaAddressLiteral","address":"$.inventory.items[3]"},"field":{"type":"SansaAddressLiteral","address":"?.sku"}}' --query 'from path($.<"params">.source) select path($.<"params">.field)'
15
16
  ```
16
17
 
@@ -41,6 +42,13 @@ Use `--policy validation` to exercise the proposal-stage validation policy from
41
42
  the CLI. Use `--disable-transform` to run normal Query evaluation with
42
43
  experimental `SANSA.Transform` helpers disabled.
43
44
 
45
+ Use `--value-semantics <profile>` to select an explicit query value-semantics
46
+ profile. The current implementation recognizes `default`,
47
+ `aeon.value.default.v1`, `aeon.value.string.codepoint.v1`,
48
+ `aeon.value.string.natural.ascii.v1`, `fr`, `fr-FR`, and
49
+ `aeon.value.string.locale.fr.v1`; other compact locale tags are passed to
50
+ the host Intl collation surface as implementation-slice behavior.
51
+
44
52
  Host callers can pass optional `evaluateQuery(..., { budget: ... })` limits for
45
53
  pipeline sizes such as `maxFromBindings`, `maxWhereCandidates`,
46
54
  `maxOrderCandidates`, and `maxResultRecords`. The CLI exposes the same surface
@@ -58,12 +66,31 @@ npm run query:web
58
66
 
59
67
  Then open `http://127.0.0.1:4173/tools/query-web/`.
60
68
 
69
+ The same server also exposes the experimental SANSA Mutate Workbench at
70
+ `http://127.0.0.1:4173/tools/mutate-web/`. The Mutate Workbench uses `.aeon`
71
+ source input plus an editor that can accept structured JSON mutation requests
72
+ or proposal-stage SANSA Instruction source. Structured JSON runs
73
+ `planMutation(...)` directly. Instruction source runs `planInstruction(...)`,
74
+ then uses the returned plan for the same apply preview path. Each request runs
75
+ against a fresh in-memory namespace.
76
+
77
+ For command-line testing of proposal-stage SANSA.Instruction, use the
78
+ standalone Instruction tool:
79
+
80
+ ```bash
81
+ npm run instruction -- --mode plan --instruction $'from $.inventory.items.*\nwhere .sku == "B-200"\nreplace .qty with :int32, 10'
82
+ ```
83
+
84
+ It uses the same default JSON fixture as the Query CLI and can also load AEON
85
+ fixtures. See [instruction-tool.md](instruction-tool.md) for details.
86
+
61
87
  The workbench defaults to [../fixtures/query-inventory.aeon](../fixtures/query-inventory.aeon),
62
88
  derives a SANSA resolver namespace from the optional AEON TypeScript Core
63
89
  runtime, and runs SANSA.Query over that derived graph. It also includes a params
64
90
  local-space editor mounted at `$.<"params">`, a Normal/Validation policy toggle,
65
- a Transform extension toggle, optional budget limit inputs, plus a JSON fixture
66
- mode for debugging the resolver shape directly.
91
+ a Transform extension toggle, a value-semantics profile selector, optional
92
+ budget limit inputs, plus a JSON fixture mode for debugging the resolver shape
93
+ directly.
67
94
 
68
95
  In text mode, failed parses and evaluations render compact diagnostic lines
69
96
  with phase and candidate context when available. JSON mode exposes the full
@@ -102,15 +129,67 @@ NaN and infinity are explicit numeric special values. Use `isNaN(...)` and
102
129
  `isInfinity(...)` for literal-form tests; `NaN` is rejected by scalar comparison
103
130
  and ordering.
104
131
 
105
- `isValue(...)` is a missing-aware ordinary scalar guard. It returns true for one
106
- string, Boolean, or finite number expression result. It can inspect scalar
107
- expressions directly or a Binding Set produced by resolution or `path(...)`. It
108
- returns false for missing bindings, non-scalar bindings, explicit null, NaN, and
109
- infinity, while multiple bindings remain a cardinality error.
132
+ `isValue(...)` is a missing-aware concrete-value guard. It returns true for one
133
+ concrete value, including finite numbers, infinities, strings, Booleans,
134
+ lexical structured scalars, SANSA address literals, legal reference forms, and
135
+ containers. It can inspect scalar expressions directly or a Binding Set produced
136
+ by resolution or `path(...)`. It returns false for missing bindings, explicit
137
+ null, explicit absence values, and NaN, while multiple bindings remain a
138
+ cardinality error.
110
139
 
111
140
  The current evaluator allows same-type number and string comparisons, Boolean
112
- equality, and infinity as a numeric bound. It rejects mixed-type comparisons,
113
- Boolean ordering, explicit null comparison, and NaN comparison.
141
+ equality, exact toggle-token equality, same-family lexical value equality for
142
+ hex, radix, encoding, and separator values, exact reference-form equality,
143
+ same-kind structural container equality, and infinity as a numeric bound.
144
+ Query source can express the same AEON scalar literal families directly, for
145
+ example `#ff00aa`, `%ff00aa`,
146
+ `&QmFzZTY0IQ==`, `^0.11.0`, `!notSet`, and temporal-looking literals such as
147
+ `2026-07-25`, `09:30:00Z`, `2026-07-25T09:30:00Z`, and
148
+ `2026-07-25T09:30:00Z&Australia/Melbourne`. Same-family temporal values compare
149
+ through the active temporal value-semantics profile; the default profile uses
150
+ canonical payload order for `date`, `time`, `datetime`, and `zrut` families. It rejects mixed-type
151
+ comparisons, toggle-to-Boolean coercion, hex-to-radix coercion, cross-family
152
+ temporal comparison, Boolean ordering, container ordering, explicit null
153
+ comparison, and NaN comparison.
154
+
155
+ Numeric datatype labels such as `int32`, `uint64`, and `float64` remain visible
156
+ to semantic filters. When the host exposes their payload as a finite numeric
157
+ value, comparison uses the shared numeric value semantics; range, width,
158
+ integer-only, unsigned, and precision checks remain profile or schema concerns.
159
+ The same label-vs-family split applies to reserved aliases: `n` compares as a
160
+ number, `bool` compares as a Boolean, `trimtick` and `prose` compare as strings,
161
+ `radix2`, `radix6`, `radix8`, and `radix12` remain radix-family labels,
162
+ `base64`, `embed`, and `inline` compare as encoded payloads, and `kadot`
163
+ compares as a separator payload when the host exposes those representation
164
+ families. `hex` remains distinct from radix, including `radix[16]`; no numeric
165
+ or byte-level interpretation is implied without an explicit profile.
166
+ Semantic filters match the base datatype label of generic claims, so
167
+ `#null`, `#nan`, and `#infinity` can select values annotated as `null<T>`,
168
+ `nan<T>`, and `infinity<T>` before predicates such as `isNullReason(...)`,
169
+ `isNaN(...)`, or `isInfinity(...)` inspect the value.
170
+
171
+ Container equality compares one resolved container binding on each side.
172
+ Objects compare by member names and member values. Lists, tuples, and nodes
173
+ compare by child order. Container kinds are not coerced, so a list and a tuple
174
+ with identical child values still do not compare equal.
175
+ Container datatype labels remain visible to semantic filters, including
176
+ `#object`, object aliases such as `#obj`, `#o`, and `#envelope`, generic bases such as
177
+ `#list` for `list<T>`, plus `#tuple` and `#node`. These filters select
178
+ bindings; they do not change structural comparison or introduce container
179
+ ordering.
180
+ Container representation filters such as `%object`, `%list`, `%tuple`, and
181
+ `%node` select by exposed shape instead of datatype claim. For example,
182
+ `%object` can select both `obj` and `envelope` bindings when both expose object
183
+ representation.
184
+
185
+ ```text
186
+ where .consent == yes
187
+ ```
188
+
189
+ AEON toggle literal spellings `yes`, `no`, `on`, and `off` are parsed as toggle
190
+ values. They are not Boolean aliases: `yes` does not equal `on`, and `yes` does
191
+ not equal `true` without an explicit conversion or profile-defined comparison
192
+ domain.
114
193
 
115
194
  Membership tests a scalar against the scalar values exposed by a Binding Set:
116
195
 
@@ -130,8 +209,14 @@ bindings, multiple bindings, explicit null, numeric specials, and other
130
209
  non-string values unless a specific function contract says otherwise.
131
210
 
132
211
  String comparison and `order by` use deterministic Unicode scalar-value
133
- ordering in this implementation slice. They do not use host locale or process
134
- locale collation.
212
+ ordering by default. They do not use host locale or process locale collation
213
+ unless an embedding caller supplies an explicit value-semantics profile.
214
+ For exploratory testing, the CLI and browser workbench can select the French
215
+ profile to compare locale-aware behavior against the default codepoint order, or
216
+ the Natural ASCII profile to compare numeric-region behavior such as
217
+ `part-2 < part-10`. These string profiles do not reinterpret `hex`, `radix`,
218
+ `encoding`, `separator`, or `sansa` values as richer domains; those require an
219
+ explicit future profile or consumer contract.
135
220
 
136
221
  `path(value)` activates a structured SANSA Address Literal value. In expression
137
222
  positions such as `select`, `where`, and `order by`, it resolves in the current
@@ -139,6 +224,17 @@ candidate context and returns a Binding Set. In `from path(...)`, it supplies
139
224
  the source Binding Set for the query. It does not parse plain strings as
140
225
  addresses.
141
226
 
227
+ Library callers must explicitly authorize dynamic activation with either
228
+ `addressActivation: "trusted"` or a constrained policy containing structural
229
+ `allowedRoots`, selector capabilities, contextual-root permission, and optional
230
+ depth and binding limits. The CLI and browser workbench deliberately use trusted
231
+ activation because they are local fixture-testing tools. Applications accepting
232
+ queries or Address values from another trust boundary should use a constrained
233
+ policy or a pre-scoped namespace view.
234
+ SANSA Address Literal values remain selectable as values with `#sansa` and
235
+ `%sansa`; those filters do not activate the address. Activation is always
236
+ explicit through `path(...)`.
237
+
142
238
  `fallback(primary, replacement)` handles missing primary values only. The
143
239
  replacement expression is evaluated only when the primary expression resolves no
144
240
  scalar value; explicit null, cardinality, type, and comparison errors remain
@@ -150,6 +246,22 @@ keys select positions. A missing target returns an empty Binding Set, and the
150
246
  consuming expression decides whether that is acceptable. It does not parse
151
247
  traversal strings or perform collection joins.
152
248
 
249
+ `follow(reference)` explicitly traverses an AEON reference form to its target
250
+ binding for read-only evaluation. Without `follow(...)`, reference forms compare
251
+ by reference kind and canonical target path only. With `follow(...)`, the
252
+ followed target value is consumed by ordinary value semantics:
253
+
254
+ Concrete reference forms remain visible to representation filters such as
255
+ `%cloneReference` and `%pointerReference`. These filters select the reference
256
+ binding itself; they do not follow, clone, inline, or otherwise materialize the
257
+ target.
258
+
259
+ ```text
260
+ from $.targetClone
261
+ where follow(.) == 7
262
+ select follow(.)
263
+ ```
264
+
153
265
  `objectFrom(keys, values)` is an experimental transform-library helper. It
154
266
  pairs two ordered Binding Sets by position and constructs a derived object. Key
155
267
  bindings must expose unique string scalar values, value bindings must expose
package/docs/releasing.md CHANGED
@@ -23,8 +23,8 @@ Create a GitHub environment named `npm`. Add required reviewers to that
23
23
  environment if release approval should be explicit before publishing.
24
24
 
25
25
  The publish workflow runs when a GitHub Release is published. It verifies that
26
- the release tag matches the package version, so `package.json` version `0.9.0`
27
- must be released from tag `v0.9.0`.
26
+ the release tag matches the package version, so `package.json` version `X.Y.Z`
27
+ must be released from tag `vX.Y.Z`.
28
28
 
29
29
  ## Release steps
30
30
 
@@ -1,3 +1,38 @@
1
+ consent:toggle = yes
2
+ fallbackConsent:toggle = on
3
+ target:number = 7
4
+ targetClone:number = ~target
5
+ targetPointer:number = ~>target
6
+
7
+ types:object = {
8
+ color:hex = #ff00aa
9
+ colorCopy:hex = #ff00aa
10
+ mask:radix[16] = %ff00aa
11
+ octal:radix8 = %70
12
+ payload:encoding = &QmFzZTY0IQ==
13
+ version:sep[.] = ^0.11.0
14
+ released:date = 2026-07-25
15
+ window:time = 09:30:00Z
16
+ stamp:datetime = 2026-07-25T09:30:00Z
17
+ zone:zrut = 2026-07-25T09:30:00Z&Australia/Melbourne
18
+ count:int32 = 2
19
+ capacity:uint64 = 8
20
+ ratio:float64 = 2.5
21
+ aliasNumber:n = 9
22
+ approved:bool = true
23
+ note:trimtick = >`
24
+ hello trimtick
25
+ `
26
+ summary:prose = >`
27
+ hello prose
28
+ `
29
+ payloadBase64:base64 = &QmFzZTY0IQ==
30
+ payloadEmbed:embed = &QmFzZTY0IQ==
31
+ payloadInline:inline = &QmFzZTY0IQ==
32
+ semver:kadot = ^3.14.15
33
+ selector:sansa = $.inventory.items.*.sku
34
+ }
35
+
1
36
  inventory:object = {
2
37
  items:list<object> = [
3
38
  @{lane:string = "primary"}:object = {
@@ -56,14 +91,41 @@ table:object = {
56
91
  ]
57
92
  }
58
93
 
94
+ containers:object = {
95
+ record:obj = {
96
+ id:number = 1
97
+ }
98
+ packet:envelope = {
99
+ ok:boolean = true
100
+ }
101
+ compact:o = {
102
+ ok:boolean = true
103
+ }
104
+ series:list<number> = [1, 2]
105
+ pair:tuple = ("x", 1)
106
+ nodeValue:node = <tag("hello")>
107
+ }
108
+
59
109
  labels:list<object> = [
60
110
  {
61
- value:string = "z"
111
+ value:string = "zebre"
112
+ }
113
+ {
114
+ value:string = "éclair"
115
+ }
116
+ {
117
+ value:string = "adapter"
118
+ }
119
+ ]
120
+
121
+ parts:list<object> = [
122
+ {
123
+ value:string = "part-10"
62
124
  }
63
125
  {
64
- value:string = "ä"
126
+ value:string = "part-2"
65
127
  }
66
128
  {
67
- value:string = "a"
129
+ value:string = "part-1"
68
130
  }
69
131
  ]
@@ -89,6 +89,148 @@
89
89
  }
90
90
  },
91
91
  "children": [
92
+ {
93
+ "name": "consent",
94
+ "address": "$.consent",
95
+ "semanticType": "toggle",
96
+ "representationKind": "toggle",
97
+ "scalarKind": "toggle",
98
+ "value": "yes"
99
+ },
100
+ {
101
+ "name": "fallbackConsent",
102
+ "address": "$.fallbackConsent",
103
+ "semanticType": "toggle",
104
+ "representationKind": "toggle",
105
+ "scalarKind": "toggle",
106
+ "value": "on"
107
+ },
108
+ {
109
+ "name": "target",
110
+ "address": "$.target",
111
+ "semanticType": "number",
112
+ "representationKind": "number",
113
+ "value": 7
114
+ },
115
+ {
116
+ "name": "targetClone",
117
+ "address": "$.targetClone",
118
+ "semanticType": "number",
119
+ "representationKind": "cloneReference",
120
+ "scalarKind": "referenceForm",
121
+ "value": {
122
+ "type": "CloneReference",
123
+ "path": [
124
+ "target"
125
+ ],
126
+ "canonical": "~target"
127
+ }
128
+ },
129
+ {
130
+ "name": "targetPointer",
131
+ "address": "$.targetPointer",
132
+ "semanticType": "number",
133
+ "representationKind": "pointerReference",
134
+ "scalarKind": "referenceForm",
135
+ "value": {
136
+ "type": "PointerReference",
137
+ "path": [
138
+ "target"
139
+ ],
140
+ "canonical": "~>target"
141
+ }
142
+ },
143
+ {
144
+ "name": "types",
145
+ "address": "$.types",
146
+ "representationKind": "object",
147
+ "children": [
148
+ {
149
+ "name": "color",
150
+ "address": "$.types.color",
151
+ "semanticType": "hex",
152
+ "representationKind": "hex",
153
+ "scalarKind": "hex",
154
+ "value": "ff00aa"
155
+ },
156
+ {
157
+ "name": "colorCopy",
158
+ "address": "$.types.colorCopy",
159
+ "semanticType": "hex",
160
+ "representationKind": "hex",
161
+ "scalarKind": "hex",
162
+ "value": "ff00aa"
163
+ },
164
+ {
165
+ "name": "mask",
166
+ "address": "$.types.mask",
167
+ "semanticType": "radix[16]",
168
+ "representationKind": "radix",
169
+ "scalarKind": "radix",
170
+ "value": "ff00aa"
171
+ },
172
+ {
173
+ "name": "payload",
174
+ "address": "$.types.payload",
175
+ "semanticType": "encoding",
176
+ "representationKind": "encoding",
177
+ "scalarKind": "encoding",
178
+ "value": "QmFzZTY0IQ=="
179
+ },
180
+ {
181
+ "name": "version",
182
+ "address": "$.types.version",
183
+ "semanticType": "sep[.]",
184
+ "representationKind": "separator",
185
+ "scalarKind": "separator",
186
+ "value": "0.11.0"
187
+ },
188
+ {
189
+ "name": "released",
190
+ "address": "$.types.released",
191
+ "semanticType": "date",
192
+ "representationKind": "date",
193
+ "scalarKind": "date",
194
+ "value": "2026-07-25"
195
+ },
196
+ {
197
+ "name": "window",
198
+ "address": "$.types.window",
199
+ "semanticType": "time",
200
+ "representationKind": "time",
201
+ "scalarKind": "time",
202
+ "value": "09:30:00Z"
203
+ },
204
+ {
205
+ "name": "stamp",
206
+ "address": "$.types.stamp",
207
+ "semanticType": "datetime",
208
+ "representationKind": "datetime",
209
+ "scalarKind": "datetime",
210
+ "value": "2026-07-25T09:30:00Z"
211
+ },
212
+ {
213
+ "name": "zone",
214
+ "address": "$.types.zone",
215
+ "semanticType": "zrut",
216
+ "representationKind": "zrut",
217
+ "scalarKind": "zrut",
218
+ "value": "2026-07-25T09:30:00Z&Australia/Melbourne"
219
+ },
220
+ {
221
+ "name": "selector",
222
+ "address": "$.types.selector",
223
+ "semanticType": "sansa",
224
+ "representationKind": "sansa",
225
+ "scalarKind": "sansaAddress",
226
+ "value": {
227
+ "type": "SansaAddressLiteral",
228
+ "address": "$.inventory.items.*.sku",
229
+ "canonical": "$.inventory.items.*.sku"
230
+ }
231
+ }
232
+ ]
233
+ },
92
234
  {
93
235
  "name": "inventory",
94
236
  "address": "$.inventory",
@@ -632,7 +774,7 @@
632
774
  "address": "$.labels[0].value",
633
775
  "semanticType": "string",
634
776
  "representationKind": "string",
635
- "value": "z"
777
+ "value": "zebre"
636
778
  }
637
779
  ]
638
780
  },
@@ -646,7 +788,7 @@
646
788
  "address": "$.labels[1].value",
647
789
  "semanticType": "string",
648
790
  "representationKind": "string",
649
- "value": "ä"
791
+ "value": "éclair"
650
792
  }
651
793
  ]
652
794
  },
@@ -660,7 +802,56 @@
660
802
  "address": "$.labels[2].value",
661
803
  "semanticType": "string",
662
804
  "representationKind": "string",
663
- "value": "a"
805
+ "value": "adapter"
806
+ }
807
+ ]
808
+ }
809
+ ]
810
+ },
811
+ {
812
+ "name": "parts",
813
+ "address": "$.parts",
814
+ "representationKind": "list",
815
+ "children": [
816
+ {
817
+ "index": 0,
818
+ "address": "$.parts[0]",
819
+ "representationKind": "object",
820
+ "children": [
821
+ {
822
+ "name": "value",
823
+ "address": "$.parts[0].value",
824
+ "semanticType": "string",
825
+ "representationKind": "string",
826
+ "value": "part-10"
827
+ }
828
+ ]
829
+ },
830
+ {
831
+ "index": 1,
832
+ "address": "$.parts[1]",
833
+ "representationKind": "object",
834
+ "children": [
835
+ {
836
+ "name": "value",
837
+ "address": "$.parts[1].value",
838
+ "semanticType": "string",
839
+ "representationKind": "string",
840
+ "value": "part-2"
841
+ }
842
+ ]
843
+ },
844
+ {
845
+ "index": 2,
846
+ "address": "$.parts[2]",
847
+ "representationKind": "object",
848
+ "children": [
849
+ {
850
+ "name": "value",
851
+ "address": "$.parts[2].value",
852
+ "semanticType": "string",
853
+ "representationKind": "string",
854
+ "value": "part-1"
664
855
  }
665
856
  ]
666
857
  }