@aicent/rttp 1.3.1 → 1.3.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/README.md +9 -5
- package/package.json +7 -2
- package/src/rttp-uri.mjs +1 -1
- package/src/vectors.json +31 -31
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**RTTP for JavaScript: `rttp://` intent addressing, `ROUTE_SHARD` derivation --
|
|
4
4
|
and the published conformance vectors that prove an implementation is right.**
|
|
5
5
|
|
|
6
|
-
[AICENT-002 sec. 10](https://rttp.com/
|
|
6
|
+
[AICENT-002 sec. 10](https://rttp.com/URI/) - spec v1.2.6 - zero dependencies - no build step
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -245,7 +245,7 @@ agreeing with its own bugs.
|
|
|
245
245
|
|
|
246
246
|
| Ecosystem | Name | Status |
|
|
247
247
|
|:---|:---|:---|
|
|
248
|
-
| crates.io | `rttp` | **this project** -- `1.3.
|
|
248
|
+
| crates.io | `rttp` | **this project** -- `1.3.2`; the first formal (non-pre-release) publication was `1.3.1`; the earlier `1.2.8-alpha` remains published and is not yanked |
|
|
249
249
|
| PyPI | `rttp` | **published** -- the Python reference implementation; `pip install rttp` |
|
|
250
250
|
| npm | **`@aicent/rttp`** | the bare `rttp` name on npm is held by an unrelated, unmaintained 2017 REST helper, and the `rttp` scope cannot be created at all -- a personal account already holds that name. This package is therefore published under the organization this project controls; the package name itself is still just `rttp`. |
|
|
251
251
|
|
|
@@ -256,14 +256,18 @@ agreeing with its own bugs.
|
|
|
256
256
|
* **`rttp` URI scheme** -- **registered**: IANA "URI Schemes" registry,
|
|
257
257
|
Provisional, **CRI 27** (2026-09-22), submitted under RFC 7595.
|
|
258
258
|
* **Internet-Draft (IETF)** -- under IETF review as the combined Individual
|
|
259
|
-
Submission Internet-Draft `draft-li-rttp-iqa-addressing` (revision -
|
|
260
|
-
|
|
259
|
+
Submission Internet-Draft `draft-li-rttp-iqa-addressing` (revision -02,
|
|
260
|
+
40 pp., 2026-11-01, informational -- both schemes, one document):
|
|
261
261
|
https://datatracker.ietf.org/doc/draft-li-rttp-iqa-addressing/ .
|
|
262
|
+
TXT sha256 `02491c5a59d1e7471be04e8e0d4933dfc22ce19f9b054ead0aa449d6b4485044`.
|
|
262
263
|
An Internet-Draft is a working document -- it is not an IETF standard and
|
|
263
264
|
carries no IETF endorsement.
|
|
265
|
+
* **Conformance records** -- sealed runs and vector families:
|
|
266
|
+
https://iqa.org/conformance/ ; the published vector sets are pinned at
|
|
267
|
+
https://iqa.org/challenge/ .
|
|
264
268
|
* **Frame layout** -- AICENT-002 sec. 4.1, extended by `SPEC/RTTP-FRAME-EXT-v1.2.6.md`.
|
|
265
269
|
* **AE-128** -- the answer-side counterpart of the pulse frame lives in the
|
|
266
|
-
sibling packages `iqa-org` 1.3.
|
|
270
|
+
sibling packages `iqa-org` 1.3.2 / `@aicent/iqa` 1.3.2 (`iqa.envelope`);
|
|
267
271
|
the two carriers do not parse each other and MUST NOT be conflated.
|
|
268
272
|
|
|
269
273
|
Where this package and the specification disagree, **the specification wins and
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aicent/rttp",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "RTTP for JavaScript: rttp:// intent validation, canonicalisation and ROUTE_SHARD derivation (
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "RTTP for JavaScript: rttp:// intent validation, canonicalisation and ROUTE_SHARD derivation (AICENT-002 sec. 10), plus the published conformance vectors and an independent replay of them, including the 128-byte frame. Zero dependencies, no build step.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rttp",
|
|
7
7
|
"uri",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"route-shard",
|
|
11
11
|
"frame",
|
|
12
12
|
"rfc-002",
|
|
13
|
+
"aicent-002",
|
|
13
14
|
"conformance",
|
|
14
15
|
"vectors",
|
|
15
16
|
"protocol"
|
|
@@ -17,6 +18,10 @@
|
|
|
17
18
|
"license": "Apache-2.0",
|
|
18
19
|
"author": "RTTP.COM Organization",
|
|
19
20
|
"homepage": "https://rttp.com/",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/Aicent-Stack/rttp.git"
|
|
24
|
+
},
|
|
20
25
|
"type": "module",
|
|
21
26
|
"main": "./src/rttp-uri.mjs",
|
|
22
27
|
"exports": {
|
package/src/rttp-uri.mjs
CHANGED
package/src/vectors.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"spec": "RTTP-FRAME-EXT-v1.2.6",
|
|
3
3
|
"applies_to": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"draft-li-rttp-iqa-addressing-02 §§4, 7.1",
|
|
5
|
+
"AICENT-002 sec. 7 (seal envelope; beyond -02)"
|
|
6
6
|
],
|
|
7
7
|
"generated_by": "SPEC/tools/conformance.py",
|
|
8
8
|
"note": "Generated file - do not edit by hand. Change the cases in conformance.py instead.",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"action_omitted": false,
|
|
79
79
|
"route_shard_hex": "cdc32d19641c84aca3292de6276de056",
|
|
80
80
|
"tolerance": true,
|
|
81
|
-
"note": "tolerance - the specification defines no such form; accepted because it is the scheme name under which a handler is registered (
|
|
81
|
+
"note": "tolerance - the specification defines no such form; accepted because it is the scheme name under which a handler is registered (draft-02 §4.5.2)"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"uri": "rttp://a-b-c.d-e.f-g/audit-v2",
|
|
@@ -98,63 +98,63 @@
|
|
|
98
98
|
"negative_uris": [
|
|
99
99
|
{
|
|
100
100
|
"uri": "rttp://f3b2a1c4.rttp.aicent/VESSEL",
|
|
101
|
-
"reason": "uppercase action - lowercase only (
|
|
101
|
+
"reason": "uppercase action - lowercase only (draft-02 §4.2)"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"uri": "rttp://F3B2A1C4.rttp.aicent/vessel",
|
|
105
|
-
"reason": "uppercase intent - lowercase only (
|
|
105
|
+
"reason": "uppercase intent - lowercase only (draft-02 §4.2)"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"uri": "RTTP://f3b2a1c4.rttp.aicent/vessel",
|
|
109
|
-
"reason": "uppercase scheme prefix - canonical form is lowercase (
|
|
109
|
+
"reason": "uppercase scheme prefix - canonical form is lowercase (draft-02 §4.2)"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"uri": "WEB+RTTP://f3b2a1c4.rttp.aicent/vessel",
|
|
113
|
-
"reason": "uppercase scheme prefix on the handler form (
|
|
113
|
+
"reason": "uppercase scheme prefix on the handler form (draft-02 §4.2)"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"uri": "rttp://subject@rttp.aicent/vessel",
|
|
117
|
-
"reason": "userinfo is not defined (
|
|
117
|
+
"reason": "userinfo is not defined (draft-02 §4.2)"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"uri": "rttp://f3b2a1c4.rttp.aicent/vessel?x=1",
|
|
121
|
-
"reason": "query is not defined (
|
|
121
|
+
"reason": "query is not defined (draft-02 §4.2)"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"uri": "rttp://f3b2a1c4.rttp.aicent/vessel#f",
|
|
125
|
-
"reason": "fragment is not defined (
|
|
125
|
+
"reason": "fragment is not defined (draft-02 §4.2)"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"uri": "rttp://f3b2a1c4.rttp.aicent:443/vessel",
|
|
129
|
-
"reason": "port is not defined (
|
|
129
|
+
"reason": "port is not defined (draft-02 §4.2)"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"uri": "rttp://f3b2a1c4.rttp.aicent/a/b",
|
|
133
|
-
"reason": "second path segment - path is a single '/<action>'"
|
|
133
|
+
"reason": "second path segment - path is a single '/<action>' (draft-02 §4.1)"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
"uri": "rttp://a.b",
|
|
137
|
-
"reason": "authority has two segments, must be <intent>.<pillar>.<root>"
|
|
137
|
+
"reason": "authority has two segments, must be <intent>.<pillar>.<root> (draft-02 §4.1)"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"uri": "rttp://a.b.c.d/e",
|
|
141
|
-
"reason": "authority has four segments, must be <intent>.<pillar>.<root>"
|
|
141
|
+
"reason": "authority has four segments, must be <intent>.<pillar>.<root> (draft-02 §4.1)"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"uri": "rttp://f3b2a1c4.rttp.aicent/",
|
|
145
|
-
"reason": "trailing '/' with empty action - action is 1*(...)"
|
|
145
|
+
"reason": "trailing '/' with empty action - action is 1*(...) (draft-02 §4.1)"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"uri": "https://f3b2a1c4.rttp.aicent/vessel",
|
|
149
|
-
"reason": "not an rttp scheme - there is no fallback (
|
|
149
|
+
"reason": "not an rttp scheme - there is no fallback (draft-02 §4.2 + §4.5.2)"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"uri": "rttp://f3b2a1c4.rttp.aicent/vessel ",
|
|
153
|
-
"reason": "trailing whitespace"
|
|
153
|
+
"reason": "trailing whitespace (draft-02 §4.1)"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"uri": "rttp://-lead.rttp.aicent/vessel",
|
|
157
|
-
"reason": "intent begins with '-'"
|
|
157
|
+
"reason": "intent begins with '-' - CONFLICT: draft-02 §4.1 ABNF name-intent literally allows a leading '-'; the vector keeps the stricter rejection and -03 will tighten the ABNF (owner decision 2026-11-09)"
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
160
|
"frame_vectors": [
|
|
@@ -202,63 +202,63 @@
|
|
|
202
202
|
{
|
|
203
203
|
"label": "ACTION_LEN exceeds the 16-byte maximum (17)",
|
|
204
204
|
"rule": "R4",
|
|
205
|
-
"spec_ref": "
|
|
205
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
206
206
|
"expected": "reject",
|
|
207
207
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d01011176657373656c0000000000000000000000000000000000"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"label": "ACTION padding is non-zero",
|
|
211
211
|
"rule": "R4",
|
|
212
|
-
"spec_ref": "
|
|
212
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
213
213
|
"expected": "reject",
|
|
214
214
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d01010676657373656c0078000000000000000000000000000000"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
"label": "ACTION contains an embedded NUL",
|
|
218
218
|
"rule": "R4",
|
|
219
|
-
"spec_ref": "
|
|
219
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
220
220
|
"expected": "reject",
|
|
221
221
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d01010676657300656c0000000000000000000000000000000000"
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
|
-
"label": "ACTION violates the
|
|
224
|
+
"label": "ACTION violates the draft-02 §4.1 grammar (uppercase)",
|
|
225
225
|
"rule": "R4",
|
|
226
|
-
"spec_ref": "
|
|
226
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
227
227
|
"expected": "reject",
|
|
228
228
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d01010656455353454c0000000000000000000000000000000000"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
"label": "SPEC_REV is outside the known set (2)",
|
|
232
232
|
"rule": "R5",
|
|
233
|
-
"spec_ref": "
|
|
233
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
234
234
|
"expected": "reject",
|
|
235
235
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d02010676657373656c0000000000000000000000000000000000"
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"label": "SPEC_REV is outside the known set (255)",
|
|
239
239
|
"rule": "R5",
|
|
240
|
-
"spec_ref": "
|
|
240
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
241
241
|
"expected": "reject",
|
|
242
242
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789dff010676657373656c0000000000000000000000000000000000"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
"label": "SPEC_REV=0 with a non-zero extension block",
|
|
246
246
|
"rule": "R6",
|
|
247
|
-
"spec_ref": "
|
|
247
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
248
248
|
"expected": "reject",
|
|
249
249
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d00010676657373656c0000000000000000000000000000000000"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"label": "RESERVED is non-zero under SPEC_REV=1",
|
|
253
253
|
"rule": "R7",
|
|
254
|
-
"spec_ref": "
|
|
254
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
255
255
|
"expected": "reject",
|
|
256
256
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d01010676657373656c0000000000000000000001000000000000"
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
"label": "unknown FLAGS bit set under SPEC_REV=1",
|
|
260
260
|
"rule": "R7",
|
|
261
|
-
"spec_ref": "
|
|
261
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
262
262
|
"expected": "reject",
|
|
263
263
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d01030676657373656c0000000000000000000000000000000000"
|
|
264
264
|
}
|
|
@@ -267,14 +267,14 @@
|
|
|
267
267
|
{
|
|
268
268
|
"label": "SPEC_REV=1 with ACTION_LEN=0 is valid and equivalent to omission",
|
|
269
269
|
"rule": "R3",
|
|
270
|
-
"spec_ref": "
|
|
270
|
+
"spec_ref": "draft-li-rttp-iqa-addressing-02 §7.1.1",
|
|
271
271
|
"expected": "accept",
|
|
272
272
|
"action": "",
|
|
273
273
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d0101000000000000000000000000000000000000000000000000"
|
|
274
274
|
}
|
|
275
275
|
],
|
|
276
276
|
"envelope_vector": {
|
|
277
|
-
"spec": "RTTP-SEAL-ENVELOPE-v1.2.6 sec. 7",
|
|
277
|
+
"spec": "AICENT-002 (RTTP-SEAL-ENVELOPE-v1.2.6 sec. 7)",
|
|
278
278
|
"alg": "ed25519",
|
|
279
279
|
"seed_hex": "e722fed924c7f76b157faab674ea97bb7c3075f55ad7d3c6319418e22b86d611",
|
|
280
280
|
"aid": "3125ee20b2238281f70ca408192f82152647d365219184fa1fe22c08a42c035e",
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
"action": "",
|
|
295
295
|
"action_omitted": true,
|
|
296
296
|
"uri_anchored": false,
|
|
297
|
-
"expected": "verify() MUST accept; action is treated as omitted (
|
|
297
|
+
"expected": "verify() MUST accept; action is treated as omitted (draft-02 §4.3 default operation)",
|
|
298
298
|
"header_hex": "5254545000000000000000000000000000000082000000000000000000000000000000010000000000000000186cc6acd4b00000ff01bf77b78ff6ceafc363226aa5865622185d42ba8b38fe10bfa702bdfe6af536ea16e20e35fbb48d84c3658d80cad2789d0000000000000000000000000000000000000000000000000000"
|
|
299
299
|
}
|
|
300
300
|
}
|