@reticlehq/core 1.3.1 → 2.0.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.
- package/README.md +14 -88
- package/dist/brand.d.ts +21 -0
- package/dist/brand.d.ts.map +1 -0
- package/dist/brand.js +16 -0
- package/dist/brand.js.map +1 -0
- package/dist/constants.d.ts +378 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +352 -0
- package/dist/constants.js.map +1 -0
- package/dist/daemon-registry.d.ts +36 -0
- package/dist/daemon-registry.d.ts.map +1 -0
- package/dist/daemon-registry.js +48 -0
- package/dist/daemon-registry.js.map +1 -0
- package/dist/flow-constants.d.ts +175 -0
- package/dist/flow-constants.d.ts.map +1 -0
- package/dist/flow-constants.js +162 -0
- package/dist/flow-constants.js.map +1 -0
- package/dist/flow-types.d.ts +1204 -0
- package/dist/flow-types.d.ts.map +1 -0
- package/dist/flow-types.js +152 -0
- package/dist/flow-types.js.map +1 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -5563
- package/dist/index.js.map +1 -0
- package/dist/messages.d.ts +424 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +103 -0
- package/dist/messages.js.map +1 -0
- package/dist/notices.d.ts +60 -0
- package/dist/notices.d.ts.map +1 -0
- package/dist/notices.js +64 -0
- package/dist/notices.js.map +1 -0
- package/dist/schema/command-message.json +41 -0
- package/dist/schema/command-result.json +34 -0
- package/dist/schema/event-message.json +77 -0
- package/dist/schema/event-type.json +35 -0
- package/dist/schema/hello-message.json +59 -0
- package/dist/schema/reticle-event.json +63 -0
- package/dist/schema/reticle-message.json +193 -0
- package/dist/security.d.ts +5 -0
- package/dist/security.d.ts.map +1 -0
- package/dist/security.js +22 -0
- package/dist/security.js.map +1 -0
- package/dist/session-constants.d.ts +116 -0
- package/dist/session-constants.d.ts.map +1 -0
- package/dist/session-constants.js +113 -0
- package/dist/session-constants.js.map +1 -0
- package/dist/state-select.d.ts +23 -0
- package/dist/state-select.d.ts.map +1 -0
- package/dist/state-select.js +60 -0
- package/dist/state-select.js.map +1 -0
- package/dist/toon.d.ts +44 -0
- package/dist/toon.d.ts.map +1 -0
- package/dist/toon.js +153 -0
- package/dist/toon.js.map +1 -0
- package/dist/types.d.ts +833 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +165 -0
- package/dist/types.js.map +1 -0
- package/dist/upgrade.d.ts +74 -0
- package/dist/upgrade.d.ts.map +1 -0
- package/dist/upgrade.js +87 -0
- package/dist/upgrade.js.map +1 -0
- package/dist/verification-run.d.ts +1195 -0
- package/dist/verification-run.d.ts.map +1 -0
- package/dist/verification-run.js +261 -0
- package/dist/verification-run.js.map +1 -0
- package/package.json +32 -79
- package/dist/babel.d.ts +0 -7
- package/dist/babel.js +0 -32
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -11273
- package/dist/eslint.d.ts +0 -1
- package/dist/eslint.js +0 -134
- package/dist/loader.cjs +0 -52
- package/dist/next.d.ts +0 -21
- package/dist/next.js +0 -24
- package/dist/server.d.ts +0 -1
- package/dist/server.js +0 -9495
- package/dist/test.d.ts +0 -1
- package/dist/test.js +0 -9377
- package/dist/vite.d.ts +0 -1
- package/dist/vite.js +0 -196
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ReticleVerificationRun artifact — the stable, versioned contract a host platform (an OEM/design
|
|
3
|
+
* partner) or CI consumes after Reticle verifies a generated/edited app. It is assembled from data Reticle
|
|
4
|
+
* already produces (flow replay, asserts, evidence timeline, source mapping); this file only defines
|
|
5
|
+
* the WIRE/DISK shape so it can be frozen under semver. Persisted at `.reticle/runs/<runId>.json` and
|
|
6
|
+
* returned by the programmatic Replay/Verify API.
|
|
7
|
+
*
|
|
8
|
+
* Conventions match the rest of `@reticlehq/core`: enums are `as const` objects narrowed with
|
|
9
|
+
* `z.nativeEnum`, timestamps are epoch-ms NUMBERS (the clock is injected — never read inside pure
|
|
10
|
+
* logic), no `any` (opaque evidence is `z.unknown()`), and every domain string is a named constant.
|
|
11
|
+
*/
|
|
12
|
+
import { z } from 'zod';
|
|
13
|
+
/** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */
|
|
14
|
+
export declare const RUN_FILE_VERSION = 1;
|
|
15
|
+
/**
|
|
16
|
+
* A run's identity, branded so it can't be confused with another id (e.g. a flow name) that also feeds
|
|
17
|
+
* path helpers. The schema brands on parse; mint a fresh one with asRunId at a trusted/validated point.
|
|
18
|
+
*/
|
|
19
|
+
export declare const RunIdSchema: z.ZodBranded<z.ZodString, "RunId">;
|
|
20
|
+
export type RunId = z.infer<typeof RunIdSchema>;
|
|
21
|
+
/** Mint a RunId from a raw string — call only at a validated boundary (e.g. behind isValidRunId). */
|
|
22
|
+
export declare const asRunId: (value: string) => RunId;
|
|
23
|
+
/**
|
|
24
|
+
* Retention bound for .reticle/runs/ so disk stays bounded over a long-running pipeline. Pruned
|
|
25
|
+
* oldest-first only once the count exceeds RUN_RETENTION + RUN_RETENTION_SLACK, then back down to
|
|
26
|
+
* RUN_RETENTION — so the O(n) prune is amortized (≈ once per SLACK writes), not paid on every write.
|
|
27
|
+
*/
|
|
28
|
+
export declare const RUN_RETENTION = 500;
|
|
29
|
+
export declare const RUN_RETENTION_SLACK = 100;
|
|
30
|
+
/** Structured outcome when reading a run file fails (never thrown). Mirrors ProjectReadError. */
|
|
31
|
+
export declare const RunReadError: {
|
|
32
|
+
readonly MISSING: "run-missing";
|
|
33
|
+
readonly MALFORMED: "run-malformed";
|
|
34
|
+
};
|
|
35
|
+
export type RunReadError = (typeof RunReadError)[keyof typeof RunReadError];
|
|
36
|
+
/** The overall verdict on a verification run. PARTIAL = some flows passed, some failed/were gated. */
|
|
37
|
+
export declare const VerdictStatus: {
|
|
38
|
+
readonly PASS: "pass";
|
|
39
|
+
readonly FAIL: "fail";
|
|
40
|
+
readonly PARTIAL: "partial";
|
|
41
|
+
};
|
|
42
|
+
export type VerdictStatus = (typeof VerdictStatus)[keyof typeof VerdictStatus];
|
|
43
|
+
/** Per-flow outcome inside a run. HEALED = a drifted anchor was consequence-verified and rebound. */
|
|
44
|
+
export declare const RunFlowStatus: {
|
|
45
|
+
readonly PASS: "pass";
|
|
46
|
+
readonly FAIL: "fail";
|
|
47
|
+
readonly SKIPPED: "skipped";
|
|
48
|
+
readonly HEALED: "healed";
|
|
49
|
+
};
|
|
50
|
+
export type RunFlowStatus = (typeof RunFlowStatus)[keyof typeof RunFlowStatus];
|
|
51
|
+
/** The kind of standalone assertion captured outside a flow (drives `evidence` narrowing downstream). */
|
|
52
|
+
export declare const RunCheckKind: {
|
|
53
|
+
readonly SIGNAL: "signal";
|
|
54
|
+
readonly NETWORK: "network";
|
|
55
|
+
readonly ELEMENT: "element";
|
|
56
|
+
readonly STATE: "state";
|
|
57
|
+
readonly CONSOLE: "console";
|
|
58
|
+
readonly LAYOUT: "layout";
|
|
59
|
+
};
|
|
60
|
+
export type RunCheckKind = (typeof RunCheckKind)[keyof typeof RunCheckKind];
|
|
61
|
+
/** Binary status of a single check. */
|
|
62
|
+
export declare const RunCheckStatus: {
|
|
63
|
+
readonly PASS: "pass";
|
|
64
|
+
readonly FAIL: "fail";
|
|
65
|
+
};
|
|
66
|
+
export type RunCheckStatus = (typeof RunCheckStatus)[keyof typeof RunCheckStatus];
|
|
67
|
+
/**
|
|
68
|
+
* A risk surface a changed file / observed behaviour touches. The governance seed: a host can gate
|
|
69
|
+
* a deploy when a high-severity surface is hit. Mirrors the surfaces real AI-app-builder incidents
|
|
70
|
+
* cluster around (production data loss, auth/payment/RLS mistakes).
|
|
71
|
+
*/
|
|
72
|
+
export declare const RiskSurface: {
|
|
73
|
+
readonly AUTH: "auth";
|
|
74
|
+
readonly PAYMENT: "payment";
|
|
75
|
+
readonly DB: "db";
|
|
76
|
+
readonly MIGRATION: "migration";
|
|
77
|
+
readonly RLS: "rls";
|
|
78
|
+
readonly SECRETS: "secrets";
|
|
79
|
+
readonly DESTRUCTIVE: "destructive";
|
|
80
|
+
readonly EXTERNAL: "external";
|
|
81
|
+
};
|
|
82
|
+
export type RiskSurface = (typeof RiskSurface)[keyof typeof RiskSurface];
|
|
83
|
+
/** Severity of a flagged risk. */
|
|
84
|
+
export declare const RiskSeverity: {
|
|
85
|
+
readonly LOW: "low";
|
|
86
|
+
readonly MEDIUM: "medium";
|
|
87
|
+
readonly HIGH: "high";
|
|
88
|
+
readonly CRITICAL: "critical";
|
|
89
|
+
};
|
|
90
|
+
export type RiskSeverity = (typeof RiskSeverity)[keyof typeof RiskSeverity];
|
|
91
|
+
/** What caused the run (so a host can distinguish an agent's inner loop from a CI gate). */
|
|
92
|
+
export declare const RunTrigger: {
|
|
93
|
+
readonly EDIT: "edit";
|
|
94
|
+
readonly CI: "ci";
|
|
95
|
+
readonly MANUAL: "manual";
|
|
96
|
+
readonly OEM: "oem";
|
|
97
|
+
};
|
|
98
|
+
export type RunTrigger = (typeof RunTrigger)[keyof typeof RunTrigger];
|
|
99
|
+
/** How a changed file changed (drives the risk tagger). */
|
|
100
|
+
export declare const RunChangeKind: {
|
|
101
|
+
readonly ADDED: "added";
|
|
102
|
+
readonly MODIFIED: "modified";
|
|
103
|
+
readonly DELETED: "deleted";
|
|
104
|
+
};
|
|
105
|
+
export type RunChangeKind = (typeof RunChangeKind)[keyof typeof RunChangeKind];
|
|
106
|
+
/** Who/what drove the run. */
|
|
107
|
+
export declare const RunAgentKind: {
|
|
108
|
+
readonly CODING_AGENT: "coding-agent";
|
|
109
|
+
readonly OEM_PIPELINE: "oem-pipeline";
|
|
110
|
+
readonly HUMAN: "human";
|
|
111
|
+
};
|
|
112
|
+
export type RunAgentKind = (typeof RunAgentKind)[keyof typeof RunAgentKind];
|
|
113
|
+
/** The app framework, when known. */
|
|
114
|
+
export declare const RunFramework: {
|
|
115
|
+
readonly REACT: "react";
|
|
116
|
+
readonly NEXT: "next";
|
|
117
|
+
readonly VITE: "vite";
|
|
118
|
+
readonly OTHER: "other";
|
|
119
|
+
};
|
|
120
|
+
export type RunFramework = (typeof RunFramework)[keyof typeof RunFramework];
|
|
121
|
+
/** Where the run executed. */
|
|
122
|
+
export declare const RunEnv: {
|
|
123
|
+
readonly PREVIEW: "preview";
|
|
124
|
+
readonly CI: "ci";
|
|
125
|
+
readonly LOCAL: "local";
|
|
126
|
+
};
|
|
127
|
+
export type RunEnv = (typeof RunEnv)[keyof typeof RunEnv];
|
|
128
|
+
/** Verdict confidence. */
|
|
129
|
+
export declare const RunConfidence: {
|
|
130
|
+
readonly HIGH: "high";
|
|
131
|
+
readonly MEDIUM: "medium";
|
|
132
|
+
readonly LOW: "low";
|
|
133
|
+
};
|
|
134
|
+
export type RunConfidence = (typeof RunConfidence)[keyof typeof RunConfidence];
|
|
135
|
+
/**
|
|
136
|
+
* The data profile a run was produced under. DEV exposes dev-only fields (source file:line, raw
|
|
137
|
+
* network bodies, full state dumps); PROD_PREVIEW redacts them. The artifact records which profile
|
|
138
|
+
* produced it so a consumer can never mistake a redacted run for a complete one.
|
|
139
|
+
*/
|
|
140
|
+
export declare const RunProfile: {
|
|
141
|
+
readonly DEV: "dev";
|
|
142
|
+
readonly PROD_PREVIEW: "prod-preview";
|
|
143
|
+
};
|
|
144
|
+
export type RunProfile = (typeof RunProfile)[keyof typeof RunProfile];
|
|
145
|
+
/** A source coordinate, when source mapping is available (DEV profile only). */
|
|
146
|
+
export declare const SourceLocationSchema: z.ZodObject<{
|
|
147
|
+
file: z.ZodString;
|
|
148
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
component: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
file: string;
|
|
152
|
+
component?: string | undefined;
|
|
153
|
+
line?: number | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
file: string;
|
|
156
|
+
component?: string | undefined;
|
|
157
|
+
line?: number | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
export type SourceLocation = z.infer<typeof SourceLocationSchema>;
|
|
160
|
+
/** A file the change set touched, with the risk surfaces it implicates. */
|
|
161
|
+
export declare const RunChangedFileSchema: z.ZodObject<{
|
|
162
|
+
path: z.ZodString;
|
|
163
|
+
changeKind: z.ZodNativeEnum<{
|
|
164
|
+
readonly ADDED: "added";
|
|
165
|
+
readonly MODIFIED: "modified";
|
|
166
|
+
readonly DELETED: "deleted";
|
|
167
|
+
}>;
|
|
168
|
+
risk: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<{
|
|
169
|
+
readonly AUTH: "auth";
|
|
170
|
+
readonly PAYMENT: "payment";
|
|
171
|
+
readonly DB: "db";
|
|
172
|
+
readonly MIGRATION: "migration";
|
|
173
|
+
readonly RLS: "rls";
|
|
174
|
+
readonly SECRETS: "secrets";
|
|
175
|
+
readonly DESTRUCTIVE: "destructive";
|
|
176
|
+
readonly EXTERNAL: "external";
|
|
177
|
+
}>, "many">>;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
path: string;
|
|
180
|
+
changeKind: "added" | "modified" | "deleted";
|
|
181
|
+
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
182
|
+
}, {
|
|
183
|
+
path: string;
|
|
184
|
+
changeKind: "added" | "modified" | "deleted";
|
|
185
|
+
risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
|
|
186
|
+
}>;
|
|
187
|
+
export type RunChangedFile = z.infer<typeof RunChangedFileSchema>;
|
|
188
|
+
/** A flow that was replayed as part of the run. */
|
|
189
|
+
export declare const RunFlowResultSchema: z.ZodObject<{
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
status: z.ZodNativeEnum<{
|
|
192
|
+
readonly PASS: "pass";
|
|
193
|
+
readonly FAIL: "fail";
|
|
194
|
+
readonly SKIPPED: "skipped";
|
|
195
|
+
readonly HEALED: "healed";
|
|
196
|
+
}>;
|
|
197
|
+
steps: z.ZodNumber;
|
|
198
|
+
durationMs: z.ZodNumber;
|
|
199
|
+
oracle: z.ZodOptional<z.ZodString>;
|
|
200
|
+
healed: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
from: z.ZodString;
|
|
202
|
+
to: z.ZodString;
|
|
203
|
+
consequenceVerified: z.ZodBoolean;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
from: string;
|
|
206
|
+
to: string;
|
|
207
|
+
consequenceVerified: boolean;
|
|
208
|
+
}, {
|
|
209
|
+
from: string;
|
|
210
|
+
to: string;
|
|
211
|
+
consequenceVerified: boolean;
|
|
212
|
+
}>>;
|
|
213
|
+
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
214
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
status: "pass" | "fail" | "healed" | "skipped";
|
|
217
|
+
name: string;
|
|
218
|
+
steps: number;
|
|
219
|
+
durationMs: number;
|
|
220
|
+
healed?: {
|
|
221
|
+
from: string;
|
|
222
|
+
to: string;
|
|
223
|
+
consequenceVerified: boolean;
|
|
224
|
+
} | undefined;
|
|
225
|
+
oracle?: string | undefined;
|
|
226
|
+
evidenceRef?: string | undefined;
|
|
227
|
+
failureReason?: string | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
status: "pass" | "fail" | "healed" | "skipped";
|
|
230
|
+
name: string;
|
|
231
|
+
steps: number;
|
|
232
|
+
durationMs: number;
|
|
233
|
+
healed?: {
|
|
234
|
+
from: string;
|
|
235
|
+
to: string;
|
|
236
|
+
consequenceVerified: boolean;
|
|
237
|
+
} | undefined;
|
|
238
|
+
oracle?: string | undefined;
|
|
239
|
+
evidenceRef?: string | undefined;
|
|
240
|
+
failureReason?: string | undefined;
|
|
241
|
+
}>;
|
|
242
|
+
export type RunFlowResult = z.infer<typeof RunFlowResultSchema>;
|
|
243
|
+
/** A standalone assertion not tied to a flow. `evidence` is opaque (narrowed per kind by the caller). */
|
|
244
|
+
export declare const RunCheckSchema: z.ZodObject<{
|
|
245
|
+
kind: z.ZodNativeEnum<{
|
|
246
|
+
readonly SIGNAL: "signal";
|
|
247
|
+
readonly NETWORK: "network";
|
|
248
|
+
readonly ELEMENT: "element";
|
|
249
|
+
readonly STATE: "state";
|
|
250
|
+
readonly CONSOLE: "console";
|
|
251
|
+
readonly LAYOUT: "layout";
|
|
252
|
+
}>;
|
|
253
|
+
predicate: z.ZodString;
|
|
254
|
+
status: z.ZodNativeEnum<{
|
|
255
|
+
readonly PASS: "pass";
|
|
256
|
+
readonly FAIL: "fail";
|
|
257
|
+
}>;
|
|
258
|
+
evidence: z.ZodOptional<z.ZodUnknown>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
status: "pass" | "fail";
|
|
261
|
+
kind: "signal" | "console" | "element" | "state" | "network" | "layout";
|
|
262
|
+
predicate: string;
|
|
263
|
+
evidence?: unknown;
|
|
264
|
+
}, {
|
|
265
|
+
status: "pass" | "fail";
|
|
266
|
+
kind: "signal" | "console" | "element" | "state" | "network" | "layout";
|
|
267
|
+
predicate: string;
|
|
268
|
+
evidence?: unknown;
|
|
269
|
+
}>;
|
|
270
|
+
export type RunCheck = z.infer<typeof RunCheckSchema>;
|
|
271
|
+
/** A flagged risk. `gated` = a policy gate tripped on this surface. */
|
|
272
|
+
export declare const RunRiskSchema: z.ZodObject<{
|
|
273
|
+
surface: z.ZodNativeEnum<{
|
|
274
|
+
readonly AUTH: "auth";
|
|
275
|
+
readonly PAYMENT: "payment";
|
|
276
|
+
readonly DB: "db";
|
|
277
|
+
readonly MIGRATION: "migration";
|
|
278
|
+
readonly RLS: "rls";
|
|
279
|
+
readonly SECRETS: "secrets";
|
|
280
|
+
readonly DESTRUCTIVE: "destructive";
|
|
281
|
+
readonly EXTERNAL: "external";
|
|
282
|
+
}>;
|
|
283
|
+
severity: z.ZodNativeEnum<{
|
|
284
|
+
readonly LOW: "low";
|
|
285
|
+
readonly MEDIUM: "medium";
|
|
286
|
+
readonly HIGH: "high";
|
|
287
|
+
readonly CRITICAL: "critical";
|
|
288
|
+
}>;
|
|
289
|
+
detail: z.ZodString;
|
|
290
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
file: z.ZodOptional<z.ZodString>;
|
|
292
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
293
|
+
network: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
file?: string | undefined;
|
|
296
|
+
line?: number | undefined;
|
|
297
|
+
network?: string | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
file?: string | undefined;
|
|
300
|
+
line?: number | undefined;
|
|
301
|
+
network?: string | undefined;
|
|
302
|
+
}>>;
|
|
303
|
+
gated: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
306
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
307
|
+
detail: string;
|
|
308
|
+
gated: boolean;
|
|
309
|
+
evidence?: {
|
|
310
|
+
file?: string | undefined;
|
|
311
|
+
line?: number | undefined;
|
|
312
|
+
network?: string | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
316
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
317
|
+
detail: string;
|
|
318
|
+
evidence?: {
|
|
319
|
+
file?: string | undefined;
|
|
320
|
+
line?: number | undefined;
|
|
321
|
+
network?: string | undefined;
|
|
322
|
+
} | undefined;
|
|
323
|
+
gated?: boolean | undefined;
|
|
324
|
+
}>;
|
|
325
|
+
export type RunRisk = z.infer<typeof RunRiskSchema>;
|
|
326
|
+
/** The cross-layer evidence behind the verdict. Raw bodies / full state appear only under DEV profile. */
|
|
327
|
+
export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
328
|
+
consoleErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
329
|
+
level: z.ZodString;
|
|
330
|
+
message: z.ZodString;
|
|
331
|
+
at: z.ZodNumber;
|
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
message: string;
|
|
334
|
+
at: number;
|
|
335
|
+
level: string;
|
|
336
|
+
}, {
|
|
337
|
+
message: string;
|
|
338
|
+
at: number;
|
|
339
|
+
level: string;
|
|
340
|
+
}>, "many">>;
|
|
341
|
+
networkAnomalies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
342
|
+
method: z.ZodString;
|
|
343
|
+
url: z.ZodString;
|
|
344
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
issue: z.ZodString;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
url: string;
|
|
348
|
+
method: string;
|
|
349
|
+
issue: string;
|
|
350
|
+
status?: number | undefined;
|
|
351
|
+
}, {
|
|
352
|
+
url: string;
|
|
353
|
+
method: string;
|
|
354
|
+
issue: string;
|
|
355
|
+
status?: number | undefined;
|
|
356
|
+
}>, "many">>;
|
|
357
|
+
stateAssertions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
358
|
+
store: z.ZodString;
|
|
359
|
+
path: z.ZodString;
|
|
360
|
+
expected: z.ZodUnknown;
|
|
361
|
+
actual: z.ZodUnknown;
|
|
362
|
+
ok: z.ZodBoolean;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
ok: boolean;
|
|
365
|
+
path: string;
|
|
366
|
+
store: string;
|
|
367
|
+
expected?: unknown;
|
|
368
|
+
actual?: unknown;
|
|
369
|
+
}, {
|
|
370
|
+
ok: boolean;
|
|
371
|
+
path: string;
|
|
372
|
+
store: string;
|
|
373
|
+
expected?: unknown;
|
|
374
|
+
actual?: unknown;
|
|
375
|
+
}>, "many">>;
|
|
376
|
+
timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
377
|
+
at: z.ZodNumber;
|
|
378
|
+
kind: z.ZodString;
|
|
379
|
+
summary: z.ZodString;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
at: number;
|
|
382
|
+
kind: string;
|
|
383
|
+
summary: string;
|
|
384
|
+
}, {
|
|
385
|
+
at: number;
|
|
386
|
+
kind: string;
|
|
387
|
+
summary: string;
|
|
388
|
+
}>, "many">>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
consoleErrors: {
|
|
391
|
+
message: string;
|
|
392
|
+
at: number;
|
|
393
|
+
level: string;
|
|
394
|
+
}[];
|
|
395
|
+
networkAnomalies: {
|
|
396
|
+
url: string;
|
|
397
|
+
method: string;
|
|
398
|
+
issue: string;
|
|
399
|
+
status?: number | undefined;
|
|
400
|
+
}[];
|
|
401
|
+
stateAssertions: {
|
|
402
|
+
ok: boolean;
|
|
403
|
+
path: string;
|
|
404
|
+
store: string;
|
|
405
|
+
expected?: unknown;
|
|
406
|
+
actual?: unknown;
|
|
407
|
+
}[];
|
|
408
|
+
timeline: {
|
|
409
|
+
at: number;
|
|
410
|
+
kind: string;
|
|
411
|
+
summary: string;
|
|
412
|
+
}[];
|
|
413
|
+
}, {
|
|
414
|
+
consoleErrors?: {
|
|
415
|
+
message: string;
|
|
416
|
+
at: number;
|
|
417
|
+
level: string;
|
|
418
|
+
}[] | undefined;
|
|
419
|
+
networkAnomalies?: {
|
|
420
|
+
url: string;
|
|
421
|
+
method: string;
|
|
422
|
+
issue: string;
|
|
423
|
+
status?: number | undefined;
|
|
424
|
+
}[] | undefined;
|
|
425
|
+
stateAssertions?: {
|
|
426
|
+
ok: boolean;
|
|
427
|
+
path: string;
|
|
428
|
+
store: string;
|
|
429
|
+
expected?: unknown;
|
|
430
|
+
actual?: unknown;
|
|
431
|
+
}[] | undefined;
|
|
432
|
+
timeline?: {
|
|
433
|
+
at: number;
|
|
434
|
+
kind: string;
|
|
435
|
+
summary: string;
|
|
436
|
+
}[] | undefined;
|
|
437
|
+
}>;
|
|
438
|
+
/** One paste-ready fix instruction for the host's coding agent. */
|
|
439
|
+
export declare const RepairPacketSchema: z.ZodObject<{
|
|
440
|
+
flow: z.ZodOptional<z.ZodString>;
|
|
441
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
442
|
+
expected: z.ZodString;
|
|
443
|
+
actual: z.ZodString;
|
|
444
|
+
sourceLocation: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
file: z.ZodString;
|
|
446
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
component: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, "strip", z.ZodTypeAny, {
|
|
449
|
+
file: string;
|
|
450
|
+
component?: string | undefined;
|
|
451
|
+
line?: number | undefined;
|
|
452
|
+
}, {
|
|
453
|
+
file: string;
|
|
454
|
+
component?: string | undefined;
|
|
455
|
+
line?: number | undefined;
|
|
456
|
+
}>>;
|
|
457
|
+
suggestedPrompt: z.ZodString;
|
|
458
|
+
}, "strip", z.ZodTypeAny, {
|
|
459
|
+
expected: string;
|
|
460
|
+
actual: string;
|
|
461
|
+
suggestedPrompt: string;
|
|
462
|
+
step?: number | undefined;
|
|
463
|
+
flow?: string | undefined;
|
|
464
|
+
sourceLocation?: {
|
|
465
|
+
file: string;
|
|
466
|
+
component?: string | undefined;
|
|
467
|
+
line?: number | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
}, {
|
|
470
|
+
expected: string;
|
|
471
|
+
actual: string;
|
|
472
|
+
suggestedPrompt: string;
|
|
473
|
+
step?: number | undefined;
|
|
474
|
+
flow?: string | undefined;
|
|
475
|
+
sourceLocation?: {
|
|
476
|
+
file: string;
|
|
477
|
+
component?: string | undefined;
|
|
478
|
+
line?: number | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
}>;
|
|
481
|
+
export type RepairPacket = z.infer<typeof RepairPacketSchema>;
|
|
482
|
+
/** The verdict block — what a deploy gate reads. */
|
|
483
|
+
export declare const RunVerdictSchema: z.ZodObject<{
|
|
484
|
+
status: z.ZodNativeEnum<{
|
|
485
|
+
readonly PASS: "pass";
|
|
486
|
+
readonly FAIL: "fail";
|
|
487
|
+
readonly PARTIAL: "partial";
|
|
488
|
+
}>;
|
|
489
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
490
|
+
confidence: z.ZodNativeEnum<{
|
|
491
|
+
readonly HIGH: "high";
|
|
492
|
+
readonly MEDIUM: "medium";
|
|
493
|
+
readonly LOW: "low";
|
|
494
|
+
}>;
|
|
495
|
+
blockingRisks: z.ZodDefault<z.ZodNumber>;
|
|
496
|
+
}, "strip", z.ZodTypeAny, {
|
|
497
|
+
status: "pass" | "fail" | "partial";
|
|
498
|
+
reasons: string[];
|
|
499
|
+
confidence: "low" | "medium" | "high";
|
|
500
|
+
blockingRisks: number;
|
|
501
|
+
}, {
|
|
502
|
+
status: "pass" | "fail" | "partial";
|
|
503
|
+
confidence: "low" | "medium" | "high";
|
|
504
|
+
reasons?: string[] | undefined;
|
|
505
|
+
blockingRisks?: number | undefined;
|
|
506
|
+
}>;
|
|
507
|
+
export type RunVerdict = z.infer<typeof RunVerdictSchema>;
|
|
508
|
+
/** Optional tamper-evidence signature over the run (for audit; populated later). */
|
|
509
|
+
export declare const RunSignatureSchema: z.ZodObject<{
|
|
510
|
+
alg: z.ZodString;
|
|
511
|
+
value: z.ZodString;
|
|
512
|
+
signedAt: z.ZodNumber;
|
|
513
|
+
}, "strip", z.ZodTypeAny, {
|
|
514
|
+
value: string;
|
|
515
|
+
alg: string;
|
|
516
|
+
signedAt: number;
|
|
517
|
+
}, {
|
|
518
|
+
value: string;
|
|
519
|
+
alg: string;
|
|
520
|
+
signedAt: number;
|
|
521
|
+
}>;
|
|
522
|
+
/**
|
|
523
|
+
* The top-level verification-run artifact. Stable contract — additive changes only within
|
|
524
|
+
* RUN_FILE_VERSION 1; a breaking change bumps the version. Arrays default to empty so a minimal
|
|
525
|
+
* run (e.g. a single smoke flow) still validates.
|
|
526
|
+
*/
|
|
527
|
+
export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
528
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
529
|
+
runId: z.ZodBranded<z.ZodString, "RunId">;
|
|
530
|
+
createdAt: z.ZodNumber;
|
|
531
|
+
durationMs: z.ZodNumber;
|
|
532
|
+
profile: z.ZodNativeEnum<{
|
|
533
|
+
readonly DEV: "dev";
|
|
534
|
+
readonly PROD_PREVIEW: "prod-preview";
|
|
535
|
+
}>;
|
|
536
|
+
project: z.ZodObject<{
|
|
537
|
+
name: z.ZodString;
|
|
538
|
+
framework: z.ZodNativeEnum<{
|
|
539
|
+
readonly REACT: "react";
|
|
540
|
+
readonly NEXT: "next";
|
|
541
|
+
readonly VITE: "vite";
|
|
542
|
+
readonly OTHER: "other";
|
|
543
|
+
}>;
|
|
544
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
545
|
+
env: z.ZodOptional<z.ZodNativeEnum<{
|
|
546
|
+
readonly PREVIEW: "preview";
|
|
547
|
+
readonly CI: "ci";
|
|
548
|
+
readonly LOCAL: "local";
|
|
549
|
+
}>>;
|
|
550
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
name: string;
|
|
553
|
+
framework: "react" | "next" | "vite" | "other";
|
|
554
|
+
commit?: string | undefined;
|
|
555
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
556
|
+
previewUrl?: string | undefined;
|
|
557
|
+
}, {
|
|
558
|
+
name: string;
|
|
559
|
+
framework: "react" | "next" | "vite" | "other";
|
|
560
|
+
commit?: string | undefined;
|
|
561
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
562
|
+
previewUrl?: string | undefined;
|
|
563
|
+
}>;
|
|
564
|
+
agent: z.ZodObject<{
|
|
565
|
+
id: z.ZodString;
|
|
566
|
+
kind: z.ZodNativeEnum<{
|
|
567
|
+
readonly CODING_AGENT: "coding-agent";
|
|
568
|
+
readonly OEM_PIPELINE: "oem-pipeline";
|
|
569
|
+
readonly HUMAN: "human";
|
|
570
|
+
}>;
|
|
571
|
+
model: z.ZodOptional<z.ZodString>;
|
|
572
|
+
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
574
|
+
id: string;
|
|
575
|
+
model?: string | undefined;
|
|
576
|
+
}, {
|
|
577
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
578
|
+
id: string;
|
|
579
|
+
model?: string | undefined;
|
|
580
|
+
}>;
|
|
581
|
+
trigger: z.ZodObject<{
|
|
582
|
+
kind: z.ZodNativeEnum<{
|
|
583
|
+
readonly EDIT: "edit";
|
|
584
|
+
readonly CI: "ci";
|
|
585
|
+
readonly MANUAL: "manual";
|
|
586
|
+
readonly OEM: "oem";
|
|
587
|
+
}>;
|
|
588
|
+
diffRef: z.ZodOptional<z.ZodString>;
|
|
589
|
+
note: z.ZodOptional<z.ZodString>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
kind: "manual" | "edit" | "ci" | "oem";
|
|
592
|
+
note?: string | undefined;
|
|
593
|
+
diffRef?: string | undefined;
|
|
594
|
+
}, {
|
|
595
|
+
kind: "manual" | "edit" | "ci" | "oem";
|
|
596
|
+
note?: string | undefined;
|
|
597
|
+
diffRef?: string | undefined;
|
|
598
|
+
}>;
|
|
599
|
+
changedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
600
|
+
path: z.ZodString;
|
|
601
|
+
changeKind: z.ZodNativeEnum<{
|
|
602
|
+
readonly ADDED: "added";
|
|
603
|
+
readonly MODIFIED: "modified";
|
|
604
|
+
readonly DELETED: "deleted";
|
|
605
|
+
}>;
|
|
606
|
+
risk: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<{
|
|
607
|
+
readonly AUTH: "auth";
|
|
608
|
+
readonly PAYMENT: "payment";
|
|
609
|
+
readonly DB: "db";
|
|
610
|
+
readonly MIGRATION: "migration";
|
|
611
|
+
readonly RLS: "rls";
|
|
612
|
+
readonly SECRETS: "secrets";
|
|
613
|
+
readonly DESTRUCTIVE: "destructive";
|
|
614
|
+
readonly EXTERNAL: "external";
|
|
615
|
+
}>, "many">>;
|
|
616
|
+
}, "strip", z.ZodTypeAny, {
|
|
617
|
+
path: string;
|
|
618
|
+
changeKind: "added" | "modified" | "deleted";
|
|
619
|
+
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
620
|
+
}, {
|
|
621
|
+
path: string;
|
|
622
|
+
changeKind: "added" | "modified" | "deleted";
|
|
623
|
+
risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
|
|
624
|
+
}>, "many">>;
|
|
625
|
+
flows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
626
|
+
name: z.ZodString;
|
|
627
|
+
status: z.ZodNativeEnum<{
|
|
628
|
+
readonly PASS: "pass";
|
|
629
|
+
readonly FAIL: "fail";
|
|
630
|
+
readonly SKIPPED: "skipped";
|
|
631
|
+
readonly HEALED: "healed";
|
|
632
|
+
}>;
|
|
633
|
+
steps: z.ZodNumber;
|
|
634
|
+
durationMs: z.ZodNumber;
|
|
635
|
+
oracle: z.ZodOptional<z.ZodString>;
|
|
636
|
+
healed: z.ZodOptional<z.ZodObject<{
|
|
637
|
+
from: z.ZodString;
|
|
638
|
+
to: z.ZodString;
|
|
639
|
+
consequenceVerified: z.ZodBoolean;
|
|
640
|
+
}, "strip", z.ZodTypeAny, {
|
|
641
|
+
from: string;
|
|
642
|
+
to: string;
|
|
643
|
+
consequenceVerified: boolean;
|
|
644
|
+
}, {
|
|
645
|
+
from: string;
|
|
646
|
+
to: string;
|
|
647
|
+
consequenceVerified: boolean;
|
|
648
|
+
}>>;
|
|
649
|
+
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
650
|
+
failureReason: z.ZodOptional<z.ZodString>;
|
|
651
|
+
}, "strip", z.ZodTypeAny, {
|
|
652
|
+
status: "pass" | "fail" | "healed" | "skipped";
|
|
653
|
+
name: string;
|
|
654
|
+
steps: number;
|
|
655
|
+
durationMs: number;
|
|
656
|
+
healed?: {
|
|
657
|
+
from: string;
|
|
658
|
+
to: string;
|
|
659
|
+
consequenceVerified: boolean;
|
|
660
|
+
} | undefined;
|
|
661
|
+
oracle?: string | undefined;
|
|
662
|
+
evidenceRef?: string | undefined;
|
|
663
|
+
failureReason?: string | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
status: "pass" | "fail" | "healed" | "skipped";
|
|
666
|
+
name: string;
|
|
667
|
+
steps: number;
|
|
668
|
+
durationMs: number;
|
|
669
|
+
healed?: {
|
|
670
|
+
from: string;
|
|
671
|
+
to: string;
|
|
672
|
+
consequenceVerified: boolean;
|
|
673
|
+
} | undefined;
|
|
674
|
+
oracle?: string | undefined;
|
|
675
|
+
evidenceRef?: string | undefined;
|
|
676
|
+
failureReason?: string | undefined;
|
|
677
|
+
}>, "many">>;
|
|
678
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
679
|
+
kind: z.ZodNativeEnum<{
|
|
680
|
+
readonly SIGNAL: "signal";
|
|
681
|
+
readonly NETWORK: "network";
|
|
682
|
+
readonly ELEMENT: "element";
|
|
683
|
+
readonly STATE: "state";
|
|
684
|
+
readonly CONSOLE: "console";
|
|
685
|
+
readonly LAYOUT: "layout";
|
|
686
|
+
}>;
|
|
687
|
+
predicate: z.ZodString;
|
|
688
|
+
status: z.ZodNativeEnum<{
|
|
689
|
+
readonly PASS: "pass";
|
|
690
|
+
readonly FAIL: "fail";
|
|
691
|
+
}>;
|
|
692
|
+
evidence: z.ZodOptional<z.ZodUnknown>;
|
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
|
694
|
+
status: "pass" | "fail";
|
|
695
|
+
kind: "signal" | "console" | "element" | "state" | "network" | "layout";
|
|
696
|
+
predicate: string;
|
|
697
|
+
evidence?: unknown;
|
|
698
|
+
}, {
|
|
699
|
+
status: "pass" | "fail";
|
|
700
|
+
kind: "signal" | "console" | "element" | "state" | "network" | "layout";
|
|
701
|
+
predicate: string;
|
|
702
|
+
evidence?: unknown;
|
|
703
|
+
}>, "many">>;
|
|
704
|
+
risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
705
|
+
surface: z.ZodNativeEnum<{
|
|
706
|
+
readonly AUTH: "auth";
|
|
707
|
+
readonly PAYMENT: "payment";
|
|
708
|
+
readonly DB: "db";
|
|
709
|
+
readonly MIGRATION: "migration";
|
|
710
|
+
readonly RLS: "rls";
|
|
711
|
+
readonly SECRETS: "secrets";
|
|
712
|
+
readonly DESTRUCTIVE: "destructive";
|
|
713
|
+
readonly EXTERNAL: "external";
|
|
714
|
+
}>;
|
|
715
|
+
severity: z.ZodNativeEnum<{
|
|
716
|
+
readonly LOW: "low";
|
|
717
|
+
readonly MEDIUM: "medium";
|
|
718
|
+
readonly HIGH: "high";
|
|
719
|
+
readonly CRITICAL: "critical";
|
|
720
|
+
}>;
|
|
721
|
+
detail: z.ZodString;
|
|
722
|
+
evidence: z.ZodOptional<z.ZodObject<{
|
|
723
|
+
file: z.ZodOptional<z.ZodString>;
|
|
724
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
725
|
+
network: z.ZodOptional<z.ZodString>;
|
|
726
|
+
}, "strip", z.ZodTypeAny, {
|
|
727
|
+
file?: string | undefined;
|
|
728
|
+
line?: number | undefined;
|
|
729
|
+
network?: string | undefined;
|
|
730
|
+
}, {
|
|
731
|
+
file?: string | undefined;
|
|
732
|
+
line?: number | undefined;
|
|
733
|
+
network?: string | undefined;
|
|
734
|
+
}>>;
|
|
735
|
+
gated: z.ZodDefault<z.ZodBoolean>;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
738
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
739
|
+
detail: string;
|
|
740
|
+
gated: boolean;
|
|
741
|
+
evidence?: {
|
|
742
|
+
file?: string | undefined;
|
|
743
|
+
line?: number | undefined;
|
|
744
|
+
network?: string | undefined;
|
|
745
|
+
} | undefined;
|
|
746
|
+
}, {
|
|
747
|
+
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
748
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
749
|
+
detail: string;
|
|
750
|
+
evidence?: {
|
|
751
|
+
file?: string | undefined;
|
|
752
|
+
line?: number | undefined;
|
|
753
|
+
network?: string | undefined;
|
|
754
|
+
} | undefined;
|
|
755
|
+
gated?: boolean | undefined;
|
|
756
|
+
}>, "many">>;
|
|
757
|
+
evidence: z.ZodObject<{
|
|
758
|
+
consoleErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
759
|
+
level: z.ZodString;
|
|
760
|
+
message: z.ZodString;
|
|
761
|
+
at: z.ZodNumber;
|
|
762
|
+
}, "strip", z.ZodTypeAny, {
|
|
763
|
+
message: string;
|
|
764
|
+
at: number;
|
|
765
|
+
level: string;
|
|
766
|
+
}, {
|
|
767
|
+
message: string;
|
|
768
|
+
at: number;
|
|
769
|
+
level: string;
|
|
770
|
+
}>, "many">>;
|
|
771
|
+
networkAnomalies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
772
|
+
method: z.ZodString;
|
|
773
|
+
url: z.ZodString;
|
|
774
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
775
|
+
issue: z.ZodString;
|
|
776
|
+
}, "strip", z.ZodTypeAny, {
|
|
777
|
+
url: string;
|
|
778
|
+
method: string;
|
|
779
|
+
issue: string;
|
|
780
|
+
status?: number | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
url: string;
|
|
783
|
+
method: string;
|
|
784
|
+
issue: string;
|
|
785
|
+
status?: number | undefined;
|
|
786
|
+
}>, "many">>;
|
|
787
|
+
stateAssertions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
788
|
+
store: z.ZodString;
|
|
789
|
+
path: z.ZodString;
|
|
790
|
+
expected: z.ZodUnknown;
|
|
791
|
+
actual: z.ZodUnknown;
|
|
792
|
+
ok: z.ZodBoolean;
|
|
793
|
+
}, "strip", z.ZodTypeAny, {
|
|
794
|
+
ok: boolean;
|
|
795
|
+
path: string;
|
|
796
|
+
store: string;
|
|
797
|
+
expected?: unknown;
|
|
798
|
+
actual?: unknown;
|
|
799
|
+
}, {
|
|
800
|
+
ok: boolean;
|
|
801
|
+
path: string;
|
|
802
|
+
store: string;
|
|
803
|
+
expected?: unknown;
|
|
804
|
+
actual?: unknown;
|
|
805
|
+
}>, "many">>;
|
|
806
|
+
timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
807
|
+
at: z.ZodNumber;
|
|
808
|
+
kind: z.ZodString;
|
|
809
|
+
summary: z.ZodString;
|
|
810
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
|
+
at: number;
|
|
812
|
+
kind: string;
|
|
813
|
+
summary: string;
|
|
814
|
+
}, {
|
|
815
|
+
at: number;
|
|
816
|
+
kind: string;
|
|
817
|
+
summary: string;
|
|
818
|
+
}>, "many">>;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
consoleErrors: {
|
|
821
|
+
message: string;
|
|
822
|
+
at: number;
|
|
823
|
+
level: string;
|
|
824
|
+
}[];
|
|
825
|
+
networkAnomalies: {
|
|
826
|
+
url: string;
|
|
827
|
+
method: string;
|
|
828
|
+
issue: string;
|
|
829
|
+
status?: number | undefined;
|
|
830
|
+
}[];
|
|
831
|
+
stateAssertions: {
|
|
832
|
+
ok: boolean;
|
|
833
|
+
path: string;
|
|
834
|
+
store: string;
|
|
835
|
+
expected?: unknown;
|
|
836
|
+
actual?: unknown;
|
|
837
|
+
}[];
|
|
838
|
+
timeline: {
|
|
839
|
+
at: number;
|
|
840
|
+
kind: string;
|
|
841
|
+
summary: string;
|
|
842
|
+
}[];
|
|
843
|
+
}, {
|
|
844
|
+
consoleErrors?: {
|
|
845
|
+
message: string;
|
|
846
|
+
at: number;
|
|
847
|
+
level: string;
|
|
848
|
+
}[] | undefined;
|
|
849
|
+
networkAnomalies?: {
|
|
850
|
+
url: string;
|
|
851
|
+
method: string;
|
|
852
|
+
issue: string;
|
|
853
|
+
status?: number | undefined;
|
|
854
|
+
}[] | undefined;
|
|
855
|
+
stateAssertions?: {
|
|
856
|
+
ok: boolean;
|
|
857
|
+
path: string;
|
|
858
|
+
store: string;
|
|
859
|
+
expected?: unknown;
|
|
860
|
+
actual?: unknown;
|
|
861
|
+
}[] | undefined;
|
|
862
|
+
timeline?: {
|
|
863
|
+
at: number;
|
|
864
|
+
kind: string;
|
|
865
|
+
summary: string;
|
|
866
|
+
}[] | undefined;
|
|
867
|
+
}>;
|
|
868
|
+
repair: z.ZodOptional<z.ZodObject<{
|
|
869
|
+
failurePackets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
870
|
+
flow: z.ZodOptional<z.ZodString>;
|
|
871
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
872
|
+
expected: z.ZodString;
|
|
873
|
+
actual: z.ZodString;
|
|
874
|
+
sourceLocation: z.ZodOptional<z.ZodObject<{
|
|
875
|
+
file: z.ZodString;
|
|
876
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
component: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
file: string;
|
|
880
|
+
component?: string | undefined;
|
|
881
|
+
line?: number | undefined;
|
|
882
|
+
}, {
|
|
883
|
+
file: string;
|
|
884
|
+
component?: string | undefined;
|
|
885
|
+
line?: number | undefined;
|
|
886
|
+
}>>;
|
|
887
|
+
suggestedPrompt: z.ZodString;
|
|
888
|
+
}, "strip", z.ZodTypeAny, {
|
|
889
|
+
expected: string;
|
|
890
|
+
actual: string;
|
|
891
|
+
suggestedPrompt: string;
|
|
892
|
+
step?: number | undefined;
|
|
893
|
+
flow?: string | undefined;
|
|
894
|
+
sourceLocation?: {
|
|
895
|
+
file: string;
|
|
896
|
+
component?: string | undefined;
|
|
897
|
+
line?: number | undefined;
|
|
898
|
+
} | undefined;
|
|
899
|
+
}, {
|
|
900
|
+
expected: string;
|
|
901
|
+
actual: string;
|
|
902
|
+
suggestedPrompt: string;
|
|
903
|
+
step?: number | undefined;
|
|
904
|
+
flow?: string | undefined;
|
|
905
|
+
sourceLocation?: {
|
|
906
|
+
file: string;
|
|
907
|
+
component?: string | undefined;
|
|
908
|
+
line?: number | undefined;
|
|
909
|
+
} | undefined;
|
|
910
|
+
}>, "many">>;
|
|
911
|
+
}, "strip", z.ZodTypeAny, {
|
|
912
|
+
failurePackets: {
|
|
913
|
+
expected: string;
|
|
914
|
+
actual: string;
|
|
915
|
+
suggestedPrompt: string;
|
|
916
|
+
step?: number | undefined;
|
|
917
|
+
flow?: string | undefined;
|
|
918
|
+
sourceLocation?: {
|
|
919
|
+
file: string;
|
|
920
|
+
component?: string | undefined;
|
|
921
|
+
line?: number | undefined;
|
|
922
|
+
} | undefined;
|
|
923
|
+
}[];
|
|
924
|
+
}, {
|
|
925
|
+
failurePackets?: {
|
|
926
|
+
expected: string;
|
|
927
|
+
actual: string;
|
|
928
|
+
suggestedPrompt: string;
|
|
929
|
+
step?: number | undefined;
|
|
930
|
+
flow?: string | undefined;
|
|
931
|
+
sourceLocation?: {
|
|
932
|
+
file: string;
|
|
933
|
+
component?: string | undefined;
|
|
934
|
+
line?: number | undefined;
|
|
935
|
+
} | undefined;
|
|
936
|
+
}[] | undefined;
|
|
937
|
+
}>>;
|
|
938
|
+
verdict: z.ZodObject<{
|
|
939
|
+
status: z.ZodNativeEnum<{
|
|
940
|
+
readonly PASS: "pass";
|
|
941
|
+
readonly FAIL: "fail";
|
|
942
|
+
readonly PARTIAL: "partial";
|
|
943
|
+
}>;
|
|
944
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
945
|
+
confidence: z.ZodNativeEnum<{
|
|
946
|
+
readonly HIGH: "high";
|
|
947
|
+
readonly MEDIUM: "medium";
|
|
948
|
+
readonly LOW: "low";
|
|
949
|
+
}>;
|
|
950
|
+
blockingRisks: z.ZodDefault<z.ZodNumber>;
|
|
951
|
+
}, "strip", z.ZodTypeAny, {
|
|
952
|
+
status: "pass" | "fail" | "partial";
|
|
953
|
+
reasons: string[];
|
|
954
|
+
confidence: "low" | "medium" | "high";
|
|
955
|
+
blockingRisks: number;
|
|
956
|
+
}, {
|
|
957
|
+
status: "pass" | "fail" | "partial";
|
|
958
|
+
confidence: "low" | "medium" | "high";
|
|
959
|
+
reasons?: string[] | undefined;
|
|
960
|
+
blockingRisks?: number | undefined;
|
|
961
|
+
}>;
|
|
962
|
+
signature: z.ZodOptional<z.ZodObject<{
|
|
963
|
+
alg: z.ZodString;
|
|
964
|
+
value: z.ZodString;
|
|
965
|
+
signedAt: z.ZodNumber;
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
value: string;
|
|
968
|
+
alg: string;
|
|
969
|
+
signedAt: number;
|
|
970
|
+
}, {
|
|
971
|
+
value: string;
|
|
972
|
+
alg: string;
|
|
973
|
+
signedAt: number;
|
|
974
|
+
}>>;
|
|
975
|
+
}, "strip", z.ZodTypeAny, {
|
|
976
|
+
flows: {
|
|
977
|
+
status: "pass" | "fail" | "healed" | "skipped";
|
|
978
|
+
name: string;
|
|
979
|
+
steps: number;
|
|
980
|
+
durationMs: number;
|
|
981
|
+
healed?: {
|
|
982
|
+
from: string;
|
|
983
|
+
to: string;
|
|
984
|
+
consequenceVerified: boolean;
|
|
985
|
+
} | undefined;
|
|
986
|
+
oracle?: string | undefined;
|
|
987
|
+
evidenceRef?: string | undefined;
|
|
988
|
+
failureReason?: string | undefined;
|
|
989
|
+
}[];
|
|
990
|
+
createdAt: number;
|
|
991
|
+
durationMs: number;
|
|
992
|
+
evidence: {
|
|
993
|
+
consoleErrors: {
|
|
994
|
+
message: string;
|
|
995
|
+
at: number;
|
|
996
|
+
level: string;
|
|
997
|
+
}[];
|
|
998
|
+
networkAnomalies: {
|
|
999
|
+
url: string;
|
|
1000
|
+
method: string;
|
|
1001
|
+
issue: string;
|
|
1002
|
+
status?: number | undefined;
|
|
1003
|
+
}[];
|
|
1004
|
+
stateAssertions: {
|
|
1005
|
+
ok: boolean;
|
|
1006
|
+
path: string;
|
|
1007
|
+
store: string;
|
|
1008
|
+
expected?: unknown;
|
|
1009
|
+
actual?: unknown;
|
|
1010
|
+
}[];
|
|
1011
|
+
timeline: {
|
|
1012
|
+
at: number;
|
|
1013
|
+
kind: string;
|
|
1014
|
+
summary: string;
|
|
1015
|
+
}[];
|
|
1016
|
+
};
|
|
1017
|
+
schemaVersion: 1;
|
|
1018
|
+
runId: string & z.BRAND<"RunId">;
|
|
1019
|
+
profile: "dev" | "prod-preview";
|
|
1020
|
+
project: {
|
|
1021
|
+
name: string;
|
|
1022
|
+
framework: "react" | "next" | "vite" | "other";
|
|
1023
|
+
commit?: string | undefined;
|
|
1024
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
1025
|
+
previewUrl?: string | undefined;
|
|
1026
|
+
};
|
|
1027
|
+
agent: {
|
|
1028
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1029
|
+
id: string;
|
|
1030
|
+
model?: string | undefined;
|
|
1031
|
+
};
|
|
1032
|
+
trigger: {
|
|
1033
|
+
kind: "manual" | "edit" | "ci" | "oem";
|
|
1034
|
+
note?: string | undefined;
|
|
1035
|
+
diffRef?: string | undefined;
|
|
1036
|
+
};
|
|
1037
|
+
changedFiles: {
|
|
1038
|
+
path: string;
|
|
1039
|
+
changeKind: "added" | "modified" | "deleted";
|
|
1040
|
+
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
1041
|
+
}[];
|
|
1042
|
+
checks: {
|
|
1043
|
+
status: "pass" | "fail";
|
|
1044
|
+
kind: "signal" | "console" | "element" | "state" | "network" | "layout";
|
|
1045
|
+
predicate: string;
|
|
1046
|
+
evidence?: unknown;
|
|
1047
|
+
}[];
|
|
1048
|
+
risks: {
|
|
1049
|
+
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
1050
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
1051
|
+
detail: string;
|
|
1052
|
+
gated: boolean;
|
|
1053
|
+
evidence?: {
|
|
1054
|
+
file?: string | undefined;
|
|
1055
|
+
line?: number | undefined;
|
|
1056
|
+
network?: string | undefined;
|
|
1057
|
+
} | undefined;
|
|
1058
|
+
}[];
|
|
1059
|
+
verdict: {
|
|
1060
|
+
status: "pass" | "fail" | "partial";
|
|
1061
|
+
reasons: string[];
|
|
1062
|
+
confidence: "low" | "medium" | "high";
|
|
1063
|
+
blockingRisks: number;
|
|
1064
|
+
};
|
|
1065
|
+
repair?: {
|
|
1066
|
+
failurePackets: {
|
|
1067
|
+
expected: string;
|
|
1068
|
+
actual: string;
|
|
1069
|
+
suggestedPrompt: string;
|
|
1070
|
+
step?: number | undefined;
|
|
1071
|
+
flow?: string | undefined;
|
|
1072
|
+
sourceLocation?: {
|
|
1073
|
+
file: string;
|
|
1074
|
+
component?: string | undefined;
|
|
1075
|
+
line?: number | undefined;
|
|
1076
|
+
} | undefined;
|
|
1077
|
+
}[];
|
|
1078
|
+
} | undefined;
|
|
1079
|
+
signature?: {
|
|
1080
|
+
value: string;
|
|
1081
|
+
alg: string;
|
|
1082
|
+
signedAt: number;
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
}, {
|
|
1085
|
+
createdAt: number;
|
|
1086
|
+
durationMs: number;
|
|
1087
|
+
evidence: {
|
|
1088
|
+
consoleErrors?: {
|
|
1089
|
+
message: string;
|
|
1090
|
+
at: number;
|
|
1091
|
+
level: string;
|
|
1092
|
+
}[] | undefined;
|
|
1093
|
+
networkAnomalies?: {
|
|
1094
|
+
url: string;
|
|
1095
|
+
method: string;
|
|
1096
|
+
issue: string;
|
|
1097
|
+
status?: number | undefined;
|
|
1098
|
+
}[] | undefined;
|
|
1099
|
+
stateAssertions?: {
|
|
1100
|
+
ok: boolean;
|
|
1101
|
+
path: string;
|
|
1102
|
+
store: string;
|
|
1103
|
+
expected?: unknown;
|
|
1104
|
+
actual?: unknown;
|
|
1105
|
+
}[] | undefined;
|
|
1106
|
+
timeline?: {
|
|
1107
|
+
at: number;
|
|
1108
|
+
kind: string;
|
|
1109
|
+
summary: string;
|
|
1110
|
+
}[] | undefined;
|
|
1111
|
+
};
|
|
1112
|
+
schemaVersion: 1;
|
|
1113
|
+
runId: string;
|
|
1114
|
+
profile: "dev" | "prod-preview";
|
|
1115
|
+
project: {
|
|
1116
|
+
name: string;
|
|
1117
|
+
framework: "react" | "next" | "vite" | "other";
|
|
1118
|
+
commit?: string | undefined;
|
|
1119
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
1120
|
+
previewUrl?: string | undefined;
|
|
1121
|
+
};
|
|
1122
|
+
agent: {
|
|
1123
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1124
|
+
id: string;
|
|
1125
|
+
model?: string | undefined;
|
|
1126
|
+
};
|
|
1127
|
+
trigger: {
|
|
1128
|
+
kind: "manual" | "edit" | "ci" | "oem";
|
|
1129
|
+
note?: string | undefined;
|
|
1130
|
+
diffRef?: string | undefined;
|
|
1131
|
+
};
|
|
1132
|
+
verdict: {
|
|
1133
|
+
status: "pass" | "fail" | "partial";
|
|
1134
|
+
confidence: "low" | "medium" | "high";
|
|
1135
|
+
reasons?: string[] | undefined;
|
|
1136
|
+
blockingRisks?: number | undefined;
|
|
1137
|
+
};
|
|
1138
|
+
flows?: {
|
|
1139
|
+
status: "pass" | "fail" | "healed" | "skipped";
|
|
1140
|
+
name: string;
|
|
1141
|
+
steps: number;
|
|
1142
|
+
durationMs: number;
|
|
1143
|
+
healed?: {
|
|
1144
|
+
from: string;
|
|
1145
|
+
to: string;
|
|
1146
|
+
consequenceVerified: boolean;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
oracle?: string | undefined;
|
|
1149
|
+
evidenceRef?: string | undefined;
|
|
1150
|
+
failureReason?: string | undefined;
|
|
1151
|
+
}[] | undefined;
|
|
1152
|
+
changedFiles?: {
|
|
1153
|
+
path: string;
|
|
1154
|
+
changeKind: "added" | "modified" | "deleted";
|
|
1155
|
+
risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
|
|
1156
|
+
}[] | undefined;
|
|
1157
|
+
checks?: {
|
|
1158
|
+
status: "pass" | "fail";
|
|
1159
|
+
kind: "signal" | "console" | "element" | "state" | "network" | "layout";
|
|
1160
|
+
predicate: string;
|
|
1161
|
+
evidence?: unknown;
|
|
1162
|
+
}[] | undefined;
|
|
1163
|
+
risks?: {
|
|
1164
|
+
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
1165
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
1166
|
+
detail: string;
|
|
1167
|
+
evidence?: {
|
|
1168
|
+
file?: string | undefined;
|
|
1169
|
+
line?: number | undefined;
|
|
1170
|
+
network?: string | undefined;
|
|
1171
|
+
} | undefined;
|
|
1172
|
+
gated?: boolean | undefined;
|
|
1173
|
+
}[] | undefined;
|
|
1174
|
+
repair?: {
|
|
1175
|
+
failurePackets?: {
|
|
1176
|
+
expected: string;
|
|
1177
|
+
actual: string;
|
|
1178
|
+
suggestedPrompt: string;
|
|
1179
|
+
step?: number | undefined;
|
|
1180
|
+
flow?: string | undefined;
|
|
1181
|
+
sourceLocation?: {
|
|
1182
|
+
file: string;
|
|
1183
|
+
component?: string | undefined;
|
|
1184
|
+
line?: number | undefined;
|
|
1185
|
+
} | undefined;
|
|
1186
|
+
}[] | undefined;
|
|
1187
|
+
} | undefined;
|
|
1188
|
+
signature?: {
|
|
1189
|
+
value: string;
|
|
1190
|
+
alg: string;
|
|
1191
|
+
signedAt: number;
|
|
1192
|
+
} | undefined;
|
|
1193
|
+
}>;
|
|
1194
|
+
export type ReticleVerificationRun = z.infer<typeof ReticleVerificationRunSchema>;
|
|
1195
|
+
//# sourceMappingURL=verification-run.d.ts.map
|