@reticlehq/core 2.13.1 → 3.1.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 (147) hide show
  1. package/dist/artifacts/artifacts-entry.d.ts +20 -0
  2. package/dist/artifacts/artifacts-entry.js +20 -0
  3. package/dist/artifacts/flow-composition.d.ts +30 -0
  4. package/dist/artifacts/flow-composition.js +19 -0
  5. package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +97 -3
  6. package/dist/{flow-constants.js → artifacts/flow-constants.js} +103 -4
  7. package/dist/artifacts/flow-mutation-target.d.ts +39 -0
  8. package/dist/artifacts/flow-mutation-target.js +89 -0
  9. package/dist/artifacts/flow-order.d.ts +30 -0
  10. package/dist/artifacts/flow-order.js +49 -0
  11. package/dist/artifacts/flow-select.d.ts +56 -0
  12. package/dist/artifacts/flow-select.js +56 -0
  13. package/dist/artifacts/flow-step-tool.d.ts +31 -0
  14. package/dist/artifacts/flow-step-tool.js +31 -0
  15. package/dist/artifacts/flow-types.d.ts +3736 -0
  16. package/dist/artifacts/flow-types.js +463 -0
  17. package/dist/artifacts/flow-unreached.d.ts +12 -0
  18. package/dist/artifacts/flow-unreached.js +24 -0
  19. package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +7 -3
  20. package/dist/{impact-savings.js → artifacts/impact-savings.js} +27 -4
  21. package/dist/{impact.d.ts → artifacts/impact.d.ts} +122 -54
  22. package/dist/{impact.js → artifacts/impact.js} +30 -0
  23. package/dist/{journal.d.ts → artifacts/journal.d.ts} +50 -6
  24. package/dist/{journal.js → artifacts/journal.js} +38 -2
  25. package/dist/artifacts/step-effect.d.ts +29 -0
  26. package/dist/artifacts/step-effect.js +28 -0
  27. package/dist/hooks/hook-events.d.ts +311 -0
  28. package/dist/hooks/hook-events.js +127 -0
  29. package/dist/hooks/hooks-entry.d.ts +9 -0
  30. package/dist/hooks/hooks-entry.js +9 -0
  31. package/dist/{brand.d.ts → identity/brand.d.ts} +7 -0
  32. package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
  33. package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
  34. package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
  35. package/dist/{document-identity.js → identity/document-identity.js} +4 -5
  36. package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
  37. package/dist/{source-constants.js → identity/source-constants.js} +4 -4
  38. package/dist/index.d.ts +69 -42
  39. package/dist/index.js +78 -44
  40. package/dist/onboarding.d.ts +114 -0
  41. package/dist/onboarding.js +141 -0
  42. package/dist/realm/registry.d.ts +212 -0
  43. package/dist/realm/registry.js +302 -0
  44. package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +4 -5
  45. package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
  46. package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
  47. package/dist/{project-registry.js → registry/project-registry.js} +5 -5
  48. package/dist/schema/command-name.json +31 -0
  49. package/dist/schema/event-message.json +1 -0
  50. package/dist/schema/event-payloads.json +791 -0
  51. package/dist/schema/event-type.json +1 -0
  52. package/dist/schema/hello-message.json +76 -2
  53. package/dist/schema/reticle-event.json +1 -0
  54. package/dist/schema/reticle-message.json +77 -2
  55. package/dist/telemetry-entry.d.ts +15 -0
  56. package/dist/telemetry-entry.js +15 -0
  57. package/dist/telemetry-feedback.d.ts +13 -14
  58. package/dist/telemetry-feedback.js +11 -12
  59. package/dist/telemetry-license.d.ts +1 -1
  60. package/dist/telemetry-license.js +1 -1
  61. package/dist/telemetry-refusal.d.ts +11 -11
  62. package/dist/telemetry-refusal.js +7 -8
  63. package/dist/telemetry-session.d.ts +49 -57
  64. package/dist/telemetry-session.js +47 -55
  65. package/dist/telemetry.d.ts +229 -198
  66. package/dist/telemetry.js +83 -98
  67. package/dist/tour-entry.d.ts +10 -0
  68. package/dist/tour-entry.js +10 -0
  69. package/dist/tour.d.ts +125 -0
  70. package/dist/tour.js +165 -0
  71. package/dist/{consequence.d.ts → verdict/consequence.d.ts} +35 -11
  72. package/dist/{consequence.js → verdict/consequence.js} +9 -22
  73. package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
  74. package/dist/{findings.d.ts → verdict/findings.d.ts} +149 -41
  75. package/dist/{findings.js → verdict/findings.js} +169 -48
  76. package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +22 -14
  77. package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +23 -15
  78. package/dist/{intent.d.ts → verdict/intent.d.ts} +41 -52
  79. package/dist/{intent.js → verdict/intent.js} +11 -22
  80. package/dist/verdict/revision.d.ts +44 -0
  81. package/dist/verdict/revision.js +53 -0
  82. package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
  83. package/dist/{run-context.js → verdict/run-context.js} +15 -36
  84. package/dist/{security.js → verdict/security.js} +12 -21
  85. package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +369 -93
  86. package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
  87. package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +36 -13
  88. package/dist/{verified-constants.js → verdict/verified-constants.js} +36 -13
  89. package/dist/verdict/verify-progress.d.ts +129 -0
  90. package/dist/verdict/verify-progress.js +74 -0
  91. package/dist/wire/channel.d.ts +46 -0
  92. package/dist/wire/channel.js +95 -0
  93. package/dist/{constants.d.ts → wire/constants/constants.d.ts} +124 -28
  94. package/dist/{constants.js → wire/constants/constants.js} +137 -28
  95. package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +9 -2
  96. package/dist/{session-constants.js → wire/constants/session-constants.js} +9 -2
  97. package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
  98. package/dist/{event-classification.js → wire/event-classification.js} +1 -1
  99. package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +229 -17
  100. package/dist/{event-payloads.js → wire/event-payloads.js} +61 -3
  101. package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
  102. package/dist/{event-priority.js → wire/event-priority.js} +2 -5
  103. package/dist/wire/global-press.d.ts +30 -0
  104. package/dist/wire/global-press.js +54 -0
  105. package/dist/{messages.d.ts → wire/messages.d.ts} +290 -38
  106. package/dist/{messages.js → wire/messages.js} +93 -5
  107. package/dist/wire/narrow.d.ts +39 -0
  108. package/dist/wire/narrow.js +45 -0
  109. package/dist/{net.d.ts → wire/net.d.ts} +49 -10
  110. package/dist/{net.js → wire/net.js} +49 -10
  111. package/dist/wire/platform.d.ts +37 -0
  112. package/dist/wire/platform.js +36 -0
  113. package/dist/{redaction.d.ts → wire/redaction.d.ts} +30 -0
  114. package/dist/wire/redaction.js +274 -0
  115. package/dist/wire/tool-names.d.ts +133 -0
  116. package/dist/wire/tool-names.js +142 -0
  117. package/dist/{toon.js → wire/toon.js} +1 -1
  118. package/dist/{types.d.ts → wire/types.d.ts} +106 -66
  119. package/dist/{types.js → wire/types.js} +24 -4
  120. package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
  121. package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
  122. package/dist/{notices.d.ts → words/notices.d.ts} +24 -12
  123. package/dist/{notices.js → words/notices.js} +27 -12
  124. package/package.json +22 -5
  125. package/dist/flow-types.d.ts +0 -1473
  126. package/dist/flow-types.js +0 -195
  127. package/dist/redaction.js +0 -149
  128. /package/dist/{brand.js → identity/brand.js} +0 -0
  129. /package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
  130. /package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
  131. /package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
  132. /package/dist/{project-id.js → identity/project-id.js} +0 -0
  133. /package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
  134. /package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
  135. /package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
  136. /package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
  137. /package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
  138. /package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
  139. /package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
  140. /package/dist/{state-select.js → wire/state-select.js} +0 -0
  141. /package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
  142. /package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
  143. /package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
  144. /package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
  145. /package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
  146. /package/dist/{upgrade.d.ts → words/upgrade.d.ts} +0 -0
  147. /package/dist/{upgrade.js → words/upgrade.js} +0 -0
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * Anonymous product telemetry — the contract for how the OSS `reticle` runtime reports ADOPTION
3
3
  * (not verification results): is it installed, how often is it invoked, which tools get used, how many
4
- * distinct machines/projects run it. This is what turns "npm downloads" (which an investor discounts)
5
- * into DAU/WAU/MAU, active sessions, and retention. Uninstall/churn is deliberately NOT an event —
6
- * npm 7+/pnpm run no uninstall lifecycle scripts, so churn is inferred server-side from inactivity.
4
+ * distinct machines/projects run it. Uninstall is deliberately NOT an event — npm 7+ and pnpm run no
5
+ * uninstall lifecycle script, so inactivity is the only signal available.
7
6
  *
8
7
  * Privacy is structural, not a policy: the ONLY identifiers on the wire are a random per-machine UUID
9
8
  * (`anonymousId`, minted locally, never derived from anything personal) and a one-way HASH of the
@@ -16,6 +15,12 @@
16
15
  * `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
17
16
  */
18
17
  import { z } from 'zod';
18
+ import { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
19
+ /**
20
+ * The setup funnel's vocabulary. It is defined in `onboarding.ts`, which is its own subject, and
21
+ * re-exported here so every `@reticlehq/core/telemetry` import reaches it.
22
+ */
23
+ export { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
19
24
  /** Bump when the event shape changes so the analytics side can segment old senders. */
20
25
  export declare const TELEMETRY_EVENT_VERSION = 3;
21
26
  /**
@@ -25,19 +30,17 @@ export declare const TELEMETRY_EVENT_VERSION = 3;
25
30
  * `tool`, emitted from a file called `invoke-tool.ts`. A name you have to look up is a name that gets
26
31
  * misread on a dashboard six months from now.
27
32
  *
28
- * VOLUME IS PART OF THE DESIGN. PostHog bills per ingested event, so the taxonomy is deliberately
29
- * shaped around one high-frequency thing (tool calls) being AGGREGATED rather than emitted. A single
30
- * agent verification loop is 50–200 tool calls; at one event each, a thousand users would push
31
- * millions of events a day for a question — "which tools get used" — that one summary property
32
- * answers better, because it also preserves the SHAPE of a session instead of scattering it across
33
- * 200 rows. See `SessionSummary`.
33
+ * VOLUME IS PART OF THE DESIGN. Tool calls are AGGREGATED into a session summary rather than emitted
34
+ * one event each: a single verification loop is 50–200 calls, and the summary answers "which tools
35
+ * get used" better anyway, because it preserves the SHAPE of a session instead of scattering it
36
+ * across 200 rows. See `SessionSummary`.
34
37
  */
35
38
  export declare const TelemetryEventKind: {
36
39
  /** First-ever run on this machine — powers install count + the new-user curve. */
37
40
  readonly RETICLE_INSTALLED: "reticle_installed";
38
41
  /**
39
- * A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read we
40
- * have on human intent (`verify` and `gate` mean something very different from `status`).
42
+ * A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read on
43
+ * human intent (`verify` and `gate` mean something very different from `status`).
41
44
  *
42
45
  * Explicitly NOT emitted for the internal `_daemon` spawn: `reticle mcp` re-runs its own binary to
43
46
  * start the daemon, so counting that child inflated the old `invoke` metric ~2x — and worst on
@@ -56,20 +59,16 @@ export declare const TelemetryEventKind: {
56
59
  * A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
57
60
  * `final: false`.
58
61
  *
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.
62
+ * Separate from DAEMON_STOPPED because the two populations are OPPOSITES: a daemon that served a
63
+ * tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
64
+ * an exit's name therefore describes active sessions at one end and abandoned ones at the other.
65
65
  *
66
66
  * Count sessions with DAEMON_STOPPED. Sum work with both.
67
67
  */
68
68
  readonly SESSION_PROGRESS: "session_progress";
69
69
  /**
70
- * A verification produced a verdict. The product's reason to exist, and the one metric an investor
71
- * should be shown: not "tools were called" but "an app was actually verified, and here is how often
72
- * that caught something a green test would have missed".
70
+ * A verification produced a verdict — an app was actually verified, rather than merely that tools
71
+ * were called.
73
72
  */
74
73
  readonly VERIFICATION_COMPLETED: "verification_completed";
75
74
  /**
@@ -83,14 +82,14 @@ export declare const TelemetryEventKind: {
83
82
  /** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
84
83
  readonly RUNTIME_CRASHED: "runtime_crashed";
85
84
  /**
86
- * Someone told us something went wrong (or right). UNLIKE every other kind, this one carries
85
+ * Somebody reported that something went wrong (or right). UNLIKE every other kind, this one carries
87
86
  * author-written free text — which is exactly why it is never emitted passively: it exists only
88
87
  * because an agent called `reticle_feedback` or a human ran `reticle feedback`. See
89
88
  * `FeedbackSchema` for the consent/redaction contract.
90
89
  */
91
90
  readonly FEEDBACK_SUBMITTED: "feedback_submitted";
92
91
  /**
93
- * Someone chose to tell us who they are. Like `feedback_submitted`, this exists ONLY because a
92
+ * Somebody chose to say who they are. Like `feedback_submitted`, this exists ONLY because a
94
93
  * human ran a command — Reticle never infers an identity from a git remote, an email in git
95
94
  * config, or anything else. See `identify.ts` for why that refusal is deliberate.
96
95
  */
@@ -125,18 +124,17 @@ export declare const TelemetryEventKind: {
125
124
  */
126
125
  readonly APP_INSTRUMENTED: "app_instrumented";
127
126
  /**
128
- * The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
129
- * completely invisible in the field.
127
+ * The agent LOST its Reticle tools, and nothing else reports it.
130
128
  *
131
129
  * `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
132
- * account of an outage went to a local file nobody sends us. So "how often does a real user's MCP
130
+ * account of an outage goes to a local file nobody uploads. So "how often does a real user's MCP
133
131
  * server go down, and does it come back" — the single question the transport has to answer — could
134
132
  * not be asked of any dashboard.
135
133
  *
136
134
  * Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
137
135
  * the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
138
- * per-call `tool` event was already removed here for cost, and one measured afternoon produced 547
139
- * proxy reconnects — an event per reconnect would bill for the pathology instead of measuring it.
136
+ * per-call `tool` event was already removed here for cost, and a single dormant proxy can reconnect
137
+ * hundreds of times — an event per reconnect would bill for the pathology instead of measuring it.
140
138
  * The first-outage event answers "what share of sessions lose MCP at all", which is the number
141
139
  * that decides whether this is fixed.
142
140
  */
@@ -146,26 +144,25 @@ export declare const TelemetryEventKind: {
146
144
  * failed on a missing dependency was indistinguishable from a user who never tried.
147
145
  */
148
146
  readonly INIT_COMPLETED: "init_completed";
147
+ readonly ONBOARDING_STEP: "onboarding_step";
149
148
  /**
150
149
  * Reticle found a defect in the app under test.
151
150
  *
152
- * THE metric the product exists to produce. Everything else here measures whether Reticle is used;
153
- * this measures whether it WORKS — and it is the only number that can honestly be put in front of
154
- * an investor or published, because it counts outcomes for users rather than activity by them.
151
+ * Everything else here measures whether Reticle is USED; this measures whether it WORKS, because it
152
+ * counts outcomes rather than activity.
155
153
  *
156
154
  * Deliberately a discrete event rather than only a counter: each bug carries its KIND, and the
157
- * distribution is the interesting part. "We found 4,000 bugs" is a claim; "1,200 of them were
158
- * greens that lied — a passing assertion sitting on a failed write, which no screenshot and no
159
- * human watching the screen would have caught" is the argument.
155
+ * distribution is the interesting part — a passing assertion sitting on a failed write is a
156
+ * different finding from a console error, and a single count cannot tell them apart.
160
157
  */
161
158
  readonly BUG_FOUND: "bug_found";
162
159
  /**
163
160
  * A tool could not do what was asked, and said so.
164
161
  *
165
162
  * The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
166
- * throws it away. So the largest cohort in the funnel — the users who connect an agent and never
167
- * drive — is visible only by subtraction, and the three genuinely different situations behind it
168
- * (nothing was ever wired here, the app is not running, a session was lost) arrive as one silence.
163
+ * throws it away. So a connected agent that never drives is visible only by subtraction, and the
164
+ * three genuinely different situations behind it (nothing was ever wired here, the app is not
165
+ * running, a session was lost) arrive as one silence.
169
166
  *
170
167
  * `noSessionErrors` on the session summary counts one of those causes and only at the end of a
171
168
  * session, without the tool, without the discriminator, and without whether the agent tried again.
@@ -177,12 +174,12 @@ export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof Teleme
177
174
  /** True when this event happened inside a daemon run, so a `sessionId` on it means something. */
178
175
  export declare function isSessionScoped(kind: string): boolean;
179
176
  /**
180
- * Who caused this. The only honest split available to us: a `reticle` command was TYPED by a person,
177
+ * Who caused this. The only honest split available: a `reticle` command was TYPED by a person,
181
178
  * while an MCP tool call came from the agent's own loop.
182
179
  *
183
- * What we deliberately do NOT claim to know is whether the human told the agent to verify or the
184
- * agent decided on its own — that lives in a prompt Reticle never sees. Inferring it from timing
185
- * would be a guess dressed as a measurement, and a dashboard cannot tell the difference later.
180
+ * It deliberately does NOT claim to know whether the human told the agent to verify or the agent
181
+ * decided on its own — that lives in a prompt Reticle never sees. Inferring it from timing would be
182
+ * a guess dressed as a measurement, and a dashboard cannot tell the difference later.
186
183
  */
187
184
  export declare const TelemetryActor: {
188
185
  readonly HUMAN: "human";
@@ -238,7 +235,6 @@ export declare const VerificationSchema: z.ZodObject<{
238
235
  passed: z.ZodBoolean;
239
236
  /**
240
237
  * TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
241
- * This is the product's whole thesis expressed as one boolean, and the number to put in a deck.
242
238
  */
243
239
  falseGreenCaught: z.ZodBoolean;
244
240
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -286,8 +282,10 @@ export declare const VerificationSchema: z.ZodObject<{
286
282
  * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
287
283
  */
288
284
  reason: z.ZodOptional<z.ZodNativeEnum<{
285
+ readonly CAPABILITY_ABSENT: "capability-absent";
289
286
  readonly INCONCLUSIVE: "inconclusive";
290
287
  readonly OBSERVATION_LOST: "observation_lost";
288
+ readonly WINDOW_CLOSED_EARLY: "window_closed_early";
291
289
  readonly ASSERTION_FAILED: "assertion_failed";
292
290
  readonly CONTRADICTED: "contradicted";
293
291
  readonly ALREADY_TRUE: "already_true";
@@ -305,12 +303,12 @@ export declare const VerificationSchema: z.ZodObject<{
305
303
  * WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
306
304
  *
307
305
  * The three causes belong to three different owners and need three different fixes, and without
308
- * this they are one bar. The one time we had to answer it the data could not, and the answer
309
- * turned out to be that our own eviction counter was miscounting.
306
+ * this they are one bar — and the cause has turned out to be Reticle's own eviction counter
307
+ * miscounting, which no aggregate could have shown.
310
308
  *
311
309
  * ONE value, not a list: `losses` can hold several and a multi-value property is not something a
312
310
  * dashboard can group by, so the FIRST is sent and the order in the producers is the order of
313
- * ownership — ours before the page's. Absent on every verdict whose capture was clean.
311
+ * ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
314
312
  */
315
313
  uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
316
314
  readonly BUFFER_LOSS: "buffer_loss";
@@ -323,8 +321,8 @@ export declare const VerificationSchema: z.ZodObject<{
323
321
  via: string;
324
322
  passed: boolean;
325
323
  falseGreenCaught: boolean;
324
+ reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
326
325
  durationMs?: number | undefined;
327
- reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
328
326
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
329
327
  browser?: string | undefined;
330
328
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
@@ -333,8 +331,8 @@ export declare const VerificationSchema: z.ZodObject<{
333
331
  via: string;
334
332
  passed: boolean;
335
333
  falseGreenCaught: boolean;
334
+ reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
336
335
  durationMs?: number | undefined;
337
- reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
338
336
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
339
337
  browser?: string | undefined;
340
338
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
@@ -370,16 +368,14 @@ export type VersionChange = z.infer<typeof VersionChangeSchema>;
370
368
  /**
371
369
  * A crash, with enough detail to actually diagnose it.
372
370
  *
373
- * The first version of this carried only a fingerprint — a hash — which made crashes RANKABLE and
374
- * completely UNDIAGNOSABLE: you could see that forty machines hit `a3f2c1d8e9b0` and had no way on
375
- * earth to learn what `a3f2c1d8e9b0` was. A group key with no dictionary. Everything below exists to
376
- * give the hash a meaning, while keeping the line that matters: our code and our failure, never the
377
- * user's code and never their data.
371
+ * A fingerprint alone makes crashes RANKABLE and completely UNDIAGNOSABLE — a group key with no
372
+ * dictionary. Everything below exists to give the hash a meaning, while keeping the line that
373
+ * matters: Reticle's own code and its own failure, never the user's code and never their data.
378
374
  */
379
375
  /**
380
376
  * Whether a failed connection was aimed at a port Reticle itself uses.
381
377
  *
382
- * An enum rather than the number, because the number is the reporter's and the answer is ours: all
378
+ * An enum rather than the number, because the number is the reporter's and the answer is Reticle's: all
383
379
  * anyone needs to know is whose problem it is. Refused on a Reticle port is a lifecycle problem —
384
380
  * a daemon that is not up; refused anywhere else is somebody else's service.
385
381
  */
@@ -393,11 +389,11 @@ export declare const CrashSchema: z.ZodObject<{
393
389
  kind: z.ZodString;
394
390
  /** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
395
391
  errorType: z.ZodOptional<z.ZodString>;
396
- /** Hash of the type + our own frames. Groups the same crash across every machine. */
392
+ /** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
397
393
  fingerprint: z.ZodOptional<z.ZodString>;
398
394
  /**
399
395
  * The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
400
- * replaced by `*`. `no baseline named *` tells us exactly what broke; the flow name that made it
396
+ * replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
401
397
  * specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
402
398
  * readable defect.
403
399
  */
@@ -405,7 +401,7 @@ export declare const CrashSchema: z.ZodObject<{
405
401
  /**
406
402
  * The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
407
403
  *
408
- * This is our own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
404
+ * This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
409
405
  * npm tarball — so there is no privacy question in sending it, and it is the single most useful
410
406
  * thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
411
407
  * user's application or to node internals are dropped entirely before this is built.
@@ -418,16 +414,16 @@ export declare const CrashSchema: z.ZodObject<{
418
414
  *
419
415
  * Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
420
416
  * assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
421
- * NAMES only, from our own fixed vocabulary; no arguments, so nothing the agent typed is in here.
417
+ * NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
422
418
  */
423
419
  breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
424
- /** Node major/minor — crashes cluster hard by runtime version and we were not recording it. */
420
+ /** Node major/minor — crashes cluster hard by runtime version. */
425
421
  nodeVersion: z.ZodOptional<z.ZodString>;
426
422
  /** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
427
423
  arch: z.ZodOptional<z.ZodString>;
428
424
  /**
429
- * The machine at the moment of the crash. "Out of memory" and "our bug" look identical in a stack
430
- * trace and are completely different problems; this is what tells them apart.
425
+ * The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
426
+ * stack trace and are completely different problems; this is what tells them apart.
431
427
  */
432
428
  machine: z.ZodOptional<z.ZodObject<{
433
429
  rssMb: z.ZodNumber;
@@ -482,8 +478,8 @@ export declare const CrashSchema: z.ZodObject<{
482
478
  }, "strip", z.ZodTypeAny, {
483
479
  kind: string;
484
480
  message?: string | undefined;
485
- errorType?: string | undefined;
486
481
  tool?: string | undefined;
482
+ errorType?: string | undefined;
487
483
  port?: "reticle" | "other" | undefined;
488
484
  fingerprint?: string | undefined;
489
485
  machine?: {
@@ -505,8 +501,8 @@ export declare const CrashSchema: z.ZodObject<{
505
501
  }, {
506
502
  kind: string;
507
503
  message?: string | undefined;
508
- errorType?: string | undefined;
509
504
  tool?: string | undefined;
505
+ errorType?: string | undefined;
510
506
  port?: "reticle" | "other" | undefined;
511
507
  fingerprint?: string | undefined;
512
508
  machine?: {
@@ -547,15 +543,8 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
547
543
  /**
548
544
  * WHOSE fault the defect was.
549
545
  *
550
- * `bugsFound` is the number this product would most like to publish, and it is not publishable
551
- * without this. It shipped twice and was wrong both times: across two full real drives EVERY
552
- * `attribution: 'app'` was a misattribution, so a single session would have published defects
553
- * against a customer's product that did not exist. A metric confidently wrong about whose fault
554
- * something is, is worse than no metric — it is the number a founder steers on, and it points at the
555
- * customer. It was removed, and an ABSENT field then made "nobody classified this" and "we looked
556
- * and could not tell" the same fact, which is the other half of the same problem.
557
- *
558
- * So it is back with two rules, and both are what the earlier versions lacked:
546
+ * `bugsFound` is not publishable without this, and a count confidently wrong about whose fault
547
+ * something is, is worse than no count: it points at the customer. Two rules keep it honest:
559
548
  *
560
549
  * 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
561
550
  * path that forgot; a value means the classifier ran and declined.
@@ -563,8 +552,7 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
563
552
  * failed, a signal the app fired carrying data that disagrees with its own screen, a written
564
553
  * field echoed back changed. Never "nothing else explained it". Core already draws exactly this
565
554
  * line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
566
- * than a second judgement invented next to it — every one of the historical misattributions was
567
- * an absence-derived kind, so this rule produces zero of them on the same data.
555
+ * than a second judgement invented beside it.
568
556
  */
569
557
  export declare const BugAttribution: {
570
558
  /** A defect in the app under test — the only bucket that belongs in a published defect count. */
@@ -578,8 +566,8 @@ export declare const BugAttribution: {
578
566
  *
579
567
  * The honest majority, and it must stay a value rather than becoming a gap: a failed
580
568
  * `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
581
- * testid" identically, and an owner invented for it would put a guess into the one number we
582
- * intend to publish. Exclude it from a defect count; never fold it into `app`.
569
+ * testid" identically, and an owner invented for it would put a guess into a published number.
570
+ * Exclude it from a defect count; never fold it into `app`.
583
571
  */
584
572
  readonly UNCLASSIFIED: "unclassified";
585
573
  };
@@ -589,7 +577,7 @@ export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution
589
577
  *
590
578
  * `kind` is the taxonomy value from `findings.ts` — `signal-contradicted`, `console-error`,
591
579
  * `duplicate-request` and so on. Never a selector, a URL, an element, or any description of the
592
- * user's app: we report THAT a class of defect was found, never WHAT it was in.
580
+ * user's app — THAT a class of defect was found, never WHAT it was in.
593
581
  */
594
582
  export declare const BugFoundSchema: z.ZodObject<{
595
583
  source: z.ZodNativeEnum<{
@@ -638,7 +626,7 @@ export declare const BugFoundSchema: z.ZodObject<{
638
626
  /**
639
627
  * Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
640
628
  *
641
- * Absence and "we looked and could not tell" are different facts, and only one of them is a
629
+ * Absence and "the evidence could not say" are different facts, and only one of them is a
642
630
  * measurement. Count `attribution: 'app'` for defects found in anybody's product; see
643
631
  * `BugAttribution` for why `app` needs positive evidence.
644
632
  */
@@ -654,8 +642,8 @@ export declare const BugFoundSchema: z.ZodObject<{
654
642
  *
655
643
  * The honest majority, and it must stay a value rather than becoming a gap: a failed
656
644
  * `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
657
- * testid" identically, and an owner invented for it would put a guess into the one number we
658
- * intend to publish. Exclude it from a defect count; never fold it into `app`.
645
+ * testid" identically, and an owner invented for it would put a guess into a published number.
646
+ * Exclude it from a defect count; never fold it into `app`.
659
647
  */
660
648
  readonly UNCLASSIFIED: "unclassified";
661
649
  }>;
@@ -705,9 +693,9 @@ export declare const McpConnectionSchema: z.ZodObject<{
705
693
  /**
706
694
  * Was an app carrying the SDK already attached to this daemon when the agent arrived.
707
695
  *
708
- * The mirror of `AppInstrumentation.agentAttached`, and the closest thing we have to WHAT THE
709
- * AGENT SAW. Most clients that attach never call a single tool, and that cohort was reachable only
710
- * by subtraction — `tool_refused` cannot describe it, because an agent that reads the server
696
+ * The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
697
+ * AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
698
+ * subtraction: `tool_refused` cannot describe it, because an agent that reads the server
711
699
  * instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
712
700
  *
713
701
  * `false` means the handshake happened against a daemon with no app to look at, which is the state
@@ -767,13 +755,11 @@ export declare const OutageStage: {
767
755
  /**
768
756
  * The link came back on its own, and `attempts` says what it cost.
769
757
  *
770
- * Without it `first` is unfalsifiable. It is emitted at the moment of the drop, when the attempt
771
- * counter is 1 by construction and the cap keeps any later drop from ever replacing it — so every
772
- * event in the field carried the same stage and the same attempt count, and neither could carry
773
- * another. That reads as "reconnection never advances past the first attempt" and it is really
774
- * "this event is emitted before there is anything to say". `recovered` is the counterpart that
775
- * makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
776
- * whose tools never came back.
758
+ * Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
759
+ * attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
760
+ * on its own it can only ever report one stage and one attempt, which reads as "reconnection
761
+ * never advances" when it really means "emitted before there is anything to say". `first` with no
762
+ * `recovered` and no `budget_spent` is a session whose tools never came back.
777
763
  */
778
764
  readonly RECOVERED: "recovered";
779
765
  };
@@ -823,13 +809,11 @@ export declare const McpOutageSchema: z.ZodObject<{
823
809
  /**
824
810
  * The link came back on its own, and `attempts` says what it cost.
825
811
  *
826
- * Without it `first` is unfalsifiable. It is emitted at the moment of the drop, when the attempt
827
- * counter is 1 by construction and the cap keeps any later drop from ever replacing it — so every
828
- * event in the field carried the same stage and the same attempt count, and neither could carry
829
- * another. That reads as "reconnection never advances past the first attempt" and it is really
830
- * "this event is emitted before there is anything to say". `recovered` is the counterpart that
831
- * makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
832
- * whose tools never came back.
812
+ * Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
813
+ * attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
814
+ * on its own it can only ever report one stage and one attempt, which reads as "reconnection
815
+ * never advances" when it really means "emitted before there is anything to say". `first` with no
816
+ * `recovered` and no `budget_spent` is a session whose tools never came back.
833
817
  */
834
818
  readonly RECOVERED: "recovered";
835
819
  }>;
@@ -861,10 +845,10 @@ export declare const McpOutageSchema: z.ZodObject<{
861
845
  /**
862
846
  * In-flight tool calls this drop actually killed — the only part an agent can FEEL.
863
847
  *
864
- * Without it every drop looks equally bad. In the field almost every outage was
865
- * `stage: first` with `attempts: 1`** — the stream ended once and the proxy reconnected, which for
866
- * an agent with nothing in flight is invisible. Reading that 321 as "the agent lost its tools 321
867
- * times" overstates the problem by roughly the whole number, and buries the one drop that mattered.
848
+ * Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
849
+ * — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
850
+ * invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
851
+ * whole total, and buries the one drop that mattered.
868
852
  *
869
853
  * Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
870
854
  * worth driving down.
@@ -886,8 +870,7 @@ export type McpOutage = z.infer<typeof McpOutageSchema>;
886
870
  * WHICH published route brought this install in.
887
871
  *
888
872
  * Four routes ship at once — the SKILL.md paste URL, an `npx skills add` package, a Claude Code
889
- * plugin, and docs.reticle.sh — and not one install can be attributed to any of them today. Every
890
- * decision about where to spend effort on distribution is therefore made blind.
873
+ * plugin, and docs.reticle.sh — and nothing else distinguishes them.
891
874
  *
892
875
  * The value is NEVER inferred. It is read from a single explicit marker (`RETICLE_INSTALL_SOURCE`)
893
876
  * that a channel sets on itself, narrowed against this list, and anything else reports `UNKNOWN`.
@@ -896,7 +879,7 @@ export type McpOutage = z.infer<typeof McpOutageSchema>;
896
879
  * a measurement. Read a small `unknown` as a marker that spread, never as success.
897
880
  *
898
881
  * What the marker CANNOT be derived from, and why nothing here tries:
899
- * - `npm_config_user_agent` says npm/pnpm ran us. Every one of these routes runs through npx, so it
882
+ * - `npm_config_user_agent` says npm/pnpm ran the command. Every one of these routes runs through npx, so it
900
883
  * separates none of them.
901
884
  * - The presence of `.claude-plugin/` or an installed skill directory says a plugin or a skill is
902
885
  * present in the repo, not that it is the thing that ran `init` — and both are present at once on
@@ -960,9 +943,9 @@ export declare const InitConfirmation: {
960
943
  /**
961
944
  * A dev server with Reticle loaded IS running, and no page dialled.
962
945
  *
963
- * The half of NO_SESSION that used to be invisible, and the one with a completely different fix:
964
- * the config is right and the process was restarted, so telling this person to restart their dev
965
- * server is an instruction they have already followed. They need to open the app.
946
+ * The half of NO_SESSION with a completely different fix: the config is right and the process was
947
+ * restarted, so telling this person to restart their dev server is an instruction they have
948
+ * already followed. They need to open the app.
966
949
  */
967
950
  readonly NO_PAGE: "no_page";
968
951
  };
@@ -1000,22 +983,22 @@ export declare const InitOutcomeSchema: z.ZodObject<{
1000
983
  /**
1001
984
  * A dev server with Reticle loaded IS running, and no page dialled.
1002
985
  *
1003
- * The half of NO_SESSION that used to be invisible, and the one with a completely different fix:
1004
- * the config is right and the process was restarted, so telling this person to restart their dev
1005
- * server is an instruction they have already followed. They need to open the app.
986
+ * The half of NO_SESSION with a completely different fix: the config is right and the process was
987
+ * restarted, so telling this person to restart their dev server is an instruction they have
988
+ * already followed. They need to open the app.
1006
989
  */
1007
990
  readonly NO_PAGE: "no_page";
1008
991
  }>>;
1009
992
  }, "strip", z.ZodTypeAny, {
1010
993
  ok: boolean;
1011
- stack?: string | undefined;
1012
994
  reason?: string | undefined;
995
+ stack?: string | undefined;
1013
996
  mcpRegistered?: boolean | undefined;
1014
997
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
1015
998
  }, {
1016
999
  ok: boolean;
1017
- stack?: string | undefined;
1018
1000
  reason?: string | undefined;
1001
+ stack?: string | undefined;
1019
1002
  mcpRegistered?: boolean | undefined;
1020
1003
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
1021
1004
  }>;
@@ -1049,8 +1032,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1049
1032
  /** First-ever run on this machine — powers install count + the new-user curve. */
1050
1033
  readonly RETICLE_INSTALLED: "reticle_installed";
1051
1034
  /**
1052
- * A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read we
1053
- * have on human intent (`verify` and `gate` mean something very different from `status`).
1035
+ * A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read on
1036
+ * human intent (`verify` and `gate` mean something very different from `status`).
1054
1037
  *
1055
1038
  * Explicitly NOT emitted for the internal `_daemon` spawn: `reticle mcp` re-runs its own binary to
1056
1039
  * start the daemon, so counting that child inflated the old `invoke` metric ~2x — and worst on
@@ -1069,20 +1052,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1069
1052
  * A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
1070
1053
  * `final: false`.
1071
1054
  *
1072
- * It used to be emitted AS `daemon_stopped`, which made an event named for an exit fire while the
1073
- * process was alive. Measured over one day: 98 `daemon_stopped` events were 73 real exits plus 25
1074
- * flushes, so anything counting sessions over-stated by 34% — and worse, the two populations are
1075
- * opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
1076
- * served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
1077
- * the raw event therefore describes active sessions at one end and abandoned ones at the other.
1055
+ * Separate from DAEMON_STOPPED because the two populations are OPPOSITES: a daemon that served a
1056
+ * tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
1057
+ * an exit's name therefore describes active sessions at one end and abandoned ones at the other.
1078
1058
  *
1079
1059
  * Count sessions with DAEMON_STOPPED. Sum work with both.
1080
1060
  */
1081
1061
  readonly SESSION_PROGRESS: "session_progress";
1082
1062
  /**
1083
- * A verification produced a verdict. The product's reason to exist, and the one metric an investor
1084
- * should be shown: not "tools were called" but "an app was actually verified, and here is how often
1085
- * that caught something a green test would have missed".
1063
+ * A verification produced a verdict — an app was actually verified, rather than merely that tools
1064
+ * were called.
1086
1065
  */
1087
1066
  readonly VERIFICATION_COMPLETED: "verification_completed";
1088
1067
  /**
@@ -1096,14 +1075,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1096
1075
  /** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
1097
1076
  readonly RUNTIME_CRASHED: "runtime_crashed";
1098
1077
  /**
1099
- * Someone told us something went wrong (or right). UNLIKE every other kind, this one carries
1078
+ * Somebody reported that something went wrong (or right). UNLIKE every other kind, this one carries
1100
1079
  * author-written free text — which is exactly why it is never emitted passively: it exists only
1101
1080
  * because an agent called `reticle_feedback` or a human ran `reticle feedback`. See
1102
1081
  * `FeedbackSchema` for the consent/redaction contract.
1103
1082
  */
1104
1083
  readonly FEEDBACK_SUBMITTED: "feedback_submitted";
1105
1084
  /**
1106
- * Someone chose to tell us who they are. Like `feedback_submitted`, this exists ONLY because a
1085
+ * Somebody chose to say who they are. Like `feedback_submitted`, this exists ONLY because a
1107
1086
  * human ran a command — Reticle never infers an identity from a git remote, an email in git
1108
1087
  * config, or anything else. See `identify.ts` for why that refusal is deliberate.
1109
1088
  */
@@ -1138,18 +1117,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1138
1117
  */
1139
1118
  readonly APP_INSTRUMENTED: "app_instrumented";
1140
1119
  /**
1141
- * The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
1142
- * completely invisible in the field.
1120
+ * The agent LOST its Reticle tools, and nothing else reports it.
1143
1121
  *
1144
1122
  * `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
1145
- * account of an outage went to a local file nobody sends us. So "how often does a real user's MCP
1123
+ * account of an outage goes to a local file nobody uploads. So "how often does a real user's MCP
1146
1124
  * server go down, and does it come back" — the single question the transport has to answer — could
1147
1125
  * not be asked of any dashboard.
1148
1126
  *
1149
1127
  * Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
1150
1128
  * the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
1151
- * per-call `tool` event was already removed here for cost, and one measured afternoon produced 547
1152
- * proxy reconnects — an event per reconnect would bill for the pathology instead of measuring it.
1129
+ * per-call `tool` event was already removed here for cost, and a single dormant proxy can reconnect
1130
+ * hundreds of times — an event per reconnect would bill for the pathology instead of measuring it.
1153
1131
  * The first-outage event answers "what share of sessions lose MCP at all", which is the number
1154
1132
  * that decides whether this is fixed.
1155
1133
  */
@@ -1159,26 +1137,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1159
1137
  * failed on a missing dependency was indistinguishable from a user who never tried.
1160
1138
  */
1161
1139
  readonly INIT_COMPLETED: "init_completed";
1140
+ readonly ONBOARDING_STEP: "onboarding_step";
1162
1141
  /**
1163
1142
  * Reticle found a defect in the app under test.
1164
1143
  *
1165
- * THE metric the product exists to produce. Everything else here measures whether Reticle is used;
1166
- * this measures whether it WORKS — and it is the only number that can honestly be put in front of
1167
- * an investor or published, because it counts outcomes for users rather than activity by them.
1144
+ * Everything else here measures whether Reticle is USED; this measures whether it WORKS, because it
1145
+ * counts outcomes rather than activity.
1168
1146
  *
1169
1147
  * Deliberately a discrete event rather than only a counter: each bug carries its KIND, and the
1170
- * distribution is the interesting part. "We found 4,000 bugs" is a claim; "1,200 of them were
1171
- * greens that lied — a passing assertion sitting on a failed write, which no screenshot and no
1172
- * human watching the screen would have caught" is the argument.
1148
+ * distribution is the interesting part — a passing assertion sitting on a failed write is a
1149
+ * different finding from a console error, and a single count cannot tell them apart.
1173
1150
  */
1174
1151
  readonly BUG_FOUND: "bug_found";
1175
1152
  /**
1176
1153
  * A tool could not do what was asked, and said so.
1177
1154
  *
1178
1155
  * The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
1179
- * throws it away. So the largest cohort in the funnel — the users who connect an agent and never
1180
- * drive — is visible only by subtraction, and the three genuinely different situations behind it
1181
- * (nothing was ever wired here, the app is not running, a session was lost) arrive as one silence.
1156
+ * throws it away. So a connected agent that never drives is visible only by subtraction, and the
1157
+ * three genuinely different situations behind it (nothing was ever wired here, the app is not
1158
+ * running, a session was lost) arrive as one silence.
1182
1159
  *
1183
1160
  * `noSessionErrors` on the session summary counts one of those causes and only at the end of a
1184
1161
  * session, without the tool, without the discriminator, and without whether the agent tried again.
@@ -1196,7 +1173,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1196
1173
  * ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
1197
1174
  *
1198
1175
  * `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
1199
- * cloud agent sandbox — our own gate has landed in the user data with `ci: false`. This is the
1176
+ * cloud agent sandbox, which lands in the data with `ci: false`. This is the
1200
1177
  * second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
1201
1178
  * with no terminal. Never exclude a row because this is set; absent means nothing looked
1202
1179
  * automated, not that a human was present. See automation-hint.ts for the rejected signals.
@@ -1497,7 +1474,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1497
1474
  clientVersions?: Record<string, string> | undefined;
1498
1475
  appConnects?: number | undefined;
1499
1476
  msToFirstApp?: number | undefined;
1500
- endReason?: "verified" | "never_used" | "explored" | "abandoned" | "client_left" | undefined;
1477
+ endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
1501
1478
  feedbackPrompted?: number | undefined;
1502
1479
  errorClasses?: Record<string, number> | undefined;
1503
1480
  errorsRecovered?: number | undefined;
@@ -1562,7 +1539,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1562
1539
  clientVersions?: Record<string, string> | undefined;
1563
1540
  appConnects?: number | undefined;
1564
1541
  msToFirstApp?: number | undefined;
1565
- endReason?: "verified" | "never_used" | "explored" | "abandoned" | "client_left" | undefined;
1542
+ endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
1566
1543
  feedbackPrompted?: number | undefined;
1567
1544
  errorClasses?: Record<string, number> | undefined;
1568
1545
  errorsRecovered?: number | undefined;
@@ -1668,7 +1645,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1668
1645
  passed: z.ZodBoolean;
1669
1646
  /**
1670
1647
  * TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
1671
- * This is the product's whole thesis expressed as one boolean, and the number to put in a deck.
1672
1648
  */
1673
1649
  falseGreenCaught: z.ZodBoolean;
1674
1650
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -1716,8 +1692,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1716
1692
  * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
1717
1693
  */
1718
1694
  reason: z.ZodOptional<z.ZodNativeEnum<{
1695
+ readonly CAPABILITY_ABSENT: "capability-absent";
1719
1696
  readonly INCONCLUSIVE: "inconclusive";
1720
1697
  readonly OBSERVATION_LOST: "observation_lost";
1698
+ readonly WINDOW_CLOSED_EARLY: "window_closed_early";
1721
1699
  readonly ASSERTION_FAILED: "assertion_failed";
1722
1700
  readonly CONTRADICTED: "contradicted";
1723
1701
  readonly ALREADY_TRUE: "already_true";
@@ -1735,12 +1713,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1735
1713
  * WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
1736
1714
  *
1737
1715
  * The three causes belong to three different owners and need three different fixes, and without
1738
- * this they are one bar. The one time we had to answer it the data could not, and the answer
1739
- * turned out to be that our own eviction counter was miscounting.
1716
+ * this they are one bar — and the cause has turned out to be Reticle's own eviction counter
1717
+ * miscounting, which no aggregate could have shown.
1740
1718
  *
1741
1719
  * ONE value, not a list: `losses` can hold several and a multi-value property is not something a
1742
1720
  * dashboard can group by, so the FIRST is sent and the order in the producers is the order of
1743
- * ownership — ours before the page's. Absent on every verdict whose capture was clean.
1721
+ * ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
1744
1722
  */
1745
1723
  uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
1746
1724
  readonly BUFFER_LOSS: "buffer_loss";
@@ -1753,8 +1731,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1753
1731
  via: string;
1754
1732
  passed: boolean;
1755
1733
  falseGreenCaught: boolean;
1734
+ reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1756
1735
  durationMs?: number | undefined;
1757
- reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1758
1736
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1759
1737
  browser?: string | undefined;
1760
1738
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
@@ -1763,8 +1741,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1763
1741
  via: string;
1764
1742
  passed: boolean;
1765
1743
  falseGreenCaught: boolean;
1744
+ reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1766
1745
  durationMs?: number | undefined;
1767
- reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1768
1746
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1769
1747
  browser?: string | undefined;
1770
1748
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
@@ -1801,11 +1779,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1801
1779
  kind: z.ZodString;
1802
1780
  /** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
1803
1781
  errorType: z.ZodOptional<z.ZodString>;
1804
- /** Hash of the type + our own frames. Groups the same crash across every machine. */
1782
+ /** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
1805
1783
  fingerprint: z.ZodOptional<z.ZodString>;
1806
1784
  /**
1807
1785
  * The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
1808
- * replaced by `*`. `no baseline named *` tells us exactly what broke; the flow name that made it
1786
+ * replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
1809
1787
  * specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
1810
1788
  * readable defect.
1811
1789
  */
@@ -1813,7 +1791,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1813
1791
  /**
1814
1792
  * The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
1815
1793
  *
1816
- * This is our own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
1794
+ * This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
1817
1795
  * npm tarball — so there is no privacy question in sending it, and it is the single most useful
1818
1796
  * thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
1819
1797
  * user's application or to node internals are dropped entirely before this is built.
@@ -1826,16 +1804,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1826
1804
  *
1827
1805
  * Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
1828
1806
  * assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
1829
- * NAMES only, from our own fixed vocabulary; no arguments, so nothing the agent typed is in here.
1807
+ * NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
1830
1808
  */
1831
1809
  breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1832
- /** Node major/minor — crashes cluster hard by runtime version and we were not recording it. */
1810
+ /** Node major/minor — crashes cluster hard by runtime version. */
1833
1811
  nodeVersion: z.ZodOptional<z.ZodString>;
1834
1812
  /** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
1835
1813
  arch: z.ZodOptional<z.ZodString>;
1836
1814
  /**
1837
- * The machine at the moment of the crash. "Out of memory" and "our bug" look identical in a stack
1838
- * trace and are completely different problems; this is what tells them apart.
1815
+ * The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
1816
+ * stack trace and are completely different problems; this is what tells them apart.
1839
1817
  */
1840
1818
  machine: z.ZodOptional<z.ZodObject<{
1841
1819
  rssMb: z.ZodNumber;
@@ -1890,8 +1868,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1890
1868
  }, "strip", z.ZodTypeAny, {
1891
1869
  kind: string;
1892
1870
  message?: string | undefined;
1893
- errorType?: string | undefined;
1894
1871
  tool?: string | undefined;
1872
+ errorType?: string | undefined;
1895
1873
  port?: "reticle" | "other" | undefined;
1896
1874
  fingerprint?: string | undefined;
1897
1875
  machine?: {
@@ -1913,8 +1891,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1913
1891
  }, {
1914
1892
  kind: string;
1915
1893
  message?: string | undefined;
1916
- errorType?: string | undefined;
1917
1894
  tool?: string | undefined;
1895
+ errorType?: string | undefined;
1918
1896
  port?: "reticle" | "other" | undefined;
1919
1897
  fingerprint?: string | undefined;
1920
1898
  machine?: {
@@ -1968,9 +1946,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1968
1946
  /**
1969
1947
  * Was an app carrying the SDK already attached to this daemon when the agent arrived.
1970
1948
  *
1971
- * The mirror of `AppInstrumentation.agentAttached`, and the closest thing we have to WHAT THE
1972
- * AGENT SAW. Most clients that attach never call a single tool, and that cohort was reachable only
1973
- * by subtraction — `tool_refused` cannot describe it, because an agent that reads the server
1949
+ * The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
1950
+ * AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
1951
+ * subtraction: `tool_refused` cannot describe it, because an agent that reads the server
1974
1952
  * instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
1975
1953
  *
1976
1954
  * `false` means the handshake happened against a daemon with no app to look at, which is the state
@@ -2026,25 +2004,61 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2026
2004
  /**
2027
2005
  * A dev server with Reticle loaded IS running, and no page dialled.
2028
2006
  *
2029
- * The half of NO_SESSION that used to be invisible, and the one with a completely different fix:
2030
- * the config is right and the process was restarted, so telling this person to restart their dev
2031
- * server is an instruction they have already followed. They need to open the app.
2007
+ * The half of NO_SESSION with a completely different fix: the config is right and the process was
2008
+ * restarted, so telling this person to restart their dev server is an instruction they have
2009
+ * already followed. They need to open the app.
2032
2010
  */
2033
2011
  readonly NO_PAGE: "no_page";
2034
2012
  }>>;
2035
2013
  }, "strip", z.ZodTypeAny, {
2036
2014
  ok: boolean;
2037
- stack?: string | undefined;
2038
2015
  reason?: string | undefined;
2016
+ stack?: string | undefined;
2039
2017
  mcpRegistered?: boolean | undefined;
2040
2018
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2041
2019
  }, {
2042
2020
  ok: boolean;
2043
- stack?: string | undefined;
2044
2021
  reason?: string | undefined;
2022
+ stack?: string | undefined;
2045
2023
  mcpRegistered?: boolean | undefined;
2046
2024
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2047
2025
  }>>;
2026
+ /** Only on `onboarding_step`: one step of install / onboard / first run. */
2027
+ onboarding: z.ZodOptional<z.ZodObject<{
2028
+ phase: z.ZodNativeEnum<{
2029
+ readonly INSTALL: "install";
2030
+ readonly ONBOARD: "onboard";
2031
+ readonly FIRST_RUN: "first_run";
2032
+ }>;
2033
+ step: z.ZodEnum<[string, ...string[]]>;
2034
+ status: z.ZodNativeEnum<{
2035
+ readonly STARTED: "started";
2036
+ readonly COMPLETED: "completed";
2037
+ readonly FAILED: "failed";
2038
+ readonly ABANDONED: "abandoned";
2039
+ readonly SKIPPED: "skipped";
2040
+ }>;
2041
+ elapsedMs: z.ZodOptional<z.ZodNumber>;
2042
+ reason: z.ZodOptional<z.ZodString>;
2043
+ stack: z.ZodOptional<z.ZodString>;
2044
+ unattended: z.ZodOptional<z.ZodBoolean>;
2045
+ }, "strip", z.ZodTypeAny, {
2046
+ status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2047
+ step: string;
2048
+ phase: "install" | "onboard" | "first_run";
2049
+ reason?: string | undefined;
2050
+ stack?: string | undefined;
2051
+ elapsedMs?: number | undefined;
2052
+ unattended?: boolean | undefined;
2053
+ }, {
2054
+ status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2055
+ step: string;
2056
+ phase: "install" | "onboard" | "first_run";
2057
+ reason?: string | undefined;
2058
+ stack?: string | undefined;
2059
+ elapsedMs?: number | undefined;
2060
+ unattended?: boolean | undefined;
2061
+ }>>;
2048
2062
  /** Only on `bug_found`. */
2049
2063
  bug: z.ZodOptional<z.ZodObject<{
2050
2064
  source: z.ZodNativeEnum<{
@@ -2093,7 +2107,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2093
2107
  /**
2094
2108
  * Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
2095
2109
  *
2096
- * Absence and "we looked and could not tell" are different facts, and only one of them is a
2110
+ * Absence and "the evidence could not say" are different facts, and only one of them is a
2097
2111
  * measurement. Count `attribution: 'app'` for defects found in anybody's product; see
2098
2112
  * `BugAttribution` for why `app` needs positive evidence.
2099
2113
  */
@@ -2109,8 +2123,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2109
2123
  *
2110
2124
  * The honest majority, and it must stay a value rather than becoming a gap: a failed
2111
2125
  * `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
2112
- * testid" identically, and an owner invented for it would put a guess into the one number we
2113
- * intend to publish. Exclude it from a defect count; never fold it into `app`.
2126
+ * testid" identically, and an owner invented for it would put a guess into a published number.
2127
+ * Exclude it from a defect count; never fold it into `app`.
2114
2128
  */
2115
2129
  readonly UNCLASSIFIED: "unclassified";
2116
2130
  }>;
@@ -2156,6 +2170,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2156
2170
  readonly OTHER: "other";
2157
2171
  }>;
2158
2172
  noSessionReason: z.ZodOptional<z.ZodNativeEnum<{
2173
+ readonly AUTH_REFUSED: "auth_refused";
2159
2174
  readonly LEASE_EXPIRED: "lease_expired";
2160
2175
  readonly TAB_GONE: "tab_gone";
2161
2176
  readonly APP_NOT_REOPENED: "app_not_reopened";
@@ -2167,15 +2182,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2167
2182
  }>>;
2168
2183
  retried: z.ZodBoolean;
2169
2184
  }, "strip", z.ZodTypeAny, {
2170
- reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2171
2185
  tool: string;
2186
+ reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2172
2187
  retried: boolean;
2173
- noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2188
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2174
2189
  }, {
2175
- reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2176
2190
  tool: string;
2191
+ reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2177
2192
  retried: boolean;
2178
- noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2193
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2179
2194
  }>>;
2180
2195
  /** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
2181
2196
  outage: z.ZodOptional<z.ZodObject<{
@@ -2185,13 +2200,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2185
2200
  /**
2186
2201
  * The link came back on its own, and `attempts` says what it cost.
2187
2202
  *
2188
- * Without it `first` is unfalsifiable. It is emitted at the moment of the drop, when the attempt
2189
- * counter is 1 by construction and the cap keeps any later drop from ever replacing it — so every
2190
- * event in the field carried the same stage and the same attempt count, and neither could carry
2191
- * another. That reads as "reconnection never advances past the first attempt" and it is really
2192
- * "this event is emitted before there is anything to say". `recovered` is the counterpart that
2193
- * makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
2194
- * whose tools never came back.
2203
+ * Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
2204
+ * attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
2205
+ * on its own it can only ever report one stage and one attempt, which reads as "reconnection
2206
+ * never advances" when it really means "emitted before there is anything to say". `first` with no
2207
+ * `recovered` and no `budget_spent` is a session whose tools never came back.
2195
2208
  */
2196
2209
  readonly RECOVERED: "recovered";
2197
2210
  }>;
@@ -2223,10 +2236,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2223
2236
  /**
2224
2237
  * In-flight tool calls this drop actually killed — the only part an agent can FEEL.
2225
2238
  *
2226
- * Without it every drop looks equally bad. In the field almost every outage was
2227
- * `stage: first` with `attempts: 1`** — the stream ended once and the proxy reconnected, which for
2228
- * an agent with nothing in flight is invisible. Reading that 321 as "the agent lost its tools 321
2229
- * times" overstates the problem by roughly the whole number, and buries the one drop that mattered.
2239
+ * Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
2240
+ * — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
2241
+ * invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
2242
+ * whole total, and buries the one drop that mattered.
2230
2243
  *
2231
2244
  * Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
2232
2245
  * worth driving down.
@@ -2288,7 +2301,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2288
2301
  * present on the events that show whether a licensed customer got anywhere.
2289
2302
  *
2290
2303
  * `licenseId` is the signed license id — an opaque uuid that resolves to a company only against the
2291
- * issuance ledger we hold locally, so the analytics backend never learns a customer list. The
2304
+ * issuance ledger held locally, so the analytics backend never learns a customer list. The
2292
2305
  * organisation NAME is deliberately absent: it is free text somebody typed at signing time, and
2293
2306
  * rule 3 is names-never-values.
2294
2307
  *
@@ -2319,7 +2332,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2319
2332
  */
2320
2333
  licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
2321
2334
  }, "strip", z.ZodTypeAny, {
2322
- 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" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "bug_found" | "tool_refused";
2335
+ 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" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused";
2323
2336
  version: string;
2324
2337
  ci: boolean;
2325
2338
  v: 3;
@@ -2327,8 +2340,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2327
2340
  ts: number;
2328
2341
  os: string;
2329
2342
  command?: string | undefined;
2330
- sessionId?: string | undefined;
2331
2343
  projectId?: string | undefined;
2344
+ sessionId?: string | undefined;
2332
2345
  bug?: {
2333
2346
  kind: string;
2334
2347
  source: "replay" | "contradiction" | "crawl" | "assertion";
@@ -2415,7 +2428,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2415
2428
  clientVersions?: Record<string, string> | undefined;
2416
2429
  appConnects?: number | undefined;
2417
2430
  msToFirstApp?: number | undefined;
2418
- endReason?: "verified" | "never_used" | "explored" | "abandoned" | "client_left" | undefined;
2431
+ endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
2419
2432
  feedbackPrompted?: number | undefined;
2420
2433
  errorClasses?: Record<string, number> | undefined;
2421
2434
  errorsRecovered?: number | undefined;
@@ -2455,8 +2468,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2455
2468
  via: string;
2456
2469
  passed: boolean;
2457
2470
  falseGreenCaught: boolean;
2471
+ reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2458
2472
  durationMs?: number | undefined;
2459
- reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2460
2473
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2461
2474
  browser?: string | undefined;
2462
2475
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
@@ -2470,8 +2483,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2470
2483
  crash?: {
2471
2484
  kind: string;
2472
2485
  message?: string | undefined;
2473
- errorType?: string | undefined;
2474
2486
  tool?: string | undefined;
2487
+ errorType?: string | undefined;
2475
2488
  port?: "reticle" | "other" | undefined;
2476
2489
  fingerprint?: string | undefined;
2477
2490
  machine?: {
@@ -2504,16 +2517,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2504
2517
  } | undefined;
2505
2518
  init?: {
2506
2519
  ok: boolean;
2507
- stack?: string | undefined;
2508
2520
  reason?: string | undefined;
2521
+ stack?: string | undefined;
2509
2522
  mcpRegistered?: boolean | undefined;
2510
2523
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2511
2524
  } | undefined;
2525
+ onboarding?: {
2526
+ status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2527
+ step: string;
2528
+ phase: "install" | "onboard" | "first_run";
2529
+ reason?: string | undefined;
2530
+ stack?: string | undefined;
2531
+ elapsedMs?: number | undefined;
2532
+ unattended?: boolean | undefined;
2533
+ } | undefined;
2512
2534
  refusal?: {
2513
- reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2514
2535
  tool: string;
2536
+ reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2515
2537
  retried: boolean;
2516
- noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2538
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2517
2539
  } | undefined;
2518
2540
  outage?: {
2519
2541
  reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
@@ -2530,7 +2552,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2530
2552
  licenseId?: string | undefined;
2531
2553
  licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
2532
2554
  }, {
2533
- 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" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "bug_found" | "tool_refused";
2555
+ 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" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused";
2534
2556
  version: string;
2535
2557
  ci: boolean;
2536
2558
  v: 3;
@@ -2538,8 +2560,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2538
2560
  ts: number;
2539
2561
  os: string;
2540
2562
  command?: string | undefined;
2541
- sessionId?: string | undefined;
2542
2563
  projectId?: string | undefined;
2564
+ sessionId?: string | undefined;
2543
2565
  bug?: {
2544
2566
  kind: string;
2545
2567
  source: "replay" | "contradiction" | "crawl" | "assertion";
@@ -2626,7 +2648,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2626
2648
  clientVersions?: Record<string, string> | undefined;
2627
2649
  appConnects?: number | undefined;
2628
2650
  msToFirstApp?: number | undefined;
2629
- endReason?: "verified" | "never_used" | "explored" | "abandoned" | "client_left" | undefined;
2651
+ endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
2630
2652
  feedbackPrompted?: number | undefined;
2631
2653
  errorClasses?: Record<string, number> | undefined;
2632
2654
  errorsRecovered?: number | undefined;
@@ -2666,8 +2688,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2666
2688
  via: string;
2667
2689
  passed: boolean;
2668
2690
  falseGreenCaught: boolean;
2691
+ reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2669
2692
  durationMs?: number | undefined;
2670
- reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2671
2693
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2672
2694
  browser?: string | undefined;
2673
2695
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
@@ -2681,8 +2703,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2681
2703
  crash?: {
2682
2704
  kind: string;
2683
2705
  message?: string | undefined;
2684
- errorType?: string | undefined;
2685
2706
  tool?: string | undefined;
2707
+ errorType?: string | undefined;
2686
2708
  port?: "reticle" | "other" | undefined;
2687
2709
  fingerprint?: string | undefined;
2688
2710
  machine?: {
@@ -2715,16 +2737,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2715
2737
  } | undefined;
2716
2738
  init?: {
2717
2739
  ok: boolean;
2718
- stack?: string | undefined;
2719
2740
  reason?: string | undefined;
2741
+ stack?: string | undefined;
2720
2742
  mcpRegistered?: boolean | undefined;
2721
2743
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2722
2744
  } | undefined;
2745
+ onboarding?: {
2746
+ status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2747
+ step: string;
2748
+ phase: "install" | "onboard" | "first_run";
2749
+ reason?: string | undefined;
2750
+ stack?: string | undefined;
2751
+ elapsedMs?: number | undefined;
2752
+ unattended?: boolean | undefined;
2753
+ } | undefined;
2723
2754
  refusal?: {
2724
- reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2725
2755
  tool: string;
2756
+ reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2726
2757
  retried: boolean;
2727
- noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2758
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2728
2759
  } | undefined;
2729
2760
  outage?: {
2730
2761
  reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";