@reticlehq/core 2.14.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{artifacts-entry.d.ts → artifacts/artifacts-entry.d.ts} +7 -7
- package/dist/{artifacts-entry.js → artifacts/artifacts-entry.js} +7 -7
- package/dist/artifacts/flow-composition.d.ts +30 -0
- package/dist/artifacts/flow-composition.js +19 -0
- package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +89 -3
- package/dist/{flow-constants.js → artifacts/flow-constants.js} +95 -4
- package/dist/artifacts/flow-mutation-target.d.ts +39 -0
- package/dist/artifacts/flow-mutation-target.js +89 -0
- package/dist/artifacts/flow-order.d.ts +30 -0
- package/dist/artifacts/flow-order.js +49 -0
- package/dist/artifacts/flow-select.d.ts +56 -0
- package/dist/artifacts/flow-select.js +56 -0
- package/dist/artifacts/flow-step-tool.d.ts +31 -0
- package/dist/artifacts/flow-step-tool.js +31 -0
- package/dist/artifacts/flow-types.d.ts +3736 -0
- package/dist/artifacts/flow-types.js +463 -0
- package/dist/artifacts/flow-unreached.d.ts +12 -0
- package/dist/artifacts/flow-unreached.js +24 -0
- package/dist/{impact.d.ts → artifacts/impact.d.ts} +119 -103
- package/dist/{impact.js → artifacts/impact.js} +14 -5
- package/dist/{journal.d.ts → artifacts/journal.d.ts} +51 -7
- package/dist/{journal.js → artifacts/journal.js} +38 -2
- package/dist/artifacts/step-effect.d.ts +29 -0
- package/dist/artifacts/step-effect.js +28 -0
- package/dist/hooks/hook-events.d.ts +311 -0
- package/dist/hooks/hook-events.js +127 -0
- package/dist/hooks/hooks-entry.d.ts +9 -0
- package/dist/hooks/hooks-entry.js +9 -0
- package/dist/{brand.d.ts → identity/brand.d.ts} +7 -0
- package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
- package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
- package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
- package/dist/{document-identity.js → identity/document-identity.js} +4 -5
- package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
- package/dist/{source-constants.js → identity/source-constants.js} +4 -4
- package/dist/index.d.ts +56 -43
- package/dist/index.js +65 -45
- package/dist/onboarding.d.ts +114 -0
- package/dist/onboarding.js +141 -0
- package/dist/realm/registry.d.ts +212 -0
- package/dist/realm/registry.js +302 -0
- package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +6 -7
- package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
- package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
- package/dist/{project-registry.js → registry/project-registry.js} +5 -5
- package/dist/schema/command-name.json +31 -0
- package/dist/schema/event-payloads.json +791 -0
- package/dist/schema/hello-message.json +70 -2
- package/dist/schema/reticle-message.json +70 -2
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +15 -16
- package/dist/telemetry-feedback.js +11 -12
- package/dist/telemetry-license.d.ts +1 -1
- package/dist/telemetry-license.js +1 -1
- package/dist/telemetry-refusal.d.ts +11 -11
- package/dist/telemetry-refusal.js +7 -8
- package/dist/telemetry-session.d.ts +51 -59
- package/dist/telemetry-session.js +47 -55
- package/dist/telemetry.d.ts +243 -214
- package/dist/telemetry.js +83 -98
- package/dist/tour-entry.d.ts +10 -0
- package/dist/tour-entry.js +10 -0
- package/dist/tour.d.ts +125 -0
- package/dist/tour.js +165 -0
- package/dist/{consequence.d.ts → verdict/consequence.d.ts} +32 -15
- package/dist/{consequence.js → verdict/consequence.js} +9 -31
- package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
- package/dist/{findings.d.ts → verdict/findings.d.ts} +86 -39
- package/dist/{findings.js → verdict/findings.js} +103 -49
- package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +7 -14
- package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +7 -15
- package/dist/{intent.d.ts → verdict/intent.d.ts} +35 -46
- package/dist/{intent.js → verdict/intent.js} +11 -22
- package/dist/verdict/revision.d.ts +44 -0
- package/dist/verdict/revision.js +53 -0
- package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
- package/dist/{run-context.js → verdict/run-context.js} +15 -36
- package/dist/{security.js → verdict/security.js} +12 -21
- package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +381 -105
- package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
- package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +25 -13
- package/dist/{verified-constants.js → verdict/verified-constants.js} +25 -13
- package/dist/{verify-progress.d.ts → verdict/verify-progress.d.ts} +18 -22
- package/dist/{verify-progress.js → verdict/verify-progress.js} +6 -10
- package/dist/wire/channel.d.ts +46 -0
- package/dist/wire/channel.js +95 -0
- package/dist/{constants.d.ts → wire/constants/constants.d.ts} +91 -28
- package/dist/{constants.js → wire/constants/constants.js} +105 -28
- package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +9 -2
- package/dist/{session-constants.js → wire/constants/session-constants.js} +9 -2
- package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
- package/dist/{event-classification.js → wire/event-classification.js} +1 -1
- package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +68 -13
- package/dist/{event-payloads.js → wire/event-payloads.js} +21 -3
- package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
- package/dist/{event-priority.js → wire/event-priority.js} +2 -5
- package/dist/{global-press.js → wire/global-press.js} +1 -1
- package/dist/{messages.d.ts → wire/messages.d.ts} +239 -48
- package/dist/{messages.js → wire/messages.js} +68 -5
- package/dist/wire/narrow.d.ts +39 -0
- package/dist/wire/narrow.js +45 -0
- package/dist/{net.d.ts → wire/net.d.ts} +12 -13
- package/dist/{net.js → wire/net.js} +12 -13
- package/dist/wire/platform.d.ts +37 -0
- package/dist/wire/platform.js +36 -0
- package/dist/{redaction.js → wire/redaction.js} +12 -12
- package/dist/wire/tool-names.d.ts +133 -0
- package/dist/wire/tool-names.js +142 -0
- package/dist/{toon.js → wire/toon.js} +1 -1
- package/dist/{types.d.ts → wire/types.d.ts} +77 -76
- package/dist/{types.js → wire/types.js} +4 -3
- package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
- package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
- package/dist/{notices.d.ts → words/notices.d.ts} +8 -12
- package/dist/{notices.js → words/notices.js} +8 -12
- package/package.json +16 -7
- package/dist/flow-types.d.ts +0 -1711
- package/dist/flow-types.js +0 -247
- package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +0 -0
- package/dist/{impact-savings.js → artifacts/impact-savings.js} +0 -0
- package/dist/{brand.js → identity/brand.js} +0 -0
- package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
- package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
- package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
- package/dist/{project-id.js → identity/project-id.js} +0 -0
- package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
- package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
- package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
- package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
- package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
- package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
- package/dist/{global-press.d.ts → wire/global-press.d.ts} +0 -0
- package/dist/{redaction.d.ts → wire/redaction.d.ts} +0 -0
- package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
- package/dist/{state-select.js → wire/state-select.js} +0 -0
- package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
- package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
- package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
- package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
- package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
- package/dist/{upgrade.d.ts → words/upgrade.d.ts} +2 -2
- /package/dist/{upgrade.js → words/upgrade.js} +0 -0
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
"const": "hello"
|
|
10
10
|
},
|
|
11
11
|
"protocolVersion": {
|
|
12
|
-
"type": "
|
|
13
|
-
"
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 1,
|
|
14
|
+
"maximum": 1
|
|
14
15
|
},
|
|
15
16
|
"sessionId": {
|
|
16
17
|
"type": "string",
|
|
@@ -40,6 +41,73 @@
|
|
|
40
41
|
"type": "string",
|
|
41
42
|
"maxLength": 512
|
|
42
43
|
},
|
|
44
|
+
"platform": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"web",
|
|
48
|
+
"webview",
|
|
49
|
+
"native",
|
|
50
|
+
"service"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"channels": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"enum": [
|
|
58
|
+
"ui",
|
|
59
|
+
"net",
|
|
60
|
+
"state",
|
|
61
|
+
"signal",
|
|
62
|
+
"log",
|
|
63
|
+
"route",
|
|
64
|
+
"storage",
|
|
65
|
+
"time",
|
|
66
|
+
"visual"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"maxItems": 32
|
|
70
|
+
},
|
|
71
|
+
"commands": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"maxLength": 512
|
|
76
|
+
},
|
|
77
|
+
"maxItems": 32
|
|
78
|
+
},
|
|
79
|
+
"contractParts": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"commands": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"maxItems": 128
|
|
88
|
+
},
|
|
89
|
+
"events": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"items": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"maxItems": 128
|
|
95
|
+
},
|
|
96
|
+
"actions": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"maxItems": 128
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"commands",
|
|
106
|
+
"events",
|
|
107
|
+
"actions"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false
|
|
110
|
+
},
|
|
43
111
|
"hasCapabilities": {
|
|
44
112
|
"type": "boolean"
|
|
45
113
|
},
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"const": "hello"
|
|
12
12
|
},
|
|
13
13
|
"protocolVersion": {
|
|
14
|
-
"type": "
|
|
15
|
-
"
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 1,
|
|
16
|
+
"maximum": 1
|
|
16
17
|
},
|
|
17
18
|
"sessionId": {
|
|
18
19
|
"type": "string",
|
|
@@ -42,6 +43,73 @@
|
|
|
42
43
|
"type": "string",
|
|
43
44
|
"maxLength": 512
|
|
44
45
|
},
|
|
46
|
+
"platform": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"web",
|
|
50
|
+
"webview",
|
|
51
|
+
"native",
|
|
52
|
+
"service"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"channels": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"ui",
|
|
61
|
+
"net",
|
|
62
|
+
"state",
|
|
63
|
+
"signal",
|
|
64
|
+
"log",
|
|
65
|
+
"route",
|
|
66
|
+
"storage",
|
|
67
|
+
"time",
|
|
68
|
+
"visual"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"maxItems": 32
|
|
72
|
+
},
|
|
73
|
+
"commands": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"maxLength": 512
|
|
78
|
+
},
|
|
79
|
+
"maxItems": 32
|
|
80
|
+
},
|
|
81
|
+
"contractParts": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"commands": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"maxItems": 128
|
|
90
|
+
},
|
|
91
|
+
"events": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"maxItems": 128
|
|
97
|
+
},
|
|
98
|
+
"actions": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"maxItems": 128
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": [
|
|
107
|
+
"commands",
|
|
108
|
+
"events",
|
|
109
|
+
"actions"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false
|
|
112
|
+
},
|
|
45
113
|
"hasCapabilities": {
|
|
46
114
|
"type": "boolean"
|
|
47
115
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Every name below is ALSO exported from the root entry point, which stays as it was.
|
|
9
9
|
*/
|
|
10
10
|
export * from './telemetry.js';
|
|
11
|
-
export * from './no-session-reason.js';
|
|
11
|
+
export * from './words/no-session-reason.js';
|
|
12
12
|
export * from './telemetry-refusal.js';
|
|
13
13
|
export * from './telemetry-session.js';
|
|
14
14
|
export * from './telemetry-license.js';
|
package/dist/telemetry-entry.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Every name below is ALSO exported from the root entry point, which stays as it was.
|
|
9
9
|
*/
|
|
10
10
|
export * from './telemetry.js';
|
|
11
|
-
export * from './no-session-reason.js';
|
|
11
|
+
export * from './words/no-session-reason.js';
|
|
12
12
|
export * from './telemetry-refusal.js';
|
|
13
13
|
export * from './telemetry-session.js';
|
|
14
14
|
export * from './telemetry-license.js';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The FEEDBACK and IDENTITY contract — the only two things Reticle ever sends that a person wrote.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* something you have to remember — and it keeps the event contract under the size cap.
|
|
4
|
+
* They are a different privacy class from the rest of telemetry, which is counters and enums that
|
|
5
|
+
* cannot describe anyone: these two carry authored text and a self-declared identity, they are never
|
|
6
|
+
* emitted passively, and they each have their own consent story. Keeping them in one file makes that
|
|
7
|
+
* boundary something you can see rather than something you have to remember.
|
|
9
8
|
*
|
|
10
9
|
* Neither is ever populated by inference. A `Feedback` exists because an agent called
|
|
11
10
|
* `reticle_feedback` or a human ran `reticle feedback`; an `Identity` exists because a human ran
|
|
@@ -20,9 +19,9 @@ export declare const FeedbackSource: {
|
|
|
20
19
|
export type FeedbackSource = (typeof FeedbackSource)[keyof typeof FeedbackSource];
|
|
21
20
|
/**
|
|
22
21
|
* What kind of report this is. The first three are the agent's vocabulary — they name the three ways
|
|
23
|
-
* Reticle fails an agent, and keeping them distinct is the whole point: a BUG is
|
|
24
|
-
*
|
|
25
|
-
* them into "it didn't work"
|
|
22
|
+
* Reticle fails an agent, and keeping them distinct is the whole point: a BUG is a Reticle defect, a
|
|
23
|
+
* GAP is something Reticle cannot see at all, and an AMBIGUITY is a verdict the agent could not act
|
|
24
|
+
* on. Lumping them into "it didn't work" destroys the only signal that says what to build next.
|
|
26
25
|
*/
|
|
27
26
|
export declare const FeedbackKind: {
|
|
28
27
|
/** A tool misbehaved: wrong result, crash, or a contract it did not honor. */
|
|
@@ -54,8 +53,8 @@ export declare const FeedbackKind: {
|
|
|
54
53
|
*
|
|
55
54
|
* Filed by a human at a terminal OR by an agent mid-task, and the agent case is the one that was
|
|
56
55
|
* missing: every other kind an agent can file is a complaint, so the corpus could only ever grow
|
|
57
|
-
* into a defect list
|
|
58
|
-
*
|
|
56
|
+
* into a defect list, which never says which parts are worth protecting through a change — the
|
|
57
|
+
* question a refactor actually needs answered.
|
|
59
58
|
*
|
|
60
59
|
* A score alone is close to worthless here and the tool says so: a model asked for a number will
|
|
61
60
|
* produce an agreeable one, and an agreeable number is indistinguishable from an earned one once
|
|
@@ -86,7 +85,7 @@ export type BrowserEngine = (typeof BrowserEngine)[keyof typeof BrowserEngine];
|
|
|
86
85
|
* `attached`: Reticle launched nothing, so the page itself is the only thing that knows which
|
|
87
86
|
* browser it is. A CLOSED list on purpose — the raw UA string and a raw `userAgentData` brand are
|
|
88
87
|
* both unbounded and fingerprintable, so anything unrecognised reports `OTHER` rather than
|
|
89
|
-
* forwarding
|
|
88
|
+
* forwarding an unrecognised name.
|
|
90
89
|
*/
|
|
91
90
|
export declare const BrowserBrand: {
|
|
92
91
|
readonly CHROME: "chrome";
|
|
@@ -163,8 +162,8 @@ export declare const FeedbackSchema: z.ZodObject<{
|
|
|
163
162
|
*
|
|
164
163
|
* Filed by a human at a terminal OR by an agent mid-task, and the agent case is the one that was
|
|
165
164
|
* missing: every other kind an agent can file is a complaint, so the corpus could only ever grow
|
|
166
|
-
* into a defect list
|
|
167
|
-
*
|
|
165
|
+
* into a defect list, which never says which parts are worth protecting through a change — the
|
|
166
|
+
* question a refactor actually needs answered.
|
|
168
167
|
*
|
|
169
168
|
* A score alone is close to worthless here and the tool says so: a model asked for a number will
|
|
170
169
|
* produce an agreeable one, and an agreeable number is indistinguishable from an earned one once
|
|
@@ -201,7 +200,7 @@ export declare const FeedbackSchema: z.ZodObject<{
|
|
|
201
200
|
* The MODEL the agent is running, self-reported.
|
|
202
201
|
*
|
|
203
202
|
* Not obtainable any other way: MCP's `clientInfo` carries a client name and version and has no
|
|
204
|
-
* concept of a model, so the transport cannot
|
|
203
|
+
* concept of a model, so the transport cannot say. The agent knows, and this report is already
|
|
205
204
|
* something the agent authored — so asking is both the only mechanism and a reliable one.
|
|
206
205
|
*
|
|
207
206
|
* It matters more than it looks: a limitation that blocks a smaller model may be a docs problem
|
|
@@ -240,9 +239,9 @@ export declare const FeedbackSchema: z.ZodObject<{
|
|
|
240
239
|
readonly PROJECT: "project";
|
|
241
240
|
}>>;
|
|
242
241
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
source: "agent" | "human";
|
|
244
242
|
text: string;
|
|
245
243
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
244
|
+
source: "agent" | "human";
|
|
246
245
|
impact?: string | undefined;
|
|
247
246
|
trace?: string | undefined;
|
|
248
247
|
rating?: number | undefined;
|
|
@@ -258,9 +257,9 @@ export declare const FeedbackSchema: z.ZodObject<{
|
|
|
258
257
|
client?: string | undefined;
|
|
259
258
|
mcpScope?: "user" | "project" | undefined;
|
|
260
259
|
}, {
|
|
261
|
-
source: "agent" | "human";
|
|
262
260
|
text: string;
|
|
263
261
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
262
|
+
source: "agent" | "human";
|
|
264
263
|
impact?: string | undefined;
|
|
265
264
|
trace?: string | undefined;
|
|
266
265
|
rating?: number | undefined;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The FEEDBACK and IDENTITY contract — the only two things Reticle ever sends that a person wrote.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* something you have to remember — and it keeps the event contract under the size cap.
|
|
4
|
+
* They are a different privacy class from the rest of telemetry, which is counters and enums that
|
|
5
|
+
* cannot describe anyone: these two carry authored text and a self-declared identity, they are never
|
|
6
|
+
* emitted passively, and they each have their own consent story. Keeping them in one file makes that
|
|
7
|
+
* boundary something you can see rather than something you have to remember.
|
|
9
8
|
*
|
|
10
9
|
* Neither is ever populated by inference. A `Feedback` exists because an agent called
|
|
11
10
|
* `reticle_feedback` or a human ran `reticle feedback`; an `Identity` exists because a human ran
|
|
@@ -19,9 +18,9 @@ export const FeedbackSource = {
|
|
|
19
18
|
};
|
|
20
19
|
/**
|
|
21
20
|
* What kind of report this is. The first three are the agent's vocabulary — they name the three ways
|
|
22
|
-
* Reticle fails an agent, and keeping them distinct is the whole point: a BUG is
|
|
23
|
-
*
|
|
24
|
-
* them into "it didn't work"
|
|
21
|
+
* Reticle fails an agent, and keeping them distinct is the whole point: a BUG is a Reticle defect, a
|
|
22
|
+
* GAP is something Reticle cannot see at all, and an AMBIGUITY is a verdict the agent could not act
|
|
23
|
+
* on. Lumping them into "it didn't work" destroys the only signal that says what to build next.
|
|
25
24
|
*/
|
|
26
25
|
export const FeedbackKind = {
|
|
27
26
|
/** A tool misbehaved: wrong result, crash, or a contract it did not honor. */
|
|
@@ -53,8 +52,8 @@ export const FeedbackKind = {
|
|
|
53
52
|
*
|
|
54
53
|
* Filed by a human at a terminal OR by an agent mid-task, and the agent case is the one that was
|
|
55
54
|
* missing: every other kind an agent can file is a complaint, so the corpus could only ever grow
|
|
56
|
-
* into a defect list
|
|
57
|
-
*
|
|
55
|
+
* into a defect list, which never says which parts are worth protecting through a change — the
|
|
56
|
+
* question a refactor actually needs answered.
|
|
58
57
|
*
|
|
59
58
|
* A score alone is close to worthless here and the tool says so: a model asked for a number will
|
|
60
59
|
* produce an agreeable one, and an agreeable number is indistinguishable from an earned one once
|
|
@@ -82,7 +81,7 @@ export const BrowserEngine = {
|
|
|
82
81
|
* `attached`: Reticle launched nothing, so the page itself is the only thing that knows which
|
|
83
82
|
* browser it is. A CLOSED list on purpose — the raw UA string and a raw `userAgentData` brand are
|
|
84
83
|
* both unbounded and fingerprintable, so anything unrecognised reports `OTHER` rather than
|
|
85
|
-
* forwarding
|
|
84
|
+
* forwarding an unrecognised name.
|
|
86
85
|
*/
|
|
87
86
|
export const BrowserBrand = {
|
|
88
87
|
CHROME: 'chrome',
|
|
@@ -152,7 +151,7 @@ export const FeedbackSchema = z.object({
|
|
|
152
151
|
* The MODEL the agent is running, self-reported.
|
|
153
152
|
*
|
|
154
153
|
* Not obtainable any other way: MCP's `clientInfo` carries a client name and version and has no
|
|
155
|
-
* concept of a model, so the transport cannot
|
|
154
|
+
* concept of a model, so the transport cannot say. The agent knows, and this report is already
|
|
156
155
|
* something the agent authored — so asking is both the only mechanism and a reliable one.
|
|
157
156
|
*
|
|
158
157
|
* It matters more than it looks: a limitation that blocks a smaller model may be a docs problem
|
|
@@ -36,7 +36,7 @@ export declare const LicenseActivation: {
|
|
|
36
36
|
readonly INVALID: "invalid";
|
|
37
37
|
/**
|
|
38
38
|
* A key that verified but whose expiry has passed. The renewal signal: this arriving from a machine
|
|
39
|
-
*
|
|
39
|
+
* previously reporting `active` is a lapse visible BEFORE the customer reports it, and it is the
|
|
40
40
|
* whole reason status is reported separately from identity — a lapsed customer stops sending
|
|
41
41
|
* `licenseId`, so on identity alone a lapse and a churn look identical.
|
|
42
42
|
*/
|
|
@@ -36,7 +36,7 @@ export const LicenseActivation = {
|
|
|
36
36
|
INVALID: 'invalid',
|
|
37
37
|
/**
|
|
38
38
|
* A key that verified but whose expiry has passed. The renewal signal: this arriving from a machine
|
|
39
|
-
*
|
|
39
|
+
* previously reporting `active` is a lapse visible BEFORE the customer reports it, and it is the
|
|
40
40
|
* whole reason status is reported separately from identity — a lapsed customer stops sending
|
|
41
41
|
* `licenseId`, so on identity alone a lapse and a churn look identical.
|
|
42
42
|
*/
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Refusals — why a tool could not do what was asked, and the row that reports one.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* again, because it refines exactly one member of the enum below.
|
|
4
|
+
* `telemetry.ts` next door is the session wire; this is the refusal vocabulary that
|
|
5
|
+
* `error-recovery.ts` is graded against. `NoSessionReason` has its own module because it refines
|
|
6
|
+
* exactly one member of the enum below.
|
|
8
7
|
*/
|
|
9
8
|
import { z } from 'zod';
|
|
10
9
|
/**
|
|
@@ -17,8 +16,8 @@ import { z } from 'zod';
|
|
|
17
16
|
*
|
|
18
17
|
* The five that matter belong to four different owners, which is the whole reason for splitting
|
|
19
18
|
* them: `no_session` is the install's second half never happening, `bad_args` is the agent's own
|
|
20
|
-
* call, `not_ready` is the environment, and `no_match` / `unsupported` are the app and
|
|
21
|
-
* capability surface. One undifferentiated "the agent stopped" number cannot be acted on by anyone.
|
|
19
|
+
* call, `not_ready` is the environment, and `no_match` / `unsupported` are the app and Reticle's
|
|
20
|
+
* own capability surface. One undifferentiated "the agent stopped" number cannot be acted on by anyone.
|
|
22
21
|
*/
|
|
23
22
|
export declare const RefusalReason: {
|
|
24
23
|
/** There was no app to reach: nothing connected, no session by that id, or several with none named. */
|
|
@@ -61,6 +60,7 @@ export declare const ToolRefusalSchema: z.ZodObject<{
|
|
|
61
60
|
* it cannot carry a reason that does not exist yet. Absent on every other refusal reason.
|
|
62
61
|
*/
|
|
63
62
|
noSessionReason: z.ZodOptional<z.ZodNativeEnum<{
|
|
63
|
+
readonly AUTH_REFUSED: "auth_refused";
|
|
64
64
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
65
65
|
readonly TAB_GONE: "tab_gone";
|
|
66
66
|
readonly APP_NOT_REOPENED: "app_not_reopened";
|
|
@@ -76,19 +76,19 @@ export declare const ToolRefusalSchema: z.ZodObject<{
|
|
|
76
76
|
* Reported on the RETRY rather than on the first refusal, because the first refusal has to be sent
|
|
77
77
|
* at the moment it happens: deferring it until the next call is known would lose it entirely for
|
|
78
78
|
* the agent that gives up, and that agent is the whole population this event exists to describe.
|
|
79
|
-
* So count `retried: true` for retries; the ratio against all refusals is whether
|
|
79
|
+
* So count `retried: true` for retries; the ratio against all refusals is whether the diagnosis
|
|
80
80
|
* gets anybody unstuck.
|
|
81
81
|
*/
|
|
82
82
|
retried: z.ZodBoolean;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
85
84
|
tool: string;
|
|
85
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
86
86
|
retried: boolean;
|
|
87
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
87
|
+
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;
|
|
88
88
|
}, {
|
|
89
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
90
89
|
tool: string;
|
|
90
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
91
91
|
retried: boolean;
|
|
92
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
92
|
+
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;
|
|
93
93
|
}>;
|
|
94
94
|
export type ToolRefusal = z.infer<typeof ToolRefusalSchema>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Refusals — why a tool could not do what was asked, and the row that reports one.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* again, because it refines exactly one member of the enum below.
|
|
4
|
+
* `telemetry.ts` next door is the session wire; this is the refusal vocabulary that
|
|
5
|
+
* `error-recovery.ts` is graded against. `NoSessionReason` has its own module because it refines
|
|
6
|
+
* exactly one member of the enum below.
|
|
8
7
|
*/
|
|
9
8
|
import { z } from 'zod';
|
|
10
|
-
import { NoSessionReason } from './no-session-reason.js';
|
|
9
|
+
import { NoSessionReason } from './words/no-session-reason.js';
|
|
11
10
|
/**
|
|
12
11
|
* WHY a tool could not do what was asked.
|
|
13
12
|
*
|
|
@@ -18,8 +17,8 @@ import { NoSessionReason } from './no-session-reason.js';
|
|
|
18
17
|
*
|
|
19
18
|
* The five that matter belong to four different owners, which is the whole reason for splitting
|
|
20
19
|
* them: `no_session` is the install's second half never happening, `bad_args` is the agent's own
|
|
21
|
-
* call, `not_ready` is the environment, and `no_match` / `unsupported` are the app and
|
|
22
|
-
* capability surface. One undifferentiated "the agent stopped" number cannot be acted on by anyone.
|
|
20
|
+
* call, `not_ready` is the environment, and `no_match` / `unsupported` are the app and Reticle's
|
|
21
|
+
* own capability surface. One undifferentiated "the agent stopped" number cannot be acted on by anyone.
|
|
23
22
|
*/
|
|
24
23
|
export const RefusalReason = {
|
|
25
24
|
/** There was no app to reach: nothing connected, no session by that id, or several with none named. */
|
|
@@ -54,7 +53,7 @@ export const ToolRefusalSchema = z.object({
|
|
|
54
53
|
* Reported on the RETRY rather than on the first refusal, because the first refusal has to be sent
|
|
55
54
|
* at the moment it happens: deferring it until the next call is known would lose it entirely for
|
|
56
55
|
* the agent that gives up, and that agent is the whole population this event exists to describe.
|
|
57
|
-
* So count `retried: true` for retries; the ratio against all refusals is whether
|
|
56
|
+
* So count `retried: true` for retries; the ratio against all refusals is whether the diagnosis
|
|
58
57
|
* gets anybody unstuck.
|
|
59
58
|
*/
|
|
60
59
|
retried: z.boolean(),
|