@aicent/rttp 1.2.8 → 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 +280 -275
- package/package.json +60 -55
- package/src/conformance.d.mts +108 -108
- package/src/conformance.mjs +358 -358
- package/src/rttp-uri.mjs +325 -325
- package/src/vectors.json +31 -31
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
|
}
|