@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.
- package/CHANGELOG.md +118 -1
- package/README.md +96 -1
- package/conformance/README.md +8 -0
- package/conformance/aeonic-anchor-claims.json +133 -0
- package/conformance/aeonic-arithmetic-claims.json +60 -0
- package/conformance/aeonic-clock-claims.json +123 -0
- package/conformance/aeonic-comparison-claims.json +37 -0
- package/conformance/aeonic-datetime-claims.json +110 -0
- package/conformance/aeonic-rational-arithmetic-claims.json +72 -0
- package/conformance/aeonic-temporal-claims.json +105 -0
- package/conformance/cts-claims.json +17 -3
- package/conformance/results/aeonic-anchor-capacity.json +452 -0
- package/conformance/results/aeonic-anchor-snapshot-0.1.json +39 -0
- package/conformance/results/aeonic-arithmetic-snapshot-0.1.json +28 -0
- package/conformance/results/aeonic-clock-all-snapshot-0.1.json +49 -0
- package/conformance/results/aeonic-clock-arithmetic-snapshot-0.1.json +48 -0
- package/conformance/results/aeonic-clock-capacity.json +326 -0
- package/conformance/results/aeonic-clock-relations-snapshot-0.1.json +48 -0
- package/conformance/results/aeonic-comparison-snapshot-0.1.json +19 -0
- package/conformance/results/aeonic-datetime-all-snapshot-0.1.json +47 -0
- package/conformance/results/aeonic-datetime-arithmetic-snapshot-0.1.json +46 -0
- package/conformance/results/aeonic-datetime-capacity.json +302 -0
- package/conformance/results/aeonic-datetime-relations-snapshot-0.1.json +46 -0
- package/conformance/results/aeonic-rational-arithmetic-capacity.json +100 -0
- package/conformance/results/aeonic-rational-arithmetic-snapshot-0.2.json +30 -0
- package/conformance/results/aeonic-temporal-all-property-addressing-2026-11-16.json +39 -0
- package/conformance/results/aeonic-temporal-all-snapshot-0.1.json +39 -0
- package/conformance/results/aeonic-temporal-calendar-property-addressing-2026-11-16.json +38 -0
- package/conformance/results/aeonic-temporal-calendar-snapshot-0.1.json +38 -0
- package/conformance/results/aeonic-temporal-capacity-property-addressing-2026-11-16.json +136 -0
- package/conformance/results/aeonic-temporal-capacity.json +136 -0
- package/conformance/results/aeonic-temporal-relations-property-addressing-2026-11-16.json +38 -0
- package/conformance/results/aeonic-temporal-relations-snapshot-0.1.json +38 -0
- package/docs/aeonic-arithmetic.md +126 -0
- package/docs/aeonic-comparison.md +123 -0
- package/docs/aeonic-rational-arithmetic.md +167 -0
- package/docs/aeonic-temporal-civil-anchor.md +89 -0
- package/docs/aeonic-temporal-civil-clock.md +100 -0
- package/docs/aeonic-temporal-civil-date.md +124 -0
- package/docs/aeonic-temporal-civil-datetime.md +122 -0
- package/docs/api-contract.md +130 -3
- package/docs/capabilities.json +106 -2
- package/docs/child-identity-activation.md +93 -0
- package/docs/child-identity-candidate.md +60 -0
- package/docs/child-identity-tooling.md +31 -0
- package/docs/child-identity-workflows.md +102 -0
- package/docs/empty-keys-candidate.md +29 -0
- package/docs/migration-0.15.0.md +75 -0
- package/docs/property-addressing-implementation.md +118 -0
- package/docs/property-resolve-implementation.md +105 -0
- package/docs/property-selector-support.md +65 -0
- package/docs/property-selectors-api.d.ts +43 -0
- package/docs/property-selectors-api.pyi +27 -0
- package/docs/property-selectors-api.rs +48 -0
- package/docs/property-selectors-contract.md +168 -0
- package/docs/query-tool.md +32 -1
- package/docs/selector-cursor.md +45 -0
- package/docs/unicode-hardening.md +41 -0
- package/fixtures/address-v1.json +4 -3
- package/fixtures/child-identity-workflows/README.md +9 -0
- package/fixtures/child-identity-workflows/moved.aeon +10 -0
- package/fixtures/child-identity-workflows/original.aeon +10 -0
- package/fixtures/child-identity-workflows/reordered.aeon +10 -0
- package/fixtures/child-identity-workflows/replacement.aeon +10 -0
- package/fixtures/child-identity-workflows/workflows.json +89 -0
- package/fixtures/property-namespace-candidate-v1.json +336 -0
- package/fixtures/property-parser-candidate-v1.json +705 -0
- package/fixtures/property-query-candidate-v1.json +398 -0
- package/fixtures/property-resolve-candidate-v1.json +2702 -0
- package/fixtures/unicode-hardening-v1.json +401 -0
- package/package.json +30 -3
- package/scripts/calibrate-aeonic-anchor-capacity.py +294 -0
- package/scripts/calibrate-aeonic-clock-capacity.py +62 -0
- package/scripts/calibrate-aeonic-datetime-capacity.py +76 -0
- package/scripts/calibrate-aeonic-rational-capacity.py +85 -0
- package/scripts/calibrate-aeonic-temporal-capacity.py +95 -0
- package/scripts/cts-address.mjs +6 -2
- package/scripts/cts-aeonic-anchor.mjs +21 -0
- package/scripts/cts-aeonic-arithmetic-adapter.mjs +25 -0
- package/scripts/cts-aeonic-arithmetic.mjs +24 -0
- package/scripts/cts-aeonic-clock.mjs +24 -0
- package/scripts/cts-aeonic-comparison-adapter.mjs +30 -0
- package/scripts/cts-aeonic-comparison.mjs +25 -0
- package/scripts/cts-aeonic-datetime.mjs +24 -0
- package/scripts/cts-aeonic-rational-arithmetic-adapter.mjs +25 -0
- package/scripts/cts-aeonic-rational-arithmetic.mjs +24 -0
- package/scripts/cts-aeonic-temporal-civil-anchor-adapter.mjs +26 -0
- package/scripts/cts-aeonic-temporal-civil-clock-adapter.mjs +28 -0
- package/scripts/cts-aeonic-temporal-civil-date-adapter.mjs +28 -0
- package/scripts/cts-aeonic-temporal-civil-datetime-adapter.mjs +28 -0
- package/scripts/cts-aeonic-temporal.mjs +24 -0
- package/scripts/cts-instruction.mjs +4 -2
- package/scripts/cts-mutate.mjs +3 -2
- package/scripts/cts-resolve.mjs +17 -2
- package/scripts/playground.mjs +110 -0
- package/src/aeonic-arithmetic-binding.js +61 -0
- package/src/aeonic-arithmetic.d.ts +84 -0
- package/src/aeonic-arithmetic.js +276 -0
- package/src/aeonic-comparison.d.ts +86 -0
- package/src/aeonic-comparison.js +274 -0
- package/src/aeonic-convenience.d.ts +30 -0
- package/src/aeonic-convenience.js +45 -0
- package/src/aeonic-exact-number.js +34 -0
- package/src/aeonic-json.js +45 -0
- package/src/aeonic-rational-arithmetic.d.ts +86 -0
- package/src/aeonic-rational-arithmetic.js +417 -0
- package/src/aeonic-rational-json.js +51 -0
- package/src/aeonic-temporal-civil-anchor.d.ts +54 -0
- package/src/aeonic-temporal-civil-anchor.js +316 -0
- package/src/aeonic-temporal-civil-clock.d.ts +124 -0
- package/src/aeonic-temporal-civil-clock.js +388 -0
- package/src/aeonic-temporal-civil-date.d.ts +123 -0
- package/src/aeonic-temporal-civil-date.js +310 -0
- package/src/aeonic-temporal-civil-datetime.d.ts +138 -0
- package/src/aeonic-temporal-civil-datetime.js +501 -0
- package/src/index.d.ts +84 -1
- package/src/index.js +828 -183
- package/src/property-address.js +196 -0
- package/src/property-resolve.js +132 -0
- package/src/query-metadata.d.ts +16 -0
- package/src/query-metadata.js +25 -0
- package/src/selector-cursor.d.ts +19 -0
- package/src/selector-cursor.js +79 -0
- package/stress-tests/address/invalid.sansa-cases +0 -2
- package/stress-tests/address/valid.sansa-cases +3 -0
- package/tools/mutate-web/examples.mjs +1 -1
- package/tools/mutate-web/runtime.mjs +0 -2
- package/tools/playground/README.md +165 -0
- package/tools/playground/accessibility.js +91 -0
- package/tools/playground/aeon-highlight.js +77 -0
- package/tools/playground/aeon-source-composer.js +1077 -0
- package/tools/playground/anchor-examples.mjs +16 -0
- package/tools/playground/arithmetic-evaluator.mjs +28 -0
- package/tools/playground/arithmetic-model.mjs +187 -0
- package/tools/playground/arithmetic-worker.mjs +14 -0
- package/tools/playground/arithmetic.css +1 -0
- package/tools/playground/arithmetic.html +29 -0
- package/tools/playground/arithmetic.mjs +110 -0
- package/tools/playground/clock-examples.mjs +16 -0
- package/tools/playground/datetime-examples.mjs +22 -0
- package/tools/playground/examples.mjs +46 -0
- package/tools/playground/index.html +174 -0
- package/tools/playground/local.css +25 -0
- package/tools/playground/namespace.mjs +39 -0
- package/tools/playground/sansa-playground.js +1565 -0
- package/tools/playground/site.css +3914 -0
- package/tools/playground/temporal-examples.mjs +20 -0
- package/tools/playground/walkthrough.js +90 -0
- package/tools/playground/website-origin.json +16 -0
- package/tools/query-web/IDENTITY_SELECTORS.md +44 -0
- package/tools/query-web/app.js +4 -0
- package/tools/query-web/index.html +4 -0
- package/tools/query-web/runtime.mjs +70 -19
- package/tools/workflows/property-playground-assertions.mjs +33 -0
- package/tools/workflows/verify-child-identities.mjs +137 -0
- package/tools/workflows/verify-property-playground.mjs +48 -0
package/docs/api-contract.md
CHANGED
|
@@ -29,6 +29,33 @@ npm run cts:instruction
|
|
|
29
29
|
npm run cts:mutate
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
<a id="unreleased-property-addressing-and-standalone-resolve"></a>
|
|
33
|
+
|
|
34
|
+
## Unreleased property Addressing, Resolve and direct Query
|
|
35
|
+
|
|
36
|
+
JavaScript/TypeScript and Rust support property Addressing and opt-in standalone
|
|
37
|
+
read-only Resolve and direct read-only Query through the optional authoritative
|
|
38
|
+
property facet. Current exports include `PropertyAccess`, read-only `PropertyAccessContext`, checked
|
|
39
|
+
faults and `maxPropertyInspections` (default10000, maximum1000000). Hosts must
|
|
40
|
+
prove authorized scope and direct-head ownership; ordinary names, paths and
|
|
41
|
+
cached tags are not authority. Existing adapters do not opt in automatically.
|
|
42
|
+
|
|
43
|
+
The [candidate contract](property-selectors-contract.md) and
|
|
44
|
+
[implementation checkpoint](property-resolve-implementation.md) describe delivered
|
|
45
|
+
support, private occurrence frames, diagnostics, accounting and Rust source-porting
|
|
46
|
+
considerations. The adjacent declaration sketches are historical API preparation
|
|
47
|
+
artifacts, rather than the current exported declarations.
|
|
48
|
+
|
|
49
|
+
Owning AEON SDK namespaces supply the facet. Pure Python supports standalone
|
|
50
|
+
Resolve; existing native Pytonic `Document.query()` is separately admitted.
|
|
51
|
+
Core/native/WASM literal ports remain inert. Explicit portable AES/Telex AEOS
|
|
52
|
+
selectors are admitted through their owning profile, while native-event AEOS and
|
|
53
|
+
the LSP validator retain their denial. Built-in CLI/workbench adapters remain
|
|
54
|
+
incapable. See the [delivered provider/host matrix](property-selector-support.md).
|
|
55
|
+
Activation, Graph, Instruction/Mutate/SO, references and structural paths retain
|
|
56
|
+
their prohibitions. Capability manifests and stable CTS claims are unchanged;
|
|
57
|
+
regression mirrors do not establish full profile, platform or performance acceptance.
|
|
58
|
+
|
|
32
59
|
## Entry Points
|
|
33
60
|
|
|
34
61
|
```js
|
|
@@ -271,6 +298,20 @@ Budget exhaustion returns `SANSA_QUERY_BUDGET_EXCEEDED` with `phase`, `budget`,
|
|
|
271
298
|
|
|
272
299
|
The standalone query CLI exposes these budgets as `--max-from-bindings`, `--max-where-candidates`, `--max-order-candidates`, and `--max-result-records`. The browser workbench exposes the same four limits as optional evaluation budget fields.
|
|
273
300
|
|
|
301
|
+
The separate JavaScript `evaluateAeonicComparison` and
|
|
302
|
+
`evaluateAeonicComparisonText` entry points implement the frozen Aeonic comparison
|
|
303
|
+
baseline with symbolic outcomes, strict operands, policy metadata and staged
|
|
304
|
+
diagnostics. See [Aeonic comparison](aeonic-comparison.md) for their request,
|
|
305
|
+
capability and admission contract. They do not change the historical API below
|
|
306
|
+
or Query's predicate behavior.
|
|
307
|
+
|
|
308
|
+
The separate JavaScript `evaluateAeonicArithmetic` and
|
|
309
|
+
`evaluateAeonicArithmeticText` entry points implement exact addition, subtraction,
|
|
310
|
+
multiplication, direct result chaining and explicit-family materialization. See
|
|
311
|
+
[Aeonic arithmetic](aeonic-arithmetic.md) for value/history bundles and snapshot
|
|
312
|
+
0.1 admission rules. This consumer capability does not add Query expression
|
|
313
|
+
syntax or a Rust arithmetic claim.
|
|
314
|
+
|
|
274
315
|
`evaluateValueSemanticsOperation` evaluates the Shared AEON Value Semantics minimum consumer operation shape used by the CTS scaffold:
|
|
275
316
|
|
|
276
317
|
```js
|
|
@@ -385,7 +426,7 @@ Resolve invariants:
|
|
|
385
426
|
- Unsupported or forbidden operations fail explicitly.
|
|
386
427
|
- Every output binding is expected to retain a canonical address when the host adapter exposes one.
|
|
387
428
|
- An exact expression must not produce more than one binding; multiplicity violations fail with `SANSA_RESOLVE_EXACT_MULTIPLICITY_VIOLATION`.
|
|
388
|
-
- Resolve performs no value evaluation,
|
|
429
|
+
- Resolve evaluates admitted selector filters, including opted-in property suffixes, but performs no Query expression/value evaluation, projection, sorting, slicing, aggregation, or mutation.
|
|
389
430
|
|
|
390
431
|
## Experimental Mutate API
|
|
391
432
|
|
|
@@ -564,7 +605,7 @@ The workbench AEON adapter materializes JSON values according to container `kind
|
|
|
564
605
|
}
|
|
565
606
|
```
|
|
566
607
|
|
|
567
|
-
Because Source Result output is AEON, the workbench adapter rejects JSON payloads that cannot be rendered as legal AEON.
|
|
608
|
+
Because Source Result output is AEON, the workbench adapter rejects JSON payloads that cannot be rendered as legal AEON. Ordinary object member and node attribute names may be empty strings and retain normal uniqueness rules. Missing or nonstring names and malformed node payloads fail before any mutation is applied; node tags retain their nonempty requirement.
|
|
568
609
|
|
|
569
610
|
The planner retains the in-process binding object, canonical address, optional `bindingHandle`, and optional `observedState`. `binding`, `bindingHandle`, and `observedState` are local namespace-adapter artifacts; they are not SANSA wire-format fields. Before apply, the implementation resolves each exact address again and rejects stale targets if the resolved binding no longer matches the planned binding identity. This protects positional addresses such as `$.items[2]` from silent index drift. Ordered `insert` and `move` anchors are checked with the same stale-target rule before their hooks run.
|
|
570
611
|
|
|
@@ -832,6 +873,7 @@ Parent traversal, position ranges, expansion selectors, filters, and name patter
|
|
|
832
873
|
{ type: "namePattern", pattern }
|
|
833
874
|
{ type: "semanticTypeFilter", name }
|
|
834
875
|
{ type: "representationKindFilter", name }
|
|
876
|
+
{ type: "propertyFilter", property: "key", value } // property may also be "tag" or "headTag"
|
|
835
877
|
```
|
|
836
878
|
|
|
837
879
|
Selector names and patterns are decoded string values. Renderers choose the shortest unambiguous canonical form.
|
|
@@ -844,6 +886,7 @@ Resolve is host-adapted. A namespace must expose a root binding:
|
|
|
844
886
|
{
|
|
845
887
|
root,
|
|
846
888
|
contextualRoot?,
|
|
889
|
+
properties?,
|
|
847
890
|
children?(binding),
|
|
848
891
|
parent?(binding),
|
|
849
892
|
member?(binding, name),
|
|
@@ -888,6 +931,13 @@ For simple hosts, bindings may expose fields directly:
|
|
|
888
931
|
|
|
889
932
|
`scalarKind`, `valueKind`, or `literalKind` may be used by host-neutral fixtures to preserve scalar forms that JSON cannot express directly, such as `nan`, `infinity`, and explicit `null`. `nullReason` carries the surfaced AEON null reason, such as `notSet` or `notApplicable`.
|
|
890
933
|
|
|
934
|
+
These ordinary binding fields are not a fallback for the authoritative property
|
|
935
|
+
facet. `properties.scope` is required; key support additionally requires `key`,
|
|
936
|
+
and tag support requires `nodeKind`, `nodeTag` and incremental `nodeHeads`.
|
|
937
|
+
Root keys remain hidden and direct-head ownership must be proven by the facet.
|
|
938
|
+
The current [property types and implementation](property-resolve-implementation.md)
|
|
939
|
+
define read-only contexts, checked faults and finite inspection accounting.
|
|
940
|
+
|
|
891
941
|
Query also recognizes the portable scalar representation names directly, including
|
|
892
942
|
`DateLiteral`, `TimeLiteral`, `DateTimeLiteral`, `WTCDateTimeLiteral` and
|
|
893
943
|
`SymbolicLiteral`, whether supplied by a namespace's `representationKind()` hook
|
|
@@ -1139,7 +1189,7 @@ Current comparison policy:
|
|
|
1139
1189
|
| --- | --- | --- | --- |
|
|
1140
1190
|
| number and number | allowed | allowed | numeric comparison |
|
|
1141
1191
|
| numeric subtype and numeric subtype | allowed | allowed | `int`, `uint`, and `float` datatype labels remain visible to semantic filters; comparison uses finite numeric values once exposed by the host |
|
|
1142
|
-
| datatype aliases and their literal family | follows family | follows family | aliases remain visible to semantic filters: `n` as number, `bool` as Boolean, `trimtick`/`prose` as string, `radix2`/`radix6`/`radix8`/`radix12` as radix, `base64`/`embed`/`inline` as encoding, `kadot` as separator, and `obj`/`o`/`envelope` as object containers |
|
|
1192
|
+
| datatype aliases and their literal family | follows family | follows family | aliases remain visible to semantic filters: `n` as number, `bool` as Boolean, `trimtick`/`prose` as string, `radix2`/`radix6`/`radix8`/`radix12`/`radix16` as radix, `base64`/`embed`/`inline` as encoding, `kadot` as separator, and `obj`/`o`/`envelope` as object containers |
|
|
1143
1193
|
| string and string | allowed | allowed | Unicode scalar-value ordering |
|
|
1144
1194
|
| boolean and boolean | allowed | error | ordering emits `SANSA_QUERY_EVALUATE_INVALID_COMPARISON` |
|
|
1145
1195
|
| toggle and toggle | allowed | error | exact token equality; `yes` does not equal `on` |
|
|
@@ -1467,3 +1517,80 @@ Evaluation diagnostics may also include context fields such as `phase`, `candida
|
|
|
1467
1517
|
- `SANSA_RESOLVE_BOUNDARY_ESCAPE_FORBIDDEN`
|
|
1468
1518
|
- `SANSA_RESOLVE_EXACT_MULTIPLICITY_VIOLATION`
|
|
1469
1519
|
- `SANSA_RESOLVE_UNSUPPORTED_SELECTOR`
|
|
1520
|
+
- `SANSA_RESOLVE_INVALID_PROPERTY_LIMIT`
|
|
1521
|
+
- `SANSA_RESOLVE_UNSUPPORTED_PROPERTY_SCOPE`
|
|
1522
|
+
- `SANSA_RESOLVE_UNSUPPORTED_KEY`
|
|
1523
|
+
- `SANSA_RESOLVE_UNSUPPORTED_TAG`
|
|
1524
|
+
- `SANSA_RESOLVE_PROPERTY_SCOPE_VIOLATION`
|
|
1525
|
+
- `SANSA_RESOLVE_INVALID_PROPERTY_METADATA`
|
|
1526
|
+
- `SANSA_RESOLVE_PROPERTY_ADAPTER_ERROR`
|
|
1527
|
+
- `SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED`
|
|
1528
|
+
|
|
1529
|
+
## Host-token step parsing
|
|
1530
|
+
|
|
1531
|
+
The supported [selector cursor subpath](selector-cursor.md) shares native grammar with token-based hosts. It does not broaden reference eligibility or the root exports.
|
|
1532
|
+
|
|
1533
|
+
## Experimental child identity candidate
|
|
1534
|
+
|
|
1535
|
+
The implementation-local `sansa.resolve.child-identity.candidate.v1` metadata records the original JavaScript standalone parser/render/Resolve slice. See [candidate contract](child-identity-candidate.md). That metadata is not a complete delivered-provider matrix, a normative registry allocation or a release claim.
|
|
1536
|
+
|
|
1537
|
+
Later direct read-only Query is documented in the [current package guide](../README.md).
|
|
1538
|
+
For AEOS child-identity rule selectors, including native-event validation, use the
|
|
1539
|
+
[owning AEOS child-identity guide](https://github.com/AltoPelago/aeon/blob/main/docs/aeos-child-identity-selectors.md).
|
|
1540
|
+
That selector-only integration retains the structural `path` restriction; it is
|
|
1541
|
+
distinct from the portable-only property-selector profile. These integrations do
|
|
1542
|
+
not change the original metadata or broaden the separate constrained activation
|
|
1543
|
+
policy. Instruction/Mutate/SO, identity references and recursive extensions remain
|
|
1544
|
+
outside this integration.
|
|
1545
|
+
|
|
1546
|
+
Run the experimental candidates explicitly with `npm run cts:address:child-identity` and `npm run cts:resolve:child-identity`, setting `AEONITE_CTS_ROOT` to the owning CTS directory when needed. Default CTS commands retain their existing targets. The Resolve fixture adapter exposes an identity accessor only for `supportsIdentity: true` and verifies actual accessor-call counts; metadata fields alone do not grant capability.
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
The child-identity candidate exposes optional `SansaResolveDiagnostic.identity` for authored selector context on identity-related Resolve failures. Read-only rollout preparation may proceed with the unresolved JavaScript heap qualification explicitly deferred; this is not a released support or cost-pass claim. See [candidate delivery status](child-identity-candidate.md).
|
|
1550
|
+
|
|
1551
|
+
## Candidate Query identity admission
|
|
1552
|
+
|
|
1553
|
+
Query source addresses and resolution expressions support direct child identity
|
|
1554
|
+
selection over explicitly capable namespaces. Candidate/value addresses remain
|
|
1555
|
+
canonical structural paths; selected bindings are original namespace handles.
|
|
1556
|
+
The existing `resolve.maxIdentityInspections` option is a whole-Query budget
|
|
1557
|
+
(default 10,000), shared across every clause, candidate and repeated read. Each
|
|
1558
|
+
invocation owns fresh private state; caller options are never mutated or used as
|
|
1559
|
+
a session. Any failure returns no records. Binding/result limits remain separate.
|
|
1560
|
+
Dynamic `path(...)` identity activation now has its own [constrained feature and
|
|
1561
|
+
scope contract](child-identity-activation.md). Trusted/default activation, reference
|
|
1562
|
+
following, graph traversal, Instruction and mutation retain their guards. Public Rust `evaluate_expression` remains
|
|
1563
|
+
closed for mutation-precondition consumers; only Query entry points admit IDs.
|
|
1564
|
+
No public struct, session, codec or serialization format is added by this slice.
|
|
1565
|
+
|
|
1566
|
+
## Query result metadata accessors (JavaScript/TypeScript)
|
|
1567
|
+
|
|
1568
|
+
`getQueryValueMetadata(queryValue)` returns a detached, frozen native scalar
|
|
1569
|
+
metadata descriptor for a live scalar result of `evaluateQuery`, or `undefined`
|
|
1570
|
+
when no metadata is available. Binding Sets retain their public bindings and
|
|
1571
|
+
namespace metadata; this accessor does not resolve or materialize them.
|
|
1572
|
+
|
|
1573
|
+
`getQueryObjectFieldMetadata(object)` accepts a materialized projection object
|
|
1574
|
+
(`queryValue.value`), including nested projection objects. It returns a detached,
|
|
1575
|
+
frozen record keyed by field name, whose descriptors are also frozen. Fields
|
|
1576
|
+
without native metadata are omitted; an object without metadata returns `{}`.
|
|
1577
|
+
These accessors are exported from `@altopelago/sansa/query-metadata` and declared
|
|
1578
|
+
in `src/query-metadata.d.ts`.
|
|
1579
|
+
|
|
1580
|
+
Descriptors may contain `kind`, `category`, `semanticType`, `containerKind`,
|
|
1581
|
+
`nullReason`, `numericLexeme`, `radixBase`, and `radixScale`. Fields are optional;
|
|
1582
|
+
accessors expose available evaluator information without guessing a type from a
|
|
1583
|
+
JavaScript string. Preserve exact `numericLexeme` rather than converting it to a
|
|
1584
|
+
JavaScript number. An explicit null reason is independent of JavaScript `null`.
|
|
1585
|
+
|
|
1586
|
+
```js
|
|
1587
|
+
import { getQueryValueMetadata, getQueryObjectFieldMetadata } from '@altopelago/sansa/query-metadata';
|
|
1588
|
+
const scalarMetadata = getQueryValueMetadata(result.results[0].value);
|
|
1589
|
+
const fieldMetadata = getQueryObjectFieldMetadata(result.results[0].value.value);
|
|
1590
|
+
```
|
|
1591
|
+
|
|
1592
|
+
Call these accessors before JSON transport. They do not restore metadata lost
|
|
1593
|
+
through JSON serialization, clone operations, or user-created replacements.
|
|
1594
|
+
Serialize the descriptors explicitly alongside values if a transport needs them.
|
|
1595
|
+
They do not mutate results, expose private storage, change Query semantics, or
|
|
1596
|
+
supply source provenance. Internal property names are not a public API.
|
package/docs/capabilities.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"implementation": "@altopelago/sansa",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-rc.2",
|
|
4
4
|
"profiles": [
|
|
5
|
+
"aeonic.operations.arithmetic.rational.v1",
|
|
6
|
+
"aeonic.operations.arithmetic.exact.v1",
|
|
7
|
+
"aeonic.operations.comparison.baseline.v1",
|
|
8
|
+
"aeonic.operations.string.codepoint.v1",
|
|
5
9
|
"value-semantics-minimum-consumer",
|
|
6
10
|
"aeon.value.default.v1",
|
|
7
11
|
"aeon.value.string.codepoint.v1",
|
|
@@ -15,6 +19,9 @@
|
|
|
15
19
|
"instruction"
|
|
16
20
|
],
|
|
17
21
|
"capabilities": [
|
|
22
|
+
"Aeonic.Operations.Arithmetic.Rational",
|
|
23
|
+
"Aeonic.Operations.Arithmetic.Exact",
|
|
24
|
+
"Aeonic.Operations.Comparison",
|
|
18
25
|
"AEON.ValueSemantics",
|
|
19
26
|
"SANSA.Addressing",
|
|
20
27
|
"SANSA.Resolve",
|
|
@@ -33,12 +40,74 @@
|
|
|
33
40
|
"mutate": false
|
|
34
41
|
},
|
|
35
42
|
"experimentalCapabilities": [
|
|
43
|
+
{
|
|
44
|
+
"id": "aeonic.operations.arithmetic.rational.v1",
|
|
45
|
+
"capability": "Aeonic.Operations.Arithmetic.Rational",
|
|
46
|
+
"category": "rational-exact-arithmetic",
|
|
47
|
+
"maturity": "experimental",
|
|
48
|
+
"implementation": "javascript",
|
|
49
|
+
"entryPoints": [
|
|
50
|
+
"evaluateAeonicRationalArithmetic",
|
|
51
|
+
"evaluateAeonicRationalArithmeticText"
|
|
52
|
+
],
|
|
53
|
+
"snapshotId": "aeonic-rational-arithmetic-cts-v1-snapshot-0.2",
|
|
54
|
+
"semantics": [
|
|
55
|
+
"exact add/subtract/multiply/divide over authored/derived operands",
|
|
56
|
+
"canonical decimal/rational-result chaining",
|
|
57
|
+
"seven explicitly selected grid-rounding modes",
|
|
58
|
+
"current evaluation separate from approximation history",
|
|
59
|
+
"exact explicit-family materialization",
|
|
60
|
+
"staged fail-closed diagnostics"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "aeonic.operations.arithmetic.exact.v1",
|
|
65
|
+
"capability": "Aeonic.Operations.Arithmetic.Exact",
|
|
66
|
+
"category": "finite-exact-arithmetic",
|
|
67
|
+
"maturity": "experimental",
|
|
68
|
+
"implementation": "javascript",
|
|
69
|
+
"entryPoints": [
|
|
70
|
+
"evaluateAeonicArithmetic",
|
|
71
|
+
"evaluateAeonicArithmeticText"
|
|
72
|
+
],
|
|
73
|
+
"snapshotId": "aeonic-arithmetic-cts-v1-snapshot-0.1",
|
|
74
|
+
"semantics": [
|
|
75
|
+
"exact add/subtract/multiply",
|
|
76
|
+
"direct normalized-result chaining",
|
|
77
|
+
"explicit output family at materialization",
|
|
78
|
+
"declared approximation-history propagation",
|
|
79
|
+
"staged fail-closed diagnostics"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "aeonic.operations.comparison.baseline.v1",
|
|
84
|
+
"capability": "Aeonic.Operations.Comparison",
|
|
85
|
+
"category": "scalar-comparison",
|
|
86
|
+
"maturity": "experimental",
|
|
87
|
+
"implementation": "javascript",
|
|
88
|
+
"entryPoints": [
|
|
89
|
+
"evaluateAeonicComparison",
|
|
90
|
+
"evaluateAeonicComparisonText"
|
|
91
|
+
],
|
|
92
|
+
"snapshotId": "aeonic-operations-cts-v1-snapshot-0.1",
|
|
93
|
+
"capabilitySet": "baseline",
|
|
94
|
+
"declaredOrder": false,
|
|
95
|
+
"semantics": [
|
|
96
|
+
"exact finite numerical text",
|
|
97
|
+
"symbolic results",
|
|
98
|
+
"staged fail-closed diagnostics",
|
|
99
|
+
"independent string and symbol profiles"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
36
102
|
{
|
|
37
103
|
"id": "sansa.graph.structured.one-hop.v1",
|
|
38
104
|
"capability": "SANSA.Graph",
|
|
39
105
|
"category": "declared-relationship-traversal",
|
|
40
106
|
"maturity": "experimental",
|
|
41
|
-
"entryPoints": [
|
|
107
|
+
"entryPoints": [
|
|
108
|
+
"traverseGraph",
|
|
109
|
+
"traverseGraphSequence"
|
|
110
|
+
],
|
|
42
111
|
"semantics": [
|
|
43
112
|
"structured declarations only",
|
|
44
113
|
"one-hop directed traversal",
|
|
@@ -181,6 +250,41 @@
|
|
|
181
250
|
"unsupported policy fields fail closed instead of being ignored",
|
|
182
251
|
"policy remains outside SANSA.Mutate core conformance"
|
|
183
252
|
]
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"id": "sansa.resolve.child-identity.candidate.v1",
|
|
256
|
+
"capability": "SANSA.Resolve",
|
|
257
|
+
"category": "direct-child-identity-selection",
|
|
258
|
+
"maturity": "experimental",
|
|
259
|
+
"runtimes": [
|
|
260
|
+
"javascript"
|
|
261
|
+
],
|
|
262
|
+
"entryPoints": [
|
|
263
|
+
"parseAddress",
|
|
264
|
+
"renderAddress",
|
|
265
|
+
"resolveAddress"
|
|
266
|
+
],
|
|
267
|
+
"defaultMaxIdentityInspections": 10000,
|
|
268
|
+
"semantics": [
|
|
269
|
+
"direct exposed children only",
|
|
270
|
+
"explicit namespace identity accessor",
|
|
271
|
+
"non-exact expressions and structural result paths",
|
|
272
|
+
"ambiguity failure without partial results",
|
|
273
|
+
"whole-call inspection budget",
|
|
274
|
+
"read-only"
|
|
275
|
+
],
|
|
276
|
+
"boundaries": [
|
|
277
|
+
"no implicit Query or activation admission",
|
|
278
|
+
"no Instruction, mutation or SO admission",
|
|
279
|
+
"no AEOS path or selector admission",
|
|
280
|
+
"no identity references or recursive selector extension",
|
|
281
|
+
"other runtime API evidence is separately qualified; this package claim is JavaScript-only"
|
|
282
|
+
],
|
|
283
|
+
"cts": {
|
|
284
|
+
"parser": "sansa-child-identity-parser-cts-v1-snapshot-0.1",
|
|
285
|
+
"resolve": "sansa-child-identity-resolve-cts-v1-snapshot-0.1"
|
|
286
|
+
},
|
|
287
|
+
"notes": "Implementation-local candidate identifier; not a new normative capability registry allocation or a released roster-wide claim."
|
|
184
288
|
}
|
|
185
289
|
],
|
|
186
290
|
"policies": [
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Constrained child identity activation (candidate)
|
|
2
|
+
|
|
3
|
+
Read-only Query may activate a typed SANSA address containing child identity
|
|
4
|
+
selectors only through an explicit constrained policy. Parser support, ordinary
|
|
5
|
+
Query selection and trusted activation do not enable this feature automatically.
|
|
6
|
+
|
|
7
|
+
Given the AEON source:
|
|
8
|
+
|
|
9
|
+
```aeon
|
|
10
|
+
items = [\a\ = { name\n\ = "hello" }]
|
|
11
|
+
selector:sansa = $.items.\a\.\n\
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Use the namespace adapter's explicit identity capability and this Query policy:
|
|
15
|
+
|
|
16
|
+
```javascript
|
|
17
|
+
const result = evaluateQuery('from $.selector\nselect path(.)', namespace, {
|
|
18
|
+
addressActivation: {
|
|
19
|
+
allowedRoots: ['$.items'],
|
|
20
|
+
allowedSelectors: ['member', 'childIdentity'],
|
|
21
|
+
maxAddressDepth: 4,
|
|
22
|
+
maxBindings: 100,
|
|
23
|
+
},
|
|
24
|
+
resolve: { maxIdentityInspections: 1000, maxBindings: 100 },
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The value is the original binding at `$.items[0].name`; the authored expression
|
|
29
|
+
is non-exact. A policy granting only `$.items[0]` fails **before** inspecting any
|
|
30
|
+
identity under `$.items`: permission for one child cannot authorise a sibling
|
|
31
|
+
scan from its parent. Missing identities still cost inspections. Ambiguity,
|
|
32
|
+
unsupported capability, invalid metadata or any limit/scope failure returns no
|
|
33
|
+
Query records.
|
|
34
|
+
|
|
35
|
+
## Scope and accounting
|
|
36
|
+
|
|
37
|
+
Before the first identity step, a structural prefix must be provably within an
|
|
38
|
+
allowed root. Identity steps never count as exact structural keys. Contextual
|
|
39
|
+
activation also requires `allowContextualRoot: true` and a canonical structural
|
|
40
|
+
path for the current binding. For identity activation, allowed roots denote
|
|
41
|
+
canonical binding paths in the exposed namespace; a rebased namespace root uses
|
|
42
|
+
its actual structural path rather than silently treating it as document `$`.
|
|
43
|
+
|
|
44
|
+
Each identity scan parent and candidate must expose an exact, unqualified,
|
|
45
|
+
absolute structural path inside the grant before identity metadata is read.
|
|
46
|
+
Every returned binding is checked again after resolution, including any
|
|
47
|
+
structural suffix following an identity. Missing, selector-like, qualified or
|
|
48
|
+
out-of-scope paths fail. Host adapters remain responsible for truthful paths,
|
|
49
|
+
namespace topology and snapshot consistency; textual paths do not establish
|
|
50
|
+
occurrence continuity or authorisation outside the host's grant.
|
|
51
|
+
|
|
52
|
+
This first slice rejects **all parent selectors and qualifiers** in an identity
|
|
53
|
+
activation, even with a parent capability. It also bounds caller-AST projection
|
|
54
|
+
and reparses it before policy decisions. Forged canonical/exact flags on an
|
|
55
|
+
address or policy root carry no authority. Existing structural activation remains
|
|
56
|
+
available under its existing policy.
|
|
57
|
+
|
|
58
|
+
Ordinary and activated identity reads share the Query invocation's existing
|
|
59
|
+
`resolve.maxIdentityInspections` budget (default 10,000), across all clauses,
|
|
60
|
+
candidates and repeated reads. New/reentrant Query calls have fresh private
|
|
61
|
+
counters. Logical inspections are distinct from adapter enumeration, allocation
|
|
62
|
+
and I/O cost. For identity activation, the stricter of the host Resolve and
|
|
63
|
+
activation binding ceilings applies. Result/depth/inspection limits are separate.
|
|
64
|
+
|
|
65
|
+
## Runtime/API scope
|
|
66
|
+
|
|
67
|
+
JavaScript/TypeScript calls the selector feature `childIdentity`; Rust adds
|
|
68
|
+
`ActivationSelector::ChildIdentity`. Rust callers with exhaustive matches must
|
|
69
|
+
handle the new enum variant. No public options field, session or serialized
|
|
70
|
+
payload is added. The existing native Pytonic Query API accepts
|
|
71
|
+
`activation_selectors=("member", "child_identity")` with
|
|
72
|
+
`activation_roots=("$.items",)`, using its existing default inspection budget.
|
|
73
|
+
Pure Python still has no Query evaluator, and no new WASM Query API is implied.
|
|
74
|
+
|
|
75
|
+
Trusted/default activation stays closed to identities. Historical failure codes
|
|
76
|
+
remain explicit: JavaScript reports policy-required or policy-denied for an
|
|
77
|
+
absent/non-allowing constrained policy; shared Rust retains its unsupported
|
|
78
|
+
selector guard for non-opted-in identity activation. Both perform zero identity
|
|
79
|
+
inspections in those cases.
|
|
80
|
+
|
|
81
|
+
Public Rust standalone expression evaluation and JavaScript mutation/Instruction
|
|
82
|
+
preconditions remain guarded even if passed a constrained identity feature.
|
|
83
|
+
Graph/reference/storage consumers, SO and the deployed website/custom matchers
|
|
84
|
+
retain their separate admission work. AEOS selectors are independently integrated
|
|
85
|
+
in the AEON candidate with their own validation-local budget/cache; AEOS path
|
|
86
|
+
fields still reject identities. AEON clone/pointer references
|
|
87
|
+
remain structural paths. Recursive/root-matching extensions are not introduced.
|
|
88
|
+
|
|
89
|
+
The source playground's existing trusted activation mode also stays closed;
|
|
90
|
+
this constrained policy is exercised through the library APIs. This development
|
|
91
|
+
candidate does not allocate release versions, promote spec/CTS contracts or make
|
|
92
|
+
an official release. Performance targets remain unchanged and JavaScript heap
|
|
93
|
+
qualification remains explicitly deferred/unqualified.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Child identity selector candidate
|
|
2
|
+
|
|
3
|
+
Local experimental parser/render/read-only Resolve implementation, not a released capability. Scoped Rust, TypeScript/JavaScript and native Python candidates have local functional/artifact evidence; each package advertises only its verified APIs. Read-only Query now explicitly admits child identities in JavaScript and shared Rust; constrained identity activation is now explicitly available under its own feature and scope checks. AEOS selector admission is now implemented in the AEON TypeScript/Rust/pure-Python validation adapters; schema path fields remain structural. Titonic read-only selection is separately integrated in its local candidate. The selected website/workbench surfaces are separately integrated in their local candidates; other consumers, Instruction, mutation and SO remain gated. Final versions, registry locks, immutable spec/CTS references and platform verification remain release work.
|
|
4
|
+
|
|
5
|
+
The 12 November 2026 delivery decision defers unresolved JavaScript process-heap qualification so the implemented read-only roster can proceed toward rollout. This is an explicit qualification exception, not a memory-budget pass. Original results, baselines and 1.15× latency / 1.20× memory targets remain preserved; correctness, inspection budgets and other release gates remain mandatory.
|
|
6
|
+
|
|
7
|
+
Standalone Addressing accepts `.\id\` and renders `childIdentity` AST selectors. Expressions containing them remain non-exact. Standalone Resolve requires an explicit namespace `identity(binding)` accessor; it never infers support from a binding field. It scans exposed direct children, retains original bindings and canonical structural paths, and fails on ambiguous matches. Attributes and local spaces require explicit transitions.
|
|
8
|
+
|
|
9
|
+
`maxIdentityInspections` defaults to 10000 per call, includes missing identities and repeated branch visits, and is charged before identity inspection. Zero permits empty scans but rejects the first child inspection. Iterables are consumed incrementally and closed on early failure. Host enumeration/I/O costs are separate from logical inspection counts.
|
|
10
|
+
|
|
11
|
+
Caller AST identity payloads are validated through a fresh expression parse; caller-supplied canonical/isExact fields do not confer authority. Query source and resolution expressions admit child identities, retaining Binding Set order and original handles. `resolve.maxIdentityInspections` is shared across all clauses, candidates and repeated reads of one Query invocation; every new invocation starts fresh. Any resolution failure discards the full Query result. Dynamic `path(...)` identity activation requires an explicit constrained `childIdentity` feature and pre-inspection/post-resolution canonical scope checks; trusted/default activation stays guarded. Public Rust standalone expression evaluation (used for mutation preconditions), Instruction, mutation and graph resolution remain closed. Shared structural-reference cursors omit the optional identity parsing hook and retain native identifier rejection; this does not enable identity references. External adapters/consumers require their own explicit admission review.
|
|
12
|
+
|
|
13
|
+
Candidate tests vendor digest-recorded copies of authority fixtures under test/fixtures/child-identity; package tests do not depend on an adjacent CTS checkout. Runtime and consumer coverage must be reported per API; parser parity does not admit other consumers. Final versions, registry locks, immutable spec/CTS references and platform/release review remain open. No new public capability registry claim or package version is made by this prototype.
|
|
14
|
+
|
|
15
|
+
## Rust local verification — 8 November 2026 (historical checkpoint)
|
|
16
|
+
|
|
17
|
+
Independent Core/shared-runtime and scoped SDK read-only candidates now pass local source and packed verification: 20 parser/35 representable Resolve vectors per engine, AST/iterator/budget/admission checks, unchanged native reference behavior and 464 Rust performance metrics within 1.15× latency / 1.20× retained-memory ceilings. Three JS invalid-type inputs cannot inhabit the Rust API types and remain qualified. The SDK consumes the exact local 0.15.0-rc.1 runtime; registry publication/checksum lock and final versions remain release work. Core uses a distinct structural-identity field instead of its opaque occurrence identity. SDK iteration respects actual scope and node-head topology.
|
|
18
|
+
|
|
19
|
+
These are local Rust candidate results, not an extension of the existing JavaScript-only CLI protocol claim. Later Python/Pytonic/WASM and embedding evidence is tracked separately in the AEON delivery record; this historical Rust receipt does not establish those surfaces. Consumer admission and final release verification remain separate.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Public diagnostic typing
|
|
23
|
+
|
|
24
|
+
`SansaResolveDiagnostic.identity` is an optional string containing the authored identity on identity-related resolution failures, including unsupported and ambiguous selection. It is diagnostic context, not a resolved binding handle or a canonical address. Its optional declaration matches the existing runtime result; this does not admit identity selectors into other consumers.
|
|
25
|
+
|
|
26
|
+
See [constrained identity activation](child-identity-activation.md) for policy examples, canonical scope/AST rules, no-parent constraints and the Rust/Pytonic feature names.
|
|
27
|
+
|
|
28
|
+
AEOS validation owns a separate default 10,000-inspection budget (`max_identity_inspections`) and per-invocation identity-selector cache shared by expansion and closed-world allowance. This consumer integration is in the AEON candidate; SANSA parser support alone does not certify an older AEOS adapter.
|
|
29
|
+
|
|
30
|
+
Titonic's local candidate explicitly integrates child identities in its read-only
|
|
31
|
+
dispatcher using SANSA scans. Its `maxIdentityInspections` option defaults to
|
|
32
|
+
10,000 and spans the full call. Binding/alias IDs and NodeHead IDs remain distinct;
|
|
33
|
+
results retain structural paths and existing live pointer/clone proxy behavior.
|
|
34
|
+
Attribute/local spaces and qualified identity expressions remain unsupported.
|
|
35
|
+
Workspace-layout artifacts are locally verified; this does not qualify a
|
|
36
|
+
standalone registry install or the broader Tonics build, which retains unrelated
|
|
37
|
+
mode-converter value-kind exhaustiveness gaps. Other custom consumers, Instruction, mutation and SO still require their own admission. The website
|
|
38
|
+
candidate and Query workbench now have their separate read-only integration
|
|
39
|
+
described below.
|
|
40
|
+
|
|
41
|
+
The website SANSA candidate uses the SDK namespace and actual Resolve/Query,
|
|
42
|
+
preserving scoped structural paths, composer IDs and shared inspection budgets.
|
|
43
|
+
Default released bundles retain ordinary matching and reject unsupported identity
|
|
44
|
+
selection. A local opt-in candidate import map includes SDK and selector-cursor
|
|
45
|
+
modules; this does not deploy or change released version pins. AEOS composer
|
|
46
|
+
identity rules retain their full selector/constraints and resource policy on
|
|
47
|
+
apply; those rules are edited in schema source. Path-field guards remain closed.
|
|
48
|
+
|
|
49
|
+
The [Query workbench](../tools/query-web/IDENTITY_SELECTORS.md) admits declared
|
|
50
|
+
identities from AEON identity-query portable projection and Telex/Film records.
|
|
51
|
+
JSON fixture IDs remain opaque; trusted activation and mutation remain guarded.
|
|
52
|
+
Its new inspection input forwards to the existing whole-query Resolve allowance.
|
|
53
|
+
Ordinary native queries retain their existing adapter semantics.
|
|
54
|
+
|
|
55
|
+
See [editor/tooling integration](child-identity-tooling.md) for unpublished lexical
|
|
56
|
+
scopes, descriptive service hovers and explicit candidate server-bundle limits.
|
|
57
|
+
|
|
58
|
+
See [read-only reorder/subtree workflows](child-identity-workflows.md) for shared
|
|
59
|
+
snapshot examples, real consumer checks, root/activation boundaries and ID-reuse
|
|
60
|
+
limits. These do not admit mutation/SO or identity references.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Child identity editor and tooling candidate
|
|
2
|
+
|
|
3
|
+
The SANSA source playground highlights declared `\id\` occurrence metadata
|
|
4
|
+
and embedded SANSA literals separately from clone/pointer references. The
|
|
5
|
+
maintained AEON tooling candidate adds corresponding VS Code/Pulsar/Sublime
|
|
6
|
+
scopes, Tree-sitter/Neovim nodes/captures and web/Quick Look source highlighting.
|
|
7
|
+
Those lexical patterns are presentation aids, not a replacement for SANSA
|
|
8
|
+
parsing or consumer capability checks. Their lexical subset does not claim
|
|
9
|
+
complete SANSA grammar validation.
|
|
10
|
+
|
|
11
|
+
The AEON language-service candidate describes identity annotations and address
|
|
12
|
+
literals on hover using existing lexer tokens. Compiler and trusted-schema
|
|
13
|
+
diagnostics remain authoritative, and reference completion stays structural.
|
|
14
|
+
No global ID lookup, identity completion, rename, automatic reference rewriting,
|
|
15
|
+
new recursion or reference/mutation/SO admission is added.
|
|
16
|
+
|
|
17
|
+
Candidate extension bundling supports an explicitly selected built AEON
|
|
18
|
+
TypeScript graph and preserves import-only SANSA/cursor dependencies. Tooling,
|
|
19
|
+
AEON language-service, public example and website changes remain in retained
|
|
20
|
+
local candidates. SANSA source changes may be pushed; releases, extension
|
|
21
|
+
installation/marketplace publication and website deployment remain held.
|
|
22
|
+
|
|
23
|
+
Public candidate examples demonstrate direct-child chaining, structural paths
|
|
24
|
+
after reorder and explicit empty Query Binding Sets. Published examples keep
|
|
25
|
+
their existing dependency pins and do not gain support by implication.
|
|
26
|
+
|
|
27
|
+
Verification is local: grammar/corpus/highlighter and service/bundle/protocol
|
|
28
|
+
checks plus the existing compatibility/reference-target checks. It does not
|
|
29
|
+
replace editor-host/platform CI, independent review or final registry release
|
|
30
|
+
checks. The existing 1.15x latency/1.20x memory targets remain unchanged; no new
|
|
31
|
+
benchmark is run, and JavaScript retained-heap qualification stays deferred.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Read-only identity workflows — candidate
|
|
2
|
+
|
|
3
|
+
These are unpublished workflow checks for the coordinated AEON/SANSA candidate.
|
|
4
|
+
They use four independently compiled documents, not a mutation or SO API:
|
|
5
|
+
|
|
6
|
+
| Snapshot | Selected value | Structural result |
|
|
7
|
+
| --- | --- | --- |
|
|
8
|
+
| [Original](../fixtures/child-identity-workflows/original.aeon) | Widget | `$.west.stock.items[0].name` |
|
|
9
|
+
| [Reordered](../fixtures/child-identity-workflows/reordered.aeon) | Widget | `$.west.stock.items[1].name` |
|
|
10
|
+
| [Moved and renamed subtree](../fixtures/child-identity-workflows/moved.aeon) | Widget | `$.east.renamed.items[1].name` |
|
|
11
|
+
| [ID-reusing replacement](../fixtures/child-identity-workflows/replacement.aeon) | Replacement | `$.east.renamed.items[1].name` |
|
|
12
|
+
|
|
13
|
+
For the original and reordered snapshots, resolve:
|
|
14
|
+
|
|
15
|
+
```sansa
|
|
16
|
+
$.west.\stock1\.items.\item1\.\name1\
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
For the moved snapshot the traversal starts at `$.east` instead. The `stock1`
|
|
20
|
+
identity selects the newly named `renamed` child. The old `$.west` route misses;
|
|
21
|
+
identity steps do not search the entire document.
|
|
22
|
+
|
|
23
|
+
Identity selectors remain **non-exact**. Results retain original binding handles
|
|
24
|
+
within a snapshot and concrete structural paths. A structural reference such as
|
|
25
|
+
`~west.stock.items[0].name` still targets position zero after reorder; it does not
|
|
26
|
+
follow `item1`. If that structural target is absent after a move, the reference
|
|
27
|
+
fails. Canonicalization and Titonic export preserve the authored reference
|
|
28
|
+
targets; they do not rewrite them to identities.
|
|
29
|
+
|
|
30
|
+
## Subtree roots and activation
|
|
31
|
+
|
|
32
|
+
Rebase the source playground to the snapshot's structural subtree path, such as
|
|
33
|
+
`$.east.renamed`. `$` selects that root and exposes its object representation.
|
|
34
|
+
Then `$.items.\item1\.\name1\` selects Widget. `$.\stock1\` misses because
|
|
35
|
+
child selection does not match the scope root itself. Rebasing to the list lets
|
|
36
|
+
`$.\item1\.\name1\` select the same binding, and `$` describes a list root.
|
|
37
|
+
|
|
38
|
+
Rebasing changes where traversal starts. It is not a new authorisation sandbox;
|
|
39
|
+
explicit parent traversal retains the host namespace's existing policy. A host
|
|
40
|
+
that requires confinement must enforce its scope/accessor policy. Constrained
|
|
41
|
+
`path(...)` activation separately proves canonical allowed roots before an
|
|
42
|
+
identity scan, then checks resolved paths. Moving a subtree does not extend an
|
|
43
|
+
old activation grant; a new structural root must be explicitly allowed.
|
|
44
|
+
|
|
45
|
+
## Empty projections, limits and replacement
|
|
46
|
+
|
|
47
|
+
```sansa
|
|
48
|
+
from $.west.stock.items.*
|
|
49
|
+
select .\name1\
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Both items remain candidate records; the item with `name2` has an empty Binding
|
|
53
|
+
Set projection. Add `where exists(.\name1\)` to filter that record out. Reorder
|
|
54
|
+
changes candidate order and structural paths, not these projection semantics.
|
|
55
|
+
|
|
56
|
+
A whole Query shares its identity-inspection allowance across every step and
|
|
57
|
+
candidate. Exhaustion returns no partial result, and a new invocation starts
|
|
58
|
+
fresh. AEOS validation also uses fresh snapshot-local state: reusing a schema
|
|
59
|
+
across reorder sees the new target path; a moved subtree does not reuse a stale
|
|
60
|
+
successful expansion. Ambiguous siblings fail rather than silently choose one.
|
|
61
|
+
|
|
62
|
+
The replacement deliberately reuses `item1` and `name1`. A new lookup finds
|
|
63
|
+
Replacement at the same structural path, while a captured handle in the old
|
|
64
|
+
snapshot still denotes Widget. Neither an identity string nor equal result paths
|
|
65
|
+
prove occurrence continuity or authorise a stale write. Instruction, mutation,
|
|
66
|
+
AEON clone/pointer identity references, AEOS path fields and SO identity
|
|
67
|
+
sources/anchors/containers remain unadmitted.
|
|
68
|
+
|
|
69
|
+
## Reproduce the coordinated consumer checks
|
|
70
|
+
|
|
71
|
+
Run the dependency-free SANSA workflow tests:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
node --test test/read-only-workflows.test.js
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For real AEON consumers, build/install an explicitly selected candidate graph
|
|
78
|
+
and prepare a JSON manifest whose `core`, `canonical`, `aes`, `sdk`, `aeos` and
|
|
79
|
+
`titonic` fields contain the respective public module entry **file URLs**. `sdk`
|
|
80
|
+
is its `sansa` export. Run from that installed graph's consumer directory so the
|
|
81
|
+
workbench can discover the same Core/AES runtimes:
|
|
82
|
+
|
|
83
|
+
```sh
|
|
84
|
+
node /path/to/sansa/tools/workflows/verify-child-identities.mjs candidate-modules.json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The tool imports no guessed sibling implementation, installs nothing and makes
|
|
88
|
+
no mutation/ordering commit. Titonic retains its currently supported sibling
|
|
89
|
+
workspace packaging layout. Checks cover SDK Resolve/Query, constrained
|
|
90
|
+
activation, source/portable/Telex AEOS targets, Titonic selection/export,
|
|
91
|
+
AEON/Telex workbench results, source-playground projection, canonical replay,
|
|
92
|
+
reference targets, budgets and closed consumers. Separate Rust and installed
|
|
93
|
+
pure/native Python checks consume the same source vectors for their exposed
|
|
94
|
+
APIs. Pure Python has no Query evaluator; its Resolve projection supplies paths
|
|
95
|
+
and metadata, with values checked through the corresponding portable records.
|
|
96
|
+
Native Pytonic retains its existing Query and default inspection-budget API.
|
|
97
|
+
|
|
98
|
+
These workflow fixtures are local candidate regression material, not a promoted
|
|
99
|
+
CTS contract. Existing CTS, compatibility helpers and original target checks
|
|
100
|
+
remain unchanged. No new recursive selector, global index, public API, benchmark
|
|
101
|
+
or release claim follows. The original 1.15x latency/1.20x memory budgets remain
|
|
102
|
+
intact; retained JavaScript heap qualification stays deferred/unqualified.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Empty property keys — development integration
|
|
2
|
+
|
|
3
|
+
Quoted empty member and attribute names are ordinary property names. `$` is the
|
|
4
|
+
scope root; `$.[""]` selects its empty-named child; `$.[" "]` selects a different
|
|
5
|
+
child. An absent name, an empty Binding Set and an empty value are distinct.
|
|
6
|
+
Duplicate names remain duplicates, including two empty names under one parent.
|
|
7
|
+
|
|
8
|
+
Resolve and admitted Query consumers retain original bindings and structural
|
|
9
|
+
result paths. A declared child identity may select an empty-named child as an
|
|
10
|
+
alias; it does not change that child's canonical structural path. This does not
|
|
11
|
+
admit identity selectors into mutation, activated address values or AEON
|
|
12
|
+
references. Those consumers retain their existing separate admission policies.
|
|
13
|
+
|
|
14
|
+
Mutation creation accepts a present string name whose value is empty. Missing,
|
|
15
|
+
null and nonstring names remain invalid. Workbench structural create, replace
|
|
16
|
+
and remove operations retain the ordinary target-preservation requirements.
|
|
17
|
+
Empty identities, local-space names, datatype names and node tags are outside
|
|
18
|
+
the ordinary-property amendment and retain their existing restrictions.
|
|
19
|
+
|
|
20
|
+
Unicode name matching, exact identity and casing policies remain unchanged.
|
|
21
|
+
Name-pattern wildcards count code points, including line terminators; exact
|
|
22
|
+
names are not normalized or case folded. See [Unicode hardening](unicode-hardening.md).
|
|
23
|
+
|
|
24
|
+
The amendment is exercised through explicitly selected mutable CTS targets.
|
|
25
|
+
Historical rejection suites remain intact; their superseded empty-key cases
|
|
26
|
+
are excluded only by the evolving authority manifests and replaced with positive
|
|
27
|
+
and retained negative cases. Development results do not establish a released
|
|
28
|
+
immutable CTS claim. Package version allocation, final registry artifacts and
|
|
29
|
+
release acceptance remain separate. Official releases and deployment stay held.
|