@rentnerproxy/app-contracts 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/contracts.schema.json +4007 -0
  4. package/dist/Types/contract.types.d.ts +15 -0
  5. package/dist/Types/contract.types.js +1 -0
  6. package/dist/catalog.d.ts +352 -0
  7. package/dist/catalog.js +54 -0
  8. package/dist/client.d.ts +31 -0
  9. package/dist/client.js +66 -0
  10. package/dist/http-operations.d.ts +333 -0
  11. package/dist/http-operations.generated.d.ts +299 -0
  12. package/dist/http-operations.generated.js +300 -0
  13. package/dist/http-operations.js +17 -0
  14. package/dist/http.d.ts +127 -0
  15. package/dist/http.js +142 -0
  16. package/dist/index.d.ts +5 -0
  17. package/dist/index.js +4 -0
  18. package/dist/manifest.d.ts +90 -0
  19. package/dist/manifest.js +106 -0
  20. package/dist/platform-api.d.ts +282 -0
  21. package/dist/platform-api.js +287 -0
  22. package/dist/primitives.d.ts +33 -0
  23. package/dist/primitives.js +87 -0
  24. package/dist/provider-api.d.ts +221 -0
  25. package/dist/provider-api.js +227 -0
  26. package/dist/publication.d.ts +410 -0
  27. package/dist/publication.js +50 -0
  28. package/dist/runtime.d.ts +75 -0
  29. package/dist/runtime.js +88 -0
  30. package/dist/schemas.d.ts +926 -0
  31. package/dist/schemas.js +114 -0
  32. package/dist/ui-bridge.d.ts +81 -0
  33. package/dist/ui-bridge.js +92 -0
  34. package/dist/validation.d.ts +784 -0
  35. package/dist/validation.js +245 -0
  36. package/dist/wire.d.ts +31 -0
  37. package/dist/wire.js +54 -0
  38. package/fixtures.json +1094 -0
  39. package/http-fixtures.json +829 -0
  40. package/openapi.json +2557 -0
  41. package/package.json +56 -5
  42. package/protocol-fixtures.json +1804 -0
  43. package/upstream-probe-fixtures.json +852 -0
@@ -0,0 +1,1804 @@
1
+ {
2
+ "cases": [
3
+ {
4
+ "title": "separate credentials for the private sockets",
5
+ "schema": "BootstrapDescriptor",
6
+ "document": {
7
+ "formatVersion": 1,
8
+ "appId": "rentnerproxy.reference",
9
+ "installationId": "reference-install",
10
+ "generation": 7,
11
+ "runtimeProfile": "rentnerproxy-linux-v1",
12
+ "versions": {
13
+ "appProtocol": "1.0.0",
14
+ "platformApi": "1.0.0",
15
+ "uiBridge": "1.0.0"
16
+ },
17
+ "appSocket": "/run/rentnerproxy/reference/app.sock",
18
+ "coreSocket": "/run/rentnerproxy/reference/core.sock",
19
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
20
+ "coreCredential": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
21
+ },
22
+ "valid": true
23
+ },
24
+ {
25
+ "title": "credential reused in both directions",
26
+ "schema": "BootstrapDescriptor",
27
+ "document": {
28
+ "formatVersion": 1,
29
+ "appId": "rentnerproxy.reference",
30
+ "installationId": "reference-install",
31
+ "generation": 7,
32
+ "runtimeProfile": "rentnerproxy-linux-v1",
33
+ "versions": {
34
+ "appProtocol": "1.0.0",
35
+ "platformApi": "1.0.0",
36
+ "uiBridge": "1.0.0"
37
+ },
38
+ "appSocket": "/run/rentnerproxy/reference/app.sock",
39
+ "coreSocket": "/run/rentnerproxy/reference/core.sock",
40
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
41
+ "coreCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
42
+ },
43
+ "valid": false
44
+ },
45
+ {
46
+ "title": "generation exceeds the exact JSON integer range",
47
+ "schema": "BootstrapDescriptor",
48
+ "document": {
49
+ "formatVersion": 1,
50
+ "appId": "rentnerproxy.reference",
51
+ "installationId": "reference-install",
52
+ "generation": 9007199254740992,
53
+ "runtimeProfile": "rentnerproxy-linux-v1",
54
+ "versions": {
55
+ "appProtocol": "1.0.0",
56
+ "platformApi": "1.0.0",
57
+ "uiBridge": "1.0.0"
58
+ },
59
+ "appSocket": "/run/rentnerproxy/reference/app.sock",
60
+ "coreSocket": "/run/rentnerproxy/reference/core.sock",
61
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
62
+ "coreCredential": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
63
+ },
64
+ "valid": false
65
+ },
66
+ {
67
+ "title": "socket path outside its normalized directory",
68
+ "schema": "BootstrapDescriptor",
69
+ "document": {
70
+ "formatVersion": 1,
71
+ "appId": "rentnerproxy.reference",
72
+ "installationId": "reference-install",
73
+ "generation": 7,
74
+ "runtimeProfile": "rentnerproxy-linux-v1",
75
+ "versions": {
76
+ "appProtocol": "1.0.0",
77
+ "platformApi": "1.0.0",
78
+ "uiBridge": "1.0.0"
79
+ },
80
+ "appSocket": "/run/rentnerproxy/../app.sock",
81
+ "coreSocket": "/run/rentnerproxy/reference/core.sock",
82
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
83
+ "coreCredential": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
84
+ },
85
+ "valid": false
86
+ },
87
+ {
88
+ "title": "core path with the app socket filename",
89
+ "schema": "BootstrapDescriptor",
90
+ "document": {
91
+ "formatVersion": 1,
92
+ "appId": "rentnerproxy.reference",
93
+ "installationId": "reference-install",
94
+ "generation": 7,
95
+ "runtimeProfile": "rentnerproxy-linux-v1",
96
+ "versions": {
97
+ "appProtocol": "1.0.0",
98
+ "platformApi": "1.0.0",
99
+ "uiBridge": "1.0.0"
100
+ },
101
+ "appSocket": "/run/rentnerproxy/reference/app.sock",
102
+ "coreSocket": "/run/rentnerproxy/reference/app.sock",
103
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
104
+ "coreCredential": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
105
+ },
106
+ "valid": false
107
+ },
108
+ {
109
+ "title": "negotiated version with unknown meaning",
110
+ "schema": "BootstrapDescriptor",
111
+ "document": {
112
+ "formatVersion": 1,
113
+ "appId": "rentnerproxy.reference",
114
+ "installationId": "reference-install",
115
+ "generation": 7,
116
+ "runtimeProfile": "rentnerproxy-linux-v1",
117
+ "versions": {
118
+ "appProtocol": "1.0.0",
119
+ "platformApi": "2.0.0",
120
+ "uiBridge": "1.0.0"
121
+ },
122
+ "appSocket": "/run/rentnerproxy/reference/app.sock",
123
+ "coreSocket": "/run/rentnerproxy/reference/core.sock",
124
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
125
+ "coreCredential": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
126
+ },
127
+ "valid": false
128
+ },
129
+ {
130
+ "title": "an omitted bridge version for a backend-only app",
131
+ "schema": "BootstrapDescriptor",
132
+ "document": {
133
+ "formatVersion": 1,
134
+ "appId": "rentnerproxy.reference",
135
+ "installationId": "reference-install",
136
+ "generation": 7,
137
+ "runtimeProfile": "rentnerproxy-linux-v1",
138
+ "versions": {
139
+ "appProtocol": "1.0.0",
140
+ "platformApi": "1.0.0"
141
+ },
142
+ "appSocket": "/run/rentnerproxy/reference/app.sock",
143
+ "coreSocket": "/run/rentnerproxy/reference/core.sock",
144
+ "appCredential": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
145
+ "coreCredential": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
146
+ },
147
+ "valid": true
148
+ },
149
+ {
150
+ "title": "healthy app process",
151
+ "schema": "AppHealth",
152
+ "document": {
153
+ "healthy": true
154
+ },
155
+ "valid": true
156
+ },
157
+ {
158
+ "title": "stateless app omits its data version",
159
+ "schema": "AppReadiness",
160
+ "document": {
161
+ "ready": true,
162
+ "protocolVersion": "1.0.0",
163
+ "providers": [
164
+ {
165
+ "id": "reference-monitor",
166
+ "profile": "monitoring",
167
+ "version": "1.0.0"
168
+ }
169
+ ]
170
+ },
171
+ "valid": true
172
+ },
173
+ {
174
+ "title": "additive readiness metadata",
175
+ "schema": "AppReadiness",
176
+ "document": {
177
+ "ready": true,
178
+ "protocolVersion": "1.0.0",
179
+ "providers": [
180
+ {
181
+ "id": "reference-monitor",
182
+ "profile": "monitoring",
183
+ "version": "1.0.0"
184
+ }
185
+ ],
186
+ "buildLabel": "fixture"
187
+ },
188
+ "valid": true
189
+ },
190
+ {
191
+ "title": "null app data version",
192
+ "schema": "AppReadiness",
193
+ "document": {
194
+ "ready": true,
195
+ "protocolVersion": "1.0.0",
196
+ "providers": [
197
+ {
198
+ "id": "reference-monitor",
199
+ "profile": "monitoring",
200
+ "version": "1.0.0"
201
+ }
202
+ ],
203
+ "dataVersion": null
204
+ },
205
+ "valid": false
206
+ },
207
+ {
208
+ "title": "unknown provider profile",
209
+ "schema": "AppReadiness",
210
+ "document": {
211
+ "ready": true,
212
+ "protocolVersion": "1.0.0",
213
+ "providers": [
214
+ {
215
+ "id": "reference",
216
+ "profile": "unsupported",
217
+ "version": "1.0.0"
218
+ }
219
+ ]
220
+ },
221
+ "valid": false
222
+ },
223
+ {
224
+ "title": "duplicate provider registration ID across profiles",
225
+ "schema": "AppReadiness",
226
+ "document": {
227
+ "ready": true,
228
+ "protocolVersion": "1.0.0",
229
+ "providers": [
230
+ {
231
+ "id": "shared-provider",
232
+ "profile": "monitoring",
233
+ "version": "1.0.0"
234
+ },
235
+ {
236
+ "id": "shared-provider",
237
+ "profile": "dns",
238
+ "version": "1.0.0"
239
+ }
240
+ ]
241
+ },
242
+ "valid": false
243
+ },
244
+ {
245
+ "title": "verified installation reader context",
246
+ "schema": "PlatformContext",
247
+ "document": {
248
+ "appId": "rentnerproxy.reference",
249
+ "installationId": "reference-install",
250
+ "generation": 7,
251
+ "runtimeProfile": "rentnerproxy-linux-v1",
252
+ "versions": {
253
+ "appProtocol": "1.0.0",
254
+ "platformApi": "1.0.0",
255
+ "uiBridge": "1.0.0"
256
+ },
257
+ "capabilities": [
258
+ {
259
+ "id": "proxy.hosts.read.v1",
260
+ "scope": "proxyHosts"
261
+ }
262
+ ]
263
+ },
264
+ "valid": true
265
+ },
266
+ {
267
+ "title": "unsupported capability in verified context",
268
+ "schema": "PlatformContext",
269
+ "document": {
270
+ "appId": "rentnerproxy.reference",
271
+ "installationId": "reference-install",
272
+ "generation": 7,
273
+ "runtimeProfile": "rentnerproxy-linux-v1",
274
+ "versions": {
275
+ "appProtocol": "1.0.0",
276
+ "platformApi": "1.0.0",
277
+ "uiBridge": "1.0.0"
278
+ },
279
+ "capabilities": [
280
+ {
281
+ "id": "proxy.hosts.unknown.v1",
282
+ "scope": "proxyHosts"
283
+ }
284
+ ]
285
+ },
286
+ "valid": false
287
+ },
288
+ {
289
+ "title": "check the monitoring-class probe for one host",
290
+ "schema": "AuthorizationRequest",
291
+ "document": {
292
+ "capability": {
293
+ "id": "diagnostics.upstream.probe.v2",
294
+ "scope": "proxyHosts"
295
+ },
296
+ "resourceId": "proxy-edge"
297
+ },
298
+ "valid": true
299
+ },
300
+ {
301
+ "title": "check one resource",
302
+ "schema": "AuthorizationRequest",
303
+ "document": {
304
+ "capability": {
305
+ "id": "proxy.hosts.read.v1",
306
+ "scope": "proxyHosts"
307
+ },
308
+ "resourceId": "proxy-edge"
309
+ },
310
+ "valid": true
311
+ },
312
+ {
313
+ "title": "caller-supplied actor identity",
314
+ "schema": "AuthorizationRequest",
315
+ "document": {
316
+ "capability": {
317
+ "id": "proxy.hosts.read.v1",
318
+ "scope": "proxyHosts"
319
+ },
320
+ "resourceId": "proxy-edge",
321
+ "userId": "unverified-user"
322
+ },
323
+ "valid": false
324
+ },
325
+ {
326
+ "title": "authorized resource",
327
+ "schema": "AuthorizationResult",
328
+ "document": {
329
+ "allowed": true
330
+ },
331
+ "valid": true
332
+ },
333
+ {
334
+ "title": "event identity and resumable cursor",
335
+ "schema": "PlatformEvent",
336
+ "document": {
337
+ "id": "event-01",
338
+ "cursor": "cursor_01",
339
+ "type": "proxyHostChanged",
340
+ "occurredAt": "2026-11-17T10:00:00.000Z",
341
+ "resourceId": "proxy-edge",
342
+ "revision": "r17"
343
+ },
344
+ "valid": true
345
+ },
346
+ {
347
+ "title": "UTC timestamp without the required precision",
348
+ "schema": "PlatformEvent",
349
+ "document": {
350
+ "id": "event-01",
351
+ "cursor": "cursor_01",
352
+ "type": "proxyHostChanged",
353
+ "occurredAt": "2026-11-17T10:00:00Z",
354
+ "resourceId": "proxy-edge",
355
+ "revision": "r17"
356
+ },
357
+ "valid": false
358
+ },
359
+ {
360
+ "title": "opaque event cursor",
361
+ "schema": "EventCursor",
362
+ "document": "eu2_01",
363
+ "valid": true
364
+ },
365
+ {
366
+ "title": "cursor beyond its length bound",
367
+ "schema": "EventCursor",
368
+ "document": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
369
+ "valid": false
370
+ },
371
+ {
372
+ "title": "safe problem details",
373
+ "schema": "Problem",
374
+ "document": {
375
+ "type": "urn:rentnerproxy:problem:scopeDenied",
376
+ "title": "Resource access was denied",
377
+ "status": 403,
378
+ "code": "scopeDenied",
379
+ "requestId": "request-7"
380
+ },
381
+ "valid": true
382
+ },
383
+ {
384
+ "title": "accepted operation",
385
+ "schema": "Operation",
386
+ "document": {
387
+ "id": "operation-1",
388
+ "status": "accepted"
389
+ },
390
+ "valid": true
391
+ },
392
+ {
393
+ "title": "failed operation carries a problem",
394
+ "schema": "Operation",
395
+ "document": {
396
+ "id": "operation-1",
397
+ "status": "failed",
398
+ "problem": {
399
+ "type": "urn:rentnerproxy:problem:scopeDenied",
400
+ "title": "Resource access was denied",
401
+ "status": 403,
402
+ "code": "scopeDenied",
403
+ "requestId": "request-7"
404
+ }
405
+ },
406
+ "valid": true
407
+ },
408
+ {
409
+ "title": "failed operation without a problem",
410
+ "schema": "Operation",
411
+ "document": {
412
+ "id": "operation-1",
413
+ "status": "failed"
414
+ },
415
+ "valid": false
416
+ },
417
+ {
418
+ "title": "frame ready notice",
419
+ "schema": "UiBridgeMessage",
420
+ "document": {
421
+ "type": "runtime:ready",
422
+ "nonce": "nonce_fixture-1"
423
+ },
424
+ "valid": true
425
+ },
426
+ {
427
+ "title": "bound session port handoff",
428
+ "schema": "UiBridgeMessage",
429
+ "document": {
430
+ "type": "runtime:bootstrap",
431
+ "bridgeVersion": "1.0.0",
432
+ "installId": "reference-install",
433
+ "installationGeneration": 7,
434
+ "generation": 2
435
+ },
436
+ "valid": true
437
+ },
438
+ {
439
+ "title": "session acknowledgement",
440
+ "schema": "UiBridgeMessage",
441
+ "document": {
442
+ "type": "connected",
443
+ "installId": "reference-install",
444
+ "installationGeneration": 7,
445
+ "generation": 2
446
+ },
447
+ "valid": true
448
+ },
449
+ {
450
+ "title": "host context",
451
+ "schema": "UiBridgeMessage",
452
+ "document": {
453
+ "type": "context",
454
+ "installId": "reference-install",
455
+ "installationGeneration": 7,
456
+ "generation": 2,
457
+ "theme": "dark",
458
+ "locale": "de-DE",
459
+ "route": "overview",
460
+ "ready": true
461
+ },
462
+ "valid": true
463
+ },
464
+ {
465
+ "title": "navigation by a declared route ID",
466
+ "schema": "UiBridgeMessage",
467
+ "document": {
468
+ "type": "navigate",
469
+ "installId": "reference-install",
470
+ "installationGeneration": 7,
471
+ "generation": 2,
472
+ "route": "details"
473
+ },
474
+ "valid": true
475
+ },
476
+ {
477
+ "title": "unknown bootstrapped bridge version",
478
+ "schema": "UiBridgeMessage",
479
+ "document": {
480
+ "type": "runtime:bootstrap",
481
+ "bridgeVersion": "2.0.0",
482
+ "installId": "reference-install",
483
+ "installationGeneration": 7,
484
+ "generation": 2
485
+ },
486
+ "valid": false
487
+ },
488
+ {
489
+ "title": "credential field in a browser message",
490
+ "schema": "UiBridgeMessage",
491
+ "document": {
492
+ "type": "context",
493
+ "installId": "reference-install",
494
+ "installationGeneration": 7,
495
+ "generation": 2,
496
+ "theme": "dark",
497
+ "locale": "de-DE",
498
+ "route": "overview",
499
+ "ready": true,
500
+ "appCredential": "fixture-only"
501
+ },
502
+ "valid": false
503
+ },
504
+ {
505
+ "title": "URL instead of a declared route ID",
506
+ "schema": "UiBridgeMessage",
507
+ "document": {
508
+ "type": "navigate",
509
+ "installId": "reference-install",
510
+ "installationGeneration": 7,
511
+ "generation": 2,
512
+ "route": "https://example.test/details"
513
+ },
514
+ "valid": false
515
+ },
516
+ {
517
+ "title": "invalid session generation",
518
+ "schema": "UiBridgeMessage",
519
+ "document": {
520
+ "type": "connected",
521
+ "installId": "reference-install",
522
+ "installationGeneration": 7,
523
+ "generation": 0
524
+ },
525
+ "valid": false
526
+ },
527
+ {
528
+ "title": "monitoring request",
529
+ "schema": "ProviderRequest",
530
+ "document": {
531
+ "profile": "monitoring",
532
+ "payload": {
533
+ "limit": 20
534
+ }
535
+ },
536
+ "valid": true
537
+ },
538
+ {
539
+ "title": "monitoring result",
540
+ "schema": "ProviderResult",
541
+ "document": {
542
+ "profile": "monitoring",
543
+ "payload": {
544
+ "samples": [
545
+ {
546
+ "serviceId": "edge",
547
+ "observedAt": "2026-11-17T10:00:00.000Z",
548
+ "healthy": true
549
+ }
550
+ ]
551
+ }
552
+ },
553
+ "valid": true
554
+ },
555
+ {
556
+ "title": "docker-discovery request",
557
+ "schema": "ProviderRequest",
558
+ "document": {
559
+ "profile": "docker-discovery",
560
+ "payload": {
561
+ "connectionId": "local-docker",
562
+ "limit": 20
563
+ }
564
+ },
565
+ "valid": true
566
+ },
567
+ {
568
+ "title": "docker-discovery result",
569
+ "schema": "ProviderResult",
570
+ "document": {
571
+ "profile": "docker-discovery",
572
+ "payload": {
573
+ "connectionId": "local-docker",
574
+ "observations": [
575
+ {
576
+ "workloadId": "reverse-proxy",
577
+ "observedAt": "2026-11-17T10:00:00.000Z",
578
+ "address": "192.0.2.1",
579
+ "port": 8080
580
+ }
581
+ ]
582
+ }
583
+ },
584
+ "valid": true
585
+ },
586
+ {
587
+ "title": "load-balancer request",
588
+ "schema": "ProviderRequest",
589
+ "document": {
590
+ "profile": "load-balancer",
591
+ "payload": {
592
+ "action": "apply",
593
+ "contributionId": "edge",
594
+ "revision": "2",
595
+ "policy": "roundRobin",
596
+ "upstreams": [
597
+ {
598
+ "address": "::ffff:192.0.2.1",
599
+ "port": 8080
600
+ }
601
+ ]
602
+ }
603
+ },
604
+ "valid": true
605
+ },
606
+ {
607
+ "title": "load-balancer result",
608
+ "schema": "ProviderResult",
609
+ "document": {
610
+ "profile": "load-balancer",
611
+ "payload": {
612
+ "contributionId": "edge",
613
+ "revisionStatus": {
614
+ "status": "unavailable",
615
+ "appliedRevision": "1"
616
+ }
617
+ }
618
+ },
619
+ "valid": true
620
+ },
621
+ {
622
+ "title": "dns request",
623
+ "schema": "ProviderRequest",
624
+ "document": {
625
+ "profile": "dns",
626
+ "payload": {
627
+ "action": "present",
628
+ "challengeId": "challenge-1",
629
+ "zoneId": "example-org",
630
+ "name": "_acme-challenge.example.org",
631
+ "value": "opaque-txt-value"
632
+ }
633
+ },
634
+ "valid": true
635
+ },
636
+ {
637
+ "title": "dns result",
638
+ "schema": "ProviderResult",
639
+ "document": {
640
+ "profile": "dns",
641
+ "payload": {
642
+ "action": "present",
643
+ "challengeId": "challenge-1",
644
+ "operation": {
645
+ "id": "operation-1",
646
+ "status": "accepted"
647
+ }
648
+ }
649
+ },
650
+ "valid": true
651
+ },
652
+ {
653
+ "title": "oidc request",
654
+ "schema": "ProviderRequest",
655
+ "document": {
656
+ "profile": "oidc",
657
+ "payload": {
658
+ "transactionId": "login-1"
659
+ }
660
+ },
661
+ "valid": true
662
+ },
663
+ {
664
+ "title": "oidc result",
665
+ "schema": "ProviderResult",
666
+ "document": {
667
+ "profile": "oidc",
668
+ "payload": {
669
+ "outcome": "verified",
670
+ "transactionId": "login-1",
671
+ "identity": {
672
+ "subject": "22e2",
673
+ "groups": ["engineering"]
674
+ }
675
+ }
676
+ },
677
+ "valid": true
678
+ },
679
+ {
680
+ "title": "crowdsec request",
681
+ "schema": "ProviderRequest",
682
+ "document": {
683
+ "profile": "crowdsec",
684
+ "payload": {
685
+ "action": "evaluate",
686
+ "proxyHostId": "edge",
687
+ "clientAddress": "192.0.2.5"
688
+ }
689
+ },
690
+ "valid": true
691
+ },
692
+ {
693
+ "title": "crowdsec result",
694
+ "schema": "ProviderResult",
695
+ "document": {
696
+ "profile": "crowdsec",
697
+ "payload": {
698
+ "action": "evaluate",
699
+ "decision": {
700
+ "outcome": "unavailable",
701
+ "allowed": false,
702
+ "cachedBlock": true
703
+ }
704
+ }
705
+ },
706
+ "valid": true
707
+ },
708
+ {
709
+ "title": "monitoring list beyond the page bound",
710
+ "schema": "ProviderRequest",
711
+ "document": {
712
+ "profile": "monitoring",
713
+ "payload": {
714
+ "limit": 101
715
+ }
716
+ },
717
+ "valid": false
718
+ },
719
+ {
720
+ "title": "engine requires an IP address",
721
+ "schema": "ProviderRequest",
722
+ "document": {
723
+ "profile": "load-balancer",
724
+ "payload": {
725
+ "action": "apply",
726
+ "contributionId": "edge",
727
+ "revision": "2",
728
+ "policy": "roundRobin",
729
+ "upstreams": [
730
+ {
731
+ "address": "not-an-ip",
732
+ "port": 8080
733
+ }
734
+ ]
735
+ }
736
+ },
737
+ "valid": false
738
+ },
739
+ {
740
+ "title": "engine revision is a bounded string",
741
+ "schema": "ProviderRequest",
742
+ "document": {
743
+ "profile": "load-balancer",
744
+ "payload": {
745
+ "action": "apply",
746
+ "contributionId": "edge",
747
+ "revision": 2,
748
+ "policy": "roundRobin",
749
+ "upstreams": [
750
+ {
751
+ "address": "::ffff:192.0.2.1",
752
+ "port": 8080
753
+ }
754
+ ]
755
+ }
756
+ },
757
+ "valid": false
758
+ },
759
+ {
760
+ "title": "unverified claims in an identity request",
761
+ "schema": "ProviderRequest",
762
+ "document": {
763
+ "profile": "oidc",
764
+ "payload": {
765
+ "transactionId": "login-1",
766
+ "groups": ["other"]
767
+ }
768
+ },
769
+ "valid": false
770
+ },
771
+ {
772
+ "title": "unavailable CrowdSec outcome marked as allowed",
773
+ "schema": "ProviderResult",
774
+ "document": {
775
+ "profile": "crowdsec",
776
+ "payload": {
777
+ "action": "evaluate",
778
+ "decision": {
779
+ "outcome": "unavailable",
780
+ "allowed": true,
781
+ "cachedBlock": true
782
+ }
783
+ }
784
+ },
785
+ "valid": false
786
+ },
787
+ {
788
+ "title": "provider result permits compatible metadata",
789
+ "schema": "ProviderResult",
790
+ "document": {
791
+ "profile": "monitoring",
792
+ "payload": {
793
+ "samples": [
794
+ {
795
+ "serviceId": "edge",
796
+ "observedAt": "2026-11-17T10:00:00.000Z",
797
+ "healthy": true
798
+ }
799
+ ],
800
+ "label": "fixture"
801
+ }
802
+ },
803
+ "valid": true
804
+ },
805
+ {
806
+ "title": "problem URN and code must describe the same error",
807
+ "schema": "Problem",
808
+ "document": {
809
+ "type": "urn:rentnerproxy:problem:scopeDenied",
810
+ "title": "The request failed",
811
+ "status": 403,
812
+ "code": "differentError",
813
+ "requestId": "request-1"
814
+ },
815
+ "valid": false
816
+ },
817
+ {
818
+ "title": "a successful operation cannot carry a failure problem",
819
+ "schema": "Operation",
820
+ "document": {
821
+ "id": "operation-1",
822
+ "status": "succeeded",
823
+ "problem": null
824
+ },
825
+ "valid": false
826
+ },
827
+ {
828
+ "title": "a nested DNS operation rejects inconsistent problem identity",
829
+ "schema": "ProviderResult",
830
+ "document": {
831
+ "profile": "dns",
832
+ "payload": {
833
+ "action": "present",
834
+ "challengeId": "challenge-1",
835
+ "operation": {
836
+ "id": "operation-1",
837
+ "status": "failed",
838
+ "problem": {
839
+ "type": "urn:rentnerproxy:problem:dnsUnavailable",
840
+ "title": "The DNS provider is unavailable",
841
+ "status": 503,
842
+ "code": "wrongError",
843
+ "requestId": "request-1"
844
+ }
845
+ }
846
+ }
847
+ },
848
+ "valid": false
849
+ },
850
+ {
851
+ "title": "new owned proxy host requires absent existing revision",
852
+ "schema": "OwnedProxyHostChange",
853
+ "document": {
854
+ "action": "upsert",
855
+ "hostId": "host-1",
856
+ "expectedRevision": null,
857
+ "hostname": "fixture.internal",
858
+ "upstream": {
859
+ "scheme": "https",
860
+ "address": "2001:db8::1",
861
+ "port": 443
862
+ }
863
+ },
864
+ "valid": true
865
+ },
866
+ {
867
+ "title": "host removal requires an existing revision",
868
+ "schema": "OwnedProxyHostChange",
869
+ "document": {
870
+ "action": "remove",
871
+ "hostId": "host-1",
872
+ "expectedRevision": null
873
+ },
874
+ "valid": false
875
+ },
876
+ {
877
+ "title": "proxy inventory cannot request an unbounded page",
878
+ "schema": "ProxyHostQuery",
879
+ "document": { "limit": 101 },
880
+ "valid": false
881
+ },
882
+ {
883
+ "title": "a listed host names its domains and probe revision for probing",
884
+ "schema": "ProxyHostPage",
885
+ "document": {
886
+ "hosts": [
887
+ {
888
+ "id": "host-1",
889
+ "revision": "revision-1",
890
+ "hostname": "app.example.net",
891
+ "enabled": true,
892
+ "domains": ["*.example.net", "app.example.net"],
893
+ "probeRevision": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
894
+ "upstream": {
895
+ "scheme": "http",
896
+ "targets": [
897
+ { "address": "192.0.2.10", "port": 8080 }
898
+ ],
899
+ "pool": null
900
+ }
901
+ },
902
+ {
903
+ "id": "host-2",
904
+ "revision": "revision-2",
905
+ "hostname": "legacy.example.net"
906
+ }
907
+ ]
908
+ },
909
+ "valid": true
910
+ },
911
+ {
912
+ "title": "a listed host never has an empty domain list",
913
+ "schema": "ProxyHostPage",
914
+ "document": {
915
+ "hosts": [
916
+ {
917
+ "id": "host-1",
918
+ "revision": "revision-1",
919
+ "hostname": "app.example.net",
920
+ "domains": []
921
+ }
922
+ ]
923
+ },
924
+ "valid": false
925
+ },
926
+ {
927
+ "title": "a listed probe revision is a lowercase SHA-256",
928
+ "schema": "ProxyHostPage",
929
+ "document": {
930
+ "hosts": [
931
+ {
932
+ "id": "host-1",
933
+ "revision": "revision-1",
934
+ "hostname": "app.example.net",
935
+ "probeRevision": "2C26B46B68FFC68FF99B453C1D30413413422D706483BFA0F98A5E886266E7AE"
936
+ }
937
+ ]
938
+ },
939
+ "valid": false
940
+ },
941
+ {
942
+ "title": "upstream probe is restricted to an existing host and deadline",
943
+ "schema": "UpstreamProbe",
944
+ "document": { "hostId": "host-1", "timeoutMs": 10001 },
945
+ "valid": false
946
+ },
947
+ {
948
+ "title": "a probe batch names a domain and deadline for each host",
949
+ "schema": "UpstreamProbeBatch",
950
+ "document": {
951
+ "probes": [
952
+ {
953
+ "hostId": "host-1",
954
+ "domain": "app.example.net",
955
+ "timeoutMs": 1000
956
+ },
957
+ {
958
+ "hostId": "host-2",
959
+ "domain": "api.example.net",
960
+ "timeoutMs": 8000
961
+ }
962
+ ]
963
+ },
964
+ "valid": true
965
+ },
966
+ {
967
+ "title": "a probe batch is never empty",
968
+ "schema": "UpstreamProbeBatch",
969
+ "document": { "probes": [] },
970
+ "valid": false
971
+ },
972
+ {
973
+ "title": "a probe batch names each host once",
974
+ "schema": "UpstreamProbeBatch",
975
+ "document": {
976
+ "probes": [
977
+ {
978
+ "hostId": "host-1",
979
+ "domain": "app.example.net",
980
+ "timeoutMs": 3000
981
+ },
982
+ {
983
+ "hostId": "host-1",
984
+ "domain": "www.example.net",
985
+ "timeoutMs": 3000
986
+ }
987
+ ]
988
+ },
989
+ "valid": false
990
+ },
991
+ {
992
+ "title": "a probe deadline leaves room for the platform checks",
993
+ "schema": "UpstreamProbeBatch",
994
+ "document": {
995
+ "probes": [
996
+ {
997
+ "hostId": "host-1",
998
+ "domain": "app.example.net",
999
+ "timeoutMs": 8001
1000
+ }
1001
+ ]
1002
+ },
1003
+ "valid": false
1004
+ },
1005
+ {
1006
+ "title": "a probe deadline is at least one second",
1007
+ "schema": "UpstreamProbeBatch",
1008
+ "document": {
1009
+ "probes": [
1010
+ {
1011
+ "hostId": "host-1",
1012
+ "domain": "app.example.net",
1013
+ "timeoutMs": 999
1014
+ }
1015
+ ]
1016
+ },
1017
+ "valid": false
1018
+ },
1019
+ {
1020
+ "title": "a wildcard domain cannot be probed",
1021
+ "schema": "UpstreamProbeBatch",
1022
+ "document": {
1023
+ "probes": [
1024
+ {
1025
+ "hostId": "host-1",
1026
+ "domain": "*.example.net",
1027
+ "timeoutMs": 3000
1028
+ }
1029
+ ]
1030
+ },
1031
+ "valid": false
1032
+ },
1033
+ {
1034
+ "title": "a probe names its domain",
1035
+ "schema": "UpstreamProbeBatch",
1036
+ "document": {
1037
+ "probes": [{ "hostId": "host-1", "timeoutMs": 3000 }]
1038
+ },
1039
+ "valid": false
1040
+ },
1041
+ {
1042
+ "title": "a probed host reports the first failing stage",
1043
+ "schema": "UpstreamProbeOutcome",
1044
+ "document": {
1045
+ "outcome": "probed",
1046
+ "hostId": "host-1",
1047
+ "domain": "app.example.net",
1048
+ "probeRevision": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
1049
+ "durationMs": 120,
1050
+ "httpStatus": 200,
1051
+ "failure": { "stage": "tls", "code": "tls_failed" }
1052
+ },
1053
+ "valid": true
1054
+ },
1055
+ {
1056
+ "title": "a probed host tolerates additional result fields",
1057
+ "schema": "UpstreamProbeOutcome",
1058
+ "document": {
1059
+ "outcome": "probed",
1060
+ "hostId": "host-1",
1061
+ "domain": "app.example.net",
1062
+ "probeRevision": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
1063
+ "durationMs": 0,
1064
+ "httpStatus": null,
1065
+ "failure": {
1066
+ "stage": "configuration",
1067
+ "code": "host_not_active",
1068
+ "detail": "later addition"
1069
+ },
1070
+ "addresses": ["192.0.2.10"]
1071
+ },
1072
+ "valid": true
1073
+ },
1074
+ {
1075
+ "title": "a TLS failure stage carries only the TLS failure code",
1076
+ "schema": "UpstreamProbeOutcome",
1077
+ "document": {
1078
+ "outcome": "probed",
1079
+ "hostId": "host-1",
1080
+ "domain": "app.example.net",
1081
+ "probeRevision": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
1082
+ "durationMs": 120,
1083
+ "httpStatus": null,
1084
+ "failure": { "stage": "tls", "code": "tls_verified" }
1085
+ },
1086
+ "valid": false
1087
+ },
1088
+ {
1089
+ "title": "a probed host states that no stage failed",
1090
+ "schema": "UpstreamProbeOutcome",
1091
+ "document": {
1092
+ "outcome": "probed",
1093
+ "hostId": "host-1",
1094
+ "domain": "app.example.net",
1095
+ "probeRevision": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
1096
+ "durationMs": 120,
1097
+ "httpStatus": 200
1098
+ },
1099
+ "valid": false
1100
+ },
1101
+ {
1102
+ "title": "a probe revision is a lowercase SHA-256",
1103
+ "schema": "UpstreamProbeOutcome",
1104
+ "document": {
1105
+ "outcome": "probed",
1106
+ "hostId": "host-1",
1107
+ "domain": "app.example.net",
1108
+ "probeRevision": "sha256:2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae",
1109
+ "durationMs": 120,
1110
+ "httpStatus": 200,
1111
+ "failure": null
1112
+ },
1113
+ "valid": false
1114
+ },
1115
+ {
1116
+ "title": "a probe the platform did not run names its host and reason",
1117
+ "schema": "UpstreamProbeOutcome",
1118
+ "document": {
1119
+ "outcome": "rateLimited",
1120
+ "hostId": "host-1",
1121
+ "domain": "app.example.net"
1122
+ },
1123
+ "valid": true
1124
+ },
1125
+ {
1126
+ "title": "a probe batch result returns at least one result",
1127
+ "schema": "UpstreamProbeBatchResult",
1128
+ "document": { "results": [] },
1129
+ "valid": false
1130
+ },
1131
+ {
1132
+ "title": "an open incident names its category, severity, plain text and resource",
1133
+ "schema": "AppIncidentChange",
1134
+ "document": {
1135
+ "status": "open",
1136
+ "category": "host-availability",
1137
+ "severity": "error",
1138
+ "title": "app.example.net is unreachable",
1139
+ "message": "The upstream did not answer within 3 seconds after 3 checks.",
1140
+ "resourceId": "host-1"
1141
+ },
1142
+ "valid": true
1143
+ },
1144
+ {
1145
+ "title": "an incident without a resource omits it",
1146
+ "schema": "AppIncidentChange",
1147
+ "document": {
1148
+ "status": "open",
1149
+ "category": "app-health",
1150
+ "severity": "error",
1151
+ "title": "app.example.net is unreachable",
1152
+ "message": "The upstream did not answer within 3 seconds after 3 checks."
1153
+ },
1154
+ "valid": true
1155
+ },
1156
+ {
1157
+ "title": "a resolved incident carries only its status",
1158
+ "schema": "AppIncidentChange",
1159
+ "document": {
1160
+ "status": "resolved"
1161
+ },
1162
+ "valid": true
1163
+ },
1164
+ {
1165
+ "title": "a resolved incident takes no text",
1166
+ "schema": "AppIncidentChange",
1167
+ "document": {
1168
+ "status": "resolved",
1169
+ "message": "Recovered"
1170
+ },
1171
+ "valid": false
1172
+ },
1173
+ {
1174
+ "title": "incident severity has no info level",
1175
+ "schema": "AppIncidentChange",
1176
+ "document": {
1177
+ "status": "open",
1178
+ "category": "host-availability",
1179
+ "severity": "info",
1180
+ "title": "app.example.net is unreachable",
1181
+ "message": "The upstream did not answer within 3 seconds after 3 checks.",
1182
+ "resourceId": "host-1"
1183
+ },
1184
+ "valid": false
1185
+ },
1186
+ {
1187
+ "title": "incident text cannot contain a URL",
1188
+ "schema": "AppIncidentChange",
1189
+ "document": {
1190
+ "status": "open",
1191
+ "category": "host-availability",
1192
+ "severity": "error",
1193
+ "title": "app.example.net is unreachable",
1194
+ "message": "Details at https://status.example.net",
1195
+ "resourceId": "host-1"
1196
+ },
1197
+ "valid": false
1198
+ },
1199
+ {
1200
+ "title": "incident text cannot contain a bare web address",
1201
+ "schema": "AppIncidentChange",
1202
+ "document": {
1203
+ "status": "open",
1204
+ "category": "host-availability",
1205
+ "severity": "error",
1206
+ "title": "See www.example.net",
1207
+ "message": "The upstream did not answer within 3 seconds after 3 checks.",
1208
+ "resourceId": "host-1"
1209
+ },
1210
+ "valid": false
1211
+ },
1212
+ {
1213
+ "title": "incident text cannot contain a mail link",
1214
+ "schema": "AppIncidentChange",
1215
+ "document": {
1216
+ "status": "open",
1217
+ "category": "host-availability",
1218
+ "severity": "error",
1219
+ "title": "app.example.net is unreachable",
1220
+ "message": "Write to mailto:ops@example.net",
1221
+ "resourceId": "host-1"
1222
+ },
1223
+ "valid": false
1224
+ },
1225
+ {
1226
+ "title": "incident text cannot contain format characters",
1227
+ "schema": "AppIncidentChange",
1228
+ "document": {
1229
+ "status": "open",
1230
+ "category": "host-availability",
1231
+ "severity": "error",
1232
+ "title": "app.example.net‮tnemhcatta",
1233
+ "message": "The upstream did not answer within 3 seconds after 3 checks.",
1234
+ "resourceId": "host-1"
1235
+ },
1236
+ "valid": false
1237
+ },
1238
+ {
1239
+ "title": "incident text cannot contain line breaks",
1240
+ "schema": "AppIncidentChange",
1241
+ "document": {
1242
+ "status": "open",
1243
+ "category": "host-availability",
1244
+ "severity": "error",
1245
+ "title": "app.example.net is unreachable",
1246
+ "message": "First line\nSecond line",
1247
+ "resourceId": "host-1"
1248
+ },
1249
+ "valid": false
1250
+ },
1251
+ {
1252
+ "title": "incident text cannot contain a line separator",
1253
+ "schema": "AppIncidentChange",
1254
+ "document": {
1255
+ "status": "open",
1256
+ "category": "host-availability",
1257
+ "severity": "error",
1258
+ "title": "app.example.net is unreachable",
1259
+ "message": "First
Second",
1260
+ "resourceId": "host-1"
1261
+ },
1262
+ "valid": false
1263
+ },
1264
+ {
1265
+ "title": "incident text cannot contain a paragraph separator",
1266
+ "schema": "AppIncidentChange",
1267
+ "document": {
1268
+ "status": "open",
1269
+ "category": "host-availability",
1270
+ "severity": "error",
1271
+ "title": "app.example.net is unreachable",
1272
+ "message": "First
Second",
1273
+ "resourceId": "host-1"
1274
+ },
1275
+ "valid": false
1276
+ },
1277
+ {
1278
+ "title": "incident text keeps spaces and emoji",
1279
+ "schema": "AppIncidentChange",
1280
+ "document": {
1281
+ "status": "open",
1282
+ "category": "host-availability",
1283
+ "severity": "error",
1284
+ "title": "Upstream down 🚨",
1285
+ "message": "Still down after 3 checks — investigating.",
1286
+ "resourceId": "host-1"
1287
+ },
1288
+ "valid": true
1289
+ },
1290
+ {
1291
+ "title": "incident text folds only ASCII letters when it looks for a scheme",
1292
+ "schema": "AppIncidentChange",
1293
+ "document": {
1294
+ "status": "open",
1295
+ "category": "host-availability",
1296
+ "severity": "error",
1297
+ "title": "app.example.net is unreachable",
1298
+ "message": "Marked ſ://example.net as unreachable",
1299
+ "resourceId": "host-1"
1300
+ },
1301
+ "valid": true
1302
+ },
1303
+ {
1304
+ "title": "incident text rejects an upper case URL scheme",
1305
+ "schema": "AppIncidentChange",
1306
+ "document": {
1307
+ "status": "open",
1308
+ "category": "host-availability",
1309
+ "severity": "error",
1310
+ "title": "app.example.net is unreachable",
1311
+ "message": "Details at HTTPS://status.example.net",
1312
+ "resourceId": "host-1"
1313
+ },
1314
+ "valid": false
1315
+ },
1316
+ {
1317
+ "title": "an incident title stays within 80 characters",
1318
+ "schema": "AppIncidentChange",
1319
+ "document": {
1320
+ "status": "open",
1321
+ "category": "host-availability",
1322
+ "severity": "error",
1323
+ "title": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
1324
+ "message": "The upstream did not answer within 3 seconds after 3 checks.",
1325
+ "resourceId": "host-1"
1326
+ },
1327
+ "valid": false
1328
+ },
1329
+ {
1330
+ "title": "an incident message stays within 400 characters",
1331
+ "schema": "AppIncidentChange",
1332
+ "document": {
1333
+ "status": "open",
1334
+ "category": "host-availability",
1335
+ "severity": "error",
1336
+ "title": "app.example.net is unreachable",
1337
+ "message": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
1338
+ "resourceId": "host-1"
1339
+ },
1340
+ "valid": false
1341
+ },
1342
+ {
1343
+ "title": "app-owned JSON preserves arbitrary decoded application keys",
1344
+ "schema": "AppApiPayload",
1345
+ "document": {
1346
+ "__proto__": {
1347
+ "settings": [true, null, { "greeting": "Gude" }]
1348
+ },
1349
+ "constructor": 17
1350
+ },
1351
+ "valid": true
1352
+ },
1353
+ {
1354
+ "title": "app-owned JSON validates every member value including special keys",
1355
+ "schema": "AppApiPayload",
1356
+ "document": {
1357
+ "__proto__": { "count": 9007199254740992 }
1358
+ },
1359
+ "valid": false
1360
+ },
1361
+ {
1362
+ "title": "dialog result on the bound channel",
1363
+ "schema": "UiBridgeMessage",
1364
+ "document": {
1365
+ "type": "dialogResult",
1366
+ "installId": "install-1",
1367
+ "installationGeneration": 3,
1368
+ "generation": 1,
1369
+ "requestId": "request-1",
1370
+ "outcome": "cancelled"
1371
+ },
1372
+ "valid": true
1373
+ },
1374
+ {
1375
+ "title": "API gateway request retains session binding and idempotency",
1376
+ "schema": "UiBridgeMessage",
1377
+ "document": {
1378
+ "type": "apiRequest",
1379
+ "installId": "install-1",
1380
+ "installationGeneration": 3,
1381
+ "generation": 1,
1382
+ "requestId": "request-1",
1383
+ "operationId": "save-greeting",
1384
+ "idempotencyKey": "save-1",
1385
+ "payload": { "greeting": "Gude" }
1386
+ },
1387
+ "valid": true
1388
+ },
1389
+ {
1390
+ "title": "gateway cannot report inconsistent problem identity",
1391
+ "schema": "UiBridgeMessage",
1392
+ "document": {
1393
+ "type": "apiResult",
1394
+ "installId": "install-1",
1395
+ "installationGeneration": 3,
1396
+ "generation": 1,
1397
+ "requestId": "request-1",
1398
+ "result": {
1399
+ "ok": false,
1400
+ "problem": {
1401
+ "type": "urn:rentnerproxy:problem:scopeDenied",
1402
+ "title": "Permission denied",
1403
+ "status": 403,
1404
+ "code": "differentError",
1405
+ "requestId": "request-1"
1406
+ }
1407
+ }
1408
+ },
1409
+ "valid": false
1410
+ },
1411
+ {
1412
+ "title": "a legacy handoff domain is a provider profile",
1413
+ "schema": "LegacyHandoffDomain",
1414
+ "document": "docker-discovery",
1415
+ "valid": true
1416
+ },
1417
+ {
1418
+ "title": "a legacy handoff domain rejects a record ID outside the provider profiles",
1419
+ "schema": "LegacyHandoffDomain",
1420
+ "document": "proxy-hosts",
1421
+ "valid": false
1422
+ },
1423
+ {
1424
+ "title": "a legacy handoff domain is case sensitive",
1425
+ "schema": "LegacyHandoffDomain",
1426
+ "document": "Monitoring",
1427
+ "valid": false
1428
+ },
1429
+ {
1430
+ "title": "a platform-owned domain carries no export",
1431
+ "schema": "LegacyHandoffStatus",
1432
+ "document": { "domain": "monitoring", "state": "platform" },
1433
+ "valid": true
1434
+ },
1435
+ {
1436
+ "title": "a platform-owned domain rejects a digest",
1437
+ "schema": "LegacyHandoffStatus",
1438
+ "document": {
1439
+ "domain": "monitoring",
1440
+ "state": "platform",
1441
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1442
+ },
1443
+ "valid": false
1444
+ },
1445
+ {
1446
+ "title": "an exported domain carries its digest and part count",
1447
+ "schema": "LegacyHandoffStatus",
1448
+ "document": {
1449
+ "domain": "monitoring",
1450
+ "state": "exported",
1451
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1452
+ "partCount": 3
1453
+ },
1454
+ "valid": true
1455
+ },
1456
+ {
1457
+ "title": "an exported domain may have no parts",
1458
+ "schema": "LegacyHandoffStatus",
1459
+ "document": {
1460
+ "domain": "dns",
1461
+ "state": "exported",
1462
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1463
+ "partCount": 0
1464
+ },
1465
+ "valid": true
1466
+ },
1467
+ {
1468
+ "title": "an exported domain admits the maximum part count",
1469
+ "schema": "LegacyHandoffStatus",
1470
+ "document": {
1471
+ "domain": "crowdsec",
1472
+ "state": "exported",
1473
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1474
+ "partCount": 1024
1475
+ },
1476
+ "valid": true
1477
+ },
1478
+ {
1479
+ "title": "an exported domain rejects more parts than the journal holds",
1480
+ "schema": "LegacyHandoffStatus",
1481
+ "document": {
1482
+ "domain": "crowdsec",
1483
+ "state": "exported",
1484
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1485
+ "partCount": 1025
1486
+ },
1487
+ "valid": false
1488
+ },
1489
+ {
1490
+ "title": "an exported domain requires its part count",
1491
+ "schema": "LegacyHandoffStatus",
1492
+ "document": {
1493
+ "domain": "monitoring",
1494
+ "state": "exported",
1495
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1496
+ },
1497
+ "valid": false
1498
+ },
1499
+ {
1500
+ "title": "an exported domain requires its digest",
1501
+ "schema": "LegacyHandoffStatus",
1502
+ "document": {
1503
+ "domain": "monitoring",
1504
+ "state": "exported",
1505
+ "partCount": 3
1506
+ },
1507
+ "valid": false
1508
+ },
1509
+ {
1510
+ "title": "a committed domain carries only its digest",
1511
+ "schema": "LegacyHandoffStatus",
1512
+ "document": {
1513
+ "domain": "load-balancer",
1514
+ "state": "committed",
1515
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1516
+ },
1517
+ "valid": true
1518
+ },
1519
+ {
1520
+ "title": "a committed domain rejects a part count",
1521
+ "schema": "LegacyHandoffStatus",
1522
+ "document": {
1523
+ "domain": "load-balancer",
1524
+ "state": "committed",
1525
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1526
+ "partCount": 3
1527
+ },
1528
+ "valid": false
1529
+ },
1530
+ {
1531
+ "title": "a handoff status rejects unknown members",
1532
+ "schema": "LegacyHandoffStatus",
1533
+ "document": {
1534
+ "domain": "oidc",
1535
+ "state": "committed",
1536
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1537
+ "installationId": "install-1"
1538
+ },
1539
+ "valid": false
1540
+ },
1541
+ {
1542
+ "title": "a handoff status rejects a domain outside the provider profiles",
1543
+ "schema": "LegacyHandoffStatus",
1544
+ "document": { "domain": "proxy-hosts", "state": "platform" },
1545
+ "valid": false
1546
+ },
1547
+ {
1548
+ "title": "a handoff status rejects an unknown state",
1549
+ "schema": "LegacyHandoffStatus",
1550
+ "document": { "domain": "monitoring", "state": "handoff" },
1551
+ "valid": false
1552
+ },
1553
+ {
1554
+ "title": "a handoff digest is lowercase hexadecimal",
1555
+ "schema": "LegacyHandoffStatus",
1556
+ "document": {
1557
+ "domain": "monitoring",
1558
+ "state": "committed",
1559
+ "digest": "9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08"
1560
+ },
1561
+ "valid": false
1562
+ },
1563
+ {
1564
+ "title": "a begin result carries the fixed export",
1565
+ "schema": "LegacyHandoffBeginResult",
1566
+ "document": {
1567
+ "domain": "monitoring",
1568
+ "state": "exported",
1569
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1570
+ "partCount": 3
1571
+ },
1572
+ "valid": true
1573
+ },
1574
+ {
1575
+ "title": "a begin result after commit carries only the digest",
1576
+ "schema": "LegacyHandoffBeginResult",
1577
+ "document": {
1578
+ "domain": "monitoring",
1579
+ "state": "committed",
1580
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1581
+ },
1582
+ "valid": true
1583
+ },
1584
+ {
1585
+ "title": "a begin result never reports platform ownership",
1586
+ "schema": "LegacyHandoffBeginResult",
1587
+ "document": { "domain": "monitoring", "state": "platform" },
1588
+ "valid": false
1589
+ },
1590
+ {
1591
+ "title": "a begin result after commit rejects a part count",
1592
+ "schema": "LegacyHandoffBeginResult",
1593
+ "document": {
1594
+ "domain": "monitoring",
1595
+ "state": "committed",
1596
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1597
+ "partCount": 3
1598
+ },
1599
+ "valid": false
1600
+ },
1601
+ {
1602
+ "title": "a commit result reports ownership",
1603
+ "schema": "LegacyHandoffCommitResult",
1604
+ "document": {
1605
+ "domain": "dns",
1606
+ "state": "committed",
1607
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1608
+ },
1609
+ "valid": true
1610
+ },
1611
+ {
1612
+ "title": "a commit result rejects an open export",
1613
+ "schema": "LegacyHandoffCommitResult",
1614
+ "document": {
1615
+ "domain": "dns",
1616
+ "state": "exported",
1617
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1618
+ "partCount": 3
1619
+ },
1620
+ "valid": false
1621
+ },
1622
+ {
1623
+ "title": "a commit result rejects platform ownership",
1624
+ "schema": "LegacyHandoffCommitResult",
1625
+ "document": { "domain": "dns", "state": "platform" },
1626
+ "valid": false
1627
+ },
1628
+ {
1629
+ "title": "a commit result requires the digest",
1630
+ "schema": "LegacyHandoffCommitResult",
1631
+ "document": { "domain": "dns", "state": "committed" },
1632
+ "valid": false
1633
+ },
1634
+ {
1635
+ "title": "a commit result rejects unknown members",
1636
+ "schema": "LegacyHandoffCommitResult",
1637
+ "document": {
1638
+ "domain": "dns",
1639
+ "state": "committed",
1640
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1641
+ "installationId": "install-1"
1642
+ },
1643
+ "valid": false
1644
+ },
1645
+ {
1646
+ "title": "a part request names the export and the first sequence",
1647
+ "schema": "LegacyHandoffPartRequest",
1648
+ "document": {
1649
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1650
+ "sequence": 0
1651
+ },
1652
+ "valid": true
1653
+ },
1654
+ {
1655
+ "title": "a part request names the last possible sequence",
1656
+ "schema": "LegacyHandoffPartRequest",
1657
+ "document": {
1658
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1659
+ "sequence": 1023
1660
+ },
1661
+ "valid": true
1662
+ },
1663
+ {
1664
+ "title": "a part request rejects a sequence beyond the journal",
1665
+ "schema": "LegacyHandoffPartRequest",
1666
+ "document": {
1667
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1668
+ "sequence": 1024
1669
+ },
1670
+ "valid": false
1671
+ },
1672
+ {
1673
+ "title": "a part request rejects a negative sequence",
1674
+ "schema": "LegacyHandoffPartRequest",
1675
+ "document": {
1676
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1677
+ "sequence": -1
1678
+ },
1679
+ "valid": false
1680
+ },
1681
+ {
1682
+ "title": "a part request rejects a fractional sequence",
1683
+ "schema": "LegacyHandoffPartRequest",
1684
+ "document": {
1685
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1686
+ "sequence": 1.5
1687
+ },
1688
+ "valid": false
1689
+ },
1690
+ {
1691
+ "title": "a part request requires a sequence",
1692
+ "schema": "LegacyHandoffPartRequest",
1693
+ "document": {
1694
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1695
+ },
1696
+ "valid": false
1697
+ },
1698
+ {
1699
+ "title": "a part request requires the export digest",
1700
+ "schema": "LegacyHandoffPartRequest",
1701
+ "document": { "sequence": 0 },
1702
+ "valid": false
1703
+ },
1704
+ {
1705
+ "title": "a part request rejects a malformed digest",
1706
+ "schema": "LegacyHandoffPartRequest",
1707
+ "document": { "digest": "9f86d081884c7d65", "sequence": 0 },
1708
+ "valid": false
1709
+ },
1710
+ {
1711
+ "title": "a part request rejects unknown members",
1712
+ "schema": "LegacyHandoffPartRequest",
1713
+ "document": {
1714
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1715
+ "sequence": 0,
1716
+ "domain": "monitoring"
1717
+ },
1718
+ "valid": false
1719
+ },
1720
+ {
1721
+ "title": "a part carries app wire JSON",
1722
+ "schema": "LegacyHandoffPart",
1723
+ "document": {
1724
+ "sequence": 2,
1725
+ "part": {
1726
+ "kind": "monitor",
1727
+ "items": [{ "id": "monitor-1", "intervalSeconds": 60 }],
1728
+ "history": null
1729
+ }
1730
+ },
1731
+ "valid": true
1732
+ },
1733
+ {
1734
+ "title": "a part may be any wire JSON value",
1735
+ "schema": "LegacyHandoffPart",
1736
+ "document": { "sequence": 0, "part": ["entry", 1, null, true] },
1737
+ "valid": true
1738
+ },
1739
+ {
1740
+ "title": "a part requires its content",
1741
+ "schema": "LegacyHandoffPart",
1742
+ "document": { "sequence": 0 },
1743
+ "valid": false
1744
+ },
1745
+ {
1746
+ "title": "a part rejects a sequence beyond the journal",
1747
+ "schema": "LegacyHandoffPart",
1748
+ "document": { "sequence": 1024, "part": {} },
1749
+ "valid": false
1750
+ },
1751
+ {
1752
+ "title": "a part rejects unknown members",
1753
+ "schema": "LegacyHandoffPart",
1754
+ "document": { "sequence": 0, "part": {}, "partCount": 1 },
1755
+ "valid": false
1756
+ },
1757
+ {
1758
+ "title": "a part rejects numbers outside the exact JSON integer range",
1759
+ "schema": "LegacyHandoffPart",
1760
+ "document": {
1761
+ "sequence": 0,
1762
+ "part": { "count": 9007199254740992 }
1763
+ },
1764
+ "valid": false
1765
+ },
1766
+ {
1767
+ "title": "a commit names the exported digest",
1768
+ "schema": "LegacyHandoffCommit",
1769
+ "document": {
1770
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
1771
+ },
1772
+ "valid": true
1773
+ },
1774
+ {
1775
+ "title": "a commit rejects an uppercase digest",
1776
+ "schema": "LegacyHandoffCommit",
1777
+ "document": {
1778
+ "digest": "9F86D081884C7D659A2FEAA0C55AD015A3BF4F1B2B0B822CD15D6C15B0F00A08"
1779
+ },
1780
+ "valid": false
1781
+ },
1782
+ {
1783
+ "title": "a commit rejects a truncated digest",
1784
+ "schema": "LegacyHandoffCommit",
1785
+ "document": { "digest": "9f86d081884c7d659a2feaa0c55ad015" },
1786
+ "valid": false
1787
+ },
1788
+ {
1789
+ "title": "a commit requires a digest",
1790
+ "schema": "LegacyHandoffCommit",
1791
+ "document": {},
1792
+ "valid": false
1793
+ },
1794
+ {
1795
+ "title": "a commit rejects unknown members",
1796
+ "schema": "LegacyHandoffCommit",
1797
+ "document": {
1798
+ "digest": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
1799
+ "partCount": 3
1800
+ },
1801
+ "valid": false
1802
+ }
1803
+ ]
1804
+ }