@reticlehq/core 2.2.1 → 2.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 (101) hide show
  1. package/dist/brand.d.ts +0 -1
  2. package/dist/brand.js +0 -1
  3. package/dist/consequence.d.ts +0 -1
  4. package/dist/consequence.js +0 -1
  5. package/dist/constants.d.ts +30 -25
  6. package/dist/constants.js +33 -23
  7. package/dist/daemon-registry.d.ts +0 -1
  8. package/dist/daemon-registry.js +0 -1
  9. package/dist/desktop-contract.cjs +11 -0
  10. package/dist/desktop-contract.d.cts +6 -0
  11. package/dist/desktop-contract.d.ts +58 -0
  12. package/dist/desktop-contract.js +59 -0
  13. package/dist/event-payloads.d.ts +60 -3
  14. package/dist/event-payloads.js +35 -4
  15. package/dist/event-priority.d.ts +25 -0
  16. package/dist/event-priority.js +45 -0
  17. package/dist/findings.d.ts +124 -0
  18. package/dist/findings.js +122 -0
  19. package/dist/flow-constants.d.ts +0 -1
  20. package/dist/flow-constants.js +0 -1
  21. package/dist/flow-types.d.ts +9 -1
  22. package/dist/flow-types.js +0 -1
  23. package/dist/index.d.ts +7 -1
  24. package/dist/index.js +8 -2
  25. package/dist/journal.d.ts +0 -1
  26. package/dist/journal.js +0 -1
  27. package/dist/messages.d.ts +16 -11
  28. package/dist/messages.js +0 -1
  29. package/dist/net.d.ts +41 -0
  30. package/dist/net.js +40 -0
  31. package/dist/notices.d.ts +0 -1
  32. package/dist/notices.js +0 -1
  33. package/dist/redaction.d.ts +0 -1
  34. package/dist/redaction.js +1 -2
  35. package/dist/schema/event-message.json +3 -1
  36. package/dist/schema/event-type.json +3 -1
  37. package/dist/schema/reticle-event.json +3 -1
  38. package/dist/schema/reticle-message.json +3 -1
  39. package/dist/security.d.ts +20 -1
  40. package/dist/security.js +45 -1
  41. package/dist/session-constants.d.ts +0 -1
  42. package/dist/session-constants.js +0 -1
  43. package/dist/state-select.d.ts +0 -1
  44. package/dist/state-select.js +32 -1
  45. package/dist/telemetry-feedback.d.ts +265 -0
  46. package/dist/telemetry-feedback.js +163 -0
  47. package/dist/telemetry-session.d.ts +524 -0
  48. package/dist/telemetry-session.js +245 -0
  49. package/dist/telemetry.d.ts +1410 -37
  50. package/dist/telemetry.js +338 -18
  51. package/dist/toon.d.ts +0 -1
  52. package/dist/toon.js +0 -1
  53. package/dist/types.d.ts +9 -2
  54. package/dist/types.js +0 -1
  55. package/dist/upgrade.d.ts +0 -1
  56. package/dist/upgrade.js +0 -1
  57. package/dist/verification-run.d.ts +4 -5
  58. package/dist/verification-run.js +0 -1
  59. package/dist/verified-constants.d.ts +104 -0
  60. package/dist/verified-constants.js +102 -0
  61. package/package.json +7 -3
  62. package/dist/brand.d.ts.map +0 -1
  63. package/dist/brand.js.map +0 -1
  64. package/dist/consequence.d.ts.map +0 -1
  65. package/dist/consequence.js.map +0 -1
  66. package/dist/constants.d.ts.map +0 -1
  67. package/dist/constants.js.map +0 -1
  68. package/dist/daemon-registry.d.ts.map +0 -1
  69. package/dist/daemon-registry.js.map +0 -1
  70. package/dist/event-payloads.d.ts.map +0 -1
  71. package/dist/event-payloads.js.map +0 -1
  72. package/dist/flow-constants.d.ts.map +0 -1
  73. package/dist/flow-constants.js.map +0 -1
  74. package/dist/flow-types.d.ts.map +0 -1
  75. package/dist/flow-types.js.map +0 -1
  76. package/dist/index.d.ts.map +0 -1
  77. package/dist/index.js.map +0 -1
  78. package/dist/journal.d.ts.map +0 -1
  79. package/dist/journal.js.map +0 -1
  80. package/dist/messages.d.ts.map +0 -1
  81. package/dist/messages.js.map +0 -1
  82. package/dist/notices.d.ts.map +0 -1
  83. package/dist/notices.js.map +0 -1
  84. package/dist/redaction.d.ts.map +0 -1
  85. package/dist/redaction.js.map +0 -1
  86. package/dist/security.d.ts.map +0 -1
  87. package/dist/security.js.map +0 -1
  88. package/dist/session-constants.d.ts.map +0 -1
  89. package/dist/session-constants.js.map +0 -1
  90. package/dist/state-select.d.ts.map +0 -1
  91. package/dist/state-select.js.map +0 -1
  92. package/dist/telemetry.d.ts.map +0 -1
  93. package/dist/telemetry.js.map +0 -1
  94. package/dist/toon.d.ts.map +0 -1
  95. package/dist/toon.js.map +0 -1
  96. package/dist/types.d.ts.map +0 -1
  97. package/dist/types.js.map +0 -1
  98. package/dist/upgrade.d.ts.map +0 -1
  99. package/dist/upgrade.js.map +0 -1
  100. package/dist/verification-run.d.ts.map +0 -1
  101. package/dist/verification-run.js.map +0 -1
@@ -0,0 +1,45 @@
1
+ import { EventType } from './constants.js';
2
+ /**
3
+ * Which events survive the bridge's rate cap.
4
+ *
5
+ * The cap exists because a busy app can emit faster than the bridge can absorb. But dropping
6
+ * indiscriminately is the wrong sampling policy: event volume is inversely correlated with event
7
+ * value. A React commit storm emits thousands of `render.commit`/`dom.*` per second, while the events
8
+ * an assertion actually turns on — a network call, an uncaught error, a route change — are rare.
9
+ * First-come-first-dropped therefore spends the whole budget on churn and loses exactly the signal
10
+ * the agent asked about.
11
+ *
12
+ * Measured on a react-admin renderer with a render loop: 11,138 events dropped in one window, and the
13
+ * single IPC call under test was among them. The assertion came back `unknown` — honest, but blind.
14
+ *
15
+ * So over the cap we drop the high-volume/low-value kinds first and keep a reserve for these. The
16
+ * reserve is bounded (see RATE_CAP_HIGH_VALUE_RESERVE_RATIO) — a flood of errors is still a flood,
17
+ * and going unbounded here would just move the overload rather than shed it.
18
+ */
19
+ export const HIGH_VALUE_EVENT_TYPES = new Set([
20
+ EventType.NET_REQUEST,
21
+ EventType.NET_PENDING,
22
+ EventType.NET_STREAM,
23
+ EventType.NET_DETAIL,
24
+ EventType.CONSOLE_ERROR,
25
+ EventType.CONSOLE_WARN,
26
+ EventType.ERROR_UNCAUGHT,
27
+ EventType.ROUTE_CHANGE,
28
+ EventType.SIGNAL,
29
+ EventType.STORAGE_CHANGE,
30
+ EventType.FLOW_RECORDED,
31
+ // The synthetic honesty events. Dropping these is self-defeating: they are how a sampled window
32
+ // announces that it is sampled, so losing them turns a known blind spot into a silent one.
33
+ EventType.TRANSPORT_OVERFLOW,
34
+ EventType.TRUNCATED,
35
+ EventType.BLIND_SPOT,
36
+ ]);
37
+ /**
38
+ * The over-cap reserve for high-value events, as a multiple of the cap. Total admitted per second is
39
+ * therefore bounded at `cap * (1 + ratio)` — still a hard bound, just one that spends its last slots
40
+ * on the events worth keeping.
41
+ */
42
+ export const RATE_CAP_HIGH_VALUE_RESERVE_RATIO = 1;
43
+ export function isHighValueEvent(type) {
44
+ return HIGH_VALUE_EVENT_TYPES.has(type);
45
+ }
@@ -0,0 +1,124 @@
1
+ /**
2
+ * What a verification can FIND — the vocabulary of faults and contradictions shared by the crawl,
3
+ * the contradiction hunter and the tools that report them. Split out of constants.ts to keep that
4
+ * file under the size cap.
5
+ */
6
+ /**
7
+ * Cross-channel contradictions: two observation channels making INCOMPATIBLE claims about the same
8
+ * action. This is the bug class a human structurally cannot see, because a human has one channel
9
+ * open — the screen. The agent holds DOM, store, signals, console and network in one causally
10
+ * ordered window and can notice they disagree.
11
+ *
12
+ * Every kind here describes a shipped-today false green: the run is green, the screen looks right,
13
+ * and the app is wrong. Contrast `CrawlAnomalyKind`, whose members are all SINGLE-channel facts (an
14
+ * error was logged; a request failed) — those are findable by reading one stream.
15
+ */
16
+ export declare const ContradictionKind: {
17
+ /** The screen moved forward while a request in the same window failed — the swallowed rejection. */
18
+ readonly UI_ADVANCED_REQUEST_FAILED: "ui-advanced-request-failed";
19
+ /** The app fired its own success signal while a request in the same window failed. Strongest form:
20
+ * the app did not merely look right, it explicitly ASSERTED success against its own evidence. */
21
+ readonly SIGNAL_CONTRADICTED: "signal-contradicted";
22
+ /** A write succeeded on the server and nothing on the client moved — the response went nowhere. */
23
+ readonly RESPONSE_IGNORED: "response-ignored";
24
+ /** The same write fired more than once in one action — double-submit / retry storm. */
25
+ readonly DUPLICATE_REQUEST: "duplicate-request";
26
+ /**
27
+ * Two reads of the same endpoint were in flight together and settled OUT OF ORDER, so the one the
28
+ * user asked for first is the one that landed last — and the screen is showing it.
29
+ *
30
+ * The classic filter/search race. It needs no bug in either request: whichever query the server
31
+ * happens to answer more slowly wins, so the UI shows data for a query the user has already
32
+ * replaced. Every channel reports success — both requests are 200, the control shows the new
33
+ * selection, the page settles — which is why it survives review and why `settled` cannot catch it.
34
+ *
35
+ * Detectable only from a request TIMELINE, which is why a screenshot or a DOM snapshot can never
36
+ * see it: the evidence is the interleaving, and by the time anyone looks, the interleaving is gone.
37
+ */
38
+ readonly STALE_RESPONSE_APPLIED: "stale-response-applied";
39
+ /**
40
+ * A request returned 2xx and reported failure inside its BODY.
41
+ *
42
+ * The status line describes the transport, not the outcome. GraphQL returns 200 for every error it
43
+ * has; a bulk endpoint returns 200 for the batch and puts per-item failures in the payload; a
44
+ * gateway-normalised API returns 200 with `success: false`. Every channel above the body — status,
45
+ * UI advance, settle — agrees with the optimistic reading, which is exactly why this survives.
46
+ */
47
+ readonly PARTIAL_FAILURE_IN_OK_RESPONSE: "partial-failure-in-ok-response";
48
+ /**
49
+ * A money value was sent back to the API at a different SCALE than the API stated it.
50
+ *
51
+ * Payment APIs speak minor units (paise, cents) as integers; a UI renders major units; writing the
52
+ * rendered number back into the same field is a 100x error the server accepts and reports as
53
+ * processed. Detectable only by holding the request timeline with bodies — the number sent is
54
+ * exactly the number on the screen, so every other channel agrees it is correct.
55
+ */
56
+ readonly UNIT_MISMATCH: "unit-mismatch";
57
+ /**
58
+ * A write returned success and its OWN echo shows a field it was asked to set was not applied.
59
+ *
60
+ * Ordinary in real backends: a column missing from the UPDATE, a schema stripping unknown keys, a
61
+ * PATCH honouring a subset, an enum falling back to a default. The status is 2xx, the body reports
62
+ * no failure, the UI advanced, the page settled — so every channel except the payload agrees the
63
+ * save worked, and the screen goes on showing the value the user typed rather than the value that
64
+ * was stored. Measured on a preferences write that asked for `locale: fr` and echoed `locale: en`.
65
+ */
66
+ readonly WRITE_FIELD_IGNORED: "write-field-ignored";
67
+ /** The UI advanced while a request was still in flight, so `settled` was reported over a live call. */
68
+ readonly REQUEST_NEVER_SETTLED: "request-never-settled";
69
+ /**
70
+ * The SERVER faulted (5xx) and the app blamed the USER — "invalid credentials" for a broken
71
+ * backend, "not permitted" for a crashed service. The user is told to fix something they cannot
72
+ * fix, and the real fault is never reported. A support ticket that costs hours to trace back.
73
+ */
74
+ readonly FAILURE_MISATTRIBUTED: "failure-misattributed";
75
+ /**
76
+ * The action was dispatched and NOTHING happened — no DOM, no store, no route, no request, no
77
+ * signal, no console line. The click landed on something that does not react.
78
+ *
79
+ * A contradiction rather than a warning because two channels disagree: the act layer reports
80
+ * `dispatched: true, settled: true`, and every observation channel reports an empty window. The
81
+ * settle half is the trap — a page that does nothing is quiet, and quiet is exactly what `settled`
82
+ * tests for, so `until: { kind: 'settled' }` PASSES on a dead click and the verdict read
83
+ * `verified: "yes", because: "no channel disagreeing"`. Measured on a real merchant dashboard by
84
+ * clicking a `styled.div` that `reticle_query { by: 'text' }` had resolved instead of the button
85
+ * beside it: zero events, store unchanged, green verdict.
86
+ */
87
+ readonly ACTION_HAD_NO_EFFECT: "action-had-no-effect";
88
+ /**
89
+ * The route changed and NOTHING was rendered for it — no content added, none removed, no request.
90
+ * The URL says you arrived somewhere; the page is blank.
91
+ *
92
+ * This is the class every "did the control work" heuristic misses, because the control DID work:
93
+ * it navigated. Measured on a real merchant dashboard with nine such links (Invoices, Route,
94
+ * Subscriptions, QR Codes, Customers…), `reticle_crawl` drove all nine and reported
95
+ * `deadControls: 0` — correctly, by its own definition, since a route change is activity.
96
+ *
97
+ * The discriminator came from executing both cases and comparing, not from reasoning: a working
98
+ * nav emitted `domAdded: 1, network: 2`; a blank one emitted `domAdded: 0, domRemoved: 0,
99
+ * network: 0` and left the page at an eighth the size. A real transition either fetches something
100
+ * or renders something.
101
+ *
102
+ * MEASURED PRECISION, and the limit is real: 11 findings on that dashboard, 10 of them genuinely
103
+ * blank destinations (verified by reading the DOM directly, not by asking Reticle), 1 false
104
+ * positive. The false positive is instructive rather than fixable by tuning — a route whose view
105
+ * is REVEALED from DOM that already existed emits `route.change` + `dom.attr` and nothing else,
106
+ * which is byte-for-byte the window a blank destination emits. No event-only rule separates them.
107
+ * Over-warning is the safe direction here (a false alarm costs a glance; a blank page shipped as
108
+ * working does not), so it is reported with that ceiling stated rather than tuned into silence.
109
+ */
110
+ readonly ROUTE_RENDERED_NOTHING: "route-rendered-nothing";
111
+ };
112
+ export type ContradictionKind = (typeof ContradictionKind)[keyof typeof ContradictionKind];
113
+ /**
114
+ * HTTP methods that CHANGE server state. Several contradiction rules are restricted to these on
115
+ * purpose: a GET that fires without moving the UI is a prefetch, but a POST that does is a lost
116
+ * write. Narrowing to writes is what keeps the rules from crying wolf on ordinary reads.
117
+ */
118
+ export declare const MUTATING_METHODS: readonly string[];
119
+ export declare const CrawlAnomalyKind: {
120
+ readonly CONSOLE_ERROR: "console-error";
121
+ readonly FAILED_REQUEST: "failed-request";
122
+ readonly DEAD_CONTROL: "dead-control";
123
+ };
124
+ export type CrawlAnomalyKind = (typeof CrawlAnomalyKind)[keyof typeof CrawlAnomalyKind];
@@ -0,0 +1,122 @@
1
+ /**
2
+ * What a verification can FIND — the vocabulary of faults and contradictions shared by the crawl,
3
+ * the contradiction hunter and the tools that report them. Split out of constants.ts to keep that
4
+ * file under the size cap.
5
+ */
6
+ /**
7
+ * Cross-channel contradictions: two observation channels making INCOMPATIBLE claims about the same
8
+ * action. This is the bug class a human structurally cannot see, because a human has one channel
9
+ * open — the screen. The agent holds DOM, store, signals, console and network in one causally
10
+ * ordered window and can notice they disagree.
11
+ *
12
+ * Every kind here describes a shipped-today false green: the run is green, the screen looks right,
13
+ * and the app is wrong. Contrast `CrawlAnomalyKind`, whose members are all SINGLE-channel facts (an
14
+ * error was logged; a request failed) — those are findable by reading one stream.
15
+ */
16
+ export const ContradictionKind = {
17
+ /** The screen moved forward while a request in the same window failed — the swallowed rejection. */
18
+ UI_ADVANCED_REQUEST_FAILED: 'ui-advanced-request-failed',
19
+ /** The app fired its own success signal while a request in the same window failed. Strongest form:
20
+ * the app did not merely look right, it explicitly ASSERTED success against its own evidence. */
21
+ SIGNAL_CONTRADICTED: 'signal-contradicted',
22
+ /** A write succeeded on the server and nothing on the client moved — the response went nowhere. */
23
+ RESPONSE_IGNORED: 'response-ignored',
24
+ /** The same write fired more than once in one action — double-submit / retry storm. */
25
+ DUPLICATE_REQUEST: 'duplicate-request',
26
+ /**
27
+ * Two reads of the same endpoint were in flight together and settled OUT OF ORDER, so the one the
28
+ * user asked for first is the one that landed last — and the screen is showing it.
29
+ *
30
+ * The classic filter/search race. It needs no bug in either request: whichever query the server
31
+ * happens to answer more slowly wins, so the UI shows data for a query the user has already
32
+ * replaced. Every channel reports success — both requests are 200, the control shows the new
33
+ * selection, the page settles — which is why it survives review and why `settled` cannot catch it.
34
+ *
35
+ * Detectable only from a request TIMELINE, which is why a screenshot or a DOM snapshot can never
36
+ * see it: the evidence is the interleaving, and by the time anyone looks, the interleaving is gone.
37
+ */
38
+ STALE_RESPONSE_APPLIED: 'stale-response-applied',
39
+ /**
40
+ * A request returned 2xx and reported failure inside its BODY.
41
+ *
42
+ * The status line describes the transport, not the outcome. GraphQL returns 200 for every error it
43
+ * has; a bulk endpoint returns 200 for the batch and puts per-item failures in the payload; a
44
+ * gateway-normalised API returns 200 with `success: false`. Every channel above the body — status,
45
+ * UI advance, settle — agrees with the optimistic reading, which is exactly why this survives.
46
+ */
47
+ PARTIAL_FAILURE_IN_OK_RESPONSE: 'partial-failure-in-ok-response',
48
+ /**
49
+ * A money value was sent back to the API at a different SCALE than the API stated it.
50
+ *
51
+ * Payment APIs speak minor units (paise, cents) as integers; a UI renders major units; writing the
52
+ * rendered number back into the same field is a 100x error the server accepts and reports as
53
+ * processed. Detectable only by holding the request timeline with bodies — the number sent is
54
+ * exactly the number on the screen, so every other channel agrees it is correct.
55
+ */
56
+ UNIT_MISMATCH: 'unit-mismatch',
57
+ /**
58
+ * A write returned success and its OWN echo shows a field it was asked to set was not applied.
59
+ *
60
+ * Ordinary in real backends: a column missing from the UPDATE, a schema stripping unknown keys, a
61
+ * PATCH honouring a subset, an enum falling back to a default. The status is 2xx, the body reports
62
+ * no failure, the UI advanced, the page settled — so every channel except the payload agrees the
63
+ * save worked, and the screen goes on showing the value the user typed rather than the value that
64
+ * was stored. Measured on a preferences write that asked for `locale: fr` and echoed `locale: en`.
65
+ */
66
+ WRITE_FIELD_IGNORED: 'write-field-ignored',
67
+ /** The UI advanced while a request was still in flight, so `settled` was reported over a live call. */
68
+ REQUEST_NEVER_SETTLED: 'request-never-settled',
69
+ /**
70
+ * The SERVER faulted (5xx) and the app blamed the USER — "invalid credentials" for a broken
71
+ * backend, "not permitted" for a crashed service. The user is told to fix something they cannot
72
+ * fix, and the real fault is never reported. A support ticket that costs hours to trace back.
73
+ */
74
+ FAILURE_MISATTRIBUTED: 'failure-misattributed',
75
+ /**
76
+ * The action was dispatched and NOTHING happened — no DOM, no store, no route, no request, no
77
+ * signal, no console line. The click landed on something that does not react.
78
+ *
79
+ * A contradiction rather than a warning because two channels disagree: the act layer reports
80
+ * `dispatched: true, settled: true`, and every observation channel reports an empty window. The
81
+ * settle half is the trap — a page that does nothing is quiet, and quiet is exactly what `settled`
82
+ * tests for, so `until: { kind: 'settled' }` PASSES on a dead click and the verdict read
83
+ * `verified: "yes", because: "no channel disagreeing"`. Measured on a real merchant dashboard by
84
+ * clicking a `styled.div` that `reticle_query { by: 'text' }` had resolved instead of the button
85
+ * beside it: zero events, store unchanged, green verdict.
86
+ */
87
+ ACTION_HAD_NO_EFFECT: 'action-had-no-effect',
88
+ /**
89
+ * The route changed and NOTHING was rendered for it — no content added, none removed, no request.
90
+ * The URL says you arrived somewhere; the page is blank.
91
+ *
92
+ * This is the class every "did the control work" heuristic misses, because the control DID work:
93
+ * it navigated. Measured on a real merchant dashboard with nine such links (Invoices, Route,
94
+ * Subscriptions, QR Codes, Customers…), `reticle_crawl` drove all nine and reported
95
+ * `deadControls: 0` — correctly, by its own definition, since a route change is activity.
96
+ *
97
+ * The discriminator came from executing both cases and comparing, not from reasoning: a working
98
+ * nav emitted `domAdded: 1, network: 2`; a blank one emitted `domAdded: 0, domRemoved: 0,
99
+ * network: 0` and left the page at an eighth the size. A real transition either fetches something
100
+ * or renders something.
101
+ *
102
+ * MEASURED PRECISION, and the limit is real: 11 findings on that dashboard, 10 of them genuinely
103
+ * blank destinations (verified by reading the DOM directly, not by asking Reticle), 1 false
104
+ * positive. The false positive is instructive rather than fixable by tuning — a route whose view
105
+ * is REVEALED from DOM that already existed emits `route.change` + `dom.attr` and nothing else,
106
+ * which is byte-for-byte the window a blank destination emits. No event-only rule separates them.
107
+ * Over-warning is the safe direction here (a false alarm costs a glance; a blank page shipped as
108
+ * working does not), so it is reported with that ceiling stated rather than tuned into silence.
109
+ */
110
+ ROUTE_RENDERED_NOTHING: 'route-rendered-nothing',
111
+ };
112
+ /**
113
+ * HTTP methods that CHANGE server state. Several contradiction rules are restricted to these on
114
+ * purpose: a GET that fires without moving the UI is a prefetch, but a POST that does is a lost
115
+ * write. Narrowing to writes is what keeps the rules from crying wolf on ordinary reads.
116
+ */
117
+ export const MUTATING_METHODS = ['POST', 'PUT', 'PATCH', 'DELETE', 'IPC'];
118
+ export const CrawlAnomalyKind = {
119
+ CONSOLE_ERROR: 'console-error', // the click logged a console.error / uncaught error
120
+ FAILED_REQUEST: 'failed-request', // it fired a request that returned >= 400
121
+ DEAD_CONTROL: 'dead-control', // it dispatched but the app did NOTHING (no DOM/net/route/signal)
122
+ };
@@ -172,4 +172,3 @@ export declare const AnnotationErrorCode: {
172
172
  export type AnnotationErrorCode = (typeof AnnotationErrorCode)[keyof typeof AnnotationErrorCode];
173
173
  /** Leading word of the compiled-predicate confirmation ("will assert …"). */
174
174
  export declare const COMPILED_PREDICATE_PREFIX = "will";
175
- //# sourceMappingURL=flow-constants.d.ts.map
@@ -159,4 +159,3 @@ export const AnnotationErrorCode = {
159
159
  };
160
160
  /** Leading word of the compiled-predicate confirmation ("will assert …"). */
161
161
  export const COMPILED_PREDICATE_PREFIX = 'will';
162
- //# sourceMappingURL=flow-constants.js.map
@@ -364,6 +364,15 @@ export interface SuiteVerdict {
364
364
  summary: string;
365
365
  /** Only the failing flows, with their decision (verdict, what changed, where, next action). */
366
366
  failures: SuiteFlowResult[];
367
+ /**
368
+ * Flows that have both passed AND failed on UNCHANGED code — intermittent, not regressions.
369
+ *
370
+ * A flake and a regression demand opposite responses: one is chased, the other is quarantined. The
371
+ * ledger that answers this already existed and was written only by the CLI, so an agent replaying a
372
+ * suite a hundred times could never learn which of its failures were noise. Omitted entirely when
373
+ * the ledger has not seen enough runs to say.
374
+ */
375
+ flaky?: string[];
367
376
  }
368
377
  /** The reticle_flow_replay envelope. */
369
378
  export interface FlowReplayResult {
@@ -1325,4 +1334,3 @@ export interface FlowHealResult {
1325
1334
  };
1326
1335
  }
1327
1336
  export type RecordedFlow = z.infer<typeof RecordedFlowSchema>;
1328
- //# sourceMappingURL=flow-types.d.ts.map
@@ -171,4 +171,3 @@ export const RecordedFlowSchema = z.object({
171
171
  name: z.string(),
172
172
  flow: FlowFileSchema,
173
173
  });
174
- //# sourceMappingURL=flow-types.js.map
package/dist/index.d.ts CHANGED
@@ -8,13 +8,18 @@
8
8
  * now the boundary is documented here.)
9
9
  */
10
10
  export * from './constants.js';
11
+ export * from './verified-constants.js';
11
12
  export * from './session-constants.js';
12
13
  export * from './messages.js';
13
14
  export * from './event-payloads.js';
15
+ export * from './event-priority.js';
14
16
  export * from './flow-types.js';
15
17
  export * from './verification-run.js';
16
18
  export * from './types.js';
17
19
  export * from './brand.js';
20
+ export * from './net.js';
21
+ export * from './findings.js';
22
+ export * from './desktop-contract.js';
18
23
  export * from './consequence.js';
19
24
  export * from './notices.js';
20
25
  export * from './journal.js';
@@ -25,4 +30,5 @@ export * from './state-select.js';
25
30
  export * from './toon.js';
26
31
  export * from './upgrade.js';
27
32
  export * from './telemetry.js';
28
- //# sourceMappingURL=index.d.ts.map
33
+ export * from './telemetry-session.js';
34
+ export * from './telemetry-feedback.js';
package/dist/index.js CHANGED
@@ -9,13 +9,18 @@
9
9
  */
10
10
  // ── STABLE public surface: the wire/domain contract ──────────────────────────────────────────────
11
11
  export * from './constants.js'; // EventType, ActionType, wire constants, TRANSPORT_LIMITS, …
12
+ export * from './verified-constants.js'; // Verified — the one field an agent gates on
12
13
  export * from './session-constants.js';
13
14
  export * from './messages.js'; // ReticleEvent + the message schemas
14
15
  export * from './event-payloads.js'; // per-event payload schemas + wire vocab
16
+ export * from './event-priority.js'; // which events survive the bridge rate cap
15
17
  export * from './flow-types.js'; // FlowStep, FlowExpect, FlowStepTool, replay result shapes
16
18
  export * from './verification-run.js'; // run/verdict shapes for the CI surface
17
19
  export * from './types.js';
18
20
  export * from './brand.js'; // RunId / SessionId / Ref brands + validators
21
+ export * from './net.js'; // NetInitiator / ipc:// scheme — network + desktop-IPC call vocabulary
22
+ export * from './findings.js'; // crawl anomalies + cross-channel contradictions
23
+ export * from './desktop-contract.js'; // the Electron preload/main/renderer/daemon string contract
19
24
  export * from './consequence.js';
20
25
  export * from './notices.js';
21
26
  export * from './journal.js';
@@ -26,5 +31,6 @@ export * from './redaction.js'; // isSensitiveKey / scrubKnownSecrets — the sh
26
31
  export * from './state-select.js'; // selectPath / capDepth — shared by browser SDK + server fallback
27
32
  export * from './toon.js'; // TOON encoding used by the server's result encoder
28
33
  export * from './upgrade.js'; // self-update policy shared by the CLI
29
- export * from './telemetry.js'; // anonymous adoption telemetry wire contract (DAU/WAU/MAU/installs)
30
- //# sourceMappingURL=index.js.map
34
+ export * from './telemetry.js';
35
+ export * from './telemetry-session.js'; // the session/project rollup payloads
36
+ export * from './telemetry-feedback.js'; // the two things a PERSON writes: feedback + a self-declared identity // anonymous adoption telemetry wire contract (DAU/WAU/MAU/installs)
package/dist/journal.d.ts CHANGED
@@ -87,4 +87,3 @@ export declare const JournalActionSchema: z.ZodObject<{
87
87
  } | undefined;
88
88
  }>;
89
89
  export type JournalAction = z.infer<typeof JournalActionSchema>;
90
- //# sourceMappingURL=journal.d.ts.map
package/dist/journal.js CHANGED
@@ -35,4 +35,3 @@ export const JournalActionSchema = z.object({
35
35
  /** Elapsed-ms timestamp the action was recorded at (clock injected by the writer). */
36
36
  at: z.number().int().min(0),
37
37
  });
38
- //# sourceMappingURL=journal.js.map
@@ -114,9 +114,11 @@ export declare const ReticleEventSchema: z.ZodObject<{
114
114
  readonly TRANSPORT_OVERFLOW: "transport.overflow";
115
115
  readonly TRUNCATED: "truncated";
116
116
  readonly BLIND_SPOT: "blind-spot";
117
+ readonly SDK_FAILED: "sdk.failed";
117
118
  readonly NET_DETAIL: "net.detail";
118
119
  readonly HUMAN_CONTROL: "human.control";
119
120
  readonly HUMAN_MARK: "human.mark";
121
+ readonly DOWNLOAD: "download";
120
122
  }>;
121
123
  sessionId: z.ZodString;
122
124
  /** Stable element reference this event concerns, when applicable (e.g. "e7"). */
@@ -139,7 +141,7 @@ export declare const ReticleEventSchema: z.ZodObject<{
139
141
  /** Event-type-specific payload. Kept open here; refined per observer at the edges. */
140
142
  data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
141
143
  }, "strip", z.ZodTypeAny, {
142
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
144
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
143
145
  t: number;
144
146
  sessionId: string;
145
147
  data: Record<string, unknown>;
@@ -148,7 +150,7 @@ export declare const ReticleEventSchema: z.ZodObject<{
148
150
  actionId?: string | undefined;
149
151
  attribution?: "window" | undefined;
150
152
  }, {
151
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
153
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
152
154
  t: number;
153
155
  sessionId: string;
154
156
  ref?: string | undefined;
@@ -277,9 +279,11 @@ export declare const EventMessageSchema: z.ZodObject<{
277
279
  readonly TRANSPORT_OVERFLOW: "transport.overflow";
278
280
  readonly TRUNCATED: "truncated";
279
281
  readonly BLIND_SPOT: "blind-spot";
282
+ readonly SDK_FAILED: "sdk.failed";
280
283
  readonly NET_DETAIL: "net.detail";
281
284
  readonly HUMAN_CONTROL: "human.control";
282
285
  readonly HUMAN_MARK: "human.mark";
286
+ readonly DOWNLOAD: "download";
283
287
  }>;
284
288
  sessionId: z.ZodString;
285
289
  /** Stable element reference this event concerns, when applicable (e.g. "e7"). */
@@ -302,7 +306,7 @@ export declare const EventMessageSchema: z.ZodObject<{
302
306
  /** Event-type-specific payload. Kept open here; refined per observer at the edges. */
303
307
  data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
304
308
  }, "strip", z.ZodTypeAny, {
305
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
309
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
306
310
  t: number;
307
311
  sessionId: string;
308
312
  data: Record<string, unknown>;
@@ -311,7 +315,7 @@ export declare const EventMessageSchema: z.ZodObject<{
311
315
  actionId?: string | undefined;
312
316
  attribution?: "window" | undefined;
313
317
  }, {
314
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
318
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
315
319
  t: number;
316
320
  sessionId: string;
317
321
  ref?: string | undefined;
@@ -322,7 +326,7 @@ export declare const EventMessageSchema: z.ZodObject<{
322
326
  }>;
323
327
  }, "strip", z.ZodTypeAny, {
324
328
  event: {
325
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
329
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
326
330
  t: number;
327
331
  sessionId: string;
328
332
  data: Record<string, unknown>;
@@ -334,7 +338,7 @@ export declare const EventMessageSchema: z.ZodObject<{
334
338
  kind: "event";
335
339
  }, {
336
340
  event: {
337
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
341
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
338
342
  t: number;
339
343
  sessionId: string;
340
344
  ref?: string | undefined;
@@ -455,9 +459,11 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
455
459
  readonly TRANSPORT_OVERFLOW: "transport.overflow";
456
460
  readonly TRUNCATED: "truncated";
457
461
  readonly BLIND_SPOT: "blind-spot";
462
+ readonly SDK_FAILED: "sdk.failed";
458
463
  readonly NET_DETAIL: "net.detail";
459
464
  readonly HUMAN_CONTROL: "human.control";
460
465
  readonly HUMAN_MARK: "human.mark";
466
+ readonly DOWNLOAD: "download";
461
467
  }>;
462
468
  sessionId: z.ZodString;
463
469
  /** Stable element reference this event concerns, when applicable (e.g. "e7"). */
@@ -480,7 +486,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
480
486
  /** Event-type-specific payload. Kept open here; refined per observer at the edges. */
481
487
  data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
482
488
  }, "strip", z.ZodTypeAny, {
483
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
489
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
484
490
  t: number;
485
491
  sessionId: string;
486
492
  data: Record<string, unknown>;
@@ -489,7 +495,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
489
495
  actionId?: string | undefined;
490
496
  attribution?: "window" | undefined;
491
497
  }, {
492
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
498
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
493
499
  t: number;
494
500
  sessionId: string;
495
501
  ref?: string | undefined;
@@ -500,7 +506,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
500
506
  }>;
501
507
  }, "strip", z.ZodTypeAny, {
502
508
  event: {
503
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
509
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
504
510
  t: number;
505
511
  sessionId: string;
506
512
  data: Record<string, unknown>;
@@ -512,7 +518,7 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
512
518
  kind: "event";
513
519
  }, {
514
520
  event: {
515
- type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "net.detail" | "human.control" | "human.mark";
521
+ type: "signal" | "dom.added" | "dom.removed" | "dom.attr" | "dom.text" | "net.request" | "net.pending" | "net.stream" | "perf" | "route.change" | "console.log" | "console.warn" | "console.error" | "console.info" | "console.debug" | "error.uncaught" | "visible.shown" | "anim.start" | "anim.end" | "scroll.position" | "reveal.shown" | "state.change" | "storage.change" | "page.health" | "render.commit" | "focus.change" | "flow.recorded" | "transport.overflow" | "truncated" | "blind-spot" | "sdk.failed" | "net.detail" | "human.control" | "human.mark" | "download";
516
522
  t: number;
517
523
  sessionId: string;
518
524
  ref?: string | undefined;
@@ -523,4 +529,3 @@ export declare const ReticleMessageSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
523
529
  };
524
530
  kind: "event";
525
531
  }>]>;
526
- //# sourceMappingURL=messages.d.ts.map
package/dist/messages.js CHANGED
@@ -113,4 +113,3 @@ export const ReticleMessageSchema = z.discriminatedUnion('kind', [
113
113
  CommandResultSchema,
114
114
  EventMessageSchema,
115
115
  ]);
116
- //# sourceMappingURL=messages.js.map
package/dist/net.d.ts ADDED
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Network-call vocabulary shared by the browser SDK and the server. Split out of constants.ts to
3
+ * keep that file under the size cap.
4
+ */
5
+ /**
6
+ * What issued a network-shaped call. Desktop apps (Electron, Tauri) reach their backend over IPC
7
+ * rather than HTTP, so an IPC call is recorded as a request with `initiator: 'ipc'` — that keeps
8
+ * `reticle_network`, settle-waiting and `assert { net }` working on desktop with no new wire shape.
9
+ */
10
+ export declare const NetInitiator: {
11
+ readonly FETCH: "fetch";
12
+ readonly XHR: "xhr";
13
+ readonly BEACON: "beacon";
14
+ readonly IPC: "ipc";
15
+ };
16
+ export type NetInitiator = (typeof NetInitiator)[keyof typeof NetInitiator];
17
+ /**
18
+ * Synthetic URL scheme for an IPC call, so a channel/command name occupies the `url` field the way a
19
+ * real endpoint does: `ipc://get_user`. Agents filter and assert on it with the ordinary net tools.
20
+ */
21
+ export declare const IPC_URL_SCHEME = "ipc://";
22
+ /**
23
+ * IPC has no status code, but every existing filter and assertion in Reticle keys on one
24
+ * (`reticle_network { status: 500 }`, "did POST /x return 200?"). Mapping a settled IPC call onto
25
+ * these two synthetic codes is what makes a FAILED main-process handler or Rust command visible to
26
+ * the tools an agent already uses — without it, an IPC failure is unqueryable and the desktop story
27
+ * is a false green by construction. `ok` is still emitted alongside and is the authoritative field.
28
+ */
29
+ export declare const IpcStatus: {
30
+ readonly OK: 200;
31
+ readonly ERROR: 500;
32
+ };
33
+ /**
34
+ * `202 Accepted` — the server took the request and has NOT finished processing it.
35
+ *
36
+ * The only status in HTTP whose meaning is "no outcome yet". Folding it into the 2xx success band is
37
+ * how an asynchronous workflow gets verified at exactly the moment nothing has been decided:
38
+ * measured on a logistics console, a dispatch answered 202, the UI rendered success, the page
39
+ * settled, and the server reverted the shipment 1.2s later.
40
+ */
41
+ export declare const HTTP_ACCEPTED = 202;