@reticlehq/core 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/flow-composition.d.ts +3 -2
- package/dist/artifacts/flow-constants.d.ts +59 -2
- package/dist/artifacts/flow-constants.js +63 -3
- package/dist/artifacts/flow-expect-flat.d.ts +260 -0
- package/dist/artifacts/flow-expect-flat.js +284 -0
- package/dist/artifacts/flow-mutation-target.d.ts +0 -1
- package/dist/artifacts/flow-mutation-target.js +26 -2
- package/dist/artifacts/flow-step-tool.d.ts +2 -0
- package/dist/artifacts/flow-types.d.ts +1071 -1225
- package/dist/artifacts/flow-types.js +96 -140
- package/dist/artifacts/impact.d.ts +200 -20
- package/dist/artifacts/impact.js +72 -0
- package/dist/artifacts/journal.d.ts +85 -6
- package/dist/artifacts/journal.js +51 -1
- package/dist/hooks/hook-events.d.ts +18 -18
- package/dist/hud-entry.d.ts +9 -0
- package/dist/hud-entry.js +9 -0
- package/dist/identity/brand.d.ts +46 -0
- package/dist/identity/brand.js +7 -0
- package/dist/identity/source-constants.d.ts +11 -0
- package/dist/identity/source-constants.js +11 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +26 -2
- package/dist/onboarding.d.ts +2 -2
- package/dist/realm/registry.d.ts +0 -8
- package/dist/realm/registry.js +1 -11
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +74 -1
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +3 -1
- package/dist/source-constants.cjs +1 -0
- package/dist/source-constants.d.cts +1 -0
- package/dist/telemetry-feedback.d.ts +6 -6
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +25 -2
- package/dist/telemetry-session.js +13 -0
- package/dist/telemetry.d.ts +184 -102
- package/dist/telemetry.js +29 -1
- package/dist/verdict/consequence.d.ts +10 -0
- package/dist/verdict/consequence.js +13 -0
- package/dist/verdict/intent.d.ts +36 -12
- package/dist/verdict/intent.js +66 -10
- package/dist/verdict/predicate-tree.d.ts +47 -0
- package/dist/verdict/predicate-tree.js +146 -0
- package/dist/verdict/predicate.d.ts +129 -0
- package/dist/verdict/predicate.js +394 -0
- package/dist/verdict/property-assertion.d.ts +191 -0
- package/dist/verdict/property-assertion.js +42 -0
- package/dist/verdict/security.js +16 -4
- package/dist/verdict/verdict-attribution.d.ts +52 -0
- package/dist/verdict/verdict-attribution.js +87 -0
- package/dist/verdict/verification-run.d.ts +98 -84
- package/dist/verdict/verification-run.js +8 -1
- package/dist/verdict/verified-constants.d.ts +18 -0
- package/dist/verdict/verified-constants.js +18 -0
- package/dist/wire/constants/constants.d.ts +108 -98
- package/dist/wire/constants/constants.js +116 -97
- package/dist/wire/constants/discovery.d.ts +25 -0
- package/dist/wire/constants/discovery.js +25 -0
- package/dist/wire/constants/event-types.d.ts +122 -0
- package/dist/wire/constants/event-types.js +121 -0
- package/dist/wire/constants/hud-controls.d.ts +19 -0
- package/dist/wire/constants/hud-controls.js +95 -0
- package/dist/wire/constants/hud-use.d.ts +27 -0
- package/dist/wire/constants/hud-use.js +24 -0
- package/dist/wire/constants/session-constants.d.ts +24 -0
- package/dist/wire/constants/session-constants.js +24 -0
- package/dist/wire/event-payloads.d.ts +70 -10
- package/dist/wire/event-payloads.js +20 -1
- package/dist/wire/messages.d.ts +90 -48
- package/dist/wire/messages.js +17 -0
- package/dist/wire/net.d.ts +42 -0
- package/dist/wire/net.js +48 -0
- package/dist/wire/snapshot-tree.d.ts +33 -0
- package/dist/wire/snapshot-tree.js +43 -0
- package/dist/wire/state-select.d.ts +2 -1
- package/dist/wire/state-select.js +56 -3
- package/dist/wire/toon.js +28 -7
- package/dist/wire/types.d.ts +91 -66
- package/dist/wire/types.js +23 -1
- package/package.json +5 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { VerifiedReason } from './verified-constants.js';
|
|
2
|
+
/**
|
|
3
|
+
* WHOSE problem an unproved verdict is.
|
|
4
|
+
*
|
|
5
|
+
* `verified` says whether the claim held. `verifiedReason` says which clause decided it. Neither
|
|
6
|
+
* says who should act, and for `unknown` that is the only question the reader has. Three of the
|
|
7
|
+
* reasons below arrive as the same word today - "the backend answered 202 and has not finished",
|
|
8
|
+
* "the page SDK and the daemon are on different contracts", and "the capture was truncated" - and
|
|
9
|
+
* they need three opposite next moves: wait, fix Reticle's setup, look again with better coverage.
|
|
10
|
+
*
|
|
11
|
+
* Four owners, because four are what the evidence can actually distinguish. A fifth would be a word
|
|
12
|
+
* nobody could act on differently, and the whole point of this field is that each value implies a
|
|
13
|
+
* different move.
|
|
14
|
+
*
|
|
15
|
+
* NOT `BugAttribution`, and the two must not be merged. That one answers "we found a defect — whose
|
|
16
|
+
* defect is it?" over app/request/reticle/unclassified. This one answers "we could NOT decide — who
|
|
17
|
+
* can act?", which is a question about the absence of a verdict rather than about a finding, and it
|
|
18
|
+
* has to distinguish a thing that resolves by WAITING (`environment`) from a thing that resolves by
|
|
19
|
+
* LOOKING AGAIN (`could-not-see`). `BugAttribution` has no member for either, because a bug is never
|
|
20
|
+
* either of them. Named apart on purpose: one vocabulary stretched over two questions is how both
|
|
21
|
+
* end up wrong.
|
|
22
|
+
*/
|
|
23
|
+
export declare const VerdictAttribution: {
|
|
24
|
+
/** The app under test is wrong. The assertion failed, or two channels disagree about it. */
|
|
25
|
+
readonly CODE: "code";
|
|
26
|
+
/**
|
|
27
|
+
* Nothing is wrong yet: something outside the app's own code has not finished or never settled.
|
|
28
|
+
*
|
|
29
|
+
* The one class that resolves by WAITING, which is why it must not read as a defect. An agent that
|
|
30
|
+
* treats "the server is still working" as a failure re-drives a system that was fine.
|
|
31
|
+
*/
|
|
32
|
+
readonly ENVIRONMENT: "environment";
|
|
33
|
+
/**
|
|
34
|
+
* Reticle, or how it was driven. Our own pieces disagreeing, a window we closed too early, a claim
|
|
35
|
+
* the caller declared that could never have proved anything.
|
|
36
|
+
*
|
|
37
|
+
* Named honestly on purpose. A tool that reports its own failures as the app's is the confident
|
|
38
|
+
* wrong answer this project exists to remove, and it is the class a user can most easily fix once
|
|
39
|
+
* they are told it is theirs.
|
|
40
|
+
*/
|
|
41
|
+
readonly HARNESS: "harness";
|
|
42
|
+
/**
|
|
43
|
+
* The evidence needed was missing. Not a failure of the app, and not a failure of the run - a gap
|
|
44
|
+
* in what was observable, which is the one that says LOOK AGAIN rather than GO FIX SOMETHING.
|
|
45
|
+
*/
|
|
46
|
+
readonly COULD_NOT_SEE: "could-not-see";
|
|
47
|
+
/** The claim was proved. There is no owner to name, and the field is omitted rather than carrying this. */
|
|
48
|
+
readonly NONE: "none";
|
|
49
|
+
};
|
|
50
|
+
export type VerdictAttribution = (typeof VerdictAttribution)[keyof typeof VerdictAttribution];
|
|
51
|
+
/** Who owns this verdict reason, or `undefined` for a reason nobody has classified. */
|
|
52
|
+
export declare function verdictAttributionOf(reason: VerifiedReason): VerdictAttribution | undefined;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { VerifiedReason } from './verified-constants.js';
|
|
2
|
+
/**
|
|
3
|
+
* WHOSE problem an unproved verdict is.
|
|
4
|
+
*
|
|
5
|
+
* `verified` says whether the claim held. `verifiedReason` says which clause decided it. Neither
|
|
6
|
+
* says who should act, and for `unknown` that is the only question the reader has. Three of the
|
|
7
|
+
* reasons below arrive as the same word today - "the backend answered 202 and has not finished",
|
|
8
|
+
* "the page SDK and the daemon are on different contracts", and "the capture was truncated" - and
|
|
9
|
+
* they need three opposite next moves: wait, fix Reticle's setup, look again with better coverage.
|
|
10
|
+
*
|
|
11
|
+
* Four owners, because four are what the evidence can actually distinguish. A fifth would be a word
|
|
12
|
+
* nobody could act on differently, and the whole point of this field is that each value implies a
|
|
13
|
+
* different move.
|
|
14
|
+
*
|
|
15
|
+
* NOT `BugAttribution`, and the two must not be merged. That one answers "we found a defect — whose
|
|
16
|
+
* defect is it?" over app/request/reticle/unclassified. This one answers "we could NOT decide — who
|
|
17
|
+
* can act?", which is a question about the absence of a verdict rather than about a finding, and it
|
|
18
|
+
* has to distinguish a thing that resolves by WAITING (`environment`) from a thing that resolves by
|
|
19
|
+
* LOOKING AGAIN (`could-not-see`). `BugAttribution` has no member for either, because a bug is never
|
|
20
|
+
* either of them. Named apart on purpose: one vocabulary stretched over two questions is how both
|
|
21
|
+
* end up wrong.
|
|
22
|
+
*/
|
|
23
|
+
export const VerdictAttribution = {
|
|
24
|
+
/** The app under test is wrong. The assertion failed, or two channels disagree about it. */
|
|
25
|
+
CODE: 'code',
|
|
26
|
+
/**
|
|
27
|
+
* Nothing is wrong yet: something outside the app's own code has not finished or never settled.
|
|
28
|
+
*
|
|
29
|
+
* The one class that resolves by WAITING, which is why it must not read as a defect. An agent that
|
|
30
|
+
* treats "the server is still working" as a failure re-drives a system that was fine.
|
|
31
|
+
*/
|
|
32
|
+
ENVIRONMENT: 'environment',
|
|
33
|
+
/**
|
|
34
|
+
* Reticle, or how it was driven. Our own pieces disagreeing, a window we closed too early, a claim
|
|
35
|
+
* the caller declared that could never have proved anything.
|
|
36
|
+
*
|
|
37
|
+
* Named honestly on purpose. A tool that reports its own failures as the app's is the confident
|
|
38
|
+
* wrong answer this project exists to remove, and it is the class a user can most easily fix once
|
|
39
|
+
* they are told it is theirs.
|
|
40
|
+
*/
|
|
41
|
+
HARNESS: 'harness',
|
|
42
|
+
/**
|
|
43
|
+
* The evidence needed was missing. Not a failure of the app, and not a failure of the run - a gap
|
|
44
|
+
* in what was observable, which is the one that says LOOK AGAIN rather than GO FIX SOMETHING.
|
|
45
|
+
*/
|
|
46
|
+
COULD_NOT_SEE: 'could-not-see',
|
|
47
|
+
/** The claim was proved. There is no owner to name, and the field is omitted rather than carrying this. */
|
|
48
|
+
NONE: 'none',
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Every reason the verdict ladder can produce, and whose problem it is.
|
|
52
|
+
*
|
|
53
|
+
* Total over `VerifiedReason` by design, and guarded as exhaustive by equality: a new clause cannot
|
|
54
|
+
* ship without somebody deciding who owns it. That is a thirty-second decision while the clause is
|
|
55
|
+
* being written, and an archaeology problem a year later - the same argument the `.reticle`
|
|
56
|
+
* partition makes, for the same reason.
|
|
57
|
+
*
|
|
58
|
+
* Derived from the reason rather than decided separately. A second decision is a second thing that
|
|
59
|
+
* can disagree with the first, and the reason already carries everything this needs.
|
|
60
|
+
*/
|
|
61
|
+
const OWNER = {
|
|
62
|
+
// The app was actually disproved — the only two that are.
|
|
63
|
+
[VerifiedReason.ASSERTION_FAILED]: VerdictAttribution.CODE,
|
|
64
|
+
[VerifiedReason.CONTRADICTED]: VerdictAttribution.CODE,
|
|
65
|
+
// Still working. Waiting is the move.
|
|
66
|
+
[VerifiedReason.OUTCOME_PENDING]: VerdictAttribution.ENVIRONMENT,
|
|
67
|
+
[VerifiedReason.UNSETTLED]: VerdictAttribution.ENVIRONMENT,
|
|
68
|
+
// Ours, or the caller's — either way not the app's.
|
|
69
|
+
[VerifiedReason.VERSION_SKEW]: VerdictAttribution.HARNESS,
|
|
70
|
+
[VerifiedReason.WINDOW_CLOSED_EARLY]: VerdictAttribution.HARNESS,
|
|
71
|
+
[VerifiedReason.NOTHING_DECLARED]: VerdictAttribution.HARNESS,
|
|
72
|
+
[VerifiedReason.VACUOUS_GRADE]: VerdictAttribution.HARNESS,
|
|
73
|
+
[VerifiedReason.ALREADY_TRUE]: VerdictAttribution.HARNESS,
|
|
74
|
+
// The evidence was not there to read.
|
|
75
|
+
[VerifiedReason.CAPABILITY_ABSENT]: VerdictAttribution.COULD_NOT_SEE,
|
|
76
|
+
[VerifiedReason.OBSERVATION_LOST]: VerdictAttribution.COULD_NOT_SEE,
|
|
77
|
+
[VerifiedReason.UNCLEAN_CAPTURE]: VerdictAttribution.COULD_NOT_SEE,
|
|
78
|
+
[VerifiedReason.EVIDENCE_INCOMPLETE]: VerdictAttribution.COULD_NOT_SEE,
|
|
79
|
+
[VerifiedReason.ABSENCE_BLIND_SPOT]: VerdictAttribution.COULD_NOT_SEE,
|
|
80
|
+
[VerifiedReason.OUTCOME_UNREAD]: VerdictAttribution.COULD_NOT_SEE,
|
|
81
|
+
[VerifiedReason.INCONCLUSIVE]: VerdictAttribution.COULD_NOT_SEE,
|
|
82
|
+
[VerifiedReason.PROVED]: VerdictAttribution.NONE,
|
|
83
|
+
};
|
|
84
|
+
/** Who owns this verdict reason, or `undefined` for a reason nobody has classified. */
|
|
85
|
+
export function verdictAttributionOf(reason) {
|
|
86
|
+
return OWNER[reason];
|
|
87
|
+
}
|
|
@@ -254,7 +254,14 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
254
254
|
export type RunFlowResult = z.infer<typeof RunFlowResultSchema>;
|
|
255
255
|
/** A standalone assertion not tied to a flow. `evidence` is opaque (narrowed per kind by the caller). */
|
|
256
256
|
export declare const RunCheckSchema: z.ZodObject<{
|
|
257
|
-
|
|
257
|
+
/**
|
|
258
|
+
* Which source of truth answering this claim required.
|
|
259
|
+
*
|
|
260
|
+
* Optional, because a check folded from a journal written before the kind was recorded has none,
|
|
261
|
+
* and the only alternatives are refusing the whole run or filling in a kind nobody observed. An
|
|
262
|
+
* absent field says nobody wrote it down; a present one is what the predicate actually read.
|
|
263
|
+
*/
|
|
264
|
+
kind: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<{
|
|
258
265
|
readonly ELEMENT: "element";
|
|
259
266
|
readonly TEXT: "text";
|
|
260
267
|
readonly SIGNAL: "signal";
|
|
@@ -267,14 +274,14 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
267
274
|
readonly ALL_OF: "allOf";
|
|
268
275
|
readonly ANY_OF: "anyOf";
|
|
269
276
|
readonly NOT: "not";
|
|
270
|
-
}
|
|
277
|
+
}>>, "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not" | undefined, unknown>;
|
|
271
278
|
predicate: z.ZodString;
|
|
272
279
|
status: z.ZodEffects<z.ZodNativeEnum<{
|
|
273
280
|
readonly YES: "yes";
|
|
274
281
|
readonly NO: "no";
|
|
275
282
|
readonly UNKNOWN: "unknown";
|
|
276
283
|
readonly NO_FAULT: "no-fault";
|
|
277
|
-
}>, "
|
|
284
|
+
}>, "yes" | "no" | "unknown" | "no-fault", unknown>;
|
|
278
285
|
evidence: z.ZodOptional<z.ZodUnknown>;
|
|
279
286
|
/**
|
|
280
287
|
* Was this claim written down BEFORE the action, or after it?
|
|
@@ -319,25 +326,25 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
319
326
|
*/
|
|
320
327
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
321
328
|
}, "strip", z.ZodTypeAny, {
|
|
322
|
-
status: "
|
|
323
|
-
kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
|
|
329
|
+
status: "yes" | "no" | "unknown" | "no-fault";
|
|
324
330
|
predicate: string;
|
|
325
|
-
|
|
331
|
+
kind?: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not" | undefined;
|
|
326
332
|
evidence?: unknown;
|
|
327
333
|
declaredBeforeActing?: boolean | undefined;
|
|
328
334
|
grade?: string | undefined;
|
|
329
335
|
couldNotSee?: string[] | undefined;
|
|
336
|
+
reason?: string | undefined;
|
|
330
337
|
checkId?: string | undefined;
|
|
331
338
|
supersedes?: string | undefined;
|
|
332
339
|
}, {
|
|
333
340
|
predicate: string;
|
|
334
341
|
status?: unknown;
|
|
335
342
|
kind?: unknown;
|
|
336
|
-
reason?: string | undefined;
|
|
337
343
|
evidence?: unknown;
|
|
338
344
|
declaredBeforeActing?: boolean | undefined;
|
|
339
345
|
grade?: string | undefined;
|
|
340
346
|
couldNotSee?: string[] | undefined;
|
|
347
|
+
reason?: string | undefined;
|
|
341
348
|
checkId?: string | undefined;
|
|
342
349
|
supersedes?: string | undefined;
|
|
343
350
|
}>;
|
|
@@ -366,13 +373,13 @@ export declare const RunRiskSchema: z.ZodObject<{
|
|
|
366
373
|
line: z.ZodOptional<z.ZodNumber>;
|
|
367
374
|
network: z.ZodOptional<z.ZodString>;
|
|
368
375
|
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
network?: string | undefined;
|
|
369
377
|
file?: string | undefined;
|
|
370
378
|
line?: number | undefined;
|
|
371
|
-
network?: string | undefined;
|
|
372
379
|
}, {
|
|
380
|
+
network?: string | undefined;
|
|
373
381
|
file?: string | undefined;
|
|
374
382
|
line?: number | undefined;
|
|
375
|
-
network?: string | undefined;
|
|
376
383
|
}>>;
|
|
377
384
|
gated: z.ZodDefault<z.ZodBoolean>;
|
|
378
385
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -381,18 +388,18 @@ export declare const RunRiskSchema: z.ZodObject<{
|
|
|
381
388
|
detail: string;
|
|
382
389
|
gated: boolean;
|
|
383
390
|
evidence?: {
|
|
391
|
+
network?: string | undefined;
|
|
384
392
|
file?: string | undefined;
|
|
385
393
|
line?: number | undefined;
|
|
386
|
-
network?: string | undefined;
|
|
387
394
|
} | undefined;
|
|
388
395
|
}, {
|
|
389
396
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
390
397
|
severity: "low" | "medium" | "high" | "critical";
|
|
391
398
|
detail: string;
|
|
392
399
|
evidence?: {
|
|
400
|
+
network?: string | undefined;
|
|
393
401
|
file?: string | undefined;
|
|
394
402
|
line?: number | undefined;
|
|
395
|
-
network?: string | undefined;
|
|
396
403
|
} | undefined;
|
|
397
404
|
gated?: boolean | undefined;
|
|
398
405
|
}>;
|
|
@@ -404,12 +411,12 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
|
404
411
|
message: z.ZodString;
|
|
405
412
|
at: z.ZodNumber;
|
|
406
413
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
message: string;
|
|
408
414
|
at: number;
|
|
415
|
+
message: string;
|
|
409
416
|
level: string;
|
|
410
417
|
}, {
|
|
411
|
-
message: string;
|
|
412
418
|
at: number;
|
|
419
|
+
message: string;
|
|
413
420
|
level: string;
|
|
414
421
|
}>, "many">>;
|
|
415
422
|
networkAnomalies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -452,18 +459,18 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
|
452
459
|
kind: z.ZodString;
|
|
453
460
|
summary: z.ZodString;
|
|
454
461
|
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
kind: string;
|
|
456
462
|
at: number;
|
|
463
|
+
kind: string;
|
|
457
464
|
summary: string;
|
|
458
465
|
}, {
|
|
459
|
-
kind: string;
|
|
460
466
|
at: number;
|
|
467
|
+
kind: string;
|
|
461
468
|
summary: string;
|
|
462
469
|
}>, "many">>;
|
|
463
470
|
}, "strip", z.ZodTypeAny, {
|
|
464
471
|
consoleErrors: {
|
|
465
|
-
message: string;
|
|
466
472
|
at: number;
|
|
473
|
+
message: string;
|
|
467
474
|
level: string;
|
|
468
475
|
}[];
|
|
469
476
|
networkAnomalies: {
|
|
@@ -480,14 +487,14 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
|
480
487
|
actual?: unknown;
|
|
481
488
|
}[];
|
|
482
489
|
timeline: {
|
|
483
|
-
kind: string;
|
|
484
490
|
at: number;
|
|
491
|
+
kind: string;
|
|
485
492
|
summary: string;
|
|
486
493
|
}[];
|
|
487
494
|
}, {
|
|
488
495
|
consoleErrors?: {
|
|
489
|
-
message: string;
|
|
490
496
|
at: number;
|
|
497
|
+
message: string;
|
|
491
498
|
level: string;
|
|
492
499
|
}[] | undefined;
|
|
493
500
|
networkAnomalies?: {
|
|
@@ -504,8 +511,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
|
504
511
|
actual?: unknown;
|
|
505
512
|
}[] | undefined;
|
|
506
513
|
timeline?: {
|
|
507
|
-
kind: string;
|
|
508
514
|
at: number;
|
|
515
|
+
kind: string;
|
|
509
516
|
summary: string;
|
|
510
517
|
}[] | undefined;
|
|
511
518
|
}>;
|
|
@@ -656,13 +663,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
656
663
|
name: string;
|
|
657
664
|
framework: "other" | "react" | "next" | "vite";
|
|
658
665
|
commit?: string | undefined;
|
|
659
|
-
env?: "
|
|
666
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
660
667
|
previewUrl?: string | undefined;
|
|
661
668
|
}, {
|
|
662
669
|
name: string;
|
|
663
670
|
framework: "other" | "react" | "next" | "vite";
|
|
664
671
|
commit?: string | undefined;
|
|
665
|
-
env?: "
|
|
672
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
666
673
|
previewUrl?: string | undefined;
|
|
667
674
|
}>;
|
|
668
675
|
agent: z.ZodObject<{
|
|
@@ -675,11 +682,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
675
682
|
model: z.ZodOptional<z.ZodString>;
|
|
676
683
|
}, "strip", z.ZodTypeAny, {
|
|
677
684
|
id: string;
|
|
678
|
-
kind: "
|
|
685
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
679
686
|
model?: string | undefined;
|
|
680
687
|
}, {
|
|
681
688
|
id: string;
|
|
682
|
-
kind: "
|
|
689
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
683
690
|
model?: string | undefined;
|
|
684
691
|
}>;
|
|
685
692
|
trigger: z.ZodObject<{
|
|
@@ -693,12 +700,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
693
700
|
note: z.ZodOptional<z.ZodString>;
|
|
694
701
|
}, "strip", z.ZodTypeAny, {
|
|
695
702
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
696
|
-
note?: string | undefined;
|
|
697
703
|
diffRef?: string | undefined;
|
|
704
|
+
note?: string | undefined;
|
|
698
705
|
}, {
|
|
699
706
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
700
|
-
note?: string | undefined;
|
|
701
707
|
diffRef?: string | undefined;
|
|
708
|
+
note?: string | undefined;
|
|
702
709
|
}>;
|
|
703
710
|
/**
|
|
704
711
|
* Which round of source edits this evidence belongs to.
|
|
@@ -828,7 +835,14 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
828
835
|
failureReason?: string | undefined;
|
|
829
836
|
}>, "many">>;
|
|
830
837
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
831
|
-
|
|
838
|
+
/**
|
|
839
|
+
* Which source of truth answering this claim required.
|
|
840
|
+
*
|
|
841
|
+
* Optional, because a check folded from a journal written before the kind was recorded has none,
|
|
842
|
+
* and the only alternatives are refusing the whole run or filling in a kind nobody observed. An
|
|
843
|
+
* absent field says nobody wrote it down; a present one is what the predicate actually read.
|
|
844
|
+
*/
|
|
845
|
+
kind: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<{
|
|
832
846
|
readonly ELEMENT: "element";
|
|
833
847
|
readonly TEXT: "text";
|
|
834
848
|
readonly SIGNAL: "signal";
|
|
@@ -841,14 +855,14 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
841
855
|
readonly ALL_OF: "allOf";
|
|
842
856
|
readonly ANY_OF: "anyOf";
|
|
843
857
|
readonly NOT: "not";
|
|
844
|
-
}
|
|
858
|
+
}>>, "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not" | undefined, unknown>;
|
|
845
859
|
predicate: z.ZodString;
|
|
846
860
|
status: z.ZodEffects<z.ZodNativeEnum<{
|
|
847
861
|
readonly YES: "yes";
|
|
848
862
|
readonly NO: "no";
|
|
849
863
|
readonly UNKNOWN: "unknown";
|
|
850
864
|
readonly NO_FAULT: "no-fault";
|
|
851
|
-
}>, "
|
|
865
|
+
}>, "yes" | "no" | "unknown" | "no-fault", unknown>;
|
|
852
866
|
evidence: z.ZodOptional<z.ZodUnknown>;
|
|
853
867
|
/**
|
|
854
868
|
* Was this claim written down BEFORE the action, or after it?
|
|
@@ -893,25 +907,25 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
893
907
|
*/
|
|
894
908
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
895
909
|
}, "strip", z.ZodTypeAny, {
|
|
896
|
-
status: "
|
|
897
|
-
kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
|
|
910
|
+
status: "yes" | "no" | "unknown" | "no-fault";
|
|
898
911
|
predicate: string;
|
|
899
|
-
|
|
912
|
+
kind?: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not" | undefined;
|
|
900
913
|
evidence?: unknown;
|
|
901
914
|
declaredBeforeActing?: boolean | undefined;
|
|
902
915
|
grade?: string | undefined;
|
|
903
916
|
couldNotSee?: string[] | undefined;
|
|
917
|
+
reason?: string | undefined;
|
|
904
918
|
checkId?: string | undefined;
|
|
905
919
|
supersedes?: string | undefined;
|
|
906
920
|
}, {
|
|
907
921
|
predicate: string;
|
|
908
922
|
status?: unknown;
|
|
909
923
|
kind?: unknown;
|
|
910
|
-
reason?: string | undefined;
|
|
911
924
|
evidence?: unknown;
|
|
912
925
|
declaredBeforeActing?: boolean | undefined;
|
|
913
926
|
grade?: string | undefined;
|
|
914
927
|
couldNotSee?: string[] | undefined;
|
|
928
|
+
reason?: string | undefined;
|
|
915
929
|
checkId?: string | undefined;
|
|
916
930
|
supersedes?: string | undefined;
|
|
917
931
|
}>, "many">>;
|
|
@@ -938,13 +952,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
938
952
|
line: z.ZodOptional<z.ZodNumber>;
|
|
939
953
|
network: z.ZodOptional<z.ZodString>;
|
|
940
954
|
}, "strip", z.ZodTypeAny, {
|
|
955
|
+
network?: string | undefined;
|
|
941
956
|
file?: string | undefined;
|
|
942
957
|
line?: number | undefined;
|
|
943
|
-
network?: string | undefined;
|
|
944
958
|
}, {
|
|
959
|
+
network?: string | undefined;
|
|
945
960
|
file?: string | undefined;
|
|
946
961
|
line?: number | undefined;
|
|
947
|
-
network?: string | undefined;
|
|
948
962
|
}>>;
|
|
949
963
|
gated: z.ZodDefault<z.ZodBoolean>;
|
|
950
964
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -953,18 +967,18 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
953
967
|
detail: string;
|
|
954
968
|
gated: boolean;
|
|
955
969
|
evidence?: {
|
|
970
|
+
network?: string | undefined;
|
|
956
971
|
file?: string | undefined;
|
|
957
972
|
line?: number | undefined;
|
|
958
|
-
network?: string | undefined;
|
|
959
973
|
} | undefined;
|
|
960
974
|
}, {
|
|
961
975
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
962
976
|
severity: "low" | "medium" | "high" | "critical";
|
|
963
977
|
detail: string;
|
|
964
978
|
evidence?: {
|
|
979
|
+
network?: string | undefined;
|
|
965
980
|
file?: string | undefined;
|
|
966
981
|
line?: number | undefined;
|
|
967
|
-
network?: string | undefined;
|
|
968
982
|
} | undefined;
|
|
969
983
|
gated?: boolean | undefined;
|
|
970
984
|
}>, "many">>;
|
|
@@ -974,12 +988,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
974
988
|
message: z.ZodString;
|
|
975
989
|
at: z.ZodNumber;
|
|
976
990
|
}, "strip", z.ZodTypeAny, {
|
|
977
|
-
message: string;
|
|
978
991
|
at: number;
|
|
992
|
+
message: string;
|
|
979
993
|
level: string;
|
|
980
994
|
}, {
|
|
981
|
-
message: string;
|
|
982
995
|
at: number;
|
|
996
|
+
message: string;
|
|
983
997
|
level: string;
|
|
984
998
|
}>, "many">>;
|
|
985
999
|
networkAnomalies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1022,18 +1036,18 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1022
1036
|
kind: z.ZodString;
|
|
1023
1037
|
summary: z.ZodString;
|
|
1024
1038
|
}, "strip", z.ZodTypeAny, {
|
|
1025
|
-
kind: string;
|
|
1026
1039
|
at: number;
|
|
1040
|
+
kind: string;
|
|
1027
1041
|
summary: string;
|
|
1028
1042
|
}, {
|
|
1029
|
-
kind: string;
|
|
1030
1043
|
at: number;
|
|
1044
|
+
kind: string;
|
|
1031
1045
|
summary: string;
|
|
1032
1046
|
}>, "many">>;
|
|
1033
1047
|
}, "strip", z.ZodTypeAny, {
|
|
1034
1048
|
consoleErrors: {
|
|
1035
|
-
message: string;
|
|
1036
1049
|
at: number;
|
|
1050
|
+
message: string;
|
|
1037
1051
|
level: string;
|
|
1038
1052
|
}[];
|
|
1039
1053
|
networkAnomalies: {
|
|
@@ -1050,14 +1064,14 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1050
1064
|
actual?: unknown;
|
|
1051
1065
|
}[];
|
|
1052
1066
|
timeline: {
|
|
1053
|
-
kind: string;
|
|
1054
1067
|
at: number;
|
|
1068
|
+
kind: string;
|
|
1055
1069
|
summary: string;
|
|
1056
1070
|
}[];
|
|
1057
1071
|
}, {
|
|
1058
1072
|
consoleErrors?: {
|
|
1059
|
-
message: string;
|
|
1060
1073
|
at: number;
|
|
1074
|
+
message: string;
|
|
1061
1075
|
level: string;
|
|
1062
1076
|
}[] | undefined;
|
|
1063
1077
|
networkAnomalies?: {
|
|
@@ -1074,8 +1088,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1074
1088
|
actual?: unknown;
|
|
1075
1089
|
}[] | undefined;
|
|
1076
1090
|
timeline?: {
|
|
1077
|
-
kind: string;
|
|
1078
1091
|
at: number;
|
|
1092
|
+
kind: string;
|
|
1079
1093
|
summary: string;
|
|
1080
1094
|
}[] | undefined;
|
|
1081
1095
|
}>;
|
|
@@ -1231,25 +1245,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1231
1245
|
evidenceRef?: string | undefined;
|
|
1232
1246
|
failureReason?: string | undefined;
|
|
1233
1247
|
}[];
|
|
1234
|
-
createdAt: number;
|
|
1235
|
-
runId: string & z.BRAND<"RunId">;
|
|
1236
|
-
agent: {
|
|
1237
|
-
id: string;
|
|
1238
|
-
kind: "human" | "coding-agent" | "oem-pipeline";
|
|
1239
|
-
model?: string | undefined;
|
|
1240
|
-
};
|
|
1241
|
-
project: {
|
|
1242
|
-
name: string;
|
|
1243
|
-
framework: "other" | "react" | "next" | "vite";
|
|
1244
|
-
commit?: string | undefined;
|
|
1245
|
-
env?: "local" | "preview" | "ci" | undefined;
|
|
1246
|
-
previewUrl?: string | undefined;
|
|
1247
|
-
};
|
|
1248
1248
|
durationMs: number;
|
|
1249
1249
|
evidence: {
|
|
1250
1250
|
consoleErrors: {
|
|
1251
|
-
message: string;
|
|
1252
1251
|
at: number;
|
|
1252
|
+
message: string;
|
|
1253
1253
|
level: string;
|
|
1254
1254
|
}[];
|
|
1255
1255
|
networkAnomalies: {
|
|
@@ -1266,17 +1266,31 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1266
1266
|
actual?: unknown;
|
|
1267
1267
|
}[];
|
|
1268
1268
|
timeline: {
|
|
1269
|
-
kind: string;
|
|
1270
1269
|
at: number;
|
|
1270
|
+
kind: string;
|
|
1271
1271
|
summary: string;
|
|
1272
1272
|
}[];
|
|
1273
1273
|
};
|
|
1274
1274
|
schemaVersion: 1 | 2 | 3;
|
|
1275
|
+
runId: string & z.BRAND<"RunId">;
|
|
1276
|
+
createdAt: number;
|
|
1275
1277
|
profile: "dev" | "prod-preview";
|
|
1278
|
+
project: {
|
|
1279
|
+
name: string;
|
|
1280
|
+
framework: "other" | "react" | "next" | "vite";
|
|
1281
|
+
commit?: string | undefined;
|
|
1282
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
1283
|
+
previewUrl?: string | undefined;
|
|
1284
|
+
};
|
|
1285
|
+
agent: {
|
|
1286
|
+
id: string;
|
|
1287
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1288
|
+
model?: string | undefined;
|
|
1289
|
+
};
|
|
1276
1290
|
trigger: {
|
|
1277
1291
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
1278
|
-
note?: string | undefined;
|
|
1279
1292
|
diffRef?: string | undefined;
|
|
1293
|
+
note?: string | undefined;
|
|
1280
1294
|
};
|
|
1281
1295
|
changedFiles: {
|
|
1282
1296
|
path: string;
|
|
@@ -1284,14 +1298,14 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1284
1298
|
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
1285
1299
|
}[];
|
|
1286
1300
|
checks: {
|
|
1287
|
-
status: "
|
|
1288
|
-
kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
|
|
1301
|
+
status: "yes" | "no" | "unknown" | "no-fault";
|
|
1289
1302
|
predicate: string;
|
|
1290
|
-
|
|
1303
|
+
kind?: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not" | undefined;
|
|
1291
1304
|
evidence?: unknown;
|
|
1292
1305
|
declaredBeforeActing?: boolean | undefined;
|
|
1293
1306
|
grade?: string | undefined;
|
|
1294
1307
|
couldNotSee?: string[] | undefined;
|
|
1308
|
+
reason?: string | undefined;
|
|
1295
1309
|
checkId?: string | undefined;
|
|
1296
1310
|
supersedes?: string | undefined;
|
|
1297
1311
|
}[];
|
|
@@ -1301,9 +1315,9 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1301
1315
|
detail: string;
|
|
1302
1316
|
gated: boolean;
|
|
1303
1317
|
evidence?: {
|
|
1318
|
+
network?: string | undefined;
|
|
1304
1319
|
file?: string | undefined;
|
|
1305
1320
|
line?: number | undefined;
|
|
1306
|
-
network?: string | undefined;
|
|
1307
1321
|
} | undefined;
|
|
1308
1322
|
}[];
|
|
1309
1323
|
verdict: {
|
|
@@ -1342,25 +1356,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1342
1356
|
signedAt: number;
|
|
1343
1357
|
} | undefined;
|
|
1344
1358
|
}, {
|
|
1345
|
-
createdAt: number;
|
|
1346
|
-
runId: string;
|
|
1347
|
-
agent: {
|
|
1348
|
-
id: string;
|
|
1349
|
-
kind: "human" | "coding-agent" | "oem-pipeline";
|
|
1350
|
-
model?: string | undefined;
|
|
1351
|
-
};
|
|
1352
|
-
project: {
|
|
1353
|
-
name: string;
|
|
1354
|
-
framework: "other" | "react" | "next" | "vite";
|
|
1355
|
-
commit?: string | undefined;
|
|
1356
|
-
env?: "local" | "preview" | "ci" | undefined;
|
|
1357
|
-
previewUrl?: string | undefined;
|
|
1358
|
-
};
|
|
1359
1359
|
durationMs: number;
|
|
1360
1360
|
evidence: {
|
|
1361
1361
|
consoleErrors?: {
|
|
1362
|
-
message: string;
|
|
1363
1362
|
at: number;
|
|
1363
|
+
message: string;
|
|
1364
1364
|
level: string;
|
|
1365
1365
|
}[] | undefined;
|
|
1366
1366
|
networkAnomalies?: {
|
|
@@ -1377,17 +1377,31 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1377
1377
|
actual?: unknown;
|
|
1378
1378
|
}[] | undefined;
|
|
1379
1379
|
timeline?: {
|
|
1380
|
-
kind: string;
|
|
1381
1380
|
at: number;
|
|
1381
|
+
kind: string;
|
|
1382
1382
|
summary: string;
|
|
1383
1383
|
}[] | undefined;
|
|
1384
1384
|
};
|
|
1385
1385
|
schemaVersion: 1 | 2 | 3;
|
|
1386
|
+
runId: string;
|
|
1387
|
+
createdAt: number;
|
|
1386
1388
|
profile: "dev" | "prod-preview";
|
|
1389
|
+
project: {
|
|
1390
|
+
name: string;
|
|
1391
|
+
framework: "other" | "react" | "next" | "vite";
|
|
1392
|
+
commit?: string | undefined;
|
|
1393
|
+
env?: "ci" | "preview" | "local" | undefined;
|
|
1394
|
+
previewUrl?: string | undefined;
|
|
1395
|
+
};
|
|
1396
|
+
agent: {
|
|
1397
|
+
id: string;
|
|
1398
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1399
|
+
model?: string | undefined;
|
|
1400
|
+
};
|
|
1387
1401
|
trigger: {
|
|
1388
1402
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
1389
|
-
note?: string | undefined;
|
|
1390
1403
|
diffRef?: string | undefined;
|
|
1404
|
+
note?: string | undefined;
|
|
1391
1405
|
};
|
|
1392
1406
|
verdict: {
|
|
1393
1407
|
status: "pass" | "fail" | "unknown" | "partial";
|
|
@@ -1428,11 +1442,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1428
1442
|
predicate: string;
|
|
1429
1443
|
status?: unknown;
|
|
1430
1444
|
kind?: unknown;
|
|
1431
|
-
reason?: string | undefined;
|
|
1432
1445
|
evidence?: unknown;
|
|
1433
1446
|
declaredBeforeActing?: boolean | undefined;
|
|
1434
1447
|
grade?: string | undefined;
|
|
1435
1448
|
couldNotSee?: string[] | undefined;
|
|
1449
|
+
reason?: string | undefined;
|
|
1436
1450
|
checkId?: string | undefined;
|
|
1437
1451
|
supersedes?: string | undefined;
|
|
1438
1452
|
}[] | undefined;
|
|
@@ -1441,9 +1455,9 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1441
1455
|
severity: "low" | "medium" | "high" | "critical";
|
|
1442
1456
|
detail: string;
|
|
1443
1457
|
evidence?: {
|
|
1458
|
+
network?: string | undefined;
|
|
1444
1459
|
file?: string | undefined;
|
|
1445
1460
|
line?: number | undefined;
|
|
1446
|
-
network?: string | undefined;
|
|
1447
1461
|
} | undefined;
|
|
1448
1462
|
gated?: boolean | undefined;
|
|
1449
1463
|
}[] | undefined;
|