@reticlehq/core 2.14.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{artifacts-entry.d.ts → artifacts/artifacts-entry.d.ts} +7 -7
- package/dist/{artifacts-entry.js → artifacts/artifacts-entry.js} +7 -7
- package/dist/artifacts/flow-composition.d.ts +30 -0
- package/dist/artifacts/flow-composition.js +19 -0
- package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +99 -3
- package/dist/{flow-constants.js → artifacts/flow-constants.js} +108 -4
- package/dist/artifacts/flow-mutation-target.d.ts +39 -0
- package/dist/artifacts/flow-mutation-target.js +89 -0
- package/dist/artifacts/flow-order.d.ts +30 -0
- package/dist/artifacts/flow-order.js +49 -0
- package/dist/artifacts/flow-select.d.ts +56 -0
- package/dist/artifacts/flow-select.js +56 -0
- package/dist/artifacts/flow-step-tool.d.ts +31 -0
- package/dist/artifacts/flow-step-tool.js +31 -0
- package/dist/artifacts/flow-types.d.ts +3736 -0
- package/dist/artifacts/flow-types.js +463 -0
- package/dist/artifacts/flow-unreached.d.ts +12 -0
- package/dist/artifacts/flow-unreached.js +24 -0
- package/dist/{impact.d.ts → artifacts/impact.d.ts} +271 -103
- package/dist/{impact.js → artifacts/impact.js} +75 -5
- package/dist/artifacts/journal.d.ts +218 -0
- package/dist/artifacts/journal.js +130 -0
- package/dist/artifacts/step-effect.d.ts +29 -0
- package/dist/artifacts/step-effect.js +28 -0
- package/dist/hooks/hook-events.d.ts +311 -0
- package/dist/hooks/hook-events.js +127 -0
- package/dist/hooks/hooks-entry.d.ts +9 -0
- package/dist/hooks/hooks-entry.js +9 -0
- package/dist/identity/brand.d.ts +102 -0
- package/dist/{brand.js → identity/brand.js} +7 -0
- package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
- package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
- package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
- package/dist/{document-identity.js → identity/document-identity.js} +4 -5
- package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
- package/dist/{source-constants.js → identity/source-constants.js} +4 -4
- package/dist/index.d.ts +57 -43
- package/dist/index.js +66 -45
- package/dist/onboarding.d.ts +114 -0
- package/dist/onboarding.js +141 -0
- package/dist/realm/registry.d.ts +212 -0
- package/dist/realm/registry.js +302 -0
- package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +6 -7
- package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
- package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
- package/dist/{project-registry.js → registry/project-registry.js} +5 -5
- package/dist/schema/command-name.json +31 -0
- package/dist/schema/event-payloads.json +795 -0
- package/dist/schema/hello-message.json +70 -2
- package/dist/schema/reticle-message.json +70 -2
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +15 -16
- package/dist/telemetry-feedback.js +11 -12
- package/dist/telemetry-license.d.ts +1 -1
- package/dist/telemetry-license.js +1 -1
- package/dist/telemetry-refusal.d.ts +11 -11
- package/dist/telemetry-refusal.js +7 -8
- package/dist/telemetry-session.d.ts +51 -59
- package/dist/telemetry-session.js +47 -55
- package/dist/telemetry.d.ts +306 -222
- package/dist/telemetry.js +112 -99
- package/dist/tour-entry.d.ts +10 -0
- package/dist/tour-entry.js +10 -0
- package/dist/tour.d.ts +125 -0
- package/dist/tour.js +165 -0
- package/dist/{consequence.d.ts → verdict/consequence.d.ts} +32 -15
- package/dist/{consequence.js → verdict/consequence.js} +9 -31
- package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
- package/dist/{findings.d.ts → verdict/findings.d.ts} +86 -39
- package/dist/{findings.js → verdict/findings.js} +103 -49
- package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +7 -14
- package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +7 -15
- package/dist/{intent.d.ts → verdict/intent.d.ts} +35 -46
- package/dist/{intent.js → verdict/intent.js} +11 -22
- package/dist/verdict/revision.d.ts +44 -0
- package/dist/verdict/revision.js +53 -0
- package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
- package/dist/{run-context.js → verdict/run-context.js} +15 -36
- package/dist/{security.js → verdict/security.js} +12 -21
- package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +381 -105
- package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
- package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +34 -13
- package/dist/{verified-constants.js → verdict/verified-constants.js} +34 -13
- package/dist/{verify-progress.d.ts → verdict/verify-progress.d.ts} +18 -22
- package/dist/{verify-progress.js → verdict/verify-progress.js} +6 -10
- package/dist/wire/channel.d.ts +46 -0
- package/dist/wire/channel.js +95 -0
- package/dist/{constants.d.ts → wire/constants/constants.d.ts} +179 -28
- package/dist/{constants.js → wire/constants/constants.js} +199 -28
- package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +23 -2
- package/dist/{session-constants.js → wire/constants/session-constants.js} +23 -2
- package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
- package/dist/{event-classification.js → wire/event-classification.js} +1 -1
- package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +72 -13
- package/dist/{event-payloads.js → wire/event-payloads.js} +23 -3
- package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
- package/dist/{event-priority.js → wire/event-priority.js} +2 -5
- package/dist/{global-press.js → wire/global-press.js} +1 -1
- package/dist/{messages.d.ts → wire/messages.d.ts} +240 -48
- package/dist/{messages.js → wire/messages.js} +68 -5
- package/dist/wire/narrow.d.ts +39 -0
- package/dist/wire/narrow.js +45 -0
- package/dist/{net.d.ts → wire/net.d.ts} +36 -13
- package/dist/{net.js → wire/net.js} +36 -13
- package/dist/wire/platform.d.ts +37 -0
- package/dist/wire/platform.js +36 -0
- package/dist/{redaction.js → wire/redaction.js} +12 -12
- package/dist/wire/snapshot-tree.d.ts +33 -0
- package/dist/wire/snapshot-tree.js +43 -0
- package/dist/wire/tool-names.d.ts +133 -0
- package/dist/wire/tool-names.js +142 -0
- package/dist/{toon.js → wire/toon.js} +1 -1
- package/dist/{types.d.ts → wire/types.d.ts} +77 -76
- package/dist/{types.js → wire/types.js} +4 -3
- package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
- package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
- package/dist/{notices.d.ts → words/notices.d.ts} +8 -12
- package/dist/{notices.js → words/notices.js} +8 -12
- package/package.json +16 -7
- package/dist/brand.d.ts +0 -49
- package/dist/flow-types.d.ts +0 -1711
- package/dist/flow-types.js +0 -247
- package/dist/journal.d.ts +0 -122
- package/dist/journal.js +0 -57
- package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +0 -0
- package/dist/{impact-savings.js → artifacts/impact-savings.js} +0 -0
- package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
- package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
- package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
- package/dist/{project-id.js → identity/project-id.js} +0 -0
- package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
- package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
- package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
- package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
- package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
- package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
- package/dist/{global-press.d.ts → wire/global-press.d.ts} +0 -0
- package/dist/{redaction.d.ts → wire/redaction.d.ts} +0 -0
- package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
- package/dist/{state-select.js → wire/state-select.js} +0 -0
- package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
- package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
- package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
- package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
- package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
- package/dist/{upgrade.d.ts → words/upgrade.d.ts} +2 -2
- /package/dist/{upgrade.js → words/upgrade.js} +0 -0
package/dist/telemetry.d.ts
CHANGED
|
@@ -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.
|
|
5
|
-
*
|
|
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.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
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
|
|
40
|
-
*
|
|
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
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
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
|
|
71
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
139
|
-
*
|
|
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
|
-
*
|
|
153
|
-
*
|
|
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
|
|
158
|
-
*
|
|
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
|
|
167
|
-
*
|
|
168
|
-
*
|
|
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
|
|
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
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
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";
|
|
@@ -228,17 +225,40 @@ export declare const BrowserLaunchKind: {
|
|
|
228
225
|
readonly POOLED: "pooled";
|
|
229
226
|
};
|
|
230
227
|
export type BrowserLaunchKind = (typeof BrowserLaunchKind)[keyof typeof BrowserLaunchKind];
|
|
228
|
+
/**
|
|
229
|
+
* WHO drove the verdict.
|
|
230
|
+
*
|
|
231
|
+
* `actor` already splits a typed `reticle` command from an agent's own tool call, and both halves of
|
|
232
|
+
* an explore drive land on the agent side of that line: a model inside the daemon drives through the
|
|
233
|
+
* same chokepoint, under the same session, and its verdicts were indistinguishable from the ones the
|
|
234
|
+
* user's own agent earned. That matters for every rate computed per session — a session whose only
|
|
235
|
+
* verification came from a drive we ran on the user's behalf is not a session that verified.
|
|
236
|
+
*
|
|
237
|
+
* Absent means the agent's own call, which is the overwhelming majority: a value on every row would
|
|
238
|
+
* cost a field to say the ordinary thing.
|
|
239
|
+
*/
|
|
240
|
+
export declare const VerificationDriver: {
|
|
241
|
+
/** A model inside the daemon drove this, on the user's behalf. */
|
|
242
|
+
readonly HARNESS: "harness";
|
|
243
|
+
};
|
|
244
|
+
export type VerificationDriver = (typeof VerificationDriver)[keyof typeof VerificationDriver];
|
|
231
245
|
/** The outcome of one verification. `verified` is Reticle's own honesty grade, not merely pass/fail. */
|
|
232
246
|
export declare const VerificationSchema: z.ZodObject<{
|
|
233
247
|
/** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
|
|
234
248
|
via: z.ZodString;
|
|
235
|
-
/**
|
|
249
|
+
/**
|
|
250
|
+
* `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
|
|
251
|
+
*
|
|
252
|
+
* FOUR values, not three. This comment said three for long enough that a dashboard written from it
|
|
253
|
+
* silently drops the bucket that is most actionable: `no-fault` means the window was clean and
|
|
254
|
+
* nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
|
|
255
|
+
* app problem, and `unknown` means the evidence could not decide.
|
|
256
|
+
*/
|
|
236
257
|
verified: z.ZodString;
|
|
237
258
|
/** Did the underlying assertion pass? Distinct from `verified` on purpose. */
|
|
238
259
|
passed: z.ZodBoolean;
|
|
239
260
|
/**
|
|
240
261
|
* 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
262
|
*/
|
|
243
263
|
falseGreenCaught: z.ZodBoolean;
|
|
244
264
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -286,6 +306,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
286
306
|
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
287
307
|
*/
|
|
288
308
|
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
309
|
+
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
289
310
|
readonly INCONCLUSIVE: "inconclusive";
|
|
290
311
|
readonly OBSERVATION_LOST: "observation_lost";
|
|
291
312
|
readonly WINDOW_CLOSED_EARLY: "window_closed_early";
|
|
@@ -306,39 +327,50 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
306
327
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
307
328
|
*
|
|
308
329
|
* The three causes belong to three different owners and need three different fixes, and without
|
|
309
|
-
* this they are one bar
|
|
310
|
-
*
|
|
330
|
+
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
331
|
+
* miscounting, which no aggregate could have shown.
|
|
311
332
|
*
|
|
312
333
|
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
313
334
|
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
314
|
-
* ownership —
|
|
335
|
+
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
315
336
|
*/
|
|
316
337
|
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
317
338
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
318
339
|
readonly TRANSPORT_GAP: "transport_gap";
|
|
319
340
|
readonly BLIND_SPOT: "blind_spot";
|
|
341
|
+
readonly JOURNAL_LOSS: "journal_loss";
|
|
320
342
|
readonly OTHER: "other";
|
|
321
343
|
}>>;
|
|
344
|
+
/**
|
|
345
|
+
* Set when one of our OWN drives produced this verdict rather than the user's agent — see
|
|
346
|
+
* `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
|
|
347
|
+
*/
|
|
348
|
+
driven: z.ZodOptional<z.ZodNativeEnum<{
|
|
349
|
+
/** A model inside the daemon drove this, on the user's behalf. */
|
|
350
|
+
readonly HARNESS: "harness";
|
|
351
|
+
}>>;
|
|
322
352
|
}, "strip", z.ZodTypeAny, {
|
|
323
353
|
verified: string;
|
|
324
354
|
via: string;
|
|
325
355
|
passed: boolean;
|
|
326
356
|
falseGreenCaught: boolean;
|
|
327
|
-
reason?: "
|
|
357
|
+
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;
|
|
328
358
|
durationMs?: number | undefined;
|
|
329
359
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
360
|
+
driven?: "harness" | undefined;
|
|
330
361
|
browser?: string | undefined;
|
|
331
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
362
|
+
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
332
363
|
}, {
|
|
333
364
|
verified: string;
|
|
334
365
|
via: string;
|
|
335
366
|
passed: boolean;
|
|
336
367
|
falseGreenCaught: boolean;
|
|
337
|
-
reason?: "
|
|
368
|
+
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;
|
|
338
369
|
durationMs?: number | undefined;
|
|
339
370
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
371
|
+
driven?: "harness" | undefined;
|
|
340
372
|
browser?: string | undefined;
|
|
341
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
373
|
+
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
342
374
|
}>;
|
|
343
375
|
export type Verification = z.infer<typeof VerificationSchema>;
|
|
344
376
|
/** Which way the installed version moved, and between which versions. */
|
|
@@ -357,30 +389,28 @@ export declare const VersionChangeSchema: z.ZodObject<{
|
|
|
357
389
|
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
358
390
|
direction: z.ZodString;
|
|
359
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
direction: string;
|
|
360
393
|
from: string;
|
|
361
394
|
to: string;
|
|
362
|
-
direction: string;
|
|
363
395
|
nudged?: boolean | undefined;
|
|
364
396
|
}, {
|
|
397
|
+
direction: string;
|
|
365
398
|
from: string;
|
|
366
399
|
to: string;
|
|
367
|
-
direction: string;
|
|
368
400
|
nudged?: boolean | undefined;
|
|
369
401
|
}>;
|
|
370
402
|
export type VersionChange = z.infer<typeof VersionChangeSchema>;
|
|
371
403
|
/**
|
|
372
404
|
* A crash, with enough detail to actually diagnose it.
|
|
373
405
|
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
* give the hash a meaning, while keeping the line that matters: our code and our failure, never the
|
|
378
|
-
* user's code and never their data.
|
|
406
|
+
* A fingerprint alone makes crashes RANKABLE and completely UNDIAGNOSABLE — a group key with no
|
|
407
|
+
* dictionary. Everything below exists to give the hash a meaning, while keeping the line that
|
|
408
|
+
* matters: Reticle's own code and its own failure, never the user's code and never their data.
|
|
379
409
|
*/
|
|
380
410
|
/**
|
|
381
411
|
* Whether a failed connection was aimed at a port Reticle itself uses.
|
|
382
412
|
*
|
|
383
|
-
* An enum rather than the number, because the number is the reporter's and the answer is
|
|
413
|
+
* An enum rather than the number, because the number is the reporter's and the answer is Reticle's: all
|
|
384
414
|
* anyone needs to know is whose problem it is. Refused on a Reticle port is a lifecycle problem —
|
|
385
415
|
* a daemon that is not up; refused anywhere else is somebody else's service.
|
|
386
416
|
*/
|
|
@@ -394,11 +424,11 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
394
424
|
kind: z.ZodString;
|
|
395
425
|
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
396
426
|
errorType: z.ZodOptional<z.ZodString>;
|
|
397
|
-
/** Hash of the type +
|
|
427
|
+
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
398
428
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
399
429
|
/**
|
|
400
430
|
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
401
|
-
* replaced by `*`. `no baseline named *`
|
|
431
|
+
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
402
432
|
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
403
433
|
* readable defect.
|
|
404
434
|
*/
|
|
@@ -406,7 +436,7 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
406
436
|
/**
|
|
407
437
|
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
408
438
|
*
|
|
409
|
-
* This is
|
|
439
|
+
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
410
440
|
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
411
441
|
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
412
442
|
* user's application or to node internals are dropped entirely before this is built.
|
|
@@ -419,16 +449,16 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
419
449
|
*
|
|
420
450
|
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
421
451
|
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
422
|
-
* NAMES only, from
|
|
452
|
+
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
423
453
|
*/
|
|
424
454
|
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
425
|
-
/** Node major/minor — crashes cluster hard by runtime version
|
|
455
|
+
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
426
456
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
427
457
|
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
428
458
|
arch: z.ZodOptional<z.ZodString>;
|
|
429
459
|
/**
|
|
430
|
-
* The machine at the moment of the crash. "Out of memory" and
|
|
431
|
-
* trace and are completely different problems; this is what tells them apart.
|
|
460
|
+
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
461
|
+
* stack trace and are completely different problems; this is what tells them apart.
|
|
432
462
|
*/
|
|
433
463
|
machine: z.ZodOptional<z.ZodObject<{
|
|
434
464
|
rssMb: z.ZodNumber;
|
|
@@ -482,10 +512,10 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
482
512
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
483
513
|
}, "strip", z.ZodTypeAny, {
|
|
484
514
|
kind: string;
|
|
485
|
-
port?: "other" | "reticle" | undefined;
|
|
486
515
|
message?: string | undefined;
|
|
487
516
|
tool?: string | undefined;
|
|
488
517
|
errorType?: string | undefined;
|
|
518
|
+
port?: "reticle" | "other" | undefined;
|
|
489
519
|
fingerprint?: string | undefined;
|
|
490
520
|
machine?: {
|
|
491
521
|
rssMb: number;
|
|
@@ -505,10 +535,10 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
505
535
|
internalFrame?: string | undefined;
|
|
506
536
|
}, {
|
|
507
537
|
kind: string;
|
|
508
|
-
port?: "other" | "reticle" | undefined;
|
|
509
538
|
message?: string | undefined;
|
|
510
539
|
tool?: string | undefined;
|
|
511
540
|
errorType?: string | undefined;
|
|
541
|
+
port?: "reticle" | "other" | undefined;
|
|
512
542
|
fingerprint?: string | undefined;
|
|
513
543
|
machine?: {
|
|
514
544
|
rssMb: number;
|
|
@@ -548,15 +578,8 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
|
548
578
|
/**
|
|
549
579
|
* WHOSE fault the defect was.
|
|
550
580
|
*
|
|
551
|
-
* `bugsFound` is
|
|
552
|
-
*
|
|
553
|
-
* `attribution: 'app'` was a misattribution, so a single session would have published defects
|
|
554
|
-
* against a customer's product that did not exist. A metric confidently wrong about whose fault
|
|
555
|
-
* something is, is worse than no metric — it is the number a founder steers on, and it points at the
|
|
556
|
-
* customer. It was removed, and an ABSENT field then made "nobody classified this" and "we looked
|
|
557
|
-
* and could not tell" the same fact, which is the other half of the same problem.
|
|
558
|
-
*
|
|
559
|
-
* So it is back with two rules, and both are what the earlier versions lacked:
|
|
581
|
+
* `bugsFound` is not publishable without this, and a count confidently wrong about whose fault
|
|
582
|
+
* something is, is worse than no count: it points at the customer. Two rules keep it honest:
|
|
560
583
|
*
|
|
561
584
|
* 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
|
|
562
585
|
* path that forgot; a value means the classifier ran and declined.
|
|
@@ -564,8 +587,7 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
|
564
587
|
* failed, a signal the app fired carrying data that disagrees with its own screen, a written
|
|
565
588
|
* field echoed back changed. Never "nothing else explained it". Core already draws exactly this
|
|
566
589
|
* line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
|
|
567
|
-
* than a second judgement invented
|
|
568
|
-
* an absence-derived kind, so this rule produces zero of them on the same data.
|
|
590
|
+
* than a second judgement invented beside it.
|
|
569
591
|
*/
|
|
570
592
|
export declare const BugAttribution: {
|
|
571
593
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
@@ -579,8 +601,8 @@ export declare const BugAttribution: {
|
|
|
579
601
|
*
|
|
580
602
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
581
603
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
582
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
583
|
-
*
|
|
604
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
605
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
584
606
|
*/
|
|
585
607
|
readonly UNCLASSIFIED: "unclassified";
|
|
586
608
|
};
|
|
@@ -590,7 +612,7 @@ export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution
|
|
|
590
612
|
*
|
|
591
613
|
* `kind` is the taxonomy value from `findings.ts` — `signal-contradicted`, `console-error`,
|
|
592
614
|
* `duplicate-request` and so on. Never a selector, a URL, an element, or any description of the
|
|
593
|
-
* user's app
|
|
615
|
+
* user's app — THAT a class of defect was found, never WHAT it was in.
|
|
594
616
|
*/
|
|
595
617
|
export declare const BugFoundSchema: z.ZodObject<{
|
|
596
618
|
source: z.ZodNativeEnum<{
|
|
@@ -639,7 +661,7 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
639
661
|
/**
|
|
640
662
|
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
641
663
|
*
|
|
642
|
-
* Absence and "
|
|
664
|
+
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
643
665
|
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
644
666
|
* `BugAttribution` for why `app` needs positive evidence.
|
|
645
667
|
*/
|
|
@@ -655,8 +677,8 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
655
677
|
*
|
|
656
678
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
657
679
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
658
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
659
|
-
*
|
|
680
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
681
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
660
682
|
*/
|
|
661
683
|
readonly UNCLASSIFIED: "unclassified";
|
|
662
684
|
}>;
|
|
@@ -674,16 +696,16 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
674
696
|
*/
|
|
675
697
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
676
698
|
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
678
699
|
kind: string;
|
|
700
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
679
701
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
680
702
|
falseGreen: boolean;
|
|
681
703
|
repeat: boolean;
|
|
682
704
|
tool?: string | undefined;
|
|
683
705
|
fingerprint?: string | undefined;
|
|
684
706
|
}, {
|
|
685
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
686
707
|
kind: string;
|
|
708
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
687
709
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
688
710
|
falseGreen: boolean;
|
|
689
711
|
repeat: boolean;
|
|
@@ -706,9 +728,9 @@ export declare const McpConnectionSchema: z.ZodObject<{
|
|
|
706
728
|
/**
|
|
707
729
|
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
708
730
|
*
|
|
709
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest
|
|
710
|
-
* AGENT SAW.
|
|
711
|
-
*
|
|
731
|
+
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
732
|
+
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
733
|
+
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
712
734
|
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
713
735
|
*
|
|
714
736
|
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
@@ -768,13 +790,11 @@ export declare const OutageStage: {
|
|
|
768
790
|
/**
|
|
769
791
|
* The link came back on its own, and `attempts` says what it cost.
|
|
770
792
|
*
|
|
771
|
-
* Without it `first` is unfalsifiable.
|
|
772
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
773
|
-
*
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
777
|
-
* whose tools never came back.
|
|
793
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
794
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
795
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
796
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
797
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
778
798
|
*/
|
|
779
799
|
readonly RECOVERED: "recovered";
|
|
780
800
|
};
|
|
@@ -824,13 +844,11 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
824
844
|
/**
|
|
825
845
|
* The link came back on its own, and `attempts` says what it cost.
|
|
826
846
|
*
|
|
827
|
-
* Without it `first` is unfalsifiable.
|
|
828
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
833
|
-
* whose tools never came back.
|
|
847
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
848
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
849
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
850
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
851
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
834
852
|
*/
|
|
835
853
|
readonly RECOVERED: "recovered";
|
|
836
854
|
}>;
|
|
@@ -862,10 +880,10 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
862
880
|
/**
|
|
863
881
|
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
864
882
|
*
|
|
865
|
-
* Without it every drop looks equally bad.
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
*
|
|
883
|
+
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
884
|
+
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
885
|
+
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
886
|
+
* whole total, and buries the one drop that mattered.
|
|
869
887
|
*
|
|
870
888
|
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
871
889
|
* worth driving down.
|
|
@@ -887,8 +905,7 @@ export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
|
887
905
|
* WHICH published route brought this install in.
|
|
888
906
|
*
|
|
889
907
|
* Four routes ship at once — the SKILL.md paste URL, an `npx skills add` package, a Claude Code
|
|
890
|
-
* plugin, and docs.reticle.sh — and
|
|
891
|
-
* decision about where to spend effort on distribution is therefore made blind.
|
|
908
|
+
* plugin, and docs.reticle.sh — and nothing else distinguishes them.
|
|
892
909
|
*
|
|
893
910
|
* The value is NEVER inferred. It is read from a single explicit marker (`RETICLE_INSTALL_SOURCE`)
|
|
894
911
|
* that a channel sets on itself, narrowed against this list, and anything else reports `UNKNOWN`.
|
|
@@ -897,7 +914,7 @@ export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
|
897
914
|
* a measurement. Read a small `unknown` as a marker that spread, never as success.
|
|
898
915
|
*
|
|
899
916
|
* What the marker CANNOT be derived from, and why nothing here tries:
|
|
900
|
-
* - `npm_config_user_agent` says npm/pnpm ran
|
|
917
|
+
* - `npm_config_user_agent` says npm/pnpm ran the command. Every one of these routes runs through npx, so it
|
|
901
918
|
* separates none of them.
|
|
902
919
|
* - The presence of `.claude-plugin/` or an installed skill directory says a plugin or a skill is
|
|
903
920
|
* present in the repo, not that it is the thing that ran `init` — and both are present at once on
|
|
@@ -961,9 +978,9 @@ export declare const InitConfirmation: {
|
|
|
961
978
|
/**
|
|
962
979
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
963
980
|
*
|
|
964
|
-
* The half of NO_SESSION
|
|
965
|
-
*
|
|
966
|
-
*
|
|
981
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
982
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
983
|
+
* already followed. They need to open the app.
|
|
967
984
|
*/
|
|
968
985
|
readonly NO_PAGE: "no_page";
|
|
969
986
|
};
|
|
@@ -1001,9 +1018,9 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
1001
1018
|
/**
|
|
1002
1019
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
1003
1020
|
*
|
|
1004
|
-
* The half of NO_SESSION
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
1021
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
1022
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
1023
|
+
* already followed. They need to open the app.
|
|
1007
1024
|
*/
|
|
1008
1025
|
readonly NO_PAGE: "no_page";
|
|
1009
1026
|
}>>;
|
|
@@ -1050,8 +1067,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1050
1067
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
1051
1068
|
readonly RETICLE_INSTALLED: "reticle_installed";
|
|
1052
1069
|
/**
|
|
1053
|
-
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read
|
|
1054
|
-
*
|
|
1070
|
+
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read on
|
|
1071
|
+
* human intent (`verify` and `gate` mean something very different from `status`).
|
|
1055
1072
|
*
|
|
1056
1073
|
* Explicitly NOT emitted for the internal `_daemon` spawn: `reticle mcp` re-runs its own binary to
|
|
1057
1074
|
* start the daemon, so counting that child inflated the old `invoke` metric ~2x — and worst on
|
|
@@ -1070,20 +1087,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1070
1087
|
* A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
|
|
1071
1088
|
* `final: false`.
|
|
1072
1089
|
*
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1076
|
-
* opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
|
|
1077
|
-
* served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
|
|
1078
|
-
* the raw event therefore describes active sessions at one end and abandoned ones at the other.
|
|
1090
|
+
* Separate from DAEMON_STOPPED because the two populations are OPPOSITES: a daemon that served a
|
|
1091
|
+
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
1092
|
+
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
1079
1093
|
*
|
|
1080
1094
|
* Count sessions with DAEMON_STOPPED. Sum work with both.
|
|
1081
1095
|
*/
|
|
1082
1096
|
readonly SESSION_PROGRESS: "session_progress";
|
|
1083
1097
|
/**
|
|
1084
|
-
* A verification produced a verdict
|
|
1085
|
-
*
|
|
1086
|
-
* that caught something a green test would have missed".
|
|
1098
|
+
* A verification produced a verdict — an app was actually verified, rather than merely that tools
|
|
1099
|
+
* were called.
|
|
1087
1100
|
*/
|
|
1088
1101
|
readonly VERIFICATION_COMPLETED: "verification_completed";
|
|
1089
1102
|
/**
|
|
@@ -1097,14 +1110,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1097
1110
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
1098
1111
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
1099
1112
|
/**
|
|
1100
|
-
*
|
|
1113
|
+
* Somebody reported that something went wrong (or right). UNLIKE every other kind, this one carries
|
|
1101
1114
|
* author-written free text — which is exactly why it is never emitted passively: it exists only
|
|
1102
1115
|
* because an agent called `reticle_feedback` or a human ran `reticle feedback`. See
|
|
1103
1116
|
* `FeedbackSchema` for the consent/redaction contract.
|
|
1104
1117
|
*/
|
|
1105
1118
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
1106
1119
|
/**
|
|
1107
|
-
*
|
|
1120
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this exists ONLY because a
|
|
1108
1121
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
1109
1122
|
* config, or anything else. See `identify.ts` for why that refusal is deliberate.
|
|
1110
1123
|
*/
|
|
@@ -1139,18 +1152,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1139
1152
|
*/
|
|
1140
1153
|
readonly APP_INSTRUMENTED: "app_instrumented";
|
|
1141
1154
|
/**
|
|
1142
|
-
* The agent LOST its Reticle tools
|
|
1143
|
-
* completely invisible in the field.
|
|
1155
|
+
* The agent LOST its Reticle tools, and nothing else reports it.
|
|
1144
1156
|
*
|
|
1145
1157
|
* `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
|
|
1146
|
-
* account of an outage
|
|
1158
|
+
* account of an outage goes to a local file nobody uploads. So "how often does a real user's MCP
|
|
1147
1159
|
* server go down, and does it come back" — the single question the transport has to answer — could
|
|
1148
1160
|
* not be asked of any dashboard.
|
|
1149
1161
|
*
|
|
1150
1162
|
* Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
|
|
1151
1163
|
* the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
|
|
1152
|
-
* per-call `tool` event was already removed here for cost, and
|
|
1153
|
-
*
|
|
1164
|
+
* per-call `tool` event was already removed here for cost, and a single dormant proxy can reconnect
|
|
1165
|
+
* hundreds of times — an event per reconnect would bill for the pathology instead of measuring it.
|
|
1154
1166
|
* The first-outage event answers "what share of sessions lose MCP at all", which is the number
|
|
1155
1167
|
* that decides whether this is fixed.
|
|
1156
1168
|
*/
|
|
@@ -1160,26 +1172,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1160
1172
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
1161
1173
|
*/
|
|
1162
1174
|
readonly INIT_COMPLETED: "init_completed";
|
|
1175
|
+
readonly ONBOARDING_STEP: "onboarding_step";
|
|
1163
1176
|
/**
|
|
1164
1177
|
* Reticle found a defect in the app under test.
|
|
1165
1178
|
*
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
* an investor or published, because it counts outcomes for users rather than activity by them.
|
|
1179
|
+
* Everything else here measures whether Reticle is USED; this measures whether it WORKS, because it
|
|
1180
|
+
* counts outcomes rather than activity.
|
|
1169
1181
|
*
|
|
1170
1182
|
* Deliberately a discrete event rather than only a counter: each bug carries its KIND, and the
|
|
1171
|
-
* distribution is the interesting part
|
|
1172
|
-
*
|
|
1173
|
-
* human watching the screen would have caught" is the argument.
|
|
1183
|
+
* distribution is the interesting part — a passing assertion sitting on a failed write is a
|
|
1184
|
+
* different finding from a console error, and a single count cannot tell them apart.
|
|
1174
1185
|
*/
|
|
1175
1186
|
readonly BUG_FOUND: "bug_found";
|
|
1176
1187
|
/**
|
|
1177
1188
|
* A tool could not do what was asked, and said so.
|
|
1178
1189
|
*
|
|
1179
1190
|
* The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
|
|
1180
|
-
* throws it away. So
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1191
|
+
* throws it away. So a connected agent that never drives is visible only by subtraction, and the
|
|
1192
|
+
* three genuinely different situations behind it (nothing was ever wired here, the app is not
|
|
1193
|
+
* running, a session was lost) arrive as one silence.
|
|
1183
1194
|
*
|
|
1184
1195
|
* `noSessionErrors` on the session summary counts one of those causes and only at the end of a
|
|
1185
1196
|
* session, without the tool, without the discriminator, and without whether the agent tried again.
|
|
@@ -1197,7 +1208,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1197
1208
|
* ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
|
|
1198
1209
|
*
|
|
1199
1210
|
* `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
|
|
1200
|
-
* cloud agent sandbox
|
|
1211
|
+
* cloud agent sandbox, which lands in the data with `ci: false`. This is the
|
|
1201
1212
|
* second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
|
|
1202
1213
|
* with no terminal. Never exclude a row because this is set; absent means nothing looked
|
|
1203
1214
|
* automated, not that a human was present. See automation-hint.ts for the rejected signals.
|
|
@@ -1279,9 +1290,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1279
1290
|
readonly PROJECT: "project";
|
|
1280
1291
|
}>>;
|
|
1281
1292
|
}, "strip", z.ZodTypeAny, {
|
|
1282
|
-
source: "agent" | "human";
|
|
1283
1293
|
text: string;
|
|
1284
1294
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1295
|
+
source: "agent" | "human";
|
|
1285
1296
|
impact?: string | undefined;
|
|
1286
1297
|
trace?: string | undefined;
|
|
1287
1298
|
rating?: number | undefined;
|
|
@@ -1297,9 +1308,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1297
1308
|
client?: string | undefined;
|
|
1298
1309
|
mcpScope?: "user" | "project" | undefined;
|
|
1299
1310
|
}, {
|
|
1300
|
-
source: "agent" | "human";
|
|
1301
1311
|
text: string;
|
|
1302
1312
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1313
|
+
source: "agent" | "human";
|
|
1303
1314
|
impact?: string | undefined;
|
|
1304
1315
|
trace?: string | undefined;
|
|
1305
1316
|
rating?: number | undefined;
|
|
@@ -1498,7 +1509,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1498
1509
|
clientVersions?: Record<string, string> | undefined;
|
|
1499
1510
|
appConnects?: number | undefined;
|
|
1500
1511
|
msToFirstApp?: number | undefined;
|
|
1501
|
-
endReason?: "verified" | "
|
|
1512
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1502
1513
|
feedbackPrompted?: number | undefined;
|
|
1503
1514
|
errorClasses?: Record<string, number> | undefined;
|
|
1504
1515
|
errorsRecovered?: number | undefined;
|
|
@@ -1506,7 +1517,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1506
1517
|
endedWithVerdict?: boolean | undefined;
|
|
1507
1518
|
updateNudged?: boolean | undefined;
|
|
1508
1519
|
updateOffered?: string | undefined;
|
|
1509
|
-
exit?: "
|
|
1520
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1510
1521
|
}, {
|
|
1511
1522
|
durationMs: number;
|
|
1512
1523
|
toolCalls: number;
|
|
@@ -1563,7 +1574,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1563
1574
|
clientVersions?: Record<string, string> | undefined;
|
|
1564
1575
|
appConnects?: number | undefined;
|
|
1565
1576
|
msToFirstApp?: number | undefined;
|
|
1566
|
-
endReason?: "verified" | "
|
|
1577
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1567
1578
|
feedbackPrompted?: number | undefined;
|
|
1568
1579
|
errorClasses?: Record<string, number> | undefined;
|
|
1569
1580
|
errorsRecovered?: number | undefined;
|
|
@@ -1571,7 +1582,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1571
1582
|
endedWithVerdict?: boolean | undefined;
|
|
1572
1583
|
updateNudged?: boolean | undefined;
|
|
1573
1584
|
updateOffered?: string | undefined;
|
|
1574
|
-
exit?: "
|
|
1585
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1575
1586
|
}>>;
|
|
1576
1587
|
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
1577
1588
|
project: z.ZodOptional<z.ZodObject<{
|
|
@@ -1663,13 +1674,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1663
1674
|
verification: z.ZodOptional<z.ZodObject<{
|
|
1664
1675
|
/** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
|
|
1665
1676
|
via: z.ZodString;
|
|
1666
|
-
/**
|
|
1677
|
+
/**
|
|
1678
|
+
* `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
|
|
1679
|
+
*
|
|
1680
|
+
* FOUR values, not three. This comment said three for long enough that a dashboard written from it
|
|
1681
|
+
* silently drops the bucket that is most actionable: `no-fault` means the window was clean and
|
|
1682
|
+
* nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
|
|
1683
|
+
* app problem, and `unknown` means the evidence could not decide.
|
|
1684
|
+
*/
|
|
1667
1685
|
verified: z.ZodString;
|
|
1668
1686
|
/** Did the underlying assertion pass? Distinct from `verified` on purpose. */
|
|
1669
1687
|
passed: z.ZodBoolean;
|
|
1670
1688
|
/**
|
|
1671
1689
|
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
1672
|
-
* This is the product's whole thesis expressed as one boolean, and the number to put in a deck.
|
|
1673
1690
|
*/
|
|
1674
1691
|
falseGreenCaught: z.ZodBoolean;
|
|
1675
1692
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1717,6 +1734,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1717
1734
|
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
1718
1735
|
*/
|
|
1719
1736
|
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
1737
|
+
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
1720
1738
|
readonly INCONCLUSIVE: "inconclusive";
|
|
1721
1739
|
readonly OBSERVATION_LOST: "observation_lost";
|
|
1722
1740
|
readonly WINDOW_CLOSED_EARLY: "window_closed_early";
|
|
@@ -1737,39 +1755,50 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1737
1755
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
1738
1756
|
*
|
|
1739
1757
|
* The three causes belong to three different owners and need three different fixes, and without
|
|
1740
|
-
* this they are one bar
|
|
1741
|
-
*
|
|
1758
|
+
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
1759
|
+
* miscounting, which no aggregate could have shown.
|
|
1742
1760
|
*
|
|
1743
1761
|
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
1744
1762
|
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
1745
|
-
* ownership —
|
|
1763
|
+
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
1746
1764
|
*/
|
|
1747
1765
|
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
1748
1766
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
1749
1767
|
readonly TRANSPORT_GAP: "transport_gap";
|
|
1750
1768
|
readonly BLIND_SPOT: "blind_spot";
|
|
1769
|
+
readonly JOURNAL_LOSS: "journal_loss";
|
|
1751
1770
|
readonly OTHER: "other";
|
|
1752
1771
|
}>>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Set when one of our OWN drives produced this verdict rather than the user's agent — see
|
|
1774
|
+
* `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
|
|
1775
|
+
*/
|
|
1776
|
+
driven: z.ZodOptional<z.ZodNativeEnum<{
|
|
1777
|
+
/** A model inside the daemon drove this, on the user's behalf. */
|
|
1778
|
+
readonly HARNESS: "harness";
|
|
1779
|
+
}>>;
|
|
1753
1780
|
}, "strip", z.ZodTypeAny, {
|
|
1754
1781
|
verified: string;
|
|
1755
1782
|
via: string;
|
|
1756
1783
|
passed: boolean;
|
|
1757
1784
|
falseGreenCaught: boolean;
|
|
1758
|
-
reason?: "
|
|
1785
|
+
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;
|
|
1759
1786
|
durationMs?: number | undefined;
|
|
1760
1787
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1788
|
+
driven?: "harness" | undefined;
|
|
1761
1789
|
browser?: string | undefined;
|
|
1762
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
1790
|
+
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1763
1791
|
}, {
|
|
1764
1792
|
verified: string;
|
|
1765
1793
|
via: string;
|
|
1766
1794
|
passed: boolean;
|
|
1767
1795
|
falseGreenCaught: boolean;
|
|
1768
|
-
reason?: "
|
|
1796
|
+
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;
|
|
1769
1797
|
durationMs?: number | undefined;
|
|
1770
1798
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1799
|
+
driven?: "harness" | undefined;
|
|
1771
1800
|
browser?: string | undefined;
|
|
1772
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
1801
|
+
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1773
1802
|
}>>;
|
|
1774
1803
|
/** Only on `version_changed`. */
|
|
1775
1804
|
versionChange: z.ZodOptional<z.ZodObject<{
|
|
@@ -1787,14 +1816,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1787
1816
|
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
1788
1817
|
direction: z.ZodString;
|
|
1789
1818
|
}, "strip", z.ZodTypeAny, {
|
|
1819
|
+
direction: string;
|
|
1790
1820
|
from: string;
|
|
1791
1821
|
to: string;
|
|
1792
|
-
direction: string;
|
|
1793
1822
|
nudged?: boolean | undefined;
|
|
1794
1823
|
}, {
|
|
1824
|
+
direction: string;
|
|
1795
1825
|
from: string;
|
|
1796
1826
|
to: string;
|
|
1797
|
-
direction: string;
|
|
1798
1827
|
nudged?: boolean | undefined;
|
|
1799
1828
|
}>>;
|
|
1800
1829
|
/** Only on `runtime_crashed`. */
|
|
@@ -1803,11 +1832,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1803
1832
|
kind: z.ZodString;
|
|
1804
1833
|
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
1805
1834
|
errorType: z.ZodOptional<z.ZodString>;
|
|
1806
|
-
/** Hash of the type +
|
|
1835
|
+
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
1807
1836
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
1808
1837
|
/**
|
|
1809
1838
|
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
1810
|
-
* replaced by `*`. `no baseline named *`
|
|
1839
|
+
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
1811
1840
|
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
1812
1841
|
* readable defect.
|
|
1813
1842
|
*/
|
|
@@ -1815,7 +1844,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1815
1844
|
/**
|
|
1816
1845
|
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
1817
1846
|
*
|
|
1818
|
-
* This is
|
|
1847
|
+
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
1819
1848
|
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
1820
1849
|
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
1821
1850
|
* user's application or to node internals are dropped entirely before this is built.
|
|
@@ -1828,16 +1857,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1828
1857
|
*
|
|
1829
1858
|
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
1830
1859
|
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
1831
|
-
* NAMES only, from
|
|
1860
|
+
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
1832
1861
|
*/
|
|
1833
1862
|
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1834
|
-
/** Node major/minor — crashes cluster hard by runtime version
|
|
1863
|
+
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
1835
1864
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
1836
1865
|
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
1837
1866
|
arch: z.ZodOptional<z.ZodString>;
|
|
1838
1867
|
/**
|
|
1839
|
-
* The machine at the moment of the crash. "Out of memory" and
|
|
1840
|
-
* trace and are completely different problems; this is what tells them apart.
|
|
1868
|
+
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
1869
|
+
* stack trace and are completely different problems; this is what tells them apart.
|
|
1841
1870
|
*/
|
|
1842
1871
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1843
1872
|
rssMb: z.ZodNumber;
|
|
@@ -1891,10 +1920,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1891
1920
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
1892
1921
|
}, "strip", z.ZodTypeAny, {
|
|
1893
1922
|
kind: string;
|
|
1894
|
-
port?: "other" | "reticle" | undefined;
|
|
1895
1923
|
message?: string | undefined;
|
|
1896
1924
|
tool?: string | undefined;
|
|
1897
1925
|
errorType?: string | undefined;
|
|
1926
|
+
port?: "reticle" | "other" | undefined;
|
|
1898
1927
|
fingerprint?: string | undefined;
|
|
1899
1928
|
machine?: {
|
|
1900
1929
|
rssMb: number;
|
|
@@ -1914,10 +1943,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1914
1943
|
internalFrame?: string | undefined;
|
|
1915
1944
|
}, {
|
|
1916
1945
|
kind: string;
|
|
1917
|
-
port?: "other" | "reticle" | undefined;
|
|
1918
1946
|
message?: string | undefined;
|
|
1919
1947
|
tool?: string | undefined;
|
|
1920
1948
|
errorType?: string | undefined;
|
|
1949
|
+
port?: "reticle" | "other" | undefined;
|
|
1921
1950
|
fingerprint?: string | undefined;
|
|
1922
1951
|
machine?: {
|
|
1923
1952
|
rssMb: number;
|
|
@@ -1970,9 +1999,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1970
1999
|
/**
|
|
1971
2000
|
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
1972
2001
|
*
|
|
1973
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest
|
|
1974
|
-
* AGENT SAW.
|
|
1975
|
-
*
|
|
2002
|
+
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
2003
|
+
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
2004
|
+
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
1976
2005
|
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
1977
2006
|
*
|
|
1978
2007
|
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
@@ -2028,9 +2057,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2028
2057
|
/**
|
|
2029
2058
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
2030
2059
|
*
|
|
2031
|
-
* The half of NO_SESSION
|
|
2032
|
-
*
|
|
2033
|
-
*
|
|
2060
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
2061
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
2062
|
+
* already followed. They need to open the app.
|
|
2034
2063
|
*/
|
|
2035
2064
|
readonly NO_PAGE: "no_page";
|
|
2036
2065
|
}>>;
|
|
@@ -2047,6 +2076,42 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2047
2076
|
mcpRegistered?: boolean | undefined;
|
|
2048
2077
|
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2049
2078
|
}>>;
|
|
2079
|
+
/** Only on `onboarding_step`: one step of install / onboard / first run. */
|
|
2080
|
+
onboarding: z.ZodOptional<z.ZodObject<{
|
|
2081
|
+
phase: z.ZodNativeEnum<{
|
|
2082
|
+
readonly INSTALL: "install";
|
|
2083
|
+
readonly ONBOARD: "onboard";
|
|
2084
|
+
readonly FIRST_RUN: "first_run";
|
|
2085
|
+
}>;
|
|
2086
|
+
step: z.ZodEnum<[string, ...string[]]>;
|
|
2087
|
+
status: z.ZodNativeEnum<{
|
|
2088
|
+
readonly STARTED: "started";
|
|
2089
|
+
readonly COMPLETED: "completed";
|
|
2090
|
+
readonly FAILED: "failed";
|
|
2091
|
+
readonly ABANDONED: "abandoned";
|
|
2092
|
+
readonly SKIPPED: "skipped";
|
|
2093
|
+
}>;
|
|
2094
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
2095
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2096
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
2097
|
+
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
2098
|
+
}, "strip", z.ZodTypeAny, {
|
|
2099
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2100
|
+
step: string;
|
|
2101
|
+
phase: "install" | "onboard" | "first_run";
|
|
2102
|
+
reason?: string | undefined;
|
|
2103
|
+
stack?: string | undefined;
|
|
2104
|
+
elapsedMs?: number | undefined;
|
|
2105
|
+
unattended?: boolean | undefined;
|
|
2106
|
+
}, {
|
|
2107
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2108
|
+
step: string;
|
|
2109
|
+
phase: "install" | "onboard" | "first_run";
|
|
2110
|
+
reason?: string | undefined;
|
|
2111
|
+
stack?: string | undefined;
|
|
2112
|
+
elapsedMs?: number | undefined;
|
|
2113
|
+
unattended?: boolean | undefined;
|
|
2114
|
+
}>>;
|
|
2050
2115
|
/** Only on `bug_found`. */
|
|
2051
2116
|
bug: z.ZodOptional<z.ZodObject<{
|
|
2052
2117
|
source: z.ZodNativeEnum<{
|
|
@@ -2095,7 +2160,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2095
2160
|
/**
|
|
2096
2161
|
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
2097
2162
|
*
|
|
2098
|
-
* Absence and "
|
|
2163
|
+
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
2099
2164
|
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
2100
2165
|
* `BugAttribution` for why `app` needs positive evidence.
|
|
2101
2166
|
*/
|
|
@@ -2111,8 +2176,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2111
2176
|
*
|
|
2112
2177
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
2113
2178
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
2114
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
2115
|
-
*
|
|
2179
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
2180
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
2116
2181
|
*/
|
|
2117
2182
|
readonly UNCLASSIFIED: "unclassified";
|
|
2118
2183
|
}>;
|
|
@@ -2130,16 +2195,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2130
2195
|
*/
|
|
2131
2196
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2132
2197
|
}, "strip", z.ZodTypeAny, {
|
|
2133
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2134
2198
|
kind: string;
|
|
2199
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2135
2200
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2136
2201
|
falseGreen: boolean;
|
|
2137
2202
|
repeat: boolean;
|
|
2138
2203
|
tool?: string | undefined;
|
|
2139
2204
|
fingerprint?: string | undefined;
|
|
2140
2205
|
}, {
|
|
2141
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2142
2206
|
kind: string;
|
|
2207
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2143
2208
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2144
2209
|
falseGreen: boolean;
|
|
2145
2210
|
repeat: boolean;
|
|
@@ -2158,6 +2223,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2158
2223
|
readonly OTHER: "other";
|
|
2159
2224
|
}>;
|
|
2160
2225
|
noSessionReason: z.ZodOptional<z.ZodNativeEnum<{
|
|
2226
|
+
readonly AUTH_REFUSED: "auth_refused";
|
|
2161
2227
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
2162
2228
|
readonly TAB_GONE: "tab_gone";
|
|
2163
2229
|
readonly APP_NOT_REOPENED: "app_not_reopened";
|
|
@@ -2169,15 +2235,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2169
2235
|
}>>;
|
|
2170
2236
|
retried: z.ZodBoolean;
|
|
2171
2237
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2173
2238
|
tool: string;
|
|
2239
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2174
2240
|
retried: boolean;
|
|
2175
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2241
|
+
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;
|
|
2176
2242
|
}, {
|
|
2177
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2178
2243
|
tool: string;
|
|
2244
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2179
2245
|
retried: boolean;
|
|
2180
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2246
|
+
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;
|
|
2181
2247
|
}>>;
|
|
2182
2248
|
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
2183
2249
|
outage: z.ZodOptional<z.ZodObject<{
|
|
@@ -2187,13 +2253,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2187
2253
|
/**
|
|
2188
2254
|
* The link came back on its own, and `attempts` says what it cost.
|
|
2189
2255
|
*
|
|
2190
|
-
* Without it `first` is unfalsifiable.
|
|
2191
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
2192
|
-
*
|
|
2193
|
-
*
|
|
2194
|
-
*
|
|
2195
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
2196
|
-
* whose tools never came back.
|
|
2256
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
2257
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
2258
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
2259
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
2260
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
2197
2261
|
*/
|
|
2198
2262
|
readonly RECOVERED: "recovered";
|
|
2199
2263
|
}>;
|
|
@@ -2225,10 +2289,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2225
2289
|
/**
|
|
2226
2290
|
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
2227
2291
|
*
|
|
2228
|
-
* Without it every drop looks equally bad.
|
|
2229
|
-
*
|
|
2230
|
-
*
|
|
2231
|
-
*
|
|
2292
|
+
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
2293
|
+
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
2294
|
+
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
2295
|
+
* whole total, and buries the one drop that mattered.
|
|
2232
2296
|
*
|
|
2233
2297
|
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
2234
2298
|
* worth driving down.
|
|
@@ -2290,7 +2354,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2290
2354
|
* present on the events that show whether a licensed customer got anywhere.
|
|
2291
2355
|
*
|
|
2292
2356
|
* `licenseId` is the signed license id — an opaque uuid that resolves to a company only against the
|
|
2293
|
-
* issuance ledger
|
|
2357
|
+
* issuance ledger held locally, so the analytics backend never learns a customer list. The
|
|
2294
2358
|
* organisation NAME is deliberately absent: it is free text somebody typed at signing time, and
|
|
2295
2359
|
* rule 3 is names-never-values.
|
|
2296
2360
|
*
|
|
@@ -2321,19 +2385,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2321
2385
|
*/
|
|
2322
2386
|
licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2323
2387
|
}, "strip", z.ZodTypeAny, {
|
|
2388
|
+
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";
|
|
2324
2389
|
version: string;
|
|
2325
|
-
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";
|
|
2326
|
-
v: 3;
|
|
2327
2390
|
ci: boolean;
|
|
2391
|
+
v: 3;
|
|
2328
2392
|
anonymousId: string;
|
|
2329
2393
|
ts: number;
|
|
2330
2394
|
os: string;
|
|
2331
|
-
projectId?: string | undefined;
|
|
2332
2395
|
command?: string | undefined;
|
|
2396
|
+
projectId?: string | undefined;
|
|
2333
2397
|
sessionId?: string | undefined;
|
|
2334
2398
|
bug?: {
|
|
2335
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2336
2399
|
kind: string;
|
|
2400
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2337
2401
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2338
2402
|
falseGreen: boolean;
|
|
2339
2403
|
repeat: boolean;
|
|
@@ -2417,7 +2481,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2417
2481
|
clientVersions?: Record<string, string> | undefined;
|
|
2418
2482
|
appConnects?: number | undefined;
|
|
2419
2483
|
msToFirstApp?: number | undefined;
|
|
2420
|
-
endReason?: "verified" | "
|
|
2484
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2421
2485
|
feedbackPrompted?: number | undefined;
|
|
2422
2486
|
errorClasses?: Record<string, number> | undefined;
|
|
2423
2487
|
errorsRecovered?: number | undefined;
|
|
@@ -2425,16 +2489,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2425
2489
|
endedWithVerdict?: boolean | undefined;
|
|
2426
2490
|
updateNudged?: boolean | undefined;
|
|
2427
2491
|
updateOffered?: string | undefined;
|
|
2428
|
-
exit?: "
|
|
2492
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2429
2493
|
} | undefined;
|
|
2430
2494
|
licenseKeyPresent?: boolean | undefined;
|
|
2431
2495
|
automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
|
|
2432
2496
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2433
2497
|
tzOffsetMin?: number | undefined;
|
|
2434
2498
|
feedback?: {
|
|
2435
|
-
source: "agent" | "human";
|
|
2436
2499
|
text: string;
|
|
2437
2500
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2501
|
+
source: "agent" | "human";
|
|
2438
2502
|
impact?: string | undefined;
|
|
2439
2503
|
trace?: string | undefined;
|
|
2440
2504
|
rating?: number | undefined;
|
|
@@ -2457,24 +2521,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2457
2521
|
via: string;
|
|
2458
2522
|
passed: boolean;
|
|
2459
2523
|
falseGreenCaught: boolean;
|
|
2460
|
-
reason?: "
|
|
2524
|
+
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;
|
|
2461
2525
|
durationMs?: number | undefined;
|
|
2462
2526
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2527
|
+
driven?: "harness" | undefined;
|
|
2463
2528
|
browser?: string | undefined;
|
|
2464
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
2529
|
+
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2465
2530
|
} | undefined;
|
|
2466
2531
|
versionChange?: {
|
|
2532
|
+
direction: string;
|
|
2467
2533
|
from: string;
|
|
2468
2534
|
to: string;
|
|
2469
|
-
direction: string;
|
|
2470
2535
|
nudged?: boolean | undefined;
|
|
2471
2536
|
} | undefined;
|
|
2472
2537
|
crash?: {
|
|
2473
2538
|
kind: string;
|
|
2474
|
-
port?: "other" | "reticle" | undefined;
|
|
2475
2539
|
message?: string | undefined;
|
|
2476
2540
|
tool?: string | undefined;
|
|
2477
2541
|
errorType?: string | undefined;
|
|
2542
|
+
port?: "reticle" | "other" | undefined;
|
|
2478
2543
|
fingerprint?: string | undefined;
|
|
2479
2544
|
machine?: {
|
|
2480
2545
|
rssMb: number;
|
|
@@ -2511,11 +2576,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2511
2576
|
mcpRegistered?: boolean | undefined;
|
|
2512
2577
|
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2513
2578
|
} | undefined;
|
|
2579
|
+
onboarding?: {
|
|
2580
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2581
|
+
step: string;
|
|
2582
|
+
phase: "install" | "onboard" | "first_run";
|
|
2583
|
+
reason?: string | undefined;
|
|
2584
|
+
stack?: string | undefined;
|
|
2585
|
+
elapsedMs?: number | undefined;
|
|
2586
|
+
unattended?: boolean | undefined;
|
|
2587
|
+
} | undefined;
|
|
2514
2588
|
refusal?: {
|
|
2515
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2516
2589
|
tool: string;
|
|
2590
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2517
2591
|
retried: boolean;
|
|
2518
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2592
|
+
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;
|
|
2519
2593
|
} | undefined;
|
|
2520
2594
|
outage?: {
|
|
2521
2595
|
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
@@ -2532,19 +2606,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2532
2606
|
licenseId?: string | undefined;
|
|
2533
2607
|
licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
|
|
2534
2608
|
}, {
|
|
2609
|
+
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";
|
|
2535
2610
|
version: string;
|
|
2536
|
-
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";
|
|
2537
|
-
v: 3;
|
|
2538
2611
|
ci: boolean;
|
|
2612
|
+
v: 3;
|
|
2539
2613
|
anonymousId: string;
|
|
2540
2614
|
ts: number;
|
|
2541
2615
|
os: string;
|
|
2542
|
-
projectId?: string | undefined;
|
|
2543
2616
|
command?: string | undefined;
|
|
2617
|
+
projectId?: string | undefined;
|
|
2544
2618
|
sessionId?: string | undefined;
|
|
2545
2619
|
bug?: {
|
|
2546
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2547
2620
|
kind: string;
|
|
2621
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2548
2622
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2549
2623
|
falseGreen: boolean;
|
|
2550
2624
|
repeat: boolean;
|
|
@@ -2628,7 +2702,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2628
2702
|
clientVersions?: Record<string, string> | undefined;
|
|
2629
2703
|
appConnects?: number | undefined;
|
|
2630
2704
|
msToFirstApp?: number | undefined;
|
|
2631
|
-
endReason?: "verified" | "
|
|
2705
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2632
2706
|
feedbackPrompted?: number | undefined;
|
|
2633
2707
|
errorClasses?: Record<string, number> | undefined;
|
|
2634
2708
|
errorsRecovered?: number | undefined;
|
|
@@ -2636,16 +2710,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2636
2710
|
endedWithVerdict?: boolean | undefined;
|
|
2637
2711
|
updateNudged?: boolean | undefined;
|
|
2638
2712
|
updateOffered?: string | undefined;
|
|
2639
|
-
exit?: "
|
|
2713
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2640
2714
|
} | undefined;
|
|
2641
2715
|
licenseKeyPresent?: boolean | undefined;
|
|
2642
2716
|
automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
|
|
2643
2717
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2644
2718
|
tzOffsetMin?: number | undefined;
|
|
2645
2719
|
feedback?: {
|
|
2646
|
-
source: "agent" | "human";
|
|
2647
2720
|
text: string;
|
|
2648
2721
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2722
|
+
source: "agent" | "human";
|
|
2649
2723
|
impact?: string | undefined;
|
|
2650
2724
|
trace?: string | undefined;
|
|
2651
2725
|
rating?: number | undefined;
|
|
@@ -2668,24 +2742,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2668
2742
|
via: string;
|
|
2669
2743
|
passed: boolean;
|
|
2670
2744
|
falseGreenCaught: boolean;
|
|
2671
|
-
reason?: "
|
|
2745
|
+
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;
|
|
2672
2746
|
durationMs?: number | undefined;
|
|
2673
2747
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2748
|
+
driven?: "harness" | undefined;
|
|
2674
2749
|
browser?: string | undefined;
|
|
2675
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
2750
|
+
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2676
2751
|
} | undefined;
|
|
2677
2752
|
versionChange?: {
|
|
2753
|
+
direction: string;
|
|
2678
2754
|
from: string;
|
|
2679
2755
|
to: string;
|
|
2680
|
-
direction: string;
|
|
2681
2756
|
nudged?: boolean | undefined;
|
|
2682
2757
|
} | undefined;
|
|
2683
2758
|
crash?: {
|
|
2684
2759
|
kind: string;
|
|
2685
|
-
port?: "other" | "reticle" | undefined;
|
|
2686
2760
|
message?: string | undefined;
|
|
2687
2761
|
tool?: string | undefined;
|
|
2688
2762
|
errorType?: string | undefined;
|
|
2763
|
+
port?: "reticle" | "other" | undefined;
|
|
2689
2764
|
fingerprint?: string | undefined;
|
|
2690
2765
|
machine?: {
|
|
2691
2766
|
rssMb: number;
|
|
@@ -2722,11 +2797,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2722
2797
|
mcpRegistered?: boolean | undefined;
|
|
2723
2798
|
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2724
2799
|
} | undefined;
|
|
2800
|
+
onboarding?: {
|
|
2801
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2802
|
+
step: string;
|
|
2803
|
+
phase: "install" | "onboard" | "first_run";
|
|
2804
|
+
reason?: string | undefined;
|
|
2805
|
+
stack?: string | undefined;
|
|
2806
|
+
elapsedMs?: number | undefined;
|
|
2807
|
+
unattended?: boolean | undefined;
|
|
2808
|
+
} | undefined;
|
|
2725
2809
|
refusal?: {
|
|
2726
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2727
2810
|
tool: string;
|
|
2811
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2728
2812
|
retried: boolean;
|
|
2729
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2813
|
+
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;
|
|
2730
2814
|
} | undefined;
|
|
2731
2815
|
outage?: {
|
|
2732
2816
|
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|