@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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "passed",
|
|
3
|
+
"checks": 18,
|
|
4
|
+
"sut": "node scripts/cts-aeonic-temporal-civil-date-adapter.mjs",
|
|
5
|
+
"cases": [
|
|
6
|
+
{
|
|
7
|
+
"name": "request-bytes-at-16384",
|
|
8
|
+
"status": "passed",
|
|
9
|
+
"companion_limits": {}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "request-bytes-over-16384",
|
|
13
|
+
"status": "passed",
|
|
14
|
+
"companion_limits": {}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "depth-32",
|
|
18
|
+
"status": "passed",
|
|
19
|
+
"companion_limits": {}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "depth-33",
|
|
23
|
+
"status": "passed",
|
|
24
|
+
"companion_limits": {}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "input-ranges-at-128",
|
|
28
|
+
"status": "passed",
|
|
29
|
+
"companion_limits": {}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "input-ranges-over-128",
|
|
33
|
+
"status": "passed",
|
|
34
|
+
"companion_limits": {}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "count-characters-at-32",
|
|
38
|
+
"status": "passed",
|
|
39
|
+
"companion_limits": {}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "count-characters-over-32",
|
|
43
|
+
"status": "passed",
|
|
44
|
+
"companion_limits": {}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "output-ranges-0524-12-31",
|
|
48
|
+
"status": "passed",
|
|
49
|
+
"companion_limits": {
|
|
50
|
+
"maxCalendarWork": 7000
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "output-ranges-0528-12-31",
|
|
55
|
+
"status": "passed",
|
|
56
|
+
"companion_limits": {
|
|
57
|
+
"maxCalendarWork": 7000
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "calendar-work-0342-04-30",
|
|
62
|
+
"status": "passed",
|
|
63
|
+
"companion_limits": {
|
|
64
|
+
"maxOutputRanges": 4096,
|
|
65
|
+
"maxResultBytes": 524288
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "calendar-work-0342-05-31",
|
|
70
|
+
"status": "passed",
|
|
71
|
+
"companion_limits": {
|
|
72
|
+
"maxOutputRanges": 4096,
|
|
73
|
+
"maxResultBytes": 524288
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "output-characters-at-10",
|
|
78
|
+
"status": "passed",
|
|
79
|
+
"companion_limits": {}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "output-characters-below-10",
|
|
83
|
+
"status": "passed",
|
|
84
|
+
"companion_limits": {
|
|
85
|
+
"maxOutputCharacters": 9
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "native-result-bytes-below-16384",
|
|
90
|
+
"status": "passed",
|
|
91
|
+
"companion_limits": {
|
|
92
|
+
"maxInputRanges": 383,
|
|
93
|
+
"maxOutputRanges": 383,
|
|
94
|
+
"maxCalendarWork": 383,
|
|
95
|
+
"maxRequestBytes": 65536
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "native-result-bytes-over-16384",
|
|
100
|
+
"status": "passed",
|
|
101
|
+
"companion_limits": {
|
|
102
|
+
"maxInputRanges": 383,
|
|
103
|
+
"maxOutputRanges": 383,
|
|
104
|
+
"maxCalendarWork": 383,
|
|
105
|
+
"maxRequestBytes": 65536
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "exact-result-byte-boundary",
|
|
110
|
+
"status": "passed",
|
|
111
|
+
"companion_limits": {
|
|
112
|
+
"maxInputRanges": 383,
|
|
113
|
+
"maxOutputRanges": 383,
|
|
114
|
+
"maxCalendarWork": 383,
|
|
115
|
+
"maxRequestBytes": 65536,
|
|
116
|
+
"maxResultBytes": 16350
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "exact-result-byte-boundary-minus-one",
|
|
121
|
+
"status": "passed",
|
|
122
|
+
"companion_limits": {
|
|
123
|
+
"maxInputRanges": 383,
|
|
124
|
+
"maxOutputRanges": 383,
|
|
125
|
+
"maxCalendarWork": 383,
|
|
126
|
+
"maxRequestBytes": 65536,
|
|
127
|
+
"maxResultBytes": 16349
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"result_byte_probe": {
|
|
132
|
+
"last_reachable_below_default": 16350,
|
|
133
|
+
"next_reachable": 16392
|
|
134
|
+
},
|
|
135
|
+
"limits": "Companion limits isolate dimensions. Count32 admits syntax then rejects domain at stage6. Date spellings have at most10characters. No Cartesian-product, elapsed-time, heap or process-capacity guarantee."
|
|
136
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "passed",
|
|
3
|
+
"checks": 18,
|
|
4
|
+
"sut": "node scripts/cts-aeonic-temporal-civil-date-adapter.mjs",
|
|
5
|
+
"cases": [
|
|
6
|
+
{
|
|
7
|
+
"name": "request-bytes-at-16384",
|
|
8
|
+
"status": "passed",
|
|
9
|
+
"companion_limits": {}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "request-bytes-over-16384",
|
|
13
|
+
"status": "passed",
|
|
14
|
+
"companion_limits": {}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "depth-32",
|
|
18
|
+
"status": "passed",
|
|
19
|
+
"companion_limits": {}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "depth-33",
|
|
23
|
+
"status": "passed",
|
|
24
|
+
"companion_limits": {}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "input-ranges-at-128",
|
|
28
|
+
"status": "passed",
|
|
29
|
+
"companion_limits": {}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "input-ranges-over-128",
|
|
33
|
+
"status": "passed",
|
|
34
|
+
"companion_limits": {}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "count-characters-at-32",
|
|
38
|
+
"status": "passed",
|
|
39
|
+
"companion_limits": {}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "count-characters-over-32",
|
|
43
|
+
"status": "passed",
|
|
44
|
+
"companion_limits": {}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "output-ranges-0524-12-31",
|
|
48
|
+
"status": "passed",
|
|
49
|
+
"companion_limits": {
|
|
50
|
+
"maxCalendarWork": 7000
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "output-ranges-0528-12-31",
|
|
55
|
+
"status": "passed",
|
|
56
|
+
"companion_limits": {
|
|
57
|
+
"maxCalendarWork": 7000
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "calendar-work-0342-04-30",
|
|
62
|
+
"status": "passed",
|
|
63
|
+
"companion_limits": {
|
|
64
|
+
"maxOutputRanges": 4096,
|
|
65
|
+
"maxResultBytes": 524288
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "calendar-work-0342-05-31",
|
|
70
|
+
"status": "passed",
|
|
71
|
+
"companion_limits": {
|
|
72
|
+
"maxOutputRanges": 4096,
|
|
73
|
+
"maxResultBytes": 524288
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "output-characters-at-10",
|
|
78
|
+
"status": "passed",
|
|
79
|
+
"companion_limits": {}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "output-characters-below-10",
|
|
83
|
+
"status": "passed",
|
|
84
|
+
"companion_limits": {
|
|
85
|
+
"maxOutputCharacters": 9
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "native-result-bytes-below-16384",
|
|
90
|
+
"status": "passed",
|
|
91
|
+
"companion_limits": {
|
|
92
|
+
"maxInputRanges": 383,
|
|
93
|
+
"maxOutputRanges": 383,
|
|
94
|
+
"maxCalendarWork": 383,
|
|
95
|
+
"maxRequestBytes": 65536
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "native-result-bytes-over-16384",
|
|
100
|
+
"status": "passed",
|
|
101
|
+
"companion_limits": {
|
|
102
|
+
"maxInputRanges": 383,
|
|
103
|
+
"maxOutputRanges": 383,
|
|
104
|
+
"maxCalendarWork": 383,
|
|
105
|
+
"maxRequestBytes": 65536
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "exact-result-byte-boundary",
|
|
110
|
+
"status": "passed",
|
|
111
|
+
"companion_limits": {
|
|
112
|
+
"maxInputRanges": 383,
|
|
113
|
+
"maxOutputRanges": 383,
|
|
114
|
+
"maxCalendarWork": 383,
|
|
115
|
+
"maxRequestBytes": 65536,
|
|
116
|
+
"maxResultBytes": 16350
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "exact-result-byte-boundary-minus-one",
|
|
121
|
+
"status": "passed",
|
|
122
|
+
"companion_limits": {
|
|
123
|
+
"maxInputRanges": 383,
|
|
124
|
+
"maxOutputRanges": 383,
|
|
125
|
+
"maxCalendarWork": 383,
|
|
126
|
+
"maxRequestBytes": 65536,
|
|
127
|
+
"maxResultBytes": 16349
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"result_byte_probe": {
|
|
132
|
+
"last_reachable_below_default": 16350,
|
|
133
|
+
"next_reachable": 16392
|
|
134
|
+
},
|
|
135
|
+
"limits": "Companion limits isolate dimensions. Count32 admits syntax then rejects domain at stage6. Date spellings have at most10characters. No Cartesian-product, elapsed-time, heap or process-capacity guarantee."
|
|
136
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "passed",
|
|
3
|
+
"target": "aeonic-temporal-civil-date-cts-v1-snapshot-0.1",
|
|
4
|
+
"target_status": "immutable-local",
|
|
5
|
+
"stable_conformance_claim": true,
|
|
6
|
+
"semantic_execution": true,
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"relations"
|
|
9
|
+
],
|
|
10
|
+
"excluded_unclaimed_capability_cases": 120,
|
|
11
|
+
"operation_cases": 63,
|
|
12
|
+
"chains": 0,
|
|
13
|
+
"law_groups": 1,
|
|
14
|
+
"sut_executions": 171,
|
|
15
|
+
"assertions": 185,
|
|
16
|
+
"manifest_sha256": "a4492f02990fe915cbf6eacf571c85cd5c79412e52ee97cef532904c616c47f3",
|
|
17
|
+
"runner_sha256": "51365d57a3060357fcfabdc9345a96188659d5acdd96e72410b066ca00ba18cd",
|
|
18
|
+
"specification_source_sha256": "3bd2ddebc945fc0ddc2f2fcc9f993d7b88ba0ec8cf55f78ac34036ab8c1fbfc8",
|
|
19
|
+
"specification_schema_sha256": "34f516c6a131c886f9482bf703020b193ed205de6eb7f66136e22d3447a7fd93",
|
|
20
|
+
"helper_hashes": {
|
|
21
|
+
"runners/run_aeonic_arithmetic.py": "4688056a3753d67dbaa03902d2b39e760b385153869a646cf75c6ae43bcfc5e2",
|
|
22
|
+
"runners/run_aeonic_rational_arithmetic.py": "e1c74ff3f46d6d6ff9bbefd81eee44d2eddd14a664b97cf62eb983e98d78de90",
|
|
23
|
+
"runners/temporal_civil_date_checks.py": "ff2f4a00155874eb5c0b546e934fb3320dbf2e4c18c69db89bdba14ec0968489"
|
|
24
|
+
},
|
|
25
|
+
"resource_limits": {
|
|
26
|
+
"maxRequestBytes": 16384,
|
|
27
|
+
"maxRequestDepth": 32,
|
|
28
|
+
"maxInputRanges": 128,
|
|
29
|
+
"maxCountCharacters": 32,
|
|
30
|
+
"maxOutputRanges": 128,
|
|
31
|
+
"maxCalendarWork": 4096,
|
|
32
|
+
"maxOutputCharacters": 10,
|
|
33
|
+
"maxResultBytes": 16384
|
|
34
|
+
},
|
|
35
|
+
"sut": "node scripts/cts-aeonic-temporal-civil-date-adapter.mjs --capability-set relations",
|
|
36
|
+
"cwd": ".",
|
|
37
|
+
"failures": []
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "passed",
|
|
3
|
+
"target": "aeonic-temporal-civil-date-cts-v1-snapshot-0.1",
|
|
4
|
+
"target_status": "immutable-local",
|
|
5
|
+
"stable_conformance_claim": true,
|
|
6
|
+
"semantic_execution": true,
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"relations"
|
|
9
|
+
],
|
|
10
|
+
"excluded_unclaimed_capability_cases": 120,
|
|
11
|
+
"operation_cases": 63,
|
|
12
|
+
"chains": 0,
|
|
13
|
+
"law_groups": 1,
|
|
14
|
+
"sut_executions": 171,
|
|
15
|
+
"assertions": 185,
|
|
16
|
+
"manifest_sha256": "a4492f02990fe915cbf6eacf571c85cd5c79412e52ee97cef532904c616c47f3",
|
|
17
|
+
"runner_sha256": "51365d57a3060357fcfabdc9345a96188659d5acdd96e72410b066ca00ba18cd",
|
|
18
|
+
"specification_source_sha256": "3bd2ddebc945fc0ddc2f2fcc9f993d7b88ba0ec8cf55f78ac34036ab8c1fbfc8",
|
|
19
|
+
"specification_schema_sha256": "34f516c6a131c886f9482bf703020b193ed205de6eb7f66136e22d3447a7fd93",
|
|
20
|
+
"helper_hashes": {
|
|
21
|
+
"runners/run_aeonic_arithmetic.py": "4688056a3753d67dbaa03902d2b39e760b385153869a646cf75c6ae43bcfc5e2",
|
|
22
|
+
"runners/run_aeonic_rational_arithmetic.py": "e1c74ff3f46d6d6ff9bbefd81eee44d2eddd14a664b97cf62eb983e98d78de90",
|
|
23
|
+
"runners/temporal_civil_date_checks.py": "ff2f4a00155874eb5c0b546e934fb3320dbf2e4c18c69db89bdba14ec0968489"
|
|
24
|
+
},
|
|
25
|
+
"resource_limits": {
|
|
26
|
+
"maxRequestBytes": 16384,
|
|
27
|
+
"maxRequestDepth": 32,
|
|
28
|
+
"maxInputRanges": 128,
|
|
29
|
+
"maxCountCharacters": 32,
|
|
30
|
+
"maxOutputRanges": 128,
|
|
31
|
+
"maxCalendarWork": 4096,
|
|
32
|
+
"maxOutputCharacters": 10,
|
|
33
|
+
"maxResultBytes": 16384
|
|
34
|
+
},
|
|
35
|
+
"sut": "node scripts/cts-aeonic-temporal-civil-date-adapter.mjs --capability-set relations",
|
|
36
|
+
"cwd": ".",
|
|
37
|
+
"failures": []
|
|
38
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Aeonic exact arithmetic
|
|
2
|
+
|
|
3
|
+
The unreleased JavaScript API implements the complete finite exact arithmetic
|
|
4
|
+
capability of `aeonic-arithmetic-cts-v1-snapshot-0.1`. Snapshot compatibility
|
|
5
|
+
does not publish a package or promote the specification's proposal lifecycle.
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import { evaluateAeonicArithmetic } from '@altopelago/sansa';
|
|
9
|
+
|
|
10
|
+
const number = value => ({ number: { category: 'finiteNumber', value } });
|
|
11
|
+
const sum = evaluateAeonicArithmetic({
|
|
12
|
+
operation: 'add', input: { left: number('0.1'), right: number('0.2') },
|
|
13
|
+
});
|
|
14
|
+
if (sum.outcome === 'value') {
|
|
15
|
+
// sum.value.number is { category: 'exactNumber', coefficient: '3', exponent: '-1' }
|
|
16
|
+
const product = evaluateAeonicArithmetic({
|
|
17
|
+
operation: 'multiply', input: { left: sum.value, right: number('10') },
|
|
18
|
+
});
|
|
19
|
+
if (product.outcome === 'value') {
|
|
20
|
+
const output = evaluateAeonicArithmetic({
|
|
21
|
+
operation: 'materialize',
|
|
22
|
+
input: { value: product.value, policy: { family: 'decimal' } },
|
|
23
|
+
});
|
|
24
|
+
// Successful output.value.number is { category: 'finiteNumber', value: '3.0' }.
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`add`, `subtract` and `multiply` calculate exact normalized coefficient/exponent
|
|
30
|
+
text pairs. Materialization explicitly selects `integer`, `decimal` or
|
|
31
|
+
`exponent`; requesting an integer representation for a fractional value yields
|
|
32
|
+
`unrepresentable_result`. No rounding, automatic coercion, division, quantization,
|
|
33
|
+
infinity or NaN arithmetic is introduced. Authored Number spellings are preserved
|
|
34
|
+
at the operand boundary. All calculated zeros have one mathematical value;
|
|
35
|
+
materialization may explicitly select `zeroSign: 'negative'`.
|
|
36
|
+
|
|
37
|
+
Supply `history: 'approximation-declared'` when an input has declared prior
|
|
38
|
+
rounding/approximation. Arithmetic propagates the marker even through zero and
|
|
39
|
+
cancellation; it never infers history from spelling. Derived `exactNumber`
|
|
40
|
+
operands require explicit history, including `none-declared`. Every successful
|
|
41
|
+
result includes the reusable value/history bundle, current evaluation status
|
|
42
|
+
`exact-for-operands`, and complete effective policy. Saving a bare Number loses
|
|
43
|
+
the marker unless the application explicitly preserves that metadata.
|
|
44
|
+
|
|
45
|
+
Failures have `outcome: 'diagnostic'`, a reason, stage and JSON pointer, and no
|
|
46
|
+
value. Applications must check the outcome before chaining. Errors never
|
|
47
|
+
automatically produce null or other values. Recognized deferred domains return
|
|
48
|
+
`unsupported_domain`; unknown categories and malformed values fail validation.
|
|
49
|
+
The only supported semantic profile is `aeonic.operations.arithmetic.exact.v1`.
|
|
50
|
+
Policy/context overrides and unknown-field validation follow the frozen contract.
|
|
51
|
+
|
|
52
|
+
For exact division and explicit quantization, select the separate
|
|
53
|
+
[rational API](aeonic-rational-arithmetic.md). That page also describes both
|
|
54
|
+
finite and rational calculate-and-materialize convenience helpers.
|
|
55
|
+
|
|
56
|
+
## Ingress and resource settings
|
|
57
|
+
|
|
58
|
+
`evaluateAeonicArithmetic(request, options)` accepts typed logical operands.
|
|
59
|
+
It checks graph depth/cycles without inventing JSON bytes for native input.
|
|
60
|
+
`evaluateAeonicArithmeticText(requestText, options)` accepts Unicode scalar JSON
|
|
61
|
+
text; byte/depth admission precedes JSON decoding and staged operand checks.
|
|
62
|
+
Duplicate decoded keys and non-JSON constants fail closed. Invalid host text
|
|
63
|
+
arguments and malformed trusted options throw `TypeError`.
|
|
64
|
+
|
|
65
|
+
The sole trusted option is `resourceLimits`, with named nonnegative safe integers:
|
|
66
|
+
|
|
67
|
+
| Limit | Default |
|
|
68
|
+
| --- | ---: |
|
|
69
|
+
| `maxRequestBytes` | 4,194,304 UTF-8 bytes at JSON ingress |
|
|
70
|
+
| `maxRequestDepth` | 32 nested containers |
|
|
71
|
+
| `maxNumericCharacters` | 65,536 scalars per operand's numerical text |
|
|
72
|
+
| `maxCoefficientDigits` | 65,536 digits, excluding a minus sign |
|
|
73
|
+
| `maxExponentMagnitude` | 1,000,000 |
|
|
74
|
+
| `maxWorkspaceDigits` | 131,072 |
|
|
75
|
+
| `maxOutputCharacters` | 65,536 emitted Number characters |
|
|
76
|
+
|
|
77
|
+
`AEONIC_ARITHMETIC_DEFAULT_RESOURCE_LIMITS` is frozen. Limits apply per operation;
|
|
78
|
+
applications manage whole-chain budgets. Compact exact-result and expanded output
|
|
79
|
+
capacities are distinct. These are explicit admission settings, not promises
|
|
80
|
+
about every Cartesian combination of maxima or host memory/time.
|
|
81
|
+
|
|
82
|
+
Native graph hardening is separate from logical JSON conformance. Cyclic graphs
|
|
83
|
+
fail closed; a reached depth/byte guard may preempt cycle detection. Structured
|
|
84
|
+
JSON ingress used by the CTS applies per-path depth and expanded JSON byte limits.
|
|
85
|
+
Bounded populated/sparse/shared graph and Unicode controls are implementation
|
|
86
|
+
evidence, not a guarantee about arbitrary getters, proxies or user iterators.
|
|
87
|
+
Portable UTF-8 counting avoids a whole-input encoding buffer; the public module
|
|
88
|
+
has no Node `Buffer` dependency.
|
|
89
|
+
|
|
90
|
+
## Conformance and provenance
|
|
91
|
+
|
|
92
|
+
Run the shared Python runner through SANSA's adapter:
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
python3 -m pip install -r ../../aeonite-org/aeonite-cts/runners/requirements-aeonic-operations.txt
|
|
96
|
+
npm test
|
|
97
|
+
npm run cts:aeonic-arithmetic
|
|
98
|
+
node scripts/validate-cts-claims.mjs --claims conformance/aeonic-arithmetic-claims.json
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
`AEONITE_CTS_ROOT` selects the CTS `cts` directory, `AEONITE_SPECS_ROOT` the
|
|
102
|
+
specification checkout, and `PYTHON` the runner executable. CLI flags `--cts-root`,
|
|
103
|
+
`--cts`, `--specs-root` and `--report` support explicit paths. The runtime itself
|
|
104
|
+
has no Python or private-package dependency. The default manifest is frozen
|
|
105
|
+
snapshot 0.1: 69 operation cases, two chains, 16 generated capacity boundaries,
|
|
106
|
+
one law group, 339 SUT executions and 366 arithmetic assertions. An explicit
|
|
107
|
+
mutable target cannot establish this snapshot claim.
|
|
108
|
+
|
|
109
|
+
The [claim](../conformance/aeonic-arithmetic-claims.json) and
|
|
110
|
+
[report](../conformance/results/aeonic-arithmetic-snapshot-0.1.json) are separate
|
|
111
|
+
from comparison and historical SANSA claims. CI pins specs commit
|
|
112
|
+
`be4597cba2909d9756297047ec5bf34ec6cf8eea` and CTS commit
|
|
113
|
+
`321022560b477f238c69d3853c89d3aa135def2a`, on Node 20, 22 and 24. The retained
|
|
114
|
+
report normalizes `cwd` to `.` without changing verdict, hashes or counts.
|
|
115
|
+
The TypeScript consumer fixture checks direct chaining, explicit materialization
|
|
116
|
+
and the absence of values on diagnostics with TypeScript 5.9.3.
|
|
117
|
+
|
|
118
|
+
The arithmetic boundary and trusted-token binding adapt the MIT-licensed Aeonic
|
|
119
|
+
implementation at `9433ce2d57200dec2efe50ed0c02bf6b74e636e9`. Adaptation adds
|
|
120
|
+
SANSA API names, reuses existing exact-number/JSON helpers, copies scalar-key
|
|
121
|
+
ordering locally, and replaces Node byte counting with bounded portable UTF-8
|
|
122
|
+
counting. Copyright (c) 2026 Patrik; see [LICENSE](../LICENSE).
|
|
123
|
+
|
|
124
|
+
The owning specification and CTS remain in `aeonite-org/aeonite-specs` and
|
|
125
|
+
`aeonite-org/aeonite-cts`. Query syntax, comparison domains, Rust arithmetic and
|
|
126
|
+
package publication are separate capabilities; this API does not imply them.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Aeonic comparison baseline
|
|
2
|
+
|
|
3
|
+
The JavaScript package exposes `evaluateAeonicComparison` and
|
|
4
|
+
`evaluateAeonicComparisonText` as separate, proposal-stage entry points for
|
|
5
|
+
Aeonic Operations comparison snapshot 0.1. The snapshot fixes compatibility;
|
|
6
|
+
it does not promote the specification lifecycle or release a package version.
|
|
7
|
+
|
|
8
|
+
```js
|
|
9
|
+
import { evaluateAeonicComparison } from '@altopelago/sansa';
|
|
10
|
+
|
|
11
|
+
const result = evaluateAeonicComparison({
|
|
12
|
+
operation: 'compare',
|
|
13
|
+
input: {
|
|
14
|
+
left: { category: 'finiteNumber', value: '9007199254740992' },
|
|
15
|
+
right: { category: 'finiteNumber', value: '9007199254740993' },
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
// result.value = { category: 'symbol', value: 'less' }
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`equal` returns `equal`/`notEqual`; `compare` returns `less`/`equal`/`greater`.
|
|
22
|
+
Both return symbol descriptors with effective-policy metadata. Numerical text
|
|
23
|
+
is exact: `1`, `1.0` and `1e0` compare equal, as do signed zeros, while the
|
|
24
|
+
caller's representations remain intact. Strings and symbols independently use
|
|
25
|
+
Unicode scalar ordering. Booleans order `false < true`. Mixed domains return
|
|
26
|
+
`incompatible_comparison`, with no implicit cross-domain coercion.
|
|
27
|
+
|
|
28
|
+
Failures return a diagnostic reason, stage and JSON pointer, with no `value`.
|
|
29
|
+
Recognized deferred domains are rejected without interpreting opaque payloads.
|
|
30
|
+
Native numerical payloads, Boolean text, missing string payloads, empty symbols
|
|
31
|
+
and unpaired surrogates are invalid. Errors are never automatically recovered
|
|
32
|
+
into null or other values.
|
|
33
|
+
|
|
34
|
+
The historical `evaluateValueSemanticsOperation`, `aeon.value.*` profiles and
|
|
35
|
+
Query behavior retain their semantics. The historical minimum profile still
|
|
36
|
+
rejects Boolean/symbol ordering, and its equality result remains a Boolean.
|
|
37
|
+
This API does not change Query predicates or introduce arithmetic/temporal
|
|
38
|
+
operations. Its conformance applies to JavaScript, not the Rust runtime.
|
|
39
|
+
|
|
40
|
+
## Policy and context
|
|
41
|
+
|
|
42
|
+
The available profiles are `aeonic.operations.comparison.baseline.v1` and
|
|
43
|
+
`aeonic.operations.string.codepoint.v1`. Configuration belongs under
|
|
44
|
+
`input.policy` or `input.context`; operation policy overrides context settings.
|
|
45
|
+
String selection (`strings: { profile }`) and symbol selection
|
|
46
|
+
(`symbols: { mode: 'string-profile', profile }`) are independent.
|
|
47
|
+
|
|
48
|
+
Unknown fields and malformed declaration shapes produce `invalid_policy`.
|
|
49
|
+
Declared symbol order is unavailable. A selected valid declared-order setting
|
|
50
|
+
produces `unsupported_profile` at stage 3, before operand validation. Its shape
|
|
51
|
+
is still validated, including empty declarations, duplicate identities and
|
|
52
|
+
declaration budgets. Overridden settings are shape-checked but not resolved as
|
|
53
|
+
active profiles. No trusted option enables declared-order execution.
|
|
54
|
+
|
|
55
|
+
## Ingress and trusted limits
|
|
56
|
+
|
|
57
|
+
`evaluateAeonicComparison(request, options)` accepts typed logical operands and
|
|
58
|
+
checks structural depth without serializing the request or inventing a JSON
|
|
59
|
+
byte count. Completed shared subtrees are revisited only at a greater depth;
|
|
60
|
+
cycles still produce a diagnostic. `evaluateAeonicComparisonText(requestText, options)` accepts exact
|
|
61
|
+
Unicode JSON text: UTF-8 byte/depth admission precedes decoding, and malformed
|
|
62
|
+
JSON or duplicate decoded keys produce stage-2 diagnostics.
|
|
63
|
+
|
|
64
|
+
Non-scalar text arguments and malformed trusted options throw a host `TypeError`;
|
|
65
|
+
they do not produce operation values. The sole trusted option is
|
|
66
|
+
`resourceLimits`, whose named limits must be nonnegative safe integers:
|
|
67
|
+
|
|
68
|
+
| Limit | Default |
|
|
69
|
+
|---|---:|
|
|
70
|
+
| `maxRequestBytes` | 4,194,304 UTF-8 bytes at JSON ingress |
|
|
71
|
+
| `maxRequestDepth` | 32 containers |
|
|
72
|
+
| `maxNumericCharacters` | 65,536 ASCII characters per operand |
|
|
73
|
+
| `maxStringScalars` | 65,536 decoded scalars per operand |
|
|
74
|
+
| `maxSymbolScalars` | 65,536 decoded scalars per operand |
|
|
75
|
+
| `maxDeclarations` | 64 named declarations |
|
|
76
|
+
| `maxDeclaredSymbols` | 1,024 symbols per declaration |
|
|
77
|
+
|
|
78
|
+
`AEONIC_COMPARISON_DEFAULT_RESOURCE_LIMITS` exports immutable defaults. These
|
|
79
|
+
are independent capacities; operation policy does not alter trusted limits.
|
|
80
|
+
|
|
81
|
+
## Conformance
|
|
82
|
+
|
|
83
|
+
Install the shared Python runner requirements from the sibling CTS checkout:
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
python3 -m pip install -r ../../aeonite-org/aeonite-cts/runners/requirements-aeonic-operations.txt
|
|
87
|
+
npm test
|
|
88
|
+
npm run cts:aeonic-comparison
|
|
89
|
+
node scripts/validate-cts-claims.mjs --claims conformance/aeonic-comparison-claims.json
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The default target is immutable `aeonic-operations-cts-v1-snapshot-0.1`, with the
|
|
93
|
+
baseline capability set: 124 operation cases, four ordering groups, 16 generated
|
|
94
|
+
boundaries, 406 invocations and 896 ordering assertions. The selection includes
|
|
95
|
+
mandatory diagnostics for unavailable optional profiles. Both invocation modes
|
|
96
|
+
use the same adapter; declared-order execution is not claimed.
|
|
97
|
+
|
|
98
|
+
`AEONITE_CTS_ROOT` points to the CTS `cts` directory; `AEONITE_SPECS_ROOT` points
|
|
99
|
+
to the specification repository. `PYTHON` selects an executable with runner
|
|
100
|
+
dependencies installed. CLI flags `--cts-root`, `--cts`, `--specs-root` and
|
|
101
|
+
`--report` support other locations. The runtime has no Python or private package
|
|
102
|
+
dependency.
|
|
103
|
+
|
|
104
|
+
The [comparison claim](../conformance/aeonic-comparison-claims.json) and
|
|
105
|
+
[retained report](../conformance/results/aeonic-comparison-snapshot-0.1.json) are
|
|
106
|
+
separate from historical SANSA claims. CI pins specification commit
|
|
107
|
+
`8322fecd90d941bf1a5eced2d983b8354e0aa1f9` and CTS commit
|
|
108
|
+
`127c6abe047ef74f54d2c966d191c6f744b13f91`, on Node 20, 22 and 24. The retained
|
|
109
|
+
report normalizes `cwd` to `.`; normative hashes, verdict and counts are unchanged.
|
|
110
|
+
Implementation fingerprints identify the tested source of this unreleased API.
|
|
111
|
+
|
|
112
|
+
## Provenance
|
|
113
|
+
|
|
114
|
+
The boundary and JSON helper adapt the MIT-licensed Aeonic implementation at
|
|
115
|
+
commit `fefc72be3fc10db24a279862d7194507c36ec94a`. The adaptation removes
|
|
116
|
+
declared-order execution, closes trusted options, names SANSA entry points and
|
|
117
|
+
uses `TextEncoder` for portable UTF-8 admission. Exact decimal comparison was
|
|
118
|
+
originally adapted from SANSA commit `4f05ea935a684ada91a8cd6f8f75367730c1430f`;
|
|
119
|
+
the historical implementation remains intact. Copyright (c) 2026 Patrik;
|
|
120
|
+
see [LICENSE](../LICENSE).
|
|
121
|
+
|
|
122
|
+
The owning contract and CTS remain in `aeonite-org/aeonite-specs` and
|
|
123
|
+
`aeonite-org/aeonite-cts`. No frozen expectation or source artifact was changed.
|