@reticlehq/core 2.7.0 → 2.9.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/browser-misdirect.d.ts +23 -0
- package/dist/browser-misdirect.js +28 -0
- package/dist/constants.d.ts +62 -1
- package/dist/constants.js +67 -1
- package/dist/contract-fingerprint.d.ts +7 -0
- package/dist/contract-fingerprint.js +1 -1
- package/dist/desktop-contract.cjs +1 -0
- package/dist/desktop-contract.d.cts +1 -0
- package/dist/desktop-contract.d.ts +10 -0
- package/dist/desktop-contract.js +10 -0
- package/dist/event-payloads.d.ts +3 -2
- package/dist/finding-fingerprint.d.ts +23 -0
- package/dist/finding-fingerprint.js +19 -0
- package/dist/flow-constants.d.ts +2 -0
- package/dist/flow-constants.js +2 -0
- package/dist/flow-types.d.ts +10 -0
- package/dist/impact-savings.d.ts +17 -0
- package/dist/impact-savings.js +47 -0
- package/dist/impact.d.ts +1284 -0
- package/dist/impact.js +127 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7 -1
- package/dist/notices.d.ts +14 -2
- package/dist/notices.js +15 -2
- package/dist/project-id.js +25 -4
- package/dist/security.js +18 -1
- package/dist/session-constants.d.ts +18 -0
- package/dist/session-constants.js +17 -0
- package/dist/telemetry-feedback.d.ts +2 -2
- package/dist/telemetry-session.d.ts +16 -0
- package/dist/telemetry-session.js +14 -0
- package/dist/telemetry.d.ts +574 -49
- package/dist/telemetry.js +258 -12
- package/dist/types.d.ts +12 -3
- package/dist/types.js +15 -3
- package/dist/verified-constants.d.ts +27 -0
- package/dist/verified-constants.js +27 -0
- package/package.json +1 -1
package/dist/telemetry.d.ts
CHANGED
|
@@ -124,6 +124,24 @@ export declare const TelemetryEventKind: {
|
|
|
124
124
|
* is a real rate rather than an inference, and a reconnecting page cannot inflate it.
|
|
125
125
|
*/
|
|
126
126
|
readonly APP_INSTRUMENTED: "app_instrumented";
|
|
127
|
+
/**
|
|
128
|
+
* A daemon has been up long enough that no app is going to arrive on its own.
|
|
129
|
+
*
|
|
130
|
+
* The exact counterpart of `app_instrumented`, and the reason it has to exist: that event only
|
|
131
|
+
* fires on SUCCESS, so the far larger population — daemons that never get an app at all — is
|
|
132
|
+
* measurable today only by the ABSENCE of an event, and an absence cannot distinguish "nothing
|
|
133
|
+
* was wired" from "the process died before it could tell us" from "we never sent it".
|
|
134
|
+
*
|
|
135
|
+
* The funnel breaks here and nowhere else, so this is the one silence worth turning into a signal.
|
|
136
|
+
* Fired ONCE per daemon run, and never after an app has connected, so a daemon that starts slowly
|
|
137
|
+
* and then works reports nothing.
|
|
138
|
+
*
|
|
139
|
+
* Read it against `agentAttached`: a stalled daemon with no agent is a person who installed and
|
|
140
|
+
* walked away, which is not a defect. A stalled daemon WITH an agent attached is the failure this
|
|
141
|
+
* product currently has — the tools are there, something is asking for them, and there is no app
|
|
142
|
+
* on the other end.
|
|
143
|
+
*/
|
|
144
|
+
readonly INSTRUMENTATION_STALLED: "instrumentation_stalled";
|
|
127
145
|
/**
|
|
128
146
|
* The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
|
|
129
147
|
* completely invisible in the field.
|
|
@@ -159,6 +177,19 @@ export declare const TelemetryEventKind: {
|
|
|
159
177
|
* human watching the screen would have caught" is the argument.
|
|
160
178
|
*/
|
|
161
179
|
readonly BUG_FOUND: "bug_found";
|
|
180
|
+
/**
|
|
181
|
+
* A tool could not do what was asked, and said so.
|
|
182
|
+
*
|
|
183
|
+
* The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
|
|
184
|
+
* throws it away. So the largest cohort in the funnel — the users who connect an agent and never
|
|
185
|
+
* drive — is visible only by subtraction, and the three genuinely different situations behind it
|
|
186
|
+
* (nothing was ever wired here, the app is not running, a session was lost) arrive as one silence.
|
|
187
|
+
*
|
|
188
|
+
* `noSessionErrors` on the session summary counts one of those causes and only at the end of a
|
|
189
|
+
* session, without the tool, without the discriminator, and without whether the agent tried again.
|
|
190
|
+
* This carries the fact at the moment it happens. See issue #172.
|
|
191
|
+
*/
|
|
192
|
+
readonly TOOL_REFUSED: "tool_refused";
|
|
162
193
|
};
|
|
163
194
|
export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof TelemetryEventKind];
|
|
164
195
|
/** True when this event happened inside a daemon run, so a `sessionId` on it means something. */
|
|
@@ -283,7 +314,9 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
283
314
|
readonly OUTCOME_PENDING: "outcome_pending";
|
|
284
315
|
readonly OUTCOME_UNREAD: "outcome_unread";
|
|
285
316
|
readonly UNSETTLED: "unsettled";
|
|
317
|
+
readonly EVIDENCE_INCOMPLETE: "evidence_incomplete";
|
|
286
318
|
readonly PROVED: "proved";
|
|
319
|
+
readonly ABSENCE_BLIND_SPOT: "absence_blind_spot";
|
|
287
320
|
}>>;
|
|
288
321
|
/**
|
|
289
322
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
@@ -308,7 +341,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
308
341
|
passed: boolean;
|
|
309
342
|
falseGreenCaught: boolean;
|
|
310
343
|
durationMs?: number | undefined;
|
|
311
|
-
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
344
|
+
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
312
345
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
313
346
|
browser?: string | undefined;
|
|
314
347
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
@@ -318,7 +351,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
318
351
|
passed: boolean;
|
|
319
352
|
falseGreenCaught: boolean;
|
|
320
353
|
durationMs?: number | undefined;
|
|
321
|
-
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
354
|
+
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
322
355
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
323
356
|
browser?: string | undefined;
|
|
324
357
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
@@ -532,15 +565,23 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
|
532
565
|
* WHOSE fault the defect was.
|
|
533
566
|
*
|
|
534
567
|
* `bugsFound` is the number this product would most like to publish, and it is not publishable
|
|
535
|
-
* without this.
|
|
536
|
-
*
|
|
537
|
-
*
|
|
538
|
-
*
|
|
568
|
+
* without this. It shipped twice and was wrong both times: across two full real drives EVERY
|
|
569
|
+
* `attribution: 'app'` was a misattribution, so a single session would have published defects
|
|
570
|
+
* against a customer's product that did not exist. A metric confidently wrong about whose fault
|
|
571
|
+
* something is, is worse than no metric — it is the number a founder steers on, and it points at the
|
|
572
|
+
* customer. It was removed, and an ABSENT field then made "nobody classified this" and "we looked
|
|
573
|
+
* and could not tell" the same fact, which is the other half of the same problem.
|
|
574
|
+
*
|
|
575
|
+
* So it is back with two rules, and both are what the earlier versions lacked:
|
|
539
576
|
*
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*
|
|
543
|
-
*
|
|
577
|
+
* 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
|
|
578
|
+
* path that forgot; a value means the classifier ran and declined.
|
|
579
|
+
* 2. **`APP` requires POSITIVE evidence** — something the app itself did: a request that came back
|
|
580
|
+
* failed, a signal the app fired carrying data that disagrees with its own screen, a written
|
|
581
|
+
* field echoed back changed. Never "nothing else explained it". Core already draws exactly this
|
|
582
|
+
* line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
|
|
583
|
+
* than a second judgement invented next to it — every one of the historical misattributions was
|
|
584
|
+
* an absence-derived kind, so this rule produces zero of them on the same data.
|
|
544
585
|
*/
|
|
545
586
|
export declare const BugAttribution: {
|
|
546
587
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
@@ -549,6 +590,15 @@ export declare const BugAttribution: {
|
|
|
549
590
|
readonly REQUEST: "request";
|
|
550
591
|
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
551
592
|
readonly RETICLE: "reticle";
|
|
593
|
+
/**
|
|
594
|
+
* The classifier looked and the evidence could not say.
|
|
595
|
+
*
|
|
596
|
+
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
597
|
+
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
598
|
+
* testid" identically, and an owner invented for it would put a guess into the one number we
|
|
599
|
+
* intend to publish. Exclude it from a defect count; never fold it into `app`.
|
|
600
|
+
*/
|
|
601
|
+
readonly UNCLASSIFIED: "unclassified";
|
|
552
602
|
};
|
|
553
603
|
export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution];
|
|
554
604
|
/**
|
|
@@ -603,33 +653,126 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
603
653
|
*/
|
|
604
654
|
repeat: z.ZodBoolean;
|
|
605
655
|
/**
|
|
606
|
-
* Whose fault it was
|
|
607
|
-
*
|
|
656
|
+
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
657
|
+
*
|
|
658
|
+
* Absence and "we looked and could not tell" are different facts, and only one of them is a
|
|
659
|
+
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
660
|
+
* `BugAttribution` for why `app` needs positive evidence.
|
|
608
661
|
*/
|
|
609
|
-
attribution: z.
|
|
662
|
+
attribution: z.ZodNativeEnum<{
|
|
610
663
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
611
664
|
readonly APP: "app";
|
|
612
665
|
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
613
666
|
readonly REQUEST: "request";
|
|
614
667
|
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
615
668
|
readonly RETICLE: "reticle";
|
|
616
|
-
|
|
669
|
+
/**
|
|
670
|
+
* The classifier looked and the evidence could not say.
|
|
671
|
+
*
|
|
672
|
+
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
673
|
+
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
674
|
+
* testid" identically, and an owner invented for it would put a guess into the one number we
|
|
675
|
+
* intend to publish. Exclude it from a defect count; never fold it into `app`.
|
|
676
|
+
*/
|
|
677
|
+
readonly UNCLASSIFIED: "unclassified";
|
|
678
|
+
}>;
|
|
679
|
+
/**
|
|
680
|
+
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
681
|
+
* fingerprint, regardless of when or where it was found.
|
|
682
|
+
*
|
|
683
|
+
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
684
|
+
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
685
|
+
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
686
|
+
* agents in one run.
|
|
687
|
+
*
|
|
688
|
+
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
689
|
+
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
690
|
+
*/
|
|
691
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
617
692
|
}, "strip", z.ZodTypeAny, {
|
|
618
693
|
kind: string;
|
|
619
694
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
695
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
620
696
|
falseGreen: boolean;
|
|
621
697
|
repeat: boolean;
|
|
622
|
-
attribution?: "app" | "reticle" | "request" | undefined;
|
|
623
698
|
tool?: string | undefined;
|
|
699
|
+
fingerprint?: string | undefined;
|
|
624
700
|
}, {
|
|
625
701
|
kind: string;
|
|
626
702
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
703
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
627
704
|
falseGreen: boolean;
|
|
628
705
|
repeat: boolean;
|
|
629
|
-
attribution?: "app" | "reticle" | "request" | undefined;
|
|
630
706
|
tool?: string | undefined;
|
|
707
|
+
fingerprint?: string | undefined;
|
|
631
708
|
}>;
|
|
632
709
|
export type BugFound = z.infer<typeof BugFoundSchema>;
|
|
710
|
+
/**
|
|
711
|
+
* WHY a tool could not do what was asked.
|
|
712
|
+
*
|
|
713
|
+
* Derived from the refusal paths that actually exist rather than invented: every member below is a
|
|
714
|
+
* bucket over `error-recovery.ts`'s recovery table, which is the single place a thrown message is
|
|
715
|
+
* turned into a next action. That table is the vocabulary; this is its coarse grouping, and a new
|
|
716
|
+
* entry there cannot compile without being classified here.
|
|
717
|
+
*
|
|
718
|
+
* The five that matter belong to four different owners, which is the whole reason for splitting
|
|
719
|
+
* them: `no_session` is the install's second half never happening, `bad_args` is the agent's own
|
|
720
|
+
* call, `not_ready` is the environment, and `no_match` / `unsupported` are the app and our own
|
|
721
|
+
* capability surface. One undifferentiated "the agent stopped" number cannot be acted on by anyone.
|
|
722
|
+
*/
|
|
723
|
+
export declare const RefusalReason: {
|
|
724
|
+
/** There was no app to reach: nothing connected, no session by that id, or several with none named. */
|
|
725
|
+
readonly NO_SESSION: "no_session";
|
|
726
|
+
/** The target did not exist: a stale ref, a missing baseline, an option value the select has not got. */
|
|
727
|
+
readonly NO_MATCH: "no_match";
|
|
728
|
+
/** Reticle refuses to pretend: a rich-text surface, a disabled field, a destructive control. */
|
|
729
|
+
readonly UNSUPPORTED: "unsupported";
|
|
730
|
+
/** The call did not match the schema, or named a value our own validators reject. */
|
|
731
|
+
readonly BAD_ARGS: "bad_args";
|
|
732
|
+
/** Nothing is wrong with the call; the world is not ready — a throttled tab, a timeout, no browser. */
|
|
733
|
+
readonly NOT_READY: "not_ready";
|
|
734
|
+
/** A refusal this list does not name. A classifier that cannot say "I don't know" lies instead. */
|
|
735
|
+
readonly OTHER: "other";
|
|
736
|
+
};
|
|
737
|
+
export type RefusalReason = (typeof RefusalReason)[keyof typeof RefusalReason];
|
|
738
|
+
/** One tool call that could not be served. */
|
|
739
|
+
export declare const ToolRefusalSchema: z.ZodObject<{
|
|
740
|
+
/** Which tool. A name from our own fixed namespace, never app data. */
|
|
741
|
+
tool: z.ZodString;
|
|
742
|
+
reason: z.ZodNativeEnum<{
|
|
743
|
+
/** There was no app to reach: nothing connected, no session by that id, or several with none named. */
|
|
744
|
+
readonly NO_SESSION: "no_session";
|
|
745
|
+
/** The target did not exist: a stale ref, a missing baseline, an option value the select has not got. */
|
|
746
|
+
readonly NO_MATCH: "no_match";
|
|
747
|
+
/** Reticle refuses to pretend: a rich-text surface, a disabled field, a destructive control. */
|
|
748
|
+
readonly UNSUPPORTED: "unsupported";
|
|
749
|
+
/** The call did not match the schema, or named a value our own validators reject. */
|
|
750
|
+
readonly BAD_ARGS: "bad_args";
|
|
751
|
+
/** Nothing is wrong with the call; the world is not ready — a throttled tab, a timeout, no browser. */
|
|
752
|
+
readonly NOT_READY: "not_ready";
|
|
753
|
+
/** A refusal this list does not name. A classifier that cannot say "I don't know" lies instead. */
|
|
754
|
+
readonly OTHER: "other";
|
|
755
|
+
}>;
|
|
756
|
+
/**
|
|
757
|
+
* TRUE when the call immediately before this one was the SAME tool, also refused.
|
|
758
|
+
*
|
|
759
|
+
* Reported on the RETRY rather than on the first refusal, because the first refusal has to be sent
|
|
760
|
+
* at the moment it happens: deferring it until the next call is known would lose it entirely for
|
|
761
|
+
* the agent that gives up, and that agent is the whole population this event exists to describe.
|
|
762
|
+
* So count `retried: true` for retries; the ratio against all refusals is whether our diagnosis
|
|
763
|
+
* gets anybody unstuck.
|
|
764
|
+
*/
|
|
765
|
+
retried: z.ZodBoolean;
|
|
766
|
+
}, "strip", z.ZodTypeAny, {
|
|
767
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
768
|
+
tool: string;
|
|
769
|
+
retried: boolean;
|
|
770
|
+
}, {
|
|
771
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
772
|
+
tool: string;
|
|
773
|
+
retried: boolean;
|
|
774
|
+
}>;
|
|
775
|
+
export type ToolRefusal = z.infer<typeof ToolRefusalSchema>;
|
|
633
776
|
/** An MCP client attaching. Separates "installed and running" from "someone is actually using it". */
|
|
634
777
|
export declare const McpConnectionSchema: z.ZodObject<{
|
|
635
778
|
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
@@ -677,6 +820,35 @@ export declare const AppInstrumentationSchema: z.ZodObject<{
|
|
|
677
820
|
agentAttached: boolean;
|
|
678
821
|
}>;
|
|
679
822
|
export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
|
|
823
|
+
/**
|
|
824
|
+
* The shape of a daemon that waited and got nothing.
|
|
825
|
+
*
|
|
826
|
+
* Deliberately the same three facts as `AppInstrumentation` rather than a richer payload, so the
|
|
827
|
+
* success and failure cases are directly comparable: the only difference between them should be
|
|
828
|
+
* which event carries them. `msWaited` is the counterpart of `msToFirstApp`.
|
|
829
|
+
*
|
|
830
|
+
* What it does NOT carry is any attempt to say WHY, because at this point the daemon does not know.
|
|
831
|
+
* Whether a dev server is listening is a live probe, and running one on a timer to enrich a metric
|
|
832
|
+
* would be collecting for the metric's sake. The diagnosis belongs where a human or an agent asks
|
|
833
|
+
* for it, not here.
|
|
834
|
+
*/
|
|
835
|
+
export declare const InstrumentationStallSchema: z.ZodObject<{
|
|
836
|
+
/** Whether `reticle init` had been run in this directory (a projectId is stamped). */
|
|
837
|
+
initialized: z.ZodBoolean;
|
|
838
|
+
/** Whether an MCP client is attached. The difference between an idle install and a broken one. */
|
|
839
|
+
agentAttached: z.ZodBoolean;
|
|
840
|
+
/** How long the daemon has been up with no app on the other end. */
|
|
841
|
+
msWaited: z.ZodNumber;
|
|
842
|
+
}, "strip", z.ZodTypeAny, {
|
|
843
|
+
initialized: boolean;
|
|
844
|
+
agentAttached: boolean;
|
|
845
|
+
msWaited: number;
|
|
846
|
+
}, {
|
|
847
|
+
initialized: boolean;
|
|
848
|
+
agentAttached: boolean;
|
|
849
|
+
msWaited: number;
|
|
850
|
+
}>;
|
|
851
|
+
export type InstrumentationStall = z.infer<typeof InstrumentationStallSchema>;
|
|
680
852
|
/**
|
|
681
853
|
* WHICH stage of an MCP outage this is. Reported at most twice per proxy process, and the two are
|
|
682
854
|
* different facts: `first` says the session lost its tools at all, `budget_spent` says the proxy
|
|
@@ -685,6 +857,18 @@ export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
|
|
|
685
857
|
export declare const OutageStage: {
|
|
686
858
|
readonly FIRST: "first";
|
|
687
859
|
readonly BUDGET_SPENT: "budget_spent";
|
|
860
|
+
/**
|
|
861
|
+
* The link came back on its own, and `attempts` says what it cost.
|
|
862
|
+
*
|
|
863
|
+
* Without it `first` is unfalsifiable. It is emitted at the moment of the drop, when the attempt
|
|
864
|
+
* counter is 1 by construction and the cap keeps any later drop from ever replacing it — so every
|
|
865
|
+
* event in the field carried the same stage and the same attempt count, and neither could carry
|
|
866
|
+
* another. That reads as "reconnection never advances past the first attempt" and it is really
|
|
867
|
+
* "this event is emitted before there is anything to say". `recovered` is the counterpart that
|
|
868
|
+
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
869
|
+
* whose tools never came back.
|
|
870
|
+
*/
|
|
871
|
+
readonly RECOVERED: "recovered";
|
|
688
872
|
};
|
|
689
873
|
export type OutageStage = (typeof OutageStage)[keyof typeof OutageStage];
|
|
690
874
|
/**
|
|
@@ -693,8 +877,17 @@ export type OutageStage = (typeof OutageStage)[keyof typeof OutageStage];
|
|
|
693
877
|
* without a raw string reaching the wire, per the classifier rule.
|
|
694
878
|
*/
|
|
695
879
|
export declare const OutageReason: {
|
|
696
|
-
/** The SSE stream ended cleanly
|
|
880
|
+
/** The SSE stream ended cleanly and nothing said why. */
|
|
697
881
|
readonly SSE_ENDED: "sse_ended";
|
|
882
|
+
/**
|
|
883
|
+
* The daemon ANNOUNCED that it was retiring before it closed the stream.
|
|
884
|
+
*
|
|
885
|
+
* Not an outage the agent suffered, and separating it is the whole point: a scheduled shutdown and
|
|
886
|
+
* a daemon dying under a live client are the same clean stream end on this side of the socket, so
|
|
887
|
+
* the metric meant to say "the agent lost its tools" spent most of its volume counting the daemon
|
|
888
|
+
* going to sleep exactly as designed. Split out, `sse_ended` finally means what it says.
|
|
889
|
+
*/
|
|
890
|
+
readonly DAEMON_SHUTDOWN: "daemon_shutdown";
|
|
698
891
|
/** The stream errored. */
|
|
699
892
|
readonly SSE_ERROR: "sse_error";
|
|
700
893
|
/** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
|
|
@@ -720,10 +913,31 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
720
913
|
stage: z.ZodNativeEnum<{
|
|
721
914
|
readonly FIRST: "first";
|
|
722
915
|
readonly BUDGET_SPENT: "budget_spent";
|
|
916
|
+
/**
|
|
917
|
+
* The link came back on its own, and `attempts` says what it cost.
|
|
918
|
+
*
|
|
919
|
+
* Without it `first` is unfalsifiable. It is emitted at the moment of the drop, when the attempt
|
|
920
|
+
* counter is 1 by construction and the cap keeps any later drop from ever replacing it — so every
|
|
921
|
+
* event in the field carried the same stage and the same attempt count, and neither could carry
|
|
922
|
+
* another. That reads as "reconnection never advances past the first attempt" and it is really
|
|
923
|
+
* "this event is emitted before there is anything to say". `recovered` is the counterpart that
|
|
924
|
+
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
925
|
+
* whose tools never came back.
|
|
926
|
+
*/
|
|
927
|
+
readonly RECOVERED: "recovered";
|
|
723
928
|
}>;
|
|
724
929
|
reason: z.ZodNativeEnum<{
|
|
725
|
-
/** The SSE stream ended cleanly
|
|
930
|
+
/** The SSE stream ended cleanly and nothing said why. */
|
|
726
931
|
readonly SSE_ENDED: "sse_ended";
|
|
932
|
+
/**
|
|
933
|
+
* The daemon ANNOUNCED that it was retiring before it closed the stream.
|
|
934
|
+
*
|
|
935
|
+
* Not an outage the agent suffered, and separating it is the whole point: a scheduled shutdown and
|
|
936
|
+
* a daemon dying under a live client are the same clean stream end on this side of the socket, so
|
|
937
|
+
* the metric meant to say "the agent lost its tools" spent most of its volume counting the daemon
|
|
938
|
+
* going to sleep exactly as designed. Split out, `sse_ended` finally means what it says.
|
|
939
|
+
*/
|
|
940
|
+
readonly DAEMON_SHUTDOWN: "daemon_shutdown";
|
|
727
941
|
/** The stream errored. */
|
|
728
942
|
readonly SSE_ERROR: "sse_error";
|
|
729
943
|
/** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
|
|
@@ -750,17 +964,87 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
750
964
|
*/
|
|
751
965
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
752
966
|
}, "strip", z.ZodTypeAny, {
|
|
753
|
-
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
967
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
754
968
|
attempts: number;
|
|
755
|
-
stage: "first" | "budget_spent";
|
|
969
|
+
stage: "first" | "budget_spent" | "recovered";
|
|
756
970
|
pendingLost?: number | undefined;
|
|
757
971
|
}, {
|
|
758
|
-
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
972
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
759
973
|
attempts: number;
|
|
760
|
-
stage: "first" | "budget_spent";
|
|
974
|
+
stage: "first" | "budget_spent" | "recovered";
|
|
761
975
|
pendingLost?: number | undefined;
|
|
762
976
|
}>;
|
|
763
977
|
export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
978
|
+
/**
|
|
979
|
+
* WHICH published route brought this install in.
|
|
980
|
+
*
|
|
981
|
+
* Four routes ship at once — the SKILL.md paste URL, an `npx skills add` package, a Claude Code
|
|
982
|
+
* plugin, and docs.reticle.sh — and not one install can be attributed to any of them today. Every
|
|
983
|
+
* decision about where to spend effort on distribution is therefore made blind.
|
|
984
|
+
*
|
|
985
|
+
* The value is NEVER inferred. It is read from a single explicit marker (`RETICLE_INSTALL_SOURCE`)
|
|
986
|
+
* that a channel sets on itself, narrowed against this list, and anything else reports `UNKNOWN`.
|
|
987
|
+
* That is deliberate and it means `unknown` will stay large: a guessed attribution is worse than no
|
|
988
|
+
* attribution, because a distribution decision made on a guess is indistinguishable from one made on
|
|
989
|
+
* a measurement. Read a small `unknown` as a marker that spread, never as success.
|
|
990
|
+
*
|
|
991
|
+
* What the marker CANNOT be derived from, and why nothing here tries:
|
|
992
|
+
* - `npm_config_user_agent` says npm/pnpm ran us. Every one of these routes runs through npx, so it
|
|
993
|
+
* separates none of them.
|
|
994
|
+
* - The presence of `.claude-plugin/` or an installed skill directory says a plugin or a skill is
|
|
995
|
+
* present in the repo, not that it is the thing that ran `init` — and both are present at once on
|
|
996
|
+
* any machine that has tried more than one route.
|
|
997
|
+
* - A first-run heuristic on which command ran first says nothing about who told the user to run it.
|
|
998
|
+
*/
|
|
999
|
+
export declare const InstallSource: {
|
|
1000
|
+
/** The canonical SKILL.md paste URL — the marker is in the command SKILL.md tells the agent to run. */
|
|
1001
|
+
readonly SKILL_FILE: "skill_file";
|
|
1002
|
+
/** The `npx skills add` package, which ships its own copy of the skill carrying its own marker. */
|
|
1003
|
+
readonly NPX_SKILL: "npx_skill";
|
|
1004
|
+
/** The Claude Code plugin, which sets the marker in the `env` of the MCP server it registers. */
|
|
1005
|
+
readonly PLUGIN: "plugin";
|
|
1006
|
+
/** docs.reticle.sh, whose install snippets carry the marker. */
|
|
1007
|
+
readonly DOCS_SITE: "docs_site";
|
|
1008
|
+
/** The repository README's install snippet. */
|
|
1009
|
+
readonly README: "readme";
|
|
1010
|
+
/** Somebody typed the command with no channel in front of it. Only ever self-declared. */
|
|
1011
|
+
readonly CLI_DIRECT: "cli_direct";
|
|
1012
|
+
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
1013
|
+
readonly UNKNOWN: "unknown";
|
|
1014
|
+
};
|
|
1015
|
+
export type InstallSource = (typeof InstallSource)[keyof typeof InstallSource];
|
|
1016
|
+
/**
|
|
1017
|
+
* Why a run LOOKS automated, when `CI` alone does not say so.
|
|
1018
|
+
*
|
|
1019
|
+
* Advisory only — see the `automation` field on the event and `automation-hint.ts` for what these
|
|
1020
|
+
* are and, more importantly, what they are not allowed to be used for.
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const AutomationHint: {
|
|
1023
|
+
/** A container runtime marker is present at the filesystem root. */
|
|
1024
|
+
readonly CONTAINER: "container";
|
|
1025
|
+
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
1026
|
+
readonly HOSTED_WORKSPACE: "hosted_workspace";
|
|
1027
|
+
/** Neither end of the process is attached to a terminal. The weakest of the three. */
|
|
1028
|
+
readonly NO_TTY: "no_tty";
|
|
1029
|
+
};
|
|
1030
|
+
export type AutomationHint = (typeof AutomationHint)[keyof typeof AutomationHint];
|
|
1031
|
+
/**
|
|
1032
|
+
* What `init` SAW after it finished writing, when it stayed to look.
|
|
1033
|
+
*
|
|
1034
|
+
* The install has two halves — register the MCP server so the agent has the tools, and get the SDK
|
|
1035
|
+
* into a running page so there is something to look at — and nothing joined "init finished" to "an
|
|
1036
|
+
* app connected". `init` exited 0 having written files, and the second half was completed by far
|
|
1037
|
+
* fewer people than the first with no event able to tell the two apart.
|
|
1038
|
+
*/
|
|
1039
|
+
export declare const InitConfirmation: {
|
|
1040
|
+
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
1041
|
+
readonly CONNECTED: "connected";
|
|
1042
|
+
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
1043
|
+
readonly NO_DAEMON: "no_daemon";
|
|
1044
|
+
/** A daemon was up and no app connected inside the window — the dev server is the outstanding step. */
|
|
1045
|
+
readonly NO_SESSION: "no_session";
|
|
1046
|
+
};
|
|
1047
|
+
export type InitConfirmation = (typeof InitConfirmation)[keyof typeof InitConfirmation];
|
|
764
1048
|
/** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
|
|
765
1049
|
export declare const InitOutcomeSchema: z.ZodObject<{
|
|
766
1050
|
ok: z.ZodBoolean;
|
|
@@ -770,16 +1054,33 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
770
1054
|
stack: z.ZodOptional<z.ZodString>;
|
|
771
1055
|
/** Whether the MCP registration step succeeded — the step most likely to fail silently. */
|
|
772
1056
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
1057
|
+
/**
|
|
1058
|
+
* What `init` saw when it waited for an app to connect.
|
|
1059
|
+
*
|
|
1060
|
+
* ABSENT means it never looked, which is the honest answer for every scripted run: `init` only
|
|
1061
|
+
* waits when a human is at the terminal. Read an absent value as "not measured", never as a
|
|
1062
|
+
* failure to connect, or the funnel reads scripted installs as losses.
|
|
1063
|
+
*/
|
|
1064
|
+
confirmation: z.ZodOptional<z.ZodNativeEnum<{
|
|
1065
|
+
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
1066
|
+
readonly CONNECTED: "connected";
|
|
1067
|
+
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
1068
|
+
readonly NO_DAEMON: "no_daemon";
|
|
1069
|
+
/** A daemon was up and no app connected inside the window — the dev server is the outstanding step. */
|
|
1070
|
+
readonly NO_SESSION: "no_session";
|
|
1071
|
+
}>>;
|
|
773
1072
|
}, "strip", z.ZodTypeAny, {
|
|
774
1073
|
ok: boolean;
|
|
775
1074
|
stack?: string | undefined;
|
|
776
1075
|
reason?: string | undefined;
|
|
777
1076
|
mcpRegistered?: boolean | undefined;
|
|
1077
|
+
confirmation?: "no_session" | "connected" | "no_daemon" | undefined;
|
|
778
1078
|
}, {
|
|
779
1079
|
ok: boolean;
|
|
780
1080
|
stack?: string | undefined;
|
|
781
1081
|
reason?: string | undefined;
|
|
782
1082
|
mcpRegistered?: boolean | undefined;
|
|
1083
|
+
confirmation?: "no_session" | "connected" | "no_daemon" | undefined;
|
|
783
1084
|
}>;
|
|
784
1085
|
export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
785
1086
|
/**
|
|
@@ -899,6 +1200,24 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
899
1200
|
* is a real rate rather than an inference, and a reconnecting page cannot inflate it.
|
|
900
1201
|
*/
|
|
901
1202
|
readonly APP_INSTRUMENTED: "app_instrumented";
|
|
1203
|
+
/**
|
|
1204
|
+
* A daemon has been up long enough that no app is going to arrive on its own.
|
|
1205
|
+
*
|
|
1206
|
+
* The exact counterpart of `app_instrumented`, and the reason it has to exist: that event only
|
|
1207
|
+
* fires on SUCCESS, so the far larger population — daemons that never get an app at all — is
|
|
1208
|
+
* measurable today only by the ABSENCE of an event, and an absence cannot distinguish "nothing
|
|
1209
|
+
* was wired" from "the process died before it could tell us" from "we never sent it".
|
|
1210
|
+
*
|
|
1211
|
+
* The funnel breaks here and nowhere else, so this is the one silence worth turning into a signal.
|
|
1212
|
+
* Fired ONCE per daemon run, and never after an app has connected, so a daemon that starts slowly
|
|
1213
|
+
* and then works reports nothing.
|
|
1214
|
+
*
|
|
1215
|
+
* Read it against `agentAttached`: a stalled daemon with no agent is a person who installed and
|
|
1216
|
+
* walked away, which is not a defect. A stalled daemon WITH an agent attached is the failure this
|
|
1217
|
+
* product currently has — the tools are there, something is asking for them, and there is no app
|
|
1218
|
+
* on the other end.
|
|
1219
|
+
*/
|
|
1220
|
+
readonly INSTRUMENTATION_STALLED: "instrumentation_stalled";
|
|
902
1221
|
/**
|
|
903
1222
|
* The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
|
|
904
1223
|
* completely invisible in the field.
|
|
@@ -934,6 +1253,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
934
1253
|
* human watching the screen would have caught" is the argument.
|
|
935
1254
|
*/
|
|
936
1255
|
readonly BUG_FOUND: "bug_found";
|
|
1256
|
+
/**
|
|
1257
|
+
* A tool could not do what was asked, and said so.
|
|
1258
|
+
*
|
|
1259
|
+
* The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
|
|
1260
|
+
* throws it away. So the largest cohort in the funnel — the users who connect an agent and never
|
|
1261
|
+
* drive — is visible only by subtraction, and the three genuinely different situations behind it
|
|
1262
|
+
* (nothing was ever wired here, the app is not running, a session was lost) arrive as one silence.
|
|
1263
|
+
*
|
|
1264
|
+
* `noSessionErrors` on the session summary counts one of those causes and only at the end of a
|
|
1265
|
+
* session, without the tool, without the discriminator, and without whether the agent tried again.
|
|
1266
|
+
* This carries the fact at the moment it happens. See issue #172.
|
|
1267
|
+
*/
|
|
1268
|
+
readonly TOOL_REFUSED: "tool_refused";
|
|
937
1269
|
}>;
|
|
938
1270
|
/** Client epoch-ms when the event happened (the server also stamps its own receive time). */
|
|
939
1271
|
ts: z.ZodNumber;
|
|
@@ -941,6 +1273,23 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
941
1273
|
version: z.ZodString;
|
|
942
1274
|
/** Runs inside CI? Separates real human DAU from pipeline traffic (both matter, differently). */
|
|
943
1275
|
ci: z.ZodBoolean;
|
|
1276
|
+
/**
|
|
1277
|
+
* ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
|
|
1278
|
+
*
|
|
1279
|
+
* `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
|
|
1280
|
+
* cloud agent sandbox — our own gate has landed in the user data with `ci: false`. This is the
|
|
1281
|
+
* second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
|
|
1282
|
+
* with no terminal. Never exclude a row because this is set; absent means nothing looked
|
|
1283
|
+
* automated, not that a human was present. See automation-hint.ts for the rejected signals.
|
|
1284
|
+
*/
|
|
1285
|
+
automation: z.ZodOptional<z.ZodNativeEnum<{
|
|
1286
|
+
/** A container runtime marker is present at the filesystem root. */
|
|
1287
|
+
readonly CONTAINER: "container";
|
|
1288
|
+
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
1289
|
+
readonly HOSTED_WORKSPACE: "hosted_workspace";
|
|
1290
|
+
/** Neither end of the process is attached to a terminal. The weakest of the three. */
|
|
1291
|
+
readonly NO_TTY: "no_tty";
|
|
1292
|
+
}>>;
|
|
944
1293
|
/**
|
|
945
1294
|
* What `projectId` was derived from. On EVERY event, not just the profile, because the core
|
|
946
1295
|
* counting questions ("users per project", "projects per user") run over all events and need to
|
|
@@ -1013,10 +1362,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1013
1362
|
text: string;
|
|
1014
1363
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1015
1364
|
source: "agent" | "human";
|
|
1365
|
+
impact?: string | undefined;
|
|
1016
1366
|
trace?: string | undefined;
|
|
1017
1367
|
rating?: number | undefined;
|
|
1018
1368
|
need?: string | undefined;
|
|
1019
|
-
impact?: string | undefined;
|
|
1020
1369
|
currentApproach?: string | undefined;
|
|
1021
1370
|
model?: string | undefined;
|
|
1022
1371
|
clientVersion?: string | undefined;
|
|
@@ -1031,10 +1380,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1031
1380
|
text: string;
|
|
1032
1381
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1033
1382
|
source: "agent" | "human";
|
|
1383
|
+
impact?: string | undefined;
|
|
1034
1384
|
trace?: string | undefined;
|
|
1035
1385
|
rating?: number | undefined;
|
|
1036
1386
|
need?: string | undefined;
|
|
1037
|
-
impact?: string | undefined;
|
|
1038
1387
|
currentApproach?: string | undefined;
|
|
1039
1388
|
model?: string | undefined;
|
|
1040
1389
|
clientVersion?: string | undefined;
|
|
@@ -1166,6 +1515,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1166
1515
|
errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1167
1516
|
errorsRecovered: z.ZodOptional<z.ZodNumber>;
|
|
1168
1517
|
errorsRepeated: z.ZodOptional<z.ZodNumber>;
|
|
1518
|
+
endedWithVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
1169
1519
|
final: z.ZodBoolean;
|
|
1170
1520
|
exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
|
|
1171
1521
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1227,6 +1577,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1227
1577
|
errorClasses?: Record<string, number> | undefined;
|
|
1228
1578
|
errorsRecovered?: number | undefined;
|
|
1229
1579
|
errorsRepeated?: number | undefined;
|
|
1580
|
+
endedWithVerdict?: boolean | undefined;
|
|
1230
1581
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1231
1582
|
}, {
|
|
1232
1583
|
durationMs: number;
|
|
@@ -1287,6 +1638,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1287
1638
|
errorClasses?: Record<string, number> | undefined;
|
|
1288
1639
|
errorsRecovered?: number | undefined;
|
|
1289
1640
|
errorsRepeated?: number | undefined;
|
|
1641
|
+
endedWithVerdict?: boolean | undefined;
|
|
1290
1642
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1291
1643
|
}>>;
|
|
1292
1644
|
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
@@ -1428,7 +1780,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1428
1780
|
readonly OUTCOME_PENDING: "outcome_pending";
|
|
1429
1781
|
readonly OUTCOME_UNREAD: "outcome_unread";
|
|
1430
1782
|
readonly UNSETTLED: "unsettled";
|
|
1783
|
+
readonly EVIDENCE_INCOMPLETE: "evidence_incomplete";
|
|
1431
1784
|
readonly PROVED: "proved";
|
|
1785
|
+
readonly ABSENCE_BLIND_SPOT: "absence_blind_spot";
|
|
1432
1786
|
}>>;
|
|
1433
1787
|
/**
|
|
1434
1788
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
@@ -1453,7 +1807,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1453
1807
|
passed: boolean;
|
|
1454
1808
|
falseGreenCaught: boolean;
|
|
1455
1809
|
durationMs?: number | undefined;
|
|
1456
|
-
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
1810
|
+
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1457
1811
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1458
1812
|
browser?: string | undefined;
|
|
1459
1813
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
@@ -1463,7 +1817,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1463
1817
|
passed: boolean;
|
|
1464
1818
|
falseGreenCaught: boolean;
|
|
1465
1819
|
durationMs?: number | undefined;
|
|
1466
|
-
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
1820
|
+
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1467
1821
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1468
1822
|
browser?: string | undefined;
|
|
1469
1823
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
@@ -1682,16 +2036,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1682
2036
|
stack: z.ZodOptional<z.ZodString>;
|
|
1683
2037
|
/** Whether the MCP registration step succeeded — the step most likely to fail silently. */
|
|
1684
2038
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
2039
|
+
/**
|
|
2040
|
+
* What `init` saw when it waited for an app to connect.
|
|
2041
|
+
*
|
|
2042
|
+
* ABSENT means it never looked, which is the honest answer for every scripted run: `init` only
|
|
2043
|
+
* waits when a human is at the terminal. Read an absent value as "not measured", never as a
|
|
2044
|
+
* failure to connect, or the funnel reads scripted installs as losses.
|
|
2045
|
+
*/
|
|
2046
|
+
confirmation: z.ZodOptional<z.ZodNativeEnum<{
|
|
2047
|
+
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
2048
|
+
readonly CONNECTED: "connected";
|
|
2049
|
+
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
2050
|
+
readonly NO_DAEMON: "no_daemon";
|
|
2051
|
+
/** A daemon was up and no app connected inside the window — the dev server is the outstanding step. */
|
|
2052
|
+
readonly NO_SESSION: "no_session";
|
|
2053
|
+
}>>;
|
|
1685
2054
|
}, "strip", z.ZodTypeAny, {
|
|
1686
2055
|
ok: boolean;
|
|
1687
2056
|
stack?: string | undefined;
|
|
1688
2057
|
reason?: string | undefined;
|
|
1689
2058
|
mcpRegistered?: boolean | undefined;
|
|
2059
|
+
confirmation?: "no_session" | "connected" | "no_daemon" | undefined;
|
|
1690
2060
|
}, {
|
|
1691
2061
|
ok: boolean;
|
|
1692
2062
|
stack?: string | undefined;
|
|
1693
2063
|
reason?: string | undefined;
|
|
1694
2064
|
mcpRegistered?: boolean | undefined;
|
|
2065
|
+
confirmation?: "no_session" | "connected" | "no_daemon" | undefined;
|
|
1695
2066
|
}>>;
|
|
1696
2067
|
/** Only on `bug_found`. */
|
|
1697
2068
|
bug: z.ZodOptional<z.ZodObject<{
|
|
@@ -1739,41 +2110,126 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1739
2110
|
*/
|
|
1740
2111
|
repeat: z.ZodBoolean;
|
|
1741
2112
|
/**
|
|
1742
|
-
* Whose fault it was
|
|
1743
|
-
*
|
|
2113
|
+
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
2114
|
+
*
|
|
2115
|
+
* Absence and "we looked and could not tell" are different facts, and only one of them is a
|
|
2116
|
+
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
2117
|
+
* `BugAttribution` for why `app` needs positive evidence.
|
|
1744
2118
|
*/
|
|
1745
|
-
attribution: z.
|
|
2119
|
+
attribution: z.ZodNativeEnum<{
|
|
1746
2120
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
1747
2121
|
readonly APP: "app";
|
|
1748
2122
|
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
1749
2123
|
readonly REQUEST: "request";
|
|
1750
2124
|
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
1751
2125
|
readonly RETICLE: "reticle";
|
|
1752
|
-
|
|
2126
|
+
/**
|
|
2127
|
+
* The classifier looked and the evidence could not say.
|
|
2128
|
+
*
|
|
2129
|
+
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
2130
|
+
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
2131
|
+
* testid" identically, and an owner invented for it would put a guess into the one number we
|
|
2132
|
+
* intend to publish. Exclude it from a defect count; never fold it into `app`.
|
|
2133
|
+
*/
|
|
2134
|
+
readonly UNCLASSIFIED: "unclassified";
|
|
2135
|
+
}>;
|
|
2136
|
+
/**
|
|
2137
|
+
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
2138
|
+
* fingerprint, regardless of when or where it was found.
|
|
2139
|
+
*
|
|
2140
|
+
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
2141
|
+
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
2142
|
+
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
2143
|
+
* agents in one run.
|
|
2144
|
+
*
|
|
2145
|
+
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
2146
|
+
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
2147
|
+
*/
|
|
2148
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
1753
2149
|
}, "strip", z.ZodTypeAny, {
|
|
1754
2150
|
kind: string;
|
|
1755
2151
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2152
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
1756
2153
|
falseGreen: boolean;
|
|
1757
2154
|
repeat: boolean;
|
|
1758
|
-
attribution?: "app" | "reticle" | "request" | undefined;
|
|
1759
2155
|
tool?: string | undefined;
|
|
2156
|
+
fingerprint?: string | undefined;
|
|
1760
2157
|
}, {
|
|
1761
2158
|
kind: string;
|
|
1762
2159
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2160
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
1763
2161
|
falseGreen: boolean;
|
|
1764
2162
|
repeat: boolean;
|
|
1765
|
-
attribution?: "app" | "reticle" | "request" | undefined;
|
|
1766
2163
|
tool?: string | undefined;
|
|
2164
|
+
fingerprint?: string | undefined;
|
|
2165
|
+
}>>;
|
|
2166
|
+
/** Only on `tool_refused`: which tool, why, and whether the agent tried the same thing again. */
|
|
2167
|
+
refusal: z.ZodOptional<z.ZodObject<{
|
|
2168
|
+
/** Which tool. A name from our own fixed namespace, never app data. */
|
|
2169
|
+
tool: z.ZodString;
|
|
2170
|
+
reason: z.ZodNativeEnum<{
|
|
2171
|
+
/** There was no app to reach: nothing connected, no session by that id, or several with none named. */
|
|
2172
|
+
readonly NO_SESSION: "no_session";
|
|
2173
|
+
/** The target did not exist: a stale ref, a missing baseline, an option value the select has not got. */
|
|
2174
|
+
readonly NO_MATCH: "no_match";
|
|
2175
|
+
/** Reticle refuses to pretend: a rich-text surface, a disabled field, a destructive control. */
|
|
2176
|
+
readonly UNSUPPORTED: "unsupported";
|
|
2177
|
+
/** The call did not match the schema, or named a value our own validators reject. */
|
|
2178
|
+
readonly BAD_ARGS: "bad_args";
|
|
2179
|
+
/** Nothing is wrong with the call; the world is not ready — a throttled tab, a timeout, no browser. */
|
|
2180
|
+
readonly NOT_READY: "not_ready";
|
|
2181
|
+
/** A refusal this list does not name. A classifier that cannot say "I don't know" lies instead. */
|
|
2182
|
+
readonly OTHER: "other";
|
|
2183
|
+
}>;
|
|
2184
|
+
/**
|
|
2185
|
+
* TRUE when the call immediately before this one was the SAME tool, also refused.
|
|
2186
|
+
*
|
|
2187
|
+
* Reported on the RETRY rather than on the first refusal, because the first refusal has to be sent
|
|
2188
|
+
* at the moment it happens: deferring it until the next call is known would lose it entirely for
|
|
2189
|
+
* the agent that gives up, and that agent is the whole population this event exists to describe.
|
|
2190
|
+
* So count `retried: true` for retries; the ratio against all refusals is whether our diagnosis
|
|
2191
|
+
* gets anybody unstuck.
|
|
2192
|
+
*/
|
|
2193
|
+
retried: z.ZodBoolean;
|
|
2194
|
+
}, "strip", z.ZodTypeAny, {
|
|
2195
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2196
|
+
tool: string;
|
|
2197
|
+
retried: boolean;
|
|
2198
|
+
}, {
|
|
2199
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2200
|
+
tool: string;
|
|
2201
|
+
retried: boolean;
|
|
1767
2202
|
}>>;
|
|
1768
2203
|
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
1769
2204
|
outage: z.ZodOptional<z.ZodObject<{
|
|
1770
2205
|
stage: z.ZodNativeEnum<{
|
|
1771
2206
|
readonly FIRST: "first";
|
|
1772
2207
|
readonly BUDGET_SPENT: "budget_spent";
|
|
2208
|
+
/**
|
|
2209
|
+
* The link came back on its own, and `attempts` says what it cost.
|
|
2210
|
+
*
|
|
2211
|
+
* Without it `first` is unfalsifiable. It is emitted at the moment of the drop, when the attempt
|
|
2212
|
+
* counter is 1 by construction and the cap keeps any later drop from ever replacing it — so every
|
|
2213
|
+
* event in the field carried the same stage and the same attempt count, and neither could carry
|
|
2214
|
+
* another. That reads as "reconnection never advances past the first attempt" and it is really
|
|
2215
|
+
* "this event is emitted before there is anything to say". `recovered` is the counterpart that
|
|
2216
|
+
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
2217
|
+
* whose tools never came back.
|
|
2218
|
+
*/
|
|
2219
|
+
readonly RECOVERED: "recovered";
|
|
1773
2220
|
}>;
|
|
1774
2221
|
reason: z.ZodNativeEnum<{
|
|
1775
|
-
/** The SSE stream ended cleanly
|
|
2222
|
+
/** The SSE stream ended cleanly and nothing said why. */
|
|
1776
2223
|
readonly SSE_ENDED: "sse_ended";
|
|
2224
|
+
/**
|
|
2225
|
+
* The daemon ANNOUNCED that it was retiring before it closed the stream.
|
|
2226
|
+
*
|
|
2227
|
+
* Not an outage the agent suffered, and separating it is the whole point: a scheduled shutdown and
|
|
2228
|
+
* a daemon dying under a live client are the same clean stream end on this side of the socket, so
|
|
2229
|
+
* the metric meant to say "the agent lost its tools" spent most of its volume counting the daemon
|
|
2230
|
+
* going to sleep exactly as designed. Split out, `sse_ended` finally means what it says.
|
|
2231
|
+
*/
|
|
2232
|
+
readonly DAEMON_SHUTDOWN: "daemon_shutdown";
|
|
1777
2233
|
/** The stream errored. */
|
|
1778
2234
|
readonly SSE_ERROR: "sse_error";
|
|
1779
2235
|
/** The socket died under us with neither `end` nor `error` — daemon killed, network reset. */
|
|
@@ -1800,14 +2256,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1800
2256
|
*/
|
|
1801
2257
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
1802
2258
|
}, "strip", z.ZodTypeAny, {
|
|
1803
|
-
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2259
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
1804
2260
|
attempts: number;
|
|
1805
|
-
stage: "first" | "budget_spent";
|
|
2261
|
+
stage: "first" | "budget_spent" | "recovered";
|
|
1806
2262
|
pendingLost?: number | undefined;
|
|
1807
2263
|
}, {
|
|
1808
|
-
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2264
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
1809
2265
|
attempts: number;
|
|
1810
|
-
stage: "first" | "budget_spent";
|
|
2266
|
+
stage: "first" | "budget_spent" | "recovered";
|
|
1811
2267
|
pendingLost?: number | undefined;
|
|
1812
2268
|
}>>;
|
|
1813
2269
|
/** Only on `app_instrumented`: the install's second half finally happening. */
|
|
@@ -1827,8 +2283,47 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1827
2283
|
initialized: boolean;
|
|
1828
2284
|
agentAttached: boolean;
|
|
1829
2285
|
}>>;
|
|
2286
|
+
/** Only on `instrumentation_stalled`: the install's second half not happening. */
|
|
2287
|
+
stall: z.ZodOptional<z.ZodObject<{
|
|
2288
|
+
/** Whether `reticle init` had been run in this directory (a projectId is stamped). */
|
|
2289
|
+
initialized: z.ZodBoolean;
|
|
2290
|
+
/** Whether an MCP client is attached. The difference between an idle install and a broken one. */
|
|
2291
|
+
agentAttached: z.ZodBoolean;
|
|
2292
|
+
/** How long the daemon has been up with no app on the other end. */
|
|
2293
|
+
msWaited: z.ZodNumber;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
initialized: boolean;
|
|
2296
|
+
agentAttached: boolean;
|
|
2297
|
+
msWaited: number;
|
|
2298
|
+
}, {
|
|
2299
|
+
initialized: boolean;
|
|
2300
|
+
agentAttached: boolean;
|
|
2301
|
+
msWaited: number;
|
|
2302
|
+
}>>;
|
|
2303
|
+
/**
|
|
2304
|
+
* Only on `reticle_installed` / `init_completed`: which published route brought this install in.
|
|
2305
|
+
*
|
|
2306
|
+
* A scalar rather than a block because it belongs to two different events that have no payload in
|
|
2307
|
+
* common, and because there is exactly one fact to carry. Absent on every other kind.
|
|
2308
|
+
*/
|
|
2309
|
+
installSource: z.ZodOptional<z.ZodNativeEnum<{
|
|
2310
|
+
/** The canonical SKILL.md paste URL — the marker is in the command SKILL.md tells the agent to run. */
|
|
2311
|
+
readonly SKILL_FILE: "skill_file";
|
|
2312
|
+
/** The `npx skills add` package, which ships its own copy of the skill carrying its own marker. */
|
|
2313
|
+
readonly NPX_SKILL: "npx_skill";
|
|
2314
|
+
/** The Claude Code plugin, which sets the marker in the `env` of the MCP server it registers. */
|
|
2315
|
+
readonly PLUGIN: "plugin";
|
|
2316
|
+
/** docs.reticle.sh, whose install snippets carry the marker. */
|
|
2317
|
+
readonly DOCS_SITE: "docs_site";
|
|
2318
|
+
/** The repository README's install snippet. */
|
|
2319
|
+
readonly README: "readme";
|
|
2320
|
+
/** Somebody typed the command with no channel in front of it. Only ever self-declared. */
|
|
2321
|
+
readonly CLI_DIRECT: "cli_direct";
|
|
2322
|
+
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
2323
|
+
readonly UNKNOWN: "unknown";
|
|
2324
|
+
}>>;
|
|
1830
2325
|
}, "strip", z.ZodTypeAny, {
|
|
1831
|
-
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";
|
|
2326
|
+
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" | "instrumentation_stalled" | "mcp_connection_lost" | "init_completed" | "bug_found" | "tool_refused";
|
|
1832
2327
|
version: string;
|
|
1833
2328
|
ci: boolean;
|
|
1834
2329
|
v: 3;
|
|
@@ -1841,10 +2336,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1841
2336
|
bug?: {
|
|
1842
2337
|
kind: string;
|
|
1843
2338
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2339
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
1844
2340
|
falseGreen: boolean;
|
|
1845
2341
|
repeat: boolean;
|
|
1846
|
-
attribution?: "app" | "reticle" | "request" | undefined;
|
|
1847
2342
|
tool?: string | undefined;
|
|
2343
|
+
fingerprint?: string | undefined;
|
|
1848
2344
|
} | undefined;
|
|
1849
2345
|
project?: {
|
|
1850
2346
|
git: "none" | "local_only" | "remote";
|
|
@@ -1923,18 +2419,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1923
2419
|
errorClasses?: Record<string, number> | undefined;
|
|
1924
2420
|
errorsRecovered?: number | undefined;
|
|
1925
2421
|
errorsRepeated?: number | undefined;
|
|
2422
|
+
endedWithVerdict?: boolean | undefined;
|
|
1926
2423
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1927
2424
|
} | undefined;
|
|
2425
|
+
automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
|
|
1928
2426
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
1929
2427
|
tzOffsetMin?: number | undefined;
|
|
1930
2428
|
feedback?: {
|
|
1931
2429
|
text: string;
|
|
1932
2430
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1933
2431
|
source: "agent" | "human";
|
|
2432
|
+
impact?: string | undefined;
|
|
1934
2433
|
trace?: string | undefined;
|
|
1935
2434
|
rating?: number | undefined;
|
|
1936
2435
|
need?: string | undefined;
|
|
1937
|
-
impact?: string | undefined;
|
|
1938
2436
|
currentApproach?: string | undefined;
|
|
1939
2437
|
model?: string | undefined;
|
|
1940
2438
|
clientVersion?: string | undefined;
|
|
@@ -1954,7 +2452,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1954
2452
|
passed: boolean;
|
|
1955
2453
|
falseGreenCaught: boolean;
|
|
1956
2454
|
durationMs?: number | undefined;
|
|
1957
|
-
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
2455
|
+
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1958
2456
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1959
2457
|
browser?: string | undefined;
|
|
1960
2458
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
@@ -2004,11 +2502,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2004
2502
|
stack?: string | undefined;
|
|
2005
2503
|
reason?: string | undefined;
|
|
2006
2504
|
mcpRegistered?: boolean | undefined;
|
|
2505
|
+
confirmation?: "no_session" | "connected" | "no_daemon" | undefined;
|
|
2506
|
+
} | undefined;
|
|
2507
|
+
refusal?: {
|
|
2508
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2509
|
+
tool: string;
|
|
2510
|
+
retried: boolean;
|
|
2007
2511
|
} | undefined;
|
|
2008
2512
|
outage?: {
|
|
2009
|
-
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2513
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2010
2514
|
attempts: number;
|
|
2011
|
-
stage: "first" | "budget_spent";
|
|
2515
|
+
stage: "first" | "budget_spent" | "recovered";
|
|
2012
2516
|
pendingLost?: number | undefined;
|
|
2013
2517
|
} | undefined;
|
|
2014
2518
|
instrumentation?: {
|
|
@@ -2016,8 +2520,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2016
2520
|
initialized: boolean;
|
|
2017
2521
|
agentAttached: boolean;
|
|
2018
2522
|
} | undefined;
|
|
2523
|
+
stall?: {
|
|
2524
|
+
initialized: boolean;
|
|
2525
|
+
agentAttached: boolean;
|
|
2526
|
+
msWaited: number;
|
|
2527
|
+
} | undefined;
|
|
2528
|
+
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2019
2529
|
}, {
|
|
2020
|
-
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";
|
|
2530
|
+
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" | "instrumentation_stalled" | "mcp_connection_lost" | "init_completed" | "bug_found" | "tool_refused";
|
|
2021
2531
|
version: string;
|
|
2022
2532
|
ci: boolean;
|
|
2023
2533
|
v: 3;
|
|
@@ -2030,10 +2540,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2030
2540
|
bug?: {
|
|
2031
2541
|
kind: string;
|
|
2032
2542
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2543
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2033
2544
|
falseGreen: boolean;
|
|
2034
2545
|
repeat: boolean;
|
|
2035
|
-
attribution?: "app" | "reticle" | "request" | undefined;
|
|
2036
2546
|
tool?: string | undefined;
|
|
2547
|
+
fingerprint?: string | undefined;
|
|
2037
2548
|
} | undefined;
|
|
2038
2549
|
project?: {
|
|
2039
2550
|
git: "none" | "local_only" | "remote";
|
|
@@ -2112,18 +2623,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2112
2623
|
errorClasses?: Record<string, number> | undefined;
|
|
2113
2624
|
errorsRecovered?: number | undefined;
|
|
2114
2625
|
errorsRepeated?: number | undefined;
|
|
2626
|
+
endedWithVerdict?: boolean | undefined;
|
|
2115
2627
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2116
2628
|
} | undefined;
|
|
2629
|
+
automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
|
|
2117
2630
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2118
2631
|
tzOffsetMin?: number | undefined;
|
|
2119
2632
|
feedback?: {
|
|
2120
2633
|
text: string;
|
|
2121
2634
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2122
2635
|
source: "agent" | "human";
|
|
2636
|
+
impact?: string | undefined;
|
|
2123
2637
|
trace?: string | undefined;
|
|
2124
2638
|
rating?: number | undefined;
|
|
2125
2639
|
need?: string | undefined;
|
|
2126
|
-
impact?: string | undefined;
|
|
2127
2640
|
currentApproach?: string | undefined;
|
|
2128
2641
|
model?: string | undefined;
|
|
2129
2642
|
clientVersion?: string | undefined;
|
|
@@ -2143,7 +2656,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2143
2656
|
passed: boolean;
|
|
2144
2657
|
falseGreenCaught: boolean;
|
|
2145
2658
|
durationMs?: number | undefined;
|
|
2146
|
-
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
|
|
2659
|
+
reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2147
2660
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2148
2661
|
browser?: string | undefined;
|
|
2149
2662
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
@@ -2193,11 +2706,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2193
2706
|
stack?: string | undefined;
|
|
2194
2707
|
reason?: string | undefined;
|
|
2195
2708
|
mcpRegistered?: boolean | undefined;
|
|
2709
|
+
confirmation?: "no_session" | "connected" | "no_daemon" | undefined;
|
|
2710
|
+
} | undefined;
|
|
2711
|
+
refusal?: {
|
|
2712
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2713
|
+
tool: string;
|
|
2714
|
+
retried: boolean;
|
|
2196
2715
|
} | undefined;
|
|
2197
2716
|
outage?: {
|
|
2198
|
-
reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2717
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2199
2718
|
attempts: number;
|
|
2200
|
-
stage: "first" | "budget_spent";
|
|
2719
|
+
stage: "first" | "budget_spent" | "recovered";
|
|
2201
2720
|
pendingLost?: number | undefined;
|
|
2202
2721
|
} | undefined;
|
|
2203
2722
|
instrumentation?: {
|
|
@@ -2205,5 +2724,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2205
2724
|
initialized: boolean;
|
|
2206
2725
|
agentAttached: boolean;
|
|
2207
2726
|
} | undefined;
|
|
2727
|
+
stall?: {
|
|
2728
|
+
initialized: boolean;
|
|
2729
|
+
agentAttached: boolean;
|
|
2730
|
+
msWaited: number;
|
|
2731
|
+
} | undefined;
|
|
2732
|
+
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2208
2733
|
}>;
|
|
2209
2734
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|