@reticlehq/core 3.7.0 → 3.8.1

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 (138) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/drive-script.d.ts +84 -1217
  4. package/dist/artifacts/drive-script.js +1 -1
  5. package/dist/artifacts/flow-constants.d.ts +15 -0
  6. package/dist/artifacts/flow-constants.js +15 -0
  7. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  8. package/dist/artifacts/flow-expect-flat.js +2 -2
  9. package/dist/artifacts/flow-results.d.ts +26 -0
  10. package/dist/artifacts/flow-types.d.ts +212 -2295
  11. package/dist/artifacts/flow-types.js +14 -2
  12. package/dist/artifacts/harness-credits.d.ts +6 -3
  13. package/dist/artifacts/harness-credits.js +9 -6
  14. package/dist/artifacts/harness-map.d.ts +8 -69
  15. package/dist/artifacts/harness-map.js +1 -1
  16. package/dist/artifacts/hud-notices.d.ts +8 -82
  17. package/dist/artifacts/hud-notices.js +1 -1
  18. package/dist/artifacts/impact.d.ts +104 -1665
  19. package/dist/artifacts/impact.js +38 -21
  20. package/dist/artifacts/journal.d.ts +15 -231
  21. package/dist/artifacts/journal.js +15 -2
  22. package/dist/artifacts/prompt-context.d.ts +7 -33
  23. package/dist/artifacts/prompt-context.js +15 -4
  24. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  25. package/dist/artifacts/screenshot-upload.js +1 -1
  26. package/dist/graph/app-graph.d.ts +137 -0
  27. package/dist/graph/app-graph.js +498 -0
  28. package/dist/hooks/hook-events.d.ts +15 -171
  29. package/dist/hooks/hook-events.js +1 -1
  30. package/dist/hud-entry.js +1 -1
  31. package/dist/identity/checkout.d.ts +41 -0
  32. package/dist/identity/checkout.js +118 -0
  33. package/dist/identity/state-dir.d.ts +23 -0
  34. package/dist/identity/state-dir.js +43 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +10 -0
  37. package/dist/onboarding.d.ts +23 -52
  38. package/dist/onboarding.js +20 -1
  39. package/dist/registry/daemon-registry.d.ts +2 -14
  40. package/dist/registry/daemon-registry.js +1 -1
  41. package/dist/registry/dev-server-registry.d.ts +2 -31
  42. package/dist/registry/dev-server-registry.js +1 -1
  43. package/dist/registry/project-registry.d.ts +4 -32
  44. package/dist/registry/project-registry.js +1 -1
  45. package/dist/schema/command-message.json +65 -68
  46. package/dist/schema/command-name.json +29 -33
  47. package/dist/schema/command-result.json +25 -30
  48. package/dist/schema/event-message.json +104 -101
  49. package/dist/schema/event-payloads.json +246 -108
  50. package/dist/schema/event-type.json +47 -48
  51. package/dist/schema/hello-message.json +150 -133
  52. package/dist/schema/reticle-event.json +98 -94
  53. package/dist/schema/reticle-message.json +338 -310
  54. package/dist/telemetry-bug.d.ts +4 -75
  55. package/dist/telemetry-bug.js +1 -1
  56. package/dist/telemetry-entry.d.ts +1 -1
  57. package/dist/telemetry-entry.js +1 -1
  58. package/dist/telemetry-feedback.d.ts +17 -91
  59. package/dist/telemetry-feedback.js +20 -1
  60. package/dist/telemetry-refusal.d.ts +4 -31
  61. package/dist/telemetry-refusal.js +1 -1
  62. package/dist/telemetry-session.d.ts +45 -624
  63. package/dist/telemetry-session.js +25 -12
  64. package/dist/telemetry-signals.d.ts +211 -86
  65. package/dist/telemetry-signals.js +100 -2
  66. package/dist/telemetry.d.ts +321 -1691
  67. package/dist/telemetry.js +72 -6
  68. package/dist/verdict/check-sentence.d.ts +34 -0
  69. package/dist/verdict/check-sentence.js +228 -0
  70. package/dist/verdict/compare-source.d.ts +1 -1
  71. package/dist/verdict/compare-source.js +1 -1
  72. package/dist/verdict/consequence.d.ts +15 -0
  73. package/dist/verdict/consequence.js +11 -0
  74. package/dist/verdict/disparity.d.ts +8 -56
  75. package/dist/verdict/disparity.js +1 -1
  76. package/dist/verdict/findings.d.ts +10 -0
  77. package/dist/verdict/findings.js +13 -0
  78. package/dist/verdict/instrumentation-coverage.d.ts +6 -37
  79. package/dist/verdict/instrumentation-coverage.js +15 -59
  80. package/dist/verdict/instrumentation-gap.d.ts +72 -0
  81. package/dist/verdict/instrumentation-gap.js +64 -0
  82. package/dist/verdict/intent.d.ts +25 -224
  83. package/dist/verdict/intent.js +1 -1
  84. package/dist/verdict/predicate-tree.d.ts +2 -0
  85. package/dist/verdict/predicate-tree.js +16 -0
  86. package/dist/verdict/predicate.d.ts +3 -2
  87. package/dist/verdict/predicate.js +107 -16
  88. package/dist/verdict/property-assertion.d.ts +23 -101
  89. package/dist/verdict/property-assertion.js +1 -1
  90. package/dist/verdict/run-report.d.ts +71 -0
  91. package/dist/verdict/run-report.js +53 -0
  92. package/dist/verdict/security.d.ts +48 -2
  93. package/dist/verdict/security.js +185 -18
  94. package/dist/verdict/verification-run.d.ts +124 -1623
  95. package/dist/verdict/verification-run.js +37 -6
  96. package/dist/verdict/verify-progress.d.ts +22 -64
  97. package/dist/verdict/verify-progress.js +1 -1
  98. package/dist/wire/constants/constants.d.ts +56 -141
  99. package/dist/wire/constants/constants.js +64 -144
  100. package/dist/wire/constants/discovery.d.ts +4 -4
  101. package/dist/wire/constants/discovery.js +4 -4
  102. package/dist/wire/constants/event-types.d.ts +37 -1
  103. package/dist/wire/constants/event-types.js +35 -1
  104. package/dist/wire/constants/hud-controls.js +0 -2
  105. package/dist/wire/constants/hud-use.d.ts +4 -0
  106. package/dist/wire/constants/hud-use.js +4 -0
  107. package/dist/wire/constants/mcp-wire.d.ts +16 -0
  108. package/dist/wire/constants/mcp-wire.js +16 -0
  109. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  110. package/dist/wire/constants/response-body-reason.js +18 -0
  111. package/dist/wire/constants/reticle-env.d.ts +140 -0
  112. package/dist/wire/constants/reticle-env.js +140 -0
  113. package/dist/wire/constants/session-constants.d.ts +11 -0
  114. package/dist/wire/constants/session-constants.js +11 -0
  115. package/dist/wire/event-payloads.d.ts +173 -629
  116. package/dist/wire/event-payloads.js +107 -23
  117. package/dist/wire/event-priority.js +1 -0
  118. package/dist/wire/messages.d.ts +90 -713
  119. package/dist/wire/messages.js +19 -3
  120. package/dist/wire/narrow.d.ts +6 -0
  121. package/dist/wire/narrow.js +26 -0
  122. package/dist/wire/next-step.d.ts +50 -0
  123. package/dist/wire/next-step.js +37 -0
  124. package/dist/wire/platform-link.d.ts +7 -0
  125. package/dist/wire/platform-link.js +14 -8
  126. package/dist/wire/production/activation-ticket.d.ts +64 -0
  127. package/dist/wire/production/activation-ticket.js +148 -0
  128. package/dist/wire/production/hello-mode.d.ts +35 -0
  129. package/dist/wire/production/hello-mode.js +32 -0
  130. package/dist/wire/production/production-policy.d.ts +92 -0
  131. package/dist/wire/production/production-policy.js +133 -0
  132. package/dist/wire/tool-names.d.ts +2 -0
  133. package/dist/wire/tool-names.js +2 -0
  134. package/dist/wire/types.d.ts +102 -700
  135. package/dist/wire/types.js +5 -5
  136. package/dist/words/upgrade.d.ts +3 -13
  137. package/dist/words/upgrade.js +1 -1
  138. package/package.json +7 -4
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import { StepEffect } from './step-effect.js';
3
3
  import { ActionType } from '../wire/constants/constants.js';
4
4
  import { PredicateKind } from '../verdict/consequence.js';
@@ -17,106 +17,37 @@ export * from './flow-results.js';
17
17
  * A semantic anchor: how a step re-finds its element/event at replay
18
18
  * time. Never a volatile eXX ref. testid/role+name bind a DOM element; signal binds an event.
19
19
  */
20
- export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
20
+ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
21
21
  kind: z.ZodLiteral<"testid">;
22
22
  value: z.ZodString;
23
+ of: z.ZodOptional<z.ZodNumber>;
23
24
  source: z.ZodOptional<z.ZodObject<{
24
25
  file: z.ZodString;
25
26
  line: z.ZodNumber;
26
27
  column: z.ZodOptional<z.ZodNumber>;
27
- }, "strip", z.ZodTypeAny, {
28
- file: string;
29
- line: number;
30
- column?: number | undefined;
31
- }, {
32
- file: string;
33
- line: number;
34
- column?: number | undefined;
35
- }>>;
36
- }, "strip", z.ZodTypeAny, {
37
- kind: "testid";
38
- value: string;
39
- source?: {
40
- file: string;
41
- line: number;
42
- column?: number | undefined;
43
- } | undefined;
44
- }, {
45
- kind: "testid";
46
- value: string;
47
- source?: {
48
- file: string;
49
- line: number;
50
- column?: number | undefined;
51
- } | undefined;
52
- }>, z.ZodObject<{
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>, z.ZodObject<{
53
30
  kind: z.ZodLiteral<"role">;
54
31
  role: z.ZodString;
55
32
  name: z.ZodOptional<z.ZodString>;
56
33
  nth: z.ZodOptional<z.ZodNumber>;
57
34
  of: z.ZodOptional<z.ZodNumber>;
58
- }, "strip", z.ZodTypeAny, {
59
- kind: "role";
60
- role: string;
61
- name?: string | undefined;
62
- of?: number | undefined;
63
- nth?: number | undefined;
64
- }, {
65
- kind: "role";
66
- role: string;
67
- name?: string | undefined;
68
- of?: number | undefined;
69
- nth?: number | undefined;
70
- }>, z.ZodObject<{
35
+ }, z.core.$strip>, z.ZodObject<{
71
36
  kind: z.ZodLiteral<"signal">;
72
37
  name: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- kind: "signal";
75
- name: string;
76
- }, {
77
- kind: "signal";
78
- name: string;
79
- }>, z.ZodObject<{
38
+ }, z.core.$strip>, z.ZodObject<{
80
39
  kind: z.ZodLiteral<"component">;
81
40
  component: z.ZodOptional<z.ZodString>;
82
41
  source: z.ZodOptional<z.ZodObject<{
83
42
  file: z.ZodString;
84
43
  line: z.ZodNumber;
85
44
  column: z.ZodOptional<z.ZodNumber>;
86
- }, "strip", z.ZodTypeAny, {
87
- file: string;
88
- line: number;
89
- column?: number | undefined;
90
- }, {
91
- file: string;
92
- line: number;
93
- column?: number | undefined;
94
- }>>;
45
+ }, z.core.$strip>>;
95
46
  role: z.ZodOptional<z.ZodString>;
96
47
  name: z.ZodOptional<z.ZodString>;
97
- }, "strip", z.ZodTypeAny, {
98
- kind: "component";
99
- role?: string | undefined;
100
- component?: string | undefined;
101
- source?: {
102
- file: string;
103
- line: number;
104
- column?: number | undefined;
105
- } | undefined;
106
- name?: string | undefined;
107
- }, {
108
- kind: "component";
109
- role?: string | undefined;
110
- component?: string | undefined;
111
- source?: {
112
- file: string;
113
- line: number;
114
- column?: number | undefined;
115
- } | undefined;
116
- name?: string | undefined;
117
- }>]>;
48
+ }, z.core.$strip>], "kind">;
118
49
  export type FlowAnchor = z.infer<typeof FlowAnchorSchema>;
119
- export declare const FlowPredicateSchema: z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>;
50
+ export declare const FlowPredicateSchema: z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>;
120
51
  /** One step of a flow: an anchored action (+ optional expectation). */
121
52
  export interface FlowStep {
122
53
  /** FlowStepTool.ACT | FlowStepTool.ACT_SEQUENCE (core, shared with ReticleTool). */
@@ -144,6 +75,11 @@ export interface FlowStep {
144
75
  id?: string;
145
76
  /** What this step does to the subject; absent means unknown. See StepEffect. */
146
77
  effect?: StepEffect;
78
+ /**
79
+ * This step sent a write request (POST, PUT, PATCH, DELETE) when it was recorded, so a replay
80
+ * sends it again and changes real data. A certify run skips such a flow unless told otherwise.
81
+ */
82
+ writes?: boolean;
147
83
  action?: ActionType;
148
84
  args?: Record<string, unknown>;
149
85
  expect?: Predicate;
@@ -204,83 +140,20 @@ export declare const FlowStepSchema: z.ZodType<FlowStep>;
204
140
  * file with neither still parses — back-compat is locked by a test).
205
141
  */
206
142
  export declare const FlowFileSchema: z.ZodObject<{
207
- /**
208
- * The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
209
- * lifted rather than refused — see READABLE_FLOW_VERSIONS.
210
- */
211
- version: z.ZodEffects<z.ZodNumber, number, number>;
143
+ version: z.ZodNumber;
212
144
  name: z.ZodString;
213
- /**
214
- * The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
215
- * Optional + back-compat (a flow without it still parses). Set via an `intent` annotation. The
216
- * point of "intent + outcome oracle": a flow that declares an intent should also assert an
217
- * observable business OUTCOME (a consequence success-state), or it claims to verify a goal it
218
- * cannot actually check — flow-classify flags that gap.
219
- */
220
145
  intent: z.ZodOptional<z.ZodString>;
221
- /**
222
- * The intent-ledger row this flow discharges — the id in `.reticle/intent.json`.
223
- *
224
- * `intent` above is the prose a recorder captured; this is the LINK to the ledger that already
225
- * models declared → bound → proved and records which verdict discharged what. Without it there
226
- * would be two ways to say what a change is for, which is the defect this codebase keeps paying
227
- * for: a flow's goal and an intent's statement would drift apart with nothing to reconcile them.
228
- *
229
- * Set at save time from the flow's own prose, or written by hand to point a flow at an intent
230
- * declared earlier via `reticle_intent` — a flow can prove something somebody else declared.
231
- * Optional + back-compat: a flow without it replays exactly as before, and the on-disk version
232
- * stays FLOW_FILE_VERSION 1.
233
- */
146
+ intentDerived: z.ZodOptional<z.ZodBoolean>;
234
147
  intentId: z.ZodOptional<z.ZodString>;
235
- /**
236
- * The project the flow was recorded against (the connecting session's HELLO `projectId`), stamped at
237
- * save time. Scopes a flow to its app so a shared daemon's HUD lists only the current project's flows
238
- * instead of every project that ever saved to that daemon. Optional + back-compat: a flow with no
239
- * projectId is treated as global (visible everywhere), so pre-existing files parse and still show.
240
- */
241
148
  projectId: z.ZodOptional<z.ZodString>;
242
- /**
243
- * The route (pathname) the journey started on, captured at record time. Replay navigates here
244
- * before step 1 so a flow whose first anchor lives on another page doesn't drift on step 1 ("a
245
- * step no longer matches") just because replay began on the wrong page. Optional + back-compat: a
246
- * flow without it (or recorded before this shipped) replays from the current page as before, and
247
- * the on-disk version stays FLOW_FILE_VERSION 1.
248
- */
249
149
  startPath: z.ZodOptional<z.ZodString>;
250
- /**
251
- * The saved flow this one was generated from, with different parameters (a fixture's customer,
252
- * a seeded id). A suite that writes runtime copies of a template and deletes them after replay
253
- * proved the template, and a strict pass of a copy counts toward it in the gate (#1321).
254
- */
255
150
  template: z.ZodOptional<z.ZodString>;
256
151
  fixture: z.ZodOptional<z.ZodString>;
257
- /**
258
- * What must already be true for this flow to mean anything, and what it leaves true.
259
- *
260
- * These are the two halves of composition. Replaying flows back to back only works when the state
261
- * one leaves is the state the next expects, and nothing said so — so a suite either got lucky or
262
- * produced a failure that looked like a regression and was a missing precondition. `requires` lets
263
- * a replay report THAT instead: not met is `unknown` (nothing ran, nothing proved), never a
264
- * failure, which is the same honesty rule an uncovered change already follows.
265
- *
266
- * `ensures` is the other side, and is what makes A-then-B checkable before either runs.
267
- *
268
- * Both optional and both absent from every flow recorded before this shipped, where absent means
269
- * what it has always meant: replay from wherever the app already is, and let the steps speak.
270
- * Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
271
- * somebody else's flow was responsible for.
272
- */
273
- requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
152
+ requires: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
274
153
  route: z.ZodOptional<z.ZodObject<{
275
154
  pathname: z.ZodOptional<z.ZodString>;
276
155
  contains: z.ZodOptional<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
278
- contains?: string | undefined;
279
- pathname?: string | undefined;
280
- }, {
281
- contains?: string | undefined;
282
- pathname?: string | undefined;
283
- }>>;
156
+ }, z.core.$strip>>;
284
157
  signal: z.ZodOptional<z.ZodString>;
285
158
  signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
286
159
  signalCount: z.ZodOptional<z.ZodNumber>;
@@ -289,143 +162,29 @@ export declare const FlowFileSchema: z.ZodObject<{
289
162
  urlContains: z.ZodOptional<z.ZodString>;
290
163
  status: z.ZodOptional<z.ZodNumber>;
291
164
  count: z.ZodOptional<z.ZodNumber>;
292
- }, "strict", z.ZodTypeAny, {
293
- status?: number | undefined;
294
- method?: string | undefined;
295
- urlContains?: string | undefined;
296
- count?: number | undefined;
297
- }, {
298
- status?: number | undefined;
299
- method?: string | undefined;
300
- urlContains?: string | undefined;
301
- count?: number | undefined;
302
- }>>;
165
+ }, z.core.$strict>>;
303
166
  console: z.ZodOptional<z.ZodObject<{
304
167
  level: z.ZodOptional<z.ZodString>;
305
168
  absent: z.ZodOptional<z.ZodBoolean>;
306
- }, "strict", z.ZodTypeAny, {
307
- level?: string | undefined;
308
- absent?: boolean | undefined;
309
- }, {
310
- level?: string | undefined;
311
- absent?: boolean | undefined;
312
- }>>;
169
+ }, z.core.$strict>>;
313
170
  element: z.ZodOptional<z.ZodObject<{
314
171
  testid: z.ZodOptional<z.ZodString>;
315
172
  role: z.ZodOptional<z.ZodString>;
316
173
  name: z.ZodOptional<z.ZodString>;
317
- }, "strict", z.ZodTypeAny, {
318
- testid?: string | undefined;
319
- role?: string | undefined;
320
- name?: string | undefined;
321
- }, {
322
- testid?: string | undefined;
323
- role?: string | undefined;
324
- name?: string | undefined;
325
- }>>;
174
+ }, z.core.$strict>>;
326
175
  text: z.ZodOptional<z.ZodObject<{
327
176
  contains: z.ZodString;
328
177
  scope: z.ZodOptional<z.ZodString>;
329
178
  absent: z.ZodOptional<z.ZodBoolean>;
330
179
  visible: z.ZodOptional<z.ZodBoolean>;
331
- }, "strict", z.ZodTypeAny, {
332
- contains: string;
333
- visible?: boolean | undefined;
334
- scope?: string | undefined;
335
- absent?: boolean | undefined;
336
- }, {
337
- contains: string;
338
- visible?: boolean | undefined;
339
- scope?: string | undefined;
340
- absent?: boolean | undefined;
341
- }>>;
180
+ }, z.core.$strict>>;
342
181
  state: z.ZodOptional<z.ZodObject<{
343
182
  store: z.ZodOptional<z.ZodString>;
344
183
  path: z.ZodString;
345
184
  equals: z.ZodOptional<z.ZodUnknown>;
346
185
  hold: z.ZodOptional<z.ZodBoolean>;
347
- }, "strict", z.ZodTypeAny, {
348
- path: string;
349
- hold?: boolean | undefined;
350
- store?: string | undefined;
351
- equals?: unknown;
352
- }, {
353
- path: string;
354
- hold?: boolean | undefined;
355
- store?: string | undefined;
356
- equals?: unknown;
357
- }>>;
358
- }, "strict", z.ZodTypeAny, {
359
- signal?: string | undefined;
360
- net?: {
361
- status?: number | undefined;
362
- method?: string | undefined;
363
- urlContains?: string | undefined;
364
- count?: number | undefined;
365
- } | undefined;
366
- state?: {
367
- path: string;
368
- hold?: boolean | undefined;
369
- store?: string | undefined;
370
- equals?: unknown;
371
- } | undefined;
372
- element?: {
373
- testid?: string | undefined;
374
- role?: string | undefined;
375
- name?: string | undefined;
376
- } | undefined;
377
- text?: {
378
- contains: string;
379
- visible?: boolean | undefined;
380
- scope?: string | undefined;
381
- absent?: boolean | undefined;
382
- } | undefined;
383
- route?: {
384
- contains?: string | undefined;
385
- pathname?: string | undefined;
386
- } | undefined;
387
- console?: {
388
- level?: string | undefined;
389
- absent?: boolean | undefined;
390
- } | undefined;
391
- signalData?: Record<string, unknown> | undefined;
392
- signalCount?: number | undefined;
393
- }, {
394
- signal?: string | undefined;
395
- net?: {
396
- status?: number | undefined;
397
- method?: string | undefined;
398
- urlContains?: string | undefined;
399
- count?: number | undefined;
400
- } | undefined;
401
- state?: {
402
- path: string;
403
- hold?: boolean | undefined;
404
- store?: string | undefined;
405
- equals?: unknown;
406
- } | undefined;
407
- element?: {
408
- testid?: string | undefined;
409
- role?: string | undefined;
410
- name?: string | undefined;
411
- } | undefined;
412
- text?: {
413
- contains: string;
414
- visible?: boolean | undefined;
415
- scope?: string | undefined;
416
- absent?: boolean | undefined;
417
- } | undefined;
418
- route?: {
419
- contains?: string | undefined;
420
- pathname?: string | undefined;
421
- } | undefined;
422
- console?: {
423
- level?: string | undefined;
424
- absent?: boolean | undefined;
425
- } | undefined;
426
- signalData?: Record<string, unknown> | undefined;
427
- signalCount?: number | undefined;
428
- }>, {
186
+ }, z.core.$strict>>;
187
+ }, z.core.$strict>, z.ZodTransform<{
429
188
  kind: typeof PredicateKind.ELEMENT;
430
189
  query: import("../index.js").ElementQuery;
431
190
  state?: import("../wire/constants/constants.js").ElementState;
@@ -484,6 +243,7 @@ export declare const FlowFileSchema: z.ZodObject<{
484
243
  } | {
485
244
  kind: typeof PredicateKind.SETTLED;
486
245
  quietMs?: number;
246
+ channel?: import("../verdict/consequence.js").SettledChannel;
487
247
  } | {
488
248
  kind: typeof PredicateKind.COMPARE;
489
249
  left: import("../verdict/compare-source.js").CompareSource;
@@ -500,53 +260,22 @@ export declare const FlowFileSchema: z.ZodObject<{
500
260
  kind: typeof PredicateKind.NOT;
501
261
  predicate: Predicate;
502
262
  } | undefined, {
503
- signal?: string | undefined;
504
- net?: {
505
- status?: number | undefined;
506
- method?: string | undefined;
507
- urlContains?: string | undefined;
508
- count?: number | undefined;
509
- } | undefined;
510
- state?: {
511
- path: string;
512
- hold?: boolean | undefined;
513
- store?: string | undefined;
514
- equals?: unknown;
515
- } | undefined;
516
- element?: {
517
- testid?: string | undefined;
518
- role?: string | undefined;
519
- name?: string | undefined;
520
- } | undefined;
521
- text?: {
522
- contains: string;
523
- visible?: boolean | undefined;
524
- scope?: string | undefined;
525
- absent?: boolean | undefined;
526
- } | undefined;
527
263
  route?: {
528
- contains?: string | undefined;
529
264
  pathname?: string | undefined;
265
+ contains?: string | undefined;
530
266
  } | undefined;
531
- console?: {
532
- level?: string | undefined;
533
- absent?: boolean | undefined;
534
- } | undefined;
267
+ signal?: string | undefined;
535
268
  signalData?: Record<string, unknown> | undefined;
536
269
  signalCount?: number | undefined;
537
- }>]>, "many">, Predicate[], (Predicate | {
538
- signal?: string | undefined;
539
270
  net?: {
540
- status?: number | undefined;
541
271
  method?: string | undefined;
542
272
  urlContains?: string | undefined;
273
+ status?: number | undefined;
543
274
  count?: number | undefined;
544
275
  } | undefined;
545
- state?: {
546
- path: string;
547
- hold?: boolean | undefined;
548
- store?: string | undefined;
549
- equals?: unknown;
276
+ console?: {
277
+ level?: string | undefined;
278
+ absent?: boolean | undefined;
550
279
  } | undefined;
551
280
  element?: {
552
281
  testid?: string | undefined;
@@ -555,32 +284,22 @@ export declare const FlowFileSchema: z.ZodObject<{
555
284
  } | undefined;
556
285
  text?: {
557
286
  contains: string;
558
- visible?: boolean | undefined;
559
287
  scope?: string | undefined;
560
288
  absent?: boolean | undefined;
289
+ visible?: boolean | undefined;
561
290
  } | undefined;
562
- route?: {
563
- contains?: string | undefined;
564
- pathname?: string | undefined;
565
- } | undefined;
566
- console?: {
567
- level?: string | undefined;
568
- absent?: boolean | undefined;
291
+ state?: {
292
+ path: string;
293
+ store?: string | undefined;
294
+ equals?: unknown;
295
+ hold?: boolean | undefined;
569
296
  } | undefined;
570
- signalData?: Record<string, unknown> | undefined;
571
- signalCount?: number | undefined;
572
- })[]>>;
573
- ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
297
+ }>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
298
+ ensures: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
574
299
  route: z.ZodOptional<z.ZodObject<{
575
300
  pathname: z.ZodOptional<z.ZodString>;
576
301
  contains: z.ZodOptional<z.ZodString>;
577
- }, "strip", z.ZodTypeAny, {
578
- contains?: string | undefined;
579
- pathname?: string | undefined;
580
- }, {
581
- contains?: string | undefined;
582
- pathname?: string | undefined;
583
- }>>;
302
+ }, z.core.$strip>>;
584
303
  signal: z.ZodOptional<z.ZodString>;
585
304
  signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
586
305
  signalCount: z.ZodOptional<z.ZodNumber>;
@@ -589,143 +308,29 @@ export declare const FlowFileSchema: z.ZodObject<{
589
308
  urlContains: z.ZodOptional<z.ZodString>;
590
309
  status: z.ZodOptional<z.ZodNumber>;
591
310
  count: z.ZodOptional<z.ZodNumber>;
592
- }, "strict", z.ZodTypeAny, {
593
- status?: number | undefined;
594
- method?: string | undefined;
595
- urlContains?: string | undefined;
596
- count?: number | undefined;
597
- }, {
598
- status?: number | undefined;
599
- method?: string | undefined;
600
- urlContains?: string | undefined;
601
- count?: number | undefined;
602
- }>>;
311
+ }, z.core.$strict>>;
603
312
  console: z.ZodOptional<z.ZodObject<{
604
313
  level: z.ZodOptional<z.ZodString>;
605
314
  absent: z.ZodOptional<z.ZodBoolean>;
606
- }, "strict", z.ZodTypeAny, {
607
- level?: string | undefined;
608
- absent?: boolean | undefined;
609
- }, {
610
- level?: string | undefined;
611
- absent?: boolean | undefined;
612
- }>>;
315
+ }, z.core.$strict>>;
613
316
  element: z.ZodOptional<z.ZodObject<{
614
317
  testid: z.ZodOptional<z.ZodString>;
615
318
  role: z.ZodOptional<z.ZodString>;
616
319
  name: z.ZodOptional<z.ZodString>;
617
- }, "strict", z.ZodTypeAny, {
618
- testid?: string | undefined;
619
- role?: string | undefined;
620
- name?: string | undefined;
621
- }, {
622
- testid?: string | undefined;
623
- role?: string | undefined;
624
- name?: string | undefined;
625
- }>>;
320
+ }, z.core.$strict>>;
626
321
  text: z.ZodOptional<z.ZodObject<{
627
322
  contains: z.ZodString;
628
323
  scope: z.ZodOptional<z.ZodString>;
629
324
  absent: z.ZodOptional<z.ZodBoolean>;
630
325
  visible: z.ZodOptional<z.ZodBoolean>;
631
- }, "strict", z.ZodTypeAny, {
632
- contains: string;
633
- visible?: boolean | undefined;
634
- scope?: string | undefined;
635
- absent?: boolean | undefined;
636
- }, {
637
- contains: string;
638
- visible?: boolean | undefined;
639
- scope?: string | undefined;
640
- absent?: boolean | undefined;
641
- }>>;
326
+ }, z.core.$strict>>;
642
327
  state: z.ZodOptional<z.ZodObject<{
643
328
  store: z.ZodOptional<z.ZodString>;
644
329
  path: z.ZodString;
645
330
  equals: z.ZodOptional<z.ZodUnknown>;
646
331
  hold: z.ZodOptional<z.ZodBoolean>;
647
- }, "strict", z.ZodTypeAny, {
648
- path: string;
649
- hold?: boolean | undefined;
650
- store?: string | undefined;
651
- equals?: unknown;
652
- }, {
653
- path: string;
654
- hold?: boolean | undefined;
655
- store?: string | undefined;
656
- equals?: unknown;
657
- }>>;
658
- }, "strict", z.ZodTypeAny, {
659
- signal?: string | undefined;
660
- net?: {
661
- status?: number | undefined;
662
- method?: string | undefined;
663
- urlContains?: string | undefined;
664
- count?: number | undefined;
665
- } | undefined;
666
- state?: {
667
- path: string;
668
- hold?: boolean | undefined;
669
- store?: string | undefined;
670
- equals?: unknown;
671
- } | undefined;
672
- element?: {
673
- testid?: string | undefined;
674
- role?: string | undefined;
675
- name?: string | undefined;
676
- } | undefined;
677
- text?: {
678
- contains: string;
679
- visible?: boolean | undefined;
680
- scope?: string | undefined;
681
- absent?: boolean | undefined;
682
- } | undefined;
683
- route?: {
684
- contains?: string | undefined;
685
- pathname?: string | undefined;
686
- } | undefined;
687
- console?: {
688
- level?: string | undefined;
689
- absent?: boolean | undefined;
690
- } | undefined;
691
- signalData?: Record<string, unknown> | undefined;
692
- signalCount?: number | undefined;
693
- }, {
694
- signal?: string | undefined;
695
- net?: {
696
- status?: number | undefined;
697
- method?: string | undefined;
698
- urlContains?: string | undefined;
699
- count?: number | undefined;
700
- } | undefined;
701
- state?: {
702
- path: string;
703
- hold?: boolean | undefined;
704
- store?: string | undefined;
705
- equals?: unknown;
706
- } | undefined;
707
- element?: {
708
- testid?: string | undefined;
709
- role?: string | undefined;
710
- name?: string | undefined;
711
- } | undefined;
712
- text?: {
713
- contains: string;
714
- visible?: boolean | undefined;
715
- scope?: string | undefined;
716
- absent?: boolean | undefined;
717
- } | undefined;
718
- route?: {
719
- contains?: string | undefined;
720
- pathname?: string | undefined;
721
- } | undefined;
722
- console?: {
723
- level?: string | undefined;
724
- absent?: boolean | undefined;
725
- } | undefined;
726
- signalData?: Record<string, unknown> | undefined;
727
- signalCount?: number | undefined;
728
- }>, {
332
+ }, z.core.$strict>>;
333
+ }, z.core.$strict>, z.ZodTransform<{
729
334
  kind: typeof PredicateKind.ELEMENT;
730
335
  query: import("../index.js").ElementQuery;
731
336
  state?: import("../wire/constants/constants.js").ElementState;
@@ -784,6 +389,7 @@ export declare const FlowFileSchema: z.ZodObject<{
784
389
  } | {
785
390
  kind: typeof PredicateKind.SETTLED;
786
391
  quietMs?: number;
392
+ channel?: import("../verdict/consequence.js").SettledChannel;
787
393
  } | {
788
394
  kind: typeof PredicateKind.COMPARE;
789
395
  left: import("../verdict/compare-source.js").CompareSource;
@@ -800,53 +406,22 @@ export declare const FlowFileSchema: z.ZodObject<{
800
406
  kind: typeof PredicateKind.NOT;
801
407
  predicate: Predicate;
802
408
  } | undefined, {
803
- signal?: string | undefined;
804
- net?: {
805
- status?: number | undefined;
806
- method?: string | undefined;
807
- urlContains?: string | undefined;
808
- count?: number | undefined;
809
- } | undefined;
810
- state?: {
811
- path: string;
812
- hold?: boolean | undefined;
813
- store?: string | undefined;
814
- equals?: unknown;
815
- } | undefined;
816
- element?: {
817
- testid?: string | undefined;
818
- role?: string | undefined;
819
- name?: string | undefined;
820
- } | undefined;
821
- text?: {
822
- contains: string;
823
- visible?: boolean | undefined;
824
- scope?: string | undefined;
825
- absent?: boolean | undefined;
826
- } | undefined;
827
409
  route?: {
828
- contains?: string | undefined;
829
410
  pathname?: string | undefined;
411
+ contains?: string | undefined;
830
412
  } | undefined;
831
- console?: {
832
- level?: string | undefined;
833
- absent?: boolean | undefined;
834
- } | undefined;
413
+ signal?: string | undefined;
835
414
  signalData?: Record<string, unknown> | undefined;
836
415
  signalCount?: number | undefined;
837
- }>]>, "many">, Predicate[], (Predicate | {
838
- signal?: string | undefined;
839
416
  net?: {
840
- status?: number | undefined;
841
417
  method?: string | undefined;
842
418
  urlContains?: string | undefined;
419
+ status?: number | undefined;
843
420
  count?: number | undefined;
844
421
  } | undefined;
845
- state?: {
846
- path: string;
847
- hold?: boolean | undefined;
848
- store?: string | undefined;
849
- equals?: unknown;
422
+ console?: {
423
+ level?: string | undefined;
424
+ absent?: boolean | undefined;
850
425
  } | undefined;
851
426
  element?: {
852
427
  testid?: string | undefined;
@@ -855,59 +430,29 @@ export declare const FlowFileSchema: z.ZodObject<{
855
430
  } | undefined;
856
431
  text?: {
857
432
  contains: string;
858
- visible?: boolean | undefined;
859
433
  scope?: string | undefined;
860
434
  absent?: boolean | undefined;
435
+ visible?: boolean | undefined;
861
436
  } | undefined;
862
- route?: {
863
- contains?: string | undefined;
864
- pathname?: string | undefined;
865
- } | undefined;
866
- console?: {
867
- level?: string | undefined;
868
- absent?: boolean | undefined;
437
+ state?: {
438
+ path: string;
439
+ store?: string | undefined;
440
+ equals?: unknown;
441
+ hold?: boolean | undefined;
869
442
  } | undefined;
870
- signalData?: Record<string, unknown> | undefined;
871
- signalCount?: number | undefined;
872
- })[]>>;
873
- /**
874
- * Who made this flow, stamped at save: the agent that drove it (its MCP client name) and the
875
- * person signed in to the cloud key on that machine. Either is absent when it was not known —
876
- * never guessed.
877
- */
443
+ }>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
878
444
  author: z.ZodOptional<z.ZodObject<{
879
445
  agent: z.ZodOptional<z.ZodString>;
880
446
  person: z.ZodOptional<z.ZodString>;
881
- }, "strip", z.ZodTypeAny, {
882
- agent?: string | undefined;
883
- person?: string | undefined;
884
- }, {
885
- agent?: string | undefined;
886
- person?: string | undefined;
887
- }>>;
888
- /** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
447
+ }, z.core.$strip>>;
889
448
  createdAt: z.ZodNumber;
890
- steps: z.ZodArray<z.ZodType<FlowStep, z.ZodTypeDef, FlowStep>, "many">;
891
- /**
892
- * How long every step of this flow waits for its declared consequence, in ms. A step's own
893
- * `timeoutMs` wins over it; absent both, FLOW_SIGNAL_TIMEOUT_MS applies.
894
- *
895
- * Flow-level because slowness is usually a property of the APP, not of one control — a remote
896
- * database, a model-backed endpoint, a cold container. Optional + back-compat: a flow without it
897
- * replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
898
- */
449
+ steps: z.ZodArray<z.ZodType<FlowStep, unknown, z.core.$ZodTypeInternals<FlowStep, unknown>>>;
899
450
  signalTimeoutMs: z.ZodOptional<z.ZodNumber>;
900
- success: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
451
+ success: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
901
452
  route: z.ZodOptional<z.ZodObject<{
902
453
  pathname: z.ZodOptional<z.ZodString>;
903
454
  contains: z.ZodOptional<z.ZodString>;
904
- }, "strip", z.ZodTypeAny, {
905
- contains?: string | undefined;
906
- pathname?: string | undefined;
907
- }, {
908
- contains?: string | undefined;
909
- pathname?: string | undefined;
910
- }>>;
455
+ }, z.core.$strip>>;
911
456
  signal: z.ZodOptional<z.ZodString>;
912
457
  signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
913
458
  signalCount: z.ZodOptional<z.ZodNumber>;
@@ -916,143 +461,29 @@ export declare const FlowFileSchema: z.ZodObject<{
916
461
  urlContains: z.ZodOptional<z.ZodString>;
917
462
  status: z.ZodOptional<z.ZodNumber>;
918
463
  count: z.ZodOptional<z.ZodNumber>;
919
- }, "strict", z.ZodTypeAny, {
920
- status?: number | undefined;
921
- method?: string | undefined;
922
- urlContains?: string | undefined;
923
- count?: number | undefined;
924
- }, {
925
- status?: number | undefined;
926
- method?: string | undefined;
927
- urlContains?: string | undefined;
928
- count?: number | undefined;
929
- }>>;
464
+ }, z.core.$strict>>;
930
465
  console: z.ZodOptional<z.ZodObject<{
931
466
  level: z.ZodOptional<z.ZodString>;
932
467
  absent: z.ZodOptional<z.ZodBoolean>;
933
- }, "strict", z.ZodTypeAny, {
934
- level?: string | undefined;
935
- absent?: boolean | undefined;
936
- }, {
937
- level?: string | undefined;
938
- absent?: boolean | undefined;
939
- }>>;
468
+ }, z.core.$strict>>;
940
469
  element: z.ZodOptional<z.ZodObject<{
941
470
  testid: z.ZodOptional<z.ZodString>;
942
471
  role: z.ZodOptional<z.ZodString>;
943
472
  name: z.ZodOptional<z.ZodString>;
944
- }, "strict", z.ZodTypeAny, {
945
- testid?: string | undefined;
946
- role?: string | undefined;
947
- name?: string | undefined;
948
- }, {
949
- testid?: string | undefined;
950
- role?: string | undefined;
951
- name?: string | undefined;
952
- }>>;
473
+ }, z.core.$strict>>;
953
474
  text: z.ZodOptional<z.ZodObject<{
954
475
  contains: z.ZodString;
955
476
  scope: z.ZodOptional<z.ZodString>;
956
477
  absent: z.ZodOptional<z.ZodBoolean>;
957
478
  visible: z.ZodOptional<z.ZodBoolean>;
958
- }, "strict", z.ZodTypeAny, {
959
- contains: string;
960
- visible?: boolean | undefined;
961
- scope?: string | undefined;
962
- absent?: boolean | undefined;
963
- }, {
964
- contains: string;
965
- visible?: boolean | undefined;
966
- scope?: string | undefined;
967
- absent?: boolean | undefined;
968
- }>>;
479
+ }, z.core.$strict>>;
969
480
  state: z.ZodOptional<z.ZodObject<{
970
481
  store: z.ZodOptional<z.ZodString>;
971
482
  path: z.ZodString;
972
483
  equals: z.ZodOptional<z.ZodUnknown>;
973
484
  hold: z.ZodOptional<z.ZodBoolean>;
974
- }, "strict", z.ZodTypeAny, {
975
- path: string;
976
- hold?: boolean | undefined;
977
- store?: string | undefined;
978
- equals?: unknown;
979
- }, {
980
- path: string;
981
- hold?: boolean | undefined;
982
- store?: string | undefined;
983
- equals?: unknown;
984
- }>>;
985
- }, "strict", z.ZodTypeAny, {
986
- signal?: string | undefined;
987
- net?: {
988
- status?: number | undefined;
989
- method?: string | undefined;
990
- urlContains?: string | undefined;
991
- count?: number | undefined;
992
- } | undefined;
993
- state?: {
994
- path: string;
995
- hold?: boolean | undefined;
996
- store?: string | undefined;
997
- equals?: unknown;
998
- } | undefined;
999
- element?: {
1000
- testid?: string | undefined;
1001
- role?: string | undefined;
1002
- name?: string | undefined;
1003
- } | undefined;
1004
- text?: {
1005
- contains: string;
1006
- visible?: boolean | undefined;
1007
- scope?: string | undefined;
1008
- absent?: boolean | undefined;
1009
- } | undefined;
1010
- route?: {
1011
- contains?: string | undefined;
1012
- pathname?: string | undefined;
1013
- } | undefined;
1014
- console?: {
1015
- level?: string | undefined;
1016
- absent?: boolean | undefined;
1017
- } | undefined;
1018
- signalData?: Record<string, unknown> | undefined;
1019
- signalCount?: number | undefined;
1020
- }, {
1021
- signal?: string | undefined;
1022
- net?: {
1023
- status?: number | undefined;
1024
- method?: string | undefined;
1025
- urlContains?: string | undefined;
1026
- count?: number | undefined;
1027
- } | undefined;
1028
- state?: {
1029
- path: string;
1030
- hold?: boolean | undefined;
1031
- store?: string | undefined;
1032
- equals?: unknown;
1033
- } | undefined;
1034
- element?: {
1035
- testid?: string | undefined;
1036
- role?: string | undefined;
1037
- name?: string | undefined;
1038
- } | undefined;
1039
- text?: {
1040
- contains: string;
1041
- visible?: boolean | undefined;
1042
- scope?: string | undefined;
1043
- absent?: boolean | undefined;
1044
- } | undefined;
1045
- route?: {
1046
- contains?: string | undefined;
1047
- pathname?: string | undefined;
1048
- } | undefined;
1049
- console?: {
1050
- level?: string | undefined;
1051
- absent?: boolean | undefined;
1052
- } | undefined;
1053
- signalData?: Record<string, unknown> | undefined;
1054
- signalCount?: number | undefined;
1055
- }>, {
485
+ }, z.core.$strict>>;
486
+ }, z.core.$strict>, z.ZodTransform<{
1056
487
  kind: typeof PredicateKind.ELEMENT;
1057
488
  query: import("../index.js").ElementQuery;
1058
489
  state?: import("../wire/constants/constants.js").ElementState;
@@ -1111,6 +542,7 @@ export declare const FlowFileSchema: z.ZodObject<{
1111
542
  } | {
1112
543
  kind: typeof PredicateKind.SETTLED;
1113
544
  quietMs?: number;
545
+ channel?: import("../verdict/consequence.js").SettledChannel;
1114
546
  } | {
1115
547
  kind: typeof PredicateKind.COMPARE;
1116
548
  left: import("../verdict/compare-source.js").CompareSource;
@@ -1127,18 +559,22 @@ export declare const FlowFileSchema: z.ZodObject<{
1127
559
  kind: typeof PredicateKind.NOT;
1128
560
  predicate: Predicate;
1129
561
  } | undefined, {
562
+ route?: {
563
+ pathname?: string | undefined;
564
+ contains?: string | undefined;
565
+ } | undefined;
1130
566
  signal?: string | undefined;
567
+ signalData?: Record<string, unknown> | undefined;
568
+ signalCount?: number | undefined;
1131
569
  net?: {
1132
- status?: number | undefined;
1133
570
  method?: string | undefined;
1134
571
  urlContains?: string | undefined;
572
+ status?: number | undefined;
1135
573
  count?: number | undefined;
1136
574
  } | undefined;
1137
- state?: {
1138
- path: string;
1139
- hold?: boolean | undefined;
1140
- store?: string | undefined;
1141
- equals?: unknown;
575
+ console?: {
576
+ level?: string | undefined;
577
+ absent?: boolean | undefined;
1142
578
  } | undefined;
1143
579
  element?: {
1144
580
  testid?: string | undefined;
@@ -1147,461 +583,74 @@ export declare const FlowFileSchema: z.ZodObject<{
1147
583
  } | undefined;
1148
584
  text?: {
1149
585
  contains: string;
1150
- visible?: boolean | undefined;
1151
586
  scope?: string | undefined;
1152
587
  absent?: boolean | undefined;
588
+ visible?: boolean | undefined;
1153
589
  } | undefined;
1154
- route?: {
1155
- contains?: string | undefined;
1156
- pathname?: string | undefined;
1157
- } | undefined;
1158
- console?: {
1159
- level?: string | undefined;
1160
- absent?: boolean | undefined;
590
+ state?: {
591
+ path: string;
592
+ store?: string | undefined;
593
+ equals?: unknown;
594
+ hold?: boolean | undefined;
1161
595
  } | undefined;
1162
- signalData?: Record<string, unknown> | undefined;
1163
- signalCount?: number | undefined;
1164
- }>]>>;
1165
- /**
1166
- * Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
1167
- * presence, not words. Compiled from a `mark-dynamic` annotation.
1168
- */
1169
- dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
596
+ }>>]>>;
597
+ dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1170
598
  kind: z.ZodLiteral<"testid">;
1171
599
  value: z.ZodString;
600
+ of: z.ZodOptional<z.ZodNumber>;
1172
601
  source: z.ZodOptional<z.ZodObject<{
1173
602
  file: z.ZodString;
1174
603
  line: z.ZodNumber;
1175
604
  column: z.ZodOptional<z.ZodNumber>;
1176
- }, "strip", z.ZodTypeAny, {
1177
- file: string;
1178
- line: number;
1179
- column?: number | undefined;
1180
- }, {
1181
- file: string;
1182
- line: number;
1183
- column?: number | undefined;
1184
- }>>;
1185
- }, "strip", z.ZodTypeAny, {
1186
- kind: "testid";
1187
- value: string;
1188
- source?: {
1189
- file: string;
1190
- line: number;
1191
- column?: number | undefined;
1192
- } | undefined;
1193
- }, {
1194
- kind: "testid";
1195
- value: string;
1196
- source?: {
1197
- file: string;
1198
- line: number;
1199
- column?: number | undefined;
1200
- } | undefined;
1201
- }>, z.ZodObject<{
605
+ }, z.core.$strip>>;
606
+ }, z.core.$strip>, z.ZodObject<{
1202
607
  kind: z.ZodLiteral<"role">;
1203
608
  role: z.ZodString;
1204
609
  name: z.ZodOptional<z.ZodString>;
1205
610
  nth: z.ZodOptional<z.ZodNumber>;
1206
611
  of: z.ZodOptional<z.ZodNumber>;
1207
- }, "strip", z.ZodTypeAny, {
1208
- kind: "role";
1209
- role: string;
1210
- name?: string | undefined;
1211
- of?: number | undefined;
1212
- nth?: number | undefined;
1213
- }, {
1214
- kind: "role";
1215
- role: string;
1216
- name?: string | undefined;
1217
- of?: number | undefined;
1218
- nth?: number | undefined;
1219
- }>, z.ZodObject<{
612
+ }, z.core.$strip>, z.ZodObject<{
1220
613
  kind: z.ZodLiteral<"signal">;
1221
614
  name: z.ZodString;
1222
- }, "strip", z.ZodTypeAny, {
1223
- kind: "signal";
1224
- name: string;
1225
- }, {
1226
- kind: "signal";
1227
- name: string;
1228
- }>, z.ZodObject<{
615
+ }, z.core.$strip>, z.ZodObject<{
1229
616
  kind: z.ZodLiteral<"component">;
1230
617
  component: z.ZodOptional<z.ZodString>;
1231
618
  source: z.ZodOptional<z.ZodObject<{
1232
619
  file: z.ZodString;
1233
620
  line: z.ZodNumber;
1234
621
  column: z.ZodOptional<z.ZodNumber>;
1235
- }, "strip", z.ZodTypeAny, {
1236
- file: string;
1237
- line: number;
1238
- column?: number | undefined;
1239
- }, {
1240
- file: string;
1241
- line: number;
1242
- column?: number | undefined;
1243
- }>>;
622
+ }, z.core.$strip>>;
1244
623
  role: z.ZodOptional<z.ZodString>;
1245
624
  name: z.ZodOptional<z.ZodString>;
1246
- }, "strip", z.ZodTypeAny, {
1247
- kind: "component";
1248
- role?: string | undefined;
1249
- component?: string | undefined;
1250
- source?: {
1251
- file: string;
1252
- line: number;
1253
- column?: number | undefined;
1254
- } | undefined;
1255
- name?: string | undefined;
1256
- }, {
1257
- kind: "component";
1258
- role?: string | undefined;
1259
- component?: string | undefined;
1260
- source?: {
1261
- file: string;
1262
- line: number;
1263
- column?: number | undefined;
1264
- } | undefined;
1265
- name?: string | undefined;
1266
- }>]>, "many">>;
1267
- /**
1268
- * Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
1269
- *
1270
- * Not an enum: the useful sets are the ones a team invents for its own product, and a closed list
1271
- * would mean shipping somebody's release process in the contract. Optional and back-compat, so
1272
- * every flow already on disk keeps loading.
1273
- */
1274
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1275
- /**
1276
- * Flows that must run, and pass, before this one.
1277
- *
1278
- * By name, because a name is what every other caller addresses a flow by. A prerequisite that is
1279
- * not in the run is reported rather than assumed satisfied: a checkout flow whose login was
1280
- * filtered out by a label would otherwise fail for a reason that has nothing to do with checkout.
1281
- */
1282
- needs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1283
- /** Whether a suite runs this flow. Absent means active — see FlowStatus. */
1284
- status: z.ZodOptional<z.ZodEnum<["active", "quarantined", "draft"]>>;
1285
- /**
1286
- * What this flow has learned from being run, as opposed to what a person wrote on it.
1287
- *
1288
- * Distinct from `knownBugs` above, and the difference is who is speaking. A known bug is a HUMAN
1289
- * excusing a failing assertion with a traceable id. A learned guard is the SYSTEM remembering a
1290
- * defect it observed: `open` while the defect is still happening, `guarded` once a run stopped
1291
- * showing it. Only the second state asserts anything, and its return is a regression.
1292
- *
1293
- * The ordering is the safety property. A contradiction seen right now is not an assertion:
1294
- * asserting "must not happen" while it happens makes the flow red over an accepted defect and
1295
- * trains the reader to ignore it, and asserting "does happen" pins broken behaviour so the check
1296
- * fires when somebody FIXES the bug. See `learnFromRun` in the engine for the rule.
1297
- */
625
+ }, z.core.$strip>], "kind">>>;
626
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
627
+ needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
628
+ status: z.ZodOptional<z.ZodEnum<{
629
+ active: "active";
630
+ quarantined: "quarantined";
631
+ draft: "draft";
632
+ }>>;
1298
633
  learned: z.ZodOptional<z.ZodArray<z.ZodObject<{
1299
634
  kind: z.ZodString;
1300
635
  step: z.ZodNumber;
1301
- state: z.ZodEnum<["open", "guarded"]>;
1302
- /** Consecutive runs that did not show it. One quiet run is not a fix; see learnFromRun. */
636
+ state: z.ZodEnum<{
637
+ open: "open";
638
+ guarded: "guarded";
639
+ }>;
1303
640
  cleanRuns: z.ZodOptional<z.ZodNumber>;
1304
- }, "strip", z.ZodTypeAny, {
1305
- state: "open" | "guarded";
1306
- kind: string;
1307
- step: number;
1308
- cleanRuns?: number | undefined;
1309
- }, {
1310
- state: "open" | "guarded";
1311
- kind: string;
1312
- step: number;
1313
- cleanRuns?: number | undefined;
1314
- }>, "many">>;
1315
- /**
1316
- * Bugs this flow is KNOWN to expose, so a red for a filed reason is not re-investigated.
1317
- *
1318
- * Without it, a suite red for a known cause is indistinguishable from one that just broke: either
1319
- * somebody re-opens an investigation into a bug already filed, or the flow gets quarantined and
1320
- * stops watching the rest of the journey it covers.
1321
- *
1322
- * `assertions` is what keeps the note honest. A known-bug note is a claim about code, and code
1323
- * moves; a note recorded against assertions that have since changed explains away a NEW failure
1324
- * with an OLD excuse, which is a false green in a different costume. `staleKnownBugs` reports any
1325
- * note whose assertions no longer all exist, rather than trusting it.
1326
- */
641
+ }, z.core.$strip>>>;
1327
642
  knownBugs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1328
- /** Required: an unattributable excuse is worse than none. An issue key, a URL, anything traceable. */
1329
643
  id: z.ZodString;
1330
644
  summary: z.ZodString;
1331
- /** Which of this flow's assertions the note was written against. */
1332
- assertions: z.ZodArray<z.ZodString, "many">;
1333
- }, "strip", z.ZodTypeAny, {
1334
- summary: string;
1335
- id: string;
1336
- assertions: string[];
1337
- }, {
1338
- summary: string;
1339
- id: string;
1340
- assertions: string[];
1341
- }>, "many">>;
1342
- /**
1343
- * Why this flow is out of the suite, who owns getting it back, and since when.
1344
- *
1345
- * Required in full when quarantined, because a quarantine without a reason and an owner is a
1346
- * silent skip wearing a label: it removes the failure from the verdict AND the reason to ever fix
1347
- * it. `until` is the optional half — a date somebody has to look at it again.
1348
- */
645
+ assertions: z.ZodArray<z.ZodString>;
646
+ }, z.core.$strip>>>;
1349
647
  quarantine: z.ZodOptional<z.ZodObject<{
1350
648
  reason: z.ZodString;
1351
649
  since: z.ZodString;
1352
650
  owner: z.ZodString;
1353
651
  until: z.ZodOptional<z.ZodString>;
1354
- }, "strip", z.ZodTypeAny, {
1355
- reason: string;
1356
- owner: string;
1357
- since: string;
1358
- until?: string | undefined;
1359
- }, {
1360
- reason: string;
1361
- owner: string;
1362
- since: string;
1363
- until?: string | undefined;
1364
- }>>;
1365
- }, "strip", z.ZodTypeAny, {
1366
- steps: FlowStep[];
1367
- name: string;
1368
- createdAt: number;
1369
- version: number;
1370
- intent?: string | undefined;
1371
- status?: "active" | "quarantined" | "draft" | undefined;
1372
- startPath?: string | undefined;
1373
- template?: string | undefined;
1374
- learned?: {
1375
- state: "open" | "guarded";
1376
- kind: string;
1377
- step: number;
1378
- cleanRuns?: number | undefined;
1379
- }[] | undefined;
1380
- intentId?: string | undefined;
1381
- projectId?: string | undefined;
1382
- fixture?: string | undefined;
1383
- requires?: Predicate[] | undefined;
1384
- ensures?: Predicate[] | undefined;
1385
- author?: {
1386
- agent?: string | undefined;
1387
- person?: string | undefined;
1388
- } | undefined;
1389
- signalTimeoutMs?: number | undefined;
1390
- success?: Predicate | undefined;
1391
- dynamic?: ({
1392
- kind: "testid";
1393
- value: string;
1394
- source?: {
1395
- file: string;
1396
- line: number;
1397
- column?: number | undefined;
1398
- } | undefined;
1399
- } | {
1400
- kind: "role";
1401
- role: string;
1402
- name?: string | undefined;
1403
- of?: number | undefined;
1404
- nth?: number | undefined;
1405
- } | {
1406
- kind: "signal";
1407
- name: string;
1408
- } | {
1409
- kind: "component";
1410
- role?: string | undefined;
1411
- component?: string | undefined;
1412
- source?: {
1413
- file: string;
1414
- line: number;
1415
- column?: number | undefined;
1416
- } | undefined;
1417
- name?: string | undefined;
1418
- })[] | undefined;
1419
- labels?: string[] | undefined;
1420
- needs?: string[] | undefined;
1421
- knownBugs?: {
1422
- summary: string;
1423
- id: string;
1424
- assertions: string[];
1425
- }[] | undefined;
1426
- quarantine?: {
1427
- reason: string;
1428
- owner: string;
1429
- since: string;
1430
- until?: string | undefined;
1431
- } | undefined;
1432
- }, {
1433
- steps: FlowStep[];
1434
- name: string;
1435
- createdAt: number;
1436
- version: number;
1437
- intent?: string | undefined;
1438
- status?: "active" | "quarantined" | "draft" | undefined;
1439
- startPath?: string | undefined;
1440
- template?: string | undefined;
1441
- learned?: {
1442
- state: "open" | "guarded";
1443
- kind: string;
1444
- step: number;
1445
- cleanRuns?: number | undefined;
1446
- }[] | undefined;
1447
- intentId?: string | undefined;
1448
- projectId?: string | undefined;
1449
- fixture?: string | undefined;
1450
- requires?: (Predicate | {
1451
- signal?: string | undefined;
1452
- net?: {
1453
- status?: number | undefined;
1454
- method?: string | undefined;
1455
- urlContains?: string | undefined;
1456
- count?: number | undefined;
1457
- } | undefined;
1458
- state?: {
1459
- path: string;
1460
- hold?: boolean | undefined;
1461
- store?: string | undefined;
1462
- equals?: unknown;
1463
- } | undefined;
1464
- element?: {
1465
- testid?: string | undefined;
1466
- role?: string | undefined;
1467
- name?: string | undefined;
1468
- } | undefined;
1469
- text?: {
1470
- contains: string;
1471
- visible?: boolean | undefined;
1472
- scope?: string | undefined;
1473
- absent?: boolean | undefined;
1474
- } | undefined;
1475
- route?: {
1476
- contains?: string | undefined;
1477
- pathname?: string | undefined;
1478
- } | undefined;
1479
- console?: {
1480
- level?: string | undefined;
1481
- absent?: boolean | undefined;
1482
- } | undefined;
1483
- signalData?: Record<string, unknown> | undefined;
1484
- signalCount?: number | undefined;
1485
- })[] | undefined;
1486
- ensures?: (Predicate | {
1487
- signal?: string | undefined;
1488
- net?: {
1489
- status?: number | undefined;
1490
- method?: string | undefined;
1491
- urlContains?: string | undefined;
1492
- count?: number | undefined;
1493
- } | undefined;
1494
- state?: {
1495
- path: string;
1496
- hold?: boolean | undefined;
1497
- store?: string | undefined;
1498
- equals?: unknown;
1499
- } | undefined;
1500
- element?: {
1501
- testid?: string | undefined;
1502
- role?: string | undefined;
1503
- name?: string | undefined;
1504
- } | undefined;
1505
- text?: {
1506
- contains: string;
1507
- visible?: boolean | undefined;
1508
- scope?: string | undefined;
1509
- absent?: boolean | undefined;
1510
- } | undefined;
1511
- route?: {
1512
- contains?: string | undefined;
1513
- pathname?: string | undefined;
1514
- } | undefined;
1515
- console?: {
1516
- level?: string | undefined;
1517
- absent?: boolean | undefined;
1518
- } | undefined;
1519
- signalData?: Record<string, unknown> | undefined;
1520
- signalCount?: number | undefined;
1521
- })[] | undefined;
1522
- author?: {
1523
- agent?: string | undefined;
1524
- person?: string | undefined;
1525
- } | undefined;
1526
- signalTimeoutMs?: number | undefined;
1527
- success?: Predicate | {
1528
- signal?: string | undefined;
1529
- net?: {
1530
- status?: number | undefined;
1531
- method?: string | undefined;
1532
- urlContains?: string | undefined;
1533
- count?: number | undefined;
1534
- } | undefined;
1535
- state?: {
1536
- path: string;
1537
- hold?: boolean | undefined;
1538
- store?: string | undefined;
1539
- equals?: unknown;
1540
- } | undefined;
1541
- element?: {
1542
- testid?: string | undefined;
1543
- role?: string | undefined;
1544
- name?: string | undefined;
1545
- } | undefined;
1546
- text?: {
1547
- contains: string;
1548
- visible?: boolean | undefined;
1549
- scope?: string | undefined;
1550
- absent?: boolean | undefined;
1551
- } | undefined;
1552
- route?: {
1553
- contains?: string | undefined;
1554
- pathname?: string | undefined;
1555
- } | undefined;
1556
- console?: {
1557
- level?: string | undefined;
1558
- absent?: boolean | undefined;
1559
- } | undefined;
1560
- signalData?: Record<string, unknown> | undefined;
1561
- signalCount?: number | undefined;
1562
- } | undefined;
1563
- dynamic?: ({
1564
- kind: "testid";
1565
- value: string;
1566
- source?: {
1567
- file: string;
1568
- line: number;
1569
- column?: number | undefined;
1570
- } | undefined;
1571
- } | {
1572
- kind: "role";
1573
- role: string;
1574
- name?: string | undefined;
1575
- of?: number | undefined;
1576
- nth?: number | undefined;
1577
- } | {
1578
- kind: "signal";
1579
- name: string;
1580
- } | {
1581
- kind: "component";
1582
- role?: string | undefined;
1583
- component?: string | undefined;
1584
- source?: {
1585
- file: string;
1586
- line: number;
1587
- column?: number | undefined;
1588
- } | undefined;
1589
- name?: string | undefined;
1590
- })[] | undefined;
1591
- labels?: string[] | undefined;
1592
- needs?: string[] | undefined;
1593
- knownBugs?: {
1594
- summary: string;
1595
- id: string;
1596
- assertions: string[];
1597
- }[] | undefined;
1598
- quarantine?: {
1599
- reason: string;
1600
- owner: string;
1601
- since: string;
1602
- until?: string | undefined;
1603
- } | undefined;
1604
- }>;
652
+ }, z.core.$strip>>;
653
+ }, z.core.$strip>;
1605
654
  export type FlowFile = z.infer<typeof FlowFileSchema>;
1606
655
  /**
1607
656
  * Is this flow excluded from the suite's verdict?
@@ -1628,83 +677,20 @@ export declare function isQuarantined(flow: Pick<FlowFile, 'status' | 'quarantin
1628
677
  export declare const RecordedFlowSchema: z.ZodObject<{
1629
678
  name: z.ZodString;
1630
679
  flow: z.ZodObject<{
1631
- /**
1632
- * The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
1633
- * lifted rather than refused — see READABLE_FLOW_VERSIONS.
1634
- */
1635
- version: z.ZodEffects<z.ZodNumber, number, number>;
680
+ version: z.ZodNumber;
1636
681
  name: z.ZodString;
1637
- /**
1638
- * The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
1639
- * Optional + back-compat (a flow without it still parses). Set via an `intent` annotation. The
1640
- * point of "intent + outcome oracle": a flow that declares an intent should also assert an
1641
- * observable business OUTCOME (a consequence success-state), or it claims to verify a goal it
1642
- * cannot actually check — flow-classify flags that gap.
1643
- */
1644
682
  intent: z.ZodOptional<z.ZodString>;
1645
- /**
1646
- * The intent-ledger row this flow discharges — the id in `.reticle/intent.json`.
1647
- *
1648
- * `intent` above is the prose a recorder captured; this is the LINK to the ledger that already
1649
- * models declared → bound → proved and records which verdict discharged what. Without it there
1650
- * would be two ways to say what a change is for, which is the defect this codebase keeps paying
1651
- * for: a flow's goal and an intent's statement would drift apart with nothing to reconcile them.
1652
- *
1653
- * Set at save time from the flow's own prose, or written by hand to point a flow at an intent
1654
- * declared earlier via `reticle_intent` — a flow can prove something somebody else declared.
1655
- * Optional + back-compat: a flow without it replays exactly as before, and the on-disk version
1656
- * stays FLOW_FILE_VERSION 1.
1657
- */
683
+ intentDerived: z.ZodOptional<z.ZodBoolean>;
1658
684
  intentId: z.ZodOptional<z.ZodString>;
1659
- /**
1660
- * The project the flow was recorded against (the connecting session's HELLO `projectId`), stamped at
1661
- * save time. Scopes a flow to its app so a shared daemon's HUD lists only the current project's flows
1662
- * instead of every project that ever saved to that daemon. Optional + back-compat: a flow with no
1663
- * projectId is treated as global (visible everywhere), so pre-existing files parse and still show.
1664
- */
1665
685
  projectId: z.ZodOptional<z.ZodString>;
1666
- /**
1667
- * The route (pathname) the journey started on, captured at record time. Replay navigates here
1668
- * before step 1 so a flow whose first anchor lives on another page doesn't drift on step 1 ("a
1669
- * step no longer matches") just because replay began on the wrong page. Optional + back-compat: a
1670
- * flow without it (or recorded before this shipped) replays from the current page as before, and
1671
- * the on-disk version stays FLOW_FILE_VERSION 1.
1672
- */
1673
686
  startPath: z.ZodOptional<z.ZodString>;
1674
- /**
1675
- * The saved flow this one was generated from, with different parameters (a fixture's customer,
1676
- * a seeded id). A suite that writes runtime copies of a template and deletes them after replay
1677
- * proved the template, and a strict pass of a copy counts toward it in the gate (#1321).
1678
- */
1679
687
  template: z.ZodOptional<z.ZodString>;
1680
688
  fixture: z.ZodOptional<z.ZodString>;
1681
- /**
1682
- * What must already be true for this flow to mean anything, and what it leaves true.
1683
- *
1684
- * These are the two halves of composition. Replaying flows back to back only works when the state
1685
- * one leaves is the state the next expects, and nothing said so — so a suite either got lucky or
1686
- * produced a failure that looked like a regression and was a missing precondition. `requires` lets
1687
- * a replay report THAT instead: not met is `unknown` (nothing ran, nothing proved), never a
1688
- * failure, which is the same honesty rule an uncovered change already follows.
1689
- *
1690
- * `ensures` is the other side, and is what makes A-then-B checkable before either runs.
1691
- *
1692
- * Both optional and both absent from every flow recorded before this shipped, where absent means
1693
- * what it has always meant: replay from wherever the app already is, and let the steps speak.
1694
- * Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
1695
- * somebody else's flow was responsible for.
1696
- */
1697
- requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
689
+ requires: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
1698
690
  route: z.ZodOptional<z.ZodObject<{
1699
691
  pathname: z.ZodOptional<z.ZodString>;
1700
692
  contains: z.ZodOptional<z.ZodString>;
1701
- }, "strip", z.ZodTypeAny, {
1702
- contains?: string | undefined;
1703
- pathname?: string | undefined;
1704
- }, {
1705
- contains?: string | undefined;
1706
- pathname?: string | undefined;
1707
- }>>;
693
+ }, z.core.$strip>>;
1708
694
  signal: z.ZodOptional<z.ZodString>;
1709
695
  signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1710
696
  signalCount: z.ZodOptional<z.ZodNumber>;
@@ -1713,143 +699,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
1713
699
  urlContains: z.ZodOptional<z.ZodString>;
1714
700
  status: z.ZodOptional<z.ZodNumber>;
1715
701
  count: z.ZodOptional<z.ZodNumber>;
1716
- }, "strict", z.ZodTypeAny, {
1717
- status?: number | undefined;
1718
- method?: string | undefined;
1719
- urlContains?: string | undefined;
1720
- count?: number | undefined;
1721
- }, {
1722
- status?: number | undefined;
1723
- method?: string | undefined;
1724
- urlContains?: string | undefined;
1725
- count?: number | undefined;
1726
- }>>;
702
+ }, z.core.$strict>>;
1727
703
  console: z.ZodOptional<z.ZodObject<{
1728
704
  level: z.ZodOptional<z.ZodString>;
1729
705
  absent: z.ZodOptional<z.ZodBoolean>;
1730
- }, "strict", z.ZodTypeAny, {
1731
- level?: string | undefined;
1732
- absent?: boolean | undefined;
1733
- }, {
1734
- level?: string | undefined;
1735
- absent?: boolean | undefined;
1736
- }>>;
706
+ }, z.core.$strict>>;
1737
707
  element: z.ZodOptional<z.ZodObject<{
1738
708
  testid: z.ZodOptional<z.ZodString>;
1739
709
  role: z.ZodOptional<z.ZodString>;
1740
710
  name: z.ZodOptional<z.ZodString>;
1741
- }, "strict", z.ZodTypeAny, {
1742
- testid?: string | undefined;
1743
- role?: string | undefined;
1744
- name?: string | undefined;
1745
- }, {
1746
- testid?: string | undefined;
1747
- role?: string | undefined;
1748
- name?: string | undefined;
1749
- }>>;
711
+ }, z.core.$strict>>;
1750
712
  text: z.ZodOptional<z.ZodObject<{
1751
713
  contains: z.ZodString;
1752
714
  scope: z.ZodOptional<z.ZodString>;
1753
715
  absent: z.ZodOptional<z.ZodBoolean>;
1754
716
  visible: z.ZodOptional<z.ZodBoolean>;
1755
- }, "strict", z.ZodTypeAny, {
1756
- contains: string;
1757
- visible?: boolean | undefined;
1758
- scope?: string | undefined;
1759
- absent?: boolean | undefined;
1760
- }, {
1761
- contains: string;
1762
- visible?: boolean | undefined;
1763
- scope?: string | undefined;
1764
- absent?: boolean | undefined;
1765
- }>>;
717
+ }, z.core.$strict>>;
1766
718
  state: z.ZodOptional<z.ZodObject<{
1767
719
  store: z.ZodOptional<z.ZodString>;
1768
720
  path: z.ZodString;
1769
721
  equals: z.ZodOptional<z.ZodUnknown>;
1770
722
  hold: z.ZodOptional<z.ZodBoolean>;
1771
- }, "strict", z.ZodTypeAny, {
1772
- path: string;
1773
- hold?: boolean | undefined;
1774
- store?: string | undefined;
1775
- equals?: unknown;
1776
- }, {
1777
- path: string;
1778
- hold?: boolean | undefined;
1779
- store?: string | undefined;
1780
- equals?: unknown;
1781
- }>>;
1782
- }, "strict", z.ZodTypeAny, {
1783
- signal?: string | undefined;
1784
- net?: {
1785
- status?: number | undefined;
1786
- method?: string | undefined;
1787
- urlContains?: string | undefined;
1788
- count?: number | undefined;
1789
- } | undefined;
1790
- state?: {
1791
- path: string;
1792
- hold?: boolean | undefined;
1793
- store?: string | undefined;
1794
- equals?: unknown;
1795
- } | undefined;
1796
- element?: {
1797
- testid?: string | undefined;
1798
- role?: string | undefined;
1799
- name?: string | undefined;
1800
- } | undefined;
1801
- text?: {
1802
- contains: string;
1803
- visible?: boolean | undefined;
1804
- scope?: string | undefined;
1805
- absent?: boolean | undefined;
1806
- } | undefined;
1807
- route?: {
1808
- contains?: string | undefined;
1809
- pathname?: string | undefined;
1810
- } | undefined;
1811
- console?: {
1812
- level?: string | undefined;
1813
- absent?: boolean | undefined;
1814
- } | undefined;
1815
- signalData?: Record<string, unknown> | undefined;
1816
- signalCount?: number | undefined;
1817
- }, {
1818
- signal?: string | undefined;
1819
- net?: {
1820
- status?: number | undefined;
1821
- method?: string | undefined;
1822
- urlContains?: string | undefined;
1823
- count?: number | undefined;
1824
- } | undefined;
1825
- state?: {
1826
- path: string;
1827
- hold?: boolean | undefined;
1828
- store?: string | undefined;
1829
- equals?: unknown;
1830
- } | undefined;
1831
- element?: {
1832
- testid?: string | undefined;
1833
- role?: string | undefined;
1834
- name?: string | undefined;
1835
- } | undefined;
1836
- text?: {
1837
- contains: string;
1838
- visible?: boolean | undefined;
1839
- scope?: string | undefined;
1840
- absent?: boolean | undefined;
1841
- } | undefined;
1842
- route?: {
1843
- contains?: string | undefined;
1844
- pathname?: string | undefined;
1845
- } | undefined;
1846
- console?: {
1847
- level?: string | undefined;
1848
- absent?: boolean | undefined;
1849
- } | undefined;
1850
- signalData?: Record<string, unknown> | undefined;
1851
- signalCount?: number | undefined;
1852
- }>, {
723
+ }, z.core.$strict>>;
724
+ }, z.core.$strict>, z.ZodTransform<{
1853
725
  kind: typeof PredicateKind.ELEMENT;
1854
726
  query: import("../index.js").ElementQuery;
1855
727
  state?: import("../wire/constants/constants.js").ElementState;
@@ -1908,6 +780,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
1908
780
  } | {
1909
781
  kind: typeof PredicateKind.SETTLED;
1910
782
  quietMs?: number;
783
+ channel?: import("../verdict/consequence.js").SettledChannel;
1911
784
  } | {
1912
785
  kind: typeof PredicateKind.COMPARE;
1913
786
  left: import("../verdict/compare-source.js").CompareSource;
@@ -1924,53 +797,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
1924
797
  kind: typeof PredicateKind.NOT;
1925
798
  predicate: Predicate;
1926
799
  } | undefined, {
1927
- signal?: string | undefined;
1928
- net?: {
1929
- status?: number | undefined;
1930
- method?: string | undefined;
1931
- urlContains?: string | undefined;
1932
- count?: number | undefined;
1933
- } | undefined;
1934
- state?: {
1935
- path: string;
1936
- hold?: boolean | undefined;
1937
- store?: string | undefined;
1938
- equals?: unknown;
1939
- } | undefined;
1940
- element?: {
1941
- testid?: string | undefined;
1942
- role?: string | undefined;
1943
- name?: string | undefined;
1944
- } | undefined;
1945
- text?: {
1946
- contains: string;
1947
- visible?: boolean | undefined;
1948
- scope?: string | undefined;
1949
- absent?: boolean | undefined;
1950
- } | undefined;
1951
800
  route?: {
1952
- contains?: string | undefined;
1953
801
  pathname?: string | undefined;
802
+ contains?: string | undefined;
1954
803
  } | undefined;
1955
- console?: {
1956
- level?: string | undefined;
1957
- absent?: boolean | undefined;
1958
- } | undefined;
804
+ signal?: string | undefined;
1959
805
  signalData?: Record<string, unknown> | undefined;
1960
806
  signalCount?: number | undefined;
1961
- }>]>, "many">, Predicate[], (Predicate | {
1962
- signal?: string | undefined;
1963
807
  net?: {
1964
- status?: number | undefined;
1965
808
  method?: string | undefined;
1966
809
  urlContains?: string | undefined;
810
+ status?: number | undefined;
1967
811
  count?: number | undefined;
1968
812
  } | undefined;
1969
- state?: {
1970
- path: string;
1971
- hold?: boolean | undefined;
1972
- store?: string | undefined;
1973
- equals?: unknown;
813
+ console?: {
814
+ level?: string | undefined;
815
+ absent?: boolean | undefined;
1974
816
  } | undefined;
1975
817
  element?: {
1976
818
  testid?: string | undefined;
@@ -1979,32 +821,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
1979
821
  } | undefined;
1980
822
  text?: {
1981
823
  contains: string;
1982
- visible?: boolean | undefined;
1983
824
  scope?: string | undefined;
1984
825
  absent?: boolean | undefined;
826
+ visible?: boolean | undefined;
1985
827
  } | undefined;
1986
- route?: {
1987
- contains?: string | undefined;
1988
- pathname?: string | undefined;
1989
- } | undefined;
1990
- console?: {
1991
- level?: string | undefined;
1992
- absent?: boolean | undefined;
828
+ state?: {
829
+ path: string;
830
+ store?: string | undefined;
831
+ equals?: unknown;
832
+ hold?: boolean | undefined;
1993
833
  } | undefined;
1994
- signalData?: Record<string, unknown> | undefined;
1995
- signalCount?: number | undefined;
1996
- })[]>>;
1997
- ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
834
+ }>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
835
+ ensures: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
1998
836
  route: z.ZodOptional<z.ZodObject<{
1999
837
  pathname: z.ZodOptional<z.ZodString>;
2000
838
  contains: z.ZodOptional<z.ZodString>;
2001
- }, "strip", z.ZodTypeAny, {
2002
- contains?: string | undefined;
2003
- pathname?: string | undefined;
2004
- }, {
2005
- contains?: string | undefined;
2006
- pathname?: string | undefined;
2007
- }>>;
839
+ }, z.core.$strip>>;
2008
840
  signal: z.ZodOptional<z.ZodString>;
2009
841
  signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2010
842
  signalCount: z.ZodOptional<z.ZodNumber>;
@@ -2013,143 +845,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2013
845
  urlContains: z.ZodOptional<z.ZodString>;
2014
846
  status: z.ZodOptional<z.ZodNumber>;
2015
847
  count: z.ZodOptional<z.ZodNumber>;
2016
- }, "strict", z.ZodTypeAny, {
2017
- status?: number | undefined;
2018
- method?: string | undefined;
2019
- urlContains?: string | undefined;
2020
- count?: number | undefined;
2021
- }, {
2022
- status?: number | undefined;
2023
- method?: string | undefined;
2024
- urlContains?: string | undefined;
2025
- count?: number | undefined;
2026
- }>>;
848
+ }, z.core.$strict>>;
2027
849
  console: z.ZodOptional<z.ZodObject<{
2028
850
  level: z.ZodOptional<z.ZodString>;
2029
851
  absent: z.ZodOptional<z.ZodBoolean>;
2030
- }, "strict", z.ZodTypeAny, {
2031
- level?: string | undefined;
2032
- absent?: boolean | undefined;
2033
- }, {
2034
- level?: string | undefined;
2035
- absent?: boolean | undefined;
2036
- }>>;
852
+ }, z.core.$strict>>;
2037
853
  element: z.ZodOptional<z.ZodObject<{
2038
854
  testid: z.ZodOptional<z.ZodString>;
2039
855
  role: z.ZodOptional<z.ZodString>;
2040
856
  name: z.ZodOptional<z.ZodString>;
2041
- }, "strict", z.ZodTypeAny, {
2042
- testid?: string | undefined;
2043
- role?: string | undefined;
2044
- name?: string | undefined;
2045
- }, {
2046
- testid?: string | undefined;
2047
- role?: string | undefined;
2048
- name?: string | undefined;
2049
- }>>;
857
+ }, z.core.$strict>>;
2050
858
  text: z.ZodOptional<z.ZodObject<{
2051
859
  contains: z.ZodString;
2052
860
  scope: z.ZodOptional<z.ZodString>;
2053
861
  absent: z.ZodOptional<z.ZodBoolean>;
2054
862
  visible: z.ZodOptional<z.ZodBoolean>;
2055
- }, "strict", z.ZodTypeAny, {
2056
- contains: string;
2057
- visible?: boolean | undefined;
2058
- scope?: string | undefined;
2059
- absent?: boolean | undefined;
2060
- }, {
2061
- contains: string;
2062
- visible?: boolean | undefined;
2063
- scope?: string | undefined;
2064
- absent?: boolean | undefined;
2065
- }>>;
863
+ }, z.core.$strict>>;
2066
864
  state: z.ZodOptional<z.ZodObject<{
2067
865
  store: z.ZodOptional<z.ZodString>;
2068
866
  path: z.ZodString;
2069
867
  equals: z.ZodOptional<z.ZodUnknown>;
2070
868
  hold: z.ZodOptional<z.ZodBoolean>;
2071
- }, "strict", z.ZodTypeAny, {
2072
- path: string;
2073
- hold?: boolean | undefined;
2074
- store?: string | undefined;
2075
- equals?: unknown;
2076
- }, {
2077
- path: string;
2078
- hold?: boolean | undefined;
2079
- store?: string | undefined;
2080
- equals?: unknown;
2081
- }>>;
2082
- }, "strict", z.ZodTypeAny, {
2083
- signal?: string | undefined;
2084
- net?: {
2085
- status?: number | undefined;
2086
- method?: string | undefined;
2087
- urlContains?: string | undefined;
2088
- count?: number | undefined;
2089
- } | undefined;
2090
- state?: {
2091
- path: string;
2092
- hold?: boolean | undefined;
2093
- store?: string | undefined;
2094
- equals?: unknown;
2095
- } | undefined;
2096
- element?: {
2097
- testid?: string | undefined;
2098
- role?: string | undefined;
2099
- name?: string | undefined;
2100
- } | undefined;
2101
- text?: {
2102
- contains: string;
2103
- visible?: boolean | undefined;
2104
- scope?: string | undefined;
2105
- absent?: boolean | undefined;
2106
- } | undefined;
2107
- route?: {
2108
- contains?: string | undefined;
2109
- pathname?: string | undefined;
2110
- } | undefined;
2111
- console?: {
2112
- level?: string | undefined;
2113
- absent?: boolean | undefined;
2114
- } | undefined;
2115
- signalData?: Record<string, unknown> | undefined;
2116
- signalCount?: number | undefined;
2117
- }, {
2118
- signal?: string | undefined;
2119
- net?: {
2120
- status?: number | undefined;
2121
- method?: string | undefined;
2122
- urlContains?: string | undefined;
2123
- count?: number | undefined;
2124
- } | undefined;
2125
- state?: {
2126
- path: string;
2127
- hold?: boolean | undefined;
2128
- store?: string | undefined;
2129
- equals?: unknown;
2130
- } | undefined;
2131
- element?: {
2132
- testid?: string | undefined;
2133
- role?: string | undefined;
2134
- name?: string | undefined;
2135
- } | undefined;
2136
- text?: {
2137
- contains: string;
2138
- visible?: boolean | undefined;
2139
- scope?: string | undefined;
2140
- absent?: boolean | undefined;
2141
- } | undefined;
2142
- route?: {
2143
- contains?: string | undefined;
2144
- pathname?: string | undefined;
2145
- } | undefined;
2146
- console?: {
2147
- level?: string | undefined;
2148
- absent?: boolean | undefined;
2149
- } | undefined;
2150
- signalData?: Record<string, unknown> | undefined;
2151
- signalCount?: number | undefined;
2152
- }>, {
869
+ }, z.core.$strict>>;
870
+ }, z.core.$strict>, z.ZodTransform<{
2153
871
  kind: typeof PredicateKind.ELEMENT;
2154
872
  query: import("../index.js").ElementQuery;
2155
873
  state?: import("../wire/constants/constants.js").ElementState;
@@ -2208,6 +926,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2208
926
  } | {
2209
927
  kind: typeof PredicateKind.SETTLED;
2210
928
  quietMs?: number;
929
+ channel?: import("../verdict/consequence.js").SettledChannel;
2211
930
  } | {
2212
931
  kind: typeof PredicateKind.COMPARE;
2213
932
  left: import("../verdict/compare-source.js").CompareSource;
@@ -2224,53 +943,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2224
943
  kind: typeof PredicateKind.NOT;
2225
944
  predicate: Predicate;
2226
945
  } | undefined, {
2227
- signal?: string | undefined;
2228
- net?: {
2229
- status?: number | undefined;
2230
- method?: string | undefined;
2231
- urlContains?: string | undefined;
2232
- count?: number | undefined;
2233
- } | undefined;
2234
- state?: {
2235
- path: string;
2236
- hold?: boolean | undefined;
2237
- store?: string | undefined;
2238
- equals?: unknown;
2239
- } | undefined;
2240
- element?: {
2241
- testid?: string | undefined;
2242
- role?: string | undefined;
2243
- name?: string | undefined;
2244
- } | undefined;
2245
- text?: {
2246
- contains: string;
2247
- visible?: boolean | undefined;
2248
- scope?: string | undefined;
2249
- absent?: boolean | undefined;
2250
- } | undefined;
2251
946
  route?: {
2252
- contains?: string | undefined;
2253
947
  pathname?: string | undefined;
948
+ contains?: string | undefined;
2254
949
  } | undefined;
2255
- console?: {
2256
- level?: string | undefined;
2257
- absent?: boolean | undefined;
2258
- } | undefined;
950
+ signal?: string | undefined;
2259
951
  signalData?: Record<string, unknown> | undefined;
2260
952
  signalCount?: number | undefined;
2261
- }>]>, "many">, Predicate[], (Predicate | {
2262
- signal?: string | undefined;
2263
953
  net?: {
2264
- status?: number | undefined;
2265
954
  method?: string | undefined;
2266
955
  urlContains?: string | undefined;
956
+ status?: number | undefined;
2267
957
  count?: number | undefined;
2268
958
  } | undefined;
2269
- state?: {
2270
- path: string;
2271
- hold?: boolean | undefined;
2272
- store?: string | undefined;
2273
- equals?: unknown;
959
+ console?: {
960
+ level?: string | undefined;
961
+ absent?: boolean | undefined;
2274
962
  } | undefined;
2275
963
  element?: {
2276
964
  testid?: string | undefined;
@@ -2279,59 +967,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2279
967
  } | undefined;
2280
968
  text?: {
2281
969
  contains: string;
2282
- visible?: boolean | undefined;
2283
970
  scope?: string | undefined;
2284
971
  absent?: boolean | undefined;
972
+ visible?: boolean | undefined;
2285
973
  } | undefined;
2286
- route?: {
2287
- contains?: string | undefined;
2288
- pathname?: string | undefined;
2289
- } | undefined;
2290
- console?: {
2291
- level?: string | undefined;
2292
- absent?: boolean | undefined;
974
+ state?: {
975
+ path: string;
976
+ store?: string | undefined;
977
+ equals?: unknown;
978
+ hold?: boolean | undefined;
2293
979
  } | undefined;
2294
- signalData?: Record<string, unknown> | undefined;
2295
- signalCount?: number | undefined;
2296
- })[]>>;
2297
- /**
2298
- * Who made this flow, stamped at save: the agent that drove it (its MCP client name) and the
2299
- * person signed in to the cloud key on that machine. Either is absent when it was not known —
2300
- * never guessed.
2301
- */
980
+ }>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
2302
981
  author: z.ZodOptional<z.ZodObject<{
2303
982
  agent: z.ZodOptional<z.ZodString>;
2304
983
  person: z.ZodOptional<z.ZodString>;
2305
- }, "strip", z.ZodTypeAny, {
2306
- agent?: string | undefined;
2307
- person?: string | undefined;
2308
- }, {
2309
- agent?: string | undefined;
2310
- person?: string | undefined;
2311
- }>>;
2312
- /** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
984
+ }, z.core.$strip>>;
2313
985
  createdAt: z.ZodNumber;
2314
- steps: z.ZodArray<z.ZodType<FlowStep, z.ZodTypeDef, FlowStep>, "many">;
2315
- /**
2316
- * How long every step of this flow waits for its declared consequence, in ms. A step's own
2317
- * `timeoutMs` wins over it; absent both, FLOW_SIGNAL_TIMEOUT_MS applies.
2318
- *
2319
- * Flow-level because slowness is usually a property of the APP, not of one control — a remote
2320
- * database, a model-backed endpoint, a cold container. Optional + back-compat: a flow without it
2321
- * replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
2322
- */
986
+ steps: z.ZodArray<z.ZodType<FlowStep, unknown, z.core.$ZodTypeInternals<FlowStep, unknown>>>;
2323
987
  signalTimeoutMs: z.ZodOptional<z.ZodNumber>;
2324
- success: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
988
+ success: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
2325
989
  route: z.ZodOptional<z.ZodObject<{
2326
990
  pathname: z.ZodOptional<z.ZodString>;
2327
991
  contains: z.ZodOptional<z.ZodString>;
2328
- }, "strip", z.ZodTypeAny, {
2329
- contains?: string | undefined;
2330
- pathname?: string | undefined;
2331
- }, {
2332
- contains?: string | undefined;
2333
- pathname?: string | undefined;
2334
- }>>;
992
+ }, z.core.$strip>>;
2335
993
  signal: z.ZodOptional<z.ZodString>;
2336
994
  signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2337
995
  signalCount: z.ZodOptional<z.ZodNumber>;
@@ -2340,143 +998,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2340
998
  urlContains: z.ZodOptional<z.ZodString>;
2341
999
  status: z.ZodOptional<z.ZodNumber>;
2342
1000
  count: z.ZodOptional<z.ZodNumber>;
2343
- }, "strict", z.ZodTypeAny, {
2344
- status?: number | undefined;
2345
- method?: string | undefined;
2346
- urlContains?: string | undefined;
2347
- count?: number | undefined;
2348
- }, {
2349
- status?: number | undefined;
2350
- method?: string | undefined;
2351
- urlContains?: string | undefined;
2352
- count?: number | undefined;
2353
- }>>;
1001
+ }, z.core.$strict>>;
2354
1002
  console: z.ZodOptional<z.ZodObject<{
2355
1003
  level: z.ZodOptional<z.ZodString>;
2356
1004
  absent: z.ZodOptional<z.ZodBoolean>;
2357
- }, "strict", z.ZodTypeAny, {
2358
- level?: string | undefined;
2359
- absent?: boolean | undefined;
2360
- }, {
2361
- level?: string | undefined;
2362
- absent?: boolean | undefined;
2363
- }>>;
1005
+ }, z.core.$strict>>;
2364
1006
  element: z.ZodOptional<z.ZodObject<{
2365
1007
  testid: z.ZodOptional<z.ZodString>;
2366
1008
  role: z.ZodOptional<z.ZodString>;
2367
1009
  name: z.ZodOptional<z.ZodString>;
2368
- }, "strict", z.ZodTypeAny, {
2369
- testid?: string | undefined;
2370
- role?: string | undefined;
2371
- name?: string | undefined;
2372
- }, {
2373
- testid?: string | undefined;
2374
- role?: string | undefined;
2375
- name?: string | undefined;
2376
- }>>;
1010
+ }, z.core.$strict>>;
2377
1011
  text: z.ZodOptional<z.ZodObject<{
2378
1012
  contains: z.ZodString;
2379
1013
  scope: z.ZodOptional<z.ZodString>;
2380
1014
  absent: z.ZodOptional<z.ZodBoolean>;
2381
1015
  visible: z.ZodOptional<z.ZodBoolean>;
2382
- }, "strict", z.ZodTypeAny, {
2383
- contains: string;
2384
- visible?: boolean | undefined;
2385
- scope?: string | undefined;
2386
- absent?: boolean | undefined;
2387
- }, {
2388
- contains: string;
2389
- visible?: boolean | undefined;
2390
- scope?: string | undefined;
2391
- absent?: boolean | undefined;
2392
- }>>;
1016
+ }, z.core.$strict>>;
2393
1017
  state: z.ZodOptional<z.ZodObject<{
2394
1018
  store: z.ZodOptional<z.ZodString>;
2395
1019
  path: z.ZodString;
2396
1020
  equals: z.ZodOptional<z.ZodUnknown>;
2397
1021
  hold: z.ZodOptional<z.ZodBoolean>;
2398
- }, "strict", z.ZodTypeAny, {
2399
- path: string;
2400
- hold?: boolean | undefined;
2401
- store?: string | undefined;
2402
- equals?: unknown;
2403
- }, {
2404
- path: string;
2405
- hold?: boolean | undefined;
2406
- store?: string | undefined;
2407
- equals?: unknown;
2408
- }>>;
2409
- }, "strict", z.ZodTypeAny, {
2410
- signal?: string | undefined;
2411
- net?: {
2412
- status?: number | undefined;
2413
- method?: string | undefined;
2414
- urlContains?: string | undefined;
2415
- count?: number | undefined;
2416
- } | undefined;
2417
- state?: {
2418
- path: string;
2419
- hold?: boolean | undefined;
2420
- store?: string | undefined;
2421
- equals?: unknown;
2422
- } | undefined;
2423
- element?: {
2424
- testid?: string | undefined;
2425
- role?: string | undefined;
2426
- name?: string | undefined;
2427
- } | undefined;
2428
- text?: {
2429
- contains: string;
2430
- visible?: boolean | undefined;
2431
- scope?: string | undefined;
2432
- absent?: boolean | undefined;
2433
- } | undefined;
2434
- route?: {
2435
- contains?: string | undefined;
2436
- pathname?: string | undefined;
2437
- } | undefined;
2438
- console?: {
2439
- level?: string | undefined;
2440
- absent?: boolean | undefined;
2441
- } | undefined;
2442
- signalData?: Record<string, unknown> | undefined;
2443
- signalCount?: number | undefined;
2444
- }, {
2445
- signal?: string | undefined;
2446
- net?: {
2447
- status?: number | undefined;
2448
- method?: string | undefined;
2449
- urlContains?: string | undefined;
2450
- count?: number | undefined;
2451
- } | undefined;
2452
- state?: {
2453
- path: string;
2454
- hold?: boolean | undefined;
2455
- store?: string | undefined;
2456
- equals?: unknown;
2457
- } | undefined;
2458
- element?: {
2459
- testid?: string | undefined;
2460
- role?: string | undefined;
2461
- name?: string | undefined;
2462
- } | undefined;
2463
- text?: {
2464
- contains: string;
2465
- visible?: boolean | undefined;
2466
- scope?: string | undefined;
2467
- absent?: boolean | undefined;
2468
- } | undefined;
2469
- route?: {
2470
- contains?: string | undefined;
2471
- pathname?: string | undefined;
2472
- } | undefined;
2473
- console?: {
2474
- level?: string | undefined;
2475
- absent?: boolean | undefined;
2476
- } | undefined;
2477
- signalData?: Record<string, unknown> | undefined;
2478
- signalCount?: number | undefined;
2479
- }>, {
1022
+ }, z.core.$strict>>;
1023
+ }, z.core.$strict>, z.ZodTransform<{
2480
1024
  kind: typeof PredicateKind.ELEMENT;
2481
1025
  query: import("../index.js").ElementQuery;
2482
1026
  state?: import("../wire/constants/constants.js").ElementState;
@@ -2535,6 +1079,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2535
1079
  } | {
2536
1080
  kind: typeof PredicateKind.SETTLED;
2537
1081
  quietMs?: number;
1082
+ channel?: import("../verdict/consequence.js").SettledChannel;
2538
1083
  } | {
2539
1084
  kind: typeof PredicateKind.COMPARE;
2540
1085
  left: import("../verdict/compare-source.js").CompareSource;
@@ -2551,18 +1096,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2551
1096
  kind: typeof PredicateKind.NOT;
2552
1097
  predicate: Predicate;
2553
1098
  } | undefined, {
1099
+ route?: {
1100
+ pathname?: string | undefined;
1101
+ contains?: string | undefined;
1102
+ } | undefined;
2554
1103
  signal?: string | undefined;
1104
+ signalData?: Record<string, unknown> | undefined;
1105
+ signalCount?: number | undefined;
2555
1106
  net?: {
2556
- status?: number | undefined;
2557
1107
  method?: string | undefined;
2558
1108
  urlContains?: string | undefined;
1109
+ status?: number | undefined;
2559
1110
  count?: number | undefined;
2560
1111
  } | undefined;
2561
- state?: {
2562
- path: string;
2563
- hold?: boolean | undefined;
2564
- store?: string | undefined;
2565
- equals?: unknown;
1112
+ console?: {
1113
+ level?: string | undefined;
1114
+ absent?: boolean | undefined;
2566
1115
  } | undefined;
2567
1116
  element?: {
2568
1117
  testid?: string | undefined;
@@ -2571,707 +1120,75 @@ export declare const RecordedFlowSchema: z.ZodObject<{
2571
1120
  } | undefined;
2572
1121
  text?: {
2573
1122
  contains: string;
2574
- visible?: boolean | undefined;
2575
1123
  scope?: string | undefined;
2576
1124
  absent?: boolean | undefined;
1125
+ visible?: boolean | undefined;
2577
1126
  } | undefined;
2578
- route?: {
2579
- contains?: string | undefined;
2580
- pathname?: string | undefined;
2581
- } | undefined;
2582
- console?: {
2583
- level?: string | undefined;
2584
- absent?: boolean | undefined;
1127
+ state?: {
1128
+ path: string;
1129
+ store?: string | undefined;
1130
+ equals?: unknown;
1131
+ hold?: boolean | undefined;
2585
1132
  } | undefined;
2586
- signalData?: Record<string, unknown> | undefined;
2587
- signalCount?: number | undefined;
2588
- }>]>>;
2589
- /**
2590
- * Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
2591
- * presence, not words. Compiled from a `mark-dynamic` annotation.
2592
- */
2593
- dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1133
+ }>>]>>;
1134
+ dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2594
1135
  kind: z.ZodLiteral<"testid">;
2595
1136
  value: z.ZodString;
1137
+ of: z.ZodOptional<z.ZodNumber>;
2596
1138
  source: z.ZodOptional<z.ZodObject<{
2597
1139
  file: z.ZodString;
2598
1140
  line: z.ZodNumber;
2599
1141
  column: z.ZodOptional<z.ZodNumber>;
2600
- }, "strip", z.ZodTypeAny, {
2601
- file: string;
2602
- line: number;
2603
- column?: number | undefined;
2604
- }, {
2605
- file: string;
2606
- line: number;
2607
- column?: number | undefined;
2608
- }>>;
2609
- }, "strip", z.ZodTypeAny, {
2610
- kind: "testid";
2611
- value: string;
2612
- source?: {
2613
- file: string;
2614
- line: number;
2615
- column?: number | undefined;
2616
- } | undefined;
2617
- }, {
2618
- kind: "testid";
2619
- value: string;
2620
- source?: {
2621
- file: string;
2622
- line: number;
2623
- column?: number | undefined;
2624
- } | undefined;
2625
- }>, z.ZodObject<{
1142
+ }, z.core.$strip>>;
1143
+ }, z.core.$strip>, z.ZodObject<{
2626
1144
  kind: z.ZodLiteral<"role">;
2627
1145
  role: z.ZodString;
2628
1146
  name: z.ZodOptional<z.ZodString>;
2629
1147
  nth: z.ZodOptional<z.ZodNumber>;
2630
1148
  of: z.ZodOptional<z.ZodNumber>;
2631
- }, "strip", z.ZodTypeAny, {
2632
- kind: "role";
2633
- role: string;
2634
- name?: string | undefined;
2635
- of?: number | undefined;
2636
- nth?: number | undefined;
2637
- }, {
2638
- kind: "role";
2639
- role: string;
2640
- name?: string | undefined;
2641
- of?: number | undefined;
2642
- nth?: number | undefined;
2643
- }>, z.ZodObject<{
1149
+ }, z.core.$strip>, z.ZodObject<{
2644
1150
  kind: z.ZodLiteral<"signal">;
2645
1151
  name: z.ZodString;
2646
- }, "strip", z.ZodTypeAny, {
2647
- kind: "signal";
2648
- name: string;
2649
- }, {
2650
- kind: "signal";
2651
- name: string;
2652
- }>, z.ZodObject<{
1152
+ }, z.core.$strip>, z.ZodObject<{
2653
1153
  kind: z.ZodLiteral<"component">;
2654
1154
  component: z.ZodOptional<z.ZodString>;
2655
1155
  source: z.ZodOptional<z.ZodObject<{
2656
1156
  file: z.ZodString;
2657
1157
  line: z.ZodNumber;
2658
1158
  column: z.ZodOptional<z.ZodNumber>;
2659
- }, "strip", z.ZodTypeAny, {
2660
- file: string;
2661
- line: number;
2662
- column?: number | undefined;
2663
- }, {
2664
- file: string;
2665
- line: number;
2666
- column?: number | undefined;
2667
- }>>;
1159
+ }, z.core.$strip>>;
2668
1160
  role: z.ZodOptional<z.ZodString>;
2669
1161
  name: z.ZodOptional<z.ZodString>;
2670
- }, "strip", z.ZodTypeAny, {
2671
- kind: "component";
2672
- role?: string | undefined;
2673
- component?: string | undefined;
2674
- source?: {
2675
- file: string;
2676
- line: number;
2677
- column?: number | undefined;
2678
- } | undefined;
2679
- name?: string | undefined;
2680
- }, {
2681
- kind: "component";
2682
- role?: string | undefined;
2683
- component?: string | undefined;
2684
- source?: {
2685
- file: string;
2686
- line: number;
2687
- column?: number | undefined;
2688
- } | undefined;
2689
- name?: string | undefined;
2690
- }>]>, "many">>;
2691
- /**
2692
- * Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
2693
- *
2694
- * Not an enum: the useful sets are the ones a team invents for its own product, and a closed list
2695
- * would mean shipping somebody's release process in the contract. Optional and back-compat, so
2696
- * every flow already on disk keeps loading.
2697
- */
2698
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2699
- /**
2700
- * Flows that must run, and pass, before this one.
2701
- *
2702
- * By name, because a name is what every other caller addresses a flow by. A prerequisite that is
2703
- * not in the run is reported rather than assumed satisfied: a checkout flow whose login was
2704
- * filtered out by a label would otherwise fail for a reason that has nothing to do with checkout.
2705
- */
2706
- needs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2707
- /** Whether a suite runs this flow. Absent means active — see FlowStatus. */
2708
- status: z.ZodOptional<z.ZodEnum<["active", "quarantined", "draft"]>>;
2709
- /**
2710
- * What this flow has learned from being run, as opposed to what a person wrote on it.
2711
- *
2712
- * Distinct from `knownBugs` above, and the difference is who is speaking. A known bug is a HUMAN
2713
- * excusing a failing assertion with a traceable id. A learned guard is the SYSTEM remembering a
2714
- * defect it observed: `open` while the defect is still happening, `guarded` once a run stopped
2715
- * showing it. Only the second state asserts anything, and its return is a regression.
2716
- *
2717
- * The ordering is the safety property. A contradiction seen right now is not an assertion:
2718
- * asserting "must not happen" while it happens makes the flow red over an accepted defect and
2719
- * trains the reader to ignore it, and asserting "does happen" pins broken behaviour so the check
2720
- * fires when somebody FIXES the bug. See `learnFromRun` in the engine for the rule.
2721
- */
1162
+ }, z.core.$strip>], "kind">>>;
1163
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1164
+ needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
1165
+ status: z.ZodOptional<z.ZodEnum<{
1166
+ active: "active";
1167
+ quarantined: "quarantined";
1168
+ draft: "draft";
1169
+ }>>;
2722
1170
  learned: z.ZodOptional<z.ZodArray<z.ZodObject<{
2723
1171
  kind: z.ZodString;
2724
1172
  step: z.ZodNumber;
2725
- state: z.ZodEnum<["open", "guarded"]>;
2726
- /** Consecutive runs that did not show it. One quiet run is not a fix; see learnFromRun. */
1173
+ state: z.ZodEnum<{
1174
+ open: "open";
1175
+ guarded: "guarded";
1176
+ }>;
2727
1177
  cleanRuns: z.ZodOptional<z.ZodNumber>;
2728
- }, "strip", z.ZodTypeAny, {
2729
- state: "open" | "guarded";
2730
- kind: string;
2731
- step: number;
2732
- cleanRuns?: number | undefined;
2733
- }, {
2734
- state: "open" | "guarded";
2735
- kind: string;
2736
- step: number;
2737
- cleanRuns?: number | undefined;
2738
- }>, "many">>;
2739
- /**
2740
- * Bugs this flow is KNOWN to expose, so a red for a filed reason is not re-investigated.
2741
- *
2742
- * Without it, a suite red for a known cause is indistinguishable from one that just broke: either
2743
- * somebody re-opens an investigation into a bug already filed, or the flow gets quarantined and
2744
- * stops watching the rest of the journey it covers.
2745
- *
2746
- * `assertions` is what keeps the note honest. A known-bug note is a claim about code, and code
2747
- * moves; a note recorded against assertions that have since changed explains away a NEW failure
2748
- * with an OLD excuse, which is a false green in a different costume. `staleKnownBugs` reports any
2749
- * note whose assertions no longer all exist, rather than trusting it.
2750
- */
1178
+ }, z.core.$strip>>>;
2751
1179
  knownBugs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2752
- /** Required: an unattributable excuse is worse than none. An issue key, a URL, anything traceable. */
2753
1180
  id: z.ZodString;
2754
1181
  summary: z.ZodString;
2755
- /** Which of this flow's assertions the note was written against. */
2756
- assertions: z.ZodArray<z.ZodString, "many">;
2757
- }, "strip", z.ZodTypeAny, {
2758
- summary: string;
2759
- id: string;
2760
- assertions: string[];
2761
- }, {
2762
- summary: string;
2763
- id: string;
2764
- assertions: string[];
2765
- }>, "many">>;
2766
- /**
2767
- * Why this flow is out of the suite, who owns getting it back, and since when.
2768
- *
2769
- * Required in full when quarantined, because a quarantine without a reason and an owner is a
2770
- * silent skip wearing a label: it removes the failure from the verdict AND the reason to ever fix
2771
- * it. `until` is the optional half — a date somebody has to look at it again.
2772
- */
1182
+ assertions: z.ZodArray<z.ZodString>;
1183
+ }, z.core.$strip>>>;
2773
1184
  quarantine: z.ZodOptional<z.ZodObject<{
2774
1185
  reason: z.ZodString;
2775
1186
  since: z.ZodString;
2776
1187
  owner: z.ZodString;
2777
1188
  until: z.ZodOptional<z.ZodString>;
2778
- }, "strip", z.ZodTypeAny, {
2779
- reason: string;
2780
- owner: string;
2781
- since: string;
2782
- until?: string | undefined;
2783
- }, {
2784
- reason: string;
2785
- owner: string;
2786
- since: string;
2787
- until?: string | undefined;
2788
- }>>;
2789
- }, "strip", z.ZodTypeAny, {
2790
- steps: FlowStep[];
2791
- name: string;
2792
- createdAt: number;
2793
- version: number;
2794
- intent?: string | undefined;
2795
- status?: "active" | "quarantined" | "draft" | undefined;
2796
- startPath?: string | undefined;
2797
- template?: string | undefined;
2798
- learned?: {
2799
- state: "open" | "guarded";
2800
- kind: string;
2801
- step: number;
2802
- cleanRuns?: number | undefined;
2803
- }[] | undefined;
2804
- intentId?: string | undefined;
2805
- projectId?: string | undefined;
2806
- fixture?: string | undefined;
2807
- requires?: Predicate[] | undefined;
2808
- ensures?: Predicate[] | undefined;
2809
- author?: {
2810
- agent?: string | undefined;
2811
- person?: string | undefined;
2812
- } | undefined;
2813
- signalTimeoutMs?: number | undefined;
2814
- success?: Predicate | undefined;
2815
- dynamic?: ({
2816
- kind: "testid";
2817
- value: string;
2818
- source?: {
2819
- file: string;
2820
- line: number;
2821
- column?: number | undefined;
2822
- } | undefined;
2823
- } | {
2824
- kind: "role";
2825
- role: string;
2826
- name?: string | undefined;
2827
- of?: number | undefined;
2828
- nth?: number | undefined;
2829
- } | {
2830
- kind: "signal";
2831
- name: string;
2832
- } | {
2833
- kind: "component";
2834
- role?: string | undefined;
2835
- component?: string | undefined;
2836
- source?: {
2837
- file: string;
2838
- line: number;
2839
- column?: number | undefined;
2840
- } | undefined;
2841
- name?: string | undefined;
2842
- })[] | undefined;
2843
- labels?: string[] | undefined;
2844
- needs?: string[] | undefined;
2845
- knownBugs?: {
2846
- summary: string;
2847
- id: string;
2848
- assertions: string[];
2849
- }[] | undefined;
2850
- quarantine?: {
2851
- reason: string;
2852
- owner: string;
2853
- since: string;
2854
- until?: string | undefined;
2855
- } | undefined;
2856
- }, {
2857
- steps: FlowStep[];
2858
- name: string;
2859
- createdAt: number;
2860
- version: number;
2861
- intent?: string | undefined;
2862
- status?: "active" | "quarantined" | "draft" | undefined;
2863
- startPath?: string | undefined;
2864
- template?: string | undefined;
2865
- learned?: {
2866
- state: "open" | "guarded";
2867
- kind: string;
2868
- step: number;
2869
- cleanRuns?: number | undefined;
2870
- }[] | undefined;
2871
- intentId?: string | undefined;
2872
- projectId?: string | undefined;
2873
- fixture?: string | undefined;
2874
- requires?: (Predicate | {
2875
- signal?: string | undefined;
2876
- net?: {
2877
- status?: number | undefined;
2878
- method?: string | undefined;
2879
- urlContains?: string | undefined;
2880
- count?: number | undefined;
2881
- } | undefined;
2882
- state?: {
2883
- path: string;
2884
- hold?: boolean | undefined;
2885
- store?: string | undefined;
2886
- equals?: unknown;
2887
- } | undefined;
2888
- element?: {
2889
- testid?: string | undefined;
2890
- role?: string | undefined;
2891
- name?: string | undefined;
2892
- } | undefined;
2893
- text?: {
2894
- contains: string;
2895
- visible?: boolean | undefined;
2896
- scope?: string | undefined;
2897
- absent?: boolean | undefined;
2898
- } | undefined;
2899
- route?: {
2900
- contains?: string | undefined;
2901
- pathname?: string | undefined;
2902
- } | undefined;
2903
- console?: {
2904
- level?: string | undefined;
2905
- absent?: boolean | undefined;
2906
- } | undefined;
2907
- signalData?: Record<string, unknown> | undefined;
2908
- signalCount?: number | undefined;
2909
- })[] | undefined;
2910
- ensures?: (Predicate | {
2911
- signal?: string | undefined;
2912
- net?: {
2913
- status?: number | undefined;
2914
- method?: string | undefined;
2915
- urlContains?: string | undefined;
2916
- count?: number | undefined;
2917
- } | undefined;
2918
- state?: {
2919
- path: string;
2920
- hold?: boolean | undefined;
2921
- store?: string | undefined;
2922
- equals?: unknown;
2923
- } | undefined;
2924
- element?: {
2925
- testid?: string | undefined;
2926
- role?: string | undefined;
2927
- name?: string | undefined;
2928
- } | undefined;
2929
- text?: {
2930
- contains: string;
2931
- visible?: boolean | undefined;
2932
- scope?: string | undefined;
2933
- absent?: boolean | undefined;
2934
- } | undefined;
2935
- route?: {
2936
- contains?: string | undefined;
2937
- pathname?: string | undefined;
2938
- } | undefined;
2939
- console?: {
2940
- level?: string | undefined;
2941
- absent?: boolean | undefined;
2942
- } | undefined;
2943
- signalData?: Record<string, unknown> | undefined;
2944
- signalCount?: number | undefined;
2945
- })[] | undefined;
2946
- author?: {
2947
- agent?: string | undefined;
2948
- person?: string | undefined;
2949
- } | undefined;
2950
- signalTimeoutMs?: number | undefined;
2951
- success?: Predicate | {
2952
- signal?: string | undefined;
2953
- net?: {
2954
- status?: number | undefined;
2955
- method?: string | undefined;
2956
- urlContains?: string | undefined;
2957
- count?: number | undefined;
2958
- } | undefined;
2959
- state?: {
2960
- path: string;
2961
- hold?: boolean | undefined;
2962
- store?: string | undefined;
2963
- equals?: unknown;
2964
- } | undefined;
2965
- element?: {
2966
- testid?: string | undefined;
2967
- role?: string | undefined;
2968
- name?: string | undefined;
2969
- } | undefined;
2970
- text?: {
2971
- contains: string;
2972
- visible?: boolean | undefined;
2973
- scope?: string | undefined;
2974
- absent?: boolean | undefined;
2975
- } | undefined;
2976
- route?: {
2977
- contains?: string | undefined;
2978
- pathname?: string | undefined;
2979
- } | undefined;
2980
- console?: {
2981
- level?: string | undefined;
2982
- absent?: boolean | undefined;
2983
- } | undefined;
2984
- signalData?: Record<string, unknown> | undefined;
2985
- signalCount?: number | undefined;
2986
- } | undefined;
2987
- dynamic?: ({
2988
- kind: "testid";
2989
- value: string;
2990
- source?: {
2991
- file: string;
2992
- line: number;
2993
- column?: number | undefined;
2994
- } | undefined;
2995
- } | {
2996
- kind: "role";
2997
- role: string;
2998
- name?: string | undefined;
2999
- of?: number | undefined;
3000
- nth?: number | undefined;
3001
- } | {
3002
- kind: "signal";
3003
- name: string;
3004
- } | {
3005
- kind: "component";
3006
- role?: string | undefined;
3007
- component?: string | undefined;
3008
- source?: {
3009
- file: string;
3010
- line: number;
3011
- column?: number | undefined;
3012
- } | undefined;
3013
- name?: string | undefined;
3014
- })[] | undefined;
3015
- labels?: string[] | undefined;
3016
- needs?: string[] | undefined;
3017
- knownBugs?: {
3018
- summary: string;
3019
- id: string;
3020
- assertions: string[];
3021
- }[] | undefined;
3022
- quarantine?: {
3023
- reason: string;
3024
- owner: string;
3025
- since: string;
3026
- until?: string | undefined;
3027
- } | undefined;
3028
- }>;
3029
- }, "strip", z.ZodTypeAny, {
3030
- flow: {
3031
- steps: FlowStep[];
3032
- name: string;
3033
- createdAt: number;
3034
- version: number;
3035
- intent?: string | undefined;
3036
- status?: "active" | "quarantined" | "draft" | undefined;
3037
- startPath?: string | undefined;
3038
- template?: string | undefined;
3039
- learned?: {
3040
- state: "open" | "guarded";
3041
- kind: string;
3042
- step: number;
3043
- cleanRuns?: number | undefined;
3044
- }[] | undefined;
3045
- intentId?: string | undefined;
3046
- projectId?: string | undefined;
3047
- fixture?: string | undefined;
3048
- requires?: Predicate[] | undefined;
3049
- ensures?: Predicate[] | undefined;
3050
- author?: {
3051
- agent?: string | undefined;
3052
- person?: string | undefined;
3053
- } | undefined;
3054
- signalTimeoutMs?: number | undefined;
3055
- success?: Predicate | undefined;
3056
- dynamic?: ({
3057
- kind: "testid";
3058
- value: string;
3059
- source?: {
3060
- file: string;
3061
- line: number;
3062
- column?: number | undefined;
3063
- } | undefined;
3064
- } | {
3065
- kind: "role";
3066
- role: string;
3067
- name?: string | undefined;
3068
- of?: number | undefined;
3069
- nth?: number | undefined;
3070
- } | {
3071
- kind: "signal";
3072
- name: string;
3073
- } | {
3074
- kind: "component";
3075
- role?: string | undefined;
3076
- component?: string | undefined;
3077
- source?: {
3078
- file: string;
3079
- line: number;
3080
- column?: number | undefined;
3081
- } | undefined;
3082
- name?: string | undefined;
3083
- })[] | undefined;
3084
- labels?: string[] | undefined;
3085
- needs?: string[] | undefined;
3086
- knownBugs?: {
3087
- summary: string;
3088
- id: string;
3089
- assertions: string[];
3090
- }[] | undefined;
3091
- quarantine?: {
3092
- reason: string;
3093
- owner: string;
3094
- since: string;
3095
- until?: string | undefined;
3096
- } | undefined;
3097
- };
3098
- name: string;
3099
- }, {
3100
- flow: {
3101
- steps: FlowStep[];
3102
- name: string;
3103
- createdAt: number;
3104
- version: number;
3105
- intent?: string | undefined;
3106
- status?: "active" | "quarantined" | "draft" | undefined;
3107
- startPath?: string | undefined;
3108
- template?: string | undefined;
3109
- learned?: {
3110
- state: "open" | "guarded";
3111
- kind: string;
3112
- step: number;
3113
- cleanRuns?: number | undefined;
3114
- }[] | undefined;
3115
- intentId?: string | undefined;
3116
- projectId?: string | undefined;
3117
- fixture?: string | undefined;
3118
- requires?: (Predicate | {
3119
- signal?: string | undefined;
3120
- net?: {
3121
- status?: number | undefined;
3122
- method?: string | undefined;
3123
- urlContains?: string | undefined;
3124
- count?: number | undefined;
3125
- } | undefined;
3126
- state?: {
3127
- path: string;
3128
- hold?: boolean | undefined;
3129
- store?: string | undefined;
3130
- equals?: unknown;
3131
- } | undefined;
3132
- element?: {
3133
- testid?: string | undefined;
3134
- role?: string | undefined;
3135
- name?: string | undefined;
3136
- } | undefined;
3137
- text?: {
3138
- contains: string;
3139
- visible?: boolean | undefined;
3140
- scope?: string | undefined;
3141
- absent?: boolean | undefined;
3142
- } | undefined;
3143
- route?: {
3144
- contains?: string | undefined;
3145
- pathname?: string | undefined;
3146
- } | undefined;
3147
- console?: {
3148
- level?: string | undefined;
3149
- absent?: boolean | undefined;
3150
- } | undefined;
3151
- signalData?: Record<string, unknown> | undefined;
3152
- signalCount?: number | undefined;
3153
- })[] | undefined;
3154
- ensures?: (Predicate | {
3155
- signal?: string | undefined;
3156
- net?: {
3157
- status?: number | undefined;
3158
- method?: string | undefined;
3159
- urlContains?: string | undefined;
3160
- count?: number | undefined;
3161
- } | undefined;
3162
- state?: {
3163
- path: string;
3164
- hold?: boolean | undefined;
3165
- store?: string | undefined;
3166
- equals?: unknown;
3167
- } | undefined;
3168
- element?: {
3169
- testid?: string | undefined;
3170
- role?: string | undefined;
3171
- name?: string | undefined;
3172
- } | undefined;
3173
- text?: {
3174
- contains: string;
3175
- visible?: boolean | undefined;
3176
- scope?: string | undefined;
3177
- absent?: boolean | undefined;
3178
- } | undefined;
3179
- route?: {
3180
- contains?: string | undefined;
3181
- pathname?: string | undefined;
3182
- } | undefined;
3183
- console?: {
3184
- level?: string | undefined;
3185
- absent?: boolean | undefined;
3186
- } | undefined;
3187
- signalData?: Record<string, unknown> | undefined;
3188
- signalCount?: number | undefined;
3189
- })[] | undefined;
3190
- author?: {
3191
- agent?: string | undefined;
3192
- person?: string | undefined;
3193
- } | undefined;
3194
- signalTimeoutMs?: number | undefined;
3195
- success?: Predicate | {
3196
- signal?: string | undefined;
3197
- net?: {
3198
- status?: number | undefined;
3199
- method?: string | undefined;
3200
- urlContains?: string | undefined;
3201
- count?: number | undefined;
3202
- } | undefined;
3203
- state?: {
3204
- path: string;
3205
- hold?: boolean | undefined;
3206
- store?: string | undefined;
3207
- equals?: unknown;
3208
- } | undefined;
3209
- element?: {
3210
- testid?: string | undefined;
3211
- role?: string | undefined;
3212
- name?: string | undefined;
3213
- } | undefined;
3214
- text?: {
3215
- contains: string;
3216
- visible?: boolean | undefined;
3217
- scope?: string | undefined;
3218
- absent?: boolean | undefined;
3219
- } | undefined;
3220
- route?: {
3221
- contains?: string | undefined;
3222
- pathname?: string | undefined;
3223
- } | undefined;
3224
- console?: {
3225
- level?: string | undefined;
3226
- absent?: boolean | undefined;
3227
- } | undefined;
3228
- signalData?: Record<string, unknown> | undefined;
3229
- signalCount?: number | undefined;
3230
- } | undefined;
3231
- dynamic?: ({
3232
- kind: "testid";
3233
- value: string;
3234
- source?: {
3235
- file: string;
3236
- line: number;
3237
- column?: number | undefined;
3238
- } | undefined;
3239
- } | {
3240
- kind: "role";
3241
- role: string;
3242
- name?: string | undefined;
3243
- of?: number | undefined;
3244
- nth?: number | undefined;
3245
- } | {
3246
- kind: "signal";
3247
- name: string;
3248
- } | {
3249
- kind: "component";
3250
- role?: string | undefined;
3251
- component?: string | undefined;
3252
- source?: {
3253
- file: string;
3254
- line: number;
3255
- column?: number | undefined;
3256
- } | undefined;
3257
- name?: string | undefined;
3258
- })[] | undefined;
3259
- labels?: string[] | undefined;
3260
- needs?: string[] | undefined;
3261
- knownBugs?: {
3262
- summary: string;
3263
- id: string;
3264
- assertions: string[];
3265
- }[] | undefined;
3266
- quarantine?: {
3267
- reason: string;
3268
- owner: string;
3269
- since: string;
3270
- until?: string | undefined;
3271
- } | undefined;
3272
- };
3273
- name: string;
3274
- }>;
1189
+ }, z.core.$strip>>;
1190
+ }, z.core.$strip>;
1191
+ }, z.core.$strip>;
3275
1192
  export type RecordedFlow = z.infer<typeof RecordedFlowSchema>;
3276
1193
  /**
3277
1194
  * One replayable-flow chip on the in-page HUD.