@reticlehq/core 2.3.0 → 2.5.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/consequence.d.ts +27 -0
- package/dist/consequence.js +26 -0
- package/dist/constants.d.ts +52 -8
- package/dist/constants.js +49 -8
- package/dist/contract-fingerprint.d.ts +29 -0
- package/dist/contract-fingerprint.js +56 -0
- package/dist/daemon-registry.js +1 -1
- package/dist/event-payloads.d.ts +50 -2
- package/dist/event-payloads.js +12 -1
- package/dist/flow-constants.d.ts +8 -0
- package/dist/flow-constants.js +12 -0
- package/dist/flow-types.d.ts +40 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/journal.d.ts +2 -2
- package/dist/messages.d.ts +72 -0
- package/dist/messages.js +34 -0
- package/dist/net.d.ts +40 -0
- package/dist/net.js +44 -0
- package/dist/project-id.d.ts +28 -0
- package/dist/project-id.js +51 -0
- package/dist/redaction.d.ts +64 -0
- package/dist/redaction.js +118 -1
- package/dist/schema/hello-message.json +17 -0
- package/dist/schema/reticle-message.json +17 -0
- package/dist/security.js +10 -5
- package/dist/source-constants.d.ts +32 -0
- package/dist/source-constants.js +32 -0
- package/dist/state-select.d.ts +24 -2
- package/dist/state-select.js +102 -22
- package/dist/telemetry-feedback.d.ts +32 -10
- package/dist/telemetry-feedback.js +21 -0
- package/dist/telemetry-session.d.ts +30 -0
- package/dist/telemetry-session.js +24 -0
- package/dist/telemetry.d.ts +491 -81
- package/dist/telemetry.js +188 -2
- package/dist/toon.d.ts +2 -1
- package/dist/toon.js +37 -37
- package/dist/types.d.ts +54 -6
- package/dist/types.js +12 -0
- package/dist/upgrade.js +1 -1
- package/dist/verification-run.d.ts +38 -38
- package/dist/verified-constants.d.ts +37 -0
- package/dist/verified-constants.js +36 -0
- package/package.json +5 -3
package/dist/telemetry.d.ts
CHANGED
|
@@ -52,6 +52,20 @@ export declare const TelemetryEventKind: {
|
|
|
52
52
|
* errors, features touched). One event replaces the hundreds the old per-call `tool` event sent.
|
|
53
53
|
*/
|
|
54
54
|
readonly DAEMON_STOPPED: "daemon_stopped";
|
|
55
|
+
/**
|
|
56
|
+
* A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
|
|
57
|
+
* `final: false`.
|
|
58
|
+
*
|
|
59
|
+
* It used to be emitted AS `daemon_stopped`, which made an event named for an exit fire while the
|
|
60
|
+
* process was alive. Measured over one day: 98 `daemon_stopped` events were 73 real exits plus 25
|
|
61
|
+
* flushes, so anything counting sessions over-stated by 34% — and worse, the two populations are
|
|
62
|
+
* opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
|
|
63
|
+
* served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
|
|
64
|
+
* the raw event therefore describes active sessions at one end and abandoned ones at the other.
|
|
65
|
+
*
|
|
66
|
+
* Count sessions with DAEMON_STOPPED. Sum work with both.
|
|
67
|
+
*/
|
|
68
|
+
readonly SESSION_PROGRESS: "session_progress";
|
|
55
69
|
/**
|
|
56
70
|
* A verification produced a verdict. The product's reason to exist, and the one metric an investor
|
|
57
71
|
* should be shown: not "tools were called" but "an app was actually verified, and here is how often
|
|
@@ -90,6 +104,23 @@ export declare const TelemetryEventKind: {
|
|
|
90
104
|
* identical to healthy usage in every other metric.
|
|
91
105
|
*/
|
|
92
106
|
readonly MCP_CLIENT_CONNECTED: "mcp_client_connected";
|
|
107
|
+
/**
|
|
108
|
+
* The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
|
|
109
|
+
* completely invisible in the field.
|
|
110
|
+
*
|
|
111
|
+
* `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
|
|
112
|
+
* account of an outage went to a local file nobody sends us. So "how often does a real user's MCP
|
|
113
|
+
* server go down, and does it come back" — the single question the transport has to answer — could
|
|
114
|
+
* not be asked of any dashboard.
|
|
115
|
+
*
|
|
116
|
+
* Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
|
|
117
|
+
* the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
|
|
118
|
+
* per-call `tool` event was already removed here for cost, and one measured afternoon produced 547
|
|
119
|
+
* proxy reconnects — an event per reconnect would bill for the pathology instead of measuring it.
|
|
120
|
+
* The first-outage event answers "what share of sessions lose MCP at all", which is the number
|
|
121
|
+
* that decides whether this is fixed.
|
|
122
|
+
*/
|
|
123
|
+
readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
|
|
93
124
|
/**
|
|
94
125
|
* `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
|
|
95
126
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
@@ -110,6 +141,8 @@ export declare const TelemetryEventKind: {
|
|
|
110
141
|
readonly BUG_FOUND: "bug_found";
|
|
111
142
|
};
|
|
112
143
|
export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof TelemetryEventKind];
|
|
144
|
+
/** True when this event happened inside a daemon run, so a `sessionId` on it means something. */
|
|
145
|
+
export declare function isSessionScoped(kind: string): boolean;
|
|
113
146
|
/**
|
|
114
147
|
* Who caused this. The only honest split available to us: a `reticle` command was TYPED by a person,
|
|
115
148
|
* while an MCP tool call came from the agent's own loop.
|
|
@@ -166,34 +199,106 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
166
199
|
*/
|
|
167
200
|
falseGreenCaught: z.ZodBoolean;
|
|
168
201
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
/**
|
|
203
|
+
* `headless` | `headed` | `attached` — how the browser under verification got there.
|
|
204
|
+
*
|
|
205
|
+
* Without it, "verifications run" is one undifferentiated number covering three different
|
|
206
|
+
* products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
|
|
207
|
+
* server. They have different costs, different failure modes and different value, and only the
|
|
208
|
+
* last one is what most installs actually do.
|
|
209
|
+
*/
|
|
210
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
211
|
+
/**
|
|
212
|
+
* WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
|
|
213
|
+
* `safari` | `other`, from `BrowserBrand`.
|
|
214
|
+
*
|
|
215
|
+
* `browser` above says who drove it, and its most common value by far is `attached`: the SDK
|
|
216
|
+
* connected from a browser Reticle never launched. That leaves the actual browser unknown, and
|
|
217
|
+
* the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
|
|
218
|
+
*
|
|
219
|
+
* OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
|
|
220
|
+
* brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
|
|
221
|
+
* measured one on a dashboard.
|
|
222
|
+
*/
|
|
223
|
+
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
224
|
+
readonly CHROME: "chrome";
|
|
225
|
+
readonly EDGE: "edge";
|
|
226
|
+
readonly ARC: "arc";
|
|
227
|
+
readonly DIA: "dia";
|
|
228
|
+
readonly BRAVE: "brave";
|
|
229
|
+
readonly OPERA: "opera";
|
|
230
|
+
readonly FIREFOX: "firefox";
|
|
231
|
+
readonly SAFARI: "safari";
|
|
232
|
+
readonly OTHER: "other";
|
|
233
|
+
}>>;
|
|
234
|
+
/**
|
|
235
|
+
* WHICH clause of the honesty rule decided this — see `VerifiedReason`.
|
|
236
|
+
*
|
|
237
|
+
* `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
|
|
238
|
+
* was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
|
|
239
|
+
* "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
|
|
240
|
+
* collapses "channels disagree" into "the agent's predicate failed" the same way.
|
|
241
|
+
*
|
|
242
|
+
* OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
|
|
243
|
+
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
244
|
+
*/
|
|
245
|
+
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
246
|
+
readonly INCONCLUSIVE: "inconclusive";
|
|
247
|
+
readonly ASSERTION_FAILED: "assertion_failed";
|
|
248
|
+
readonly CONTRADICTED: "contradicted";
|
|
249
|
+
readonly ALREADY_TRUE: "already_true";
|
|
250
|
+
readonly UNCLEAN_CAPTURE: "unclean_capture";
|
|
251
|
+
readonly VACUOUS_GRADE: "vacuous_grade";
|
|
252
|
+
readonly OUTCOME_PENDING: "outcome_pending";
|
|
253
|
+
readonly OUTCOME_UNREAD: "outcome_unread";
|
|
254
|
+
readonly UNSETTLED: "unsettled";
|
|
255
|
+
readonly PROVED: "proved";
|
|
256
|
+
}>>;
|
|
169
257
|
}, "strip", z.ZodTypeAny, {
|
|
170
258
|
via: string;
|
|
171
259
|
verified: string;
|
|
172
260
|
passed: boolean;
|
|
173
261
|
falseGreenCaught: boolean;
|
|
174
262
|
durationMs?: number | undefined;
|
|
263
|
+
reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
264
|
+
brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
|
|
265
|
+
browser?: string | undefined;
|
|
175
266
|
}, {
|
|
176
267
|
via: string;
|
|
177
268
|
verified: string;
|
|
178
269
|
passed: boolean;
|
|
179
270
|
falseGreenCaught: boolean;
|
|
180
271
|
durationMs?: number | undefined;
|
|
272
|
+
reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
273
|
+
brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
|
|
274
|
+
browser?: string | undefined;
|
|
181
275
|
}>;
|
|
182
276
|
export type Verification = z.infer<typeof VerificationSchema>;
|
|
183
277
|
/** Which way the installed version moved, and between which versions. */
|
|
184
278
|
export declare const VersionChangeSchema: z.ZodObject<{
|
|
185
279
|
from: z.ZodString;
|
|
186
280
|
to: z.ZodString;
|
|
281
|
+
/**
|
|
282
|
+
* True when an agent had been told about exactly this version recently — so the nudge plausibly
|
|
283
|
+
* caused the update.
|
|
284
|
+
*
|
|
285
|
+
* Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
|
|
286
|
+
* fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
|
|
287
|
+
* and the whole adoption story rests on knowing which one is happening.
|
|
288
|
+
*/
|
|
289
|
+
nudged: z.ZodOptional<z.ZodBoolean>;
|
|
187
290
|
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
188
291
|
direction: z.ZodString;
|
|
189
292
|
}, "strip", z.ZodTypeAny, {
|
|
190
293
|
direction: string;
|
|
191
294
|
from: string;
|
|
192
295
|
to: string;
|
|
296
|
+
nudged?: boolean | undefined;
|
|
193
297
|
}, {
|
|
194
298
|
direction: string;
|
|
195
299
|
from: string;
|
|
196
300
|
to: string;
|
|
301
|
+
nudged?: boolean | undefined;
|
|
197
302
|
}>;
|
|
198
303
|
export type VersionChange = z.infer<typeof VersionChangeSchema>;
|
|
199
304
|
/**
|
|
@@ -323,6 +428,29 @@ export declare const BugSource: {
|
|
|
323
428
|
readonly ASSERTION: "assertion";
|
|
324
429
|
};
|
|
325
430
|
export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
431
|
+
/**
|
|
432
|
+
* WHOSE fault the defect was.
|
|
433
|
+
*
|
|
434
|
+
* `bugsFound` is the number this product would most like to publish, and it is not publishable
|
|
435
|
+
* without this. Measured over one real session: 8 `bug_found` events, of which **one** was a defect
|
|
436
|
+
* in the app under test. The other seven were the agent's own bad predicates (a store path that
|
|
437
|
+
* never existed, an impossible selector) and one empty ref, all published as defects in the
|
|
438
|
+
* customer's product. A founder steering on that number is steering on noise.
|
|
439
|
+
*
|
|
440
|
+
* Deliberately OMITTED rather than guessed when the evidence does not say. A failed `element.present`
|
|
441
|
+
* covers "the button is missing", "the API is down" and "the agent mistyped a testid" identically,
|
|
442
|
+
* and inventing an owner for it would put a guess into the one number we intend to publish — the
|
|
443
|
+
* same mistake `brand` refuses to make by being absent rather than `"unknown"`.
|
|
444
|
+
*/
|
|
445
|
+
export declare const BugAttribution: {
|
|
446
|
+
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
447
|
+
readonly APP: "app";
|
|
448
|
+
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
449
|
+
readonly REQUEST: "request";
|
|
450
|
+
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
451
|
+
readonly RETICLE: "reticle";
|
|
452
|
+
};
|
|
453
|
+
export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution];
|
|
326
454
|
/**
|
|
327
455
|
* One defect Reticle found in the app under test.
|
|
328
456
|
*
|
|
@@ -374,17 +502,31 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
374
502
|
* as one — and must not be, since that would need data this event refuses to collect.
|
|
375
503
|
*/
|
|
376
504
|
repeat: z.ZodBoolean;
|
|
505
|
+
/**
|
|
506
|
+
* Whose fault it was — `app` | `request` | `reticle`. ABSENT when the evidence cannot say; see
|
|
507
|
+
* `BugAttribution`. Count `attribution: 'app'` for defects found in anybody's product.
|
|
508
|
+
*/
|
|
509
|
+
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
510
|
+
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
511
|
+
readonly APP: "app";
|
|
512
|
+
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
513
|
+
readonly REQUEST: "request";
|
|
514
|
+
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
515
|
+
readonly RETICLE: "reticle";
|
|
516
|
+
}>>;
|
|
377
517
|
}, "strip", z.ZodTypeAny, {
|
|
378
518
|
kind: string;
|
|
379
519
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
380
520
|
falseGreen: boolean;
|
|
381
521
|
repeat: boolean;
|
|
522
|
+
attribution?: "app" | "request" | "reticle" | undefined;
|
|
382
523
|
tool?: string | undefined;
|
|
383
524
|
}, {
|
|
384
525
|
kind: string;
|
|
385
526
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
386
527
|
falseGreen: boolean;
|
|
387
528
|
repeat: boolean;
|
|
529
|
+
attribution?: "app" | "request" | "reticle" | undefined;
|
|
388
530
|
tool?: string | undefined;
|
|
389
531
|
}>;
|
|
390
532
|
export type BugFound = z.infer<typeof BugFoundSchema>;
|
|
@@ -410,6 +552,76 @@ export declare const McpConnectionSchema: z.ZodObject<{
|
|
|
410
552
|
client?: string | undefined;
|
|
411
553
|
}>;
|
|
412
554
|
export type McpConnection = z.infer<typeof McpConnectionSchema>;
|
|
555
|
+
/**
|
|
556
|
+
* WHICH stage of an MCP outage this is. Reported at most twice per proxy process, and the two are
|
|
557
|
+
* different facts: `first` says the session lost its tools at all, `budget_spent` says the proxy
|
|
558
|
+
* stopped retrying and never came back on its own.
|
|
559
|
+
*/
|
|
560
|
+
export declare const OutageStage: {
|
|
561
|
+
readonly FIRST: "first";
|
|
562
|
+
readonly BUDGET_SPENT: "budget_spent";
|
|
563
|
+
};
|
|
564
|
+
export type OutageStage = (typeof OutageStage)[keyof typeof OutageStage];
|
|
565
|
+
/**
|
|
566
|
+
* WHY the stream went away, as far as the proxy can tell. A closed vocabulary because the proxy's
|
|
567
|
+
* own reason strings are free text feeding a log — `OTHER` is the bucket that lets a new one arrive
|
|
568
|
+
* without a raw string reaching the wire, per the classifier rule.
|
|
569
|
+
*/
|
|
570
|
+
export declare const OutageReason: {
|
|
571
|
+
/** The SSE stream ended cleanly — usually the daemon exiting. */
|
|
572
|
+
readonly SSE_ENDED: "sse_ended";
|
|
573
|
+
/** The stream errored. */
|
|
574
|
+
readonly SSE_ERROR: "sse_error";
|
|
575
|
+
/** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
|
|
576
|
+
readonly SSE_ABORTED: "sse_aborted";
|
|
577
|
+
/** The response closed. */
|
|
578
|
+
readonly SSE_CLOSED: "sse_closed";
|
|
579
|
+
/** A reconnect attempt could not reach the daemon at all. */
|
|
580
|
+
readonly CONNECT_ERROR: "connect_error";
|
|
581
|
+
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
582
|
+
readonly OTHER: "other";
|
|
583
|
+
};
|
|
584
|
+
export type OutageReason = (typeof OutageReason)[keyof typeof OutageReason];
|
|
585
|
+
/**
|
|
586
|
+
* The agent LOST its Reticle tools.
|
|
587
|
+
*
|
|
588
|
+
* This block existed on the emitter's input type and never on the wire: `emit()` builds its event
|
|
589
|
+
* from an explicit allow-list of keys and `outage` was not in it, so two deliberately different
|
|
590
|
+
* outages — `first`/`sse_ended`/3 and `budget_spent`/`connect_error`/12 — produced byte-identical
|
|
591
|
+
* events. Against a standing "MCP must never go down" mandate, the metric that measures it reported
|
|
592
|
+
* a bare count with no cause and no recovery signal. This is the schema half of the fix.
|
|
593
|
+
*/
|
|
594
|
+
export declare const McpOutageSchema: z.ZodObject<{
|
|
595
|
+
stage: z.ZodNativeEnum<{
|
|
596
|
+
readonly FIRST: "first";
|
|
597
|
+
readonly BUDGET_SPENT: "budget_spent";
|
|
598
|
+
}>;
|
|
599
|
+
reason: z.ZodNativeEnum<{
|
|
600
|
+
/** The SSE stream ended cleanly — usually the daemon exiting. */
|
|
601
|
+
readonly SSE_ENDED: "sse_ended";
|
|
602
|
+
/** The stream errored. */
|
|
603
|
+
readonly SSE_ERROR: "sse_error";
|
|
604
|
+
/** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
|
|
605
|
+
readonly SSE_ABORTED: "sse_aborted";
|
|
606
|
+
/** The response closed. */
|
|
607
|
+
readonly SSE_CLOSED: "sse_closed";
|
|
608
|
+
/** A reconnect attempt could not reach the daemon at all. */
|
|
609
|
+
readonly CONNECT_ERROR: "connect_error";
|
|
610
|
+
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
611
|
+
readonly OTHER: "other";
|
|
612
|
+
}>;
|
|
613
|
+
/** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
|
|
614
|
+
attempts: z.ZodNumber;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
617
|
+
attempts: number;
|
|
618
|
+
stage: "first" | "budget_spent";
|
|
619
|
+
}, {
|
|
620
|
+
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
621
|
+
attempts: number;
|
|
622
|
+
stage: "first" | "budget_spent";
|
|
623
|
+
}>;
|
|
624
|
+
export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
413
625
|
/** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
|
|
414
626
|
export declare const InitOutcomeSchema: z.ZodObject<{
|
|
415
627
|
ok: z.ZodBoolean;
|
|
@@ -421,13 +633,13 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
421
633
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
422
634
|
}, "strip", z.ZodTypeAny, {
|
|
423
635
|
ok: boolean;
|
|
424
|
-
reason?: string | undefined;
|
|
425
636
|
stack?: string | undefined;
|
|
637
|
+
reason?: string | undefined;
|
|
426
638
|
mcpRegistered?: boolean | undefined;
|
|
427
639
|
}, {
|
|
428
640
|
ok: boolean;
|
|
429
|
-
reason?: string | undefined;
|
|
430
641
|
stack?: string | undefined;
|
|
642
|
+
reason?: string | undefined;
|
|
431
643
|
mcpRegistered?: boolean | undefined;
|
|
432
644
|
}>;
|
|
433
645
|
export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
@@ -450,7 +662,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
450
662
|
* explicitly supports) interleaved into one undifferentiated stream, and no per-session funnel could
|
|
451
663
|
* be built at all. It cannot be backfilled, which is why it is worth adding before the data matters.
|
|
452
664
|
*/
|
|
453
|
-
|
|
665
|
+
/**
|
|
666
|
+
* The daemon run this happened inside. ABSENT on one-shot CLI events — see isSessionScoped: a
|
|
667
|
+
* per-process id on `reticle status` is not a session, it is a number that inflates every session
|
|
668
|
+
* count and joins to nothing.
|
|
669
|
+
*/
|
|
670
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
454
671
|
event: z.ZodNativeEnum<{
|
|
455
672
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
456
673
|
readonly RETICLE_INSTALLED: "reticle_installed";
|
|
@@ -471,6 +688,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
471
688
|
* errors, features touched). One event replaces the hundreds the old per-call `tool` event sent.
|
|
472
689
|
*/
|
|
473
690
|
readonly DAEMON_STOPPED: "daemon_stopped";
|
|
691
|
+
/**
|
|
692
|
+
* A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
|
|
693
|
+
* `final: false`.
|
|
694
|
+
*
|
|
695
|
+
* It used to be emitted AS `daemon_stopped`, which made an event named for an exit fire while the
|
|
696
|
+
* process was alive. Measured over one day: 98 `daemon_stopped` events were 73 real exits plus 25
|
|
697
|
+
* flushes, so anything counting sessions over-stated by 34% — and worse, the two populations are
|
|
698
|
+
* opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
|
|
699
|
+
* served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
|
|
700
|
+
* the raw event therefore describes active sessions at one end and abandoned ones at the other.
|
|
701
|
+
*
|
|
702
|
+
* Count sessions with DAEMON_STOPPED. Sum work with both.
|
|
703
|
+
*/
|
|
704
|
+
readonly SESSION_PROGRESS: "session_progress";
|
|
474
705
|
/**
|
|
475
706
|
* A verification produced a verdict. The product's reason to exist, and the one metric an investor
|
|
476
707
|
* should be shown: not "tools were called" but "an app was actually verified, and here is how often
|
|
@@ -509,6 +740,23 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
509
740
|
* identical to healthy usage in every other metric.
|
|
510
741
|
*/
|
|
511
742
|
readonly MCP_CLIENT_CONNECTED: "mcp_client_connected";
|
|
743
|
+
/**
|
|
744
|
+
* The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
|
|
745
|
+
* completely invisible in the field.
|
|
746
|
+
*
|
|
747
|
+
* `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
|
|
748
|
+
* account of an outage went to a local file nobody sends us. So "how often does a real user's MCP
|
|
749
|
+
* server go down, and does it come back" — the single question the transport has to answer — could
|
|
750
|
+
* not be asked of any dashboard.
|
|
751
|
+
*
|
|
752
|
+
* Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
|
|
753
|
+
* the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
|
|
754
|
+
* per-call `tool` event was already removed here for cost, and one measured afternoon produced 547
|
|
755
|
+
* proxy reconnects — an event per reconnect would bill for the pathology instead of measuring it.
|
|
756
|
+
* The first-outage event answers "what share of sessions lose MCP at all", which is the number
|
|
757
|
+
* that decides whether this is fixed.
|
|
758
|
+
*/
|
|
759
|
+
readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
|
|
512
760
|
/**
|
|
513
761
|
* `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
|
|
514
762
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
@@ -547,6 +795,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
547
795
|
}>>;
|
|
548
796
|
/** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
|
|
549
797
|
os: z.ZodString;
|
|
798
|
+
/**
|
|
799
|
+
* Minutes this machine's local time is offset from UTC.
|
|
800
|
+
*
|
|
801
|
+
* "When do they work" was answerable only through ingest-side GeoIP, which may be off and is a
|
|
802
|
+
* coarser thing than a working day. One integer, no location, identifies nobody — and it turns
|
|
803
|
+
* every time-of-day tile from "which continent" into "9am or 11pm".
|
|
804
|
+
*/
|
|
805
|
+
tzOffsetMin: z.ZodOptional<z.ZodNumber>;
|
|
550
806
|
/** Only on `feedback`: the author-submitted report + its environment context. Never sent otherwise. */
|
|
551
807
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
552
808
|
source: z.ZodNativeEnum<{
|
|
@@ -593,39 +849,39 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
593
849
|
}, "strip", z.ZodTypeAny, {
|
|
594
850
|
text: string;
|
|
595
851
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
596
|
-
source: "
|
|
597
|
-
model?: string | undefined;
|
|
598
|
-
stack?: string | undefined;
|
|
599
|
-
stackMajor?: number | undefined;
|
|
852
|
+
source: "agent" | "human";
|
|
600
853
|
trace?: string | undefined;
|
|
601
854
|
rating?: number | undefined;
|
|
602
855
|
need?: string | undefined;
|
|
603
856
|
impact?: string | undefined;
|
|
604
857
|
currentApproach?: string | undefined;
|
|
858
|
+
model?: string | undefined;
|
|
605
859
|
clientVersion?: string | undefined;
|
|
860
|
+
stack?: string | undefined;
|
|
861
|
+
stackMajor?: number | undefined;
|
|
606
862
|
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
607
863
|
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
608
864
|
driver?: "cdp" | "sdk" | undefined;
|
|
609
865
|
client?: string | undefined;
|
|
610
|
-
mcpScope?: "
|
|
866
|
+
mcpScope?: "user" | "project" | undefined;
|
|
611
867
|
}, {
|
|
612
868
|
text: string;
|
|
613
869
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
614
|
-
source: "
|
|
615
|
-
model?: string | undefined;
|
|
616
|
-
stack?: string | undefined;
|
|
617
|
-
stackMajor?: number | undefined;
|
|
870
|
+
source: "agent" | "human";
|
|
618
871
|
trace?: string | undefined;
|
|
619
872
|
rating?: number | undefined;
|
|
620
873
|
need?: string | undefined;
|
|
621
874
|
impact?: string | undefined;
|
|
622
875
|
currentApproach?: string | undefined;
|
|
876
|
+
model?: string | undefined;
|
|
623
877
|
clientVersion?: string | undefined;
|
|
878
|
+
stack?: string | undefined;
|
|
879
|
+
stackMajor?: number | undefined;
|
|
624
880
|
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
625
881
|
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
626
882
|
driver?: "cdp" | "sdk" | undefined;
|
|
627
883
|
client?: string | undefined;
|
|
628
|
-
mcpScope?: "
|
|
884
|
+
mcpScope?: "user" | "project" | undefined;
|
|
629
885
|
}>>;
|
|
630
886
|
/** Human or agent. Absent on events that are neither (a crash, a version change). */
|
|
631
887
|
actor: z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -711,6 +967,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
711
967
|
browserCommands: z.ZodOptional<z.ZodNumber>;
|
|
712
968
|
peakConcurrentTools: z.ZodOptional<z.ZodNumber>;
|
|
713
969
|
unknownToolCalls: z.ZodOptional<z.ZodNumber>;
|
|
970
|
+
noSessionErrors: z.ZodOptional<z.ZodNumber>;
|
|
971
|
+
consecutiveRepeats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
972
|
+
abandonedActions: z.ZodOptional<z.ZodNumber>;
|
|
714
973
|
machine: z.ZodOptional<z.ZodObject<{
|
|
715
974
|
rssMb: z.ZodNumber;
|
|
716
975
|
heapUsedMb: z.ZodNumber;
|
|
@@ -772,6 +1031,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
772
1031
|
browserCommands?: number | undefined;
|
|
773
1032
|
peakConcurrentTools?: number | undefined;
|
|
774
1033
|
unknownToolCalls?: number | undefined;
|
|
1034
|
+
noSessionErrors?: number | undefined;
|
|
1035
|
+
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1036
|
+
abandonedActions?: number | undefined;
|
|
775
1037
|
machine?: {
|
|
776
1038
|
rssMb: number;
|
|
777
1039
|
heapUsedMb: number;
|
|
@@ -818,6 +1080,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
818
1080
|
browserCommands?: number | undefined;
|
|
819
1081
|
peakConcurrentTools?: number | undefined;
|
|
820
1082
|
unknownToolCalls?: number | undefined;
|
|
1083
|
+
noSessionErrors?: number | undefined;
|
|
1084
|
+
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1085
|
+
abandonedActions?: number | undefined;
|
|
821
1086
|
machine?: {
|
|
822
1087
|
rssMb: number;
|
|
823
1088
|
heapUsedMb: number;
|
|
@@ -910,33 +1175,105 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
910
1175
|
*/
|
|
911
1176
|
falseGreenCaught: z.ZodBoolean;
|
|
912
1177
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1178
|
+
/**
|
|
1179
|
+
* `headless` | `headed` | `attached` — how the browser under verification got there.
|
|
1180
|
+
*
|
|
1181
|
+
* Without it, "verifications run" is one undifferentiated number covering three different
|
|
1182
|
+
* products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
|
|
1183
|
+
* server. They have different costs, different failure modes and different value, and only the
|
|
1184
|
+
* last one is what most installs actually do.
|
|
1185
|
+
*/
|
|
1186
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
/**
|
|
1188
|
+
* WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
|
|
1189
|
+
* `safari` | `other`, from `BrowserBrand`.
|
|
1190
|
+
*
|
|
1191
|
+
* `browser` above says who drove it, and its most common value by far is `attached`: the SDK
|
|
1192
|
+
* connected from a browser Reticle never launched. That leaves the actual browser unknown, and
|
|
1193
|
+
* the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
|
|
1194
|
+
*
|
|
1195
|
+
* OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
|
|
1196
|
+
* brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
|
|
1197
|
+
* measured one on a dashboard.
|
|
1198
|
+
*/
|
|
1199
|
+
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
1200
|
+
readonly CHROME: "chrome";
|
|
1201
|
+
readonly EDGE: "edge";
|
|
1202
|
+
readonly ARC: "arc";
|
|
1203
|
+
readonly DIA: "dia";
|
|
1204
|
+
readonly BRAVE: "brave";
|
|
1205
|
+
readonly OPERA: "opera";
|
|
1206
|
+
readonly FIREFOX: "firefox";
|
|
1207
|
+
readonly SAFARI: "safari";
|
|
1208
|
+
readonly OTHER: "other";
|
|
1209
|
+
}>>;
|
|
1210
|
+
/**
|
|
1211
|
+
* WHICH clause of the honesty rule decided this — see `VerifiedReason`.
|
|
1212
|
+
*
|
|
1213
|
+
* `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
|
|
1214
|
+
* was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
|
|
1215
|
+
* "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
|
|
1216
|
+
* collapses "channels disagree" into "the agent's predicate failed" the same way.
|
|
1217
|
+
*
|
|
1218
|
+
* OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
|
|
1219
|
+
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
1220
|
+
*/
|
|
1221
|
+
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
1222
|
+
readonly INCONCLUSIVE: "inconclusive";
|
|
1223
|
+
readonly ASSERTION_FAILED: "assertion_failed";
|
|
1224
|
+
readonly CONTRADICTED: "contradicted";
|
|
1225
|
+
readonly ALREADY_TRUE: "already_true";
|
|
1226
|
+
readonly UNCLEAN_CAPTURE: "unclean_capture";
|
|
1227
|
+
readonly VACUOUS_GRADE: "vacuous_grade";
|
|
1228
|
+
readonly OUTCOME_PENDING: "outcome_pending";
|
|
1229
|
+
readonly OUTCOME_UNREAD: "outcome_unread";
|
|
1230
|
+
readonly UNSETTLED: "unsettled";
|
|
1231
|
+
readonly PROVED: "proved";
|
|
1232
|
+
}>>;
|
|
913
1233
|
}, "strip", z.ZodTypeAny, {
|
|
914
1234
|
via: string;
|
|
915
1235
|
verified: string;
|
|
916
1236
|
passed: boolean;
|
|
917
1237
|
falseGreenCaught: boolean;
|
|
918
1238
|
durationMs?: number | undefined;
|
|
1239
|
+
reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
1240
|
+
brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
|
|
1241
|
+
browser?: string | undefined;
|
|
919
1242
|
}, {
|
|
920
1243
|
via: string;
|
|
921
1244
|
verified: string;
|
|
922
1245
|
passed: boolean;
|
|
923
1246
|
falseGreenCaught: boolean;
|
|
924
1247
|
durationMs?: number | undefined;
|
|
1248
|
+
reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
1249
|
+
brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
|
|
1250
|
+
browser?: string | undefined;
|
|
925
1251
|
}>>;
|
|
926
1252
|
/** Only on `version_changed`. */
|
|
927
1253
|
versionChange: z.ZodOptional<z.ZodObject<{
|
|
928
1254
|
from: z.ZodString;
|
|
929
1255
|
to: z.ZodString;
|
|
1256
|
+
/**
|
|
1257
|
+
* True when an agent had been told about exactly this version recently — so the nudge plausibly
|
|
1258
|
+
* caused the update.
|
|
1259
|
+
*
|
|
1260
|
+
* Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
|
|
1261
|
+
* fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
|
|
1262
|
+
* and the whole adoption story rests on knowing which one is happening.
|
|
1263
|
+
*/
|
|
1264
|
+
nudged: z.ZodOptional<z.ZodBoolean>;
|
|
930
1265
|
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
931
1266
|
direction: z.ZodString;
|
|
932
1267
|
}, "strip", z.ZodTypeAny, {
|
|
933
1268
|
direction: string;
|
|
934
1269
|
from: string;
|
|
935
1270
|
to: string;
|
|
1271
|
+
nudged?: boolean | undefined;
|
|
936
1272
|
}, {
|
|
937
1273
|
direction: string;
|
|
938
1274
|
from: string;
|
|
939
1275
|
to: string;
|
|
1276
|
+
nudged?: boolean | undefined;
|
|
940
1277
|
}>>;
|
|
941
1278
|
/** Only on `runtime_crashed`. */
|
|
942
1279
|
crash: z.ZodOptional<z.ZodObject<{
|
|
@@ -1090,13 +1427,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1090
1427
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
1091
1428
|
}, "strip", z.ZodTypeAny, {
|
|
1092
1429
|
ok: boolean;
|
|
1093
|
-
reason?: string | undefined;
|
|
1094
1430
|
stack?: string | undefined;
|
|
1431
|
+
reason?: string | undefined;
|
|
1095
1432
|
mcpRegistered?: boolean | undefined;
|
|
1096
1433
|
}, {
|
|
1097
1434
|
ok: boolean;
|
|
1098
|
-
reason?: string | undefined;
|
|
1099
1435
|
stack?: string | undefined;
|
|
1436
|
+
reason?: string | undefined;
|
|
1100
1437
|
mcpRegistered?: boolean | undefined;
|
|
1101
1438
|
}>>;
|
|
1102
1439
|
/** Only on `bug_found`. */
|
|
@@ -1144,22 +1481,66 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1144
1481
|
* as one — and must not be, since that would need data this event refuses to collect.
|
|
1145
1482
|
*/
|
|
1146
1483
|
repeat: z.ZodBoolean;
|
|
1484
|
+
/**
|
|
1485
|
+
* Whose fault it was — `app` | `request` | `reticle`. ABSENT when the evidence cannot say; see
|
|
1486
|
+
* `BugAttribution`. Count `attribution: 'app'` for defects found in anybody's product.
|
|
1487
|
+
*/
|
|
1488
|
+
attribution: z.ZodOptional<z.ZodNativeEnum<{
|
|
1489
|
+
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
1490
|
+
readonly APP: "app";
|
|
1491
|
+
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
1492
|
+
readonly REQUEST: "request";
|
|
1493
|
+
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
1494
|
+
readonly RETICLE: "reticle";
|
|
1495
|
+
}>>;
|
|
1147
1496
|
}, "strip", z.ZodTypeAny, {
|
|
1148
1497
|
kind: string;
|
|
1149
1498
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
1150
1499
|
falseGreen: boolean;
|
|
1151
1500
|
repeat: boolean;
|
|
1501
|
+
attribution?: "app" | "request" | "reticle" | undefined;
|
|
1152
1502
|
tool?: string | undefined;
|
|
1153
1503
|
}, {
|
|
1154
1504
|
kind: string;
|
|
1155
1505
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
1156
1506
|
falseGreen: boolean;
|
|
1157
1507
|
repeat: boolean;
|
|
1508
|
+
attribution?: "app" | "request" | "reticle" | undefined;
|
|
1158
1509
|
tool?: string | undefined;
|
|
1159
1510
|
}>>;
|
|
1511
|
+
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
1512
|
+
outage: z.ZodOptional<z.ZodObject<{
|
|
1513
|
+
stage: z.ZodNativeEnum<{
|
|
1514
|
+
readonly FIRST: "first";
|
|
1515
|
+
readonly BUDGET_SPENT: "budget_spent";
|
|
1516
|
+
}>;
|
|
1517
|
+
reason: z.ZodNativeEnum<{
|
|
1518
|
+
/** The SSE stream ended cleanly — usually the daemon exiting. */
|
|
1519
|
+
readonly SSE_ENDED: "sse_ended";
|
|
1520
|
+
/** The stream errored. */
|
|
1521
|
+
readonly SSE_ERROR: "sse_error";
|
|
1522
|
+
/** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
|
|
1523
|
+
readonly SSE_ABORTED: "sse_aborted";
|
|
1524
|
+
/** The response closed. */
|
|
1525
|
+
readonly SSE_CLOSED: "sse_closed";
|
|
1526
|
+
/** A reconnect attempt could not reach the daemon at all. */
|
|
1527
|
+
readonly CONNECT_ERROR: "connect_error";
|
|
1528
|
+
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
1529
|
+
readonly OTHER: "other";
|
|
1530
|
+
}>;
|
|
1531
|
+
/** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
|
|
1532
|
+
attempts: z.ZodNumber;
|
|
1533
|
+
}, "strip", z.ZodTypeAny, {
|
|
1534
|
+
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
1535
|
+
attempts: number;
|
|
1536
|
+
stage: "first" | "budget_spent";
|
|
1537
|
+
}, {
|
|
1538
|
+
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
1539
|
+
attempts: number;
|
|
1540
|
+
stage: "first" | "budget_spent";
|
|
1541
|
+
}>>;
|
|
1160
1542
|
}, "strip", z.ZodTypeAny, {
|
|
1161
|
-
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "init_completed" | "bug_found";
|
|
1162
|
-
sessionId: string;
|
|
1543
|
+
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "mcp_connection_lost" | "init_completed" | "bug_found";
|
|
1163
1544
|
version: string;
|
|
1164
1545
|
ci: boolean;
|
|
1165
1546
|
v: 3;
|
|
@@ -1167,7 +1548,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1167
1548
|
ts: number;
|
|
1168
1549
|
os: string;
|
|
1169
1550
|
command?: string | undefined;
|
|
1551
|
+
sessionId?: string | undefined;
|
|
1170
1552
|
projectId?: string | undefined;
|
|
1553
|
+
bug?: {
|
|
1554
|
+
kind: string;
|
|
1555
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
1556
|
+
falseGreen: boolean;
|
|
1557
|
+
repeat: boolean;
|
|
1558
|
+
attribution?: "app" | "request" | "reticle" | undefined;
|
|
1559
|
+
tool?: string | undefined;
|
|
1560
|
+
} | undefined;
|
|
1561
|
+
project?: {
|
|
1562
|
+
git: "none" | "local_only" | "remote";
|
|
1563
|
+
flowCount: number;
|
|
1564
|
+
baselineCount: number;
|
|
1565
|
+
visualBaselineCount: number;
|
|
1566
|
+
runCount: number;
|
|
1567
|
+
hasContract: boolean;
|
|
1568
|
+
capsuleCount: number;
|
|
1569
|
+
featuresUsed: string[];
|
|
1570
|
+
featureDepth: number;
|
|
1571
|
+
stack?: string | undefined;
|
|
1572
|
+
stackMajor?: number | undefined;
|
|
1573
|
+
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
1574
|
+
monorepo?: boolean | undefined;
|
|
1575
|
+
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1576
|
+
ageWeeks?: number | undefined;
|
|
1577
|
+
} | undefined;
|
|
1171
1578
|
session?: {
|
|
1172
1579
|
durationMs: number;
|
|
1173
1580
|
toolCalls: number;
|
|
@@ -1205,6 +1612,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1205
1612
|
browserCommands?: number | undefined;
|
|
1206
1613
|
peakConcurrentTools?: number | undefined;
|
|
1207
1614
|
unknownToolCalls?: number | undefined;
|
|
1615
|
+
noSessionErrors?: number | undefined;
|
|
1616
|
+
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1617
|
+
abandonedActions?: number | undefined;
|
|
1208
1618
|
machine?: {
|
|
1209
1619
|
rssMb: number;
|
|
1210
1620
|
heapUsedMb: number;
|
|
@@ -1215,51 +1625,28 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1215
1625
|
} | undefined;
|
|
1216
1626
|
clients?: string[] | undefined;
|
|
1217
1627
|
} | undefined;
|
|
1218
|
-
project?: {
|
|
1219
|
-
git: "none" | "local_only" | "remote";
|
|
1220
|
-
flowCount: number;
|
|
1221
|
-
baselineCount: number;
|
|
1222
|
-
visualBaselineCount: number;
|
|
1223
|
-
runCount: number;
|
|
1224
|
-
hasContract: boolean;
|
|
1225
|
-
capsuleCount: number;
|
|
1226
|
-
featuresUsed: string[];
|
|
1227
|
-
featureDepth: number;
|
|
1228
|
-
stack?: string | undefined;
|
|
1229
|
-
stackMajor?: number | undefined;
|
|
1230
|
-
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
1231
|
-
monorepo?: boolean | undefined;
|
|
1232
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1233
|
-
ageWeeks?: number | undefined;
|
|
1234
|
-
} | undefined;
|
|
1235
|
-
bug?: {
|
|
1236
|
-
kind: string;
|
|
1237
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
1238
|
-
falseGreen: boolean;
|
|
1239
|
-
repeat: boolean;
|
|
1240
|
-
tool?: string | undefined;
|
|
1241
|
-
} | undefined;
|
|
1242
1628
|
projectIdSource?: "cwd" | "git_origin" | undefined;
|
|
1629
|
+
tzOffsetMin?: number | undefined;
|
|
1243
1630
|
feedback?: {
|
|
1244
1631
|
text: string;
|
|
1245
1632
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1246
|
-
source: "
|
|
1247
|
-
model?: string | undefined;
|
|
1248
|
-
stack?: string | undefined;
|
|
1249
|
-
stackMajor?: number | undefined;
|
|
1633
|
+
source: "agent" | "human";
|
|
1250
1634
|
trace?: string | undefined;
|
|
1251
1635
|
rating?: number | undefined;
|
|
1252
1636
|
need?: string | undefined;
|
|
1253
1637
|
impact?: string | undefined;
|
|
1254
1638
|
currentApproach?: string | undefined;
|
|
1639
|
+
model?: string | undefined;
|
|
1255
1640
|
clientVersion?: string | undefined;
|
|
1641
|
+
stack?: string | undefined;
|
|
1642
|
+
stackMajor?: number | undefined;
|
|
1256
1643
|
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
1257
1644
|
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
1258
1645
|
driver?: "cdp" | "sdk" | undefined;
|
|
1259
1646
|
client?: string | undefined;
|
|
1260
|
-
mcpScope?: "
|
|
1647
|
+
mcpScope?: "user" | "project" | undefined;
|
|
1261
1648
|
} | undefined;
|
|
1262
|
-
actor?: "
|
|
1649
|
+
actor?: "agent" | "human" | undefined;
|
|
1263
1650
|
flags?: string[] | undefined;
|
|
1264
1651
|
verification?: {
|
|
1265
1652
|
via: string;
|
|
@@ -1267,11 +1654,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1267
1654
|
passed: boolean;
|
|
1268
1655
|
falseGreenCaught: boolean;
|
|
1269
1656
|
durationMs?: number | undefined;
|
|
1657
|
+
reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
1658
|
+
brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
|
|
1659
|
+
browser?: string | undefined;
|
|
1270
1660
|
} | undefined;
|
|
1271
1661
|
versionChange?: {
|
|
1272
1662
|
direction: string;
|
|
1273
1663
|
from: string;
|
|
1274
1664
|
to: string;
|
|
1665
|
+
nudged?: boolean | undefined;
|
|
1275
1666
|
} | undefined;
|
|
1276
1667
|
crash?: {
|
|
1277
1668
|
kind: string;
|
|
@@ -1304,13 +1695,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1304
1695
|
} | undefined;
|
|
1305
1696
|
init?: {
|
|
1306
1697
|
ok: boolean;
|
|
1307
|
-
reason?: string | undefined;
|
|
1308
1698
|
stack?: string | undefined;
|
|
1699
|
+
reason?: string | undefined;
|
|
1309
1700
|
mcpRegistered?: boolean | undefined;
|
|
1310
1701
|
} | undefined;
|
|
1702
|
+
outage?: {
|
|
1703
|
+
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
1704
|
+
attempts: number;
|
|
1705
|
+
stage: "first" | "budget_spent";
|
|
1706
|
+
} | undefined;
|
|
1311
1707
|
}, {
|
|
1312
|
-
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "init_completed" | "bug_found";
|
|
1313
|
-
sessionId: string;
|
|
1708
|
+
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "mcp_connection_lost" | "init_completed" | "bug_found";
|
|
1314
1709
|
version: string;
|
|
1315
1710
|
ci: boolean;
|
|
1316
1711
|
v: 3;
|
|
@@ -1318,7 +1713,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1318
1713
|
ts: number;
|
|
1319
1714
|
os: string;
|
|
1320
1715
|
command?: string | undefined;
|
|
1716
|
+
sessionId?: string | undefined;
|
|
1321
1717
|
projectId?: string | undefined;
|
|
1718
|
+
bug?: {
|
|
1719
|
+
kind: string;
|
|
1720
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
1721
|
+
falseGreen: boolean;
|
|
1722
|
+
repeat: boolean;
|
|
1723
|
+
attribution?: "app" | "request" | "reticle" | undefined;
|
|
1724
|
+
tool?: string | undefined;
|
|
1725
|
+
} | undefined;
|
|
1726
|
+
project?: {
|
|
1727
|
+
git: "none" | "local_only" | "remote";
|
|
1728
|
+
flowCount: number;
|
|
1729
|
+
baselineCount: number;
|
|
1730
|
+
visualBaselineCount: number;
|
|
1731
|
+
runCount: number;
|
|
1732
|
+
hasContract: boolean;
|
|
1733
|
+
capsuleCount: number;
|
|
1734
|
+
featuresUsed: string[];
|
|
1735
|
+
featureDepth: number;
|
|
1736
|
+
stack?: string | undefined;
|
|
1737
|
+
stackMajor?: number | undefined;
|
|
1738
|
+
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
1739
|
+
monorepo?: boolean | undefined;
|
|
1740
|
+
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1741
|
+
ageWeeks?: number | undefined;
|
|
1742
|
+
} | undefined;
|
|
1322
1743
|
session?: {
|
|
1323
1744
|
durationMs: number;
|
|
1324
1745
|
toolCalls: number;
|
|
@@ -1356,6 +1777,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1356
1777
|
browserCommands?: number | undefined;
|
|
1357
1778
|
peakConcurrentTools?: number | undefined;
|
|
1358
1779
|
unknownToolCalls?: number | undefined;
|
|
1780
|
+
noSessionErrors?: number | undefined;
|
|
1781
|
+
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1782
|
+
abandonedActions?: number | undefined;
|
|
1359
1783
|
machine?: {
|
|
1360
1784
|
rssMb: number;
|
|
1361
1785
|
heapUsedMb: number;
|
|
@@ -1366,51 +1790,28 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1366
1790
|
} | undefined;
|
|
1367
1791
|
clients?: string[] | undefined;
|
|
1368
1792
|
} | undefined;
|
|
1369
|
-
project?: {
|
|
1370
|
-
git: "none" | "local_only" | "remote";
|
|
1371
|
-
flowCount: number;
|
|
1372
|
-
baselineCount: number;
|
|
1373
|
-
visualBaselineCount: number;
|
|
1374
|
-
runCount: number;
|
|
1375
|
-
hasContract: boolean;
|
|
1376
|
-
capsuleCount: number;
|
|
1377
|
-
featuresUsed: string[];
|
|
1378
|
-
featureDepth: number;
|
|
1379
|
-
stack?: string | undefined;
|
|
1380
|
-
stackMajor?: number | undefined;
|
|
1381
|
-
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
1382
|
-
monorepo?: boolean | undefined;
|
|
1383
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1384
|
-
ageWeeks?: number | undefined;
|
|
1385
|
-
} | undefined;
|
|
1386
|
-
bug?: {
|
|
1387
|
-
kind: string;
|
|
1388
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
1389
|
-
falseGreen: boolean;
|
|
1390
|
-
repeat: boolean;
|
|
1391
|
-
tool?: string | undefined;
|
|
1392
|
-
} | undefined;
|
|
1393
1793
|
projectIdSource?: "cwd" | "git_origin" | undefined;
|
|
1794
|
+
tzOffsetMin?: number | undefined;
|
|
1394
1795
|
feedback?: {
|
|
1395
1796
|
text: string;
|
|
1396
1797
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1397
|
-
source: "
|
|
1398
|
-
model?: string | undefined;
|
|
1399
|
-
stack?: string | undefined;
|
|
1400
|
-
stackMajor?: number | undefined;
|
|
1798
|
+
source: "agent" | "human";
|
|
1401
1799
|
trace?: string | undefined;
|
|
1402
1800
|
rating?: number | undefined;
|
|
1403
1801
|
need?: string | undefined;
|
|
1404
1802
|
impact?: string | undefined;
|
|
1405
1803
|
currentApproach?: string | undefined;
|
|
1804
|
+
model?: string | undefined;
|
|
1406
1805
|
clientVersion?: string | undefined;
|
|
1806
|
+
stack?: string | undefined;
|
|
1807
|
+
stackMajor?: number | undefined;
|
|
1407
1808
|
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
1408
1809
|
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
1409
1810
|
driver?: "cdp" | "sdk" | undefined;
|
|
1410
1811
|
client?: string | undefined;
|
|
1411
|
-
mcpScope?: "
|
|
1812
|
+
mcpScope?: "user" | "project" | undefined;
|
|
1412
1813
|
} | undefined;
|
|
1413
|
-
actor?: "
|
|
1814
|
+
actor?: "agent" | "human" | undefined;
|
|
1414
1815
|
flags?: string[] | undefined;
|
|
1415
1816
|
verification?: {
|
|
1416
1817
|
via: string;
|
|
@@ -1418,11 +1819,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1418
1819
|
passed: boolean;
|
|
1419
1820
|
falseGreenCaught: boolean;
|
|
1420
1821
|
durationMs?: number | undefined;
|
|
1822
|
+
reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
1823
|
+
brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
|
|
1824
|
+
browser?: string | undefined;
|
|
1421
1825
|
} | undefined;
|
|
1422
1826
|
versionChange?: {
|
|
1423
1827
|
direction: string;
|
|
1424
1828
|
from: string;
|
|
1425
1829
|
to: string;
|
|
1830
|
+
nudged?: boolean | undefined;
|
|
1426
1831
|
} | undefined;
|
|
1427
1832
|
crash?: {
|
|
1428
1833
|
kind: string;
|
|
@@ -1455,9 +1860,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1455
1860
|
} | undefined;
|
|
1456
1861
|
init?: {
|
|
1457
1862
|
ok: boolean;
|
|
1458
|
-
reason?: string | undefined;
|
|
1459
1863
|
stack?: string | undefined;
|
|
1864
|
+
reason?: string | undefined;
|
|
1460
1865
|
mcpRegistered?: boolean | undefined;
|
|
1461
1866
|
} | undefined;
|
|
1867
|
+
outage?: {
|
|
1868
|
+
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
1869
|
+
attempts: number;
|
|
1870
|
+
stage: "first" | "budget_spent";
|
|
1871
|
+
} | undefined;
|
|
1462
1872
|
}>;
|
|
1463
1873
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|