mustflow 1.31.0 → 2.16.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 (66) hide show
  1. package/README.md +23 -9
  2. package/dist/cli/commands/classify.js +61 -6
  3. package/dist/cli/commands/contract-lint.js +13 -4
  4. package/dist/cli/commands/dashboard.js +77 -2
  5. package/dist/cli/commands/explain-verify.js +11 -1
  6. package/dist/cli/commands/index.js +14 -0
  7. package/dist/cli/commands/run.js +4 -1
  8. package/dist/cli/commands/verify.js +986 -43
  9. package/dist/cli/i18n/en.js +61 -10
  10. package/dist/cli/i18n/es.js +61 -10
  11. package/dist/cli/i18n/fr.js +61 -10
  12. package/dist/cli/i18n/hi.js +61 -10
  13. package/dist/cli/i18n/ko.js +61 -10
  14. package/dist/cli/i18n/zh.js +61 -10
  15. package/dist/cli/lib/dashboard-export.js +62 -12
  16. package/dist/cli/lib/dashboard-html/client-script.js +1936 -0
  17. package/dist/cli/lib/dashboard-html/locale-bootstrap.js +8 -0
  18. package/dist/cli/lib/dashboard-html/styles.js +572 -0
  19. package/dist/cli/lib/dashboard-html/template.js +134 -0
  20. package/dist/cli/lib/dashboard-html/types.js +1 -0
  21. package/dist/cli/lib/dashboard-html.js +1 -1907
  22. package/dist/cli/lib/dashboard-locale.js +37 -0
  23. package/dist/cli/lib/local-index/constants.js +48 -0
  24. package/dist/cli/lib/local-index/index.js +2951 -0
  25. package/dist/cli/lib/local-index/sql.js +15 -0
  26. package/dist/cli/lib/local-index/types.js +1 -0
  27. package/dist/cli/lib/local-index.js +1 -1911
  28. package/dist/cli/lib/run-plan.js +76 -1
  29. package/dist/cli/lib/templates.js +18 -1
  30. package/dist/cli/lib/validation/command-intents.js +11 -0
  31. package/dist/cli/lib/validation/constants.js +238 -0
  32. package/dist/cli/lib/validation/index.js +1384 -0
  33. package/dist/cli/lib/validation/primitives.js +198 -0
  34. package/dist/cli/lib/validation/test-selection.js +95 -0
  35. package/dist/cli/lib/validation/types.js +1 -0
  36. package/dist/cli/lib/validation.js +1 -1770
  37. package/dist/core/check-issues.js +6 -0
  38. package/dist/core/completion-verdict.js +341 -0
  39. package/dist/core/contract-lint.js +221 -6
  40. package/dist/core/external-evidence.js +9 -0
  41. package/dist/core/public-json-contracts.js +21 -0
  42. package/dist/core/repeated-failure.js +179 -0
  43. package/dist/core/repro-evidence.js +134 -0
  44. package/dist/core/scope-risk.js +64 -0
  45. package/dist/core/skill-route-alignment.js +20 -0
  46. package/dist/core/source-anchor-status.js +4 -1
  47. package/dist/core/test-selection.js +3 -0
  48. package/dist/core/validation-ratchet.js +196 -0
  49. package/dist/core/verification-evidence.js +249 -0
  50. package/examples/README.md +12 -4
  51. package/package.json +3 -3
  52. package/schemas/README.md +13 -3
  53. package/schemas/change-verification-report.schema.json +16 -2
  54. package/schemas/commands.schema.json +4 -0
  55. package/schemas/contract-lint-report.schema.json +29 -0
  56. package/schemas/dashboard-export.schema.json +310 -0
  57. package/schemas/explain-report.schema.json +173 -1
  58. package/schemas/latest-run-pointer.schema.json +601 -0
  59. package/schemas/run-receipt.schema.json +4 -0
  60. package/schemas/test-selection.schema.json +81 -0
  61. package/schemas/verify-report.schema.json +578 -1
  62. package/schemas/verify-run-manifest.schema.json +627 -0
  63. package/templates/default/i18n.toml +1 -1
  64. package/templates/default/locales/en/.mustflow/skills/INDEX.md +124 -29
  65. package/templates/default/locales/en/.mustflow/skills/routes.toml +289 -0
  66. package/templates/default/manifest.toml +29 -2
@@ -0,0 +1,601 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mustflow.github.io/schemas/latest-run-pointer.schema.json",
4
+ "title": "mustflow latest run pointer",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "command",
10
+ "kind",
11
+ "reason",
12
+ "reasons",
13
+ "plan_source",
14
+ "verification_plan_id",
15
+ "status",
16
+ "completion_verdict",
17
+ "evidence_model",
18
+ "summary",
19
+ "run_dir",
20
+ "manifest_path"
21
+ ],
22
+ "properties": {
23
+ "schema_version": { "const": "1" },
24
+ "command": { "const": "verify" },
25
+ "kind": { "const": "verify_run_summary" },
26
+ "reason": { "type": "string" },
27
+ "reasons": {
28
+ "type": "array",
29
+ "items": { "type": "string" }
30
+ },
31
+ "plan_source": { "type": ["string", "null"] },
32
+ "verification_plan_id": {
33
+ "type": "string",
34
+ "pattern": "^sha256:[0-9a-f]{64}$"
35
+ },
36
+ "status": { "enum": ["passed", "partial", "failed", "blocked"] },
37
+ "completion_verdict": { "$ref": "#/$defs/completionVerdict" },
38
+ "evidence_model": { "$ref": "#/$defs/evidenceModel" },
39
+ "failure_fingerprint": {
40
+ "anyOf": [
41
+ { "$ref": "#/$defs/failureFingerprint" },
42
+ { "type": "null" }
43
+ ]
44
+ },
45
+ "repeated_failure_summary": {
46
+ "anyOf": [
47
+ { "$ref": "#/$defs/repeatedFailureSummary" },
48
+ { "type": "null" }
49
+ ]
50
+ },
51
+ "summary": {
52
+ "type": "object",
53
+ "additionalProperties": false,
54
+ "required": ["matched", "ran", "passed", "failed", "skipped"],
55
+ "properties": {
56
+ "matched": { "type": "integer" },
57
+ "ran": { "type": "integer" },
58
+ "passed": { "type": "integer" },
59
+ "failed": { "type": "integer" },
60
+ "skipped": { "type": "integer" }
61
+ }
62
+ },
63
+ "repro_evidence": { "$ref": "#/$defs/reproEvidence" },
64
+ "external_checks": {
65
+ "type": "array",
66
+ "items": { "$ref": "#/$defs/externalCheck" }
67
+ },
68
+ "run_dir": { "type": "string" },
69
+ "manifest_path": { "type": "string" }
70
+ },
71
+ "$defs": {
72
+ "failureFingerprint": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "schema_version",
77
+ "fingerprint",
78
+ "verification_plan_id",
79
+ "failed_intents_hash",
80
+ "exit_code_classes_hash",
81
+ "timeout_flags_hash",
82
+ "error_kinds_hash",
83
+ "diagnostic_hash",
84
+ "risk_codes_hash",
85
+ "affected_surfaces_hash",
86
+ "command_fingerprints_hash"
87
+ ],
88
+ "properties": {
89
+ "schema_version": { "const": "1" },
90
+ "fingerprint": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
91
+ "verification_plan_id": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
92
+ "failed_intents_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
93
+ "exit_code_classes_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
94
+ "timeout_flags_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
95
+ "error_kinds_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
96
+ "diagnostic_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
97
+ "risk_codes_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
98
+ "affected_surfaces_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
99
+ "command_fingerprints_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
100
+ }
101
+ },
102
+ "repeatedFailureSummary": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "schema_version",
107
+ "fingerprint",
108
+ "verification_plan_id",
109
+ "status",
110
+ "failed_intents_hash",
111
+ "risk_codes_hash",
112
+ "affected_surfaces_hash",
113
+ "first_seen_at",
114
+ "last_seen_at",
115
+ "seen_count",
116
+ "requires_new_evidence"
117
+ ],
118
+ "properties": {
119
+ "schema_version": { "const": "1" },
120
+ "fingerprint": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
121
+ "verification_plan_id": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
122
+ "status": { "type": "string" },
123
+ "failed_intents_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
124
+ "risk_codes_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
125
+ "affected_surfaces_hash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
126
+ "first_seen_at": { "type": "string" },
127
+ "last_seen_at": { "type": "string" },
128
+ "seen_count": { "type": "integer", "minimum": 1 },
129
+ "requires_new_evidence": { "type": "boolean" }
130
+ }
131
+ },
132
+ "completionVerdict": {
133
+ "type": "object",
134
+ "additionalProperties": false,
135
+ "required": ["schema_version", "status", "primary_reason", "evidence", "blockers", "contradictions", "limitations"],
136
+ "properties": {
137
+ "schema_version": { "const": "1" },
138
+ "status": { "enum": ["verified", "partially_verified", "unverified", "blocked", "contradicted"] },
139
+ "primary_reason": { "type": "string" },
140
+ "evidence": {
141
+ "type": "object",
142
+ "additionalProperties": false,
143
+ "required": [
144
+ "source",
145
+ "verification_plan_id",
146
+ "changed_file_count",
147
+ "criteria",
148
+ "matched_intents",
149
+ "ran_intents",
150
+ "passed_intents",
151
+ "failed_intents",
152
+ "skipped_intents",
153
+ "receipt_count",
154
+ "gap_count",
155
+ "source_anchor_risk_count",
156
+ "scope_diff_risk_count",
157
+ "repeated_failure_count",
158
+ "validation_ratchet_risk_count",
159
+ "repro_evidence_risk_count",
160
+ "external_evidence_risk_count",
161
+ "write_drift_risk_count",
162
+ "receipt_binding_risk_count",
163
+ "stale_receipt_count",
164
+ "plan_mismatch_count",
165
+ "risks",
166
+ "receipt_binding",
167
+ "latest_run_status"
168
+ ],
169
+ "properties": {
170
+ "source": { "enum": ["mf_verify", "dashboard_export"] },
171
+ "verification_plan_id": {
172
+ "type": ["string", "null"],
173
+ "pattern": "^sha256:[0-9a-f]{64}$"
174
+ },
175
+ "changed_file_count": { "type": ["integer", "null"] },
176
+ "criteria": { "$ref": "#/$defs/completionVerdictCriteria" },
177
+ "matched_intents": { "type": "integer" },
178
+ "ran_intents": { "type": "integer" },
179
+ "passed_intents": { "type": "integer" },
180
+ "failed_intents": { "type": "integer" },
181
+ "skipped_intents": { "type": "integer" },
182
+ "receipt_count": { "type": "integer" },
183
+ "gap_count": { "type": "integer" },
184
+ "source_anchor_risk_count": { "type": "integer" },
185
+ "scope_diff_risk_count": { "type": "integer" },
186
+ "repeated_failure_count": { "type": "integer" },
187
+ "validation_ratchet_risk_count": { "type": "integer" },
188
+ "repro_evidence_risk_count": { "type": "integer" },
189
+ "external_evidence_risk_count": { "type": "integer" },
190
+ "write_drift_risk_count": { "type": "integer" },
191
+ "receipt_binding_risk_count": { "type": "integer" },
192
+ "stale_receipt_count": { "type": "integer" },
193
+ "plan_mismatch_count": { "type": "integer" },
194
+ "risks": { "$ref": "#/$defs/completionVerdictRisks" },
195
+ "receipt_binding": { "$ref": "#/$defs/completionVerdictReceiptBinding" },
196
+ "latest_run_status": { "type": ["string", "null"] }
197
+ }
198
+ },
199
+ "blockers": {
200
+ "type": "array",
201
+ "items": { "type": "string" }
202
+ },
203
+ "contradictions": {
204
+ "type": "array",
205
+ "items": { "type": "string" }
206
+ },
207
+ "limitations": {
208
+ "type": "array",
209
+ "items": { "type": "string" }
210
+ }
211
+ }
212
+ },
213
+ "completionVerdictCriteria": {
214
+ "type": "object",
215
+ "additionalProperties": false,
216
+ "required": ["total", "covered", "partially_covered", "uncovered", "blocked", "contradicted"],
217
+ "properties": {
218
+ "total": { "type": "integer" },
219
+ "covered": { "type": "integer" },
220
+ "partially_covered": { "type": "integer" },
221
+ "uncovered": { "type": "integer" },
222
+ "blocked": { "type": "integer" },
223
+ "contradicted": { "type": "integer" }
224
+ }
225
+ },
226
+ "completionVerdictRisks": {
227
+ "type": "object",
228
+ "additionalProperties": false,
229
+ "required": [
230
+ "source_anchor",
231
+ "scope_diff",
232
+ "repeated_failure",
233
+ "validation_ratchet",
234
+ "repro_evidence",
235
+ "external_evidence",
236
+ "write_drift",
237
+ "receipt_binding",
238
+ "stale_receipt",
239
+ "plan_mismatch"
240
+ ],
241
+ "properties": {
242
+ "source_anchor": { "type": "integer" },
243
+ "scope_diff": { "type": "integer" },
244
+ "repeated_failure": { "type": "integer" },
245
+ "validation_ratchet": { "type": "integer" },
246
+ "repro_evidence": { "type": "integer" },
247
+ "external_evidence": { "type": "integer" },
248
+ "write_drift": { "type": "integer" },
249
+ "receipt_binding": { "type": "integer" },
250
+ "stale_receipt": { "type": "integer" },
251
+ "plan_mismatch": { "type": "integer" }
252
+ }
253
+ },
254
+ "completionVerdictReceiptBinding": {
255
+ "type": "object",
256
+ "additionalProperties": false,
257
+ "required": [
258
+ "plan_bound_count",
259
+ "plan_unbound_count",
260
+ "fingerprint_bound_count",
261
+ "fingerprint_unbound_count",
262
+ "current_state_bound_count",
263
+ "current_state_unavailable_count",
264
+ "stale_count",
265
+ "plan_mismatch_count"
266
+ ],
267
+ "properties": {
268
+ "plan_bound_count": { "type": "integer" },
269
+ "plan_unbound_count": { "type": "integer" },
270
+ "fingerprint_bound_count": { "type": "integer" },
271
+ "fingerprint_unbound_count": { "type": "integer" },
272
+ "current_state_bound_count": { "type": "integer" },
273
+ "current_state_unavailable_count": { "type": "integer" },
274
+ "stale_count": { "type": "integer" },
275
+ "plan_mismatch_count": { "type": "integer" }
276
+ }
277
+ },
278
+ "evidenceModel": {
279
+ "type": "object",
280
+ "additionalProperties": false,
281
+ "required": [
282
+ "schema_version",
283
+ "source",
284
+ "verification_plan_id",
285
+ "requirements",
286
+ "coverage_matrix",
287
+ "receipts",
288
+ "skipped_checks",
289
+ "gaps",
290
+ "remaining_risks",
291
+ "explanation"
292
+ ],
293
+ "properties": {
294
+ "schema_version": { "const": "1" },
295
+ "source": { "enum": ["mf_verify", "dashboard_export"] },
296
+ "verification_plan_id": {
297
+ "type": ["string", "null"],
298
+ "pattern": "^sha256:[0-9a-f]{64}$"
299
+ },
300
+ "requirements": {
301
+ "type": "array",
302
+ "items": { "$ref": "#/$defs/evidenceRequirement" }
303
+ },
304
+ "coverage_matrix": {
305
+ "type": "array",
306
+ "items": { "$ref": "#/$defs/evidenceCoverageCriterion" }
307
+ },
308
+ "receipts": {
309
+ "type": "array",
310
+ "items": { "$ref": "#/$defs/evidenceReceipt" }
311
+ },
312
+ "skipped_checks": {
313
+ "type": "array",
314
+ "items": { "$ref": "#/$defs/evidenceSkippedCheck" }
315
+ },
316
+ "gaps": {
317
+ "type": "array",
318
+ "items": { "$ref": "#/$defs/evidenceGap" }
319
+ },
320
+ "remaining_risks": {
321
+ "type": "array",
322
+ "items": { "$ref": "#/$defs/evidenceRemainingRisk" }
323
+ },
324
+ "repro_evidence": { "$ref": "#/$defs/reproEvidence" },
325
+ "external_checks": {
326
+ "type": "array",
327
+ "items": { "$ref": "#/$defs/externalCheck" }
328
+ },
329
+ "explanation": { "$ref": "#/$defs/evidenceExplanation" }
330
+ }
331
+ },
332
+ "evidenceRequirement": {
333
+ "type": "object",
334
+ "additionalProperties": false,
335
+ "required": [
336
+ "reason",
337
+ "files",
338
+ "surfaces",
339
+ "candidate_intents",
340
+ "selected_intents",
341
+ "skipped_intents",
342
+ "gap_count",
343
+ "outcome"
344
+ ],
345
+ "properties": {
346
+ "reason": { "type": "string" },
347
+ "files": {
348
+ "type": "array",
349
+ "items": { "type": "string" }
350
+ },
351
+ "surfaces": {
352
+ "type": "array",
353
+ "items": { "type": "string" }
354
+ },
355
+ "candidate_intents": {
356
+ "type": "array",
357
+ "items": { "type": "string" }
358
+ },
359
+ "selected_intents": {
360
+ "type": "array",
361
+ "items": { "type": "string" }
362
+ },
363
+ "skipped_intents": {
364
+ "type": "array",
365
+ "items": { "type": "string" }
366
+ },
367
+ "gap_count": { "type": "integer" },
368
+ "outcome": { "enum": ["verified", "partially_verified", "unverified", "blocked", "contradicted"] }
369
+ }
370
+ },
371
+ "evidenceCoverageCriterion": {
372
+ "type": "object",
373
+ "additionalProperties": false,
374
+ "required": ["criterion_id", "source", "statement", "status", "requirement_reason", "evidence"],
375
+ "properties": {
376
+ "criterion_id": { "type": "string" },
377
+ "source": { "enum": ["verification_requirement", "dashboard_snapshot"] },
378
+ "statement": { "type": "string" },
379
+ "status": { "enum": ["covered", "partially_covered", "uncovered", "blocked", "contradicted"] },
380
+ "requirement_reason": { "type": ["string", "null"] },
381
+ "evidence": { "$ref": "#/$defs/evidenceCoverageLinks" }
382
+ }
383
+ },
384
+ "evidenceCoverageLinks": {
385
+ "type": "object",
386
+ "additionalProperties": false,
387
+ "required": ["intents", "receipt_paths", "gap_reasons", "source_anchor_ids"],
388
+ "properties": {
389
+ "intents": {
390
+ "type": "array",
391
+ "items": { "type": "string" }
392
+ },
393
+ "receipt_paths": {
394
+ "type": "array",
395
+ "items": { "type": "string" }
396
+ },
397
+ "gap_reasons": {
398
+ "type": "array",
399
+ "items": { "type": "string" }
400
+ },
401
+ "source_anchor_ids": {
402
+ "type": "array",
403
+ "items": { "type": "string" }
404
+ }
405
+ }
406
+ },
407
+ "evidenceReceipt": {
408
+ "type": "object",
409
+ "additionalProperties": false,
410
+ "required": ["intent", "status", "skipped", "verification_plan_id", "receipt_path", "receipt_sha256"],
411
+ "properties": {
412
+ "intent": { "type": ["string", "null"] },
413
+ "status": { "type": "string" },
414
+ "skipped": { "type": "boolean" },
415
+ "verification_plan_id": {
416
+ "type": ["string", "null"],
417
+ "pattern": "^sha256:[0-9a-f]{64}$"
418
+ },
419
+ "receipt_path": { "type": ["string", "null"] },
420
+ "receipt_sha256": {
421
+ "type": ["string", "null"],
422
+ "pattern": "^sha256:[0-9a-f]{64}$"
423
+ }
424
+ }
425
+ },
426
+ "evidenceSkippedCheck": {
427
+ "type": "object",
428
+ "additionalProperties": false,
429
+ "required": ["intent", "reason", "detail"],
430
+ "properties": {
431
+ "intent": { "type": ["string", "null"] },
432
+ "reason": { "type": ["string", "null"] },
433
+ "detail": { "type": ["string", "null"] }
434
+ }
435
+ },
436
+ "evidenceGap": {
437
+ "type": "object",
438
+ "additionalProperties": false,
439
+ "required": ["reason", "intent", "status", "detail", "files", "surfaces"],
440
+ "properties": {
441
+ "reason": { "type": ["string", "null"] },
442
+ "intent": { "type": ["string", "null"] },
443
+ "status": { "type": ["string", "null"] },
444
+ "detail": { "type": ["string", "null"] },
445
+ "files": {
446
+ "type": "array",
447
+ "items": { "type": "string" }
448
+ },
449
+ "surfaces": {
450
+ "type": "array",
451
+ "items": { "type": "string" }
452
+ }
453
+ }
454
+ },
455
+ "evidenceRemainingRisk": {
456
+ "type": "object",
457
+ "additionalProperties": false,
458
+ "required": ["code", "severity", "detail"],
459
+ "properties": {
460
+ "code": { "type": "string" },
461
+ "severity": { "type": "string" },
462
+ "detail": { "type": "string" }
463
+ }
464
+ },
465
+ "reproEvidence": {
466
+ "type": "object",
467
+ "additionalProperties": false,
468
+ "required": [
469
+ "source",
470
+ "authority",
471
+ "reported_symptom",
472
+ "expected_behavior",
473
+ "observed_behavior",
474
+ "reproduction_route",
475
+ "before_fix",
476
+ "after_fix",
477
+ "regression_guard"
478
+ ],
479
+ "properties": {
480
+ "source": { "const": "repro_first_debug" },
481
+ "authority": { "const": "claim_evidence" },
482
+ "reported_symptom": { "type": ["string", "null"] },
483
+ "expected_behavior": { "type": ["string", "null"] },
484
+ "observed_behavior": { "type": ["string", "null"] },
485
+ "reproduction_route": { "$ref": "#/$defs/reproRouteIdentity" },
486
+ "before_fix": { "$ref": "#/$defs/reproBeforeFixEvidence" },
487
+ "after_fix": { "$ref": "#/$defs/reproAfterFixEvidence" },
488
+ "regression_guard": { "$ref": "#/$defs/reproRegressionGuardEvidence" }
489
+ }
490
+ },
491
+ "reproRouteIdentity": {
492
+ "type": "object",
493
+ "additionalProperties": false,
494
+ "required": ["route_id", "route_kind", "route_digest", "failure_oracle_hash", "steps"],
495
+ "properties": {
496
+ "route_id": { "type": ["string", "null"] },
497
+ "route_kind": { "enum": ["test", "cli", "browser", "api", "manual", "unknown", null] },
498
+ "route_digest": { "type": ["string", "null"] },
499
+ "failure_oracle_hash": { "type": ["string", "null"] },
500
+ "steps": {
501
+ "type": "array",
502
+ "items": { "$ref": "#/$defs/reproRouteStep" }
503
+ }
504
+ }
505
+ },
506
+ "reproRouteStep": {
507
+ "type": "object",
508
+ "additionalProperties": false,
509
+ "required": ["ordinal", "action", "target", "input_digest", "observation_digest", "summary"],
510
+ "properties": {
511
+ "ordinal": { "type": "integer", "minimum": 1 },
512
+ "action": { "type": ["string", "null"] },
513
+ "target": { "type": ["string", "null"] },
514
+ "input_digest": { "type": ["string", "null"] },
515
+ "observation_digest": { "type": ["string", "null"] },
516
+ "summary": { "type": ["string", "null"] }
517
+ }
518
+ },
519
+ "reproBeforeFixEvidence": {
520
+ "type": "object",
521
+ "additionalProperties": false,
522
+ "required": ["status", "outcome", "receipt_path", "receipt_sha256", "verification_plan_id", "summary", "reason"],
523
+ "properties": {
524
+ "status": { "enum": ["reproduced", "unavailable", "missing"] },
525
+ "outcome": { "enum": ["failed_as_expected", "failed_differently", "passed_unexpectedly", null] },
526
+ "receipt_path": { "type": ["string", "null"] },
527
+ "receipt_sha256": { "type": ["string", "null"] },
528
+ "verification_plan_id": { "type": ["string", "null"] },
529
+ "summary": { "type": ["string", "null"] },
530
+ "reason": { "type": ["string", "null"] }
531
+ }
532
+ },
533
+ "reproAfterFixEvidence": {
534
+ "type": "object",
535
+ "additionalProperties": false,
536
+ "required": ["status", "outcome", "same_route_as", "receipt_path", "receipt_sha256", "verification_plan_id", "summary", "reason"],
537
+ "properties": {
538
+ "status": { "enum": ["passed", "failed", "unavailable", "missing"] },
539
+ "outcome": { "enum": ["passed_expected_behavior", "failed_same_route", "failed_differently", null] },
540
+ "same_route_as": { "type": ["string", "null"] },
541
+ "receipt_path": { "type": ["string", "null"] },
542
+ "receipt_sha256": { "type": ["string", "null"] },
543
+ "verification_plan_id": { "type": ["string", "null"] },
544
+ "summary": { "type": ["string", "null"] },
545
+ "reason": { "type": ["string", "null"] }
546
+ }
547
+ },
548
+ "reproRegressionGuardEvidence": {
549
+ "type": "object",
550
+ "additionalProperties": false,
551
+ "required": ["status", "intent", "test_path", "receipt_path", "receipt_sha256", "verification_plan_id", "summary", "reason"],
552
+ "properties": {
553
+ "status": { "enum": ["passed", "failed", "unavailable", "missing"] },
554
+ "intent": { "type": ["string", "null"] },
555
+ "test_path": { "type": ["string", "null"] },
556
+ "receipt_path": { "type": ["string", "null"] },
557
+ "receipt_sha256": { "type": ["string", "null"] },
558
+ "verification_plan_id": { "type": ["string", "null"] },
559
+ "summary": { "type": ["string", "null"] },
560
+ "reason": { "type": ["string", "null"] }
561
+ }
562
+ },
563
+ "externalCheck": {
564
+ "type": "object",
565
+ "additionalProperties": false,
566
+ "required": ["source", "authority", "provider", "name", "status", "url", "summary"],
567
+ "properties": {
568
+ "source": { "const": "external_ci" },
569
+ "authority": { "const": "supporting_only" },
570
+ "provider": { "type": "string", "minLength": 1 },
571
+ "name": { "type": "string", "minLength": 1 },
572
+ "status": { "enum": ["passed", "failed", "cancelled", "unknown"] },
573
+ "url": { "type": ["string", "null"] },
574
+ "summary": { "type": ["string", "null"] }
575
+ }
576
+ },
577
+ "evidenceExplanation": {
578
+ "type": "object",
579
+ "additionalProperties": false,
580
+ "required": ["verified_by", "downgraded_by", "blocked_by", "contradicted_by"],
581
+ "properties": {
582
+ "verified_by": {
583
+ "type": "array",
584
+ "items": { "type": "string" }
585
+ },
586
+ "downgraded_by": {
587
+ "type": "array",
588
+ "items": { "type": "string" }
589
+ },
590
+ "blocked_by": {
591
+ "type": "array",
592
+ "items": { "type": "string" }
593
+ },
594
+ "contradicted_by": {
595
+ "type": "array",
596
+ "items": { "type": "string" }
597
+ }
598
+ }
599
+ }
600
+ }
601
+ }
@@ -69,6 +69,10 @@
69
69
  "write_drift": { "$ref": "#/$defs/writeDrift" },
70
70
  "performance": { "$ref": "#/$defs/performance" },
71
71
  "redaction": { "$ref": "#/$defs/redaction" },
72
+ "verification_plan_id": {
73
+ "type": "string",
74
+ "pattern": "^sha256:[0-9a-f]{64}$"
75
+ },
72
76
  "receipt_path": { "type": "string" }
73
77
  },
74
78
  "$defs": {