@altopelago/sansa 0.14.2 → 0.15.0-rc.2

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.
Files changed (156) hide show
  1. package/CHANGELOG.md +118 -1
  2. package/README.md +96 -1
  3. package/conformance/README.md +8 -0
  4. package/conformance/aeonic-anchor-claims.json +133 -0
  5. package/conformance/aeonic-arithmetic-claims.json +60 -0
  6. package/conformance/aeonic-clock-claims.json +123 -0
  7. package/conformance/aeonic-comparison-claims.json +37 -0
  8. package/conformance/aeonic-datetime-claims.json +110 -0
  9. package/conformance/aeonic-rational-arithmetic-claims.json +72 -0
  10. package/conformance/aeonic-temporal-claims.json +105 -0
  11. package/conformance/cts-claims.json +17 -3
  12. package/conformance/results/aeonic-anchor-capacity.json +452 -0
  13. package/conformance/results/aeonic-anchor-snapshot-0.1.json +39 -0
  14. package/conformance/results/aeonic-arithmetic-snapshot-0.1.json +28 -0
  15. package/conformance/results/aeonic-clock-all-snapshot-0.1.json +49 -0
  16. package/conformance/results/aeonic-clock-arithmetic-snapshot-0.1.json +48 -0
  17. package/conformance/results/aeonic-clock-capacity.json +326 -0
  18. package/conformance/results/aeonic-clock-relations-snapshot-0.1.json +48 -0
  19. package/conformance/results/aeonic-comparison-snapshot-0.1.json +19 -0
  20. package/conformance/results/aeonic-datetime-all-snapshot-0.1.json +47 -0
  21. package/conformance/results/aeonic-datetime-arithmetic-snapshot-0.1.json +46 -0
  22. package/conformance/results/aeonic-datetime-capacity.json +302 -0
  23. package/conformance/results/aeonic-datetime-relations-snapshot-0.1.json +46 -0
  24. package/conformance/results/aeonic-rational-arithmetic-capacity.json +100 -0
  25. package/conformance/results/aeonic-rational-arithmetic-snapshot-0.2.json +30 -0
  26. package/conformance/results/aeonic-temporal-all-property-addressing-2026-11-16.json +39 -0
  27. package/conformance/results/aeonic-temporal-all-snapshot-0.1.json +39 -0
  28. package/conformance/results/aeonic-temporal-calendar-property-addressing-2026-11-16.json +38 -0
  29. package/conformance/results/aeonic-temporal-calendar-snapshot-0.1.json +38 -0
  30. package/conformance/results/aeonic-temporal-capacity-property-addressing-2026-11-16.json +136 -0
  31. package/conformance/results/aeonic-temporal-capacity.json +136 -0
  32. package/conformance/results/aeonic-temporal-relations-property-addressing-2026-11-16.json +38 -0
  33. package/conformance/results/aeonic-temporal-relations-snapshot-0.1.json +38 -0
  34. package/docs/aeonic-arithmetic.md +126 -0
  35. package/docs/aeonic-comparison.md +123 -0
  36. package/docs/aeonic-rational-arithmetic.md +167 -0
  37. package/docs/aeonic-temporal-civil-anchor.md +89 -0
  38. package/docs/aeonic-temporal-civil-clock.md +100 -0
  39. package/docs/aeonic-temporal-civil-date.md +124 -0
  40. package/docs/aeonic-temporal-civil-datetime.md +122 -0
  41. package/docs/api-contract.md +130 -3
  42. package/docs/capabilities.json +106 -2
  43. package/docs/child-identity-activation.md +93 -0
  44. package/docs/child-identity-candidate.md +60 -0
  45. package/docs/child-identity-tooling.md +31 -0
  46. package/docs/child-identity-workflows.md +102 -0
  47. package/docs/empty-keys-candidate.md +29 -0
  48. package/docs/migration-0.15.0.md +75 -0
  49. package/docs/property-addressing-implementation.md +118 -0
  50. package/docs/property-resolve-implementation.md +105 -0
  51. package/docs/property-selector-support.md +65 -0
  52. package/docs/property-selectors-api.d.ts +43 -0
  53. package/docs/property-selectors-api.pyi +27 -0
  54. package/docs/property-selectors-api.rs +48 -0
  55. package/docs/property-selectors-contract.md +168 -0
  56. package/docs/query-tool.md +32 -1
  57. package/docs/selector-cursor.md +45 -0
  58. package/docs/unicode-hardening.md +41 -0
  59. package/fixtures/address-v1.json +4 -3
  60. package/fixtures/child-identity-workflows/README.md +9 -0
  61. package/fixtures/child-identity-workflows/moved.aeon +10 -0
  62. package/fixtures/child-identity-workflows/original.aeon +10 -0
  63. package/fixtures/child-identity-workflows/reordered.aeon +10 -0
  64. package/fixtures/child-identity-workflows/replacement.aeon +10 -0
  65. package/fixtures/child-identity-workflows/workflows.json +89 -0
  66. package/fixtures/property-namespace-candidate-v1.json +336 -0
  67. package/fixtures/property-parser-candidate-v1.json +705 -0
  68. package/fixtures/property-query-candidate-v1.json +398 -0
  69. package/fixtures/property-resolve-candidate-v1.json +2702 -0
  70. package/fixtures/unicode-hardening-v1.json +401 -0
  71. package/package.json +30 -3
  72. package/scripts/calibrate-aeonic-anchor-capacity.py +294 -0
  73. package/scripts/calibrate-aeonic-clock-capacity.py +62 -0
  74. package/scripts/calibrate-aeonic-datetime-capacity.py +76 -0
  75. package/scripts/calibrate-aeonic-rational-capacity.py +85 -0
  76. package/scripts/calibrate-aeonic-temporal-capacity.py +95 -0
  77. package/scripts/cts-address.mjs +6 -2
  78. package/scripts/cts-aeonic-anchor.mjs +21 -0
  79. package/scripts/cts-aeonic-arithmetic-adapter.mjs +25 -0
  80. package/scripts/cts-aeonic-arithmetic.mjs +24 -0
  81. package/scripts/cts-aeonic-clock.mjs +24 -0
  82. package/scripts/cts-aeonic-comparison-adapter.mjs +30 -0
  83. package/scripts/cts-aeonic-comparison.mjs +25 -0
  84. package/scripts/cts-aeonic-datetime.mjs +24 -0
  85. package/scripts/cts-aeonic-rational-arithmetic-adapter.mjs +25 -0
  86. package/scripts/cts-aeonic-rational-arithmetic.mjs +24 -0
  87. package/scripts/cts-aeonic-temporal-civil-anchor-adapter.mjs +26 -0
  88. package/scripts/cts-aeonic-temporal-civil-clock-adapter.mjs +28 -0
  89. package/scripts/cts-aeonic-temporal-civil-date-adapter.mjs +28 -0
  90. package/scripts/cts-aeonic-temporal-civil-datetime-adapter.mjs +28 -0
  91. package/scripts/cts-aeonic-temporal.mjs +24 -0
  92. package/scripts/cts-instruction.mjs +4 -2
  93. package/scripts/cts-mutate.mjs +3 -2
  94. package/scripts/cts-resolve.mjs +17 -2
  95. package/scripts/playground.mjs +110 -0
  96. package/src/aeonic-arithmetic-binding.js +61 -0
  97. package/src/aeonic-arithmetic.d.ts +84 -0
  98. package/src/aeonic-arithmetic.js +276 -0
  99. package/src/aeonic-comparison.d.ts +86 -0
  100. package/src/aeonic-comparison.js +274 -0
  101. package/src/aeonic-convenience.d.ts +30 -0
  102. package/src/aeonic-convenience.js +45 -0
  103. package/src/aeonic-exact-number.js +34 -0
  104. package/src/aeonic-json.js +45 -0
  105. package/src/aeonic-rational-arithmetic.d.ts +86 -0
  106. package/src/aeonic-rational-arithmetic.js +417 -0
  107. package/src/aeonic-rational-json.js +51 -0
  108. package/src/aeonic-temporal-civil-anchor.d.ts +54 -0
  109. package/src/aeonic-temporal-civil-anchor.js +316 -0
  110. package/src/aeonic-temporal-civil-clock.d.ts +124 -0
  111. package/src/aeonic-temporal-civil-clock.js +388 -0
  112. package/src/aeonic-temporal-civil-date.d.ts +123 -0
  113. package/src/aeonic-temporal-civil-date.js +310 -0
  114. package/src/aeonic-temporal-civil-datetime.d.ts +138 -0
  115. package/src/aeonic-temporal-civil-datetime.js +501 -0
  116. package/src/index.d.ts +84 -1
  117. package/src/index.js +828 -183
  118. package/src/property-address.js +196 -0
  119. package/src/property-resolve.js +132 -0
  120. package/src/query-metadata.d.ts +16 -0
  121. package/src/query-metadata.js +25 -0
  122. package/src/selector-cursor.d.ts +19 -0
  123. package/src/selector-cursor.js +79 -0
  124. package/stress-tests/address/invalid.sansa-cases +0 -2
  125. package/stress-tests/address/valid.sansa-cases +3 -0
  126. package/tools/mutate-web/examples.mjs +1 -1
  127. package/tools/mutate-web/runtime.mjs +0 -2
  128. package/tools/playground/README.md +165 -0
  129. package/tools/playground/accessibility.js +91 -0
  130. package/tools/playground/aeon-highlight.js +77 -0
  131. package/tools/playground/aeon-source-composer.js +1077 -0
  132. package/tools/playground/anchor-examples.mjs +16 -0
  133. package/tools/playground/arithmetic-evaluator.mjs +28 -0
  134. package/tools/playground/arithmetic-model.mjs +187 -0
  135. package/tools/playground/arithmetic-worker.mjs +14 -0
  136. package/tools/playground/arithmetic.css +1 -0
  137. package/tools/playground/arithmetic.html +29 -0
  138. package/tools/playground/arithmetic.mjs +110 -0
  139. package/tools/playground/clock-examples.mjs +16 -0
  140. package/tools/playground/datetime-examples.mjs +22 -0
  141. package/tools/playground/examples.mjs +46 -0
  142. package/tools/playground/index.html +174 -0
  143. package/tools/playground/local.css +25 -0
  144. package/tools/playground/namespace.mjs +39 -0
  145. package/tools/playground/sansa-playground.js +1565 -0
  146. package/tools/playground/site.css +3914 -0
  147. package/tools/playground/temporal-examples.mjs +20 -0
  148. package/tools/playground/walkthrough.js +90 -0
  149. package/tools/playground/website-origin.json +16 -0
  150. package/tools/query-web/IDENTITY_SELECTORS.md +44 -0
  151. package/tools/query-web/app.js +4 -0
  152. package/tools/query-web/index.html +4 -0
  153. package/tools/query-web/runtime.mjs +70 -19
  154. package/tools/workflows/property-playground-assertions.mjs +33 -0
  155. package/tools/workflows/verify-child-identities.mjs +137 -0
  156. package/tools/workflows/verify-property-playground.mjs +48 -0
@@ -0,0 +1,2702 @@
1
+ {
2
+ "meta": {
3
+ "suite_id": "property-resolve",
4
+ "lane": "sansa-properties",
5
+ "capability": "SANSA.Resolve",
6
+ "profile": "sansa-properties-read-only-candidate-0.2",
7
+ "sut_protocol": "sansa-properties-preparation-v0.1",
8
+ "spec_refs": [
9
+ "aeonite-specs/sources/sansa/v1/property-selectors-v1.aeon"
10
+ ]
11
+ },
12
+ "id": "property-resolve",
13
+ "title": "Property candidate resolve",
14
+ "tests": [
15
+ {
16
+ "id": "sansa-properties-root-hidden",
17
+ "description": "root hidden",
18
+ "input": {
19
+ "operation": "resolve",
20
+ "namespace": "properties",
21
+ "source": "$&key(\"outsideRootName\")"
22
+ },
23
+ "expected": {
24
+ "ok": true,
25
+ "bindings": [],
26
+ "addresses": [],
27
+ "calls": {
28
+ "scope": 1,
29
+ "key": 0
30
+ }
31
+ },
32
+ "covers": [
33
+ "key",
34
+ "scope"
35
+ ]
36
+ },
37
+ {
38
+ "id": "sansa-properties-empty-key",
39
+ "description": "empty key",
40
+ "input": {
41
+ "operation": "resolve",
42
+ "namespace": "properties",
43
+ "source": "$.[\"\"]&key(\"\")"
44
+ },
45
+ "expected": {
46
+ "ok": true,
47
+ "bindings": [
48
+ "empty"
49
+ ],
50
+ "addresses": [
51
+ "$.[\"\"]"
52
+ ],
53
+ "calls": {
54
+ "scope": 1,
55
+ "key": 1
56
+ }
57
+ },
58
+ "covers": [
59
+ "key"
60
+ ]
61
+ },
62
+ {
63
+ "id": "sansa-properties-empty-identity",
64
+ "description": "empty identity",
65
+ "input": {
66
+ "operation": "resolve",
67
+ "namespace": "properties",
68
+ "source": "$.\\emptyBinding\\&key(\"\")"
69
+ },
70
+ "expected": {
71
+ "ok": true,
72
+ "bindings": [
73
+ "empty"
74
+ ],
75
+ "addresses": [
76
+ "$.[\"\"]"
77
+ ]
78
+ },
79
+ "covers": [
80
+ "key",
81
+ "order-multiplicity"
82
+ ]
83
+ },
84
+ {
85
+ "id": "sansa-properties-anonymous-key",
86
+ "description": "anonymous key",
87
+ "input": {
88
+ "operation": "resolve",
89
+ "namespace": "properties",
90
+ "source": "$.list[0]&key(\"0\")"
91
+ },
92
+ "expected": {
93
+ "ok": true,
94
+ "bindings": [],
95
+ "addresses": [],
96
+ "calls": {
97
+ "scope": 1,
98
+ "key": 1
99
+ }
100
+ },
101
+ "covers": [
102
+ "key"
103
+ ]
104
+ },
105
+ {
106
+ "id": "sansa-properties-key-not-tag",
107
+ "description": "key not tag",
108
+ "input": {
109
+ "operation": "resolve",
110
+ "namespace": "properties",
111
+ "source": "$.document&key(\"catalog\")"
112
+ },
113
+ "expected": {
114
+ "ok": true,
115
+ "bindings": [],
116
+ "addresses": []
117
+ },
118
+ "covers": [
119
+ "key"
120
+ ]
121
+ },
122
+ {
123
+ "id": "sansa-properties-tag-not-key",
124
+ "description": "tag not key",
125
+ "input": {
126
+ "operation": "resolve",
127
+ "namespace": "properties",
128
+ "source": "$.document&tag(\"document\")"
129
+ },
130
+ "expected": {
131
+ "ok": true,
132
+ "bindings": [],
133
+ "addresses": [],
134
+ "calls": {
135
+ "scope": 2,
136
+ "nodeKind": 2,
137
+ "nodeTag": 1,
138
+ "nodeHeads": 1,
139
+ "headNext": 2,
140
+ "headEarlyClose": 0
141
+ }
142
+ },
143
+ "covers": [
144
+ "tag"
145
+ ]
146
+ },
147
+ {
148
+ "id": "sansa-properties-container-tag",
149
+ "description": "container tag",
150
+ "input": {
151
+ "operation": "resolve",
152
+ "namespace": "properties",
153
+ "source": "$.document&tag(\"catalog\")"
154
+ },
155
+ "expected": {
156
+ "ok": true,
157
+ "bindings": [
158
+ "doc"
159
+ ],
160
+ "addresses": [
161
+ "$.document"
162
+ ],
163
+ "calls": {
164
+ "scope": 2,
165
+ "nodeKind": 2,
166
+ "nodeTag": 1,
167
+ "nodeHeads": 1,
168
+ "headNext": 1,
169
+ "headEarlyClose": 1
170
+ }
171
+ },
172
+ "covers": [
173
+ "tag",
174
+ "iterator"
175
+ ]
176
+ },
177
+ {
178
+ "id": "sansa-properties-head-tag",
179
+ "description": "head tag",
180
+ "input": {
181
+ "operation": "resolve",
182
+ "namespace": "properties",
183
+ "source": "$.document[0]&headTag(\"catalog\")"
184
+ },
185
+ "expected": {
186
+ "ok": true,
187
+ "bindings": [
188
+ "docHead"
189
+ ],
190
+ "addresses": [
191
+ "$.document[0]"
192
+ ],
193
+ "calls": {
194
+ "scope": 1,
195
+ "nodeKind": 1,
196
+ "nodeTag": 1,
197
+ "nodeHeads": 0
198
+ }
199
+ },
200
+ "covers": [
201
+ "tag"
202
+ ]
203
+ },
204
+ {
205
+ "id": "sansa-properties-ordinary-tag",
206
+ "description": "ordinary tag",
207
+ "input": {
208
+ "operation": "resolve",
209
+ "namespace": "properties",
210
+ "source": "$.ordinary&tag(\"product\")"
211
+ },
212
+ "expected": {
213
+ "ok": true,
214
+ "bindings": [],
215
+ "addresses": [],
216
+ "calls": {
217
+ "scope": 1,
218
+ "nodeKind": 1,
219
+ "nodeTag": 0,
220
+ "nodeHeads": 0
221
+ }
222
+ },
223
+ "covers": [
224
+ "tag"
225
+ ]
226
+ },
227
+ {
228
+ "id": "sansa-properties-multiple-matching-heads",
229
+ "description": "multiple matching heads",
230
+ "input": {
231
+ "operation": "resolve",
232
+ "namespace": "properties",
233
+ "source": "$.multi&tag(\"right\")"
234
+ },
235
+ "expected": {
236
+ "ok": true,
237
+ "bindings": [
238
+ "multi"
239
+ ],
240
+ "addresses": [
241
+ "$.multi"
242
+ ],
243
+ "calls": {
244
+ "scope": 3,
245
+ "nodeKind": 3,
246
+ "nodeTag": 2,
247
+ "nodeHeads": 1,
248
+ "headNext": 2,
249
+ "headEarlyClose": 1
250
+ }
251
+ },
252
+ "covers": [
253
+ "tag",
254
+ "iterator",
255
+ "order-multiplicity"
256
+ ]
257
+ },
258
+ {
259
+ "id": "sansa-properties-cached-tag",
260
+ "description": "cached tag",
261
+ "input": {
262
+ "operation": "resolve",
263
+ "namespace": "properties",
264
+ "source": "$.multi&tag(\"stale\")"
265
+ },
266
+ "expected": {
267
+ "ok": true,
268
+ "bindings": [],
269
+ "addresses": [],
270
+ "calls": {
271
+ "scope": 4,
272
+ "nodeKind": 4,
273
+ "nodeTag": 3,
274
+ "nodeHeads": 1,
275
+ "headNext": 4,
276
+ "headEarlyClose": 0
277
+ }
278
+ },
279
+ "covers": [
280
+ "tag"
281
+ ]
282
+ },
283
+ {
284
+ "id": "sansa-properties-not-retargeted",
285
+ "description": "not retargeted",
286
+ "input": {
287
+ "operation": "resolve",
288
+ "namespace": "properties",
289
+ "source": "$.multi&tag(\"right\")[0]&headTag(\"left\")"
290
+ },
291
+ "expected": {
292
+ "ok": true,
293
+ "bindings": [
294
+ "left"
295
+ ],
296
+ "addresses": [
297
+ "$.multi[0]"
298
+ ]
299
+ },
300
+ "covers": [
301
+ "tag"
302
+ ]
303
+ },
304
+ {
305
+ "id": "sansa-properties-empty-heads",
306
+ "description": "empty heads",
307
+ "input": {
308
+ "operation": "resolve",
309
+ "namespace": "properties",
310
+ "source": "$.zero&tag(\"x\")",
311
+ "options": {
312
+ "maxPropertyInspections": 1
313
+ }
314
+ },
315
+ "expected": {
316
+ "ok": true,
317
+ "bindings": [],
318
+ "addresses": [],
319
+ "calls": {
320
+ "scope": 1,
321
+ "nodeKind": 1,
322
+ "nodeHeads": 1,
323
+ "headNext": 1,
324
+ "nodeTag": 0
325
+ }
326
+ },
327
+ "covers": [
328
+ "tag",
329
+ "budget"
330
+ ]
331
+ },
332
+ {
333
+ "id": "sansa-properties-empty-tag-does-not-invent-tag",
334
+ "description": "empty tag does not invent tag",
335
+ "input": {
336
+ "operation": "resolve",
337
+ "namespace": "properties",
338
+ "source": "$.multi&tag(\"\")"
339
+ },
340
+ "expected": {
341
+ "ok": true,
342
+ "bindings": [],
343
+ "addresses": []
344
+ },
345
+ "covers": [
346
+ "tag"
347
+ ]
348
+ },
349
+ {
350
+ "id": "sansa-properties-unicode-composed",
351
+ "description": "unicode composed",
352
+ "input": {
353
+ "operation": "resolve",
354
+ "namespace": "properties",
355
+ "source": "$.*&key(\"\u00e9\")"
356
+ },
357
+ "expected": {
358
+ "ok": true,
359
+ "bindings": [
360
+ "unicodeA"
361
+ ],
362
+ "addresses": [
363
+ "$.[\"\u00e9\"]"
364
+ ]
365
+ },
366
+ "covers": [
367
+ "unicode",
368
+ "key"
369
+ ]
370
+ },
371
+ {
372
+ "id": "sansa-properties-unicode-decomposed",
373
+ "description": "unicode decomposed",
374
+ "input": {
375
+ "operation": "resolve",
376
+ "namespace": "properties",
377
+ "source": "$.*&key(\"e\u0301\")"
378
+ },
379
+ "expected": {
380
+ "ok": true,
381
+ "bindings": [
382
+ "unicodeD"
383
+ ],
384
+ "addresses": [
385
+ "$.[\"e\u0301\"]"
386
+ ]
387
+ },
388
+ "covers": [
389
+ "unicode",
390
+ "key"
391
+ ]
392
+ },
393
+ {
394
+ "id": "sansa-properties-unicode-casefold",
395
+ "description": "unicode casefold",
396
+ "input": {
397
+ "operation": "resolve",
398
+ "namespace": "properties",
399
+ "source": "$.*&key(\"i\")"
400
+ },
401
+ "expected": {
402
+ "ok": true,
403
+ "bindings": [
404
+ "lower"
405
+ ],
406
+ "addresses": [
407
+ "$.[\"i\"]"
408
+ ]
409
+ },
410
+ "covers": [
411
+ "unicode",
412
+ "key"
413
+ ]
414
+ },
415
+ {
416
+ "id": "sansa-properties-unicode-turkish",
417
+ "description": "unicode turkish",
418
+ "input": {
419
+ "operation": "resolve",
420
+ "namespace": "properties",
421
+ "source": "$.*&key(\"\u0130\")"
422
+ },
423
+ "expected": {
424
+ "ok": true,
425
+ "bindings": [
426
+ "upper"
427
+ ],
428
+ "addresses": [
429
+ "$.[\"\u0130\"]"
430
+ ]
431
+ },
432
+ "covers": [
433
+ "unicode",
434
+ "key"
435
+ ]
436
+ },
437
+ {
438
+ "id": "sansa-properties-unicode-literal-pattern",
439
+ "description": "unicode literal pattern",
440
+ "input": {
441
+ "operation": "resolve",
442
+ "namespace": "properties",
443
+ "source": "$.*&key(\"*?\")"
444
+ },
445
+ "expected": {
446
+ "ok": true,
447
+ "bindings": [
448
+ "wild"
449
+ ],
450
+ "addresses": [
451
+ "$.[\"*?\"]"
452
+ ]
453
+ },
454
+ "covers": [
455
+ "unicode",
456
+ "key"
457
+ ]
458
+ },
459
+ {
460
+ "id": "sansa-properties-unicode-quoted-string",
461
+ "description": "unicode quoted string",
462
+ "input": {
463
+ "operation": "resolve",
464
+ "namespace": "properties",
465
+ "source": "$.*&key(\"a\\\"b\\\\c\")"
466
+ },
467
+ "expected": {
468
+ "ok": true,
469
+ "bindings": [
470
+ "escaped"
471
+ ],
472
+ "addresses": [
473
+ "$.[\"a\\\"b\\\\c\"]"
474
+ ]
475
+ },
476
+ "covers": [
477
+ "unicode",
478
+ "key"
479
+ ]
480
+ },
481
+ {
482
+ "id": "sansa-properties-unicode-space-key",
483
+ "description": "unicode space key",
484
+ "input": {
485
+ "operation": "resolve",
486
+ "namespace": "properties",
487
+ "source": "$.*&key(\"a b\")"
488
+ },
489
+ "expected": {
490
+ "ok": true,
491
+ "bindings": [
492
+ "space"
493
+ ],
494
+ "addresses": [
495
+ "$.[\"a b\"]"
496
+ ]
497
+ },
498
+ "covers": [
499
+ "unicode",
500
+ "key"
501
+ ]
502
+ },
503
+ {
504
+ "id": "sansa-properties-scope-root-key",
505
+ "description": "scope root key",
506
+ "input": {
507
+ "operation": "resolve",
508
+ "namespace": "properties",
509
+ "source": "$&key(\"document\")",
510
+ "rebasedRoot": "doc"
511
+ },
512
+ "expected": {
513
+ "ok": true,
514
+ "bindings": [],
515
+ "addresses": [],
516
+ "calls": {
517
+ "scope": 1,
518
+ "key": 0
519
+ }
520
+ },
521
+ "covers": [
522
+ "scope"
523
+ ]
524
+ },
525
+ {
526
+ "id": "sansa-properties-scope-root-tag",
527
+ "description": "scope root tag",
528
+ "input": {
529
+ "operation": "resolve",
530
+ "namespace": "properties",
531
+ "source": "$&tag(\"catalog\")",
532
+ "rebasedRoot": "doc"
533
+ },
534
+ "expected": {
535
+ "ok": true,
536
+ "bindings": [
537
+ "doc"
538
+ ],
539
+ "addresses": [
540
+ "$.document"
541
+ ]
542
+ },
543
+ "covers": [
544
+ "scope",
545
+ "tag"
546
+ ]
547
+ },
548
+ {
549
+ "id": "sansa-properties-context-key",
550
+ "description": "context key",
551
+ "input": {
552
+ "operation": "resolve",
553
+ "namespace": "properties",
554
+ "source": "?&key(\"document\")",
555
+ "contextualRoot": "doc"
556
+ },
557
+ "expected": {
558
+ "ok": true,
559
+ "bindings": [],
560
+ "addresses": [],
561
+ "calls": {
562
+ "scope": 1,
563
+ "key": 0
564
+ }
565
+ },
566
+ "covers": [
567
+ "scope"
568
+ ]
569
+ },
570
+ {
571
+ "id": "sansa-properties-context-tag",
572
+ "description": "context tag",
573
+ "input": {
574
+ "operation": "resolve",
575
+ "namespace": "properties",
576
+ "source": "?&tag(\"catalog\")",
577
+ "contextualRoot": "doc"
578
+ },
579
+ "expected": {
580
+ "ok": true,
581
+ "bindings": [
582
+ "doc"
583
+ ],
584
+ "addresses": [
585
+ "$.document"
586
+ ]
587
+ },
588
+ "covers": [
589
+ "scope",
590
+ "tag"
591
+ ]
592
+ },
593
+ {
594
+ "id": "sansa-properties-parent-escape",
595
+ "description": "parent escape",
596
+ "input": {
597
+ "operation": "resolve",
598
+ "namespace": "properties",
599
+ "source": "?.^&key(\"outsideRootName\")",
600
+ "contextualRoot": "doc",
601
+ "options": {
602
+ "allowParentFromEffectiveRoot": true
603
+ }
604
+ },
605
+ "expected": {
606
+ "ok": false,
607
+ "bindings": [],
608
+ "addresses": [],
609
+ "error": "SANSA_RESOLVE_PROPERTY_SCOPE_VIOLATION",
610
+ "calls": {
611
+ "scope": 1,
612
+ "key": 0
613
+ }
614
+ },
615
+ "covers": [
616
+ "scope"
617
+ ]
618
+ },
619
+ {
620
+ "id": "sansa-properties-attribute-root",
621
+ "description": "attribute root",
622
+ "input": {
623
+ "operation": "resolve",
624
+ "namespace": "properties",
625
+ "source": "$.document.@&key(\"fakeAttributes\")"
626
+ },
627
+ "expected": {
628
+ "ok": true,
629
+ "bindings": [],
630
+ "addresses": [],
631
+ "calls": {
632
+ "scope": 1,
633
+ "key": 0
634
+ }
635
+ },
636
+ "covers": [
637
+ "scope"
638
+ ]
639
+ },
640
+ {
641
+ "id": "sansa-properties-attribute-child",
642
+ "description": "attribute child",
643
+ "input": {
644
+ "operation": "resolve",
645
+ "namespace": "properties",
646
+ "source": "$.document.@.unit&key(\"unit\")"
647
+ },
648
+ "expected": {
649
+ "ok": true,
650
+ "bindings": [
651
+ "unit"
652
+ ],
653
+ "addresses": [
654
+ "$.document.@.unit"
655
+ ]
656
+ },
657
+ "covers": [
658
+ "scope",
659
+ "key"
660
+ ]
661
+ },
662
+ {
663
+ "id": "sansa-properties-local-root",
664
+ "description": "local root",
665
+ "input": {
666
+ "operation": "resolve",
667
+ "namespace": "properties",
668
+ "source": "$.document.<\"private\">&key(\"fakePrivate\")"
669
+ },
670
+ "expected": {
671
+ "ok": true,
672
+ "bindings": [],
673
+ "addresses": [],
674
+ "calls": {
675
+ "scope": 1,
676
+ "key": 0
677
+ }
678
+ },
679
+ "covers": [
680
+ "scope"
681
+ ]
682
+ },
683
+ {
684
+ "id": "sansa-properties-local-child",
685
+ "description": "local child",
686
+ "input": {
687
+ "operation": "resolve",
688
+ "namespace": "properties",
689
+ "source": "$.document.<\"private\">.secret&key(\"secret\")"
690
+ },
691
+ "expected": {
692
+ "ok": true,
693
+ "bindings": [
694
+ "secret"
695
+ ],
696
+ "addresses": [
697
+ "$.document.<\"private\">.secret"
698
+ ]
699
+ },
700
+ "covers": [
701
+ "scope",
702
+ "key"
703
+ ]
704
+ },
705
+ {
706
+ "id": "sansa-properties-repeated-root",
707
+ "description": "repeated root",
708
+ "input": {
709
+ "operation": "resolve",
710
+ "namespace": "properties",
711
+ "source": "$.*.^&key(\"outsideRootName\")"
712
+ },
713
+ "expected": {
714
+ "ok": true,
715
+ "bindings": [],
716
+ "addresses": [],
717
+ "calls": {
718
+ "scope": 13,
719
+ "key": 0
720
+ }
721
+ },
722
+ "covers": [
723
+ "scope",
724
+ "order-multiplicity"
725
+ ]
726
+ },
727
+ {
728
+ "id": "sansa-properties-repeated-occurrence",
729
+ "description": "repeated occurrence",
730
+ "input": {
731
+ "operation": "resolve",
732
+ "namespace": "properties",
733
+ "source": "$.*.^.document&key(\"document\")"
734
+ },
735
+ "expected": {
736
+ "ok": true,
737
+ "bindings": [
738
+ "doc",
739
+ "doc",
740
+ "doc",
741
+ "doc",
742
+ "doc",
743
+ "doc",
744
+ "doc",
745
+ "doc",
746
+ "doc",
747
+ "doc",
748
+ "doc",
749
+ "doc",
750
+ "doc"
751
+ ],
752
+ "addresses": [
753
+ "$.document",
754
+ "$.document",
755
+ "$.document",
756
+ "$.document",
757
+ "$.document",
758
+ "$.document",
759
+ "$.document",
760
+ "$.document",
761
+ "$.document",
762
+ "$.document",
763
+ "$.document",
764
+ "$.document",
765
+ "$.document"
766
+ ],
767
+ "calls": {
768
+ "scope": 13,
769
+ "key": 13
770
+ }
771
+ },
772
+ "covers": [
773
+ "order-multiplicity"
774
+ ]
775
+ },
776
+ {
777
+ "id": "sansa-properties-wrong-owner",
778
+ "description": "wrong owner",
779
+ "input": {
780
+ "operation": "resolve",
781
+ "namespace": "properties",
782
+ "source": "$.multi&tag(\"catalog\")",
783
+ "faults": [
784
+ {
785
+ "callback": "nodeHeads",
786
+ "binding": "multi",
787
+ "action": "return",
788
+ "value": [
789
+ "docHead"
790
+ ]
791
+ }
792
+ ]
793
+ },
794
+ "expected": {
795
+ "ok": false,
796
+ "bindings": [],
797
+ "addresses": [],
798
+ "error": "SANSA_RESOLVE_PROPERTY_SCOPE_VIOLATION",
799
+ "calls": {
800
+ "scope": 2,
801
+ "nodeTag": 0,
802
+ "headEarlyClose": 1
803
+ }
804
+ },
805
+ "covers": [
806
+ "scope",
807
+ "ownership"
808
+ ]
809
+ },
810
+ {
811
+ "id": "sansa-properties-foreign-head",
812
+ "description": "foreign head",
813
+ "input": {
814
+ "operation": "resolve",
815
+ "namespace": "properties",
816
+ "source": "$.multi&tag(\"right\")",
817
+ "faults": [
818
+ {
819
+ "callback": "nodeHeads",
820
+ "binding": "multi",
821
+ "action": "return",
822
+ "value": [
823
+ "foreignHead"
824
+ ]
825
+ }
826
+ ]
827
+ },
828
+ "expected": {
829
+ "ok": false,
830
+ "bindings": [],
831
+ "addresses": [],
832
+ "error": "SANSA_RESOLVE_PROPERTY_SCOPE_VIOLATION",
833
+ "calls": {
834
+ "scope": 2,
835
+ "nodeTag": 0,
836
+ "headEarlyClose": 1
837
+ }
838
+ },
839
+ "covers": [
840
+ "ownership"
841
+ ]
842
+ },
843
+ {
844
+ "id": "sansa-properties-bad-key",
845
+ "description": "bad key",
846
+ "input": {
847
+ "operation": "resolve",
848
+ "namespace": "properties",
849
+ "source": "$.document&key(\"document\")",
850
+ "faults": [
851
+ {
852
+ "callback": "key",
853
+ "binding": "doc",
854
+ "action": "return",
855
+ "value": 3
856
+ }
857
+ ]
858
+ },
859
+ "expected": {
860
+ "ok": false,
861
+ "bindings": [],
862
+ "addresses": [],
863
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA"
864
+ },
865
+ "covers": [
866
+ "key",
867
+ "scope"
868
+ ]
869
+ },
870
+ {
871
+ "id": "sansa-properties-bad-tag",
872
+ "description": "bad tag",
873
+ "input": {
874
+ "operation": "resolve",
875
+ "namespace": "properties",
876
+ "source": "$.document&tag(\"catalog\")",
877
+ "faults": [
878
+ {
879
+ "callback": "nodeTag",
880
+ "binding": "docHead",
881
+ "action": "return",
882
+ "value": {}
883
+ }
884
+ ]
885
+ },
886
+ "expected": {
887
+ "ok": false,
888
+ "bindings": [],
889
+ "addresses": [],
890
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA"
891
+ },
892
+ "covers": [
893
+ "tag",
894
+ "scope"
895
+ ]
896
+ },
897
+ {
898
+ "id": "sansa-properties-wrong-head-kind",
899
+ "description": "wrong head kind",
900
+ "input": {
901
+ "operation": "resolve",
902
+ "namespace": "properties",
903
+ "source": "$.multi&tag(\"right\")",
904
+ "faults": [
905
+ {
906
+ "callback": "nodeKind",
907
+ "binding": "left",
908
+ "action": "return",
909
+ "value": "Other"
910
+ }
911
+ ]
912
+ },
913
+ "expected": {
914
+ "ok": false,
915
+ "bindings": [],
916
+ "addresses": [],
917
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA"
918
+ },
919
+ "covers": [
920
+ "tag",
921
+ "scope"
922
+ ]
923
+ },
924
+ {
925
+ "id": "sansa-properties-false-root",
926
+ "description": "false root",
927
+ "input": {
928
+ "operation": "resolve",
929
+ "namespace": "properties",
930
+ "source": "$.document&key(\"document\")",
931
+ "faults": [
932
+ {
933
+ "callback": "scope",
934
+ "binding": "doc",
935
+ "action": "return",
936
+ "value": "root"
937
+ }
938
+ ]
939
+ },
940
+ "expected": {
941
+ "ok": false,
942
+ "bindings": [],
943
+ "addresses": [],
944
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA"
945
+ },
946
+ "covers": [
947
+ "tag",
948
+ "scope"
949
+ ]
950
+ },
951
+ {
952
+ "id": "sansa-properties-false-inside",
953
+ "description": "false inside",
954
+ "input": {
955
+ "operation": "resolve",
956
+ "namespace": "properties",
957
+ "source": "$&key(\"outsideRootName\")",
958
+ "faults": [
959
+ {
960
+ "callback": "scope",
961
+ "binding": "r",
962
+ "action": "return",
963
+ "value": "inside"
964
+ }
965
+ ]
966
+ },
967
+ "expected": {
968
+ "ok": false,
969
+ "bindings": [],
970
+ "addresses": [],
971
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA"
972
+ },
973
+ "covers": [
974
+ "tag",
975
+ "scope"
976
+ ]
977
+ },
978
+ {
979
+ "id": "sansa-properties-callback-throw",
980
+ "description": "callback throw",
981
+ "input": {
982
+ "operation": "resolve",
983
+ "namespace": "properties",
984
+ "source": "$.document&key(\"document\")",
985
+ "faults": [
986
+ {
987
+ "callback": "key",
988
+ "binding": "doc",
989
+ "action": "throw",
990
+ "value": "secret exception text"
991
+ }
992
+ ]
993
+ },
994
+ "expected": {
995
+ "ok": false,
996
+ "bindings": [],
997
+ "addresses": [],
998
+ "error": "SANSA_RESOLVE_PROPERTY_ADAPTER_ERROR",
999
+ "calls": {
1000
+ "scope": 1,
1001
+ "key": 1
1002
+ }
1003
+ },
1004
+ "covers": [
1005
+ "key"
1006
+ ]
1007
+ },
1008
+ {
1009
+ "id": "sansa-properties-iterator-throw",
1010
+ "description": "iterator throw",
1011
+ "input": {
1012
+ "operation": "resolve",
1013
+ "namespace": "properties",
1014
+ "source": "$.multi&tag(\"right\")",
1015
+ "faults": [
1016
+ {
1017
+ "callback": "headNext",
1018
+ "binding": "multi",
1019
+ "action": "throw",
1020
+ "at": 2,
1021
+ "value": "secret exception text"
1022
+ }
1023
+ ]
1024
+ },
1025
+ "expected": {
1026
+ "ok": false,
1027
+ "bindings": [],
1028
+ "addresses": [],
1029
+ "error": "SANSA_RESOLVE_PROPERTY_ADAPTER_ERROR",
1030
+ "calls": {
1031
+ "scope": 2,
1032
+ "nodeTag": 1,
1033
+ "headNext": 2,
1034
+ "headEarlyClose": 1
1035
+ }
1036
+ },
1037
+ "covers": [
1038
+ "iterator"
1039
+ ]
1040
+ },
1041
+ {
1042
+ "id": "sansa-properties-no-scope",
1043
+ "description": "no scope",
1044
+ "input": {
1045
+ "operation": "resolve",
1046
+ "namespace": "properties",
1047
+ "source": "$.missing&key(\"x\")",
1048
+ "omit": [
1049
+ "scope"
1050
+ ]
1051
+ },
1052
+ "expected": {
1053
+ "ok": false,
1054
+ "bindings": [],
1055
+ "addresses": [],
1056
+ "error": "SANSA_RESOLVE_UNSUPPORTED_PROPERTY_SCOPE",
1057
+ "calls": {
1058
+ "scope": 0,
1059
+ "key": 0,
1060
+ "nodeHeads": 0,
1061
+ "children": 0
1062
+ }
1063
+ },
1064
+ "covers": [
1065
+ "preflight"
1066
+ ]
1067
+ },
1068
+ {
1069
+ "id": "sansa-properties-no-key",
1070
+ "description": "no key",
1071
+ "input": {
1072
+ "operation": "resolve",
1073
+ "namespace": "properties",
1074
+ "source": "$.missing&key(\"x\")",
1075
+ "omit": [
1076
+ "key"
1077
+ ]
1078
+ },
1079
+ "expected": {
1080
+ "ok": false,
1081
+ "bindings": [],
1082
+ "addresses": [],
1083
+ "error": "SANSA_RESOLVE_UNSUPPORTED_KEY",
1084
+ "calls": {
1085
+ "scope": 0,
1086
+ "key": 0,
1087
+ "nodeHeads": 0,
1088
+ "children": 0
1089
+ }
1090
+ },
1091
+ "covers": [
1092
+ "preflight"
1093
+ ]
1094
+ },
1095
+ {
1096
+ "id": "sansa-properties-partial-tag",
1097
+ "description": "partial tag",
1098
+ "input": {
1099
+ "operation": "resolve",
1100
+ "namespace": "properties",
1101
+ "source": "$.missing&tag(\"x\")",
1102
+ "omit": [
1103
+ "nodeHeads"
1104
+ ]
1105
+ },
1106
+ "expected": {
1107
+ "ok": false,
1108
+ "bindings": [],
1109
+ "addresses": [],
1110
+ "error": "SANSA_RESOLVE_UNSUPPORTED_TAG",
1111
+ "calls": {
1112
+ "scope": 0,
1113
+ "key": 0,
1114
+ "nodeHeads": 0,
1115
+ "children": 0
1116
+ }
1117
+ },
1118
+ "covers": [
1119
+ "preflight"
1120
+ ]
1121
+ },
1122
+ {
1123
+ "id": "sansa-properties-capability-after-empty-filter",
1124
+ "description": "capability after empty filter",
1125
+ "input": {
1126
+ "operation": "resolve",
1127
+ "namespace": "properties",
1128
+ "source": "$.document&key(\"absent\")&tag(\"catalog\")",
1129
+ "omit": [
1130
+ "nodeTag"
1131
+ ]
1132
+ },
1133
+ "expected": {
1134
+ "ok": false,
1135
+ "bindings": [],
1136
+ "addresses": [],
1137
+ "error": "SANSA_RESOLVE_UNSUPPORTED_TAG",
1138
+ "calls": {
1139
+ "scope": 0,
1140
+ "key": 0,
1141
+ "children": 0
1142
+ }
1143
+ },
1144
+ "covers": [
1145
+ "preflight"
1146
+ ]
1147
+ },
1148
+ {
1149
+ "id": "sansa-properties-root-before-capability",
1150
+ "description": "root before capability",
1151
+ "input": {
1152
+ "operation": "resolve",
1153
+ "namespace": "properties",
1154
+ "source": "$&key(\"x\")",
1155
+ "omit": [
1156
+ "key"
1157
+ ],
1158
+ "invalidRoot": true
1159
+ },
1160
+ "expected": {
1161
+ "ok": false,
1162
+ "bindings": [],
1163
+ "addresses": [],
1164
+ "error": "SANSA_RESOLVE_MISSING_ROOT",
1165
+ "calls": {
1166
+ "scope": 0,
1167
+ "key": 0
1168
+ }
1169
+ },
1170
+ "covers": [
1171
+ "preflight"
1172
+ ]
1173
+ },
1174
+ {
1175
+ "id": "sansa-properties-invalid-limit-true",
1176
+ "description": "invalid limit true",
1177
+ "input": {
1178
+ "operation": "resolve",
1179
+ "namespace": "properties",
1180
+ "source": "$.ordinary.tag",
1181
+ "options": {
1182
+ "maxPropertyInspections": true
1183
+ }
1184
+ },
1185
+ "expected": {
1186
+ "ok": false,
1187
+ "bindings": [],
1188
+ "addresses": [],
1189
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_LIMIT",
1190
+ "calls": {
1191
+ "root": 0,
1192
+ "scope": 0
1193
+ }
1194
+ },
1195
+ "covers": [
1196
+ "budget",
1197
+ "legacy"
1198
+ ]
1199
+ },
1200
+ {
1201
+ "id": "sansa-properties-invalid-limit--1",
1202
+ "description": "invalid limit 1",
1203
+ "input": {
1204
+ "operation": "resolve",
1205
+ "namespace": "properties",
1206
+ "source": "$.ordinary.tag",
1207
+ "options": {
1208
+ "maxPropertyInspections": -1
1209
+ }
1210
+ },
1211
+ "expected": {
1212
+ "ok": false,
1213
+ "bindings": [],
1214
+ "addresses": [],
1215
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_LIMIT",
1216
+ "calls": {
1217
+ "root": 0,
1218
+ "scope": 0
1219
+ }
1220
+ },
1221
+ "covers": [
1222
+ "budget",
1223
+ "legacy"
1224
+ ]
1225
+ },
1226
+ {
1227
+ "id": "sansa-properties-invalid-limit-0-5",
1228
+ "description": "invalid limit 0.5",
1229
+ "input": {
1230
+ "operation": "resolve",
1231
+ "namespace": "properties",
1232
+ "source": "$.ordinary.tag",
1233
+ "options": {
1234
+ "maxPropertyInspections": 0.5
1235
+ }
1236
+ },
1237
+ "expected": {
1238
+ "ok": false,
1239
+ "bindings": [],
1240
+ "addresses": [],
1241
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_LIMIT",
1242
+ "calls": {
1243
+ "root": 0,
1244
+ "scope": 0
1245
+ }
1246
+ },
1247
+ "covers": [
1248
+ "budget",
1249
+ "legacy"
1250
+ ]
1251
+ },
1252
+ {
1253
+ "id": "sansa-properties-invalid-limit-1000001",
1254
+ "description": "invalid limit 1000001",
1255
+ "input": {
1256
+ "operation": "resolve",
1257
+ "namespace": "properties",
1258
+ "source": "$.ordinary.tag",
1259
+ "options": {
1260
+ "maxPropertyInspections": 1000001
1261
+ }
1262
+ },
1263
+ "expected": {
1264
+ "ok": false,
1265
+ "bindings": [],
1266
+ "addresses": [],
1267
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_LIMIT",
1268
+ "calls": {
1269
+ "root": 0,
1270
+ "scope": 0
1271
+ }
1272
+ },
1273
+ "covers": [
1274
+ "budget",
1275
+ "legacy"
1276
+ ]
1277
+ },
1278
+ {
1279
+ "id": "sansa-properties-supported-empty-zero",
1280
+ "description": "supported empty zero",
1281
+ "input": {
1282
+ "operation": "resolve",
1283
+ "namespace": "properties",
1284
+ "source": "$.missing&key(\"x\")",
1285
+ "options": {
1286
+ "maxPropertyInspections": 0
1287
+ }
1288
+ },
1289
+ "expected": {
1290
+ "ok": true,
1291
+ "bindings": [],
1292
+ "addresses": [],
1293
+ "calls": {
1294
+ "scope": 0,
1295
+ "key": 0
1296
+ }
1297
+ },
1298
+ "covers": [
1299
+ "budget"
1300
+ ]
1301
+ },
1302
+ {
1303
+ "id": "sansa-properties-zero-before-metadata",
1304
+ "description": "zero before metadata",
1305
+ "input": {
1306
+ "operation": "resolve",
1307
+ "namespace": "properties",
1308
+ "source": "$.document&tag(\"catalog\")",
1309
+ "options": {
1310
+ "maxPropertyInspections": 0
1311
+ }
1312
+ },
1313
+ "expected": {
1314
+ "ok": false,
1315
+ "bindings": [],
1316
+ "addresses": [],
1317
+ "error": "SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED",
1318
+ "calls": {
1319
+ "scope": 0,
1320
+ "nodeKind": 0,
1321
+ "nodeHeads": 0
1322
+ },
1323
+ "limit": 0,
1324
+ "observed": 1,
1325
+ "budget": "maxPropertyInspections",
1326
+ "selectorIndex": 1
1327
+ },
1328
+ "covers": [
1329
+ "budget"
1330
+ ]
1331
+ },
1332
+ {
1333
+ "id": "sansa-properties-head-budget",
1334
+ "description": "head budget",
1335
+ "input": {
1336
+ "operation": "resolve",
1337
+ "namespace": "properties",
1338
+ "source": "$.multi&tag(\"right\")",
1339
+ "options": {
1340
+ "maxPropertyInspections": 2
1341
+ }
1342
+ },
1343
+ "expected": {
1344
+ "ok": false,
1345
+ "bindings": [],
1346
+ "addresses": [],
1347
+ "error": "SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED",
1348
+ "calls": {
1349
+ "scope": 2,
1350
+ "nodeKind": 2,
1351
+ "nodeTag": 1,
1352
+ "headNext": 2,
1353
+ "headEarlyClose": 1
1354
+ },
1355
+ "limit": 2,
1356
+ "observed": 3,
1357
+ "budget": "maxPropertyInspections",
1358
+ "selectorIndex": 1
1359
+ },
1360
+ "covers": [
1361
+ "budget",
1362
+ "iterator"
1363
+ ]
1364
+ },
1365
+ {
1366
+ "id": "sansa-properties-exact-budget",
1367
+ "description": "exact budget",
1368
+ "input": {
1369
+ "operation": "resolve",
1370
+ "namespace": "properties",
1371
+ "source": "$.multi&tag(\"right\")",
1372
+ "options": {
1373
+ "maxPropertyInspections": 3
1374
+ }
1375
+ },
1376
+ "expected": {
1377
+ "ok": true,
1378
+ "bindings": [
1379
+ "multi"
1380
+ ],
1381
+ "addresses": [
1382
+ "$.multi"
1383
+ ]
1384
+ },
1385
+ "covers": [
1386
+ "budget",
1387
+ "iterator"
1388
+ ]
1389
+ },
1390
+ {
1391
+ "id": "sansa-properties-terminal-probe",
1392
+ "description": "terminal probe",
1393
+ "input": {
1394
+ "operation": "resolve",
1395
+ "namespace": "properties",
1396
+ "source": "$.multi&tag(\"missing\")",
1397
+ "options": {
1398
+ "maxPropertyInspections": 4
1399
+ }
1400
+ },
1401
+ "expected": {
1402
+ "ok": true,
1403
+ "bindings": [],
1404
+ "addresses": [],
1405
+ "calls": {
1406
+ "scope": 4,
1407
+ "headNext": 4
1408
+ }
1409
+ },
1410
+ "covers": [
1411
+ "budget",
1412
+ "iterator"
1413
+ ]
1414
+ },
1415
+ {
1416
+ "id": "sansa-properties-intermediate-max-bindings",
1417
+ "description": "intermediate max bindings",
1418
+ "input": {
1419
+ "operation": "resolve",
1420
+ "namespace": "properties",
1421
+ "source": "$.*&key(\"document\")",
1422
+ "options": {
1423
+ "maxBindings": 1
1424
+ }
1425
+ },
1426
+ "expected": {
1427
+ "ok": false,
1428
+ "bindings": [],
1429
+ "addresses": [],
1430
+ "error": "SANSA_RESOLVE_BINDING_LIMIT_EXCEEDED",
1431
+ "calls": {
1432
+ "scope": 0,
1433
+ "key": 0
1434
+ }
1435
+ },
1436
+ "covers": [
1437
+ "budget",
1438
+ "legacy"
1439
+ ]
1440
+ },
1441
+ {
1442
+ "id": "sansa-properties-legacy-no-properties",
1443
+ "description": "legacy no properties",
1444
+ "input": {
1445
+ "operation": "resolve",
1446
+ "namespace": "properties",
1447
+ "source": "$.ordinary.tag",
1448
+ "omit": [
1449
+ "scope",
1450
+ "key",
1451
+ "nodeTag"
1452
+ ],
1453
+ "options": {
1454
+ "maxPropertyInspections": 0
1455
+ }
1456
+ },
1457
+ "expected": {
1458
+ "ok": true,
1459
+ "bindings": [
1460
+ "plainTag"
1461
+ ],
1462
+ "addresses": [
1463
+ "$.ordinary.tag"
1464
+ ],
1465
+ "calls": {
1466
+ "scope": 0,
1467
+ "key": 0
1468
+ }
1469
+ },
1470
+ "covers": [
1471
+ "legacy"
1472
+ ]
1473
+ },
1474
+ {
1475
+ "id": "sansa-properties-absent-node-tag",
1476
+ "description": "absent node tag",
1477
+ "input": {
1478
+ "operation": "resolve",
1479
+ "namespace": "properties",
1480
+ "source": "$.document[0]&headTag(\"catalog\")",
1481
+ "faults": [
1482
+ {
1483
+ "callback": "nodeTag",
1484
+ "binding": "docHead",
1485
+ "action": "absent",
1486
+ "value": null
1487
+ }
1488
+ ]
1489
+ },
1490
+ "expected": {
1491
+ "ok": true,
1492
+ "bindings": [],
1493
+ "addresses": [],
1494
+ "calls": {
1495
+ "scope": 1,
1496
+ "nodeTag": 1
1497
+ }
1498
+ },
1499
+ "covers": [
1500
+ "tag"
1501
+ ]
1502
+ },
1503
+ {
1504
+ "id": "sansa-properties-invalid-key-unicode",
1505
+ "description": "invalid key unicode",
1506
+ "input": {
1507
+ "operation": "resolve",
1508
+ "namespace": "properties",
1509
+ "source": "$.document&key(\"document\")",
1510
+ "faults": [
1511
+ {
1512
+ "callback": "key",
1513
+ "binding": "doc",
1514
+ "action": "return",
1515
+ "value": "\ud800"
1516
+ }
1517
+ ]
1518
+ },
1519
+ "expected": {
1520
+ "ok": false,
1521
+ "bindings": [],
1522
+ "addresses": [],
1523
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA",
1524
+ "calls": {
1525
+ "scope": 1,
1526
+ "key": 1
1527
+ }
1528
+ },
1529
+ "covers": [
1530
+ "unicode",
1531
+ "key"
1532
+ ]
1533
+ },
1534
+ {
1535
+ "id": "sansa-properties-integral-float-limit",
1536
+ "description": "integral float limit",
1537
+ "input": {
1538
+ "operation": "resolve",
1539
+ "namespace": "properties",
1540
+ "source": "$.document&key(\"document\")",
1541
+ "options": {
1542
+ "maxPropertyInspections": 1.0
1543
+ }
1544
+ },
1545
+ "expected": {
1546
+ "ok": true,
1547
+ "bindings": [
1548
+ "doc"
1549
+ ],
1550
+ "addresses": [
1551
+ "$.document"
1552
+ ],
1553
+ "calls": {
1554
+ "scope": 1,
1555
+ "key": 1
1556
+ }
1557
+ },
1558
+ "covers": [
1559
+ "budget"
1560
+ ]
1561
+ },
1562
+ {
1563
+ "id": "sansa-properties-negative-zero-limit",
1564
+ "description": "negative zero limit",
1565
+ "input": {
1566
+ "operation": "resolve",
1567
+ "namespace": "properties",
1568
+ "source": "$.missing&key(\"x\")",
1569
+ "options": {
1570
+ "maxPropertyInspections": -0.0
1571
+ }
1572
+ },
1573
+ "expected": {
1574
+ "ok": true,
1575
+ "bindings": [],
1576
+ "addresses": [],
1577
+ "calls": {
1578
+ "scope": 0,
1579
+ "key": 0
1580
+ }
1581
+ },
1582
+ "covers": [
1583
+ "budget"
1584
+ ]
1585
+ },
1586
+ {
1587
+ "id": "sansa-properties-noniterable-heads",
1588
+ "description": "noniterable heads",
1589
+ "input": {
1590
+ "operation": "resolve",
1591
+ "namespace": "properties",
1592
+ "source": "$.multi&tag(\"right\")",
1593
+ "faults": [
1594
+ {
1595
+ "callback": "nodeHeads",
1596
+ "binding": "multi",
1597
+ "action": "return",
1598
+ "value": {}
1599
+ }
1600
+ ]
1601
+ },
1602
+ "expected": {
1603
+ "ok": false,
1604
+ "bindings": [],
1605
+ "addresses": [],
1606
+ "error": "SANSA_RESOLVE_INVALID_PROPERTY_METADATA",
1607
+ "calls": {
1608
+ "scope": 1,
1609
+ "nodeKind": 1,
1610
+ "nodeHeads": 1,
1611
+ "headNext": 0
1612
+ }
1613
+ },
1614
+ "covers": [
1615
+ "iterator"
1616
+ ]
1617
+ },
1618
+ {
1619
+ "id": "sansa-properties-repeated-container-tag",
1620
+ "description": "repeated container tag",
1621
+ "input": {
1622
+ "operation": "resolve",
1623
+ "namespace": "properties",
1624
+ "source": "$.*.^.multi&tag(\"right\")"
1625
+ },
1626
+ "expected": {
1627
+ "ok": true,
1628
+ "bindings": [
1629
+ "multi",
1630
+ "multi",
1631
+ "multi",
1632
+ "multi",
1633
+ "multi",
1634
+ "multi",
1635
+ "multi",
1636
+ "multi",
1637
+ "multi",
1638
+ "multi",
1639
+ "multi",
1640
+ "multi",
1641
+ "multi"
1642
+ ],
1643
+ "addresses": [
1644
+ "$.multi",
1645
+ "$.multi",
1646
+ "$.multi",
1647
+ "$.multi",
1648
+ "$.multi",
1649
+ "$.multi",
1650
+ "$.multi",
1651
+ "$.multi",
1652
+ "$.multi",
1653
+ "$.multi",
1654
+ "$.multi",
1655
+ "$.multi",
1656
+ "$.multi"
1657
+ ],
1658
+ "calls": {
1659
+ "scope": 39,
1660
+ "nodeTag": 26,
1661
+ "headNext": 26,
1662
+ "headEarlyClose": 13
1663
+ }
1664
+ },
1665
+ "covers": [
1666
+ "tag",
1667
+ "iterator",
1668
+ "order-multiplicity"
1669
+ ]
1670
+ },
1671
+ {
1672
+ "id": "sansa-properties-unvisited-suffix",
1673
+ "description": "unvisited suffix",
1674
+ "input": {
1675
+ "operation": "resolve",
1676
+ "namespace": "properties",
1677
+ "source": "$.multi&tag(\"right\")",
1678
+ "faults": [
1679
+ {
1680
+ "callback": "nodeTag",
1681
+ "binding": "right2",
1682
+ "action": "throw",
1683
+ "value": "unvisited secret"
1684
+ }
1685
+ ]
1686
+ },
1687
+ "expected": {
1688
+ "ok": true,
1689
+ "bindings": [
1690
+ "multi"
1691
+ ],
1692
+ "addresses": [
1693
+ "$.multi"
1694
+ ],
1695
+ "calls": {
1696
+ "scope": 3,
1697
+ "nodeTag": 2,
1698
+ "headNext": 2,
1699
+ "headEarlyClose": 1
1700
+ }
1701
+ },
1702
+ "covers": [
1703
+ "tag",
1704
+ "iterator"
1705
+ ]
1706
+ },
1707
+ {
1708
+ "id": "sansa-properties-ast-forged-exact",
1709
+ "description": "ast forged exact",
1710
+ "input": {
1711
+ "operation": "resolve",
1712
+ "namespace": "properties",
1713
+ "ast": {
1714
+ "type": "SansaAddress",
1715
+ "root": {
1716
+ "type": "root",
1717
+ "kind": "absolute"
1718
+ },
1719
+ "selectors": [
1720
+ {
1721
+ "type": "member",
1722
+ "name": "document",
1723
+ "quoted": false
1724
+ },
1725
+ {
1726
+ "type": "propertyFilter",
1727
+ "property": "key",
1728
+ "value": "document"
1729
+ }
1730
+ ],
1731
+ "qualifierExpression": null,
1732
+ "canonical": "$.ordinary",
1733
+ "isExact": true
1734
+ }
1735
+ },
1736
+ "expected": {
1737
+ "ok": true,
1738
+ "bindings": [
1739
+ "doc"
1740
+ ],
1741
+ "addresses": [
1742
+ "$.document"
1743
+ ],
1744
+ "inputUnchanged": true
1745
+ },
1746
+ "covers": [
1747
+ "ast",
1748
+ "key"
1749
+ ]
1750
+ },
1751
+ {
1752
+ "id": "sansa-properties-ast-invalid-property",
1753
+ "description": "ast invalid property",
1754
+ "input": {
1755
+ "operation": "resolve",
1756
+ "namespace": "properties",
1757
+ "ast": {
1758
+ "type": "SansaAddress",
1759
+ "root": {
1760
+ "type": "root",
1761
+ "kind": "absolute"
1762
+ },
1763
+ "selectors": [
1764
+ {
1765
+ "type": "member",
1766
+ "name": "document",
1767
+ "quoted": false
1768
+ },
1769
+ {
1770
+ "type": "propertyFilter",
1771
+ "property": "Key",
1772
+ "value": "document"
1773
+ }
1774
+ ],
1775
+ "qualifierExpression": null,
1776
+ "canonical": "$.ordinary",
1777
+ "isExact": true
1778
+ }
1779
+ },
1780
+ "expected": {
1781
+ "ok": false,
1782
+ "bindings": [],
1783
+ "addresses": [],
1784
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
1785
+ "calls": {
1786
+ "root": 0,
1787
+ "scope": 0
1788
+ },
1789
+ "inputUnchanged": true
1790
+ },
1791
+ "covers": [
1792
+ "ast"
1793
+ ]
1794
+ },
1795
+ {
1796
+ "id": "sansa-properties-ast-invalid-value",
1797
+ "description": "ast invalid value",
1798
+ "input": {
1799
+ "operation": "resolve",
1800
+ "namespace": "properties",
1801
+ "ast": {
1802
+ "type": "SansaAddress",
1803
+ "root": {
1804
+ "type": "root",
1805
+ "kind": "absolute"
1806
+ },
1807
+ "selectors": [
1808
+ {
1809
+ "type": "member",
1810
+ "name": "document",
1811
+ "quoted": false
1812
+ },
1813
+ {
1814
+ "type": "propertyFilter",
1815
+ "property": "key",
1816
+ "value": 3
1817
+ }
1818
+ ],
1819
+ "qualifierExpression": null,
1820
+ "canonical": "$.ordinary",
1821
+ "isExact": true
1822
+ }
1823
+ },
1824
+ "expected": {
1825
+ "ok": false,
1826
+ "bindings": [],
1827
+ "addresses": [],
1828
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
1829
+ "calls": {
1830
+ "root": 0,
1831
+ "scope": 0
1832
+ },
1833
+ "inputUnchanged": true
1834
+ },
1835
+ "covers": [
1836
+ "ast"
1837
+ ]
1838
+ },
1839
+ {
1840
+ "id": "sansa-properties-ast-invalid-root",
1841
+ "description": "ast invalid root",
1842
+ "input": {
1843
+ "operation": "resolve",
1844
+ "namespace": "properties",
1845
+ "ast": {
1846
+ "type": "SansaAddress",
1847
+ "root": {
1848
+ "type": "root",
1849
+ "kind": "other"
1850
+ },
1851
+ "selectors": [
1852
+ {
1853
+ "type": "member",
1854
+ "name": "document",
1855
+ "quoted": false
1856
+ },
1857
+ {
1858
+ "type": "propertyFilter",
1859
+ "property": "key",
1860
+ "value": "document"
1861
+ }
1862
+ ],
1863
+ "qualifierExpression": null,
1864
+ "canonical": "$.ordinary",
1865
+ "isExact": true
1866
+ }
1867
+ },
1868
+ "expected": {
1869
+ "ok": false,
1870
+ "bindings": [],
1871
+ "addresses": [],
1872
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
1873
+ "calls": {
1874
+ "root": 0,
1875
+ "scope": 0
1876
+ },
1877
+ "inputUnchanged": true
1878
+ },
1879
+ "covers": [
1880
+ "ast"
1881
+ ]
1882
+ },
1883
+ {
1884
+ "id": "sansa-properties-ast-payload-bound",
1885
+ "description": "ast payload bound",
1886
+ "input": {
1887
+ "operation": "resolve",
1888
+ "namespace": "properties",
1889
+ "generate": {
1890
+ "kind": "payload",
1891
+ "count": 4097,
1892
+ "form": "ast"
1893
+ }
1894
+ },
1895
+ "expected": {
1896
+ "ok": false,
1897
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
1898
+ "causeCode": "SANSA_PROPERTY_LIMIT_EXCEEDED",
1899
+ "bindings": [],
1900
+ "addresses": [],
1901
+ "calls": {
1902
+ "root": 0,
1903
+ "scope": 0
1904
+ },
1905
+ "inputUnchanged": true
1906
+ },
1907
+ "covers": [
1908
+ "ast",
1909
+ "bounds"
1910
+ ]
1911
+ },
1912
+ {
1913
+ "id": "sansa-properties-ast-cycle",
1914
+ "description": "ast cycle",
1915
+ "input": {
1916
+ "operation": "resolve",
1917
+ "namespace": "properties",
1918
+ "ast": {
1919
+ "type": "SansaAddress",
1920
+ "root": {
1921
+ "type": "root",
1922
+ "kind": "absolute"
1923
+ },
1924
+ "selectors": [
1925
+ {
1926
+ "type": "member",
1927
+ "name": "document",
1928
+ "quoted": false
1929
+ },
1930
+ {
1931
+ "type": "propertyFilter",
1932
+ "property": "key",
1933
+ "value": "document"
1934
+ }
1935
+ ],
1936
+ "qualifierExpression": null,
1937
+ "canonical": "$.ordinary",
1938
+ "isExact": true
1939
+ },
1940
+ "astFault": "cycle"
1941
+ },
1942
+ "expected": {
1943
+ "ok": false,
1944
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
1945
+ "bindings": [],
1946
+ "addresses": [],
1947
+ "calls": {
1948
+ "root": 0,
1949
+ "scope": 0
1950
+ }
1951
+ },
1952
+ "covers": [
1953
+ "ast"
1954
+ ]
1955
+ },
1956
+ {
1957
+ "id": "sansa-properties-ast-accessor",
1958
+ "description": "ast accessor",
1959
+ "input": {
1960
+ "operation": "resolve",
1961
+ "namespace": "properties",
1962
+ "ast": {
1963
+ "type": "SansaAddress",
1964
+ "root": {
1965
+ "type": "root",
1966
+ "kind": "absolute"
1967
+ },
1968
+ "selectors": [
1969
+ {
1970
+ "type": "member",
1971
+ "name": "document",
1972
+ "quoted": false
1973
+ },
1974
+ {
1975
+ "type": "propertyFilter",
1976
+ "property": "key",
1977
+ "value": "document"
1978
+ }
1979
+ ],
1980
+ "qualifierExpression": null,
1981
+ "canonical": "$.ordinary",
1982
+ "isExact": true
1983
+ },
1984
+ "astFault": "accessor"
1985
+ },
1986
+ "expected": {
1987
+ "ok": false,
1988
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
1989
+ "bindings": [],
1990
+ "addresses": [],
1991
+ "calls": {
1992
+ "root": 0,
1993
+ "scope": 0
1994
+ },
1995
+ "astGetterCalls": 0
1996
+ },
1997
+ "covers": [
1998
+ "ast"
1999
+ ]
2000
+ },
2001
+ {
2002
+ "id": "sansa-properties-ast-forged-multiplicity",
2003
+ "description": "ast forged multiplicity",
2004
+ "input": {
2005
+ "operation": "resolve",
2006
+ "namespace": "properties",
2007
+ "ast": {
2008
+ "type": "SansaAddress",
2009
+ "root": {
2010
+ "type": "root",
2011
+ "kind": "absolute"
2012
+ },
2013
+ "selectors": [
2014
+ {
2015
+ "type": "member",
2016
+ "name": "document",
2017
+ "quoted": false
2018
+ },
2019
+ {
2020
+ "type": "position",
2021
+ "index": 0
2022
+ },
2023
+ {
2024
+ "type": "directExpansion"
2025
+ },
2026
+ {
2027
+ "type": "propertyFilter",
2028
+ "property": "tag",
2029
+ "value": "product"
2030
+ }
2031
+ ],
2032
+ "qualifierExpression": null,
2033
+ "canonical": "$.ordinary",
2034
+ "isExact": true
2035
+ }
2036
+ },
2037
+ "expected": {
2038
+ "ok": true,
2039
+ "bindings": [
2040
+ "apple",
2041
+ "orange"
2042
+ ],
2043
+ "addresses": [
2044
+ "$.document[0][0]",
2045
+ "$.document[0][2]"
2046
+ ],
2047
+ "inputUnchanged": true
2048
+ },
2049
+ "covers": [
2050
+ "ast",
2051
+ "tag",
2052
+ "order-multiplicity"
2053
+ ]
2054
+ },
2055
+ {
2056
+ "id": "sansa-properties-ast-selectors-bound",
2057
+ "description": "ast selectors bound",
2058
+ "input": {
2059
+ "operation": "resolve",
2060
+ "namespace": "properties",
2061
+ "generate": {
2062
+ "kind": "selectors",
2063
+ "count": 257,
2064
+ "form": "ast"
2065
+ }
2066
+ },
2067
+ "expected": {
2068
+ "ok": false,
2069
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
2070
+ "causeCode": "SANSA_PROPERTY_LIMIT_EXCEEDED",
2071
+ "bindings": [],
2072
+ "addresses": [],
2073
+ "calls": {
2074
+ "root": 0,
2075
+ "scope": 0
2076
+ },
2077
+ "inputUnchanged": true
2078
+ },
2079
+ "covers": [
2080
+ "ast",
2081
+ "bounds"
2082
+ ]
2083
+ },
2084
+ {
2085
+ "id": "sansa-properties-ast-canonical-bound",
2086
+ "description": "ast canonical bound",
2087
+ "input": {
2088
+ "operation": "resolve",
2089
+ "namespace": "properties",
2090
+ "generate": {
2091
+ "kind": "canonical",
2092
+ "count": 65537,
2093
+ "form": "ast"
2094
+ }
2095
+ },
2096
+ "expected": {
2097
+ "ok": false,
2098
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
2099
+ "causeCode": "SANSA_PROPERTY_LIMIT_EXCEEDED",
2100
+ "bindings": [],
2101
+ "addresses": [],
2102
+ "calls": {
2103
+ "root": 0,
2104
+ "scope": 0
2105
+ },
2106
+ "inputUnchanged": true
2107
+ },
2108
+ "covers": [
2109
+ "ast",
2110
+ "bounds"
2111
+ ]
2112
+ },
2113
+ {
2114
+ "id": "sansa-properties-ast-increased-position",
2115
+ "description": "ast increased position",
2116
+ "input": {
2117
+ "operation": "resolve",
2118
+ "namespace": "properties",
2119
+ "ast": {
2120
+ "type": "SansaAddress",
2121
+ "root": {
2122
+ "type": "root",
2123
+ "kind": "absolute"
2124
+ },
2125
+ "selectors": [
2126
+ {
2127
+ "type": "member",
2128
+ "name": "list",
2129
+ "quoted": false
2130
+ },
2131
+ {
2132
+ "type": "position",
2133
+ "index": 1000001
2134
+ },
2135
+ {
2136
+ "type": "propertyFilter",
2137
+ "property": "key",
2138
+ "value": "0"
2139
+ }
2140
+ ],
2141
+ "qualifierExpression": null,
2142
+ "canonical": "$.ordinary",
2143
+ "isExact": true
2144
+ },
2145
+ "options": {
2146
+ "parse": {
2147
+ "maxPositionIndex": 2000000
2148
+ }
2149
+ }
2150
+ },
2151
+ "expected": {
2152
+ "ok": true,
2153
+ "bindings": [],
2154
+ "addresses": [],
2155
+ "inputUnchanged": true
2156
+ },
2157
+ "covers": [
2158
+ "ast",
2159
+ "bounds"
2160
+ ]
2161
+ },
2162
+ {
2163
+ "id": "sansa-properties-ast-astral-bound-0",
2164
+ "description": "ast astral bound 0",
2165
+ "input": {
2166
+ "operation": "resolve",
2167
+ "namespace": "properties",
2168
+ "generate": {
2169
+ "kind": "payload",
2170
+ "count": 4096,
2171
+ "form": "ast",
2172
+ "scalar": "\ud83d\ude00"
2173
+ }
2174
+ },
2175
+ "expected": {
2176
+ "ok": true,
2177
+ "bindings": [],
2178
+ "addresses": [],
2179
+ "inputUnchanged": true,
2180
+ "calls": {
2181
+ "scope": 1,
2182
+ "key": 0
2183
+ }
2184
+ },
2185
+ "covers": [
2186
+ "ast",
2187
+ "bounds",
2188
+ "unicode"
2189
+ ]
2190
+ },
2191
+ {
2192
+ "id": "sansa-properties-ast-astral-bound-1",
2193
+ "description": "ast astral bound 1",
2194
+ "input": {
2195
+ "operation": "resolve",
2196
+ "namespace": "properties",
2197
+ "generate": {
2198
+ "kind": "payload",
2199
+ "count": 4097,
2200
+ "form": "ast",
2201
+ "scalar": "\ud83d\ude00"
2202
+ }
2203
+ },
2204
+ "expected": {
2205
+ "ok": false,
2206
+ "bindings": [],
2207
+ "addresses": [],
2208
+ "inputUnchanged": true,
2209
+ "error": "SANSA_RESOLVE_INVALID_ADDRESS",
2210
+ "causeCode": "SANSA_PROPERTY_LIMIT_EXCEEDED",
2211
+ "calls": {
2212
+ "root": 0,
2213
+ "scope": 0
2214
+ }
2215
+ },
2216
+ "covers": [
2217
+ "ast",
2218
+ "bounds",
2219
+ "unicode"
2220
+ ]
2221
+ },
2222
+ {
2223
+ "id": "sansa-properties-wide-miss-64",
2224
+ "description": "wide miss 64",
2225
+ "input": {
2226
+ "operation": "resolve",
2227
+ "namespace": "properties",
2228
+ "source": "$.multi&tag(\"right\")",
2229
+ "wideHeads": {
2230
+ "count": 64,
2231
+ "matchAt": "none"
2232
+ }
2233
+ },
2234
+ "expected": {
2235
+ "ok": true,
2236
+ "bindings": [],
2237
+ "addresses": [],
2238
+ "calls": {
2239
+ "scope": 65,
2240
+ "nodeKind": 65,
2241
+ "nodeTag": 64,
2242
+ "headNext": 65,
2243
+ "headEarlyClose": 0
2244
+ }
2245
+ },
2246
+ "covers": [
2247
+ "budget",
2248
+ "iterator"
2249
+ ]
2250
+ },
2251
+ {
2252
+ "id": "sansa-properties-wide-last-64",
2253
+ "description": "wide last 64",
2254
+ "input": {
2255
+ "operation": "resolve",
2256
+ "namespace": "properties",
2257
+ "source": "$.multi&tag(\"right\")",
2258
+ "wideHeads": {
2259
+ "count": 64,
2260
+ "matchAt": "last"
2261
+ },
2262
+ "options": {
2263
+ "maxPropertyInspections": 65
2264
+ }
2265
+ },
2266
+ "expected": {
2267
+ "ok": true,
2268
+ "bindings": [
2269
+ "multi"
2270
+ ],
2271
+ "addresses": [
2272
+ "$.multi"
2273
+ ],
2274
+ "calls": {
2275
+ "scope": 65,
2276
+ "nodeTag": 64,
2277
+ "headNext": 64,
2278
+ "headEarlyClose": 1
2279
+ }
2280
+ },
2281
+ "covers": [
2282
+ "budget",
2283
+ "iterator"
2284
+ ]
2285
+ },
2286
+ {
2287
+ "id": "sansa-properties-wide-budget-64",
2288
+ "description": "wide budget 64",
2289
+ "input": {
2290
+ "operation": "resolve",
2291
+ "namespace": "properties",
2292
+ "source": "$.multi&tag(\"right\")",
2293
+ "wideHeads": {
2294
+ "count": 64,
2295
+ "matchAt": "none"
2296
+ },
2297
+ "options": {
2298
+ "maxPropertyInspections": 2
2299
+ }
2300
+ },
2301
+ "expected": {
2302
+ "ok": false,
2303
+ "bindings": [],
2304
+ "addresses": [],
2305
+ "error": "SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED",
2306
+ "calls": {
2307
+ "scope": 2,
2308
+ "nodeTag": 1,
2309
+ "headNext": 2,
2310
+ "headEarlyClose": 1
2311
+ }
2312
+ },
2313
+ "covers": [
2314
+ "budget",
2315
+ "iterator"
2316
+ ]
2317
+ },
2318
+ {
2319
+ "id": "sansa-properties-wide-miss-128",
2320
+ "description": "wide miss 128",
2321
+ "input": {
2322
+ "operation": "resolve",
2323
+ "namespace": "properties",
2324
+ "source": "$.multi&tag(\"right\")",
2325
+ "wideHeads": {
2326
+ "count": 128,
2327
+ "matchAt": "none"
2328
+ }
2329
+ },
2330
+ "expected": {
2331
+ "ok": true,
2332
+ "bindings": [],
2333
+ "addresses": [],
2334
+ "calls": {
2335
+ "scope": 129,
2336
+ "nodeKind": 129,
2337
+ "nodeTag": 128,
2338
+ "headNext": 129,
2339
+ "headEarlyClose": 0
2340
+ }
2341
+ },
2342
+ "covers": [
2343
+ "budget",
2344
+ "iterator"
2345
+ ]
2346
+ },
2347
+ {
2348
+ "id": "sansa-properties-wide-last-128",
2349
+ "description": "wide last 128",
2350
+ "input": {
2351
+ "operation": "resolve",
2352
+ "namespace": "properties",
2353
+ "source": "$.multi&tag(\"right\")",
2354
+ "wideHeads": {
2355
+ "count": 128,
2356
+ "matchAt": "last"
2357
+ },
2358
+ "options": {
2359
+ "maxPropertyInspections": 129
2360
+ }
2361
+ },
2362
+ "expected": {
2363
+ "ok": true,
2364
+ "bindings": [
2365
+ "multi"
2366
+ ],
2367
+ "addresses": [
2368
+ "$.multi"
2369
+ ],
2370
+ "calls": {
2371
+ "scope": 129,
2372
+ "nodeTag": 128,
2373
+ "headNext": 128,
2374
+ "headEarlyClose": 1
2375
+ }
2376
+ },
2377
+ "covers": [
2378
+ "budget",
2379
+ "iterator"
2380
+ ]
2381
+ },
2382
+ {
2383
+ "id": "sansa-properties-wide-budget-128",
2384
+ "description": "wide budget 128",
2385
+ "input": {
2386
+ "operation": "resolve",
2387
+ "namespace": "properties",
2388
+ "source": "$.multi&tag(\"right\")",
2389
+ "wideHeads": {
2390
+ "count": 128,
2391
+ "matchAt": "none"
2392
+ },
2393
+ "options": {
2394
+ "maxPropertyInspections": 2
2395
+ }
2396
+ },
2397
+ "expected": {
2398
+ "ok": false,
2399
+ "bindings": [],
2400
+ "addresses": [],
2401
+ "error": "SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED",
2402
+ "calls": {
2403
+ "scope": 2,
2404
+ "nodeTag": 1,
2405
+ "headNext": 2,
2406
+ "headEarlyClose": 1
2407
+ }
2408
+ },
2409
+ "covers": [
2410
+ "budget",
2411
+ "iterator"
2412
+ ]
2413
+ },
2414
+ {
2415
+ "id": "sansa-properties-tag-rejects-head",
2416
+ "covers": [
2417
+ "head-tag-split"
2418
+ ],
2419
+ "input": {
2420
+ "operation": "resolve",
2421
+ "namespace": "properties",
2422
+ "source": "$.document[0]&tag(\"catalog\")"
2423
+ },
2424
+ "expected": {
2425
+ "ok": true,
2426
+ "bindings": [],
2427
+ "addresses": [],
2428
+ "calls": {
2429
+ "scope": 1,
2430
+ "nodeKind": 1,
2431
+ "nodeTag": 0,
2432
+ "nodeHeads": 0
2433
+ }
2434
+ },
2435
+ "description": "Verify tag rejects head under the explicit container/head predicate split."
2436
+ },
2437
+ {
2438
+ "id": "sansa-properties-head-tag-rejects-container",
2439
+ "covers": [
2440
+ "head-tag-split"
2441
+ ],
2442
+ "input": {
2443
+ "operation": "resolve",
2444
+ "namespace": "properties",
2445
+ "source": "$.document&headTag(\"catalog\")"
2446
+ },
2447
+ "expected": {
2448
+ "ok": true,
2449
+ "bindings": [],
2450
+ "addresses": [],
2451
+ "calls": {
2452
+ "scope": 1,
2453
+ "nodeKind": 1,
2454
+ "nodeTag": 0,
2455
+ "nodeHeads": 0
2456
+ }
2457
+ },
2458
+ "description": "Verify head tag rejects container under the explicit container/head predicate split."
2459
+ },
2460
+ {
2461
+ "id": "sansa-properties-head-tag-rejects-ordinary",
2462
+ "covers": [
2463
+ "head-tag-split"
2464
+ ],
2465
+ "input": {
2466
+ "operation": "resolve",
2467
+ "namespace": "properties",
2468
+ "source": "$.ordinary&headTag(\"product\")"
2469
+ },
2470
+ "expected": {
2471
+ "ok": true,
2472
+ "bindings": [],
2473
+ "addresses": [],
2474
+ "calls": {
2475
+ "scope": 1,
2476
+ "nodeKind": 1,
2477
+ "nodeTag": 0,
2478
+ "nodeHeads": 0
2479
+ }
2480
+ },
2481
+ "description": "Verify head tag rejects ordinary under the explicit container/head predicate split."
2482
+ },
2483
+ {
2484
+ "id": "sansa-properties-head-tag-root",
2485
+ "covers": [
2486
+ "head-tag-split"
2487
+ ],
2488
+ "input": {
2489
+ "operation": "resolve",
2490
+ "namespace": "properties",
2491
+ "source": "?&headTag(\"catalog\")",
2492
+ "contextualRoot": "docHead"
2493
+ },
2494
+ "expected": {
2495
+ "ok": true,
2496
+ "bindings": [
2497
+ "docHead"
2498
+ ],
2499
+ "addresses": [
2500
+ "$.document[0]"
2501
+ ],
2502
+ "calls": {
2503
+ "scope": 1,
2504
+ "nodeKind": 1,
2505
+ "nodeTag": 1,
2506
+ "nodeHeads": 0
2507
+ }
2508
+ },
2509
+ "description": "Verify head tag root under the explicit container/head predicate split."
2510
+ },
2511
+ {
2512
+ "id": "sansa-properties-head-tag-one-inspection",
2513
+ "covers": [
2514
+ "head-tag-split"
2515
+ ],
2516
+ "input": {
2517
+ "operation": "resolve",
2518
+ "namespace": "properties",
2519
+ "source": "$.document[0]&headTag(\"catalog\")",
2520
+ "options": {
2521
+ "maxPropertyInspections": 1
2522
+ }
2523
+ },
2524
+ "expected": {
2525
+ "ok": true,
2526
+ "bindings": [
2527
+ "docHead"
2528
+ ],
2529
+ "addresses": [
2530
+ "$.document[0]"
2531
+ ],
2532
+ "calls": {
2533
+ "scope": 1,
2534
+ "nodeKind": 1,
2535
+ "nodeTag": 1,
2536
+ "nodeHeads": 0
2537
+ }
2538
+ },
2539
+ "description": "Verify head tag one inspection under the explicit container/head predicate split."
2540
+ },
2541
+ {
2542
+ "id": "sansa-properties-recursive-tag-containers",
2543
+ "covers": [
2544
+ "head-tag-split"
2545
+ ],
2546
+ "input": {
2547
+ "operation": "resolve",
2548
+ "namespace": "properties",
2549
+ "source": "$.document.**&tag(\"product\")"
2550
+ },
2551
+ "expected": {
2552
+ "ok": true,
2553
+ "bindings": [
2554
+ "apple",
2555
+ "orange"
2556
+ ],
2557
+ "addresses": [
2558
+ "$.document[0][0]",
2559
+ "$.document[0][2]"
2560
+ ]
2561
+ },
2562
+ "description": "Verify recursive tag containers under the explicit container/head predicate split."
2563
+ },
2564
+ {
2565
+ "id": "sansa-properties-recursive-head-tag-heads",
2566
+ "covers": [
2567
+ "head-tag-split"
2568
+ ],
2569
+ "input": {
2570
+ "operation": "resolve",
2571
+ "namespace": "properties",
2572
+ "source": "$.document.**&headTag(\"product\")"
2573
+ },
2574
+ "expected": {
2575
+ "ok": true,
2576
+ "bindings": [
2577
+ "appleHead",
2578
+ "orangeHead"
2579
+ ],
2580
+ "addresses": [
2581
+ "$.document[0][0][0]",
2582
+ "$.document[0][2][0]"
2583
+ ]
2584
+ },
2585
+ "description": "Verify recursive head tag heads under the explicit container/head predicate split."
2586
+ },
2587
+ {
2588
+ "id": "sansa-properties-head-tag-navigation",
2589
+ "covers": [
2590
+ "head-tag-split"
2591
+ ],
2592
+ "input": {
2593
+ "operation": "resolve",
2594
+ "namespace": "properties",
2595
+ "source": "$.multi.*&headTag(\"right\")"
2596
+ },
2597
+ "expected": {
2598
+ "ok": true,
2599
+ "bindings": [
2600
+ "right",
2601
+ "right2"
2602
+ ],
2603
+ "addresses": [
2604
+ "$.multi[1]",
2605
+ "$.multi[2]"
2606
+ ]
2607
+ },
2608
+ "description": "Verify head tag navigation under the explicit container/head predicate split."
2609
+ },
2610
+ {
2611
+ "id": "sansa-properties-tag-then-head-tag-misses",
2612
+ "covers": [
2613
+ "head-tag-split"
2614
+ ],
2615
+ "input": {
2616
+ "operation": "resolve",
2617
+ "namespace": "properties",
2618
+ "source": "$.document&tag(\"catalog\")&headTag(\"catalog\")"
2619
+ },
2620
+ "expected": {
2621
+ "ok": true,
2622
+ "bindings": [],
2623
+ "addresses": []
2624
+ },
2625
+ "description": "Verify tag then head tag misses under the explicit container/head predicate split."
2626
+ },
2627
+ {
2628
+ "id": "sansa-properties-head-tag-then-tag-misses",
2629
+ "covers": [
2630
+ "head-tag-split"
2631
+ ],
2632
+ "input": {
2633
+ "operation": "resolve",
2634
+ "namespace": "properties",
2635
+ "source": "$.document[0]&headTag(\"catalog\")&tag(\"catalog\")"
2636
+ },
2637
+ "expected": {
2638
+ "ok": true,
2639
+ "bindings": [],
2640
+ "addresses": []
2641
+ },
2642
+ "description": "Verify head tag then tag misses under the explicit container/head predicate split."
2643
+ },
2644
+ {
2645
+ "id": "sansa-properties-partial-head-tag",
2646
+ "description": "partial tag",
2647
+ "input": {
2648
+ "operation": "resolve",
2649
+ "namespace": "properties",
2650
+ "source": "$.missing&headTag(\"x\")",
2651
+ "omit": [
2652
+ "nodeHeads"
2653
+ ]
2654
+ },
2655
+ "expected": {
2656
+ "ok": false,
2657
+ "bindings": [],
2658
+ "addresses": [],
2659
+ "error": "SANSA_RESOLVE_UNSUPPORTED_TAG",
2660
+ "calls": {
2661
+ "scope": 0,
2662
+ "key": 0,
2663
+ "nodeHeads": 0,
2664
+ "children": 0
2665
+ }
2666
+ },
2667
+ "covers": [
2668
+ "head-tag-split"
2669
+ ]
2670
+ },
2671
+ {
2672
+ "id": "sansa-properties-head-tag-zero-budget",
2673
+ "description": "zero before metadata",
2674
+ "input": {
2675
+ "operation": "resolve",
2676
+ "namespace": "properties",
2677
+ "source": "$.document[0]&headTag(\"catalog\")",
2678
+ "options": {
2679
+ "maxPropertyInspections": 0
2680
+ }
2681
+ },
2682
+ "expected": {
2683
+ "ok": false,
2684
+ "bindings": [],
2685
+ "addresses": [],
2686
+ "error": "SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED",
2687
+ "calls": {
2688
+ "scope": 0,
2689
+ "nodeKind": 0,
2690
+ "nodeHeads": 0
2691
+ },
2692
+ "limit": 0,
2693
+ "observed": 1,
2694
+ "budget": "maxPropertyInspections",
2695
+ "selectorIndex": 2
2696
+ },
2697
+ "covers": [
2698
+ "head-tag-split"
2699
+ ]
2700
+ }
2701
+ ]
2702
+ }