@reticlehq/core 2.13.1 → 3.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 (147) hide show
  1. package/dist/artifacts/artifacts-entry.d.ts +20 -0
  2. package/dist/artifacts/artifacts-entry.js +20 -0
  3. package/dist/artifacts/flow-composition.d.ts +30 -0
  4. package/dist/artifacts/flow-composition.js +19 -0
  5. package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +97 -3
  6. package/dist/{flow-constants.js → artifacts/flow-constants.js} +103 -4
  7. package/dist/artifacts/flow-mutation-target.d.ts +39 -0
  8. package/dist/artifacts/flow-mutation-target.js +89 -0
  9. package/dist/artifacts/flow-order.d.ts +30 -0
  10. package/dist/artifacts/flow-order.js +49 -0
  11. package/dist/artifacts/flow-select.d.ts +56 -0
  12. package/dist/artifacts/flow-select.js +56 -0
  13. package/dist/artifacts/flow-step-tool.d.ts +31 -0
  14. package/dist/artifacts/flow-step-tool.js +31 -0
  15. package/dist/artifacts/flow-types.d.ts +3736 -0
  16. package/dist/artifacts/flow-types.js +463 -0
  17. package/dist/artifacts/flow-unreached.d.ts +12 -0
  18. package/dist/artifacts/flow-unreached.js +24 -0
  19. package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +7 -3
  20. package/dist/{impact-savings.js → artifacts/impact-savings.js} +27 -4
  21. package/dist/{impact.d.ts → artifacts/impact.d.ts} +122 -54
  22. package/dist/{impact.js → artifacts/impact.js} +30 -0
  23. package/dist/{journal.d.ts → artifacts/journal.d.ts} +50 -6
  24. package/dist/{journal.js → artifacts/journal.js} +38 -2
  25. package/dist/artifacts/step-effect.d.ts +29 -0
  26. package/dist/artifacts/step-effect.js +28 -0
  27. package/dist/hooks/hook-events.d.ts +311 -0
  28. package/dist/hooks/hook-events.js +127 -0
  29. package/dist/hooks/hooks-entry.d.ts +9 -0
  30. package/dist/hooks/hooks-entry.js +9 -0
  31. package/dist/{brand.d.ts → identity/brand.d.ts} +7 -0
  32. package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
  33. package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
  34. package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
  35. package/dist/{document-identity.js → identity/document-identity.js} +4 -5
  36. package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
  37. package/dist/{source-constants.js → identity/source-constants.js} +4 -4
  38. package/dist/index.d.ts +69 -42
  39. package/dist/index.js +78 -44
  40. package/dist/onboarding.d.ts +114 -0
  41. package/dist/onboarding.js +141 -0
  42. package/dist/realm/registry.d.ts +212 -0
  43. package/dist/realm/registry.js +302 -0
  44. package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +4 -5
  45. package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
  46. package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
  47. package/dist/{project-registry.js → registry/project-registry.js} +5 -5
  48. package/dist/schema/command-name.json +31 -0
  49. package/dist/schema/event-message.json +1 -0
  50. package/dist/schema/event-payloads.json +791 -0
  51. package/dist/schema/event-type.json +1 -0
  52. package/dist/schema/hello-message.json +76 -2
  53. package/dist/schema/reticle-event.json +1 -0
  54. package/dist/schema/reticle-message.json +77 -2
  55. package/dist/telemetry-entry.d.ts +15 -0
  56. package/dist/telemetry-entry.js +15 -0
  57. package/dist/telemetry-feedback.d.ts +13 -14
  58. package/dist/telemetry-feedback.js +11 -12
  59. package/dist/telemetry-license.d.ts +1 -1
  60. package/dist/telemetry-license.js +1 -1
  61. package/dist/telemetry-refusal.d.ts +11 -11
  62. package/dist/telemetry-refusal.js +7 -8
  63. package/dist/telemetry-session.d.ts +49 -57
  64. package/dist/telemetry-session.js +47 -55
  65. package/dist/telemetry.d.ts +229 -198
  66. package/dist/telemetry.js +83 -98
  67. package/dist/tour-entry.d.ts +10 -0
  68. package/dist/tour-entry.js +10 -0
  69. package/dist/tour.d.ts +125 -0
  70. package/dist/tour.js +165 -0
  71. package/dist/{consequence.d.ts → verdict/consequence.d.ts} +35 -11
  72. package/dist/{consequence.js → verdict/consequence.js} +9 -22
  73. package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
  74. package/dist/{findings.d.ts → verdict/findings.d.ts} +149 -41
  75. package/dist/{findings.js → verdict/findings.js} +169 -48
  76. package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +22 -14
  77. package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +23 -15
  78. package/dist/{intent.d.ts → verdict/intent.d.ts} +41 -52
  79. package/dist/{intent.js → verdict/intent.js} +11 -22
  80. package/dist/verdict/revision.d.ts +44 -0
  81. package/dist/verdict/revision.js +53 -0
  82. package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
  83. package/dist/{run-context.js → verdict/run-context.js} +15 -36
  84. package/dist/{security.js → verdict/security.js} +12 -21
  85. package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +369 -93
  86. package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
  87. package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +36 -13
  88. package/dist/{verified-constants.js → verdict/verified-constants.js} +36 -13
  89. package/dist/verdict/verify-progress.d.ts +129 -0
  90. package/dist/verdict/verify-progress.js +74 -0
  91. package/dist/wire/channel.d.ts +46 -0
  92. package/dist/wire/channel.js +95 -0
  93. package/dist/{constants.d.ts → wire/constants/constants.d.ts} +124 -28
  94. package/dist/{constants.js → wire/constants/constants.js} +137 -28
  95. package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +9 -2
  96. package/dist/{session-constants.js → wire/constants/session-constants.js} +9 -2
  97. package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
  98. package/dist/{event-classification.js → wire/event-classification.js} +1 -1
  99. package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +229 -17
  100. package/dist/{event-payloads.js → wire/event-payloads.js} +61 -3
  101. package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
  102. package/dist/{event-priority.js → wire/event-priority.js} +2 -5
  103. package/dist/wire/global-press.d.ts +30 -0
  104. package/dist/wire/global-press.js +54 -0
  105. package/dist/{messages.d.ts → wire/messages.d.ts} +290 -38
  106. package/dist/{messages.js → wire/messages.js} +93 -5
  107. package/dist/wire/narrow.d.ts +39 -0
  108. package/dist/wire/narrow.js +45 -0
  109. package/dist/{net.d.ts → wire/net.d.ts} +49 -10
  110. package/dist/{net.js → wire/net.js} +49 -10
  111. package/dist/wire/platform.d.ts +37 -0
  112. package/dist/wire/platform.js +36 -0
  113. package/dist/{redaction.d.ts → wire/redaction.d.ts} +30 -0
  114. package/dist/wire/redaction.js +274 -0
  115. package/dist/wire/tool-names.d.ts +133 -0
  116. package/dist/wire/tool-names.js +142 -0
  117. package/dist/{toon.js → wire/toon.js} +1 -1
  118. package/dist/{types.d.ts → wire/types.d.ts} +106 -66
  119. package/dist/{types.js → wire/types.js} +24 -4
  120. package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
  121. package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
  122. package/dist/{notices.d.ts → words/notices.d.ts} +24 -12
  123. package/dist/{notices.js → words/notices.js} +27 -12
  124. package/package.json +22 -5
  125. package/dist/flow-types.d.ts +0 -1473
  126. package/dist/flow-types.js +0 -195
  127. package/dist/redaction.js +0 -149
  128. /package/dist/{brand.js → identity/brand.js} +0 -0
  129. /package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
  130. /package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
  131. /package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
  132. /package/dist/{project-id.js → identity/project-id.js} +0 -0
  133. /package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
  134. /package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
  135. /package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
  136. /package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
  137. /package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
  138. /package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
  139. /package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
  140. /package/dist/{state-select.js → wire/state-select.js} +0 -0
  141. /package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
  142. /package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
  143. /package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
  144. /package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
  145. /package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
  146. /package/dist/{upgrade.d.ts → words/upgrade.d.ts} +0 -0
  147. /package/dist/{upgrade.js → words/upgrade.js} +0 -0
@@ -10,8 +10,10 @@
10
10
  * logic), no `any` (opaque evidence is `z.unknown`), and every domain string is a named constant.
11
11
  */
12
12
  import { z } from 'zod';
13
+ import { PredicateKind } from './consequence.js';
14
+ import { Verified } from './verified-constants.js';
13
15
  /** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */
14
- export declare const RUN_FILE_VERSION = 1;
16
+ export declare const RUN_FILE_VERSION = 3;
15
17
  /**
16
18
  * A run's identity, branded so it can't be confused with another id (e.g. a flow name) that also feeds
17
19
  * path helpers. The schema brands on parse; mint a fresh one with asRunId at a trusted/validated point.
@@ -38,6 +40,16 @@ export declare const VerdictStatus: {
38
40
  readonly PASS: "pass";
39
41
  readonly FAIL: "fail";
40
42
  readonly PARTIAL: "partial";
43
+ /**
44
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
45
+ * to pass and nothing to fail.
46
+ *
47
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
48
+ * successfully are different facts, and flattening them into one word is how a green light comes
49
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
50
+ * tell" has always been its own answer.
51
+ */
52
+ readonly UNKNOWN: "unknown";
41
53
  };
42
54
  export type VerdictStatus = (typeof VerdictStatus)[keyof typeof VerdictStatus];
43
55
  /** Per-flow outcome inside a run. HEALED = a drifted anchor was consequence-verified and rebound. */
@@ -48,22 +60,22 @@ export declare const RunFlowStatus: {
48
60
  readonly HEALED: "healed";
49
61
  };
50
62
  export type RunFlowStatus = (typeof RunFlowStatus)[keyof typeof RunFlowStatus];
51
- /** The kind of standalone assertion captured outside a flow (drives `evidence` narrowing downstream). */
52
- export declare const RunCheckKind: {
53
- readonly SIGNAL: "signal";
54
- readonly NETWORK: "network";
55
- readonly ELEMENT: "element";
56
- readonly STATE: "state";
57
- readonly CONSOLE: "console";
58
- readonly LAYOUT: "layout";
59
- };
60
- export type RunCheckKind = (typeof RunCheckKind)[keyof typeof RunCheckKind];
61
- /** Binary status of a single check. */
62
- export declare const RunCheckStatus: {
63
- readonly PASS: "pass";
64
- readonly FAIL: "fail";
65
- };
66
- export type RunCheckStatus = (typeof RunCheckStatus)[keyof typeof RunCheckStatus];
63
+ /**
64
+ * The kind of standalone assertion captured outside a flow.
65
+ *
66
+ * This is `PredicateKind` -- the vocabulary assertions are written in -- and not a second list: two
67
+ * lists drift, and an artifact can only record what somebody can actually assert. Re-exported so
68
+ * the places that read it from this file still can.
69
+ */
70
+ export { PredicateKind };
71
+ /**
72
+ * What a check came out as.
73
+ *
74
+ * `Verified` and not a second list. A binary one here would lose `unknown` and `no-fault` -- the
75
+ * two the specification says make the other two mean anything -- at the moment the verdict is
76
+ * written down. Re-exported so the places that read it from this file still can.
77
+ */
78
+ export { Verified };
67
79
  /**
68
80
  * A risk surface a changed file / observed behaviour touches. The governance seed: a host can gate
69
81
  * a deploy when a high-severity surface is hit. Mirrors the surfaces real AI-app-builder incidents
@@ -215,8 +227,8 @@ export declare const RunFlowResultSchema: z.ZodObject<{
215
227
  }, "strip", z.ZodTypeAny, {
216
228
  status: "pass" | "fail" | "healed" | "skipped";
217
229
  name: string;
218
- durationMs: number;
219
230
  steps: number;
231
+ durationMs: number;
220
232
  healed?: {
221
233
  from: string;
222
234
  to: string;
@@ -228,8 +240,8 @@ export declare const RunFlowResultSchema: z.ZodObject<{
228
240
  }, {
229
241
  status: "pass" | "fail" | "healed" | "skipped";
230
242
  name: string;
231
- durationMs: number;
232
243
  steps: number;
244
+ durationMs: number;
233
245
  healed?: {
234
246
  from: string;
235
247
  to: string;
@@ -242,30 +254,92 @@ export declare const RunFlowResultSchema: z.ZodObject<{
242
254
  export type RunFlowResult = z.infer<typeof RunFlowResultSchema>;
243
255
  /** A standalone assertion not tied to a flow. `evidence` is opaque (narrowed per kind by the caller). */
244
256
  export declare const RunCheckSchema: z.ZodObject<{
245
- kind: z.ZodNativeEnum<{
246
- readonly SIGNAL: "signal";
247
- readonly NETWORK: "network";
257
+ kind: z.ZodEffects<z.ZodNativeEnum<{
248
258
  readonly ELEMENT: "element";
259
+ readonly TEXT: "text";
260
+ readonly SIGNAL: "signal";
261
+ readonly NET: "net";
249
262
  readonly STATE: "state";
263
+ readonly ROUTE: "route";
250
264
  readonly CONSOLE: "console";
251
- readonly LAYOUT: "layout";
252
- }>;
265
+ readonly ANIMATION: "animation";
266
+ readonly SETTLED: "settled";
267
+ readonly ALL_OF: "allOf";
268
+ readonly ANY_OF: "anyOf";
269
+ readonly NOT: "not";
270
+ }>, "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not", unknown>;
253
271
  predicate: z.ZodString;
254
- status: z.ZodNativeEnum<{
255
- readonly PASS: "pass";
256
- readonly FAIL: "fail";
257
- }>;
272
+ status: z.ZodEffects<z.ZodNativeEnum<{
273
+ readonly YES: "yes";
274
+ readonly NO: "no";
275
+ readonly UNKNOWN: "unknown";
276
+ readonly NO_FAULT: "no-fault";
277
+ }>, "unknown" | "yes" | "no" | "no-fault", unknown>;
258
278
  evidence: z.ZodOptional<z.ZodUnknown>;
279
+ /**
280
+ * Was this claim written down BEFORE the action, or after it?
281
+ *
282
+ * The difference between a check and a rationalisation. Afterwards, anything that happened can be
283
+ * described as what you meant; a claim made in advance can only be met or missed.
284
+ *
285
+ * Optional, and absence is not `false`. `false` says the claim came afterwards. Absent says nobody
286
+ * recorded which, and those are different facts about the evidence.
287
+ */
288
+ declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
289
+ /**
290
+ * What kind of evidence bought this answer.
291
+ *
292
+ * A green paid for with "something matching was on screen" is not the same green as one paid for
293
+ * with "the request went out", and a report that flattens them lets the cheap one pass for the
294
+ * dear one. Free-form because the grades belong to whoever produced the verdict.
295
+ */
296
+ grade: z.ZodOptional<z.ZodString>;
297
+ /**
298
+ * What could not be seen while this was being checked.
299
+ *
300
+ * The property with no prior art: every other test report in existence is silent about its own
301
+ * blind spots. An empty list means nothing was hidden; absence means nobody looked.
302
+ */
303
+ couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
304
+ /**
305
+ * Why the verdict came out this way, in the engine's vocabulary.
306
+ *
307
+ * Carried so a reader -- and the fold that looks for late answers -- can tell an outcome that
308
+ * has not arrived from a capture that could not be read. Both are `unknown`, and only the
309
+ * first is a question that waiting can settle.
310
+ */
311
+ reason: z.ZodOptional<z.ZodString>;
312
+ /** This check's own name, so a later verdict can cite it. See revision.ts. */
313
+ checkId: z.ZodOptional<z.ZodString>;
314
+ /**
315
+ * The earlier check this one corrects, as `<runId>#<checkId>`.
316
+ *
317
+ * Present only on a correction, and the check it names is NOT edited: both stand, so a reader
318
+ * can see that the first answer was given, when it changed, and why.
319
+ */
320
+ supersedes: z.ZodOptional<z.ZodString>;
259
321
  }, "strip", z.ZodTypeAny, {
260
- status: "pass" | "fail";
261
- kind: "signal" | "console" | "element" | "state" | "network" | "layout";
322
+ status: "unknown" | "yes" | "no" | "no-fault";
323
+ kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
262
324
  predicate: string;
325
+ reason?: string | undefined;
263
326
  evidence?: unknown;
327
+ declaredBeforeActing?: boolean | undefined;
328
+ grade?: string | undefined;
329
+ couldNotSee?: string[] | undefined;
330
+ checkId?: string | undefined;
331
+ supersedes?: string | undefined;
264
332
  }, {
265
- status: "pass" | "fail";
266
- kind: "signal" | "console" | "element" | "state" | "network" | "layout";
267
333
  predicate: string;
334
+ status?: unknown;
335
+ kind?: unknown;
336
+ reason?: string | undefined;
268
337
  evidence?: unknown;
338
+ declaredBeforeActing?: boolean | undefined;
339
+ grade?: string | undefined;
340
+ couldNotSee?: string[] | undefined;
341
+ checkId?: string | undefined;
342
+ supersedes?: string | undefined;
269
343
  }>;
270
344
  export type RunCheck = z.infer<typeof RunCheckSchema>;
271
345
  /** A flagged risk. `gated` = a policy gate tripped on this surface. */
@@ -344,13 +418,13 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
344
418
  status: z.ZodOptional<z.ZodNumber>;
345
419
  issue: z.ZodString;
346
420
  }, "strip", z.ZodTypeAny, {
347
- url: string;
348
421
  method: string;
422
+ url: string;
349
423
  issue: string;
350
424
  status?: number | undefined;
351
425
  }, {
352
- url: string;
353
426
  method: string;
427
+ url: string;
354
428
  issue: string;
355
429
  status?: number | undefined;
356
430
  }>, "many">>;
@@ -378,12 +452,12 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
378
452
  kind: z.ZodString;
379
453
  summary: z.ZodString;
380
454
  }, "strip", z.ZodTypeAny, {
381
- at: number;
382
455
  kind: string;
456
+ at: number;
383
457
  summary: string;
384
458
  }, {
385
- at: number;
386
459
  kind: string;
460
+ at: number;
387
461
  summary: string;
388
462
  }>, "many">>;
389
463
  }, "strip", z.ZodTypeAny, {
@@ -393,8 +467,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
393
467
  level: string;
394
468
  }[];
395
469
  networkAnomalies: {
396
- url: string;
397
470
  method: string;
471
+ url: string;
398
472
  issue: string;
399
473
  status?: number | undefined;
400
474
  }[];
@@ -406,8 +480,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
406
480
  actual?: unknown;
407
481
  }[];
408
482
  timeline: {
409
- at: number;
410
483
  kind: string;
484
+ at: number;
411
485
  summary: string;
412
486
  }[];
413
487
  }, {
@@ -417,8 +491,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
417
491
  level: string;
418
492
  }[] | undefined;
419
493
  networkAnomalies?: {
420
- url: string;
421
494
  method: string;
495
+ url: string;
422
496
  issue: string;
423
497
  status?: number | undefined;
424
498
  }[] | undefined;
@@ -430,8 +504,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
430
504
  actual?: unknown;
431
505
  }[] | undefined;
432
506
  timeline?: {
433
- at: number;
434
507
  kind: string;
508
+ at: number;
435
509
  summary: string;
436
510
  }[] | undefined;
437
511
  }>;
@@ -485,6 +559,16 @@ export declare const RunVerdictSchema: z.ZodObject<{
485
559
  readonly PASS: "pass";
486
560
  readonly FAIL: "fail";
487
561
  readonly PARTIAL: "partial";
562
+ /**
563
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
564
+ * to pass and nothing to fail.
565
+ *
566
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
567
+ * successfully are different facts, and flattening them into one word is how a green light comes
568
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
569
+ * tell" has always been its own answer.
570
+ */
571
+ readonly UNKNOWN: "unknown";
488
572
  }>;
489
573
  reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
490
574
  confidence: z.ZodNativeEnum<{
@@ -493,14 +577,34 @@ export declare const RunVerdictSchema: z.ZodObject<{
493
577
  readonly LOW: "low";
494
578
  }>;
495
579
  blockingRisks: z.ZodDefault<z.ZodNumber>;
580
+ /**
581
+ * Which check this verdict is about, so a later one can say it corrects this.
582
+ *
583
+ * Optional because a run's overall verdict is not about one check. A verdict with no check named
584
+ * cannot be cited, and therefore cannot be corrected -- see revision.ts.
585
+ */
586
+ checkId: z.ZodOptional<z.ZodString>;
587
+ /**
588
+ * The verdict this one replaces, written as `<runId>#<checkId>`.
589
+ *
590
+ * Present only on a correction. The verdict it names is NOT edited: it stays exactly as it was
591
+ * given, and this is a second, later answer that cites it. Rewriting the first in place would
592
+ * erase the fact that it was ever given, and "we always knew" is the shape of the problem this
593
+ * whole system exists to prevent.
594
+ */
595
+ supersedes: z.ZodOptional<z.ZodString>;
496
596
  }, "strip", z.ZodTypeAny, {
497
- status: "pass" | "fail" | "partial";
597
+ status: "pass" | "fail" | "unknown" | "partial";
498
598
  reasons: string[];
499
599
  confidence: "low" | "medium" | "high";
500
600
  blockingRisks: number;
601
+ checkId?: string | undefined;
602
+ supersedes?: string | undefined;
501
603
  }, {
502
- status: "pass" | "fail" | "partial";
604
+ status: "pass" | "fail" | "unknown" | "partial";
503
605
  confidence: "low" | "medium" | "high";
606
+ checkId?: string | undefined;
607
+ supersedes?: string | undefined;
504
608
  reasons?: string[] | undefined;
505
609
  blockingRisks?: number | undefined;
506
610
  }>;
@@ -520,12 +624,12 @@ export declare const RunSignatureSchema: z.ZodObject<{
520
624
  signedAt: number;
521
625
  }>;
522
626
  /**
523
- * The top-level verification-run artifact. Stable contract — additive changes only within
524
- * RUN_FILE_VERSION 1; a breaking change bumps the version. Arrays default to empty so a minimal
525
- * run (e.g. a single smoke flow) still validates.
627
+ * The top-level verification-run artifact. Stable contract — additive changes only within a
628
+ * RUN_FILE_VERSION; a breaking change bumps it. Arrays default to empty so a minimal run (e.g. a
629
+ * single smoke flow) still validates. Version 1 files are still read; see the note on the constant.
526
630
  */
527
631
  export declare const ReticleVerificationRunSchema: z.ZodObject<{
528
- schemaVersion: z.ZodLiteral<1>;
632
+ schemaVersion: z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<2>, z.ZodLiteral<1>]>;
529
633
  runId: z.ZodBranded<z.ZodString, "RunId">;
530
634
  createdAt: z.ZodNumber;
531
635
  durationMs: z.ZodNumber;
@@ -570,12 +674,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
570
674
  }>;
571
675
  model: z.ZodOptional<z.ZodString>;
572
676
  }, "strip", z.ZodTypeAny, {
573
- kind: "human" | "coding-agent" | "oem-pipeline";
574
677
  id: string;
678
+ kind: "human" | "coding-agent" | "oem-pipeline";
575
679
  model?: string | undefined;
576
680
  }, {
577
- kind: "human" | "coding-agent" | "oem-pipeline";
578
681
  id: string;
682
+ kind: "human" | "coding-agent" | "oem-pipeline";
579
683
  model?: string | undefined;
580
684
  }>;
581
685
  trigger: z.ZodObject<{
@@ -596,6 +700,54 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
596
700
  note?: string | undefined;
597
701
  diffRef?: string | undefined;
598
702
  }>;
703
+ /**
704
+ * Which round of source edits this evidence belongs to.
705
+ *
706
+ * Evidence gathered before the change under test is true about the OLD code. Reporting it as true
707
+ * about the new code is a false pass, and it is the kind nobody notices because everything looks
708
+ * green. Absent when the run had no way to know.
709
+ */
710
+ editEpoch: z.ZodOptional<z.ZodNumber>;
711
+ /**
712
+ * What was verified, in the protocol's own vocabulary.
713
+ *
714
+ * The artifact recorded the project, the agent, the trigger and the edit round, and never what
715
+ * KIND of thing was on the other end -- so a run against a Tauri desktop app and one against a
716
+ * web page were indistinguishable to every reader of this file. `surface` is the field that
717
+ * separates them, and `instance` is the one that says which document the evidence belongs to,
718
+ * which is the difference between evidence about this page and evidence that survived a
719
+ * navigation.
720
+ *
721
+ * `SubjectRef` is the specification's, imported rather than restated. Optional because a run
722
+ * assembled without a live session -- in CI, from flows alone -- genuinely does not know, and
723
+ * an invented subject is worse than an absent one.
724
+ */
725
+ subject: z.ZodOptional<z.ZodObject<{
726
+ surface: z.ZodUnion<[z.ZodNativeEnum<{
727
+ readonly WEB: "web";
728
+ readonly DESKTOP: "desktop";
729
+ readonly MOBILE: "mobile";
730
+ readonly SERVICE: "service";
731
+ readonly GAME: "game";
732
+ readonly DEVICE: "device";
733
+ }>, z.ZodString]>;
734
+ instance: z.ZodString;
735
+ epoch: z.ZodOptional<z.ZodNumber>;
736
+ locator: z.ZodOptional<z.ZodString>;
737
+ revision: z.ZodOptional<z.ZodString>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ surface: string;
740
+ instance: string;
741
+ epoch?: number | undefined;
742
+ locator?: string | undefined;
743
+ revision?: string | undefined;
744
+ }, {
745
+ surface: string;
746
+ instance: string;
747
+ epoch?: number | undefined;
748
+ locator?: string | undefined;
749
+ revision?: string | undefined;
750
+ }>>;
599
751
  changedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
600
752
  path: z.ZodString;
601
753
  changeKind: z.ZodNativeEnum<{
@@ -651,8 +803,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
651
803
  }, "strip", z.ZodTypeAny, {
652
804
  status: "pass" | "fail" | "healed" | "skipped";
653
805
  name: string;
654
- durationMs: number;
655
806
  steps: number;
807
+ durationMs: number;
656
808
  healed?: {
657
809
  from: string;
658
810
  to: string;
@@ -664,8 +816,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
664
816
  }, {
665
817
  status: "pass" | "fail" | "healed" | "skipped";
666
818
  name: string;
667
- durationMs: number;
668
819
  steps: number;
820
+ durationMs: number;
669
821
  healed?: {
670
822
  from: string;
671
823
  to: string;
@@ -676,30 +828,92 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
676
828
  failureReason?: string | undefined;
677
829
  }>, "many">>;
678
830
  checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
679
- kind: z.ZodNativeEnum<{
680
- readonly SIGNAL: "signal";
681
- readonly NETWORK: "network";
831
+ kind: z.ZodEffects<z.ZodNativeEnum<{
682
832
  readonly ELEMENT: "element";
833
+ readonly TEXT: "text";
834
+ readonly SIGNAL: "signal";
835
+ readonly NET: "net";
683
836
  readonly STATE: "state";
837
+ readonly ROUTE: "route";
684
838
  readonly CONSOLE: "console";
685
- readonly LAYOUT: "layout";
686
- }>;
839
+ readonly ANIMATION: "animation";
840
+ readonly SETTLED: "settled";
841
+ readonly ALL_OF: "allOf";
842
+ readonly ANY_OF: "anyOf";
843
+ readonly NOT: "not";
844
+ }>, "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not", unknown>;
687
845
  predicate: z.ZodString;
688
- status: z.ZodNativeEnum<{
689
- readonly PASS: "pass";
690
- readonly FAIL: "fail";
691
- }>;
846
+ status: z.ZodEffects<z.ZodNativeEnum<{
847
+ readonly YES: "yes";
848
+ readonly NO: "no";
849
+ readonly UNKNOWN: "unknown";
850
+ readonly NO_FAULT: "no-fault";
851
+ }>, "unknown" | "yes" | "no" | "no-fault", unknown>;
692
852
  evidence: z.ZodOptional<z.ZodUnknown>;
853
+ /**
854
+ * Was this claim written down BEFORE the action, or after it?
855
+ *
856
+ * The difference between a check and a rationalisation. Afterwards, anything that happened can be
857
+ * described as what you meant; a claim made in advance can only be met or missed.
858
+ *
859
+ * Optional, and absence is not `false`. `false` says the claim came afterwards. Absent says nobody
860
+ * recorded which, and those are different facts about the evidence.
861
+ */
862
+ declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
863
+ /**
864
+ * What kind of evidence bought this answer.
865
+ *
866
+ * A green paid for with "something matching was on screen" is not the same green as one paid for
867
+ * with "the request went out", and a report that flattens them lets the cheap one pass for the
868
+ * dear one. Free-form because the grades belong to whoever produced the verdict.
869
+ */
870
+ grade: z.ZodOptional<z.ZodString>;
871
+ /**
872
+ * What could not be seen while this was being checked.
873
+ *
874
+ * The property with no prior art: every other test report in existence is silent about its own
875
+ * blind spots. An empty list means nothing was hidden; absence means nobody looked.
876
+ */
877
+ couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
878
+ /**
879
+ * Why the verdict came out this way, in the engine's vocabulary.
880
+ *
881
+ * Carried so a reader -- and the fold that looks for late answers -- can tell an outcome that
882
+ * has not arrived from a capture that could not be read. Both are `unknown`, and only the
883
+ * first is a question that waiting can settle.
884
+ */
885
+ reason: z.ZodOptional<z.ZodString>;
886
+ /** This check's own name, so a later verdict can cite it. See revision.ts. */
887
+ checkId: z.ZodOptional<z.ZodString>;
888
+ /**
889
+ * The earlier check this one corrects, as `<runId>#<checkId>`.
890
+ *
891
+ * Present only on a correction, and the check it names is NOT edited: both stand, so a reader
892
+ * can see that the first answer was given, when it changed, and why.
893
+ */
894
+ supersedes: z.ZodOptional<z.ZodString>;
693
895
  }, "strip", z.ZodTypeAny, {
694
- status: "pass" | "fail";
695
- kind: "signal" | "console" | "element" | "state" | "network" | "layout";
896
+ status: "unknown" | "yes" | "no" | "no-fault";
897
+ kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
696
898
  predicate: string;
899
+ reason?: string | undefined;
697
900
  evidence?: unknown;
901
+ declaredBeforeActing?: boolean | undefined;
902
+ grade?: string | undefined;
903
+ couldNotSee?: string[] | undefined;
904
+ checkId?: string | undefined;
905
+ supersedes?: string | undefined;
698
906
  }, {
699
- status: "pass" | "fail";
700
- kind: "signal" | "console" | "element" | "state" | "network" | "layout";
701
907
  predicate: string;
908
+ status?: unknown;
909
+ kind?: unknown;
910
+ reason?: string | undefined;
702
911
  evidence?: unknown;
912
+ declaredBeforeActing?: boolean | undefined;
913
+ grade?: string | undefined;
914
+ couldNotSee?: string[] | undefined;
915
+ checkId?: string | undefined;
916
+ supersedes?: string | undefined;
703
917
  }>, "many">>;
704
918
  risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
705
919
  surface: z.ZodNativeEnum<{
@@ -774,13 +988,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
774
988
  status: z.ZodOptional<z.ZodNumber>;
775
989
  issue: z.ZodString;
776
990
  }, "strip", z.ZodTypeAny, {
777
- url: string;
778
991
  method: string;
992
+ url: string;
779
993
  issue: string;
780
994
  status?: number | undefined;
781
995
  }, {
782
- url: string;
783
996
  method: string;
997
+ url: string;
784
998
  issue: string;
785
999
  status?: number | undefined;
786
1000
  }>, "many">>;
@@ -808,12 +1022,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
808
1022
  kind: z.ZodString;
809
1023
  summary: z.ZodString;
810
1024
  }, "strip", z.ZodTypeAny, {
811
- at: number;
812
1025
  kind: string;
1026
+ at: number;
813
1027
  summary: string;
814
1028
  }, {
815
- at: number;
816
1029
  kind: string;
1030
+ at: number;
817
1031
  summary: string;
818
1032
  }>, "many">>;
819
1033
  }, "strip", z.ZodTypeAny, {
@@ -823,8 +1037,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
823
1037
  level: string;
824
1038
  }[];
825
1039
  networkAnomalies: {
826
- url: string;
827
1040
  method: string;
1041
+ url: string;
828
1042
  issue: string;
829
1043
  status?: number | undefined;
830
1044
  }[];
@@ -836,8 +1050,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
836
1050
  actual?: unknown;
837
1051
  }[];
838
1052
  timeline: {
839
- at: number;
840
1053
  kind: string;
1054
+ at: number;
841
1055
  summary: string;
842
1056
  }[];
843
1057
  }, {
@@ -847,8 +1061,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
847
1061
  level: string;
848
1062
  }[] | undefined;
849
1063
  networkAnomalies?: {
850
- url: string;
851
1064
  method: string;
1065
+ url: string;
852
1066
  issue: string;
853
1067
  status?: number | undefined;
854
1068
  }[] | undefined;
@@ -860,8 +1074,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
860
1074
  actual?: unknown;
861
1075
  }[] | undefined;
862
1076
  timeline?: {
863
- at: number;
864
1077
  kind: string;
1078
+ at: number;
865
1079
  summary: string;
866
1080
  }[] | undefined;
867
1081
  }>;
@@ -940,6 +1154,16 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
940
1154
  readonly PASS: "pass";
941
1155
  readonly FAIL: "fail";
942
1156
  readonly PARTIAL: "partial";
1157
+ /**
1158
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
1159
+ * to pass and nothing to fail.
1160
+ *
1161
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
1162
+ * successfully are different facts, and flattening them into one word is how a green light comes
1163
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
1164
+ * tell" has always been its own answer.
1165
+ */
1166
+ readonly UNKNOWN: "unknown";
943
1167
  }>;
944
1168
  reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
945
1169
  confidence: z.ZodNativeEnum<{
@@ -948,14 +1172,34 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
948
1172
  readonly LOW: "low";
949
1173
  }>;
950
1174
  blockingRisks: z.ZodDefault<z.ZodNumber>;
1175
+ /**
1176
+ * Which check this verdict is about, so a later one can say it corrects this.
1177
+ *
1178
+ * Optional because a run's overall verdict is not about one check. A verdict with no check named
1179
+ * cannot be cited, and therefore cannot be corrected -- see revision.ts.
1180
+ */
1181
+ checkId: z.ZodOptional<z.ZodString>;
1182
+ /**
1183
+ * The verdict this one replaces, written as `<runId>#<checkId>`.
1184
+ *
1185
+ * Present only on a correction. The verdict it names is NOT edited: it stays exactly as it was
1186
+ * given, and this is a second, later answer that cites it. Rewriting the first in place would
1187
+ * erase the fact that it was ever given, and "we always knew" is the shape of the problem this
1188
+ * whole system exists to prevent.
1189
+ */
1190
+ supersedes: z.ZodOptional<z.ZodString>;
951
1191
  }, "strip", z.ZodTypeAny, {
952
- status: "pass" | "fail" | "partial";
1192
+ status: "pass" | "fail" | "unknown" | "partial";
953
1193
  reasons: string[];
954
1194
  confidence: "low" | "medium" | "high";
955
1195
  blockingRisks: number;
1196
+ checkId?: string | undefined;
1197
+ supersedes?: string | undefined;
956
1198
  }, {
957
- status: "pass" | "fail" | "partial";
1199
+ status: "pass" | "fail" | "unknown" | "partial";
958
1200
  confidence: "low" | "medium" | "high";
1201
+ checkId?: string | undefined;
1202
+ supersedes?: string | undefined;
959
1203
  reasons?: string[] | undefined;
960
1204
  blockingRisks?: number | undefined;
961
1205
  }>;
@@ -976,8 +1220,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
976
1220
  flows: {
977
1221
  status: "pass" | "fail" | "healed" | "skipped";
978
1222
  name: string;
979
- durationMs: number;
980
1223
  steps: number;
1224
+ durationMs: number;
981
1225
  healed?: {
982
1226
  from: string;
983
1227
  to: string;
@@ -987,9 +1231,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
987
1231
  evidenceRef?: string | undefined;
988
1232
  failureReason?: string | undefined;
989
1233
  }[];
1234
+ createdAt: number;
1235
+ runId: string & z.BRAND<"RunId">;
990
1236
  agent: {
991
- kind: "human" | "coding-agent" | "oem-pipeline";
992
1237
  id: string;
1238
+ kind: "human" | "coding-agent" | "oem-pipeline";
993
1239
  model?: string | undefined;
994
1240
  };
995
1241
  project: {
@@ -1000,7 +1246,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1000
1246
  previewUrl?: string | undefined;
1001
1247
  };
1002
1248
  durationMs: number;
1003
- createdAt: number;
1004
1249
  evidence: {
1005
1250
  consoleErrors: {
1006
1251
  message: string;
@@ -1008,8 +1253,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1008
1253
  level: string;
1009
1254
  }[];
1010
1255
  networkAnomalies: {
1011
- url: string;
1012
1256
  method: string;
1257
+ url: string;
1013
1258
  issue: string;
1014
1259
  status?: number | undefined;
1015
1260
  }[];
@@ -1021,13 +1266,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1021
1266
  actual?: unknown;
1022
1267
  }[];
1023
1268
  timeline: {
1024
- at: number;
1025
1269
  kind: string;
1270
+ at: number;
1026
1271
  summary: string;
1027
1272
  }[];
1028
1273
  };
1029
- schemaVersion: 1;
1030
- runId: string & z.BRAND<"RunId">;
1274
+ schemaVersion: 1 | 2 | 3;
1031
1275
  profile: "dev" | "prod-preview";
1032
1276
  trigger: {
1033
1277
  kind: "manual" | "edit" | "ci" | "oem";
@@ -1040,10 +1284,16 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1040
1284
  risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
1041
1285
  }[];
1042
1286
  checks: {
1043
- status: "pass" | "fail";
1044
- kind: "signal" | "console" | "element" | "state" | "network" | "layout";
1287
+ status: "unknown" | "yes" | "no" | "no-fault";
1288
+ kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
1045
1289
  predicate: string;
1290
+ reason?: string | undefined;
1046
1291
  evidence?: unknown;
1292
+ declaredBeforeActing?: boolean | undefined;
1293
+ grade?: string | undefined;
1294
+ couldNotSee?: string[] | undefined;
1295
+ checkId?: string | undefined;
1296
+ supersedes?: string | undefined;
1047
1297
  }[];
1048
1298
  risks: {
1049
1299
  surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
@@ -1057,11 +1307,21 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1057
1307
  } | undefined;
1058
1308
  }[];
1059
1309
  verdict: {
1060
- status: "pass" | "fail" | "partial";
1310
+ status: "pass" | "fail" | "unknown" | "partial";
1061
1311
  reasons: string[];
1062
1312
  confidence: "low" | "medium" | "high";
1063
1313
  blockingRisks: number;
1314
+ checkId?: string | undefined;
1315
+ supersedes?: string | undefined;
1064
1316
  };
1317
+ editEpoch?: number | undefined;
1318
+ subject?: {
1319
+ surface: string;
1320
+ instance: string;
1321
+ epoch?: number | undefined;
1322
+ locator?: string | undefined;
1323
+ revision?: string | undefined;
1324
+ } | undefined;
1065
1325
  repair?: {
1066
1326
  failurePackets: {
1067
1327
  expected: string;
@@ -1082,9 +1342,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1082
1342
  signedAt: number;
1083
1343
  } | undefined;
1084
1344
  }, {
1345
+ createdAt: number;
1346
+ runId: string;
1085
1347
  agent: {
1086
- kind: "human" | "coding-agent" | "oem-pipeline";
1087
1348
  id: string;
1349
+ kind: "human" | "coding-agent" | "oem-pipeline";
1088
1350
  model?: string | undefined;
1089
1351
  };
1090
1352
  project: {
@@ -1095,7 +1357,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1095
1357
  previewUrl?: string | undefined;
1096
1358
  };
1097
1359
  durationMs: number;
1098
- createdAt: number;
1099
1360
  evidence: {
1100
1361
  consoleErrors?: {
1101
1362
  message: string;
@@ -1103,8 +1364,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1103
1364
  level: string;
1104
1365
  }[] | undefined;
1105
1366
  networkAnomalies?: {
1106
- url: string;
1107
1367
  method: string;
1368
+ url: string;
1108
1369
  issue: string;
1109
1370
  status?: number | undefined;
1110
1371
  }[] | undefined;
@@ -1116,13 +1377,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1116
1377
  actual?: unknown;
1117
1378
  }[] | undefined;
1118
1379
  timeline?: {
1119
- at: number;
1120
1380
  kind: string;
1381
+ at: number;
1121
1382
  summary: string;
1122
1383
  }[] | undefined;
1123
1384
  };
1124
- schemaVersion: 1;
1125
- runId: string;
1385
+ schemaVersion: 1 | 2 | 3;
1126
1386
  profile: "dev" | "prod-preview";
1127
1387
  trigger: {
1128
1388
  kind: "manual" | "edit" | "ci" | "oem";
@@ -1130,16 +1390,18 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1130
1390
  diffRef?: string | undefined;
1131
1391
  };
1132
1392
  verdict: {
1133
- status: "pass" | "fail" | "partial";
1393
+ status: "pass" | "fail" | "unknown" | "partial";
1134
1394
  confidence: "low" | "medium" | "high";
1395
+ checkId?: string | undefined;
1396
+ supersedes?: string | undefined;
1135
1397
  reasons?: string[] | undefined;
1136
1398
  blockingRisks?: number | undefined;
1137
1399
  };
1138
1400
  flows?: {
1139
1401
  status: "pass" | "fail" | "healed" | "skipped";
1140
1402
  name: string;
1141
- durationMs: number;
1142
1403
  steps: number;
1404
+ durationMs: number;
1143
1405
  healed?: {
1144
1406
  from: string;
1145
1407
  to: string;
@@ -1149,16 +1411,30 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1149
1411
  evidenceRef?: string | undefined;
1150
1412
  failureReason?: string | undefined;
1151
1413
  }[] | undefined;
1414
+ editEpoch?: number | undefined;
1415
+ subject?: {
1416
+ surface: string;
1417
+ instance: string;
1418
+ epoch?: number | undefined;
1419
+ locator?: string | undefined;
1420
+ revision?: string | undefined;
1421
+ } | undefined;
1152
1422
  changedFiles?: {
1153
1423
  path: string;
1154
1424
  changeKind: "added" | "modified" | "deleted";
1155
1425
  risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
1156
1426
  }[] | undefined;
1157
1427
  checks?: {
1158
- status: "pass" | "fail";
1159
- kind: "signal" | "console" | "element" | "state" | "network" | "layout";
1160
1428
  predicate: string;
1429
+ status?: unknown;
1430
+ kind?: unknown;
1431
+ reason?: string | undefined;
1161
1432
  evidence?: unknown;
1433
+ declaredBeforeActing?: boolean | undefined;
1434
+ grade?: string | undefined;
1435
+ couldNotSee?: string[] | undefined;
1436
+ checkId?: string | undefined;
1437
+ supersedes?: string | undefined;
1162
1438
  }[] | undefined;
1163
1439
  risks?: {
1164
1440
  surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";