@altopelago/sansa 0.9.0 → 0.10.0
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.
- package/CHANGELOG.md +150 -0
- package/README.md +107 -4
- package/conformance/README.md +19 -0
- package/conformance/cts-claims.json +53 -0
- package/docs/api-contract.md +541 -14
- package/docs/capabilities.json +210 -4
- package/docs/instruction-tool.md +345 -0
- package/docs/mutate-policy.md +148 -0
- package/docs/query-tool.md +123 -11
- package/docs/releasing.md +2 -2
- package/fixtures/address-v1.json +9 -9
- package/fixtures/query-inventory.aeon +65 -3
- package/fixtures/query-inventory.json +194 -3
- package/package.json +9 -2
- package/scripts/cts-instruction.mjs +284 -0
- package/scripts/cts-mutate.mjs +476 -0
- package/scripts/cts-resolve.mjs +9 -0
- package/scripts/instruction.mjs +423 -0
- package/scripts/query-web.mjs +56 -0
- package/scripts/query.mjs +34 -2
- package/scripts/validate-cts-claims.mjs +133 -0
- package/src/index.d.ts +954 -3
- package/src/index.js +5505 -393
- package/stress-tests/address/valid.sansa-cases +3 -3
- package/tools/mutate-web/app.js +370 -0
- package/tools/mutate-web/examples.mjs +1280 -0
- package/tools/mutate-web/index.html +138 -0
- package/tools/mutate-web/runtime.mjs +1308 -0
- package/tools/mutate-web/styles.css +354 -0
- package/tools/query-web/app.js +8 -1
- package/tools/query-web/examples.mjs +131 -5
- package/tools/query-web/index.html +10 -0
- package/tools/query-web/runtime.mjs +100 -9
- package/tools/query-web/styles.css +1 -1
|
@@ -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.
|
package/docs/query-tool.md
CHANGED
|
@@ -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,
|
|
66
|
-
mode for debugging the resolver shape
|
|
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
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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,
|
|
113
|
-
|
|
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 `wtc` 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
|
|
134
|
-
|
|
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 `
|
|
27
|
-
must be released from tag `
|
|
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
|
|
package/fixtures/address-v1.json
CHANGED
|
@@ -163,10 +163,10 @@
|
|
|
163
163
|
"qualifierTerms": ["tuple"]
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
|
-
"id": "qualified-
|
|
167
|
-
"source": "$.version:sep[
|
|
166
|
+
"id": "qualified-string-clarifier",
|
|
167
|
+
"source": "$.version:sep[\".\"]",
|
|
168
168
|
"valid": true,
|
|
169
|
-
"canonical": "$.version:sep[
|
|
169
|
+
"canonical": "$.version:sep[\".\"]",
|
|
170
170
|
"exact": true,
|
|
171
171
|
"qualifierTerms": ["sep"]
|
|
172
172
|
},
|
|
@@ -179,18 +179,18 @@
|
|
|
179
179
|
"qualifierTerms": ["csv"]
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"id": "qualified-
|
|
183
|
-
"source": "$.key:string[\",\"
|
|
182
|
+
"id": "qualified-multiple-clarifier-values",
|
|
183
|
+
"source": "$.key:string[\",\",\".\"]",
|
|
184
184
|
"valid": true,
|
|
185
|
-
"canonical": "$.key:string[\",\"
|
|
185
|
+
"canonical": "$.key:string[\",\",\".\"]",
|
|
186
186
|
"exact": true,
|
|
187
187
|
"qualifierTerms": ["string"]
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
"id": "qualified-rich-host-surface",
|
|
191
|
-
"source": "$.claim:type<type>[arg]",
|
|
191
|
+
"source": "$.claim:type<type>[\"arg\"]",
|
|
192
192
|
"valid": true,
|
|
193
|
-
"canonical": "$.claim:type<type>[arg]",
|
|
193
|
+
"canonical": "$.claim:type<type>[\"arg\"]",
|
|
194
194
|
"exact": true,
|
|
195
195
|
"qualifierTerms": ["type"]
|
|
196
196
|
},
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"id": "reject-raw-comma-argument",
|
|
199
199
|
"source": "$.inventory:csv[,]",
|
|
200
200
|
"valid": false,
|
|
201
|
-
"error": "
|
|
201
|
+
"error": "SANSA_EXPECTED_QUALIFIER_ARGUMENT"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"id": "reject-empty-qualifier-argument",
|
|
@@ -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:wtc = 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 = "
|
|
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 = "
|
|
129
|
+
value:string = "part-1"
|
|
68
130
|
}
|
|
69
131
|
]
|