@reticlehq/core 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/artifacts/flow-composition.d.ts +3 -2
  2. package/dist/artifacts/flow-constants.d.ts +59 -2
  3. package/dist/artifacts/flow-constants.js +63 -3
  4. package/dist/artifacts/flow-expect-flat.d.ts +260 -0
  5. package/dist/artifacts/flow-expect-flat.js +284 -0
  6. package/dist/artifacts/flow-mutation-target.d.ts +0 -1
  7. package/dist/artifacts/flow-mutation-target.js +26 -2
  8. package/dist/artifacts/flow-step-tool.d.ts +2 -0
  9. package/dist/artifacts/flow-types.d.ts +1071 -1225
  10. package/dist/artifacts/flow-types.js +96 -140
  11. package/dist/artifacts/impact.d.ts +200 -20
  12. package/dist/artifacts/impact.js +72 -0
  13. package/dist/artifacts/journal.d.ts +85 -6
  14. package/dist/artifacts/journal.js +51 -1
  15. package/dist/hooks/hook-events.d.ts +18 -18
  16. package/dist/hud-entry.d.ts +9 -0
  17. package/dist/hud-entry.js +9 -0
  18. package/dist/identity/brand.d.ts +46 -0
  19. package/dist/identity/brand.js +7 -0
  20. package/dist/identity/source-constants.d.ts +11 -0
  21. package/dist/identity/source-constants.js +11 -0
  22. package/dist/index.d.ts +9 -0
  23. package/dist/index.js +26 -2
  24. package/dist/onboarding.d.ts +2 -2
  25. package/dist/realm/registry.d.ts +0 -8
  26. package/dist/realm/registry.js +1 -11
  27. package/dist/schema/event-message.json +3 -1
  28. package/dist/schema/event-payloads.json +74 -1
  29. package/dist/schema/event-type.json +3 -1
  30. package/dist/schema/reticle-event.json +3 -1
  31. package/dist/schema/reticle-message.json +3 -1
  32. package/dist/source-constants.cjs +1 -0
  33. package/dist/source-constants.d.cts +1 -0
  34. package/dist/telemetry-feedback.d.ts +6 -6
  35. package/dist/telemetry-refusal.d.ts +2 -2
  36. package/dist/telemetry-session.d.ts +25 -2
  37. package/dist/telemetry-session.js +13 -0
  38. package/dist/telemetry.d.ts +184 -102
  39. package/dist/telemetry.js +29 -1
  40. package/dist/verdict/consequence.d.ts +10 -0
  41. package/dist/verdict/consequence.js +13 -0
  42. package/dist/verdict/intent.d.ts +36 -12
  43. package/dist/verdict/intent.js +66 -10
  44. package/dist/verdict/predicate-tree.d.ts +47 -0
  45. package/dist/verdict/predicate-tree.js +146 -0
  46. package/dist/verdict/predicate.d.ts +129 -0
  47. package/dist/verdict/predicate.js +394 -0
  48. package/dist/verdict/property-assertion.d.ts +191 -0
  49. package/dist/verdict/property-assertion.js +42 -0
  50. package/dist/verdict/security.js +16 -4
  51. package/dist/verdict/verdict-attribution.d.ts +52 -0
  52. package/dist/verdict/verdict-attribution.js +87 -0
  53. package/dist/verdict/verification-run.d.ts +98 -84
  54. package/dist/verdict/verification-run.js +8 -1
  55. package/dist/verdict/verified-constants.d.ts +18 -0
  56. package/dist/verdict/verified-constants.js +18 -0
  57. package/dist/wire/constants/constants.d.ts +108 -98
  58. package/dist/wire/constants/constants.js +116 -97
  59. package/dist/wire/constants/discovery.d.ts +25 -0
  60. package/dist/wire/constants/discovery.js +25 -0
  61. package/dist/wire/constants/event-types.d.ts +122 -0
  62. package/dist/wire/constants/event-types.js +121 -0
  63. package/dist/wire/constants/hud-controls.d.ts +19 -0
  64. package/dist/wire/constants/hud-controls.js +95 -0
  65. package/dist/wire/constants/hud-use.d.ts +27 -0
  66. package/dist/wire/constants/hud-use.js +24 -0
  67. package/dist/wire/constants/session-constants.d.ts +24 -0
  68. package/dist/wire/constants/session-constants.js +24 -0
  69. package/dist/wire/event-payloads.d.ts +70 -10
  70. package/dist/wire/event-payloads.js +20 -1
  71. package/dist/wire/messages.d.ts +90 -48
  72. package/dist/wire/messages.js +17 -0
  73. package/dist/wire/net.d.ts +42 -0
  74. package/dist/wire/net.js +48 -0
  75. package/dist/wire/snapshot-tree.d.ts +33 -0
  76. package/dist/wire/snapshot-tree.js +43 -0
  77. package/dist/wire/state-select.d.ts +2 -1
  78. package/dist/wire/state-select.js +56 -3
  79. package/dist/wire/toon.js +28 -7
  80. package/dist/wire/types.d.ts +91 -66
  81. package/dist/wire/types.js +23 -1
  82. package/package.json +5 -1
@@ -225,11 +225,35 @@ export declare const BrowserLaunchKind: {
225
225
  readonly POOLED: "pooled";
226
226
  };
227
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];
228
245
  /** The outcome of one verification. `verified` is Reticle's own honesty grade, not merely pass/fail. */
229
246
  export declare const VerificationSchema: z.ZodObject<{
230
247
  /** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
231
248
  via: z.ZodString;
232
- /** `yes` | `no` | `unknown` — the honest verdict, where `unknown` means the evidence could not decide. */
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
+ */
233
257
  verified: z.ZodString;
234
258
  /** Did the underlying assertion pass? Distinct from `verified` on purpose. */
235
259
  passed: z.ZodBoolean;
@@ -282,6 +306,7 @@ export declare const VerificationSchema: z.ZodObject<{
282
306
  * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
283
307
  */
284
308
  reason: z.ZodOptional<z.ZodNativeEnum<{
309
+ readonly VERSION_SKEW: "version_skew";
285
310
  readonly CAPABILITY_ABSENT: "capability-absent";
286
311
  readonly INCONCLUSIVE: "inconclusive";
287
312
  readonly OBSERVATION_LOST: "observation_lost";
@@ -314,28 +339,39 @@ export declare const VerificationSchema: z.ZodObject<{
314
339
  readonly BUFFER_LOSS: "buffer_loss";
315
340
  readonly TRANSPORT_GAP: "transport_gap";
316
341
  readonly BLIND_SPOT: "blind_spot";
342
+ readonly JOURNAL_LOSS: "journal_loss";
317
343
  readonly OTHER: "other";
318
344
  }>>;
345
+ /**
346
+ * Set when one of our OWN drives produced this verdict rather than the user's agent — see
347
+ * `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
348
+ */
349
+ driven: z.ZodOptional<z.ZodNativeEnum<{
350
+ /** A model inside the daemon drove this, on the user's behalf. */
351
+ readonly HARNESS: "harness";
352
+ }>>;
319
353
  }, "strip", z.ZodTypeAny, {
320
354
  verified: string;
321
355
  via: string;
322
356
  passed: boolean;
323
357
  falseGreenCaught: boolean;
324
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
325
358
  durationMs?: number | undefined;
359
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
326
360
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
361
+ driven?: "harness" | undefined;
327
362
  browser?: string | undefined;
328
- uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
363
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
329
364
  }, {
330
365
  verified: string;
331
366
  via: string;
332
367
  passed: boolean;
333
368
  falseGreenCaught: boolean;
334
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
335
369
  durationMs?: number | undefined;
370
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
336
371
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
372
+ driven?: "harness" | undefined;
337
373
  browser?: string | undefined;
338
- uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
374
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
339
375
  }>;
340
376
  export type Verification = z.infer<typeof VerificationSchema>;
341
377
  /** Which way the installed version moved, and between which versions. */
@@ -354,14 +390,14 @@ export declare const VersionChangeSchema: z.ZodObject<{
354
390
  /** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
355
391
  direction: z.ZodString;
356
392
  }, "strip", z.ZodTypeAny, {
357
- direction: string;
358
393
  from: string;
359
394
  to: string;
395
+ direction: string;
360
396
  nudged?: boolean | undefined;
361
397
  }, {
362
- direction: string;
363
398
  from: string;
364
399
  to: string;
400
+ direction: string;
365
401
  nudged?: boolean | undefined;
366
402
  }>;
367
403
  export type VersionChange = z.infer<typeof VersionChangeSchema>;
@@ -1257,13 +1293,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1257
1293
  }, "strip", z.ZodTypeAny, {
1258
1294
  text: string;
1259
1295
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
1260
- source: "agent" | "human";
1296
+ source: "human" | "agent";
1261
1297
  impact?: string | undefined;
1298
+ model?: string | undefined;
1262
1299
  trace?: string | undefined;
1263
1300
  rating?: number | undefined;
1264
1301
  need?: string | undefined;
1265
1302
  currentApproach?: string | undefined;
1266
- model?: string | undefined;
1267
1303
  clientVersion?: string | undefined;
1268
1304
  stack?: string | undefined;
1269
1305
  stackMajor?: number | undefined;
@@ -1271,17 +1307,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1271
1307
  engine?: "blink" | "gecko" | "webkit" | undefined;
1272
1308
  driver?: "cdp" | "sdk" | undefined;
1273
1309
  client?: string | undefined;
1274
- mcpScope?: "user" | "project" | undefined;
1310
+ mcpScope?: "project" | "user" | undefined;
1275
1311
  }, {
1276
1312
  text: string;
1277
1313
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
1278
- source: "agent" | "human";
1314
+ source: "human" | "agent";
1279
1315
  impact?: string | undefined;
1316
+ model?: string | undefined;
1280
1317
  trace?: string | undefined;
1281
1318
  rating?: number | undefined;
1282
1319
  need?: string | undefined;
1283
1320
  currentApproach?: string | undefined;
1284
- model?: string | undefined;
1285
1321
  clientVersion?: string | undefined;
1286
1322
  stack?: string | undefined;
1287
1323
  stackMajor?: number | undefined;
@@ -1289,7 +1325,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1289
1325
  engine?: "blink" | "gecko" | "webkit" | undefined;
1290
1326
  driver?: "cdp" | "sdk" | undefined;
1291
1327
  client?: string | undefined;
1292
- mcpScope?: "user" | "project" | undefined;
1328
+ mcpScope?: "project" | "user" | undefined;
1293
1329
  }>>;
1294
1330
  /** Human or agent. Absent on events that are neither (a crash, a version change). */
1295
1331
  actor: z.ZodOptional<z.ZodNativeEnum<{
@@ -1416,6 +1452,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1416
1452
  endedWithVerdict: z.ZodOptional<z.ZodBoolean>;
1417
1453
  updateNudged: z.ZodOptional<z.ZodBoolean>;
1418
1454
  updateOffered: z.ZodOptional<z.ZodString>;
1455
+ hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1456
+ hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1457
+ hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1458
+ hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1459
+ hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
1419
1460
  final: z.ZodBoolean;
1420
1461
  exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
1421
1462
  }, "strip", z.ZodTypeAny, {
@@ -1482,6 +1523,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1482
1523
  endedWithVerdict?: boolean | undefined;
1483
1524
  updateNudged?: boolean | undefined;
1484
1525
  updateOffered?: string | undefined;
1526
+ hudControls?: Record<string, number> | undefined;
1527
+ hudViewMs?: Record<string, number> | undefined;
1528
+ hudPanelMs?: Record<string, number> | undefined;
1529
+ hudJourney?: string[] | undefined;
1530
+ hudJourneyCut?: true | undefined;
1485
1531
  exit?: "signal" | "idle" | "unknown" | undefined;
1486
1532
  }, {
1487
1533
  durationMs: number;
@@ -1547,6 +1593,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1547
1593
  endedWithVerdict?: boolean | undefined;
1548
1594
  updateNudged?: boolean | undefined;
1549
1595
  updateOffered?: string | undefined;
1596
+ hudControls?: Record<string, number> | undefined;
1597
+ hudViewMs?: Record<string, number> | undefined;
1598
+ hudPanelMs?: Record<string, number> | undefined;
1599
+ hudJourney?: string[] | undefined;
1600
+ hudJourneyCut?: true | undefined;
1550
1601
  exit?: "signal" | "idle" | "unknown" | undefined;
1551
1602
  }>>;
1552
1603
  /** Only on `project_profiled`: the shape and depth-of-use of the project. */
@@ -1606,9 +1657,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1606
1657
  featureDepth: number;
1607
1658
  stack?: string | undefined;
1608
1659
  stackMajor?: number | undefined;
1660
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1609
1661
  stackSource?: "cwd" | "workspace" | undefined;
1610
1662
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
1611
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1612
1663
  monorepo?: boolean | undefined;
1613
1664
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
1614
1665
  ageWeeks?: number | undefined;
@@ -1626,9 +1677,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1626
1677
  featureDepth: number;
1627
1678
  stack?: string | undefined;
1628
1679
  stackMajor?: number | undefined;
1680
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1629
1681
  stackSource?: "cwd" | "workspace" | undefined;
1630
1682
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
1631
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1632
1683
  monorepo?: boolean | undefined;
1633
1684
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
1634
1685
  ageWeeks?: number | undefined;
@@ -1639,7 +1690,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1639
1690
  verification: z.ZodOptional<z.ZodObject<{
1640
1691
  /** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
1641
1692
  via: z.ZodString;
1642
- /** `yes` | `no` | `unknown` — the honest verdict, where `unknown` means the evidence could not decide. */
1693
+ /**
1694
+ * `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
1695
+ *
1696
+ * FOUR values, not three. This comment said three for long enough that a dashboard written from it
1697
+ * silently drops the bucket that is most actionable: `no-fault` means the window was clean and
1698
+ * nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
1699
+ * app problem, and `unknown` means the evidence could not decide.
1700
+ */
1643
1701
  verified: z.ZodString;
1644
1702
  /** Did the underlying assertion pass? Distinct from `verified` on purpose. */
1645
1703
  passed: z.ZodBoolean;
@@ -1692,6 +1750,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1692
1750
  * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
1693
1751
  */
1694
1752
  reason: z.ZodOptional<z.ZodNativeEnum<{
1753
+ readonly VERSION_SKEW: "version_skew";
1695
1754
  readonly CAPABILITY_ABSENT: "capability-absent";
1696
1755
  readonly INCONCLUSIVE: "inconclusive";
1697
1756
  readonly OBSERVATION_LOST: "observation_lost";
@@ -1724,28 +1783,39 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1724
1783
  readonly BUFFER_LOSS: "buffer_loss";
1725
1784
  readonly TRANSPORT_GAP: "transport_gap";
1726
1785
  readonly BLIND_SPOT: "blind_spot";
1786
+ readonly JOURNAL_LOSS: "journal_loss";
1727
1787
  readonly OTHER: "other";
1728
1788
  }>>;
1789
+ /**
1790
+ * Set when one of our OWN drives produced this verdict rather than the user's agent — see
1791
+ * `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
1792
+ */
1793
+ driven: z.ZodOptional<z.ZodNativeEnum<{
1794
+ /** A model inside the daemon drove this, on the user's behalf. */
1795
+ readonly HARNESS: "harness";
1796
+ }>>;
1729
1797
  }, "strip", z.ZodTypeAny, {
1730
1798
  verified: string;
1731
1799
  via: string;
1732
1800
  passed: boolean;
1733
1801
  falseGreenCaught: boolean;
1734
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1735
1802
  durationMs?: number | undefined;
1803
+ reason?: "version_skew" | "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;
1736
1804
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1805
+ driven?: "harness" | undefined;
1737
1806
  browser?: string | undefined;
1738
- uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
1807
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
1739
1808
  }, {
1740
1809
  verified: string;
1741
1810
  via: string;
1742
1811
  passed: boolean;
1743
1812
  falseGreenCaught: boolean;
1744
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1745
1813
  durationMs?: number | undefined;
1814
+ reason?: "version_skew" | "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;
1746
1815
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1816
+ driven?: "harness" | undefined;
1747
1817
  browser?: string | undefined;
1748
- uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
1818
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
1749
1819
  }>>;
1750
1820
  /** Only on `version_changed`. */
1751
1821
  versionChange: z.ZodOptional<z.ZodObject<{
@@ -1763,14 +1833,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1763
1833
  /** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
1764
1834
  direction: z.ZodString;
1765
1835
  }, "strip", z.ZodTypeAny, {
1766
- direction: string;
1767
1836
  from: string;
1768
1837
  to: string;
1838
+ direction: string;
1769
1839
  nudged?: boolean | undefined;
1770
1840
  }, {
1771
- direction: string;
1772
1841
  from: string;
1773
1842
  to: string;
1843
+ direction: string;
1774
1844
  nudged?: boolean | undefined;
1775
1845
  }>>;
1776
1846
  /** Only on `runtime_crashed`. */
@@ -2043,16 +2113,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2043
2113
  stack: z.ZodOptional<z.ZodString>;
2044
2114
  unattended: z.ZodOptional<z.ZodBoolean>;
2045
2115
  }, "strip", z.ZodTypeAny, {
2046
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2047
2116
  step: string;
2117
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2048
2118
  phase: "install" | "onboard" | "first_run";
2049
2119
  reason?: string | undefined;
2050
2120
  stack?: string | undefined;
2051
2121
  elapsedMs?: number | undefined;
2052
2122
  unattended?: boolean | undefined;
2053
2123
  }, {
2054
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2055
2124
  step: string;
2125
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2056
2126
  phase: "install" | "onboard" | "first_run";
2057
2127
  reason?: string | undefined;
2058
2128
  stack?: string | undefined;
@@ -2182,13 +2252,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2182
2252
  }>>;
2183
2253
  retried: z.ZodBoolean;
2184
2254
  }, "strip", z.ZodTypeAny, {
2185
- tool: string;
2186
2255
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2256
+ tool: string;
2187
2257
  retried: boolean;
2188
2258
  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;
2189
2259
  }, {
2190
- tool: string;
2191
2260
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2261
+ tool: string;
2192
2262
  retried: boolean;
2193
2263
  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;
2194
2264
  }>>;
@@ -2333,24 +2403,32 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2333
2403
  licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
2334
2404
  }, "strip", z.ZodTypeAny, {
2335
2405
  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";
2336
- version: string;
2337
2406
  ci: boolean;
2407
+ version: string;
2338
2408
  v: 3;
2339
2409
  anonymousId: string;
2340
2410
  ts: number;
2341
2411
  os: string;
2342
- command?: string | undefined;
2343
- projectId?: string | undefined;
2344
- sessionId?: string | undefined;
2345
- bug?: {
2346
- kind: string;
2347
- source: "replay" | "contradiction" | "crawl" | "assertion";
2348
- attribution: "reticle" | "app" | "request" | "unclassified";
2349
- falseGreen: boolean;
2350
- repeat: boolean;
2351
- tool?: string | undefined;
2352
- fingerprint?: string | undefined;
2412
+ feedback?: {
2413
+ text: string;
2414
+ kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2415
+ source: "human" | "agent";
2416
+ impact?: string | undefined;
2417
+ model?: string | undefined;
2418
+ trace?: string | undefined;
2419
+ rating?: number | undefined;
2420
+ need?: string | undefined;
2421
+ currentApproach?: string | undefined;
2422
+ clientVersion?: string | undefined;
2423
+ stack?: string | undefined;
2424
+ stackMajor?: number | undefined;
2425
+ runtime?: "web" | "electron" | "tauri" | undefined;
2426
+ engine?: "blink" | "gecko" | "webkit" | undefined;
2427
+ driver?: "cdp" | "sdk" | undefined;
2428
+ client?: string | undefined;
2429
+ mcpScope?: "project" | "user" | undefined;
2353
2430
  } | undefined;
2431
+ command?: string | undefined;
2354
2432
  project?: {
2355
2433
  git: "none" | "local_only" | "remote";
2356
2434
  flowCount: number;
@@ -2363,15 +2441,26 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2363
2441
  featureDepth: number;
2364
2442
  stack?: string | undefined;
2365
2443
  stackMajor?: number | undefined;
2444
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2366
2445
  stackSource?: "cwd" | "workspace" | undefined;
2367
2446
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
2368
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2369
2447
  monorepo?: boolean | undefined;
2370
2448
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
2371
2449
  ageWeeks?: number | undefined;
2372
2450
  initialized?: boolean | undefined;
2373
2451
  appConnectedBefore?: boolean | undefined;
2374
2452
  } | undefined;
2453
+ projectId?: string | undefined;
2454
+ sessionId?: string | undefined;
2455
+ bug?: {
2456
+ kind: string;
2457
+ source: "replay" | "contradiction" | "crawl" | "assertion";
2458
+ attribution: "reticle" | "app" | "request" | "unclassified";
2459
+ falseGreen: boolean;
2460
+ repeat: boolean;
2461
+ tool?: string | undefined;
2462
+ fingerprint?: string | undefined;
2463
+ } | undefined;
2375
2464
  session?: {
2376
2465
  durationMs: number;
2377
2466
  toolCalls: number;
@@ -2436,48 +2525,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2436
2525
  endedWithVerdict?: boolean | undefined;
2437
2526
  updateNudged?: boolean | undefined;
2438
2527
  updateOffered?: string | undefined;
2528
+ hudControls?: Record<string, number> | undefined;
2529
+ hudViewMs?: Record<string, number> | undefined;
2530
+ hudPanelMs?: Record<string, number> | undefined;
2531
+ hudJourney?: string[] | undefined;
2532
+ hudJourneyCut?: true | undefined;
2439
2533
  exit?: "signal" | "idle" | "unknown" | undefined;
2440
2534
  } | undefined;
2441
2535
  licenseKeyPresent?: boolean | undefined;
2442
2536
  automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
2443
2537
  projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
2444
2538
  tzOffsetMin?: number | undefined;
2445
- feedback?: {
2446
- text: string;
2447
- kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2448
- source: "agent" | "human";
2449
- impact?: string | undefined;
2450
- trace?: string | undefined;
2451
- rating?: number | undefined;
2452
- need?: string | undefined;
2453
- currentApproach?: string | undefined;
2454
- model?: string | undefined;
2455
- clientVersion?: string | undefined;
2456
- stack?: string | undefined;
2457
- stackMajor?: number | undefined;
2458
- runtime?: "web" | "electron" | "tauri" | undefined;
2459
- engine?: "blink" | "gecko" | "webkit" | undefined;
2460
- driver?: "cdp" | "sdk" | undefined;
2461
- client?: string | undefined;
2462
- mcpScope?: "user" | "project" | undefined;
2463
- } | undefined;
2464
- actor?: "agent" | "human" | undefined;
2539
+ actor?: "human" | "agent" | undefined;
2465
2540
  flags?: string[] | undefined;
2466
2541
  verification?: {
2467
2542
  verified: string;
2468
2543
  via: string;
2469
2544
  passed: boolean;
2470
2545
  falseGreenCaught: boolean;
2471
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2472
2546
  durationMs?: number | undefined;
2547
+ reason?: "version_skew" | "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;
2473
2548
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2549
+ driven?: "harness" | undefined;
2474
2550
  browser?: string | undefined;
2475
- uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
2551
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
2476
2552
  } | undefined;
2477
2553
  versionChange?: {
2478
- direction: string;
2479
2554
  from: string;
2480
2555
  to: string;
2556
+ direction: string;
2481
2557
  nudged?: boolean | undefined;
2482
2558
  } | undefined;
2483
2559
  crash?: {
@@ -2523,8 +2599,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2523
2599
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2524
2600
  } | undefined;
2525
2601
  onboarding?: {
2526
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2527
2602
  step: string;
2603
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2528
2604
  phase: "install" | "onboard" | "first_run";
2529
2605
  reason?: string | undefined;
2530
2606
  stack?: string | undefined;
@@ -2532,8 +2608,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2532
2608
  unattended?: boolean | undefined;
2533
2609
  } | undefined;
2534
2610
  refusal?: {
2535
- tool: string;
2536
2611
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2612
+ tool: string;
2537
2613
  retried: boolean;
2538
2614
  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;
2539
2615
  } | undefined;
@@ -2553,24 +2629,32 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2553
2629
  licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
2554
2630
  }, {
2555
2631
  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";
2556
- version: string;
2557
2632
  ci: boolean;
2633
+ version: string;
2558
2634
  v: 3;
2559
2635
  anonymousId: string;
2560
2636
  ts: number;
2561
2637
  os: string;
2562
- command?: string | undefined;
2563
- projectId?: string | undefined;
2564
- sessionId?: string | undefined;
2565
- bug?: {
2566
- kind: string;
2567
- source: "replay" | "contradiction" | "crawl" | "assertion";
2568
- attribution: "reticle" | "app" | "request" | "unclassified";
2569
- falseGreen: boolean;
2570
- repeat: boolean;
2571
- tool?: string | undefined;
2572
- fingerprint?: string | undefined;
2638
+ feedback?: {
2639
+ text: string;
2640
+ kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2641
+ source: "human" | "agent";
2642
+ impact?: string | undefined;
2643
+ model?: string | undefined;
2644
+ trace?: string | undefined;
2645
+ rating?: number | undefined;
2646
+ need?: string | undefined;
2647
+ currentApproach?: string | undefined;
2648
+ clientVersion?: string | undefined;
2649
+ stack?: string | undefined;
2650
+ stackMajor?: number | undefined;
2651
+ runtime?: "web" | "electron" | "tauri" | undefined;
2652
+ engine?: "blink" | "gecko" | "webkit" | undefined;
2653
+ driver?: "cdp" | "sdk" | undefined;
2654
+ client?: string | undefined;
2655
+ mcpScope?: "project" | "user" | undefined;
2573
2656
  } | undefined;
2657
+ command?: string | undefined;
2574
2658
  project?: {
2575
2659
  git: "none" | "local_only" | "remote";
2576
2660
  flowCount: number;
@@ -2583,15 +2667,26 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2583
2667
  featureDepth: number;
2584
2668
  stack?: string | undefined;
2585
2669
  stackMajor?: number | undefined;
2670
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2586
2671
  stackSource?: "cwd" | "workspace" | undefined;
2587
2672
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
2588
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2589
2673
  monorepo?: boolean | undefined;
2590
2674
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
2591
2675
  ageWeeks?: number | undefined;
2592
2676
  initialized?: boolean | undefined;
2593
2677
  appConnectedBefore?: boolean | undefined;
2594
2678
  } | undefined;
2679
+ projectId?: string | undefined;
2680
+ sessionId?: string | undefined;
2681
+ bug?: {
2682
+ kind: string;
2683
+ source: "replay" | "contradiction" | "crawl" | "assertion";
2684
+ attribution: "reticle" | "app" | "request" | "unclassified";
2685
+ falseGreen: boolean;
2686
+ repeat: boolean;
2687
+ tool?: string | undefined;
2688
+ fingerprint?: string | undefined;
2689
+ } | undefined;
2595
2690
  session?: {
2596
2691
  durationMs: number;
2597
2692
  toolCalls: number;
@@ -2656,48 +2751,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2656
2751
  endedWithVerdict?: boolean | undefined;
2657
2752
  updateNudged?: boolean | undefined;
2658
2753
  updateOffered?: string | undefined;
2754
+ hudControls?: Record<string, number> | undefined;
2755
+ hudViewMs?: Record<string, number> | undefined;
2756
+ hudPanelMs?: Record<string, number> | undefined;
2757
+ hudJourney?: string[] | undefined;
2758
+ hudJourneyCut?: true | undefined;
2659
2759
  exit?: "signal" | "idle" | "unknown" | undefined;
2660
2760
  } | undefined;
2661
2761
  licenseKeyPresent?: boolean | undefined;
2662
2762
  automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
2663
2763
  projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
2664
2764
  tzOffsetMin?: number | undefined;
2665
- feedback?: {
2666
- text: string;
2667
- kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2668
- source: "agent" | "human";
2669
- impact?: string | undefined;
2670
- trace?: string | undefined;
2671
- rating?: number | undefined;
2672
- need?: string | undefined;
2673
- currentApproach?: string | undefined;
2674
- model?: string | undefined;
2675
- clientVersion?: string | undefined;
2676
- stack?: string | undefined;
2677
- stackMajor?: number | undefined;
2678
- runtime?: "web" | "electron" | "tauri" | undefined;
2679
- engine?: "blink" | "gecko" | "webkit" | undefined;
2680
- driver?: "cdp" | "sdk" | undefined;
2681
- client?: string | undefined;
2682
- mcpScope?: "user" | "project" | undefined;
2683
- } | undefined;
2684
- actor?: "agent" | "human" | undefined;
2765
+ actor?: "human" | "agent" | undefined;
2685
2766
  flags?: string[] | undefined;
2686
2767
  verification?: {
2687
2768
  verified: string;
2688
2769
  via: string;
2689
2770
  passed: boolean;
2690
2771
  falseGreenCaught: boolean;
2691
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2692
2772
  durationMs?: number | undefined;
2773
+ reason?: "version_skew" | "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;
2693
2774
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2775
+ driven?: "harness" | undefined;
2694
2776
  browser?: string | undefined;
2695
- uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
2777
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
2696
2778
  } | undefined;
2697
2779
  versionChange?: {
2698
- direction: string;
2699
2780
  from: string;
2700
2781
  to: string;
2782
+ direction: string;
2701
2783
  nudged?: boolean | undefined;
2702
2784
  } | undefined;
2703
2785
  crash?: {
@@ -2743,8 +2825,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2743
2825
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2744
2826
  } | undefined;
2745
2827
  onboarding?: {
2746
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2747
2828
  step: string;
2829
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2748
2830
  phase: "install" | "onboard" | "first_run";
2749
2831
  reason?: string | undefined;
2750
2832
  stack?: string | undefined;
@@ -2752,8 +2834,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2752
2834
  unattended?: boolean | undefined;
2753
2835
  } | undefined;
2754
2836
  refusal?: {
2755
- tool: string;
2756
2837
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2838
+ tool: string;
2757
2839
  retried: boolean;
2758
2840
  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;
2759
2841
  } | undefined;