@reticlehq/core 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/artifacts/artifacts-entry.d.ts +2 -0
  2. package/dist/artifacts/artifacts-entry.js +2 -0
  3. package/dist/artifacts/drive-script.d.ts +1298 -0
  4. package/dist/artifacts/drive-script.js +197 -0
  5. package/dist/artifacts/flow-constants.d.ts +1 -0
  6. package/dist/artifacts/flow-constants.js +1 -0
  7. package/dist/artifacts/flow-types.d.ts +60 -0
  8. package/dist/artifacts/flow-types.js +10 -0
  9. package/dist/artifacts/hud-notices.d.ts +134 -0
  10. package/dist/artifacts/hud-notices.js +124 -0
  11. package/dist/artifacts/impact.d.ts +135 -44
  12. package/dist/artifacts/impact.js +25 -0
  13. package/dist/artifacts/journal.d.ts +49 -0
  14. package/dist/artifacts/journal.js +15 -0
  15. package/dist/artifacts/prompt-context.d.ts +105 -0
  16. package/dist/artifacts/prompt-context.js +108 -0
  17. package/dist/desktop-contract.cjs +1 -0
  18. package/dist/desktop-contract.d.cts +1 -0
  19. package/dist/hud-entry.d.ts +1 -0
  20. package/dist/hud-entry.js +2 -0
  21. package/dist/identity/contract-fingerprint.d.ts +9 -0
  22. package/dist/identity/contract-fingerprint.js +12 -0
  23. package/dist/identity/testid-attribute.d.ts +18 -0
  24. package/dist/identity/testid-attribute.js +24 -0
  25. package/dist/index.d.ts +4 -1
  26. package/dist/index.js +4 -1
  27. package/dist/onboarding.d.ts +2 -2
  28. package/dist/schema/command-message.json +6 -0
  29. package/dist/schema/command-name.json +3 -1
  30. package/dist/schema/event-payloads.json +16 -0
  31. package/dist/schema/reticle-message.json +6 -0
  32. package/dist/telemetry-refusal.d.ts +3 -2
  33. package/dist/telemetry-session.d.ts +5 -1
  34. package/dist/telemetry-session.js +3 -1
  35. package/dist/telemetry.d.ts +42 -34
  36. package/dist/telemetry.js +3 -3
  37. package/dist/tour.d.ts +1 -0
  38. package/dist/tour.js +13 -5
  39. package/dist/verdict/consequence.d.ts +3 -0
  40. package/dist/verdict/findings.d.ts +5 -0
  41. package/dist/verdict/findings.js +7 -0
  42. package/dist/verdict/predicate.d.ts +14 -0
  43. package/dist/verdict/predicate.js +7 -12
  44. package/dist/verdict/verdict-attribution.js +1 -0
  45. package/dist/verdict/verification-run.d.ts +18 -0
  46. package/dist/verdict/verification-run.js +8 -0
  47. package/dist/verdict/verified-constants.d.ts +19 -0
  48. package/dist/verdict/verified-constants.js +22 -0
  49. package/dist/wire/constants/constants.d.ts +44 -16
  50. package/dist/wire/constants/constants.js +44 -16
  51. package/dist/wire/constants/hud-controls.d.ts +1 -1
  52. package/dist/wire/constants/hud-controls.js +21 -0
  53. package/dist/wire/constants/hud-use.d.ts +64 -1
  54. package/dist/wire/constants/hud-use.js +40 -1
  55. package/dist/wire/constants/session-constants.d.ts +8 -0
  56. package/dist/wire/constants/session-constants.js +8 -0
  57. package/dist/wire/desktop-contract.d.ts +3 -0
  58. package/dist/wire/desktop-contract.js +3 -0
  59. package/dist/wire/event-payloads.d.ts +25 -4
  60. package/dist/wire/event-payloads.js +10 -0
  61. package/dist/wire/global-press.d.ts +34 -3
  62. package/dist/wire/global-press.js +91 -3
  63. package/dist/wire/hold.d.ts +14 -0
  64. package/dist/wire/hold.js +18 -0
  65. package/dist/wire/messages.d.ts +42 -18
  66. package/dist/wire/messages.js +8 -0
  67. package/dist/wire/platform-link.d.ts +161 -0
  68. package/dist/wire/platform-link.js +189 -0
  69. package/dist/wire/types.d.ts +7 -0
  70. package/dist/words/no-session-reason.d.ts +7 -0
  71. package/dist/words/no-session-reason.js +7 -0
  72. package/dist/words/notices.js +4 -2
  73. package/package.json +1 -1
@@ -486,11 +486,13 @@ export declare const SessionSummarySchema: z.ZodObject<{
486
486
  * `hudControls` counts presses per control id (a toggle as `id:on` / `id:off`), `hudViewMs` and
487
487
  * `hudPanelMs` time how the HUD sat (bubble / collapsed / expanded) and which panel was showing,
488
488
  * and `hudJourney` is the window's presses and view changes in order, cut at 60 with
489
- * `hudJourneyCut`. Every key is a control id from core's closed list: names, never values.
489
+ * `hudJourneyCut`. `hudSlides` counts how often each rail slide was shown, by its id. Every key
490
+ * is a control or slide id Reticle authored: names, never values.
490
491
  */
491
492
  hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
492
493
  hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
493
494
  hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
495
+ hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
494
496
  hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
495
497
  hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
496
498
  /** Was this a clean shutdown, or a periodic flush of a still-running session? */
@@ -575,6 +577,7 @@ export declare const SessionSummarySchema: z.ZodObject<{
575
577
  hudControls?: Record<string, number> | undefined;
576
578
  hudViewMs?: Record<string, number> | undefined;
577
579
  hudPanelMs?: Record<string, number> | undefined;
580
+ hudSlides?: Record<string, number> | undefined;
578
581
  hudJourney?: string[] | undefined;
579
582
  hudJourneyCut?: true | undefined;
580
583
  exit?: "signal" | "idle" | "unknown" | undefined;
@@ -645,6 +648,7 @@ export declare const SessionSummarySchema: z.ZodObject<{
645
648
  hudControls?: Record<string, number> | undefined;
646
649
  hudViewMs?: Record<string, number> | undefined;
647
650
  hudPanelMs?: Record<string, number> | undefined;
651
+ hudSlides?: Record<string, number> | undefined;
648
652
  hudJourney?: string[] | undefined;
649
653
  hudJourneyCut?: true | undefined;
650
654
  exit?: "signal" | "idle" | "unknown" | undefined;
@@ -355,11 +355,13 @@ export const SessionSummarySchema = z.object({
355
355
  * `hudControls` counts presses per control id (a toggle as `id:on` / `id:off`), `hudViewMs` and
356
356
  * `hudPanelMs` time how the HUD sat (bubble / collapsed / expanded) and which panel was showing,
357
357
  * and `hudJourney` is the window's presses and view changes in order, cut at 60 with
358
- * `hudJourneyCut`. Every key is a control id from core's closed list: names, never values.
358
+ * `hudJourneyCut`. `hudSlides` counts how often each rail slide was shown, by its id. Every key
359
+ * is a control or slide id Reticle authored: names, never values.
359
360
  */
360
361
  hudControls: z.record(z.number()).optional(),
361
362
  hudViewMs: z.record(z.number()).optional(),
362
363
  hudPanelMs: z.record(z.number()).optional(),
364
+ hudSlides: z.record(z.number()).optional(),
363
365
  hudJourney: z.array(z.string().max(64)).max(60).optional(),
364
366
  hudJourneyCut: z.literal(true).optional(),
365
367
  /** Was this a clean shutdown, or a periodic flush of a still-running session? */
@@ -314,6 +314,7 @@ export declare const VerificationSchema: z.ZodObject<{
314
314
  readonly ASSERTION_FAILED: "assertion_failed";
315
315
  readonly CONTRADICTED: "contradicted";
316
316
  readonly ALREADY_TRUE: "already_true";
317
+ readonly HIDDEN_MATCH: "hidden_match";
317
318
  readonly UNCLEAN_CAPTURE: "unclean_capture";
318
319
  readonly VACUOUS_GRADE: "vacuous_grade";
319
320
  readonly NOTHING_DECLARED: "nothing_declared";
@@ -351,23 +352,23 @@ export declare const VerificationSchema: z.ZodObject<{
351
352
  readonly HARNESS: "harness";
352
353
  }>>;
353
354
  }, "strip", z.ZodTypeAny, {
355
+ passed: boolean;
354
356
  verified: string;
355
357
  via: string;
356
- passed: boolean;
357
358
  falseGreenCaught: boolean;
358
359
  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;
360
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
360
361
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
361
362
  driven?: "harness" | undefined;
362
363
  browser?: string | undefined;
363
364
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
364
365
  }, {
366
+ passed: boolean;
365
367
  verified: string;
366
368
  via: string;
367
- passed: boolean;
368
369
  falseGreenCaught: boolean;
369
370
  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;
371
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
371
372
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
372
373
  driven?: "harness" | undefined;
373
374
  browser?: string | undefined;
@@ -515,6 +516,7 @@ export declare const CrashSchema: z.ZodObject<{
515
516
  kind: string;
516
517
  message?: string | undefined;
517
518
  tool?: string | undefined;
519
+ frames?: string[] | undefined;
518
520
  errorType?: string | undefined;
519
521
  port?: "reticle" | "other" | undefined;
520
522
  fingerprint?: string | undefined;
@@ -526,7 +528,6 @@ export declare const CrashSchema: z.ZodObject<{
526
528
  load1x100: number;
527
529
  cpuCount: number;
528
530
  } | undefined;
529
- frames?: string[] | undefined;
530
531
  breadcrumb?: string[] | undefined;
531
532
  nodeVersion?: string | undefined;
532
533
  arch?: string | undefined;
@@ -538,6 +539,7 @@ export declare const CrashSchema: z.ZodObject<{
538
539
  kind: string;
539
540
  message?: string | undefined;
540
541
  tool?: string | undefined;
542
+ frames?: string[] | undefined;
541
543
  errorType?: string | undefined;
542
544
  port?: "reticle" | "other" | undefined;
543
545
  fingerprint?: string | undefined;
@@ -549,7 +551,6 @@ export declare const CrashSchema: z.ZodObject<{
549
551
  load1x100: number;
550
552
  cpuCount: number;
551
553
  } | undefined;
552
- frames?: string[] | undefined;
553
554
  breadcrumb?: string[] | undefined;
554
555
  nodeVersion?: string | undefined;
555
556
  arch?: string | undefined;
@@ -998,9 +999,9 @@ export declare const InitOutcomeSchema: z.ZodObject<{
998
999
  /**
999
1000
  * What `init` saw when it waited for an app to connect.
1000
1001
  *
1001
- * ABSENT means it never looked, which is the honest answer for every scripted run: `init` only
1002
- * waits when a human is at the terminal. Read an absent value as "not measured", never as a
1003
- * failure to connect, or the funnel reads scripted installs as losses.
1002
+ * Default init reports CONNECTED after runtime success. Runtime failures carry a classified
1003
+ * reason without guessing the watcher's daemon/page classification. Files-only init watches
1004
+ * only in an interactive terminal. Absence alone is not evidence of a failed connection.
1004
1005
  */
1005
1006
  confirmation: z.ZodOptional<z.ZodNativeEnum<{
1006
1007
  /** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
@@ -1455,6 +1456,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1455
1456
  hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1456
1457
  hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1457
1458
  hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1459
+ hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1458
1460
  hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1459
1461
  hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
1460
1462
  final: z.ZodBoolean;
@@ -1526,6 +1528,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1526
1528
  hudControls?: Record<string, number> | undefined;
1527
1529
  hudViewMs?: Record<string, number> | undefined;
1528
1530
  hudPanelMs?: Record<string, number> | undefined;
1531
+ hudSlides?: Record<string, number> | undefined;
1529
1532
  hudJourney?: string[] | undefined;
1530
1533
  hudJourneyCut?: true | undefined;
1531
1534
  exit?: "signal" | "idle" | "unknown" | undefined;
@@ -1596,6 +1599,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1596
1599
  hudControls?: Record<string, number> | undefined;
1597
1600
  hudViewMs?: Record<string, number> | undefined;
1598
1601
  hudPanelMs?: Record<string, number> | undefined;
1602
+ hudSlides?: Record<string, number> | undefined;
1599
1603
  hudJourney?: string[] | undefined;
1600
1604
  hudJourneyCut?: true | undefined;
1601
1605
  exit?: "signal" | "idle" | "unknown" | undefined;
@@ -1758,6 +1762,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1758
1762
  readonly ASSERTION_FAILED: "assertion_failed";
1759
1763
  readonly CONTRADICTED: "contradicted";
1760
1764
  readonly ALREADY_TRUE: "already_true";
1765
+ readonly HIDDEN_MATCH: "hidden_match";
1761
1766
  readonly UNCLEAN_CAPTURE: "unclean_capture";
1762
1767
  readonly VACUOUS_GRADE: "vacuous_grade";
1763
1768
  readonly NOTHING_DECLARED: "nothing_declared";
@@ -1795,23 +1800,23 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1795
1800
  readonly HARNESS: "harness";
1796
1801
  }>>;
1797
1802
  }, "strip", z.ZodTypeAny, {
1803
+ passed: boolean;
1798
1804
  verified: string;
1799
1805
  via: string;
1800
- passed: boolean;
1801
1806
  falseGreenCaught: boolean;
1802
1807
  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;
1808
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1804
1809
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1805
1810
  driven?: "harness" | undefined;
1806
1811
  browser?: string | undefined;
1807
1812
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
1808
1813
  }, {
1814
+ passed: boolean;
1809
1815
  verified: string;
1810
1816
  via: string;
1811
- passed: boolean;
1812
1817
  falseGreenCaught: boolean;
1813
1818
  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;
1819
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1815
1820
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1816
1821
  driven?: "harness" | undefined;
1817
1822
  browser?: string | undefined;
@@ -1939,6 +1944,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1939
1944
  kind: string;
1940
1945
  message?: string | undefined;
1941
1946
  tool?: string | undefined;
1947
+ frames?: string[] | undefined;
1942
1948
  errorType?: string | undefined;
1943
1949
  port?: "reticle" | "other" | undefined;
1944
1950
  fingerprint?: string | undefined;
@@ -1950,7 +1956,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1950
1956
  load1x100: number;
1951
1957
  cpuCount: number;
1952
1958
  } | undefined;
1953
- frames?: string[] | undefined;
1954
1959
  breadcrumb?: string[] | undefined;
1955
1960
  nodeVersion?: string | undefined;
1956
1961
  arch?: string | undefined;
@@ -1962,6 +1967,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1962
1967
  kind: string;
1963
1968
  message?: string | undefined;
1964
1969
  tool?: string | undefined;
1970
+ frames?: string[] | undefined;
1965
1971
  errorType?: string | undefined;
1966
1972
  port?: "reticle" | "other" | undefined;
1967
1973
  fingerprint?: string | undefined;
@@ -1973,7 +1979,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1973
1979
  load1x100: number;
1974
1980
  cpuCount: number;
1975
1981
  } | undefined;
1976
- frames?: string[] | undefined;
1977
1982
  breadcrumb?: string[] | undefined;
1978
1983
  nodeVersion?: string | undefined;
1979
1984
  arch?: string | undefined;
@@ -2053,9 +2058,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2053
2058
  /**
2054
2059
  * What `init` saw when it waited for an app to connect.
2055
2060
  *
2056
- * ABSENT means it never looked, which is the honest answer for every scripted run: `init` only
2057
- * waits when a human is at the terminal. Read an absent value as "not measured", never as a
2058
- * failure to connect, or the funnel reads scripted installs as losses.
2061
+ * Default init reports CONNECTED after runtime success. Runtime failures carry a classified
2062
+ * reason without guessing the watcher's daemon/page classification. Files-only init watches
2063
+ * only in an interactive terminal. Absence alone is not evidence of a failed connection.
2059
2064
  */
2060
2065
  confirmation: z.ZodOptional<z.ZodNativeEnum<{
2061
2066
  /** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
@@ -2114,7 +2119,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2114
2119
  unattended: z.ZodOptional<z.ZodBoolean>;
2115
2120
  }, "strip", z.ZodTypeAny, {
2116
2121
  step: string;
2117
- status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2122
+ status: "skipped" | "completed" | "failed" | "started" | "abandoned";
2118
2123
  phase: "install" | "onboard" | "first_run";
2119
2124
  reason?: string | undefined;
2120
2125
  stack?: string | undefined;
@@ -2122,7 +2127,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2122
2127
  unattended?: boolean | undefined;
2123
2128
  }, {
2124
2129
  step: string;
2125
- status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2130
+ status: "skipped" | "completed" | "failed" | "started" | "abandoned";
2126
2131
  phase: "install" | "onboard" | "first_run";
2127
2132
  reason?: string | undefined;
2128
2133
  stack?: string | undefined;
@@ -2243,6 +2248,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2243
2248
  readonly AUTH_REFUSED: "auth_refused";
2244
2249
  readonly LEASE_EXPIRED: "lease_expired";
2245
2250
  readonly TAB_GONE: "tab_gone";
2251
+ readonly NAVIGATED_AWAY: "navigated_away";
2246
2252
  readonly ROUTE_SERVER_ERROR: "route_server_error";
2247
2253
  readonly APP_NOT_REOPENED: "app_not_reopened";
2248
2254
  readonly CONFIG_ELSEWHERE: "config_elsewhere";
@@ -2256,12 +2262,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2256
2262
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2257
2263
  tool: string;
2258
2264
  retried: boolean;
2259
- noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2265
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2260
2266
  }, {
2261
2267
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2262
2268
  tool: string;
2263
2269
  retried: boolean;
2264
- noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2270
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2265
2271
  }>>;
2266
2272
  /** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
2267
2273
  outage: z.ZodOptional<z.ZodObject<{
@@ -2529,6 +2535,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2529
2535
  hudControls?: Record<string, number> | undefined;
2530
2536
  hudViewMs?: Record<string, number> | undefined;
2531
2537
  hudPanelMs?: Record<string, number> | undefined;
2538
+ hudSlides?: Record<string, number> | undefined;
2532
2539
  hudJourney?: string[] | undefined;
2533
2540
  hudJourneyCut?: true | undefined;
2534
2541
  exit?: "signal" | "idle" | "unknown" | undefined;
@@ -2540,12 +2547,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2540
2547
  actor?: "human" | "agent" | undefined;
2541
2548
  flags?: string[] | undefined;
2542
2549
  verification?: {
2550
+ passed: boolean;
2543
2551
  verified: string;
2544
2552
  via: string;
2545
- passed: boolean;
2546
2553
  falseGreenCaught: boolean;
2547
2554
  durationMs?: number | undefined;
2548
- 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;
2555
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2549
2556
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2550
2557
  driven?: "harness" | undefined;
2551
2558
  browser?: string | undefined;
@@ -2561,6 +2568,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2561
2568
  kind: string;
2562
2569
  message?: string | undefined;
2563
2570
  tool?: string | undefined;
2571
+ frames?: string[] | undefined;
2564
2572
  errorType?: string | undefined;
2565
2573
  port?: "reticle" | "other" | undefined;
2566
2574
  fingerprint?: string | undefined;
@@ -2572,7 +2580,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2572
2580
  load1x100: number;
2573
2581
  cpuCount: number;
2574
2582
  } | undefined;
2575
- frames?: string[] | undefined;
2576
2583
  breadcrumb?: string[] | undefined;
2577
2584
  nodeVersion?: string | undefined;
2578
2585
  arch?: string | undefined;
@@ -2601,7 +2608,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2601
2608
  } | undefined;
2602
2609
  onboarding?: {
2603
2610
  step: string;
2604
- status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2611
+ status: "skipped" | "completed" | "failed" | "started" | "abandoned";
2605
2612
  phase: "install" | "onboard" | "first_run";
2606
2613
  reason?: string | undefined;
2607
2614
  stack?: string | undefined;
@@ -2612,7 +2619,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2612
2619
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2613
2620
  tool: string;
2614
2621
  retried: boolean;
2615
- noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2622
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2616
2623
  } | undefined;
2617
2624
  outage?: {
2618
2625
  reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
@@ -2627,7 +2634,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2627
2634
  } | undefined;
2628
2635
  installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
2629
2636
  licenseId?: string | undefined;
2630
- licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
2637
+ licenseStatus?: "active" | "invalid" | "missing" | "expired" | "eval" | undefined;
2631
2638
  }, {
2632
2639
  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";
2633
2640
  ci: boolean;
@@ -2755,6 +2762,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2755
2762
  hudControls?: Record<string, number> | undefined;
2756
2763
  hudViewMs?: Record<string, number> | undefined;
2757
2764
  hudPanelMs?: Record<string, number> | undefined;
2765
+ hudSlides?: Record<string, number> | undefined;
2758
2766
  hudJourney?: string[] | undefined;
2759
2767
  hudJourneyCut?: true | undefined;
2760
2768
  exit?: "signal" | "idle" | "unknown" | undefined;
@@ -2766,12 +2774,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2766
2774
  actor?: "human" | "agent" | undefined;
2767
2775
  flags?: string[] | undefined;
2768
2776
  verification?: {
2777
+ passed: boolean;
2769
2778
  verified: string;
2770
2779
  via: string;
2771
- passed: boolean;
2772
2780
  falseGreenCaught: boolean;
2773
2781
  durationMs?: number | undefined;
2774
- 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;
2782
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2775
2783
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2776
2784
  driven?: "harness" | undefined;
2777
2785
  browser?: string | undefined;
@@ -2787,6 +2795,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2787
2795
  kind: string;
2788
2796
  message?: string | undefined;
2789
2797
  tool?: string | undefined;
2798
+ frames?: string[] | undefined;
2790
2799
  errorType?: string | undefined;
2791
2800
  port?: "reticle" | "other" | undefined;
2792
2801
  fingerprint?: string | undefined;
@@ -2798,7 +2807,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2798
2807
  load1x100: number;
2799
2808
  cpuCount: number;
2800
2809
  } | undefined;
2801
- frames?: string[] | undefined;
2802
2810
  breadcrumb?: string[] | undefined;
2803
2811
  nodeVersion?: string | undefined;
2804
2812
  arch?: string | undefined;
@@ -2827,7 +2835,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2827
2835
  } | undefined;
2828
2836
  onboarding?: {
2829
2837
  step: string;
2830
- status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2838
+ status: "skipped" | "completed" | "failed" | "started" | "abandoned";
2831
2839
  phase: "install" | "onboard" | "first_run";
2832
2840
  reason?: string | undefined;
2833
2841
  stack?: string | undefined;
@@ -2838,7 +2846,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2838
2846
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2839
2847
  tool: string;
2840
2848
  retried: boolean;
2841
- noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2849
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2842
2850
  } | undefined;
2843
2851
  outage?: {
2844
2852
  reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
@@ -2853,6 +2861,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2853
2861
  } | undefined;
2854
2862
  installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
2855
2863
  licenseId?: string | undefined;
2856
- licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
2864
+ licenseStatus?: "active" | "invalid" | "missing" | "expired" | "eval" | undefined;
2857
2865
  }>;
2858
2866
  export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
package/dist/telemetry.js CHANGED
@@ -770,9 +770,9 @@ export const InitOutcomeSchema = z.object({
770
770
  /**
771
771
  * What `init` saw when it waited for an app to connect.
772
772
  *
773
- * ABSENT means it never looked, which is the honest answer for every scripted run: `init` only
774
- * waits when a human is at the terminal. Read an absent value as "not measured", never as a
775
- * failure to connect, or the funnel reads scripted installs as losses.
773
+ * Default init reports CONNECTED after runtime success. Runtime failures carry a classified
774
+ * reason without guessing the watcher's daemon/page classification. Files-only init watches
775
+ * only in an interactive terminal. Absence alone is not evidence of a failed connection.
776
776
  */
777
777
  confirmation: z.nativeEnum(InitConfirmation).optional(),
778
778
  });
package/dist/tour.d.ts CHANGED
@@ -39,6 +39,7 @@ export declare const TourAnchor: {
39
39
  readonly APP: "app";
40
40
  /** One control in the HUD's toolbar. Ours, so naming it is not a guess. */
41
41
  readonly HUD_CHAT: "hud-chat";
42
+ readonly HUD_FLOWS: "hud-flows";
42
43
  readonly HUD_ANNOTATE: "hud-annotate";
43
44
  readonly HUD_IMPACT: "hud-impact";
44
45
  readonly HUD_SETTINGS: "hud-settings";
package/dist/tour.js CHANGED
@@ -39,6 +39,7 @@ export const TourAnchor = {
39
39
  APP: 'app',
40
40
  /** One control in the HUD's toolbar. Ours, so naming it is not a guess. */
41
41
  HUD_CHAT: 'hud-chat',
42
+ HUD_FLOWS: 'hud-flows',
42
43
  HUD_ANNOTATE: 'hud-annotate',
43
44
  HUD_IMPACT: 'hud-impact',
44
45
  HUD_SETTINGS: 'hud-settings',
@@ -136,17 +137,24 @@ export const TOUR_STEPS = [
136
137
  export const TOUR_HUD_STEPS = [
137
138
  {
138
139
  id: 'hud-chat',
139
- title: 'Activity Panel',
140
- say: 'Watch what your agent is doing in your app, as it happens.',
140
+ title: 'Agent Log',
141
+ say: 'Watch what your agent is doing in your app, as it happens, and which steps it proved.',
141
142
  anchor: TourAnchor.HUD_CHAT,
142
143
  tryIt: 'Open it.',
143
144
  },
145
+ {
146
+ id: 'hud-flows',
147
+ title: 'Saved flows',
148
+ say: 'Every journey your agent verifies is saved here. Replay one with a click, with no agent in the loop.',
149
+ anchor: TourAnchor.HUD_FLOWS,
150
+ tryIt: 'Open them.',
151
+ },
144
152
  {
145
153
  id: 'hud-annotate',
146
- title: 'Annotate',
147
- say: 'Click anywhere in your app to drop a numbered pin with a note. Hand the pins to your agent and it fixes them.',
154
+ title: 'Notes',
155
+ say: 'Open Notes, then click anywhere in your app to drop a numbered pin with a note. Hand the pins to your agent and it fixes them.',
148
156
  anchor: TourAnchor.HUD_ANNOTATE,
149
- tryIt: 'Turn it on, then click something in your app.',
157
+ tryIt: 'Open Notes, then pin something in your app.',
150
158
  },
151
159
  {
152
160
  id: 'hud-impact',
@@ -87,6 +87,9 @@ export type ExpectedLink = {
87
87
  kind: typeof ConsequenceKind.NET;
88
88
  urlContains: string;
89
89
  status?: number;
90
+ /** The method the clause named, when it named one — a claim about `GET /save` is not a claim
91
+ * about the `POST /save` that is still pending. */
92
+ method?: string;
90
93
  } | {
91
94
  kind: typeof ConsequenceKind.STATE;
92
95
  name: string;
@@ -124,6 +124,11 @@ export declare const ContradictionKind: {
124
124
  * exactly the number on the screen, so every other channel agrees it is correct.
125
125
  */
126
126
  readonly UNIT_MISMATCH: "unit-mismatch";
127
+ /**
128
+ * The page label moved ("Page 2") while the app re-requested the page it already had (`page=1`):
129
+ * everything past the first page is unreachable, and every channel on its own looks healthy.
130
+ */
131
+ readonly PAGINATION_NOT_FETCHED: "pagination-not-fetched";
127
132
  /**
128
133
  * A write returned success and its OWN echo shows a field it was asked to set was not applied.
129
134
  *
@@ -93,6 +93,11 @@ export const ContradictionKind = {
93
93
  * exactly the number on the screen, so every other channel agrees it is correct.
94
94
  */
95
95
  UNIT_MISMATCH: 'unit-mismatch',
96
+ /**
97
+ * The page label moved ("Page 2") while the app re-requested the page it already had (`page=1`):
98
+ * everything past the first page is unreachable, and every channel on its own looks healthy.
99
+ */
100
+ PAGINATION_NOT_FETCHED: 'pagination-not-fetched',
96
101
  /**
97
102
  * A write returned success and its OWN echo shows a field it was asked to set was not applied.
98
103
  *
@@ -358,6 +363,8 @@ export const CONTRADICTION_CHANNELS = {
358
363
  // Both sides are the server's own answer: the status line and the payload under it.
359
364
  [ContradictionKind.PARTIAL_FAILURE_IN_OK_RESPONSE]: [ChannelId.NET, ChannelId.NET],
360
365
  [ContradictionKind.UNIT_MISMATCH]: [ChannelId.UI, ChannelId.NET],
366
+ // The label the UI shows against the query string it sent.
367
+ [ContradictionKind.PAGINATION_NOT_FETCHED]: [ChannelId.UI, ChannelId.NET],
361
368
  // What was sent against what came back -- the request and its echo, neither derived from the click.
362
369
  [ContradictionKind.WRITE_FIELD_IGNORED]: [ChannelId.NET, ChannelId.NET],
363
370
  [ContradictionKind.REQUEST_NEVER_SETTLED]: [ChannelId.TIME, ChannelId.NET],
@@ -127,6 +127,20 @@ export type Predicate = {
127
127
  kind: typeof PredicateKind.NOT;
128
128
  predicate: Predicate;
129
129
  };
130
+ /**
131
+ * Element-query fields an agent writes FLAT on an `element` predicate instead of nested under
132
+ * `query`. `reticle_query` takes exactly these at the top level, so an agent that has just located
133
+ * something writes the same words again when it asserts on it — and got `query: Required` plus an
134
+ * `unknown field` list for its trouble. Lifting them is unambiguous: they have no other meaning on
135
+ * this kind.
136
+ *
137
+ * Derived from the schema rather than listed beside it. The hand-written list this replaces had
138
+ * already fallen four fields behind `ElementQuerySchema` — `scope`, `self`, `attrs` and `source` —
139
+ * so a flat `scope` was refused as an unknown key on the predicate while `reticle_look` accepts it
140
+ * at the top level, and the agent that had just scoped a search wrote the word it had been taught.
141
+ * A list beside a schema is a list that drifts; a list read FROM the schema cannot.
142
+ */
143
+ export declare const ELEMENT_QUERY_FIELDS: readonly (keyof ElementQuery)[];
130
144
  export declare const PredicateSchema: z.ZodType<Predicate>;
131
145
  /**
132
146
  * The fields one predicate kind accepts, as the schema itself declares them.
@@ -76,19 +76,14 @@ const KIND_SPELLING = 'type';
76
76
  * something writes the same words again when it asserts on it — and got `query: Required` plus an
77
77
  * `unknown field` list for its trouble. Lifting them is unambiguous: they have no other meaning on
78
78
  * this kind.
79
+ *
80
+ * Derived from the schema rather than listed beside it. The hand-written list this replaces had
81
+ * already fallen four fields behind `ElementQuerySchema` — `scope`, `self`, `attrs` and `source` —
82
+ * so a flat `scope` was refused as an unknown key on the predicate while `reticle_look` accepts it
83
+ * at the top level, and the agent that had just scoped a search wrote the word it had been taught.
84
+ * A list beside a schema is a list that drifts; a list read FROM the schema cannot.
79
85
  */
80
- const ELEMENT_QUERY_FIELDS = [
81
- 'by',
82
- 'value',
83
- 'role',
84
- 'name',
85
- 'text',
86
- 'label',
87
- 'placeholder',
88
- 'testid',
89
- 'alt',
90
- 'component',
91
- ];
86
+ export const ELEMENT_QUERY_FIELDS = Object.keys(ElementQuerySchema.shape);
92
87
  /** `type` read as the discriminator when — and only when — `kind` is absent. */
93
88
  function renameKindSpelling(obj) {
94
89
  if (obj['kind'] !== undefined || 'string' !== typeof obj[KIND_SPELLING])
@@ -71,6 +71,7 @@ const OWNER = {
71
71
  [VerifiedReason.NOTHING_DECLARED]: VerdictAttribution.HARNESS,
72
72
  [VerifiedReason.VACUOUS_GRADE]: VerdictAttribution.HARNESS,
73
73
  [VerifiedReason.ALREADY_TRUE]: VerdictAttribution.HARNESS,
74
+ [VerifiedReason.HIDDEN_MATCH]: VerdictAttribution.HARNESS,
74
75
  // The evidence was not there to read.
75
76
  [VerifiedReason.CAPABILITY_ABSENT]: VerdictAttribution.COULD_NOT_SEE,
76
77
  [VerifiedReason.OBSERVATION_LOST]: VerdictAttribution.COULD_NOT_SEE,