planr 1.9.0 → 1.10.0-alpha.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.
Files changed (67) hide show
  1. package/README.md +32 -5
  2. package/docs/ARCHITECTURE.md +1 -1
  3. package/docs/RELEASE.md +37 -7
  4. package/docs/contracts/EVIDENCE_CONTRACT_V1.md +283 -0
  5. package/docs/contracts/fixtures/evidence/v1/examples/coverage-verdict.json +66 -0
  6. package/docs/contracts/fixtures/evidence/v1/examples/evidence-attempt.json +39 -0
  7. package/docs/contracts/fixtures/evidence/v1/examples/evidence-policy.json +117 -0
  8. package/docs/contracts/fixtures/evidence/v1/examples/evidence-receipt.json +93 -0
  9. package/docs/contracts/fixtures/evidence/v1/examples/evidence-waiver.json +31 -0
  10. package/docs/contracts/fixtures/evidence/v1/examples/proof-obligation.json +67 -0
  11. package/docs/contracts/fixtures/evidence/v1/examples/proof-preset.json +28 -0
  12. package/docs/contracts/fixtures/evidence/v1/examples/untrusted-evidence-proposal.json +20 -0
  13. package/docs/contracts/fixtures/evidence/v1/examples/verification-capability-instance.json +39 -0
  14. package/docs/contracts/fixtures/evidence/v1/examples/verification-capability-manifest.json +52 -0
  15. package/docs/contracts/fixtures/evidence/v1/negative/aborted-zero-exit-attempt.json +39 -0
  16. package/docs/contracts/fixtures/evidence/v1/negative/adapter-registration-missing-execution-contract.json +97 -0
  17. package/docs/contracts/fixtures/evidence/v1/negative/available-empty-probe-capability.json +27 -0
  18. package/docs/contracts/fixtures/evidence/v1/negative/blocked-coverage-with-stale-reason.json +27 -0
  19. package/docs/contracts/fixtures/evidence/v1/negative/empty-trust-bindings-receipt.json +72 -0
  20. package/docs/contracts/fixtures/evidence/v1/negative/failed-zero-exit-attempt.json +39 -0
  21. package/docs/contracts/fixtures/evidence/v1/negative/forged-trusted-receipt.json +35 -0
  22. package/docs/contracts/fixtures/evidence/v1/negative/inconclusive-clean-exit-attempt.json +39 -0
  23. package/docs/contracts/fixtures/evidence/v1/negative/inconclusive-coverage-with-blocked-reason.json +27 -0
  24. package/docs/contracts/fixtures/evidence/v1/negative/minimal-policy-missing-owned-inputs.json +5 -0
  25. package/docs/contracts/fixtures/evidence/v1/negative/mismatched-probe-execution-id-capability.json +42 -0
  26. package/docs/contracts/fixtures/evidence/v1/negative/passed-empty-attempt.json +22 -0
  27. package/docs/contracts/fixtures/evidence/v1/negative/policy-default-preset-unregistered.json +111 -0
  28. package/docs/contracts/fixtures/evidence/v1/negative/policy-weakening-without-waiver.json +111 -0
  29. package/docs/contracts/fixtures/evidence/v1/negative/process-probe-missing-output-limits.json +49 -0
  30. package/docs/contracts/fixtures/evidence/v1/negative/satisfied-empty-coverage-verdict.json +14 -0
  31. package/docs/contracts/fixtures/evidence/v1/negative/skipped-zero-exit-attempt.json +39 -0
  32. package/docs/contracts/fixtures/evidence/v1/negative/stale-coverage-with-inconclusive-reason.json +27 -0
  33. package/docs/contracts/fixtures/evidence/v1/negative/timed-out-zero-exit-attempt.json +39 -0
  34. package/docs/contracts/fixtures/evidence/v1/negative/unavailable-zero-exit-attempt.json +39 -0
  35. package/docs/contracts/fixtures/evidence/v1/negative/unbound-waiver.json +21 -0
  36. package/docs/contracts/fixtures/evidence/v1/negative/unsatisfied-coverage-without-gap.json +63 -0
  37. package/docs/contracts/fixtures/evidence/v1/negative/waived-coverage-forbidden-gap-reason.json +28 -0
  38. package/docs/contracts/fixtures/evidence/v1/negative/waived-coverage-missing-waiver-id.json +27 -0
  39. package/docs/contracts/fixtures/evidence/v1/schemas/evidence-contract-v1.schema.json +2705 -0
  40. package/docs/documentation/CONTRACT.md +1 -1
  41. package/docs/documentation/COVERAGE.md +8 -5
  42. package/docs/documentation/INFORMATION_ARCHITECTURE.md +1 -1
  43. package/docs/fixtures/mcp-contract.json +18 -0
  44. package/npm/native/darwin-arm64/planr +0 -0
  45. package/npm/native/darwin-arm64/planr-host-capability-validator +0 -0
  46. package/npm/native/darwin-x86_64/planr +0 -0
  47. package/npm/native/darwin-x86_64/planr-host-capability-validator +0 -0
  48. package/npm/native/linux-arm64/planr +0 -0
  49. package/npm/native/linux-arm64/planr-host-capability-validator +0 -0
  50. package/npm/native/linux-x86_64/planr +0 -0
  51. package/npm/native/linux-x86_64/planr-host-capability-validator +0 -0
  52. package/package.json +15 -2
  53. package/plugins/planr/.claude-plugin/plugin.json +1 -1
  54. package/plugins/planr/.codex-plugin/plugin.json +1 -1
  55. package/plugins/planr/skills/planr-goal/SKILL.md +7 -4
  56. package/plugins/planr/skills/planr-loop/SKILL.md +11 -8
  57. package/plugins/planr/skills/planr-loop/references/recovery-and-verification.md +5 -4
  58. package/plugins/planr/skills/planr-plan/SKILL.md +1 -1
  59. package/plugins/planr/skills/planr-review/SKILL.md +5 -1
  60. package/plugins/planr/skills/planr-status/SKILL.md +3 -1
  61. package/plugins/planr/skills/planr-verify-web/SKILL.md +9 -6
  62. package/plugins/planr/skills/planr-work/SKILL.md +17 -3
  63. package/scripts/host-capability-experiment.mjs +2477 -0
  64. package/scripts/host-capability-runtime/v1/schemas/host-capability-expected-manifest.schema.json +377 -0
  65. package/scripts/host-capability-runtime/v1/schemas/host-capability-observed-raw.schema.json +439 -0
  66. package/scripts/host-capability-runtime/v1/schemas/host-capability-provenance.schema.json +178 -0
  67. package/scripts/planr-host-capability-validator +51 -0
@@ -0,0 +1,2705 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://planr.local/contracts/evidence/v1/evidence-contract-v1.schema.json",
4
+ "title": "Planr Evidence Contract v1",
5
+ "type": "object",
6
+ "oneOf": [
7
+ {
8
+ "$ref": "#/$defs/ProofObligation"
9
+ },
10
+ {
11
+ "$ref": "#/$defs/VerificationCapabilityManifest"
12
+ },
13
+ {
14
+ "$ref": "#/$defs/VerificationCapabilityInstance"
15
+ },
16
+ {
17
+ "$ref": "#/$defs/EvidenceAttempt"
18
+ },
19
+ {
20
+ "$ref": "#/$defs/UntrustedEvidenceProposal"
21
+ },
22
+ {
23
+ "$ref": "#/$defs/EvidenceReceipt"
24
+ },
25
+ {
26
+ "$ref": "#/$defs/CoverageVerdict"
27
+ },
28
+ {
29
+ "$ref": "#/$defs/EvidencePolicy"
30
+ },
31
+ {
32
+ "$ref": "#/$defs/ProofPreset"
33
+ },
34
+ {
35
+ "$ref": "#/$defs/EvidenceWaiver"
36
+ }
37
+ ],
38
+ "$defs": {
39
+ "SchemaVersion": {
40
+ "const": "evidence.contract.v1"
41
+ },
42
+ "Id": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
46
+ },
47
+ "Timestamp": {
48
+ "type": "string",
49
+ "format": "date-time"
50
+ },
51
+ "Digest": {
52
+ "type": "string",
53
+ "pattern": "^sha256:[a-f0-9]{64}$"
54
+ },
55
+ "NamespaceName": {
56
+ "type": "string",
57
+ "pattern": "^(planr|mcp|host|project|[a-z0-9]+(\\.[a-z0-9-]+)+)\\.[a-z0-9][a-z0-9._-]*$"
58
+ },
59
+ "JsonObject": {
60
+ "type": "object",
61
+ "additionalProperties": true
62
+ },
63
+ "PayloadSchemaBinding": {
64
+ "type": "object",
65
+ "required": [
66
+ "type",
67
+ "schema_ref",
68
+ "schema_digest"
69
+ ],
70
+ "additionalProperties": false,
71
+ "properties": {
72
+ "type": {
73
+ "$ref": "#/$defs/NamespaceName"
74
+ },
75
+ "schema_ref": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "schema_digest": {
80
+ "$ref": "#/$defs/Digest"
81
+ }
82
+ }
83
+ },
84
+ "ProcessExecutionContract": {
85
+ "type": "object",
86
+ "required": [
87
+ "kind",
88
+ "executable",
89
+ "args",
90
+ "timeout_ms",
91
+ "stdout_limit_bytes",
92
+ "stderr_limit_bytes",
93
+ "payload_schema"
94
+ ],
95
+ "additionalProperties": false,
96
+ "properties": {
97
+ "kind": {
98
+ "const": "process"
99
+ },
100
+ "executable": {
101
+ "type": "string",
102
+ "minLength": 1
103
+ },
104
+ "args": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string"
108
+ }
109
+ },
110
+ "working_directory": {
111
+ "type": "string",
112
+ "minLength": 1
113
+ },
114
+ "timeout_ms": {
115
+ "type": "integer",
116
+ "minimum": 1
117
+ },
118
+ "stdout_limit_bytes": {
119
+ "type": "integer",
120
+ "minimum": 1
121
+ },
122
+ "stderr_limit_bytes": {
123
+ "type": "integer",
124
+ "minimum": 1
125
+ },
126
+ "payload_schema": {
127
+ "$ref": "#/$defs/PayloadSchemaBinding"
128
+ }
129
+ }
130
+ },
131
+ "ProcessAvailabilityProbe": {
132
+ "type": "object",
133
+ "required": [
134
+ "kind",
135
+ "execution"
136
+ ],
137
+ "additionalProperties": false,
138
+ "properties": {
139
+ "kind": {
140
+ "const": "process"
141
+ },
142
+ "execution": {
143
+ "$ref": "#/$defs/ProcessExecutionContract"
144
+ }
145
+ }
146
+ },
147
+ "AvailabilityProbeContract": {
148
+ "oneOf": [
149
+ {
150
+ "$ref": "#/$defs/ProcessAvailabilityProbe"
151
+ }
152
+ ]
153
+ },
154
+ "EvidenceScope": {
155
+ "type": "object",
156
+ "required": [
157
+ "kind",
158
+ "id"
159
+ ],
160
+ "additionalProperties": false,
161
+ "properties": {
162
+ "kind": {
163
+ "enum": [
164
+ "criterion",
165
+ "item",
166
+ "plan",
167
+ "goal"
168
+ ]
169
+ },
170
+ "id": {
171
+ "$ref": "#/$defs/Id"
172
+ },
173
+ "plan_id": {
174
+ "$ref": "#/$defs/Id"
175
+ },
176
+ "item_id": {
177
+ "$ref": "#/$defs/Id"
178
+ },
179
+ "criterion_id": {
180
+ "$ref": "#/$defs/Id"
181
+ }
182
+ }
183
+ },
184
+ "StringList": {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string",
188
+ "minLength": 1
189
+ }
190
+ },
191
+ "ArtifactRef": {
192
+ "type": "object",
193
+ "required": [
194
+ "id",
195
+ "kind",
196
+ "digest"
197
+ ],
198
+ "additionalProperties": true,
199
+ "properties": {
200
+ "id": {
201
+ "$ref": "#/$defs/Id"
202
+ },
203
+ "kind": {
204
+ "type": "string",
205
+ "minLength": 1
206
+ },
207
+ "digest": {
208
+ "$ref": "#/$defs/Digest"
209
+ },
210
+ "uri": {
211
+ "type": "string",
212
+ "minLength": 1
213
+ }
214
+ }
215
+ },
216
+ "SourceBinding": {
217
+ "type": "object",
218
+ "required": [
219
+ "revision",
220
+ "tree_digest",
221
+ "dirty"
222
+ ],
223
+ "additionalProperties": false,
224
+ "properties": {
225
+ "revision": {
226
+ "type": "string",
227
+ "minLength": 7
228
+ },
229
+ "tree_digest": {
230
+ "$ref": "#/$defs/Digest"
231
+ },
232
+ "dirty": {
233
+ "type": "boolean"
234
+ }
235
+ }
236
+ },
237
+ "TargetBinding": {
238
+ "type": "object",
239
+ "required": [
240
+ "kind"
241
+ ],
242
+ "anyOf": [
243
+ {
244
+ "required": [
245
+ "digest"
246
+ ]
247
+ },
248
+ {
249
+ "required": [
250
+ "uri"
251
+ ]
252
+ },
253
+ {
254
+ "required": [
255
+ "deployment_id"
256
+ ]
257
+ }
258
+ ],
259
+ "additionalProperties": false,
260
+ "properties": {
261
+ "kind": {
262
+ "type": "string",
263
+ "minLength": 1
264
+ },
265
+ "uri": {
266
+ "type": "string",
267
+ "minLength": 1
268
+ },
269
+ "digest": {
270
+ "$ref": "#/$defs/Digest"
271
+ },
272
+ "deployment_id": {
273
+ "$ref": "#/$defs/Id"
274
+ }
275
+ }
276
+ },
277
+ "EnvironmentBinding": {
278
+ "type": "object",
279
+ "required": [
280
+ "kind",
281
+ "id",
282
+ "digest"
283
+ ],
284
+ "additionalProperties": false,
285
+ "properties": {
286
+ "kind": {
287
+ "type": "string",
288
+ "minLength": 1
289
+ },
290
+ "id": {
291
+ "$ref": "#/$defs/Id"
292
+ },
293
+ "digest": {
294
+ "$ref": "#/$defs/Digest"
295
+ }
296
+ }
297
+ },
298
+ "RuntimeTarget": {
299
+ "type": "object",
300
+ "required": [
301
+ "kind",
302
+ "id"
303
+ ],
304
+ "additionalProperties": true,
305
+ "properties": {
306
+ "kind": {
307
+ "type": "string",
308
+ "minLength": 1
309
+ },
310
+ "id": {
311
+ "$ref": "#/$defs/Id"
312
+ }
313
+ }
314
+ },
315
+ "CapabilityBinding": {
316
+ "type": "object",
317
+ "required": [
318
+ "manifest_id",
319
+ "manifest_digest",
320
+ "instance_id",
321
+ "instance_digest"
322
+ ],
323
+ "additionalProperties": false,
324
+ "properties": {
325
+ "manifest_id": {
326
+ "$ref": "#/$defs/Id"
327
+ },
328
+ "manifest_digest": {
329
+ "$ref": "#/$defs/Digest"
330
+ },
331
+ "instance_id": {
332
+ "$ref": "#/$defs/Id"
333
+ },
334
+ "instance_digest": {
335
+ "$ref": "#/$defs/Digest"
336
+ }
337
+ }
338
+ },
339
+ "RawResultRef": {
340
+ "type": "object",
341
+ "required": [
342
+ "kind",
343
+ "digest"
344
+ ],
345
+ "additionalProperties": true,
346
+ "properties": {
347
+ "kind": {
348
+ "type": "string",
349
+ "minLength": 1
350
+ },
351
+ "digest": {
352
+ "$ref": "#/$defs/Digest"
353
+ },
354
+ "artifact_id": {
355
+ "$ref": "#/$defs/Id"
356
+ }
357
+ }
358
+ },
359
+ "VantagePoint": {
360
+ "type": "object",
361
+ "required": [
362
+ "kind",
363
+ "identity"
364
+ ],
365
+ "additionalProperties": false,
366
+ "properties": {
367
+ "kind": {
368
+ "type": "string",
369
+ "minLength": 1
370
+ },
371
+ "identity": {
372
+ "type": "string",
373
+ "minLength": 1
374
+ }
375
+ }
376
+ },
377
+ "FixtureDisclosure": {
378
+ "type": "object",
379
+ "required": [
380
+ "fixtures_used",
381
+ "mocks_used"
382
+ ],
383
+ "additionalProperties": false,
384
+ "properties": {
385
+ "fixtures_used": {
386
+ "type": "boolean"
387
+ },
388
+ "mocks_used": {
389
+ "type": "boolean"
390
+ },
391
+ "fixture_refs": {
392
+ "$ref": "#/$defs/StringList"
393
+ },
394
+ "mock_refs": {
395
+ "$ref": "#/$defs/StringList"
396
+ }
397
+ }
398
+ },
399
+ "PermissionState": {
400
+ "type": "object",
401
+ "required": [
402
+ "network",
403
+ "filesystem"
404
+ ],
405
+ "additionalProperties": false,
406
+ "properties": {
407
+ "network": {
408
+ "type": "string",
409
+ "minLength": 1
410
+ },
411
+ "filesystem": {
412
+ "type": "string",
413
+ "minLength": 1
414
+ },
415
+ "environment": {
416
+ "type": "string",
417
+ "minLength": 1
418
+ },
419
+ "secrets": {
420
+ "type": "string",
421
+ "minLength": 1
422
+ }
423
+ }
424
+ },
425
+ "SandboxState": {
426
+ "type": "object",
427
+ "required": [
428
+ "mode",
429
+ "limits"
430
+ ],
431
+ "additionalProperties": false,
432
+ "properties": {
433
+ "mode": {
434
+ "type": "string",
435
+ "minLength": 1
436
+ },
437
+ "limits": {
438
+ "type": "object",
439
+ "required": [
440
+ "timeout_ms",
441
+ "stdout_bytes",
442
+ "stderr_bytes"
443
+ ],
444
+ "additionalProperties": false,
445
+ "properties": {
446
+ "timeout_ms": {
447
+ "type": "integer",
448
+ "minimum": 1
449
+ },
450
+ "stdout_bytes": {
451
+ "type": "integer",
452
+ "minimum": 0
453
+ },
454
+ "stderr_bytes": {
455
+ "type": "integer",
456
+ "minimum": 0
457
+ }
458
+ }
459
+ }
460
+ }
461
+ },
462
+ "ProbeResult": {
463
+ "type": "object",
464
+ "required": [
465
+ "probe_execution_id",
466
+ "outcome",
467
+ "observed_at",
468
+ "checks"
469
+ ],
470
+ "additionalProperties": false,
471
+ "properties": {
472
+ "probe_execution_id": {
473
+ "$ref": "#/$defs/Id"
474
+ },
475
+ "outcome": {
476
+ "$ref": "#/$defs/AttemptStatus"
477
+ },
478
+ "observed_at": {
479
+ "$ref": "#/$defs/Timestamp"
480
+ },
481
+ "checks": {
482
+ "type": "array",
483
+ "minItems": 1,
484
+ "items": {
485
+ "type": "object",
486
+ "required": [
487
+ "name",
488
+ "outcome"
489
+ ],
490
+ "additionalProperties": false,
491
+ "properties": {
492
+ "name": {
493
+ "type": "string",
494
+ "minLength": 1
495
+ },
496
+ "outcome": {
497
+ "$ref": "#/$defs/AttemptStatus"
498
+ },
499
+ "detail": {
500
+ "type": "string",
501
+ "minLength": 1
502
+ }
503
+ }
504
+ }
505
+ }
506
+ }
507
+ },
508
+ "ObservedPayloadContract": {
509
+ "type": "object",
510
+ "required": [
511
+ "schema_ref",
512
+ "observation_types"
513
+ ],
514
+ "additionalProperties": false,
515
+ "properties": {
516
+ "schema_ref": {
517
+ "type": "string",
518
+ "minLength": 1
519
+ },
520
+ "observation_types": {
521
+ "type": "array",
522
+ "minItems": 1,
523
+ "items": {
524
+ "$ref": "#/$defs/NamespaceName"
525
+ }
526
+ }
527
+ }
528
+ },
529
+ "ResolvedExecution": {
530
+ "oneOf": [
531
+ {
532
+ "type": "object",
533
+ "required": [
534
+ "kind",
535
+ "command",
536
+ "cwd"
537
+ ],
538
+ "additionalProperties": false,
539
+ "properties": {
540
+ "kind": {
541
+ "const": "command"
542
+ },
543
+ "command": {
544
+ "type": "array",
545
+ "minItems": 1,
546
+ "items": {
547
+ "type": "string",
548
+ "minLength": 1
549
+ }
550
+ },
551
+ "cwd": {
552
+ "type": "string",
553
+ "minLength": 1
554
+ },
555
+ "env_digest": {
556
+ "$ref": "#/$defs/Digest"
557
+ }
558
+ }
559
+ },
560
+ {
561
+ "type": "object",
562
+ "required": [
563
+ "kind",
564
+ "tool_name",
565
+ "arguments_digest"
566
+ ],
567
+ "additionalProperties": false,
568
+ "properties": {
569
+ "kind": {
570
+ "const": "tool_call"
571
+ },
572
+ "tool_name": {
573
+ "type": "string",
574
+ "minLength": 1
575
+ },
576
+ "arguments_digest": {
577
+ "$ref": "#/$defs/Digest"
578
+ }
579
+ }
580
+ }
581
+ ]
582
+ },
583
+ "ExecutionResult": {
584
+ "type": "object",
585
+ "required": [
586
+ "exit_code",
587
+ "signal",
588
+ "error"
589
+ ],
590
+ "additionalProperties": false,
591
+ "properties": {
592
+ "exit_code": {
593
+ "anyOf": [
594
+ {
595
+ "type": "integer",
596
+ "minimum": 0
597
+ },
598
+ {
599
+ "type": "null"
600
+ }
601
+ ]
602
+ },
603
+ "signal": {
604
+ "anyOf": [
605
+ {
606
+ "type": "string",
607
+ "minLength": 1
608
+ },
609
+ {
610
+ "type": "null"
611
+ }
612
+ ]
613
+ },
614
+ "error": {
615
+ "anyOf": [
616
+ {
617
+ "type": "string",
618
+ "minLength": 1
619
+ },
620
+ {
621
+ "type": "null"
622
+ }
623
+ ]
624
+ }
625
+ }
626
+ },
627
+ "RetryLineage": {
628
+ "type": "object",
629
+ "required": [
630
+ "attempt_number",
631
+ "max_attempts",
632
+ "previous_attempt_ids"
633
+ ],
634
+ "additionalProperties": false,
635
+ "properties": {
636
+ "attempt_number": {
637
+ "type": "integer",
638
+ "minimum": 1
639
+ },
640
+ "max_attempts": {
641
+ "type": "integer",
642
+ "minimum": 1
643
+ },
644
+ "previous_attempt_ids": {
645
+ "type": "array",
646
+ "items": {
647
+ "$ref": "#/$defs/Id"
648
+ }
649
+ }
650
+ }
651
+ },
652
+ "OutputBounds": {
653
+ "type": "object",
654
+ "required": [
655
+ "stdout_bytes",
656
+ "stderr_bytes",
657
+ "stdout_truncated",
658
+ "stderr_truncated"
659
+ ],
660
+ "additionalProperties": false,
661
+ "properties": {
662
+ "stdout_bytes": {
663
+ "type": "integer",
664
+ "minimum": 0
665
+ },
666
+ "stderr_bytes": {
667
+ "type": "integer",
668
+ "minimum": 0
669
+ },
670
+ "stdout_truncated": {
671
+ "type": "boolean"
672
+ },
673
+ "stderr_truncated": {
674
+ "type": "boolean"
675
+ }
676
+ }
677
+ },
678
+ "ProofObligation": {
679
+ "type": "object",
680
+ "required": [
681
+ "id",
682
+ "schema_version",
683
+ "criterion_id",
684
+ "plan_id",
685
+ "title",
686
+ "binding",
687
+ "observations",
688
+ "fixture_policy",
689
+ "freshness_policy",
690
+ "assurance_policy",
691
+ "policy_digest",
692
+ "config_digest",
693
+ "created_at"
694
+ ],
695
+ "additionalProperties": false,
696
+ "properties": {
697
+ "id": {
698
+ "$ref": "#/$defs/Id"
699
+ },
700
+ "schema_version": {
701
+ "$ref": "#/$defs/SchemaVersion"
702
+ },
703
+ "criterion_id": {
704
+ "$ref": "#/$defs/Id"
705
+ },
706
+ "plan_id": {
707
+ "$ref": "#/$defs/Id"
708
+ },
709
+ "item_id": {
710
+ "anyOf": [
711
+ {
712
+ "$ref": "#/$defs/Id"
713
+ },
714
+ {
715
+ "type": "null"
716
+ }
717
+ ]
718
+ },
719
+ "title": {
720
+ "type": "string",
721
+ "minLength": 1
722
+ },
723
+ "binding": {
724
+ "type": "boolean"
725
+ },
726
+ "observations": {
727
+ "type": "array",
728
+ "minItems": 1,
729
+ "items": {
730
+ "$ref": "#/$defs/ObservationRequirement"
731
+ }
732
+ },
733
+ "fixture_policy": {
734
+ "$ref": "#/$defs/JsonObject"
735
+ },
736
+ "freshness_policy": {
737
+ "$ref": "#/$defs/JsonObject"
738
+ },
739
+ "assurance_policy": {
740
+ "$ref": "#/$defs/JsonObject"
741
+ },
742
+ "policy_digest": {
743
+ "$ref": "#/$defs/Digest"
744
+ },
745
+ "config_digest": {
746
+ "$ref": "#/$defs/Digest"
747
+ },
748
+ "created_at": {
749
+ "$ref": "#/$defs/Timestamp"
750
+ },
751
+ "supersedes": {
752
+ "anyOf": [
753
+ {
754
+ "$ref": "#/$defs/Id"
755
+ },
756
+ {
757
+ "type": "null"
758
+ }
759
+ ]
760
+ }
761
+ }
762
+ },
763
+ "ObservationRequirement": {
764
+ "type": "object",
765
+ "required": [
766
+ "id",
767
+ "type",
768
+ "subject",
769
+ "expected",
770
+ "target",
771
+ "environment",
772
+ "runtime_target"
773
+ ],
774
+ "additionalProperties": false,
775
+ "properties": {
776
+ "id": {
777
+ "$ref": "#/$defs/Id"
778
+ },
779
+ "type": {
780
+ "$ref": "#/$defs/NamespaceName"
781
+ },
782
+ "subject": {
783
+ "type": "string",
784
+ "minLength": 1
785
+ },
786
+ "expected": {
787
+ "$ref": "#/$defs/JsonObject"
788
+ },
789
+ "target": {
790
+ "$ref": "#/$defs/TargetBinding"
791
+ },
792
+ "environment": {
793
+ "$ref": "#/$defs/EnvironmentBinding"
794
+ },
795
+ "runtime_target": {
796
+ "$ref": "#/$defs/RuntimeTarget"
797
+ },
798
+ "payload_schema": {
799
+ "$ref": "#/$defs/JsonObject"
800
+ },
801
+ "state_transitions": {
802
+ "type": "array",
803
+ "items": {
804
+ "$ref": "#/$defs/JsonObject"
805
+ }
806
+ },
807
+ "persistence": {
808
+ "$ref": "#/$defs/JsonObject"
809
+ },
810
+ "negative_assertions": {
811
+ "type": "array",
812
+ "items": {
813
+ "$ref": "#/$defs/JsonObject"
814
+ }
815
+ },
816
+ "freshness_policy": {
817
+ "$ref": "#/$defs/JsonObject"
818
+ },
819
+ "assurance_policy": {
820
+ "$ref": "#/$defs/JsonObject"
821
+ }
822
+ }
823
+ },
824
+ "VerificationCapabilityManifest": {
825
+ "type": "object",
826
+ "required": [
827
+ "id",
828
+ "schema_version",
829
+ "version",
830
+ "adapter_kind",
831
+ "adapter_digest",
832
+ "supported_surfaces",
833
+ "supported_observations",
834
+ "supported_interactions",
835
+ "supported_artifacts",
836
+ "runtime_targets",
837
+ "provenance_path",
838
+ "permissions",
839
+ "costs",
840
+ "determinism",
841
+ "repeatability",
842
+ "independence",
843
+ "blind_spots",
844
+ "availability_probe"
845
+ ],
846
+ "additionalProperties": false,
847
+ "properties": {
848
+ "id": {
849
+ "$ref": "#/$defs/Id"
850
+ },
851
+ "schema_version": {
852
+ "$ref": "#/$defs/SchemaVersion"
853
+ },
854
+ "version": {
855
+ "type": "string",
856
+ "minLength": 1
857
+ },
858
+ "adapter_kind": {
859
+ "enum": [
860
+ "process",
861
+ "host",
862
+ "mcp",
863
+ "artifact_import",
864
+ "user_attestation"
865
+ ]
866
+ },
867
+ "adapter_digest": {
868
+ "$ref": "#/$defs/Digest"
869
+ },
870
+ "supported_surfaces": {
871
+ "$ref": "#/$defs/StringList"
872
+ },
873
+ "supported_observations": {
874
+ "type": "array",
875
+ "minItems": 1,
876
+ "items": {
877
+ "$ref": "#/$defs/PayloadSchemaBinding"
878
+ }
879
+ },
880
+ "supported_interactions": {
881
+ "$ref": "#/$defs/StringList"
882
+ },
883
+ "supported_artifacts": {
884
+ "$ref": "#/$defs/StringList"
885
+ },
886
+ "runtime_targets": {
887
+ "type": "array",
888
+ "minItems": 1,
889
+ "items": {
890
+ "$ref": "#/$defs/RuntimeTarget"
891
+ }
892
+ },
893
+ "provenance_path": {
894
+ "enum": [
895
+ "planr_observed_execution",
896
+ "verified_host_event",
897
+ "mcp_attestation",
898
+ "validated_artifact_import",
899
+ "user_attestation"
900
+ ]
901
+ },
902
+ "permissions": {
903
+ "$ref": "#/$defs/JsonObject"
904
+ },
905
+ "costs": {
906
+ "$ref": "#/$defs/JsonObject"
907
+ },
908
+ "determinism": {
909
+ "type": "string",
910
+ "minLength": 1
911
+ },
912
+ "repeatability": {
913
+ "type": "string",
914
+ "minLength": 1
915
+ },
916
+ "independence": {
917
+ "type": "string",
918
+ "minLength": 1
919
+ },
920
+ "blind_spots": {
921
+ "$ref": "#/$defs/StringList"
922
+ },
923
+ "availability_probe": {
924
+ "$ref": "#/$defs/AvailabilityProbeContract"
925
+ }
926
+ }
927
+ },
928
+ "VerificationCapabilityInstance": {
929
+ "type": "object",
930
+ "required": [
931
+ "id",
932
+ "schema_version",
933
+ "manifest_id",
934
+ "manifest_digest",
935
+ "host",
936
+ "surface",
937
+ "host_version",
938
+ "adapter_version",
939
+ "environment",
940
+ "permissions",
941
+ "availability",
942
+ "probe_result",
943
+ "observed_payload_contract",
944
+ "limitations",
945
+ "captured_at"
946
+ ],
947
+ "additionalProperties": false,
948
+ "properties": {
949
+ "id": {
950
+ "$ref": "#/$defs/Id"
951
+ },
952
+ "schema_version": {
953
+ "$ref": "#/$defs/SchemaVersion"
954
+ },
955
+ "manifest_id": {
956
+ "$ref": "#/$defs/Id"
957
+ },
958
+ "manifest_digest": {
959
+ "$ref": "#/$defs/Digest"
960
+ },
961
+ "host": {
962
+ "type": "string",
963
+ "minLength": 1
964
+ },
965
+ "surface": {
966
+ "type": "string",
967
+ "minLength": 1
968
+ },
969
+ "host_version": {
970
+ "type": "string",
971
+ "minLength": 1
972
+ },
973
+ "adapter_version": {
974
+ "type": "string",
975
+ "minLength": 1
976
+ },
977
+ "environment": {
978
+ "$ref": "#/$defs/EnvironmentBinding"
979
+ },
980
+ "permissions": {
981
+ "$ref": "#/$defs/PermissionState"
982
+ },
983
+ "availability": {
984
+ "$ref": "#/$defs/CapabilityAvailability"
985
+ },
986
+ "probe_result": {
987
+ "$ref": "#/$defs/ProbeResult"
988
+ },
989
+ "observed_payload_contract": {
990
+ "$ref": "#/$defs/ObservedPayloadContract"
991
+ },
992
+ "limitations": {
993
+ "$ref": "#/$defs/StringList"
994
+ },
995
+ "captured_at": {
996
+ "$ref": "#/$defs/Timestamp"
997
+ }
998
+ },
999
+ "allOf": [
1000
+ {
1001
+ "if": {
1002
+ "properties": {
1003
+ "availability": {
1004
+ "type": "object",
1005
+ "properties": {
1006
+ "status": {
1007
+ "const": "available"
1008
+ }
1009
+ },
1010
+ "required": [
1011
+ "status"
1012
+ ]
1013
+ }
1014
+ }
1015
+ },
1016
+ "then": {
1017
+ "properties": {
1018
+ "probe_result": {
1019
+ "type": "object",
1020
+ "properties": {
1021
+ "outcome": {
1022
+ "const": "passed"
1023
+ }
1024
+ },
1025
+ "required": [
1026
+ "outcome",
1027
+ "probe_execution_id"
1028
+ ]
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ ]
1034
+ },
1035
+ "CapabilityAvailability": {
1036
+ "type": "object",
1037
+ "required": [
1038
+ "status"
1039
+ ],
1040
+ "additionalProperties": false,
1041
+ "properties": {
1042
+ "status": {
1043
+ "enum": [
1044
+ "available",
1045
+ "unavailable",
1046
+ "degraded",
1047
+ "permission_denied",
1048
+ "sandbox_blocked",
1049
+ "unsupported",
1050
+ "probe_failed"
1051
+ ]
1052
+ },
1053
+ "reason": {
1054
+ "type": "string",
1055
+ "minLength": 1
1056
+ }
1057
+ }
1058
+ },
1059
+ "EvidenceAttempt": {
1060
+ "type": "object",
1061
+ "required": [
1062
+ "id",
1063
+ "schema_version",
1064
+ "criterion_id",
1065
+ "obligation_id",
1066
+ "capability_instance_id",
1067
+ "started_at",
1068
+ "ended_at",
1069
+ "status",
1070
+ "resolved_command",
1071
+ "exit",
1072
+ "retry_lineage",
1073
+ "stdout_digest",
1074
+ "stderr_digest",
1075
+ "raw_result",
1076
+ "artifacts",
1077
+ "output_bounds"
1078
+ ],
1079
+ "additionalProperties": false,
1080
+ "properties": {
1081
+ "id": {
1082
+ "$ref": "#/$defs/Id"
1083
+ },
1084
+ "schema_version": {
1085
+ "$ref": "#/$defs/SchemaVersion"
1086
+ },
1087
+ "criterion_id": {
1088
+ "$ref": "#/$defs/Id"
1089
+ },
1090
+ "obligation_id": {
1091
+ "$ref": "#/$defs/Id"
1092
+ },
1093
+ "capability_instance_id": {
1094
+ "$ref": "#/$defs/Id"
1095
+ },
1096
+ "started_at": {
1097
+ "$ref": "#/$defs/Timestamp"
1098
+ },
1099
+ "ended_at": {
1100
+ "$ref": "#/$defs/Timestamp"
1101
+ },
1102
+ "status": {
1103
+ "$ref": "#/$defs/AttemptStatus"
1104
+ },
1105
+ "resolved_command": {
1106
+ "$ref": "#/$defs/ResolvedExecution"
1107
+ },
1108
+ "exit": {
1109
+ "$ref": "#/$defs/ExecutionResult"
1110
+ },
1111
+ "retry_lineage": {
1112
+ "$ref": "#/$defs/RetryLineage"
1113
+ },
1114
+ "stdout_digest": {
1115
+ "$ref": "#/$defs/Digest"
1116
+ },
1117
+ "stderr_digest": {
1118
+ "$ref": "#/$defs/Digest"
1119
+ },
1120
+ "raw_result": {
1121
+ "$ref": "#/$defs/RawResultRef"
1122
+ },
1123
+ "artifacts": {
1124
+ "type": "array",
1125
+ "items": {
1126
+ "$ref": "#/$defs/ArtifactRef"
1127
+ }
1128
+ },
1129
+ "output_bounds": {
1130
+ "$ref": "#/$defs/OutputBounds"
1131
+ }
1132
+ },
1133
+ "allOf": [
1134
+ {
1135
+ "if": {
1136
+ "properties": {
1137
+ "status": {
1138
+ "const": "passed"
1139
+ }
1140
+ },
1141
+ "required": [
1142
+ "status"
1143
+ ]
1144
+ },
1145
+ "then": {
1146
+ "properties": {
1147
+ "exit": {
1148
+ "type": "object",
1149
+ "properties": {
1150
+ "exit_code": {
1151
+ "const": 0
1152
+ },
1153
+ "signal": {
1154
+ "type": "null"
1155
+ },
1156
+ "error": {
1157
+ "type": "null"
1158
+ }
1159
+ },
1160
+ "required": [
1161
+ "exit_code",
1162
+ "signal",
1163
+ "error"
1164
+ ]
1165
+ }
1166
+ }
1167
+ }
1168
+ },
1169
+ {
1170
+ "if": {
1171
+ "properties": {
1172
+ "status": {
1173
+ "const": "failed"
1174
+ }
1175
+ },
1176
+ "required": [
1177
+ "status"
1178
+ ]
1179
+ },
1180
+ "then": {
1181
+ "properties": {
1182
+ "exit": {
1183
+ "type": "object",
1184
+ "properties": {
1185
+ "exit_code": {
1186
+ "type": "integer",
1187
+ "minimum": 1
1188
+ },
1189
+ "signal": {
1190
+ "type": "null"
1191
+ }
1192
+ },
1193
+ "required": [
1194
+ "exit_code",
1195
+ "signal",
1196
+ "error"
1197
+ ]
1198
+ }
1199
+ }
1200
+ }
1201
+ },
1202
+ {
1203
+ "if": {
1204
+ "properties": {
1205
+ "status": {
1206
+ "const": "timed_out"
1207
+ }
1208
+ },
1209
+ "required": [
1210
+ "status"
1211
+ ]
1212
+ },
1213
+ "then": {
1214
+ "properties": {
1215
+ "exit": {
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "exit_code": {
1219
+ "type": "null"
1220
+ },
1221
+ "signal": {
1222
+ "type": "null"
1223
+ },
1224
+ "error": {
1225
+ "const": "timed_out"
1226
+ }
1227
+ },
1228
+ "required": [
1229
+ "exit_code",
1230
+ "signal",
1231
+ "error"
1232
+ ]
1233
+ }
1234
+ }
1235
+ }
1236
+ },
1237
+ {
1238
+ "if": {
1239
+ "properties": {
1240
+ "status": {
1241
+ "const": "aborted"
1242
+ }
1243
+ },
1244
+ "required": [
1245
+ "status"
1246
+ ]
1247
+ },
1248
+ "then": {
1249
+ "properties": {
1250
+ "exit": {
1251
+ "type": "object",
1252
+ "properties": {
1253
+ "exit_code": {
1254
+ "type": "null"
1255
+ },
1256
+ "signal": {
1257
+ "type": "string",
1258
+ "minLength": 1
1259
+ },
1260
+ "error": {
1261
+ "const": "aborted"
1262
+ }
1263
+ },
1264
+ "required": [
1265
+ "exit_code",
1266
+ "signal",
1267
+ "error"
1268
+ ]
1269
+ }
1270
+ }
1271
+ }
1272
+ },
1273
+ {
1274
+ "if": {
1275
+ "properties": {
1276
+ "status": {
1277
+ "const": "skipped"
1278
+ }
1279
+ },
1280
+ "required": [
1281
+ "status"
1282
+ ]
1283
+ },
1284
+ "then": {
1285
+ "properties": {
1286
+ "exit": {
1287
+ "type": "object",
1288
+ "properties": {
1289
+ "exit_code": {
1290
+ "type": "null"
1291
+ },
1292
+ "signal": {
1293
+ "type": "null"
1294
+ },
1295
+ "error": {
1296
+ "const": "skipped"
1297
+ }
1298
+ },
1299
+ "required": [
1300
+ "exit_code",
1301
+ "signal",
1302
+ "error"
1303
+ ]
1304
+ }
1305
+ }
1306
+ }
1307
+ },
1308
+ {
1309
+ "if": {
1310
+ "properties": {
1311
+ "status": {
1312
+ "const": "unavailable"
1313
+ }
1314
+ },
1315
+ "required": [
1316
+ "status"
1317
+ ]
1318
+ },
1319
+ "then": {
1320
+ "properties": {
1321
+ "exit": {
1322
+ "type": "object",
1323
+ "properties": {
1324
+ "exit_code": {
1325
+ "type": "null"
1326
+ },
1327
+ "signal": {
1328
+ "type": "null"
1329
+ },
1330
+ "error": {
1331
+ "const": "unavailable"
1332
+ }
1333
+ },
1334
+ "required": [
1335
+ "exit_code",
1336
+ "signal",
1337
+ "error"
1338
+ ]
1339
+ }
1340
+ }
1341
+ }
1342
+ },
1343
+ {
1344
+ "if": {
1345
+ "properties": {
1346
+ "status": {
1347
+ "const": "inconclusive"
1348
+ }
1349
+ },
1350
+ "required": [
1351
+ "status"
1352
+ ]
1353
+ },
1354
+ "then": {
1355
+ "properties": {
1356
+ "exit": {
1357
+ "type": "object",
1358
+ "properties": {
1359
+ "exit_code": {
1360
+ "const": 0
1361
+ },
1362
+ "signal": {
1363
+ "type": "null"
1364
+ },
1365
+ "error": {
1366
+ "const": "inconclusive"
1367
+ }
1368
+ },
1369
+ "required": [
1370
+ "exit_code",
1371
+ "signal",
1372
+ "error"
1373
+ ]
1374
+ }
1375
+ }
1376
+ }
1377
+ }
1378
+ ]
1379
+ },
1380
+ "AttemptStatus": {
1381
+ "enum": [
1382
+ "passed",
1383
+ "failed",
1384
+ "skipped",
1385
+ "timed_out",
1386
+ "aborted",
1387
+ "unavailable",
1388
+ "inconclusive"
1389
+ ]
1390
+ },
1391
+ "UntrustedEvidenceProposal": {
1392
+ "type": "object",
1393
+ "required": [
1394
+ "id",
1395
+ "schema_version",
1396
+ "source_kind",
1397
+ "submitted_at",
1398
+ "claims",
1399
+ "artifact_refs",
1400
+ "producer_metadata"
1401
+ ],
1402
+ "additionalProperties": false,
1403
+ "properties": {
1404
+ "id": {
1405
+ "$ref": "#/$defs/Id"
1406
+ },
1407
+ "schema_version": {
1408
+ "$ref": "#/$defs/SchemaVersion"
1409
+ },
1410
+ "source_kind": {
1411
+ "enum": [
1412
+ "agent",
1413
+ "adapter",
1414
+ "host",
1415
+ "mcp",
1416
+ "artifact_import",
1417
+ "user"
1418
+ ]
1419
+ },
1420
+ "submitted_at": {
1421
+ "$ref": "#/$defs/Timestamp"
1422
+ },
1423
+ "claims": {
1424
+ "$ref": "#/$defs/JsonObject"
1425
+ },
1426
+ "artifact_refs": {
1427
+ "type": "array",
1428
+ "items": {
1429
+ "$ref": "#/$defs/ArtifactRef"
1430
+ }
1431
+ },
1432
+ "producer_metadata": {
1433
+ "$ref": "#/$defs/JsonObject"
1434
+ }
1435
+ },
1436
+ "not": {
1437
+ "anyOf": [
1438
+ {
1439
+ "required": [
1440
+ "provenance"
1441
+ ]
1442
+ },
1443
+ {
1444
+ "required": [
1445
+ "execution_id"
1446
+ ]
1447
+ },
1448
+ {
1449
+ "required": [
1450
+ "receipt_digest"
1451
+ ]
1452
+ },
1453
+ {
1454
+ "required": [
1455
+ "closure_authority"
1456
+ ]
1457
+ }
1458
+ ]
1459
+ }
1460
+ },
1461
+ "EvidenceReceipt": {
1462
+ "type": "object",
1463
+ "required": [
1464
+ "id",
1465
+ "schema_version",
1466
+ "criterion_id",
1467
+ "obligation_id",
1468
+ "receipt_status",
1469
+ "source",
1470
+ "target",
1471
+ "environment",
1472
+ "vantage_point",
1473
+ "capability",
1474
+ "provenance",
1475
+ "observations",
1476
+ "attempt_ids",
1477
+ "retry_history",
1478
+ "artifacts",
1479
+ "raw_result",
1480
+ "config_digest",
1481
+ "fixture_disclosure",
1482
+ "permissions",
1483
+ "sandbox",
1484
+ "proof_gaps",
1485
+ "started_at",
1486
+ "ended_at",
1487
+ "receipt_digest"
1488
+ ],
1489
+ "additionalProperties": false,
1490
+ "properties": {
1491
+ "id": {
1492
+ "$ref": "#/$defs/Id"
1493
+ },
1494
+ "schema_version": {
1495
+ "$ref": "#/$defs/SchemaVersion"
1496
+ },
1497
+ "criterion_id": {
1498
+ "$ref": "#/$defs/Id"
1499
+ },
1500
+ "obligation_id": {
1501
+ "$ref": "#/$defs/Id"
1502
+ },
1503
+ "receipt_status": {
1504
+ "enum": [
1505
+ "trusted",
1506
+ "rejected",
1507
+ "untrusted",
1508
+ "stale",
1509
+ "superseded"
1510
+ ]
1511
+ },
1512
+ "source": {
1513
+ "$ref": "#/$defs/SourceBinding"
1514
+ },
1515
+ "target": {
1516
+ "$ref": "#/$defs/TargetBinding"
1517
+ },
1518
+ "environment": {
1519
+ "$ref": "#/$defs/EnvironmentBinding"
1520
+ },
1521
+ "vantage_point": {
1522
+ "$ref": "#/$defs/VantagePoint"
1523
+ },
1524
+ "capability": {
1525
+ "$ref": "#/$defs/CapabilityBinding"
1526
+ },
1527
+ "provenance": {
1528
+ "$ref": "#/$defs/TrustedProvenance"
1529
+ },
1530
+ "observations": {
1531
+ "type": "array",
1532
+ "minItems": 1,
1533
+ "items": {
1534
+ "$ref": "#/$defs/ObservationResult"
1535
+ }
1536
+ },
1537
+ "attempt_ids": {
1538
+ "type": "array",
1539
+ "minItems": 1,
1540
+ "items": {
1541
+ "$ref": "#/$defs/Id"
1542
+ }
1543
+ },
1544
+ "retry_history": {
1545
+ "type": "array",
1546
+ "items": {
1547
+ "$ref": "#/$defs/JsonObject"
1548
+ }
1549
+ },
1550
+ "artifacts": {
1551
+ "type": "array",
1552
+ "items": {
1553
+ "$ref": "#/$defs/ArtifactRef"
1554
+ }
1555
+ },
1556
+ "raw_result": {
1557
+ "$ref": "#/$defs/RawResultRef"
1558
+ },
1559
+ "config_digest": {
1560
+ "$ref": "#/$defs/Digest"
1561
+ },
1562
+ "fixture_disclosure": {
1563
+ "$ref": "#/$defs/FixtureDisclosure"
1564
+ },
1565
+ "permissions": {
1566
+ "$ref": "#/$defs/PermissionState"
1567
+ },
1568
+ "sandbox": {
1569
+ "$ref": "#/$defs/SandboxState"
1570
+ },
1571
+ "proof_gaps": {
1572
+ "type": "array",
1573
+ "items": {
1574
+ "$ref": "#/$defs/GapReason"
1575
+ }
1576
+ },
1577
+ "started_at": {
1578
+ "$ref": "#/$defs/Timestamp"
1579
+ },
1580
+ "ended_at": {
1581
+ "$ref": "#/$defs/Timestamp"
1582
+ },
1583
+ "receipt_digest": {
1584
+ "$ref": "#/$defs/Digest"
1585
+ }
1586
+ }
1587
+ },
1588
+ "TrustedProvenance": {
1589
+ "type": "object",
1590
+ "required": [
1591
+ "source",
1592
+ "assigned_by",
1593
+ "execution_id"
1594
+ ],
1595
+ "additionalProperties": false,
1596
+ "properties": {
1597
+ "source": {
1598
+ "enum": [
1599
+ "planr_observed_execution",
1600
+ "verified_host_event",
1601
+ "mcp_attestation",
1602
+ "validated_artifact_import",
1603
+ "user_attestation"
1604
+ ]
1605
+ },
1606
+ "assigned_by": {
1607
+ "const": "planr"
1608
+ },
1609
+ "execution_id": {
1610
+ "$ref": "#/$defs/Id"
1611
+ },
1612
+ "tool_call_id": {
1613
+ "anyOf": [
1614
+ {
1615
+ "$ref": "#/$defs/Id"
1616
+ },
1617
+ {
1618
+ "type": "null"
1619
+ }
1620
+ ]
1621
+ }
1622
+ }
1623
+ },
1624
+ "ObservationResult": {
1625
+ "type": "object",
1626
+ "required": [
1627
+ "requirement_id",
1628
+ "type",
1629
+ "outcome",
1630
+ "predicate",
1631
+ "actual"
1632
+ ],
1633
+ "additionalProperties": false,
1634
+ "properties": {
1635
+ "requirement_id": {
1636
+ "$ref": "#/$defs/Id"
1637
+ },
1638
+ "type": {
1639
+ "$ref": "#/$defs/NamespaceName"
1640
+ },
1641
+ "outcome": {
1642
+ "$ref": "#/$defs/AttemptStatus"
1643
+ },
1644
+ "predicate": {
1645
+ "$ref": "#/$defs/JsonObject"
1646
+ },
1647
+ "actual": {
1648
+ "$ref": "#/$defs/JsonObject"
1649
+ }
1650
+ }
1651
+ },
1652
+ "CoverageVerdict": {
1653
+ "type": "object",
1654
+ "required": [
1655
+ "id",
1656
+ "schema_version",
1657
+ "scope",
1658
+ "evaluated_at",
1659
+ "status",
1660
+ "observation_coverage",
1661
+ "validation_details",
1662
+ "suggested_next_action",
1663
+ "actionable_now"
1664
+ ],
1665
+ "additionalProperties": false,
1666
+ "properties": {
1667
+ "id": {
1668
+ "$ref": "#/$defs/Id"
1669
+ },
1670
+ "schema_version": {
1671
+ "$ref": "#/$defs/SchemaVersion"
1672
+ },
1673
+ "scope": {
1674
+ "$ref": "#/$defs/EvidenceScope"
1675
+ },
1676
+ "evaluated_at": {
1677
+ "$ref": "#/$defs/Timestamp"
1678
+ },
1679
+ "status": {
1680
+ "enum": [
1681
+ "satisfied",
1682
+ "unsatisfied",
1683
+ "blocked",
1684
+ "inconclusive",
1685
+ "waived",
1686
+ "stale"
1687
+ ]
1688
+ },
1689
+ "observation_coverage": {
1690
+ "type": "array",
1691
+ "minItems": 1,
1692
+ "items": {
1693
+ "$ref": "#/$defs/ObservationCoverage"
1694
+ }
1695
+ },
1696
+ "validation_details": {
1697
+ "$ref": "#/$defs/CoverageValidationDetails"
1698
+ },
1699
+ "suggested_next_action": {
1700
+ "type": "string"
1701
+ },
1702
+ "actionable_now": {
1703
+ "type": "boolean"
1704
+ }
1705
+ },
1706
+ "allOf": [
1707
+ {
1708
+ "if": {
1709
+ "properties": {
1710
+ "status": {
1711
+ "const": "satisfied"
1712
+ }
1713
+ },
1714
+ "required": [
1715
+ "status"
1716
+ ]
1717
+ },
1718
+ "then": {
1719
+ "properties": {
1720
+ "observation_coverage": {
1721
+ "type": "array",
1722
+ "minItems": 1,
1723
+ "items": {
1724
+ "$ref": "#/$defs/CoveredObservationCoverage"
1725
+ }
1726
+ },
1727
+ "validation_details": {
1728
+ "$ref": "#/$defs/PassingCoverageValidationDetails"
1729
+ },
1730
+ "actionable_now": {
1731
+ "const": false
1732
+ }
1733
+ }
1734
+ }
1735
+ },
1736
+ {
1737
+ "if": {
1738
+ "properties": {
1739
+ "status": {
1740
+ "const": "unsatisfied"
1741
+ }
1742
+ },
1743
+ "required": [
1744
+ "status"
1745
+ ]
1746
+ },
1747
+ "then": {
1748
+ "properties": {
1749
+ "observation_coverage": {
1750
+ "type": "array",
1751
+ "minItems": 1,
1752
+ "items": {
1753
+ "oneOf": [
1754
+ {
1755
+ "$ref": "#/$defs/CoveredObservationCoverage"
1756
+ },
1757
+ {
1758
+ "$ref": "#/$defs/UnsatisfiedObservationCoverage"
1759
+ }
1760
+ ]
1761
+ },
1762
+ "contains": {
1763
+ "$ref": "#/$defs/UnsatisfiedObservationCoverage"
1764
+ }
1765
+ }
1766
+ }
1767
+ }
1768
+ },
1769
+ {
1770
+ "if": {
1771
+ "properties": {
1772
+ "status": {
1773
+ "const": "blocked"
1774
+ }
1775
+ },
1776
+ "required": [
1777
+ "status"
1778
+ ]
1779
+ },
1780
+ "then": {
1781
+ "properties": {
1782
+ "observation_coverage": {
1783
+ "type": "array",
1784
+ "minItems": 1,
1785
+ "items": {
1786
+ "oneOf": [
1787
+ {
1788
+ "$ref": "#/$defs/CoveredObservationCoverage"
1789
+ },
1790
+ {
1791
+ "$ref": "#/$defs/BlockedObservationCoverage"
1792
+ }
1793
+ ]
1794
+ },
1795
+ "contains": {
1796
+ "$ref": "#/$defs/BlockedObservationCoverage"
1797
+ }
1798
+ }
1799
+ }
1800
+ }
1801
+ },
1802
+ {
1803
+ "if": {
1804
+ "properties": {
1805
+ "status": {
1806
+ "const": "inconclusive"
1807
+ }
1808
+ },
1809
+ "required": [
1810
+ "status"
1811
+ ]
1812
+ },
1813
+ "then": {
1814
+ "properties": {
1815
+ "observation_coverage": {
1816
+ "type": "array",
1817
+ "minItems": 1,
1818
+ "items": {
1819
+ "oneOf": [
1820
+ {
1821
+ "$ref": "#/$defs/CoveredObservationCoverage"
1822
+ },
1823
+ {
1824
+ "$ref": "#/$defs/InconclusiveObservationCoverage"
1825
+ }
1826
+ ]
1827
+ },
1828
+ "contains": {
1829
+ "$ref": "#/$defs/InconclusiveObservationCoverage"
1830
+ }
1831
+ }
1832
+ }
1833
+ }
1834
+ },
1835
+ {
1836
+ "if": {
1837
+ "properties": {
1838
+ "status": {
1839
+ "const": "waived"
1840
+ }
1841
+ },
1842
+ "required": [
1843
+ "status"
1844
+ ]
1845
+ },
1846
+ "then": {
1847
+ "properties": {
1848
+ "observation_coverage": {
1849
+ "type": "array",
1850
+ "minItems": 1,
1851
+ "items": {
1852
+ "oneOf": [
1853
+ {
1854
+ "$ref": "#/$defs/CoveredObservationCoverage"
1855
+ },
1856
+ {
1857
+ "$ref": "#/$defs/WaivedObservationCoverage"
1858
+ }
1859
+ ]
1860
+ },
1861
+ "contains": {
1862
+ "$ref": "#/$defs/WaivedObservationCoverage"
1863
+ }
1864
+ }
1865
+ }
1866
+ }
1867
+ },
1868
+ {
1869
+ "if": {
1870
+ "properties": {
1871
+ "status": {
1872
+ "const": "stale"
1873
+ }
1874
+ },
1875
+ "required": [
1876
+ "status"
1877
+ ]
1878
+ },
1879
+ "then": {
1880
+ "properties": {
1881
+ "observation_coverage": {
1882
+ "type": "array",
1883
+ "minItems": 1,
1884
+ "items": {
1885
+ "oneOf": [
1886
+ {
1887
+ "$ref": "#/$defs/CoveredObservationCoverage"
1888
+ },
1889
+ {
1890
+ "$ref": "#/$defs/StaleObservationCoverage"
1891
+ }
1892
+ ]
1893
+ },
1894
+ "contains": {
1895
+ "$ref": "#/$defs/StaleObservationCoverage"
1896
+ }
1897
+ }
1898
+ }
1899
+ }
1900
+ }
1901
+ ]
1902
+ },
1903
+ "GapReason": {
1904
+ "enum": [
1905
+ "missing_observation",
1906
+ "missing_capability",
1907
+ "permission_denied",
1908
+ "sandbox_blocked",
1909
+ "environment_unavailable",
1910
+ "external_dependency_unavailable",
1911
+ "product_failed",
1912
+ "verifier_failed",
1913
+ "timed_out",
1914
+ "aborted",
1915
+ "inconclusive_result",
1916
+ "stale_source",
1917
+ "stale_target",
1918
+ "stale_environment",
1919
+ "stale_policy",
1920
+ "stale_adapter_schema",
1921
+ "stale_configuration",
1922
+ "target_mismatch",
1923
+ "schema_mismatch",
1924
+ "manifest_mismatch",
1925
+ "untrusted_provenance",
1926
+ "fixture_disallowed",
1927
+ "mock_disallowed",
1928
+ "insufficient_assurance",
1929
+ "waiver_missing",
1930
+ "waiver_expired",
1931
+ "unknown_observation_type",
1932
+ "unsupported_runtime_target"
1933
+ ]
1934
+ },
1935
+ "CoveredObservationCoverage": {
1936
+ "type": "object",
1937
+ "required": [
1938
+ "requirement_id",
1939
+ "status",
1940
+ "covering_receipt_ids"
1941
+ ],
1942
+ "additionalProperties": false,
1943
+ "properties": {
1944
+ "requirement_id": {
1945
+ "$ref": "#/$defs/Id"
1946
+ },
1947
+ "status": {
1948
+ "const": "covered"
1949
+ },
1950
+ "covering_receipt_ids": {
1951
+ "type": "array",
1952
+ "minItems": 1,
1953
+ "items": {
1954
+ "$ref": "#/$defs/Id"
1955
+ }
1956
+ },
1957
+ "covered_observation_ids": {
1958
+ "type": "array",
1959
+ "items": {
1960
+ "$ref": "#/$defs/Id"
1961
+ }
1962
+ }
1963
+ }
1964
+ },
1965
+ "GapObservationCoverage": {
1966
+ "type": "object",
1967
+ "required": [
1968
+ "requirement_id",
1969
+ "status",
1970
+ "gap_reason"
1971
+ ],
1972
+ "additionalProperties": false,
1973
+ "properties": {
1974
+ "requirement_id": {
1975
+ "$ref": "#/$defs/Id"
1976
+ },
1977
+ "status": {
1978
+ "enum": [
1979
+ "missing",
1980
+ "blocked",
1981
+ "inconclusive",
1982
+ "waived",
1983
+ "stale",
1984
+ "unsatisfied"
1985
+ ]
1986
+ },
1987
+ "gap_reason": {
1988
+ "$ref": "#/$defs/GapReason"
1989
+ },
1990
+ "gap_reasons": {
1991
+ "type": "array",
1992
+ "minItems": 1,
1993
+ "items": {
1994
+ "$ref": "#/$defs/GapReason"
1995
+ }
1996
+ },
1997
+ "attempted_receipt_ids": {
1998
+ "type": "array",
1999
+ "items": {
2000
+ "$ref": "#/$defs/Id"
2001
+ }
2002
+ },
2003
+ "waiver_id": {
2004
+ "$ref": "#/$defs/Id"
2005
+ }
2006
+ }
2007
+ },
2008
+ "UnsatisfiedObservationCoverage": {
2009
+ "allOf": [
2010
+ {
2011
+ "$ref": "#/$defs/GapObservationCoverage"
2012
+ },
2013
+ {
2014
+ "type": "object",
2015
+ "properties": {
2016
+ "status": {
2017
+ "enum": [
2018
+ "missing",
2019
+ "unsatisfied"
2020
+ ]
2021
+ },
2022
+ "gap_reason": {
2023
+ "enum": [
2024
+ "missing_observation",
2025
+ "product_failed",
2026
+ "verifier_failed",
2027
+ "target_mismatch",
2028
+ "schema_mismatch",
2029
+ "manifest_mismatch",
2030
+ "untrusted_provenance",
2031
+ "fixture_disallowed",
2032
+ "mock_disallowed",
2033
+ "insufficient_assurance",
2034
+ "waiver_missing",
2035
+ "waiver_expired",
2036
+ "unknown_observation_type",
2037
+ "unsupported_runtime_target"
2038
+ ]
2039
+ }
2040
+ }
2041
+ }
2042
+ ]
2043
+ },
2044
+ "BlockedObservationCoverage": {
2045
+ "allOf": [
2046
+ {
2047
+ "$ref": "#/$defs/GapObservationCoverage"
2048
+ },
2049
+ {
2050
+ "type": "object",
2051
+ "properties": {
2052
+ "status": {
2053
+ "const": "blocked"
2054
+ },
2055
+ "gap_reason": {
2056
+ "enum": [
2057
+ "missing_capability",
2058
+ "permission_denied",
2059
+ "sandbox_blocked",
2060
+ "environment_unavailable",
2061
+ "external_dependency_unavailable",
2062
+ "unsupported_runtime_target"
2063
+ ]
2064
+ }
2065
+ }
2066
+ }
2067
+ ]
2068
+ },
2069
+ "InconclusiveObservationCoverage": {
2070
+ "allOf": [
2071
+ {
2072
+ "$ref": "#/$defs/GapObservationCoverage"
2073
+ },
2074
+ {
2075
+ "type": "object",
2076
+ "properties": {
2077
+ "status": {
2078
+ "const": "inconclusive"
2079
+ },
2080
+ "gap_reason": {
2081
+ "enum": [
2082
+ "timed_out",
2083
+ "aborted",
2084
+ "inconclusive_result",
2085
+ "verifier_failed"
2086
+ ]
2087
+ }
2088
+ }
2089
+ }
2090
+ ]
2091
+ },
2092
+ "WaivedObservationCoverage": {
2093
+ "allOf": [
2094
+ {
2095
+ "$ref": "#/$defs/GapObservationCoverage"
2096
+ },
2097
+ {
2098
+ "type": "object",
2099
+ "required": [
2100
+ "waiver_id"
2101
+ ],
2102
+ "properties": {
2103
+ "status": {
2104
+ "const": "waived"
2105
+ },
2106
+ "gap_reason": {
2107
+ "enum": [
2108
+ "missing_observation",
2109
+ "missing_capability",
2110
+ "permission_denied",
2111
+ "sandbox_blocked",
2112
+ "environment_unavailable",
2113
+ "external_dependency_unavailable",
2114
+ "product_failed",
2115
+ "verifier_failed",
2116
+ "target_mismatch",
2117
+ "schema_mismatch",
2118
+ "manifest_mismatch",
2119
+ "untrusted_provenance",
2120
+ "fixture_disallowed",
2121
+ "mock_disallowed",
2122
+ "insufficient_assurance",
2123
+ "unknown_observation_type",
2124
+ "unsupported_runtime_target"
2125
+ ]
2126
+ }
2127
+ }
2128
+ }
2129
+ ]
2130
+ },
2131
+ "StaleObservationCoverage": {
2132
+ "allOf": [
2133
+ {
2134
+ "$ref": "#/$defs/GapObservationCoverage"
2135
+ },
2136
+ {
2137
+ "type": "object",
2138
+ "properties": {
2139
+ "status": {
2140
+ "const": "stale"
2141
+ },
2142
+ "gap_reason": {
2143
+ "enum": [
2144
+ "stale_source",
2145
+ "stale_target",
2146
+ "stale_environment",
2147
+ "stale_policy",
2148
+ "stale_adapter_schema",
2149
+ "stale_configuration"
2150
+ ]
2151
+ }
2152
+ }
2153
+ }
2154
+ ]
2155
+ },
2156
+ "ObservationCoverage": {
2157
+ "oneOf": [
2158
+ {
2159
+ "$ref": "#/$defs/CoveredObservationCoverage"
2160
+ },
2161
+ {
2162
+ "$ref": "#/$defs/GapObservationCoverage"
2163
+ }
2164
+ ]
2165
+ },
2166
+ "CoverageValidationCheck": {
2167
+ "type": "object",
2168
+ "required": [
2169
+ "status",
2170
+ "checked_at",
2171
+ "receipt_ids",
2172
+ "gap_reasons"
2173
+ ],
2174
+ "additionalProperties": false,
2175
+ "properties": {
2176
+ "status": {
2177
+ "enum": [
2178
+ "passed",
2179
+ "failed",
2180
+ "warning",
2181
+ "not_applicable"
2182
+ ]
2183
+ },
2184
+ "checked_at": {
2185
+ "$ref": "#/$defs/Timestamp"
2186
+ },
2187
+ "receipt_ids": {
2188
+ "type": "array",
2189
+ "items": {
2190
+ "$ref": "#/$defs/Id"
2191
+ }
2192
+ },
2193
+ "gap_reasons": {
2194
+ "type": "array",
2195
+ "items": {
2196
+ "$ref": "#/$defs/GapReason"
2197
+ }
2198
+ },
2199
+ "detail": {
2200
+ "type": "string",
2201
+ "minLength": 1
2202
+ }
2203
+ }
2204
+ },
2205
+ "PassingCoverageValidationCheck": {
2206
+ "allOf": [
2207
+ {
2208
+ "$ref": "#/$defs/CoverageValidationCheck"
2209
+ },
2210
+ {
2211
+ "type": "object",
2212
+ "properties": {
2213
+ "status": {
2214
+ "const": "passed"
2215
+ },
2216
+ "gap_reasons": {
2217
+ "type": "array",
2218
+ "maxItems": 0
2219
+ }
2220
+ }
2221
+ }
2222
+ ]
2223
+ },
2224
+ "CoverageValidationDetails": {
2225
+ "type": "object",
2226
+ "required": [
2227
+ "trust",
2228
+ "freshness",
2229
+ "target",
2230
+ "schema",
2231
+ "provenance",
2232
+ "fixture",
2233
+ "completion"
2234
+ ],
2235
+ "additionalProperties": false,
2236
+ "properties": {
2237
+ "trust": {
2238
+ "$ref": "#/$defs/CoverageValidationCheck"
2239
+ },
2240
+ "freshness": {
2241
+ "$ref": "#/$defs/CoverageValidationCheck"
2242
+ },
2243
+ "target": {
2244
+ "$ref": "#/$defs/CoverageValidationCheck"
2245
+ },
2246
+ "schema": {
2247
+ "$ref": "#/$defs/CoverageValidationCheck"
2248
+ },
2249
+ "provenance": {
2250
+ "$ref": "#/$defs/CoverageValidationCheck"
2251
+ },
2252
+ "fixture": {
2253
+ "$ref": "#/$defs/CoverageValidationCheck"
2254
+ },
2255
+ "completion": {
2256
+ "$ref": "#/$defs/CoverageValidationCheck"
2257
+ }
2258
+ }
2259
+ },
2260
+ "PassingCoverageValidationDetails": {
2261
+ "type": "object",
2262
+ "required": [
2263
+ "trust",
2264
+ "freshness",
2265
+ "target",
2266
+ "schema",
2267
+ "provenance",
2268
+ "fixture",
2269
+ "completion"
2270
+ ],
2271
+ "additionalProperties": false,
2272
+ "properties": {
2273
+ "trust": {
2274
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2275
+ },
2276
+ "freshness": {
2277
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2278
+ },
2279
+ "target": {
2280
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2281
+ },
2282
+ "schema": {
2283
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2284
+ },
2285
+ "provenance": {
2286
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2287
+ },
2288
+ "fixture": {
2289
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2290
+ },
2291
+ "completion": {
2292
+ "$ref": "#/$defs/PassingCoverageValidationCheck"
2293
+ }
2294
+ }
2295
+ },
2296
+ "EvidencePolicyDefaults": {
2297
+ "type": "object",
2298
+ "required": [
2299
+ "preset_id",
2300
+ "binding",
2301
+ "assurance_level"
2302
+ ],
2303
+ "additionalProperties": false,
2304
+ "properties": {
2305
+ "preset_id": {
2306
+ "$ref": "#/$defs/Id"
2307
+ },
2308
+ "binding": {
2309
+ "type": "boolean"
2310
+ },
2311
+ "assurance_level": {
2312
+ "enum": [
2313
+ "low",
2314
+ "standard",
2315
+ "high"
2316
+ ]
2317
+ }
2318
+ }
2319
+ },
2320
+ "ObservationSchemaRegistration": {
2321
+ "type": "object",
2322
+ "required": [
2323
+ "type",
2324
+ "schema_ref",
2325
+ "schema_digest",
2326
+ "owning_namespace"
2327
+ ],
2328
+ "additionalProperties": false,
2329
+ "properties": {
2330
+ "type": {
2331
+ "$ref": "#/$defs/NamespaceName"
2332
+ },
2333
+ "schema_ref": {
2334
+ "type": "string",
2335
+ "minLength": 1
2336
+ },
2337
+ "schema_digest": {
2338
+ "$ref": "#/$defs/Digest"
2339
+ },
2340
+ "owning_namespace": {
2341
+ "$ref": "#/$defs/NamespaceName"
2342
+ }
2343
+ }
2344
+ },
2345
+ "AdapterRegistration": {
2346
+ "type": "object",
2347
+ "required": [
2348
+ "manifest_id",
2349
+ "manifest_path",
2350
+ "manifest_digest",
2351
+ "observation_types",
2352
+ "payload_schemas",
2353
+ "provenance_path",
2354
+ "execution_contract"
2355
+ ],
2356
+ "additionalProperties": false,
2357
+ "properties": {
2358
+ "manifest_id": {
2359
+ "$ref": "#/$defs/Id"
2360
+ },
2361
+ "manifest_path": {
2362
+ "type": "string",
2363
+ "minLength": 1
2364
+ },
2365
+ "manifest_digest": {
2366
+ "$ref": "#/$defs/Digest"
2367
+ },
2368
+ "observation_types": {
2369
+ "type": "array",
2370
+ "minItems": 1,
2371
+ "items": {
2372
+ "$ref": "#/$defs/NamespaceName"
2373
+ }
2374
+ },
2375
+ "payload_schemas": {
2376
+ "type": "array",
2377
+ "minItems": 1,
2378
+ "items": {
2379
+ "$ref": "#/$defs/PayloadSchemaBinding"
2380
+ }
2381
+ },
2382
+ "provenance_path": {
2383
+ "enum": [
2384
+ "planr_observed_execution",
2385
+ "verified_host_event",
2386
+ "mcp_attestation",
2387
+ "validated_artifact_import",
2388
+ "user_attestation"
2389
+ ]
2390
+ },
2391
+ "execution_contract": {
2392
+ "$ref": "#/$defs/ProcessExecutionContract"
2393
+ }
2394
+ }
2395
+ },
2396
+ "TrustPolicy": {
2397
+ "type": "object",
2398
+ "required": [
2399
+ "accepted_provenance",
2400
+ "min_receipt_status",
2401
+ "allow_user_attestation"
2402
+ ],
2403
+ "additionalProperties": false,
2404
+ "properties": {
2405
+ "accepted_provenance": {
2406
+ "type": "array",
2407
+ "minItems": 1,
2408
+ "items": {
2409
+ "enum": [
2410
+ "planr_observed_execution",
2411
+ "verified_host_event",
2412
+ "mcp_attestation",
2413
+ "validated_artifact_import",
2414
+ "user_attestation"
2415
+ ]
2416
+ }
2417
+ },
2418
+ "min_receipt_status": {
2419
+ "const": "trusted"
2420
+ },
2421
+ "allow_user_attestation": {
2422
+ "type": "boolean"
2423
+ }
2424
+ }
2425
+ },
2426
+ "FreshnessPolicy": {
2427
+ "type": "object",
2428
+ "required": [
2429
+ "max_age_seconds",
2430
+ "invalidate_on"
2431
+ ],
2432
+ "additionalProperties": false,
2433
+ "properties": {
2434
+ "max_age_seconds": {
2435
+ "type": "integer",
2436
+ "minimum": 1
2437
+ },
2438
+ "invalidate_on": {
2439
+ "type": "array",
2440
+ "minItems": 1,
2441
+ "items": {
2442
+ "enum": [
2443
+ "source_change",
2444
+ "target_change",
2445
+ "environment_change",
2446
+ "policy_change",
2447
+ "adapter_schema_change",
2448
+ "configuration_change"
2449
+ ]
2450
+ }
2451
+ }
2452
+ }
2453
+ },
2454
+ "FixturePolicy": {
2455
+ "type": "object",
2456
+ "required": [
2457
+ "fixtures_allowed",
2458
+ "mocks_allowed",
2459
+ "disclosure_required"
2460
+ ],
2461
+ "additionalProperties": false,
2462
+ "properties": {
2463
+ "fixtures_allowed": {
2464
+ "type": "boolean"
2465
+ },
2466
+ "mocks_allowed": {
2467
+ "type": "boolean"
2468
+ },
2469
+ "disclosure_required": {
2470
+ "const": true
2471
+ }
2472
+ }
2473
+ },
2474
+ "CompletionPolicy": {
2475
+ "type": "object",
2476
+ "required": [
2477
+ "require_satisfied_or_waived",
2478
+ "allow_inconclusive_completion",
2479
+ "require_review_evidence"
2480
+ ],
2481
+ "additionalProperties": false,
2482
+ "properties": {
2483
+ "require_satisfied_or_waived": {
2484
+ "const": true
2485
+ },
2486
+ "allow_inconclusive_completion": {
2487
+ "const": false
2488
+ },
2489
+ "require_review_evidence": {
2490
+ "type": "boolean"
2491
+ }
2492
+ }
2493
+ },
2494
+ "PolicyLayer": {
2495
+ "type": "object",
2496
+ "required": [
2497
+ "scope",
2498
+ "policy_digest"
2499
+ ],
2500
+ "additionalProperties": false,
2501
+ "properties": {
2502
+ "scope": {
2503
+ "$ref": "#/$defs/EvidenceScope"
2504
+ },
2505
+ "policy_digest": {
2506
+ "$ref": "#/$defs/Digest"
2507
+ }
2508
+ }
2509
+ },
2510
+ "PolicyLayering": {
2511
+ "type": "object",
2512
+ "required": [
2513
+ "mode",
2514
+ "weakening_requires_waiver",
2515
+ "layers"
2516
+ ],
2517
+ "additionalProperties": false,
2518
+ "properties": {
2519
+ "mode": {
2520
+ "const": "monotonic_strengthening"
2521
+ },
2522
+ "weakening_requires_waiver": {
2523
+ "const": true
2524
+ },
2525
+ "layers": {
2526
+ "type": "array",
2527
+ "minItems": 1,
2528
+ "items": {
2529
+ "$ref": "#/$defs/PolicyLayer"
2530
+ }
2531
+ }
2532
+ }
2533
+ },
2534
+ "EvidencePolicy": {
2535
+ "type": "object",
2536
+ "required": [
2537
+ "id",
2538
+ "schema_version",
2539
+ "policy_digest",
2540
+ "defaults",
2541
+ "named_presets",
2542
+ "observation_schema_registrations",
2543
+ "adapter_registrations",
2544
+ "extension_namespaces",
2545
+ "trust_policy",
2546
+ "freshness_policy",
2547
+ "fixture_policy",
2548
+ "completion_policy",
2549
+ "layering_policy"
2550
+ ],
2551
+ "additionalProperties": false,
2552
+ "properties": {
2553
+ "id": {
2554
+ "$ref": "#/$defs/Id"
2555
+ },
2556
+ "schema_version": {
2557
+ "$ref": "#/$defs/SchemaVersion"
2558
+ },
2559
+ "policy_digest": {
2560
+ "$ref": "#/$defs/Digest"
2561
+ },
2562
+ "defaults": {
2563
+ "$ref": "#/$defs/EvidencePolicyDefaults"
2564
+ },
2565
+ "named_presets": {
2566
+ "type": "array",
2567
+ "minItems": 1,
2568
+ "items": {
2569
+ "$ref": "#/$defs/ProofPreset"
2570
+ }
2571
+ },
2572
+ "observation_schema_registrations": {
2573
+ "type": "array",
2574
+ "minItems": 1,
2575
+ "items": {
2576
+ "$ref": "#/$defs/ObservationSchemaRegistration"
2577
+ }
2578
+ },
2579
+ "adapter_registrations": {
2580
+ "type": "array",
2581
+ "minItems": 1,
2582
+ "items": {
2583
+ "$ref": "#/$defs/AdapterRegistration"
2584
+ }
2585
+ },
2586
+ "extension_namespaces": {
2587
+ "type": "array",
2588
+ "minItems": 1,
2589
+ "items": {
2590
+ "$ref": "#/$defs/NamespaceName"
2591
+ }
2592
+ },
2593
+ "trust_policy": {
2594
+ "$ref": "#/$defs/TrustPolicy"
2595
+ },
2596
+ "freshness_policy": {
2597
+ "$ref": "#/$defs/FreshnessPolicy"
2598
+ },
2599
+ "fixture_policy": {
2600
+ "$ref": "#/$defs/FixturePolicy"
2601
+ },
2602
+ "completion_policy": {
2603
+ "$ref": "#/$defs/CompletionPolicy"
2604
+ },
2605
+ "layering_policy": {
2606
+ "$ref": "#/$defs/PolicyLayering"
2607
+ }
2608
+ }
2609
+ },
2610
+ "ProofPreset": {
2611
+ "type": "object",
2612
+ "required": [
2613
+ "id",
2614
+ "schema_version",
2615
+ "namespace",
2616
+ "observations"
2617
+ ],
2618
+ "additionalProperties": false,
2619
+ "properties": {
2620
+ "id": {
2621
+ "$ref": "#/$defs/Id"
2622
+ },
2623
+ "schema_version": {
2624
+ "$ref": "#/$defs/SchemaVersion"
2625
+ },
2626
+ "namespace": {
2627
+ "$ref": "#/$defs/NamespaceName"
2628
+ },
2629
+ "observations": {
2630
+ "type": "array",
2631
+ "minItems": 1,
2632
+ "items": {
2633
+ "$ref": "#/$defs/ObservationRequirement"
2634
+ }
2635
+ }
2636
+ }
2637
+ },
2638
+ "EvidenceWaiver": {
2639
+ "type": "object",
2640
+ "required": [
2641
+ "id",
2642
+ "schema_version",
2643
+ "scope",
2644
+ "observation_ids",
2645
+ "source",
2646
+ "target",
2647
+ "reason",
2648
+ "created_by",
2649
+ "created_at",
2650
+ "expires_at",
2651
+ "approval_ref",
2652
+ "audit_trail"
2653
+ ],
2654
+ "additionalProperties": false,
2655
+ "properties": {
2656
+ "id": {
2657
+ "$ref": "#/$defs/Id"
2658
+ },
2659
+ "schema_version": {
2660
+ "$ref": "#/$defs/SchemaVersion"
2661
+ },
2662
+ "scope": {
2663
+ "$ref": "#/$defs/EvidenceScope"
2664
+ },
2665
+ "observation_ids": {
2666
+ "type": "array",
2667
+ "minItems": 1,
2668
+ "items": {
2669
+ "$ref": "#/$defs/Id"
2670
+ }
2671
+ },
2672
+ "source": {
2673
+ "$ref": "#/$defs/SourceBinding"
2674
+ },
2675
+ "target": {
2676
+ "$ref": "#/$defs/TargetBinding"
2677
+ },
2678
+ "reason": {
2679
+ "type": "string",
2680
+ "minLength": 1
2681
+ },
2682
+ "created_by": {
2683
+ "type": "string",
2684
+ "minLength": 1
2685
+ },
2686
+ "created_at": {
2687
+ "$ref": "#/$defs/Timestamp"
2688
+ },
2689
+ "expires_at": {
2690
+ "$ref": "#/$defs/Timestamp"
2691
+ },
2692
+ "approval_ref": {
2693
+ "$ref": "#/$defs/Id"
2694
+ },
2695
+ "audit_trail": {
2696
+ "type": "array",
2697
+ "minItems": 1,
2698
+ "items": {
2699
+ "$ref": "#/$defs/JsonObject"
2700
+ }
2701
+ }
2702
+ }
2703
+ }
2704
+ }
2705
+ }