@reticlehq/core 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/consequence.d.ts +27 -0
  2. package/dist/consequence.js +26 -0
  3. package/dist/constants.d.ts +68 -0
  4. package/dist/constants.js +65 -0
  5. package/dist/contract-fingerprint.d.ts +29 -0
  6. package/dist/contract-fingerprint.js +56 -0
  7. package/dist/daemon-registry.js +1 -1
  8. package/dist/event-classification.d.ts +7 -0
  9. package/dist/event-classification.js +15 -0
  10. package/dist/event-payloads.d.ts +48 -0
  11. package/dist/event-payloads.js +12 -1
  12. package/dist/flow-constants.d.ts +8 -0
  13. package/dist/flow-constants.js +12 -0
  14. package/dist/flow-types.d.ts +23 -0
  15. package/dist/index.d.ts +3 -0
  16. package/dist/index.js +3 -0
  17. package/dist/journal.d.ts +2 -2
  18. package/dist/messages.d.ts +48 -0
  19. package/dist/messages.js +20 -0
  20. package/dist/net.d.ts +40 -0
  21. package/dist/net.js +44 -0
  22. package/dist/project-id.d.ts +28 -0
  23. package/dist/project-id.js +51 -0
  24. package/dist/redaction.js +4 -4
  25. package/dist/schema/hello-message.json +8 -0
  26. package/dist/schema/reticle-message.json +8 -0
  27. package/dist/security.js +10 -5
  28. package/dist/source-constants.d.ts +6 -0
  29. package/dist/source-constants.js +6 -0
  30. package/dist/state-select.d.ts +14 -2
  31. package/dist/state-select.js +77 -14
  32. package/dist/telemetry-feedback.d.ts +32 -10
  33. package/dist/telemetry-feedback.js +21 -0
  34. package/dist/telemetry-session.d.ts +169 -0
  35. package/dist/telemetry-session.js +139 -0
  36. package/dist/telemetry.d.ts +706 -92
  37. package/dist/telemetry.js +251 -4
  38. package/dist/toon.d.ts +2 -1
  39. package/dist/toon.js +37 -37
  40. package/dist/types.d.ts +48 -0
  41. package/dist/types.js +12 -0
  42. package/dist/upgrade.js +1 -1
  43. package/dist/verification-run.d.ts +28 -28
  44. package/dist/verified-constants.d.ts +53 -0
  45. package/dist/verified-constants.js +52 -0
  46. package/package.json +5 -3
@@ -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.
@@ -127,14 +160,24 @@ export type TelemetryActor = (typeof TelemetryActor)[keyof typeof TelemetryActor
127
160
  * What `projectId` was derived from — and therefore whether it is comparable ACROSS machines.
128
161
  *
129
162
  * This is the field that keeps "how many users share this project" from silently lying. A
130
- * cwd-derived id is unique per machine, so those rows always show exactly one user per project. Left
163
+ * path-derived id is unique per machine, so those rows always show exactly one user per project. Left
131
164
  * unlabelled they would drag the average toward 1 and hide real team adoption; labelled, the
132
165
  * analytics can restrict that question to `git_origin` rows, where it is a real measurement.
166
+ *
167
+ * The three non-origin sources are ordered by how stable they are WITHIN one machine, which is the
168
+ * property the funnel actually needs: `init` runs in the app directory and the daemon is spawned from
169
+ * wherever the agent's client happens to sit, so an id that changes with the working directory
170
+ * severs the two halves of the funnel. Only `cwd` has that defect, and it is now the last resort
171
+ * rather than the first fallback — measured 2026-08-11 at 1131 ids for 243 users.
133
172
  */
134
173
  export declare const ProjectIdSource: {
135
174
  /** Hash of the shared git origin — the same on every clone, so cross-machine counting is valid. */
136
175
  readonly GIT_ORIGIN: "git_origin";
137
- /** Hash of the local directory path — unique per machine; NOT comparable across users. */
176
+ /** Hash of the repo ROOT path — machine-local, but the same for every directory inside the repo. */
177
+ readonly GIT_ROOT: "git_root";
178
+ /** Hash of the nearest package.json's directory — machine-local; used when there is no git at all. */
179
+ readonly PACKAGE_ROOT: "package_root";
180
+ /** Hash of the raw working directory — the last resort, and the only source that is NOT stable. */
138
181
  readonly CWD: "cwd";
139
182
  };
140
183
  export type ProjectIdSource = (typeof ProjectIdSource)[keyof typeof ProjectIdSource];
@@ -166,34 +209,107 @@ export declare const VerificationSchema: z.ZodObject<{
166
209
  */
167
210
  falseGreenCaught: z.ZodBoolean;
168
211
  durationMs: z.ZodOptional<z.ZodNumber>;
212
+ /**
213
+ * `headless` | `headed` | `attached` — how the browser under verification got there.
214
+ *
215
+ * Without it, "verifications run" is one undifferentiated number covering three different
216
+ * products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
217
+ * server. They have different costs, different failure modes and different value, and only the
218
+ * last one is what most installs actually do.
219
+ */
220
+ browser: z.ZodOptional<z.ZodString>;
221
+ /**
222
+ * WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
223
+ * `safari` | `other`, from `BrowserBrand`.
224
+ *
225
+ * `browser` above says who drove it, and its most common value by far is `attached`: the SDK
226
+ * connected from a browser Reticle never launched. That leaves the actual browser unknown, and
227
+ * the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
228
+ *
229
+ * OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
230
+ * brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
231
+ * measured one on a dashboard.
232
+ */
233
+ brand: z.ZodOptional<z.ZodNativeEnum<{
234
+ readonly CHROME: "chrome";
235
+ readonly EDGE: "edge";
236
+ readonly ARC: "arc";
237
+ readonly DIA: "dia";
238
+ readonly BRAVE: "brave";
239
+ readonly OPERA: "opera";
240
+ readonly FIREFOX: "firefox";
241
+ readonly SAFARI: "safari";
242
+ readonly OTHER: "other";
243
+ }>>;
244
+ /**
245
+ * WHICH clause of the honesty rule decided this — see `VerifiedReason`.
246
+ *
247
+ * `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
248
+ * was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
249
+ * "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
250
+ * collapses "channels disagree" into "the agent's predicate failed" the same way.
251
+ *
252
+ * OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
253
+ * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
254
+ */
255
+ reason: z.ZodOptional<z.ZodNativeEnum<{
256
+ readonly INCONCLUSIVE: "inconclusive";
257
+ readonly OBSERVATION_LOST: "observation_lost";
258
+ readonly ASSERTION_FAILED: "assertion_failed";
259
+ readonly CONTRADICTED: "contradicted";
260
+ readonly ALREADY_TRUE: "already_true";
261
+ readonly UNCLEAN_CAPTURE: "unclean_capture";
262
+ readonly VACUOUS_GRADE: "vacuous_grade";
263
+ readonly OUTCOME_PENDING: "outcome_pending";
264
+ readonly OUTCOME_UNREAD: "outcome_unread";
265
+ readonly UNSETTLED: "unsettled";
266
+ readonly PROVED: "proved";
267
+ }>>;
169
268
  }, "strip", z.ZodTypeAny, {
170
- via: string;
171
269
  verified: string;
270
+ via: string;
172
271
  passed: boolean;
173
272
  falseGreenCaught: boolean;
174
273
  durationMs?: number | undefined;
274
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
275
+ brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
276
+ browser?: string | undefined;
175
277
  }, {
176
- via: string;
177
278
  verified: string;
279
+ via: string;
178
280
  passed: boolean;
179
281
  falseGreenCaught: boolean;
180
282
  durationMs?: number | undefined;
283
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
284
+ brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
285
+ browser?: string | undefined;
181
286
  }>;
182
287
  export type Verification = z.infer<typeof VerificationSchema>;
183
288
  /** Which way the installed version moved, and between which versions. */
184
289
  export declare const VersionChangeSchema: z.ZodObject<{
185
290
  from: z.ZodString;
186
291
  to: z.ZodString;
292
+ /**
293
+ * True when an agent had been told about exactly this version recently — so the nudge plausibly
294
+ * caused the update.
295
+ *
296
+ * Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
297
+ * fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
298
+ * and the whole adoption story rests on knowing which one is happening.
299
+ */
300
+ nudged: z.ZodOptional<z.ZodBoolean>;
187
301
  /** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
188
302
  direction: z.ZodString;
189
303
  }, "strip", z.ZodTypeAny, {
190
304
  direction: string;
191
305
  from: string;
192
306
  to: string;
307
+ nudged?: boolean | undefined;
193
308
  }, {
194
309
  direction: string;
195
310
  from: string;
196
311
  to: string;
312
+ nudged?: boolean | undefined;
197
313
  }>;
198
314
  export type VersionChange = z.infer<typeof VersionChangeSchema>;
199
315
  /**
@@ -205,6 +321,18 @@ export type VersionChange = z.infer<typeof VersionChangeSchema>;
205
321
  * give the hash a meaning, while keeping the line that matters: our code and our failure, never the
206
322
  * user's code and never their data.
207
323
  */
324
+ /**
325
+ * Whether a failed connection was aimed at a port Reticle itself uses.
326
+ *
327
+ * An enum rather than the number, because the number is the reporter's and the answer is ours: all
328
+ * anyone needs to know is whose problem it is. Refused on a Reticle port is a lifecycle problem —
329
+ * a daemon that is not up; refused anywhere else is somebody else's service.
330
+ */
331
+ export declare const CrashPort: {
332
+ readonly RETICLE: "reticle";
333
+ readonly OTHER: "other";
334
+ };
335
+ export type CrashPort = (typeof CrashPort)[keyof typeof CrashPort];
208
336
  export declare const CrashSchema: z.ZodObject<{
209
337
  /** `uncaught_exception` | `unhandled_rejection`. */
210
338
  kind: z.ZodString;
@@ -268,11 +396,40 @@ export declare const CrashSchema: z.ZodObject<{
268
396
  load1x100: number;
269
397
  cpuCount: number;
270
398
  }>>;
399
+ /**
400
+ * The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
401
+ * it can be grouped on rather than parsed back out of prose.
402
+ */
403
+ syscall: z.ZodOptional<z.ZodString>;
404
+ /**
405
+ * The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
406
+ */
407
+ errno: z.ZodOptional<z.ZodString>;
408
+ /**
409
+ * Was the target the machine it was running on?
410
+ *
411
+ * One bit, and it splits two populations that currently look identical and have different owners:
412
+ * refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
413
+ * problem that is not ours.
414
+ */
415
+ loopback: z.ZodOptional<z.ZodBoolean>;
416
+ /** Whether the port was one of ours, as an enum. The number itself is never sent. */
417
+ port: z.ZodOptional<z.ZodEnum<["reticle", "other"]>>;
418
+ /**
419
+ * The innermost frame naming NODE's own source — `node:net:1637`.
420
+ *
421
+ * Only present when the crash is a system error AND no Reticle frame survived, which is exactly
422
+ * the report that otherwise arrives with no location at all. It is a line in Node's published
423
+ * source: it says a connect failed rather than a DNS lookup, and carries nothing about the
424
+ * machine, the app, or anyone's directory layout.
425
+ */
426
+ internalFrame: z.ZodOptional<z.ZodString>;
271
427
  }, "strip", z.ZodTypeAny, {
272
428
  kind: string;
273
429
  message?: string | undefined;
274
430
  errorType?: string | undefined;
275
431
  tool?: string | undefined;
432
+ port?: "other" | "reticle" | undefined;
276
433
  fingerprint?: string | undefined;
277
434
  machine?: {
278
435
  rssMb: number;
@@ -286,11 +443,16 @@ export declare const CrashSchema: z.ZodObject<{
286
443
  breadcrumb?: string[] | undefined;
287
444
  nodeVersion?: string | undefined;
288
445
  arch?: string | undefined;
446
+ syscall?: string | undefined;
447
+ errno?: string | undefined;
448
+ loopback?: boolean | undefined;
449
+ internalFrame?: string | undefined;
289
450
  }, {
290
451
  kind: string;
291
452
  message?: string | undefined;
292
453
  errorType?: string | undefined;
293
454
  tool?: string | undefined;
455
+ port?: "other" | "reticle" | undefined;
294
456
  fingerprint?: string | undefined;
295
457
  machine?: {
296
458
  rssMb: number;
@@ -304,6 +466,10 @@ export declare const CrashSchema: z.ZodObject<{
304
466
  breadcrumb?: string[] | undefined;
305
467
  nodeVersion?: string | undefined;
306
468
  arch?: string | undefined;
469
+ syscall?: string | undefined;
470
+ errno?: string | undefined;
471
+ loopback?: boolean | undefined;
472
+ internalFrame?: string | undefined;
307
473
  }>;
308
474
  export type Crash = z.infer<typeof CrashSchema>;
309
475
  /**
@@ -323,6 +489,29 @@ export declare const BugSource: {
323
489
  readonly ASSERTION: "assertion";
324
490
  };
325
491
  export type BugSource = (typeof BugSource)[keyof typeof BugSource];
492
+ /**
493
+ * WHOSE fault the defect was.
494
+ *
495
+ * `bugsFound` is the number this product would most like to publish, and it is not publishable
496
+ * without this. Measured over one real session: 8 `bug_found` events, of which **one** was a defect
497
+ * in the app under test. The other seven were the agent's own bad predicates (a store path that
498
+ * never existed, an impossible selector) and one empty ref, all published as defects in the
499
+ * customer's product. A founder steering on that number is steering on noise.
500
+ *
501
+ * Deliberately OMITTED rather than guessed when the evidence does not say. A failed `element.present`
502
+ * covers "the button is missing", "the API is down" and "the agent mistyped a testid" identically,
503
+ * and inventing an owner for it would put a guess into the one number we intend to publish — the
504
+ * same mistake `brand` refuses to make by being absent rather than `"unknown"`.
505
+ */
506
+ export declare const BugAttribution: {
507
+ /** A defect in the app under test — the only bucket that belongs in a published defect count. */
508
+ readonly APP: "app";
509
+ /** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
510
+ readonly REQUEST: "request";
511
+ /** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
512
+ readonly RETICLE: "reticle";
513
+ };
514
+ export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution];
326
515
  /**
327
516
  * One defect Reticle found in the app under test.
328
517
  *
@@ -374,17 +563,31 @@ export declare const BugFoundSchema: z.ZodObject<{
374
563
  * as one — and must not be, since that would need data this event refuses to collect.
375
564
  */
376
565
  repeat: z.ZodBoolean;
566
+ /**
567
+ * Whose fault it was — `app` | `request` | `reticle`. ABSENT when the evidence cannot say; see
568
+ * `BugAttribution`. Count `attribution: 'app'` for defects found in anybody's product.
569
+ */
570
+ attribution: z.ZodOptional<z.ZodNativeEnum<{
571
+ /** A defect in the app under test — the only bucket that belongs in a published defect count. */
572
+ readonly APP: "app";
573
+ /** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
574
+ readonly REQUEST: "request";
575
+ /** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
576
+ readonly RETICLE: "reticle";
577
+ }>>;
377
578
  }, "strip", z.ZodTypeAny, {
378
579
  kind: string;
379
580
  source: "replay" | "contradiction" | "crawl" | "assertion";
380
581
  falseGreen: boolean;
381
582
  repeat: boolean;
583
+ attribution?: "app" | "reticle" | "request" | undefined;
382
584
  tool?: string | undefined;
383
585
  }, {
384
586
  kind: string;
385
587
  source: "replay" | "contradiction" | "crawl" | "assertion";
386
588
  falseGreen: boolean;
387
589
  repeat: boolean;
590
+ attribution?: "app" | "reticle" | "request" | undefined;
388
591
  tool?: string | undefined;
389
592
  }>;
390
593
  export type BugFound = z.infer<typeof BugFoundSchema>;
@@ -410,6 +613,90 @@ export declare const McpConnectionSchema: z.ZodObject<{
410
613
  client?: string | undefined;
411
614
  }>;
412
615
  export type McpConnection = z.infer<typeof McpConnectionSchema>;
616
+ /**
617
+ * WHICH stage of an MCP outage this is. Reported at most twice per proxy process, and the two are
618
+ * different facts: `first` says the session lost its tools at all, `budget_spent` says the proxy
619
+ * stopped retrying and never came back on its own.
620
+ */
621
+ export declare const OutageStage: {
622
+ readonly FIRST: "first";
623
+ readonly BUDGET_SPENT: "budget_spent";
624
+ };
625
+ export type OutageStage = (typeof OutageStage)[keyof typeof OutageStage];
626
+ /**
627
+ * WHY the stream went away, as far as the proxy can tell. A closed vocabulary because the proxy's
628
+ * own reason strings are free text feeding a log — `OTHER` is the bucket that lets a new one arrive
629
+ * without a raw string reaching the wire, per the classifier rule.
630
+ */
631
+ export declare const OutageReason: {
632
+ /** The SSE stream ended cleanly — usually the daemon exiting. */
633
+ readonly SSE_ENDED: "sse_ended";
634
+ /** The stream errored. */
635
+ readonly SSE_ERROR: "sse_error";
636
+ /** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
637
+ readonly SSE_ABORTED: "sse_aborted";
638
+ /** The response closed. */
639
+ readonly SSE_CLOSED: "sse_closed";
640
+ /** A reconnect attempt could not reach the daemon at all. */
641
+ readonly CONNECT_ERROR: "connect_error";
642
+ /** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
643
+ readonly OTHER: "other";
644
+ };
645
+ export type OutageReason = (typeof OutageReason)[keyof typeof OutageReason];
646
+ /**
647
+ * The agent LOST its Reticle tools.
648
+ *
649
+ * This block existed on the emitter's input type and never on the wire: `emit()` builds its event
650
+ * from an explicit allow-list of keys and `outage` was not in it, so two deliberately different
651
+ * outages — `first`/`sse_ended`/3 and `budget_spent`/`connect_error`/12 — produced byte-identical
652
+ * events. Against a standing "MCP must never go down" mandate, the metric that measures it reported
653
+ * a bare count with no cause and no recovery signal. This is the schema half of the fix.
654
+ */
655
+ export declare const McpOutageSchema: z.ZodObject<{
656
+ stage: z.ZodNativeEnum<{
657
+ readonly FIRST: "first";
658
+ readonly BUDGET_SPENT: "budget_spent";
659
+ }>;
660
+ reason: z.ZodNativeEnum<{
661
+ /** The SSE stream ended cleanly — usually the daemon exiting. */
662
+ readonly SSE_ENDED: "sse_ended";
663
+ /** The stream errored. */
664
+ readonly SSE_ERROR: "sse_error";
665
+ /** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
666
+ readonly SSE_ABORTED: "sse_aborted";
667
+ /** The response closed. */
668
+ readonly SSE_CLOSED: "sse_closed";
669
+ /** A reconnect attempt could not reach the daemon at all. */
670
+ readonly CONNECT_ERROR: "connect_error";
671
+ /** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
672
+ readonly OTHER: "other";
673
+ }>;
674
+ /** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
675
+ attempts: z.ZodNumber;
676
+ /**
677
+ * In-flight tool calls this drop actually killed — the only part an agent can FEEL.
678
+ *
679
+ * Without it every drop looks equally bad. Measured 2026-08-10/11: **320 of 321 outages were
680
+ * `stage: first` with `attempts: 1`** — the stream ended once and the proxy reconnected, which for
681
+ * an agent with nothing in flight is invisible. Reading that 321 as "the agent lost its tools 321
682
+ * times" overstates the problem by roughly the whole number, and buries the one drop that mattered.
683
+ *
684
+ * Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
685
+ * worth driving down.
686
+ */
687
+ pendingLost: z.ZodOptional<z.ZodNumber>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
690
+ attempts: number;
691
+ stage: "first" | "budget_spent";
692
+ pendingLost?: number | undefined;
693
+ }, {
694
+ reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
695
+ attempts: number;
696
+ stage: "first" | "budget_spent";
697
+ pendingLost?: number | undefined;
698
+ }>;
699
+ export type McpOutage = z.infer<typeof McpOutageSchema>;
413
700
  /** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
414
701
  export declare const InitOutcomeSchema: z.ZodObject<{
415
702
  ok: z.ZodBoolean;
@@ -421,13 +708,13 @@ export declare const InitOutcomeSchema: z.ZodObject<{
421
708
  mcpRegistered: z.ZodOptional<z.ZodBoolean>;
422
709
  }, "strip", z.ZodTypeAny, {
423
710
  ok: boolean;
424
- reason?: string | undefined;
425
711
  stack?: string | undefined;
712
+ reason?: string | undefined;
426
713
  mcpRegistered?: boolean | undefined;
427
714
  }, {
428
715
  ok: boolean;
429
- reason?: string | undefined;
430
716
  stack?: string | undefined;
717
+ reason?: string | undefined;
431
718
  mcpRegistered?: boolean | undefined;
432
719
  }>;
433
720
  export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
@@ -450,7 +737,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
450
737
  * explicitly supports) interleaved into one undifferentiated stream, and no per-session funnel could
451
738
  * be built at all. It cannot be backfilled, which is why it is worth adding before the data matters.
452
739
  */
453
- sessionId: z.ZodString;
740
+ /**
741
+ * The daemon run this happened inside. ABSENT on one-shot CLI events — see isSessionScoped: a
742
+ * per-process id on `reticle status` is not a session, it is a number that inflates every session
743
+ * count and joins to nothing.
744
+ */
745
+ sessionId: z.ZodOptional<z.ZodString>;
454
746
  event: z.ZodNativeEnum<{
455
747
  /** First-ever run on this machine — powers install count + the new-user curve. */
456
748
  readonly RETICLE_INSTALLED: "reticle_installed";
@@ -471,6 +763,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
471
763
  * errors, features touched). One event replaces the hundreds the old per-call `tool` event sent.
472
764
  */
473
765
  readonly DAEMON_STOPPED: "daemon_stopped";
766
+ /**
767
+ * A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
768
+ * `final: false`.
769
+ *
770
+ * It used to be emitted AS `daemon_stopped`, which made an event named for an exit fire while the
771
+ * process was alive. Measured over one day: 98 `daemon_stopped` events were 73 real exits plus 25
772
+ * flushes, so anything counting sessions over-stated by 34% — and worse, the two populations are
773
+ * opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
774
+ * served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
775
+ * the raw event therefore describes active sessions at one end and abandoned ones at the other.
776
+ *
777
+ * Count sessions with DAEMON_STOPPED. Sum work with both.
778
+ */
779
+ readonly SESSION_PROGRESS: "session_progress";
474
780
  /**
475
781
  * A verification produced a verdict. The product's reason to exist, and the one metric an investor
476
782
  * should be shown: not "tools were called" but "an app was actually verified, and here is how often
@@ -509,6 +815,23 @@ export declare const TelemetryEventSchema: z.ZodObject<{
509
815
  * identical to healthy usage in every other metric.
510
816
  */
511
817
  readonly MCP_CLIENT_CONNECTED: "mcp_client_connected";
818
+ /**
819
+ * The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
820
+ * completely invisible in the field.
821
+ *
822
+ * `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
823
+ * account of an outage went to a local file nobody sends us. So "how often does a real user's MCP
824
+ * server go down, and does it come back" — the single question the transport has to answer — could
825
+ * not be asked of any dashboard.
826
+ *
827
+ * Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
828
+ * the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
829
+ * per-call `tool` event was already removed here for cost, and one measured afternoon produced 547
830
+ * proxy reconnects — an event per reconnect would bill for the pathology instead of measuring it.
831
+ * The first-outage event answers "what share of sessions lose MCP at all", which is the number
832
+ * that decides whether this is fixed.
833
+ */
834
+ readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
512
835
  /**
513
836
  * `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
514
837
  * failed on a missing dependency was indistinguishable from a user who never tried.
@@ -542,11 +865,23 @@ export declare const TelemetryEventSchema: z.ZodObject<{
542
865
  projectIdSource: z.ZodOptional<z.ZodNativeEnum<{
543
866
  /** Hash of the shared git origin — the same on every clone, so cross-machine counting is valid. */
544
867
  readonly GIT_ORIGIN: "git_origin";
545
- /** Hash of the local directory path — unique per machine; NOT comparable across users. */
868
+ /** Hash of the repo ROOT path — machine-local, but the same for every directory inside the repo. */
869
+ readonly GIT_ROOT: "git_root";
870
+ /** Hash of the nearest package.json's directory — machine-local; used when there is no git at all. */
871
+ readonly PACKAGE_ROOT: "package_root";
872
+ /** Hash of the raw working directory — the last resort, and the only source that is NOT stable. */
546
873
  readonly CWD: "cwd";
547
874
  }>>;
548
875
  /** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
549
876
  os: z.ZodString;
877
+ /**
878
+ * Minutes this machine's local time is offset from UTC.
879
+ *
880
+ * "When do they work" was answerable only through ingest-side GeoIP, which may be off and is a
881
+ * coarser thing than a working day. One integer, no location, identifies nobody — and it turns
882
+ * every time-of-day tile from "which continent" into "9am or 11pm".
883
+ */
884
+ tzOffsetMin: z.ZodOptional<z.ZodNumber>;
550
885
  /** Only on `feedback`: the author-submitted report + its environment context. Never sent otherwise. */
551
886
  feedback: z.ZodOptional<z.ZodObject<{
552
887
  source: z.ZodNativeEnum<{
@@ -593,39 +928,39 @@ export declare const TelemetryEventSchema: z.ZodObject<{
593
928
  }, "strip", z.ZodTypeAny, {
594
929
  text: string;
595
930
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
596
- source: "human" | "agent";
597
- model?: string | undefined;
598
- stack?: string | undefined;
599
- stackMajor?: number | undefined;
931
+ source: "agent" | "human";
600
932
  trace?: string | undefined;
601
933
  rating?: number | undefined;
602
934
  need?: string | undefined;
603
935
  impact?: string | undefined;
604
936
  currentApproach?: string | undefined;
937
+ model?: string | undefined;
605
938
  clientVersion?: string | undefined;
939
+ stack?: string | undefined;
940
+ stackMajor?: number | undefined;
606
941
  runtime?: "web" | "electron" | "tauri" | undefined;
607
942
  engine?: "blink" | "gecko" | "webkit" | undefined;
608
943
  driver?: "cdp" | "sdk" | undefined;
609
944
  client?: string | undefined;
610
- mcpScope?: "project" | "user" | undefined;
945
+ mcpScope?: "user" | "project" | undefined;
611
946
  }, {
612
947
  text: string;
613
948
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
614
- source: "human" | "agent";
615
- model?: string | undefined;
616
- stack?: string | undefined;
617
- stackMajor?: number | undefined;
949
+ source: "agent" | "human";
618
950
  trace?: string | undefined;
619
951
  rating?: number | undefined;
620
952
  need?: string | undefined;
621
953
  impact?: string | undefined;
622
954
  currentApproach?: string | undefined;
955
+ model?: string | undefined;
623
956
  clientVersion?: string | undefined;
957
+ stack?: string | undefined;
958
+ stackMajor?: number | undefined;
624
959
  runtime?: "web" | "electron" | "tauri" | undefined;
625
960
  engine?: "blink" | "gecko" | "webkit" | undefined;
626
961
  driver?: "cdp" | "sdk" | undefined;
627
962
  client?: string | undefined;
628
- mcpScope?: "project" | "user" | undefined;
963
+ mcpScope?: "user" | "project" | undefined;
629
964
  }>>;
630
965
  /** Human or agent. Absent on events that are neither (a crash, a version change). */
631
966
  actor: z.ZodOptional<z.ZodNativeEnum<{
@@ -711,6 +1046,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
711
1046
  browserCommands: z.ZodOptional<z.ZodNumber>;
712
1047
  peakConcurrentTools: z.ZodOptional<z.ZodNumber>;
713
1048
  unknownToolCalls: z.ZodOptional<z.ZodNumber>;
1049
+ unknownTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1050
+ noSessionErrors: z.ZodOptional<z.ZodNumber>;
1051
+ consecutiveRepeats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1052
+ abandonedActions: z.ZodOptional<z.ZodNumber>;
714
1053
  machine: z.ZodOptional<z.ZodObject<{
715
1054
  rssMb: z.ZodNumber;
716
1055
  heapUsedMb: z.ZodNumber;
@@ -734,7 +1073,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
734
1073
  cpuCount: number;
735
1074
  }>>;
736
1075
  clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1076
+ clientVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1077
+ surface: z.ZodOptional<z.ZodString>;
1078
+ appConnects: z.ZodOptional<z.ZodNumber>;
1079
+ msToFirstApp: z.ZodOptional<z.ZodNumber>;
1080
+ endReason: z.ZodOptional<z.ZodEnum<["never_used", "explored", "abandoned", "verified", "client_left"]>>;
1081
+ feedbackPrompted: z.ZodOptional<z.ZodNumber>;
1082
+ errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1083
+ errorsRecovered: z.ZodOptional<z.ZodNumber>;
1084
+ errorsRepeated: z.ZodOptional<z.ZodNumber>;
737
1085
  final: z.ZodBoolean;
1086
+ exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
738
1087
  }, "strip", z.ZodTypeAny, {
739
1088
  durationMs: number;
740
1089
  toolCalls: number;
@@ -742,6 +1091,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
742
1091
  toolErrors: number;
743
1092
  verifications: number;
744
1093
  final: boolean;
1094
+ surface?: string | undefined;
745
1095
  errors?: {
746
1096
  message: string;
747
1097
  count: number;
@@ -772,6 +1122,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
772
1122
  browserCommands?: number | undefined;
773
1123
  peakConcurrentTools?: number | undefined;
774
1124
  unknownToolCalls?: number | undefined;
1125
+ unknownTools?: Record<string, number> | undefined;
1126
+ noSessionErrors?: number | undefined;
1127
+ consecutiveRepeats?: Record<string, number> | undefined;
1128
+ abandonedActions?: number | undefined;
775
1129
  machine?: {
776
1130
  rssMb: number;
777
1131
  heapUsedMb: number;
@@ -781,6 +1135,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
781
1135
  cpuCount: number;
782
1136
  } | undefined;
783
1137
  clients?: string[] | undefined;
1138
+ clientVersions?: Record<string, string> | undefined;
1139
+ appConnects?: number | undefined;
1140
+ msToFirstApp?: number | undefined;
1141
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1142
+ feedbackPrompted?: number | undefined;
1143
+ errorClasses?: Record<string, number> | undefined;
1144
+ errorsRecovered?: number | undefined;
1145
+ errorsRepeated?: number | undefined;
1146
+ exit?: "signal" | "idle" | "unknown" | undefined;
784
1147
  }, {
785
1148
  durationMs: number;
786
1149
  toolCalls: number;
@@ -788,6 +1151,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
788
1151
  toolErrors: number;
789
1152
  verifications: number;
790
1153
  final: boolean;
1154
+ surface?: string | undefined;
791
1155
  errors?: {
792
1156
  message: string;
793
1157
  count: number;
@@ -818,6 +1182,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
818
1182
  browserCommands?: number | undefined;
819
1183
  peakConcurrentTools?: number | undefined;
820
1184
  unknownToolCalls?: number | undefined;
1185
+ unknownTools?: Record<string, number> | undefined;
1186
+ noSessionErrors?: number | undefined;
1187
+ consecutiveRepeats?: Record<string, number> | undefined;
1188
+ abandonedActions?: number | undefined;
821
1189
  machine?: {
822
1190
  rssMb: number;
823
1191
  heapUsedMb: number;
@@ -827,10 +1195,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
827
1195
  cpuCount: number;
828
1196
  } | undefined;
829
1197
  clients?: string[] | undefined;
1198
+ clientVersions?: Record<string, string> | undefined;
1199
+ appConnects?: number | undefined;
1200
+ msToFirstApp?: number | undefined;
1201
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1202
+ feedbackPrompted?: number | undefined;
1203
+ errorClasses?: Record<string, number> | undefined;
1204
+ errorsRecovered?: number | undefined;
1205
+ errorsRepeated?: number | undefined;
1206
+ exit?: "signal" | "idle" | "unknown" | undefined;
830
1207
  }>>;
831
1208
  /** Only on `project_profiled`: the shape and depth-of-use of the project. */
832
1209
  project: z.ZodOptional<z.ZodObject<{
833
1210
  stack: z.ZodOptional<z.ZodString>;
1211
+ stackSource: z.ZodOptional<z.ZodEnum<["cwd", "workspace"]>>;
834
1212
  stackMajor: z.ZodOptional<z.ZodNumber>;
835
1213
  size: z.ZodOptional<z.ZodNativeEnum<{
836
1214
  readonly TINY: "tiny";
@@ -875,6 +1253,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
875
1253
  featureDepth: number;
876
1254
  stack?: string | undefined;
877
1255
  stackMajor?: number | undefined;
1256
+ stackSource?: "cwd" | "workspace" | undefined;
878
1257
  size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
879
1258
  monorepo?: boolean | undefined;
880
1259
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
@@ -891,6 +1270,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
891
1270
  featureDepth: number;
892
1271
  stack?: string | undefined;
893
1272
  stackMajor?: number | undefined;
1273
+ stackSource?: "cwd" | "workspace" | undefined;
894
1274
  size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
895
1275
  monorepo?: boolean | undefined;
896
1276
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
@@ -910,33 +1290,106 @@ export declare const TelemetryEventSchema: z.ZodObject<{
910
1290
  */
911
1291
  falseGreenCaught: z.ZodBoolean;
912
1292
  durationMs: z.ZodOptional<z.ZodNumber>;
1293
+ /**
1294
+ * `headless` | `headed` | `attached` — how the browser under verification got there.
1295
+ *
1296
+ * Without it, "verifications run" is one undifferentiated number covering three different
1297
+ * products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
1298
+ * server. They have different costs, different failure modes and different value, and only the
1299
+ * last one is what most installs actually do.
1300
+ */
1301
+ browser: z.ZodOptional<z.ZodString>;
1302
+ /**
1303
+ * WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
1304
+ * `safari` | `other`, from `BrowserBrand`.
1305
+ *
1306
+ * `browser` above says who drove it, and its most common value by far is `attached`: the SDK
1307
+ * connected from a browser Reticle never launched. That leaves the actual browser unknown, and
1308
+ * the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
1309
+ *
1310
+ * OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
1311
+ * brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
1312
+ * measured one on a dashboard.
1313
+ */
1314
+ brand: z.ZodOptional<z.ZodNativeEnum<{
1315
+ readonly CHROME: "chrome";
1316
+ readonly EDGE: "edge";
1317
+ readonly ARC: "arc";
1318
+ readonly DIA: "dia";
1319
+ readonly BRAVE: "brave";
1320
+ readonly OPERA: "opera";
1321
+ readonly FIREFOX: "firefox";
1322
+ readonly SAFARI: "safari";
1323
+ readonly OTHER: "other";
1324
+ }>>;
1325
+ /**
1326
+ * WHICH clause of the honesty rule decided this — see `VerifiedReason`.
1327
+ *
1328
+ * `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
1329
+ * was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
1330
+ * "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
1331
+ * collapses "channels disagree" into "the agent's predicate failed" the same way.
1332
+ *
1333
+ * OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
1334
+ * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
1335
+ */
1336
+ reason: z.ZodOptional<z.ZodNativeEnum<{
1337
+ readonly INCONCLUSIVE: "inconclusive";
1338
+ readonly OBSERVATION_LOST: "observation_lost";
1339
+ readonly ASSERTION_FAILED: "assertion_failed";
1340
+ readonly CONTRADICTED: "contradicted";
1341
+ readonly ALREADY_TRUE: "already_true";
1342
+ readonly UNCLEAN_CAPTURE: "unclean_capture";
1343
+ readonly VACUOUS_GRADE: "vacuous_grade";
1344
+ readonly OUTCOME_PENDING: "outcome_pending";
1345
+ readonly OUTCOME_UNREAD: "outcome_unread";
1346
+ readonly UNSETTLED: "unsettled";
1347
+ readonly PROVED: "proved";
1348
+ }>>;
913
1349
  }, "strip", z.ZodTypeAny, {
914
- via: string;
915
1350
  verified: string;
1351
+ via: string;
916
1352
  passed: boolean;
917
1353
  falseGreenCaught: boolean;
918
1354
  durationMs?: number | undefined;
1355
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1356
+ brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
1357
+ browser?: string | undefined;
919
1358
  }, {
920
- via: string;
921
1359
  verified: string;
1360
+ via: string;
922
1361
  passed: boolean;
923
1362
  falseGreenCaught: boolean;
924
1363
  durationMs?: number | undefined;
1364
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1365
+ brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
1366
+ browser?: string | undefined;
925
1367
  }>>;
926
1368
  /** Only on `version_changed`. */
927
1369
  versionChange: z.ZodOptional<z.ZodObject<{
928
1370
  from: z.ZodString;
929
1371
  to: z.ZodString;
1372
+ /**
1373
+ * True when an agent had been told about exactly this version recently — so the nudge plausibly
1374
+ * caused the update.
1375
+ *
1376
+ * Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
1377
+ * fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
1378
+ * and the whole adoption story rests on knowing which one is happening.
1379
+ */
1380
+ nudged: z.ZodOptional<z.ZodBoolean>;
930
1381
  /** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
931
1382
  direction: z.ZodString;
932
1383
  }, "strip", z.ZodTypeAny, {
933
1384
  direction: string;
934
1385
  from: string;
935
1386
  to: string;
1387
+ nudged?: boolean | undefined;
936
1388
  }, {
937
1389
  direction: string;
938
1390
  from: string;
939
1391
  to: string;
1392
+ nudged?: boolean | undefined;
940
1393
  }>>;
941
1394
  /** Only on `runtime_crashed`. */
942
1395
  crash: z.ZodOptional<z.ZodObject<{
@@ -1002,11 +1455,40 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1002
1455
  load1x100: number;
1003
1456
  cpuCount: number;
1004
1457
  }>>;
1458
+ /**
1459
+ * The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
1460
+ * it can be grouped on rather than parsed back out of prose.
1461
+ */
1462
+ syscall: z.ZodOptional<z.ZodString>;
1463
+ /**
1464
+ * The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
1465
+ */
1466
+ errno: z.ZodOptional<z.ZodString>;
1467
+ /**
1468
+ * Was the target the machine it was running on?
1469
+ *
1470
+ * One bit, and it splits two populations that currently look identical and have different owners:
1471
+ * refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
1472
+ * problem that is not ours.
1473
+ */
1474
+ loopback: z.ZodOptional<z.ZodBoolean>;
1475
+ /** Whether the port was one of ours, as an enum. The number itself is never sent. */
1476
+ port: z.ZodOptional<z.ZodEnum<["reticle", "other"]>>;
1477
+ /**
1478
+ * The innermost frame naming NODE's own source — `node:net:1637`.
1479
+ *
1480
+ * Only present when the crash is a system error AND no Reticle frame survived, which is exactly
1481
+ * the report that otherwise arrives with no location at all. It is a line in Node's published
1482
+ * source: it says a connect failed rather than a DNS lookup, and carries nothing about the
1483
+ * machine, the app, or anyone's directory layout.
1484
+ */
1485
+ internalFrame: z.ZodOptional<z.ZodString>;
1005
1486
  }, "strip", z.ZodTypeAny, {
1006
1487
  kind: string;
1007
1488
  message?: string | undefined;
1008
1489
  errorType?: string | undefined;
1009
1490
  tool?: string | undefined;
1491
+ port?: "other" | "reticle" | undefined;
1010
1492
  fingerprint?: string | undefined;
1011
1493
  machine?: {
1012
1494
  rssMb: number;
@@ -1020,11 +1502,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1020
1502
  breadcrumb?: string[] | undefined;
1021
1503
  nodeVersion?: string | undefined;
1022
1504
  arch?: string | undefined;
1505
+ syscall?: string | undefined;
1506
+ errno?: string | undefined;
1507
+ loopback?: boolean | undefined;
1508
+ internalFrame?: string | undefined;
1023
1509
  }, {
1024
1510
  kind: string;
1025
1511
  message?: string | undefined;
1026
1512
  errorType?: string | undefined;
1027
1513
  tool?: string | undefined;
1514
+ port?: "other" | "reticle" | undefined;
1028
1515
  fingerprint?: string | undefined;
1029
1516
  machine?: {
1030
1517
  rssMb: number;
@@ -1038,6 +1525,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1038
1525
  breadcrumb?: string[] | undefined;
1039
1526
  nodeVersion?: string | undefined;
1040
1527
  arch?: string | undefined;
1528
+ syscall?: string | undefined;
1529
+ errno?: string | undefined;
1530
+ loopback?: boolean | undefined;
1531
+ internalFrame?: string | undefined;
1041
1532
  }>>;
1042
1533
  /** Only on `identified` — self-declared, opt-in, and the only personal data ever sent. */
1043
1534
  identity: z.ZodOptional<z.ZodObject<{
@@ -1090,13 +1581,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1090
1581
  mcpRegistered: z.ZodOptional<z.ZodBoolean>;
1091
1582
  }, "strip", z.ZodTypeAny, {
1092
1583
  ok: boolean;
1093
- reason?: string | undefined;
1094
1584
  stack?: string | undefined;
1585
+ reason?: string | undefined;
1095
1586
  mcpRegistered?: boolean | undefined;
1096
1587
  }, {
1097
1588
  ok: boolean;
1098
- reason?: string | undefined;
1099
1589
  stack?: string | undefined;
1590
+ reason?: string | undefined;
1100
1591
  mcpRegistered?: boolean | undefined;
1101
1592
  }>>;
1102
1593
  /** Only on `bug_found`. */
@@ -1144,22 +1635,80 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1144
1635
  * as one — and must not be, since that would need data this event refuses to collect.
1145
1636
  */
1146
1637
  repeat: z.ZodBoolean;
1638
+ /**
1639
+ * Whose fault it was — `app` | `request` | `reticle`. ABSENT when the evidence cannot say; see
1640
+ * `BugAttribution`. Count `attribution: 'app'` for defects found in anybody's product.
1641
+ */
1642
+ attribution: z.ZodOptional<z.ZodNativeEnum<{
1643
+ /** A defect in the app under test — the only bucket that belongs in a published defect count. */
1644
+ readonly APP: "app";
1645
+ /** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
1646
+ readonly REQUEST: "request";
1647
+ /** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
1648
+ readonly RETICLE: "reticle";
1649
+ }>>;
1147
1650
  }, "strip", z.ZodTypeAny, {
1148
1651
  kind: string;
1149
1652
  source: "replay" | "contradiction" | "crawl" | "assertion";
1150
1653
  falseGreen: boolean;
1151
1654
  repeat: boolean;
1655
+ attribution?: "app" | "reticle" | "request" | undefined;
1152
1656
  tool?: string | undefined;
1153
1657
  }, {
1154
1658
  kind: string;
1155
1659
  source: "replay" | "contradiction" | "crawl" | "assertion";
1156
1660
  falseGreen: boolean;
1157
1661
  repeat: boolean;
1662
+ attribution?: "app" | "reticle" | "request" | undefined;
1158
1663
  tool?: string | undefined;
1159
1664
  }>>;
1665
+ /** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
1666
+ outage: z.ZodOptional<z.ZodObject<{
1667
+ stage: z.ZodNativeEnum<{
1668
+ readonly FIRST: "first";
1669
+ readonly BUDGET_SPENT: "budget_spent";
1670
+ }>;
1671
+ reason: z.ZodNativeEnum<{
1672
+ /** The SSE stream ended cleanly — usually the daemon exiting. */
1673
+ readonly SSE_ENDED: "sse_ended";
1674
+ /** The stream errored. */
1675
+ readonly SSE_ERROR: "sse_error";
1676
+ /** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
1677
+ readonly SSE_ABORTED: "sse_aborted";
1678
+ /** The response closed. */
1679
+ readonly SSE_CLOSED: "sse_closed";
1680
+ /** A reconnect attempt could not reach the daemon at all. */
1681
+ readonly CONNECT_ERROR: "connect_error";
1682
+ /** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
1683
+ readonly OTHER: "other";
1684
+ }>;
1685
+ /** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
1686
+ attempts: z.ZodNumber;
1687
+ /**
1688
+ * In-flight tool calls this drop actually killed — the only part an agent can FEEL.
1689
+ *
1690
+ * Without it every drop looks equally bad. Measured 2026-08-10/11: **320 of 321 outages were
1691
+ * `stage: first` with `attempts: 1`** — the stream ended once and the proxy reconnected, which for
1692
+ * an agent with nothing in flight is invisible. Reading that 321 as "the agent lost its tools 321
1693
+ * times" overstates the problem by roughly the whole number, and buries the one drop that mattered.
1694
+ *
1695
+ * Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
1696
+ * worth driving down.
1697
+ */
1698
+ pendingLost: z.ZodOptional<z.ZodNumber>;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1701
+ attempts: number;
1702
+ stage: "first" | "budget_spent";
1703
+ pendingLost?: number | undefined;
1704
+ }, {
1705
+ reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1706
+ attempts: number;
1707
+ stage: "first" | "budget_spent";
1708
+ pendingLost?: number | undefined;
1709
+ }>>;
1160
1710
  }, "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;
1711
+ 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
1712
  version: string;
1164
1713
  ci: boolean;
1165
1714
  v: 3;
@@ -1167,7 +1716,34 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1167
1716
  ts: number;
1168
1717
  os: string;
1169
1718
  command?: string | undefined;
1719
+ sessionId?: string | undefined;
1170
1720
  projectId?: string | undefined;
1721
+ bug?: {
1722
+ kind: string;
1723
+ source: "replay" | "contradiction" | "crawl" | "assertion";
1724
+ falseGreen: boolean;
1725
+ repeat: boolean;
1726
+ attribution?: "app" | "reticle" | "request" | undefined;
1727
+ tool?: string | undefined;
1728
+ } | undefined;
1729
+ project?: {
1730
+ git: "none" | "local_only" | "remote";
1731
+ flowCount: number;
1732
+ baselineCount: number;
1733
+ visualBaselineCount: number;
1734
+ runCount: number;
1735
+ hasContract: boolean;
1736
+ capsuleCount: number;
1737
+ featuresUsed: string[];
1738
+ featureDepth: number;
1739
+ stack?: string | undefined;
1740
+ stackMajor?: number | undefined;
1741
+ stackSource?: "cwd" | "workspace" | undefined;
1742
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1743
+ monorepo?: boolean | undefined;
1744
+ forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
1745
+ ageWeeks?: number | undefined;
1746
+ } | undefined;
1171
1747
  session?: {
1172
1748
  durationMs: number;
1173
1749
  toolCalls: number;
@@ -1175,6 +1751,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1175
1751
  toolErrors: number;
1176
1752
  verifications: number;
1177
1753
  final: boolean;
1754
+ surface?: string | undefined;
1178
1755
  errors?: {
1179
1756
  message: string;
1180
1757
  count: number;
@@ -1205,6 +1782,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1205
1782
  browserCommands?: number | undefined;
1206
1783
  peakConcurrentTools?: number | undefined;
1207
1784
  unknownToolCalls?: number | undefined;
1785
+ unknownTools?: Record<string, number> | undefined;
1786
+ noSessionErrors?: number | undefined;
1787
+ consecutiveRepeats?: Record<string, number> | undefined;
1788
+ abandonedActions?: number | undefined;
1208
1789
  machine?: {
1209
1790
  rssMb: number;
1210
1791
  heapUsedMb: number;
@@ -1214,70 +1795,61 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1214
1795
  cpuCount: number;
1215
1796
  } | undefined;
1216
1797
  clients?: string[] | undefined;
1798
+ clientVersions?: Record<string, string> | undefined;
1799
+ appConnects?: number | undefined;
1800
+ msToFirstApp?: number | undefined;
1801
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1802
+ feedbackPrompted?: number | undefined;
1803
+ errorClasses?: Record<string, number> | undefined;
1804
+ errorsRecovered?: number | undefined;
1805
+ errorsRepeated?: number | undefined;
1806
+ exit?: "signal" | "idle" | "unknown" | undefined;
1217
1807
  } | 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
- projectIdSource?: "cwd" | "git_origin" | undefined;
1808
+ projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
1809
+ tzOffsetMin?: number | undefined;
1243
1810
  feedback?: {
1244
1811
  text: string;
1245
1812
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
1246
- source: "human" | "agent";
1247
- model?: string | undefined;
1248
- stack?: string | undefined;
1249
- stackMajor?: number | undefined;
1813
+ source: "agent" | "human";
1250
1814
  trace?: string | undefined;
1251
1815
  rating?: number | undefined;
1252
1816
  need?: string | undefined;
1253
1817
  impact?: string | undefined;
1254
1818
  currentApproach?: string | undefined;
1819
+ model?: string | undefined;
1255
1820
  clientVersion?: string | undefined;
1821
+ stack?: string | undefined;
1822
+ stackMajor?: number | undefined;
1256
1823
  runtime?: "web" | "electron" | "tauri" | undefined;
1257
1824
  engine?: "blink" | "gecko" | "webkit" | undefined;
1258
1825
  driver?: "cdp" | "sdk" | undefined;
1259
1826
  client?: string | undefined;
1260
- mcpScope?: "project" | "user" | undefined;
1827
+ mcpScope?: "user" | "project" | undefined;
1261
1828
  } | undefined;
1262
- actor?: "human" | "agent" | undefined;
1829
+ actor?: "agent" | "human" | undefined;
1263
1830
  flags?: string[] | undefined;
1264
1831
  verification?: {
1265
- via: string;
1266
1832
  verified: string;
1833
+ via: string;
1267
1834
  passed: boolean;
1268
1835
  falseGreenCaught: boolean;
1269
1836
  durationMs?: number | undefined;
1837
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1838
+ brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
1839
+ browser?: string | undefined;
1270
1840
  } | undefined;
1271
1841
  versionChange?: {
1272
1842
  direction: string;
1273
1843
  from: string;
1274
1844
  to: string;
1845
+ nudged?: boolean | undefined;
1275
1846
  } | undefined;
1276
1847
  crash?: {
1277
1848
  kind: string;
1278
1849
  message?: string | undefined;
1279
1850
  errorType?: string | undefined;
1280
1851
  tool?: string | undefined;
1852
+ port?: "other" | "reticle" | undefined;
1281
1853
  fingerprint?: string | undefined;
1282
1854
  machine?: {
1283
1855
  rssMb: number;
@@ -1291,6 +1863,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1291
1863
  breadcrumb?: string[] | undefined;
1292
1864
  nodeVersion?: string | undefined;
1293
1865
  arch?: string | undefined;
1866
+ syscall?: string | undefined;
1867
+ errno?: string | undefined;
1868
+ loopback?: boolean | undefined;
1869
+ internalFrame?: string | undefined;
1294
1870
  } | undefined;
1295
1871
  identity?: {
1296
1872
  context: "company" | "side_project" | "open_source" | "learning";
@@ -1304,13 +1880,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1304
1880
  } | undefined;
1305
1881
  init?: {
1306
1882
  ok: boolean;
1307
- reason?: string | undefined;
1308
1883
  stack?: string | undefined;
1884
+ reason?: string | undefined;
1309
1885
  mcpRegistered?: boolean | undefined;
1310
1886
  } | undefined;
1887
+ outage?: {
1888
+ reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1889
+ attempts: number;
1890
+ stage: "first" | "budget_spent";
1891
+ pendingLost?: number | undefined;
1892
+ } | undefined;
1311
1893
  }, {
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;
1894
+ 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
1895
  version: string;
1315
1896
  ci: boolean;
1316
1897
  v: 3;
@@ -1318,7 +1899,34 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1318
1899
  ts: number;
1319
1900
  os: string;
1320
1901
  command?: string | undefined;
1902
+ sessionId?: string | undefined;
1321
1903
  projectId?: string | undefined;
1904
+ bug?: {
1905
+ kind: string;
1906
+ source: "replay" | "contradiction" | "crawl" | "assertion";
1907
+ falseGreen: boolean;
1908
+ repeat: boolean;
1909
+ attribution?: "app" | "reticle" | "request" | undefined;
1910
+ tool?: string | undefined;
1911
+ } | undefined;
1912
+ project?: {
1913
+ git: "none" | "local_only" | "remote";
1914
+ flowCount: number;
1915
+ baselineCount: number;
1916
+ visualBaselineCount: number;
1917
+ runCount: number;
1918
+ hasContract: boolean;
1919
+ capsuleCount: number;
1920
+ featuresUsed: string[];
1921
+ featureDepth: number;
1922
+ stack?: string | undefined;
1923
+ stackMajor?: number | undefined;
1924
+ stackSource?: "cwd" | "workspace" | undefined;
1925
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1926
+ monorepo?: boolean | undefined;
1927
+ forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
1928
+ ageWeeks?: number | undefined;
1929
+ } | undefined;
1322
1930
  session?: {
1323
1931
  durationMs: number;
1324
1932
  toolCalls: number;
@@ -1326,6 +1934,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1326
1934
  toolErrors: number;
1327
1935
  verifications: number;
1328
1936
  final: boolean;
1937
+ surface?: string | undefined;
1329
1938
  errors?: {
1330
1939
  message: string;
1331
1940
  count: number;
@@ -1356,6 +1965,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1356
1965
  browserCommands?: number | undefined;
1357
1966
  peakConcurrentTools?: number | undefined;
1358
1967
  unknownToolCalls?: number | undefined;
1968
+ unknownTools?: Record<string, number> | undefined;
1969
+ noSessionErrors?: number | undefined;
1970
+ consecutiveRepeats?: Record<string, number> | undefined;
1971
+ abandonedActions?: number | undefined;
1359
1972
  machine?: {
1360
1973
  rssMb: number;
1361
1974
  heapUsedMb: number;
@@ -1365,70 +1978,61 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1365
1978
  cpuCount: number;
1366
1979
  } | undefined;
1367
1980
  clients?: string[] | undefined;
1981
+ clientVersions?: Record<string, string> | undefined;
1982
+ appConnects?: number | undefined;
1983
+ msToFirstApp?: number | undefined;
1984
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1985
+ feedbackPrompted?: number | undefined;
1986
+ errorClasses?: Record<string, number> | undefined;
1987
+ errorsRecovered?: number | undefined;
1988
+ errorsRepeated?: number | undefined;
1989
+ exit?: "signal" | "idle" | "unknown" | undefined;
1368
1990
  } | 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
- projectIdSource?: "cwd" | "git_origin" | undefined;
1991
+ projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
1992
+ tzOffsetMin?: number | undefined;
1394
1993
  feedback?: {
1395
1994
  text: string;
1396
1995
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
1397
- source: "human" | "agent";
1398
- model?: string | undefined;
1399
- stack?: string | undefined;
1400
- stackMajor?: number | undefined;
1996
+ source: "agent" | "human";
1401
1997
  trace?: string | undefined;
1402
1998
  rating?: number | undefined;
1403
1999
  need?: string | undefined;
1404
2000
  impact?: string | undefined;
1405
2001
  currentApproach?: string | undefined;
2002
+ model?: string | undefined;
1406
2003
  clientVersion?: string | undefined;
2004
+ stack?: string | undefined;
2005
+ stackMajor?: number | undefined;
1407
2006
  runtime?: "web" | "electron" | "tauri" | undefined;
1408
2007
  engine?: "blink" | "gecko" | "webkit" | undefined;
1409
2008
  driver?: "cdp" | "sdk" | undefined;
1410
2009
  client?: string | undefined;
1411
- mcpScope?: "project" | "user" | undefined;
2010
+ mcpScope?: "user" | "project" | undefined;
1412
2011
  } | undefined;
1413
- actor?: "human" | "agent" | undefined;
2012
+ actor?: "agent" | "human" | undefined;
1414
2013
  flags?: string[] | undefined;
1415
2014
  verification?: {
1416
- via: string;
1417
2015
  verified: string;
2016
+ via: string;
1418
2017
  passed: boolean;
1419
2018
  falseGreenCaught: boolean;
1420
2019
  durationMs?: number | undefined;
2020
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
2021
+ brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
2022
+ browser?: string | undefined;
1421
2023
  } | undefined;
1422
2024
  versionChange?: {
1423
2025
  direction: string;
1424
2026
  from: string;
1425
2027
  to: string;
2028
+ nudged?: boolean | undefined;
1426
2029
  } | undefined;
1427
2030
  crash?: {
1428
2031
  kind: string;
1429
2032
  message?: string | undefined;
1430
2033
  errorType?: string | undefined;
1431
2034
  tool?: string | undefined;
2035
+ port?: "other" | "reticle" | undefined;
1432
2036
  fingerprint?: string | undefined;
1433
2037
  machine?: {
1434
2038
  rssMb: number;
@@ -1442,6 +2046,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1442
2046
  breadcrumb?: string[] | undefined;
1443
2047
  nodeVersion?: string | undefined;
1444
2048
  arch?: string | undefined;
2049
+ syscall?: string | undefined;
2050
+ errno?: string | undefined;
2051
+ loopback?: boolean | undefined;
2052
+ internalFrame?: string | undefined;
1445
2053
  } | undefined;
1446
2054
  identity?: {
1447
2055
  context: "company" | "side_project" | "open_source" | "learning";
@@ -1455,9 +2063,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1455
2063
  } | undefined;
1456
2064
  init?: {
1457
2065
  ok: boolean;
1458
- reason?: string | undefined;
1459
2066
  stack?: string | undefined;
2067
+ reason?: string | undefined;
1460
2068
  mcpRegistered?: boolean | undefined;
1461
2069
  } | undefined;
2070
+ outage?: {
2071
+ reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
2072
+ attempts: number;
2073
+ stage: "first" | "budget_spent";
2074
+ pendingLost?: number | undefined;
2075
+ } | undefined;
1462
2076
  }>;
1463
2077
  export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;