@rentnerproxy/app-contracts 0.0.0-stage → 1.1.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 (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -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/public-schemas.d.ts +4 -0
  27. package/dist/public-schemas.js +6 -0
  28. package/dist/publication.d.ts +410 -0
  29. package/dist/publication.js +50 -0
  30. package/dist/runtime.d.ts +75 -0
  31. package/dist/runtime.js +88 -0
  32. package/dist/schemas.d.ts +926 -0
  33. package/dist/schemas.js +114 -0
  34. package/dist/ui-bridge.d.ts +81 -0
  35. package/dist/ui-bridge.js +92 -0
  36. package/dist/validation.d.ts +784 -0
  37. package/dist/validation.js +245 -0
  38. package/dist/wire.d.ts +31 -0
  39. package/dist/wire.js +54 -0
  40. package/fixtures.json +1094 -0
  41. package/http-fixtures.json +829 -0
  42. package/openapi.json +2557 -0
  43. package/package.json +60 -5
  44. package/protocol-fixtures.json +1804 -0
  45. package/upstream-probe-fixtures.json +852 -0
package/fixtures.json ADDED
@@ -0,0 +1,1094 @@
1
+ {
2
+ "manifest": {
3
+ "formatVersion": 1,
4
+ "id": "rentnerproxy.monitoring",
5
+ "version": "0.1.0-beta.1",
6
+ "target": "linux-amd64",
7
+ "source": {
8
+ "repositoryId": "8001234",
9
+ "commit": "0123456789abcdef0123456789abcdef01234567"
10
+ },
11
+ "display": {
12
+ "name": "Monitoring 🦦",
13
+ "summary": "Track service health, latency and uptime.",
14
+ "license": "MIT"
15
+ },
16
+ "requires": {
17
+ "runtimeProfile": "rentnerproxy-linux-v1",
18
+ "platformApi": ">=1.0.0 <2.0.0",
19
+ "appProtocol": ">=1.0.0 <2.0.0",
20
+ "uiBridge": ">=1.0.0 <1.4.0",
21
+ "engineCapabilities": []
22
+ },
23
+ "entrypoint": "bin/app",
24
+ "api": "api/openapi.json",
25
+ "configSchema": "schemas/settings.json",
26
+ "ui": {
27
+ "entrypoint": "ui/index.html",
28
+ "slots": ["navigation", "dashboardWidget"]
29
+ },
30
+ "providers": ["monitoring"],
31
+ "capabilities": [
32
+ {
33
+ "id": "proxy.hosts.read.v1",
34
+ "scope": "proxyHosts"
35
+ },
36
+ {
37
+ "id": "diagnostics.upstream.probe.v1",
38
+ "scope": "proxyHosts"
39
+ },
40
+ {
41
+ "id": "notifications.publish.v1",
42
+ "scope": "installation"
43
+ }
44
+ ],
45
+ "permissions": ["view", "manage"],
46
+ "data": {
47
+ "targetVersion": 3,
48
+ "readVersions": [2, 3],
49
+ "writeVersions": [3],
50
+ "migrations": [
51
+ {
52
+ "fromVersion": 0,
53
+ "toVersion": 2,
54
+ "path": "migrations/initialize.sql"
55
+ },
56
+ {
57
+ "fromVersion": 2,
58
+ "toVersion": 3,
59
+ "path": "migrations/v3.json"
60
+ }
61
+ ]
62
+ },
63
+ "resources": {
64
+ "startupTimeoutMs": 10000,
65
+ "drainTimeoutMs": 2000,
66
+ "memoryMiB": 128,
67
+ "processLimit": 4
68
+ }
69
+ },
70
+ "environment": {
71
+ "target": "linux-amd64",
72
+ "runtimeProfile": "rentnerproxy-linux-v1",
73
+ "platformApi": "1.0.0",
74
+ "appProtocol": "1.0.0",
75
+ "uiBridge": "1.0.0",
76
+ "engineCapabilities": []
77
+ },
78
+ "profiles": [
79
+ {
80
+ "profile": "monitoring",
81
+ "name": "Monitoring 🦦",
82
+ "capabilities": [
83
+ {
84
+ "id": "proxy.hosts.read.v1",
85
+ "scope": "proxyHosts"
86
+ },
87
+ {
88
+ "id": "diagnostics.upstream.probe.v1",
89
+ "scope": "proxyHosts"
90
+ },
91
+ {
92
+ "id": "notifications.publish.v1",
93
+ "scope": "installation"
94
+ }
95
+ ],
96
+ "engineCapabilities": []
97
+ },
98
+ {
99
+ "profile": "docker-discovery",
100
+ "name": "Docker Discovery",
101
+ "capabilities": [
102
+ {
103
+ "id": "docker.inventory.observe.v1",
104
+ "scope": "dockerConnections"
105
+ },
106
+ {
107
+ "id": "proxy.hosts.manage-owned.v1",
108
+ "scope": "ownedProxyHosts"
109
+ }
110
+ ],
111
+ "engineCapabilities": []
112
+ },
113
+ {
114
+ "profile": "load-balancer",
115
+ "name": "Load Balancer",
116
+ "capabilities": [
117
+ {
118
+ "id": "engine.contributions.submit.v1",
119
+ "scope": "ownedEngineResources"
120
+ }
121
+ ],
122
+ "engineCapabilities": ["caddy.load-balancing.v1"]
123
+ },
124
+ {
125
+ "profile": "dns",
126
+ "name": "DNS",
127
+ "capabilities": [
128
+ {
129
+ "id": "dns.challenge.manage.v1",
130
+ "scope": "dnsZones"
131
+ }
132
+ ],
133
+ "engineCapabilities": []
134
+ },
135
+ {
136
+ "profile": "oidc",
137
+ "name": "OIDC",
138
+ "capabilities": [
139
+ {
140
+ "id": "identity.provider.register.v1",
141
+ "scope": "identityProviders"
142
+ }
143
+ ],
144
+ "engineCapabilities": []
145
+ },
146
+ {
147
+ "profile": "crowdsec",
148
+ "name": "CrowdSec",
149
+ "capabilities": [
150
+ {
151
+ "id": "access.logs.read.v1",
152
+ "scope": "proxyHosts"
153
+ },
154
+ {
155
+ "id": "security.enforcement.contribute.v1",
156
+ "scope": "ownedEngineResources"
157
+ }
158
+ ],
159
+ "engineCapabilities": ["caddy.crowdsec.v1"]
160
+ }
161
+ ],
162
+ "targets": [
163
+ {
164
+ "target": "linux-amd64",
165
+ "archive": {
166
+ "sha256": "1111111111111111111111111111111111111111111111111111111111111111",
167
+ "sizeBytes": 512000
168
+ },
169
+ "manifestSha256": "2222222222222222222222222222222222222222222222222222222222222222",
170
+ "sbom": {
171
+ "sha256": "3333333333333333333333333333333333333333333333333333333333333333",
172
+ "sizeBytes": 2048
173
+ },
174
+ "provenance": {
175
+ "sha256": "4444444444444444444444444444444444444444444444444444444444444444",
176
+ "sizeBytes": 1024
177
+ }
178
+ },
179
+ {
180
+ "target": "linux-arm64",
181
+ "archive": {
182
+ "sha256": "5555555555555555555555555555555555555555555555555555555555555555",
183
+ "sizeBytes": 480000
184
+ },
185
+ "manifestSha256": "6666666666666666666666666666666666666666666666666666666666666666",
186
+ "sbom": {
187
+ "sha256": "7777777777777777777777777777777777777777777777777777777777777777",
188
+ "sizeBytes": 2048
189
+ },
190
+ "provenance": {
191
+ "sha256": "8888888888888888888888888888888888888888888888888888888888888888",
192
+ "sizeBytes": 1024
193
+ }
194
+ }
195
+ ],
196
+ "records": {
197
+ "candidate": {
198
+ "formatVersion": 1,
199
+ "id": "candidate-1",
200
+ "revision": 2,
201
+ "source": {
202
+ "repositoryId": "8001234",
203
+ "commit": "0123456789abcdef0123456789abcdef01234567"
204
+ },
205
+ "build": {
206
+ "repositoryId": "8008800",
207
+ "workflowCommit": "1234567890abcdef1234567890abcdef12345678",
208
+ "workflowPath": ".github/workflows/app-package.yml",
209
+ "runId": "900880141",
210
+ "attempt": 1
211
+ },
212
+ "evidence": {
213
+ "revision": 4,
214
+ "report": {
215
+ "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
216
+ "sizeBytes": 4096
217
+ },
218
+ "result": "passed"
219
+ }
220
+ },
221
+ "approval": {
222
+ "formatVersion": 1,
223
+ "id": "approval-1",
224
+ "revision": 3,
225
+ "actorId": "example-reviewer",
226
+ "approvedAt": "2026-10-05T12:30:00.000Z"
227
+ },
228
+ "receipt": {
229
+ "formatVersion": 1,
230
+ "id": "publication-1",
231
+ "approvalId": "approval-1",
232
+ "approvalRevision": 3,
233
+ "catalogRevision": 10,
234
+ "publishedAt": "2026-10-06T08:00:00.000Z",
235
+ "run": {
236
+ "repositoryId": "8008800",
237
+ "workflowCommit": "1234567890abcdef1234567890abcdef12345678",
238
+ "workflowPath": ".github/workflows/app-publish.yml",
239
+ "runId": "900880142",
240
+ "attempt": 1
241
+ }
242
+ },
243
+ "catalog": {
244
+ "formatVersion": 1,
245
+ "revision": 10,
246
+ "revocations": [
247
+ {
248
+ "appId": "rentnerproxy.monitoring",
249
+ "version": "0.0.9",
250
+ "revokedAt": "2026-10-04T00:00:00.000Z",
251
+ "reason": "withdrawn"
252
+ }
253
+ ]
254
+ },
255
+ "release": {
256
+ "appId": "rentnerproxy.monitoring",
257
+ "version": "0.1.0-beta.1",
258
+ "source": {
259
+ "repositoryId": "8001234",
260
+ "commit": "0123456789abcdef0123456789abcdef01234567"
261
+ },
262
+ "publisher": {
263
+ "namespace": "rentnerproxy",
264
+ "name": "RentnerProxy"
265
+ },
266
+ "icon": {
267
+ "format": "webp",
268
+ "sha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
269
+ "sizeBytes": 512
270
+ },
271
+ "notes": "Adds service uptime checks.\nFixes display of failed probes."
272
+ }
273
+ },
274
+ "published": {
275
+ "iconSha256": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
276
+ "iconSizeBytes": 512,
277
+ "sbom": {
278
+ "url": "https://github.com/RentnerProxy/app-catalog/releases/download/rentnerproxy.monitoring-v0.1.0-beta.1/rentnerproxy.monitoring-0.1.0-beta.1-linux-arm64.tar.zst.sbom.json",
279
+ "sha256": "7777777777777777777777777777777777777777777777777777777777777777",
280
+ "sizeBytes": 2048
281
+ },
282
+ "provenance": {
283
+ "url": "https://github.com/RentnerProxy/app-catalog/releases/download/rentnerproxy.monitoring-v0.1.0-beta.1/rentnerproxy.monitoring-0.1.0-beta.1-linux-arm64.tar.zst.provenance.json",
284
+ "sha256": "8888888888888888888888888888888888888888888888888888888888888888",
285
+ "sizeBytes": 1024
286
+ },
287
+ "downloadUrl": "https://github.com/RentnerProxy/app-catalog/releases/download/rentnerproxy.monitoring-v0.1.0-beta.1/rentnerproxy.monitoring-0.1.0-beta.1-linux-arm64.tar.zst",
288
+ "iconPath": "assets/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.webp",
289
+ "archiveSha256": "5555555555555555555555555555555555555555555555555555555555555555",
290
+ "archiveSizeBytes": 480000,
291
+ "manifestSha256": "6666666666666666666666666666666666666666666666666666666666666666"
292
+ },
293
+ "cases": [
294
+ {
295
+ "name": "future minor requirements are structurally valid",
296
+ "check": "manifest",
297
+ "path": "/manifest/requires/appProtocol",
298
+ "value": ">=1.1.0 <2.0.0"
299
+ },
300
+ {
301
+ "name": "installed protocol must meet the minimum",
302
+ "check": "compatibility",
303
+ "path": "/manifest/requires/appProtocol",
304
+ "value": ">=1.1.0 <2.0.0",
305
+ "error": "incompatibleManifest"
306
+ },
307
+ {
308
+ "name": "installed protocol may match the inclusive minimum",
309
+ "check": "compatibility",
310
+ "path": "/manifest/requires/appProtocol",
311
+ "value": ">=1.1.0 <2.0.0",
312
+ "also": [
313
+ {
314
+ "path": "/environment/appProtocol",
315
+ "value": "1.1.0"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "name": "installed protocol may not match the exclusive maximum",
321
+ "check": "compatibility",
322
+ "path": "/environment/uiBridge",
323
+ "value": "1.4.0",
324
+ "error": "incompatibleManifest"
325
+ },
326
+ {
327
+ "name": "installed protocol must have a concrete supported version",
328
+ "check": "compatibility",
329
+ "path": "/environment/appProtocol",
330
+ "value": "1.00.0",
331
+ "error": "incompatibleManifest"
332
+ },
333
+ {
334
+ "name": "required UI bridge must be available",
335
+ "check": "compatibility",
336
+ "path": "/environment/uiBridge",
337
+ "remove": true,
338
+ "error": "incompatibleManifest"
339
+ },
340
+ {
341
+ "name": "install target must match the package",
342
+ "check": "compatibility",
343
+ "path": "/environment/target",
344
+ "value": "linux-arm64",
345
+ "error": "incompatibleManifest"
346
+ },
347
+ {
348
+ "name": "local runtime must match the required profile",
349
+ "check": "compatibility",
350
+ "path": "/environment/runtimeProfile",
351
+ "value": "rentnerproxy-linux-v2",
352
+ "error": "incompatibleManifest"
353
+ },
354
+ {
355
+ "name": "required engine capabilities must be available",
356
+ "check": "compatibility",
357
+ "path": "/manifest/requires/engineCapabilities",
358
+ "value": ["caddy.load-balancing.v1"],
359
+ "error": "incompatibleManifest"
360
+ },
361
+ {
362
+ "name": "approval fails after the source repository changes consistently",
363
+ "check": "approval",
364
+ "path": "/candidate/source/repositoryId",
365
+ "value": "8001235",
366
+ "error": "approvalMismatch",
367
+ "also": [
368
+ {
369
+ "path": "/candidate/release/source/repositoryId",
370
+ "value": "8001235"
371
+ },
372
+ {
373
+ "path": "/candidate/release/packages/0/manifest/source/repositoryId",
374
+ "value": "8001235"
375
+ },
376
+ {
377
+ "path": "/candidate/release/packages/1/manifest/source/repositoryId",
378
+ "value": "8001235"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "name": "approval fails after the source commit changes consistently",
384
+ "check": "approval",
385
+ "path": "/candidate/source/commit",
386
+ "value": "dddddddddddddddddddddddddddddddddddddddd",
387
+ "error": "approvalMismatch",
388
+ "also": [
389
+ {
390
+ "path": "/candidate/release/source/commit",
391
+ "value": "dddddddddddddddddddddddddddddddddddddddd"
392
+ },
393
+ {
394
+ "path": "/candidate/release/packages/0/manifest/source/commit",
395
+ "value": "dddddddddddddddddddddddddddddddddddddddd"
396
+ },
397
+ {
398
+ "path": "/candidate/release/packages/1/manifest/source/commit",
399
+ "value": "dddddddddddddddddddddddddddddddddddddddd"
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "name": "approval fails after the app and publisher identities change consistently",
405
+ "check": "approval",
406
+ "path": "/candidate/release/appId",
407
+ "value": "other.monitoring",
408
+ "error": "approvalMismatch",
409
+ "also": [
410
+ {
411
+ "path": "/candidate/release/publisher/namespace",
412
+ "value": "other"
413
+ },
414
+ {
415
+ "path": "/candidate/release/packages/0/manifest/id",
416
+ "value": "other.monitoring"
417
+ },
418
+ {
419
+ "path": "/candidate/release/packages/1/manifest/id",
420
+ "value": "other.monitoring"
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "name": "approval fails after the publisher display name changes",
426
+ "check": "approval",
427
+ "path": "/candidate/release/publisher/name",
428
+ "value": "Example Publisher",
429
+ "error": "approvalMismatch"
430
+ },
431
+ {
432
+ "name": "approval fails after the release version changes consistently",
433
+ "check": "approval",
434
+ "path": "/candidate/release/version",
435
+ "value": "0.1.1",
436
+ "error": "approvalMismatch",
437
+ "also": [
438
+ {
439
+ "path": "/candidate/release/packages/0/manifest/version",
440
+ "value": "0.1.1"
441
+ },
442
+ {
443
+ "path": "/candidate/release/packages/1/manifest/version",
444
+ "value": "0.1.1"
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "name": "approval fails after the package architectures are swapped",
450
+ "check": "approval",
451
+ "path": "/candidate/release/packages/0/manifest/target",
452
+ "value": "linux-arm64",
453
+ "error": "approvalMismatch",
454
+ "also": [
455
+ {
456
+ "path": "/candidate/release/packages/1/manifest/target",
457
+ "value": "linux-amd64"
458
+ }
459
+ ]
460
+ },
461
+ {
462
+ "name": "approval fails after the validation report length changes",
463
+ "check": "approval",
464
+ "path": "/candidate/evidence/report/sizeBytes",
465
+ "value": 4097,
466
+ "error": "approvalMismatch"
467
+ },
468
+ {
469
+ "name": "approval fails after the build run changes",
470
+ "check": "approval",
471
+ "path": "/candidate/build/runId",
472
+ "value": "900880143",
473
+ "error": "approvalMismatch"
474
+ },
475
+ {
476
+ "name": "approval fails after the SBOM changes",
477
+ "check": "approval",
478
+ "path": "/candidate/release/packages/0/sbom/sha256",
479
+ "value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
480
+ "error": "approvalMismatch"
481
+ },
482
+ {
483
+ "name": "approval fails after the provenance length changes",
484
+ "check": "approval",
485
+ "path": "/candidate/release/packages/1/provenance/sizeBytes",
486
+ "value": 1025,
487
+ "error": "approvalMismatch"
488
+ },
489
+ {
490
+ "name": "unknown format version",
491
+ "check": "manifest",
492
+ "path": "/manifest/formatVersion",
493
+ "value": 2,
494
+ "error": "invalidShape"
495
+ },
496
+ {
497
+ "name": "unknown Linux runtime profile",
498
+ "check": "manifest",
499
+ "path": "/manifest/requires/runtimeProfile",
500
+ "value": "rentnerproxy-linux-unknown",
501
+ "error": "invalidShape"
502
+ },
503
+ {
504
+ "name": "unsupported protocol major",
505
+ "check": "manifest",
506
+ "path": "/manifest/requires/appProtocol",
507
+ "value": ">=2.0.0 <3.0.0",
508
+ "error": "invalidShape"
509
+ },
510
+ {
511
+ "name": "empty compatibility range",
512
+ "check": "manifest",
513
+ "path": "/manifest/requires/platformApi",
514
+ "value": ">=1.2.0 <1.2.0",
515
+ "error": "invalidManifest"
516
+ },
517
+ {
518
+ "name": "reversed compatibility range",
519
+ "check": "manifest",
520
+ "path": "/manifest/requires/appProtocol",
521
+ "value": ">=1.4.0 <1.3.0",
522
+ "error": "invalidManifest"
523
+ },
524
+ {
525
+ "name": "UI bridge must match declared UI",
526
+ "check": "manifest",
527
+ "path": "/manifest/requires/uiBridge",
528
+ "value": null,
529
+ "error": "invalidManifest",
530
+ "remove": true
531
+ },
532
+ {
533
+ "name": "null is not omission",
534
+ "check": "manifest",
535
+ "path": "/manifest/configSchema",
536
+ "value": null,
537
+ "error": "invalidShape"
538
+ },
539
+ {
540
+ "name": "unknown capability",
541
+ "check": "manifest",
542
+ "path": "/manifest/capabilities/0/id",
543
+ "value": "docker.host.control.v1",
544
+ "error": "invalidShape"
545
+ },
546
+ {
547
+ "name": "wrong resource scope",
548
+ "check": "manifest",
549
+ "path": "/manifest/capabilities/0/scope",
550
+ "value": "installation",
551
+ "error": "invalidShape"
552
+ },
553
+ {
554
+ "name": "duplicate permission",
555
+ "check": "manifest",
556
+ "path": "/manifest/permissions",
557
+ "value": ["view", "view"],
558
+ "error": "invalidManifest"
559
+ },
560
+ {
561
+ "name": "unsafe executable path",
562
+ "check": "manifest",
563
+ "path": "/manifest/entrypoint",
564
+ "value": "/bin/app",
565
+ "error": "invalidShape"
566
+ },
567
+ {
568
+ "name": "unsafe UI traversal",
569
+ "check": "manifest",
570
+ "path": "/manifest/ui/entrypoint",
571
+ "value": "ui/../index.html",
572
+ "error": "invalidShape"
573
+ },
574
+ {
575
+ "name": "encoded configuration path",
576
+ "check": "manifest",
577
+ "path": "/manifest/configSchema",
578
+ "value": "schemas/%2e%2e/settings.json",
579
+ "error": "invalidShape"
580
+ },
581
+ {
582
+ "name": "absolute migration path with JSON suffix",
583
+ "check": "manifest",
584
+ "path": "/manifest/data/migrations/1/path",
585
+ "value": "/outside.json",
586
+ "error": "invalidShape"
587
+ },
588
+ {
589
+ "name": "empty path segment",
590
+ "check": "manifest",
591
+ "path": "/manifest/ui/entrypoint",
592
+ "value": "ui//index.html",
593
+ "error": "invalidShape"
594
+ },
595
+ {
596
+ "name": "duplicate provider registration",
597
+ "check": "manifest",
598
+ "path": "/manifest/providers",
599
+ "value": ["monitoring", "monitoring"],
600
+ "error": "invalidManifest"
601
+ },
602
+ {
603
+ "name": "incident categories come with their capability",
604
+ "check": "manifest",
605
+ "path": "/manifest/incidentCategories",
606
+ "value": [
607
+ {
608
+ "id": "host-availability",
609
+ "name": "Host availability",
610
+ "resource": "proxyHost"
611
+ },
612
+ {
613
+ "id": "app-health",
614
+ "name": "App health",
615
+ "resource": "none"
616
+ }
617
+ ],
618
+ "also": [
619
+ {
620
+ "path": "/manifest/capabilities",
621
+ "value": [
622
+ {
623
+ "id": "proxy.hosts.read.v1",
624
+ "scope": "proxyHosts"
625
+ },
626
+ {
627
+ "id": "diagnostics.upstream.probe.v1",
628
+ "scope": "proxyHosts"
629
+ },
630
+ {
631
+ "id": "notifications.publish.v1",
632
+ "scope": "installation"
633
+ },
634
+ {
635
+ "id": "notifications.incidents.manage.v1",
636
+ "scope": "installation"
637
+ }
638
+ ]
639
+ }
640
+ ]
641
+ },
642
+ {
643
+ "name": "incident categories require their capability",
644
+ "check": "manifest",
645
+ "path": "/manifest/incidentCategories",
646
+ "value": [
647
+ {
648
+ "id": "host-availability",
649
+ "name": "Host availability",
650
+ "resource": "proxyHost"
651
+ }
652
+ ],
653
+ "error": "invalidManifest"
654
+ },
655
+ {
656
+ "name": "the incident capability requires categories",
657
+ "path": "/manifest/capabilities",
658
+ "value": [
659
+ {
660
+ "id": "proxy.hosts.read.v1",
661
+ "scope": "proxyHosts"
662
+ },
663
+ {
664
+ "id": "diagnostics.upstream.probe.v1",
665
+ "scope": "proxyHosts"
666
+ },
667
+ {
668
+ "id": "notifications.publish.v1",
669
+ "scope": "installation"
670
+ },
671
+ {
672
+ "id": "notifications.incidents.manage.v1",
673
+ "scope": "installation"
674
+ }
675
+ ],
676
+ "check": "manifest",
677
+ "error": "invalidManifest"
678
+ },
679
+ {
680
+ "name": "duplicate incident category",
681
+ "check": "manifest",
682
+ "path": "/manifest/incidentCategories",
683
+ "value": [
684
+ {
685
+ "id": "host-availability",
686
+ "name": "Host availability",
687
+ "resource": "proxyHost"
688
+ },
689
+ {
690
+ "id": "host-availability",
691
+ "name": "Other",
692
+ "resource": "proxyHost"
693
+ }
694
+ ],
695
+ "error": "invalidManifest",
696
+ "also": [
697
+ {
698
+ "path": "/manifest/capabilities",
699
+ "value": [
700
+ {
701
+ "id": "proxy.hosts.read.v1",
702
+ "scope": "proxyHosts"
703
+ },
704
+ {
705
+ "id": "diagnostics.upstream.probe.v1",
706
+ "scope": "proxyHosts"
707
+ },
708
+ {
709
+ "id": "notifications.publish.v1",
710
+ "scope": "installation"
711
+ },
712
+ {
713
+ "id": "notifications.incidents.manage.v1",
714
+ "scope": "installation"
715
+ }
716
+ ]
717
+ }
718
+ ]
719
+ },
720
+ {
721
+ "name": "unknown incident resource",
722
+ "check": "manifest",
723
+ "path": "/manifest/incidentCategories",
724
+ "value": [
725
+ {
726
+ "id": "host-availability",
727
+ "name": "Host availability",
728
+ "resource": "dockerContainer"
729
+ }
730
+ ],
731
+ "error": "invalidShape",
732
+ "also": [
733
+ {
734
+ "path": "/manifest/capabilities",
735
+ "value": [
736
+ {
737
+ "id": "proxy.hosts.read.v1",
738
+ "scope": "proxyHosts"
739
+ },
740
+ {
741
+ "id": "diagnostics.upstream.probe.v1",
742
+ "scope": "proxyHosts"
743
+ },
744
+ {
745
+ "id": "notifications.publish.v1",
746
+ "scope": "installation"
747
+ },
748
+ {
749
+ "id": "notifications.incidents.manage.v1",
750
+ "scope": "installation"
751
+ }
752
+ ]
753
+ }
754
+ ]
755
+ },
756
+ {
757
+ "name": "an incident category name has no format characters",
758
+ "check": "manifest",
759
+ "path": "/manifest/incidentCategories",
760
+ "value": [
761
+ {
762
+ "id": "host-availability",
763
+ "name": "Host‮availability",
764
+ "resource": "proxyHost"
765
+ }
766
+ ],
767
+ "error": "invalidShape",
768
+ "also": [
769
+ {
770
+ "path": "/manifest/capabilities",
771
+ "value": [
772
+ {
773
+ "id": "proxy.hosts.read.v1",
774
+ "scope": "proxyHosts"
775
+ },
776
+ {
777
+ "id": "diagnostics.upstream.probe.v1",
778
+ "scope": "proxyHosts"
779
+ },
780
+ {
781
+ "id": "notifications.publish.v1",
782
+ "scope": "installation"
783
+ },
784
+ {
785
+ "id": "notifications.incidents.manage.v1",
786
+ "scope": "installation"
787
+ }
788
+ ]
789
+ }
790
+ ]
791
+ },
792
+ {
793
+ "name": "empty incident category list",
794
+ "check": "manifest",
795
+ "path": "/manifest/incidentCategories",
796
+ "value": [],
797
+ "error": "invalidShape",
798
+ "also": [
799
+ {
800
+ "path": "/manifest/capabilities",
801
+ "value": [
802
+ {
803
+ "id": "proxy.hosts.read.v1",
804
+ "scope": "proxyHosts"
805
+ },
806
+ {
807
+ "id": "diagnostics.upstream.probe.v1",
808
+ "scope": "proxyHosts"
809
+ },
810
+ {
811
+ "id": "notifications.publish.v1",
812
+ "scope": "installation"
813
+ },
814
+ {
815
+ "id": "notifications.incidents.manage.v1",
816
+ "scope": "installation"
817
+ }
818
+ ]
819
+ }
820
+ ]
821
+ },
822
+ {
823
+ "name": "unknown engine capability",
824
+ "check": "manifest",
825
+ "path": "/manifest/requires/engineCapabilities",
826
+ "value": ["caddy.unknown.v1"],
827
+ "error": "invalidShape"
828
+ },
829
+ {
830
+ "name": "data writes without matching reads",
831
+ "check": "manifest",
832
+ "path": "/manifest/data/writeVersions",
833
+ "value": [3, 4],
834
+ "error": "invalidManifest"
835
+ },
836
+ {
837
+ "name": "data target must be writable",
838
+ "check": "manifest",
839
+ "path": "/manifest/data/writeVersions",
840
+ "value": [2],
841
+ "error": "invalidManifest"
842
+ },
843
+ {
844
+ "name": "migration branches from the same state",
845
+ "check": "manifest",
846
+ "path": "/manifest/data/migrations/1/fromVersion",
847
+ "value": 0,
848
+ "error": "invalidManifest"
849
+ },
850
+ {
851
+ "name": "migration chain does not reach target",
852
+ "check": "manifest",
853
+ "path": "/manifest/data/migrations/0/toVersion",
854
+ "value": 1,
855
+ "error": "invalidManifest"
856
+ },
857
+ {
858
+ "name": "build metadata cannot alias an approved version",
859
+ "check": "manifest",
860
+ "path": "/manifest/version",
861
+ "value": "0.1.0+different",
862
+ "error": "invalidShape"
863
+ },
864
+ {
865
+ "name": "control character in display metadata",
866
+ "check": "manifest",
867
+ "path": "/manifest/display/name",
868
+ "value": "Monitoring\ninvalid",
869
+ "error": "invalidShape"
870
+ },
871
+ {
872
+ "name": "duplicate release",
873
+ "check": "catalog",
874
+ "path": "/catalog/releases/1",
875
+ "value": true,
876
+ "error": "invalidCatalog",
877
+ "copyFrom": "/catalog/releases/0"
878
+ },
879
+ {
880
+ "name": "wrong publisher namespace",
881
+ "check": "catalog",
882
+ "path": "/catalog/releases/0/publisher/namespace",
883
+ "value": "unrelated",
884
+ "error": "invalidRelease"
885
+ },
886
+ {
887
+ "name": "duplicate target archive",
888
+ "check": "catalog",
889
+ "path": "/catalog/releases/0/packages/1/manifest/target",
890
+ "value": "linux-amd64",
891
+ "error": "invalidRelease"
892
+ },
893
+ {
894
+ "name": "official version must include both supported targets",
895
+ "check": "catalog",
896
+ "path": "/catalog/releases/0/packages/1",
897
+ "value": null,
898
+ "error": "invalidRelease",
899
+ "remove": true
900
+ },
901
+ {
902
+ "name": "package source differs from the catalog source",
903
+ "check": "catalog",
904
+ "path": "/catalog/releases/0/packages/0/manifest/source/commit",
905
+ "value": "1111111111111111111111111111111111111111",
906
+ "error": "invalidRelease"
907
+ },
908
+ {
909
+ "name": "conflicting localized display for another target",
910
+ "check": "catalog",
911
+ "path": "/catalog/releases/0/packages/1/manifest/display/name",
912
+ "value": "Another app",
913
+ "error": "invalidRelease"
914
+ },
915
+ {
916
+ "name": "active version cannot also be revoked",
917
+ "check": "catalog",
918
+ "path": "/catalog/revocations/0/version",
919
+ "value": "0.1.0-beta.1",
920
+ "error": "invalidCatalog"
921
+ },
922
+ {
923
+ "name": "no arbitrary download URL",
924
+ "check": "catalog",
925
+ "path": "/catalog/releases/0/packages/0/downloadUrl",
926
+ "value": "https://example.invalid/install?token=example",
927
+ "error": "invalidShape"
928
+ },
929
+ {
930
+ "name": "no account data in the signed publisher record",
931
+ "check": "catalog",
932
+ "path": "/catalog/releases/0/publisher/email",
933
+ "value": "reviewer@example.invalid",
934
+ "error": "invalidShape"
935
+ },
936
+ {
937
+ "name": "no approval actor in the public release",
938
+ "check": "catalog",
939
+ "path": "/catalog/releases/0/actorId",
940
+ "value": "example-reviewer",
941
+ "error": "invalidShape"
942
+ },
943
+ {
944
+ "name": "no rating fields in the signed snapshot",
945
+ "check": "catalog",
946
+ "path": "/catalog/ratings",
947
+ "value": [],
948
+ "error": "invalidShape"
949
+ },
950
+ {
951
+ "name": "wire integers beyond JavaScript's exact range",
952
+ "check": "catalog",
953
+ "path": "/catalog/revision",
954
+ "value": 9007199254740992,
955
+ "error": "invalidShape"
956
+ },
957
+ {
958
+ "name": "archive length above v1 maximum",
959
+ "check": "catalog",
960
+ "path": "/catalog/releases/0/packages/0/archive/sizeBytes",
961
+ "value": 2147483648,
962
+ "error": "invalidShape"
963
+ },
964
+ {
965
+ "name": "invalid revocation date",
966
+ "check": "catalog",
967
+ "path": "/catalog/revocations/0/revokedAt",
968
+ "value": "2026-02-30T00:00:00.000Z",
969
+ "error": "invalidShape"
970
+ },
971
+ {
972
+ "name": "candidate source differs from the released source",
973
+ "check": "candidate",
974
+ "path": "/candidate/source/repositoryId",
975
+ "value": "8001235",
976
+ "error": "invalidCandidate"
977
+ },
978
+ {
979
+ "name": "approval fails for another candidate ID",
980
+ "check": "approval",
981
+ "path": "/candidate/id",
982
+ "value": "candidate-2",
983
+ "error": "approvalMismatch"
984
+ },
985
+ {
986
+ "name": "approval fails after candidate revision changes",
987
+ "check": "approval",
988
+ "path": "/candidate/revision",
989
+ "value": 3,
990
+ "error": "approvalMismatch"
991
+ },
992
+ {
993
+ "name": "approval fails after the build is rerun",
994
+ "check": "approval",
995
+ "path": "/candidate/build/attempt",
996
+ "value": 2,
997
+ "error": "approvalMismatch"
998
+ },
999
+ {
1000
+ "name": "approval fails after the validation revision changes",
1001
+ "check": "approval",
1002
+ "path": "/candidate/evidence/revision",
1003
+ "value": 5,
1004
+ "error": "approvalMismatch"
1005
+ },
1006
+ {
1007
+ "name": "approval fails after evidence bytes change",
1008
+ "check": "approval",
1009
+ "path": "/candidate/evidence/report/sha256",
1010
+ "value": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
1011
+ "error": "approvalMismatch"
1012
+ },
1013
+ {
1014
+ "name": "approval fails after package bytes change",
1015
+ "check": "approval",
1016
+ "path": "/candidate/release/packages/0/archive/sha256",
1017
+ "value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
1018
+ "error": "approvalMismatch"
1019
+ },
1020
+ {
1021
+ "name": "approval fails after ARM64 archive length changes",
1022
+ "check": "approval",
1023
+ "path": "/candidate/release/packages/1/archive/sizeBytes",
1024
+ "value": 480001,
1025
+ "error": "approvalMismatch"
1026
+ },
1027
+ {
1028
+ "name": "approval fails after manifest bytes change",
1029
+ "check": "approval",
1030
+ "path": "/candidate/release/packages/0/manifestSha256",
1031
+ "value": "9999999999999999999999999999999999999999999999999999999999999999",
1032
+ "error": "approvalMismatch"
1033
+ },
1034
+ {
1035
+ "name": "approval fails after capabilities change",
1036
+ "check": "approval",
1037
+ "path": "/candidate/release/packages/0/manifest/capabilities/0",
1038
+ "value": {
1039
+ "id": "proxy.hosts.manage-owned.v1",
1040
+ "scope": "ownedProxyHosts"
1041
+ },
1042
+ "error": "approvalMismatch"
1043
+ },
1044
+ {
1045
+ "name": "approval fails after provenance changes",
1046
+ "check": "approval",
1047
+ "path": "/candidate/release/packages/0/provenance/sha256",
1048
+ "value": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd",
1049
+ "error": "approvalMismatch"
1050
+ },
1051
+ {
1052
+ "name": "approval fails after the public icon changes",
1053
+ "check": "approval",
1054
+ "path": "/candidate/release/icon/sha256",
1055
+ "value": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
1056
+ "error": "approvalMismatch"
1057
+ },
1058
+ {
1059
+ "name": "publication refers to a different approval",
1060
+ "check": "publication",
1061
+ "path": "/receipt/approvalId",
1062
+ "value": "approval-2",
1063
+ "error": "publicationMismatch"
1064
+ },
1065
+ {
1066
+ "name": "publication refers to a stale approval revision",
1067
+ "check": "publication",
1068
+ "path": "/receipt/approvalRevision",
1069
+ "value": 2,
1070
+ "error": "publicationMismatch"
1071
+ },
1072
+ {
1073
+ "name": "publication refers to a different catalog revision",
1074
+ "check": "publication",
1075
+ "path": "/receipt/catalogRevision",
1076
+ "value": 11,
1077
+ "error": "publicationMismatch"
1078
+ },
1079
+ {
1080
+ "name": "published archive differs from review",
1081
+ "check": "publication",
1082
+ "path": "/receipt/release/packages/0/archive/sha256",
1083
+ "value": "9999999999999999999999999999999999999999999999999999999999999999",
1084
+ "error": "publicationMismatch"
1085
+ },
1086
+ {
1087
+ "name": "published catalog points at different bytes",
1088
+ "check": "publication",
1089
+ "path": "/catalog/releases/0/packages/1/archive/sha256",
1090
+ "value": "9999999999999999999999999999999999999999999999999999999999999999",
1091
+ "error": "publicationMismatch"
1092
+ }
1093
+ ]
1094
+ }