@exaudeus/workrail 3.40.0 → 3.42.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/cli/commands/init.js +0 -3
- package/dist/cli-worktrain.js +48 -11
- package/dist/cli.js +0 -18
- package/dist/config/app-config.d.ts +0 -16
- package/dist/config/app-config.js +0 -14
- package/dist/config/config-file.js +0 -3
- package/dist/console-ui/assets/index-DGj8EsFR.css +1 -0
- package/dist/console-ui/assets/index-DwfWMKvv.js +28 -0
- package/dist/console-ui/index.html +2 -2
- package/dist/context-assembly/deps.d.ts +8 -0
- package/dist/context-assembly/deps.js +2 -0
- package/dist/context-assembly/index.d.ts +6 -0
- package/dist/context-assembly/index.js +50 -0
- package/dist/context-assembly/infra.d.ts +3 -0
- package/dist/context-assembly/infra.js +154 -0
- package/dist/context-assembly/types.d.ts +30 -0
- package/dist/context-assembly/types.js +2 -0
- package/dist/coordinators/pr-review.d.ts +20 -1
- package/dist/coordinators/pr-review.js +189 -4
- package/dist/daemon/daemon-events.d.ts +9 -1
- package/dist/daemon/soul-template.d.ts +2 -2
- package/dist/daemon/soul-template.js +11 -1
- package/dist/daemon/workflow-runner.d.ts +14 -1
- package/dist/daemon/workflow-runner.js +406 -25
- package/dist/di/container.js +1 -25
- package/dist/di/tokens.d.ts +0 -3
- package/dist/di/tokens.js +0 -3
- package/dist/domain/execution/state.d.ts +6 -6
- package/dist/engine/engine-factory.js +0 -1
- package/dist/infrastructure/console-defaults.d.ts +1 -0
- package/dist/infrastructure/console-defaults.js +4 -0
- package/dist/infrastructure/session/index.d.ts +0 -1
- package/dist/infrastructure/session/index.js +1 -3
- package/dist/manifest.json +138 -122
- package/dist/mcp/handlers/session.d.ts +1 -0
- package/dist/mcp/handlers/session.js +61 -13
- package/dist/mcp/handlers/v2-workflow.d.ts +2 -2
- package/dist/mcp/output-schemas.d.ts +234 -234
- package/dist/mcp/server.js +1 -18
- package/dist/mcp/tools.d.ts +2 -2
- package/dist/mcp/transports/http-entry.js +0 -2
- package/dist/mcp/transports/stdio-entry.js +1 -2
- package/dist/mcp/types.d.ts +0 -2
- package/dist/mcp/v2/tools.d.ts +24 -24
- package/dist/trigger/daemon-console.d.ts +2 -0
- package/dist/trigger/daemon-console.js +1 -1
- package/dist/trigger/trigger-listener.d.ts +2 -0
- package/dist/trigger/trigger-listener.js +3 -1
- package/dist/trigger/trigger-router.d.ts +4 -3
- package/dist/trigger/trigger-router.js +4 -3
- package/dist/trigger/trigger-store.js +17 -4
- package/dist/v2/durable-core/schemas/artifacts/assessment.d.ts +2 -2
- package/dist/v2/durable-core/schemas/artifacts/coordinator-signal.d.ts +2 -2
- package/dist/v2/durable-core/schemas/artifacts/loop-control.d.ts +6 -6
- package/dist/v2/durable-core/schemas/artifacts/review-verdict.d.ts +6 -6
- package/dist/v2/durable-core/schemas/compiled-workflow/index.d.ts +56 -56
- package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +83 -83
- package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +1024 -1024
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +2336 -2336
- package/dist/v2/durable-core/schemas/session/dag-topology.d.ts +6 -6
- package/dist/v2/durable-core/schemas/session/events.d.ts +339 -339
- package/dist/v2/durable-core/schemas/session/gaps.d.ts +30 -30
- package/dist/v2/durable-core/schemas/session/manifest.d.ts +6 -6
- package/dist/v2/durable-core/schemas/session/outputs.d.ts +8 -8
- package/dist/v2/durable-core/schemas/session/validation-event.d.ts +3 -3
- package/dist/v2/usecases/console-routes.d.ts +2 -1
- package/dist/v2/usecases/console-routes.js +29 -5
- package/dist/v2/usecases/console-service.js +14 -0
- package/dist/v2/usecases/console-types.d.ts +1 -0
- package/docs/authoring.md +16 -16
- package/docs/design/context-assembly-design-candidates.md +199 -0
- package/docs/design/context-assembly-implementation-plan.md +211 -0
- package/docs/design/context-assembly-review-findings.md +112 -0
- package/docs/design/coordinator-message-queue-drain-plan.md +241 -0
- package/docs/design/coordinator-message-queue-drain-review.md +120 -0
- package/docs/design/coordinator-message-queue-drain.md +289 -0
- package/docs/design/shaping-workflow-external-research.md +119 -0
- package/docs/discovery/late-bound-goals-impl-plan.md +147 -0
- package/docs/discovery/late-bound-goals-review.md +82 -0
- package/docs/discovery/late-bound-goals.md +118 -0
- package/docs/discovery/steer-endpoint-design-candidates.md +288 -0
- package/docs/discovery/steer-endpoint-design-review-findings.md +104 -0
- package/docs/discovery/steer-endpoint-implementation-plan.md +284 -0
- package/docs/ideas/backlog.md +356 -0
- package/docs/ideas/design-candidates-console-session-tree-impl.md +64 -0
- package/docs/ideas/design-candidates-session-tree-view.md +196 -0
- package/docs/ideas/design-review-findings-console-session-tree-impl.md +75 -0
- package/docs/ideas/design-review-findings-session-tree-view.md +88 -0
- package/docs/ideas/implementation_plan_session_tree_view.md +238 -0
- package/package.json +2 -1
- package/spec/authoring-spec.json +16 -16
- package/spec/shape.schema.json +178 -0
- package/spec/workflow-tags.json +232 -47
- package/workflows/coding-task-workflow-agentic.json +491 -480
- package/workflows/wr.shaping.json +182 -0
- package/dist/console-ui/assets/index-8dh0Psu-.css +0 -1
- package/dist/console-ui/assets/index-CXWCAonr.js +0 -28
- package/dist/infrastructure/session/DashboardHeartbeat.d.ts +0 -8
- package/dist/infrastructure/session/DashboardHeartbeat.js +0 -39
- package/dist/infrastructure/session/DashboardLockRelease.d.ts +0 -2
- package/dist/infrastructure/session/DashboardLockRelease.js +0 -29
- package/dist/infrastructure/session/HttpServer.d.ts +0 -60
- package/dist/infrastructure/session/HttpServer.js +0 -912
- package/workflows/coding-task-workflow-agentic.lean.v2.json +0 -648
- package/workflows/coding-task-workflow-agentic.v2.json +0 -324
|
@@ -19,28 +19,28 @@ export declare const DomainEventEnvelopeV1Schema: z.ZodObject<{
|
|
|
19
19
|
data: z.ZodType<unknown, z.ZodTypeDef, unknown>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
kind: string;
|
|
22
|
-
sessionId: string;
|
|
23
22
|
v: 1;
|
|
23
|
+
sessionId: string;
|
|
24
24
|
eventIndex: number;
|
|
25
25
|
eventId: string;
|
|
26
26
|
dedupeKey: string;
|
|
27
|
-
data?: unknown;
|
|
28
27
|
scope?: {
|
|
29
28
|
runId?: string | undefined;
|
|
30
29
|
nodeId?: string | undefined;
|
|
31
30
|
} | undefined;
|
|
31
|
+
data?: unknown;
|
|
32
32
|
}, {
|
|
33
33
|
kind: string;
|
|
34
|
-
sessionId: string;
|
|
35
34
|
v: 1;
|
|
35
|
+
sessionId: string;
|
|
36
36
|
eventIndex: number;
|
|
37
37
|
eventId: string;
|
|
38
38
|
dedupeKey: string;
|
|
39
|
-
data?: unknown;
|
|
40
39
|
scope?: {
|
|
41
40
|
runId?: string | undefined;
|
|
42
41
|
nodeId?: string | undefined;
|
|
43
42
|
} | undefined;
|
|
43
|
+
data?: unknown;
|
|
44
44
|
}>;
|
|
45
45
|
export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
46
46
|
v: z.ZodLiteral<1>;
|
|
@@ -69,28 +69,28 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
69
69
|
}>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
71
|
kind: "session_created";
|
|
72
|
-
sessionId: string;
|
|
73
|
-
data: {
|
|
74
|
-
parentSessionId?: string | undefined;
|
|
75
|
-
};
|
|
76
72
|
v: 1;
|
|
73
|
+
sessionId: string;
|
|
77
74
|
eventIndex: number;
|
|
78
75
|
eventId: string;
|
|
79
76
|
dedupeKey: string;
|
|
77
|
+
data: {
|
|
78
|
+
parentSessionId?: string | undefined;
|
|
79
|
+
};
|
|
80
80
|
scope?: {
|
|
81
81
|
runId?: string | undefined;
|
|
82
82
|
nodeId?: string | undefined;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}, {
|
|
85
85
|
kind: "session_created";
|
|
86
|
-
sessionId: string;
|
|
87
|
-
data: {
|
|
88
|
-
parentSessionId?: string | undefined;
|
|
89
|
-
};
|
|
90
86
|
v: 1;
|
|
87
|
+
sessionId: string;
|
|
91
88
|
eventIndex: number;
|
|
92
89
|
eventId: string;
|
|
93
90
|
dedupeKey: string;
|
|
91
|
+
data: {
|
|
92
|
+
parentSessionId?: string | undefined;
|
|
93
|
+
};
|
|
94
94
|
scope?: {
|
|
95
95
|
runId?: string | undefined;
|
|
96
96
|
nodeId?: string | undefined;
|
|
@@ -110,122 +110,122 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
110
110
|
type: z.ZodLiteral<"short_string">;
|
|
111
111
|
value: z.ZodString;
|
|
112
112
|
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
type: "short_string";
|
|
114
113
|
value: string;
|
|
115
|
-
}, {
|
|
116
114
|
type: "short_string";
|
|
115
|
+
}, {
|
|
117
116
|
value: string;
|
|
117
|
+
type: "short_string";
|
|
118
118
|
}>, z.ZodObject<{
|
|
119
119
|
type: z.ZodLiteral<"git_sha1">;
|
|
120
120
|
value: z.ZodString;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
type: "git_sha1";
|
|
123
122
|
value: string;
|
|
124
|
-
}, {
|
|
125
123
|
type: "git_sha1";
|
|
124
|
+
}, {
|
|
126
125
|
value: string;
|
|
126
|
+
type: "git_sha1";
|
|
127
127
|
}>, z.ZodObject<{
|
|
128
128
|
type: z.ZodLiteral<"sha256">;
|
|
129
129
|
value: z.ZodString;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
type: "sha256";
|
|
132
131
|
value: string;
|
|
133
|
-
}, {
|
|
134
132
|
type: "sha256";
|
|
133
|
+
}, {
|
|
135
134
|
value: string;
|
|
135
|
+
type: "sha256";
|
|
136
136
|
}>, z.ZodObject<{
|
|
137
137
|
type: z.ZodLiteral<"path">;
|
|
138
138
|
value: z.ZodString;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
type: "path";
|
|
141
140
|
value: string;
|
|
142
|
-
}, {
|
|
143
141
|
type: "path";
|
|
142
|
+
}, {
|
|
144
143
|
value: string;
|
|
144
|
+
type: "path";
|
|
145
145
|
}>]>;
|
|
146
146
|
confidence: z.ZodEnum<["low", "med", "high"]>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
value: {
|
|
149
|
-
type: "short_string";
|
|
150
149
|
value: string;
|
|
150
|
+
type: "short_string";
|
|
151
151
|
} | {
|
|
152
|
-
type: "git_sha1";
|
|
153
152
|
value: string;
|
|
153
|
+
type: "git_sha1";
|
|
154
154
|
} | {
|
|
155
|
-
type: "sha256";
|
|
156
155
|
value: string;
|
|
156
|
+
type: "sha256";
|
|
157
157
|
} | {
|
|
158
|
-
type: "path";
|
|
159
158
|
value: string;
|
|
159
|
+
type: "path";
|
|
160
160
|
};
|
|
161
|
-
confidence: "high" | "low" | "med";
|
|
162
161
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
162
|
+
confidence: "low" | "med" | "high";
|
|
163
163
|
}, {
|
|
164
164
|
value: {
|
|
165
|
-
type: "short_string";
|
|
166
165
|
value: string;
|
|
166
|
+
type: "short_string";
|
|
167
167
|
} | {
|
|
168
|
-
type: "git_sha1";
|
|
169
168
|
value: string;
|
|
169
|
+
type: "git_sha1";
|
|
170
170
|
} | {
|
|
171
|
-
type: "sha256";
|
|
172
171
|
value: string;
|
|
172
|
+
type: "sha256";
|
|
173
173
|
} | {
|
|
174
|
-
type: "path";
|
|
175
174
|
value: string;
|
|
175
|
+
type: "path";
|
|
176
176
|
};
|
|
177
|
-
confidence: "high" | "low" | "med";
|
|
178
177
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
178
|
+
confidence: "low" | "med" | "high";
|
|
179
179
|
}>;
|
|
180
180
|
}, "strip", z.ZodTypeAny, {
|
|
181
181
|
kind: "observation_recorded";
|
|
182
|
+
v: 1;
|
|
182
183
|
sessionId: string;
|
|
184
|
+
eventIndex: number;
|
|
185
|
+
eventId: string;
|
|
186
|
+
dedupeKey: string;
|
|
183
187
|
data: {
|
|
184
188
|
value: {
|
|
185
|
-
type: "short_string";
|
|
186
189
|
value: string;
|
|
190
|
+
type: "short_string";
|
|
187
191
|
} | {
|
|
188
|
-
type: "git_sha1";
|
|
189
192
|
value: string;
|
|
193
|
+
type: "git_sha1";
|
|
190
194
|
} | {
|
|
191
|
-
type: "sha256";
|
|
192
195
|
value: string;
|
|
196
|
+
type: "sha256";
|
|
193
197
|
} | {
|
|
194
|
-
type: "path";
|
|
195
198
|
value: string;
|
|
199
|
+
type: "path";
|
|
196
200
|
};
|
|
197
|
-
confidence: "high" | "low" | "med";
|
|
198
201
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
202
|
+
confidence: "low" | "med" | "high";
|
|
199
203
|
};
|
|
200
|
-
v: 1;
|
|
201
|
-
eventIndex: number;
|
|
202
|
-
eventId: string;
|
|
203
|
-
dedupeKey: string;
|
|
204
204
|
scope?: undefined;
|
|
205
205
|
}, {
|
|
206
206
|
kind: "observation_recorded";
|
|
207
|
+
v: 1;
|
|
207
208
|
sessionId: string;
|
|
209
|
+
eventIndex: number;
|
|
210
|
+
eventId: string;
|
|
211
|
+
dedupeKey: string;
|
|
208
212
|
data: {
|
|
209
213
|
value: {
|
|
210
|
-
type: "short_string";
|
|
211
214
|
value: string;
|
|
215
|
+
type: "short_string";
|
|
212
216
|
} | {
|
|
213
|
-
type: "git_sha1";
|
|
214
217
|
value: string;
|
|
218
|
+
type: "git_sha1";
|
|
215
219
|
} | {
|
|
216
|
-
type: "sha256";
|
|
217
220
|
value: string;
|
|
221
|
+
type: "sha256";
|
|
218
222
|
} | {
|
|
219
|
-
type: "path";
|
|
220
223
|
value: string;
|
|
224
|
+
type: "path";
|
|
221
225
|
};
|
|
222
|
-
confidence: "high" | "low" | "med";
|
|
223
226
|
key: "git_branch" | "git_head_sha" | "repo_root_hash" | "repo_root";
|
|
227
|
+
confidence: "low" | "med" | "high";
|
|
224
228
|
};
|
|
225
|
-
v: 1;
|
|
226
|
-
eventIndex: number;
|
|
227
|
-
eventId: string;
|
|
228
|
-
dedupeKey: string;
|
|
229
229
|
scope?: undefined;
|
|
230
230
|
}>, z.ZodObject<{
|
|
231
231
|
v: z.ZodLiteral<1>;
|
|
@@ -248,48 +248,48 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
248
248
|
workflowSourceKind: z.ZodEnum<["bundled", "user", "project", "remote", "plugin"]>;
|
|
249
249
|
workflowSourceRef: z.ZodString;
|
|
250
250
|
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
workflowId: string;
|
|
252
251
|
workflowHash: never;
|
|
252
|
+
workflowId: string;
|
|
253
253
|
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
254
254
|
workflowSourceRef: string;
|
|
255
255
|
}, {
|
|
256
|
-
workflowId: string;
|
|
257
256
|
workflowHash: string;
|
|
257
|
+
workflowId: string;
|
|
258
258
|
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
259
259
|
workflowSourceRef: string;
|
|
260
260
|
}>;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
kind: "run_started";
|
|
263
|
-
sessionId: string;
|
|
264
|
-
data: {
|
|
265
|
-
workflowId: string;
|
|
266
|
-
workflowHash: never;
|
|
267
|
-
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
268
|
-
workflowSourceRef: string;
|
|
269
|
-
};
|
|
270
263
|
v: 1;
|
|
264
|
+
sessionId: string;
|
|
271
265
|
eventIndex: number;
|
|
272
266
|
eventId: string;
|
|
273
267
|
dedupeKey: string;
|
|
274
268
|
scope: {
|
|
275
269
|
runId: string;
|
|
276
270
|
};
|
|
277
|
-
}, {
|
|
278
|
-
kind: "run_started";
|
|
279
|
-
sessionId: string;
|
|
280
271
|
data: {
|
|
272
|
+
workflowHash: never;
|
|
281
273
|
workflowId: string;
|
|
282
|
-
workflowHash: string;
|
|
283
274
|
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
284
275
|
workflowSourceRef: string;
|
|
285
276
|
};
|
|
277
|
+
}, {
|
|
278
|
+
kind: "run_started";
|
|
286
279
|
v: 1;
|
|
280
|
+
sessionId: string;
|
|
287
281
|
eventIndex: number;
|
|
288
282
|
eventId: string;
|
|
289
283
|
dedupeKey: string;
|
|
290
284
|
scope: {
|
|
291
285
|
runId: string;
|
|
292
286
|
};
|
|
287
|
+
data: {
|
|
288
|
+
workflowHash: string;
|
|
289
|
+
workflowId: string;
|
|
290
|
+
workflowSourceKind: "bundled" | "user" | "project" | "remote" | "plugin";
|
|
291
|
+
workflowSourceRef: string;
|
|
292
|
+
};
|
|
293
293
|
}>, z.ZodObject<{
|
|
294
294
|
v: z.ZodLiteral<1>;
|
|
295
295
|
eventId: z.ZodString;
|
|
@@ -326,14 +326,25 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
326
326
|
}>;
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
328
|
kind: "node_created";
|
|
329
|
+
v: 1;
|
|
329
330
|
sessionId: string;
|
|
331
|
+
eventIndex: number;
|
|
332
|
+
eventId: string;
|
|
333
|
+
dedupeKey: string;
|
|
334
|
+
scope: {
|
|
335
|
+
runId: string;
|
|
336
|
+
nodeId: string;
|
|
337
|
+
};
|
|
330
338
|
data: {
|
|
331
339
|
snapshotRef: never;
|
|
332
340
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
333
341
|
parentNodeId: string | null;
|
|
334
342
|
workflowHash: never;
|
|
335
343
|
};
|
|
344
|
+
}, {
|
|
345
|
+
kind: "node_created";
|
|
336
346
|
v: 1;
|
|
347
|
+
sessionId: string;
|
|
337
348
|
eventIndex: number;
|
|
338
349
|
eventId: string;
|
|
339
350
|
dedupeKey: string;
|
|
@@ -341,23 +352,12 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
341
352
|
runId: string;
|
|
342
353
|
nodeId: string;
|
|
343
354
|
};
|
|
344
|
-
}, {
|
|
345
|
-
kind: "node_created";
|
|
346
|
-
sessionId: string;
|
|
347
355
|
data: {
|
|
348
356
|
snapshotRef: string;
|
|
349
357
|
nodeKind: "checkpoint" | "step" | "blocked_attempt";
|
|
350
358
|
parentNodeId: string | null;
|
|
351
359
|
workflowHash: string;
|
|
352
360
|
};
|
|
353
|
-
v: 1;
|
|
354
|
-
eventIndex: number;
|
|
355
|
-
eventId: string;
|
|
356
|
-
dedupeKey: string;
|
|
357
|
-
scope: {
|
|
358
|
-
runId: string;
|
|
359
|
-
nodeId: string;
|
|
360
|
-
};
|
|
361
361
|
}>, z.ZodObject<{
|
|
362
362
|
v: z.ZodLiteral<1>;
|
|
363
363
|
eventId: z.ZodString;
|
|
@@ -388,76 +388,76 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
388
388
|
eventId: string;
|
|
389
389
|
}>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
cause: {
|
|
392
|
-
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
393
|
-
eventId: string;
|
|
394
|
-
};
|
|
395
391
|
edgeKind: "acked_step" | "checkpoint";
|
|
396
392
|
fromNodeId: string;
|
|
397
393
|
toNodeId: string;
|
|
398
|
-
}, {
|
|
399
394
|
cause: {
|
|
400
395
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
401
396
|
eventId: string;
|
|
402
397
|
};
|
|
398
|
+
}, {
|
|
403
399
|
edgeKind: "acked_step" | "checkpoint";
|
|
404
400
|
fromNodeId: string;
|
|
405
401
|
toNodeId: string;
|
|
406
|
-
}>, {
|
|
407
402
|
cause: {
|
|
408
403
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
409
404
|
eventId: string;
|
|
410
405
|
};
|
|
406
|
+
}>, {
|
|
411
407
|
edgeKind: "acked_step" | "checkpoint";
|
|
412
408
|
fromNodeId: string;
|
|
413
409
|
toNodeId: string;
|
|
414
|
-
}, {
|
|
415
410
|
cause: {
|
|
416
411
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
417
412
|
eventId: string;
|
|
418
413
|
};
|
|
414
|
+
}, {
|
|
419
415
|
edgeKind: "acked_step" | "checkpoint";
|
|
420
416
|
fromNodeId: string;
|
|
421
417
|
toNodeId: string;
|
|
422
|
-
}>;
|
|
423
|
-
}, "strip", z.ZodTypeAny, {
|
|
424
|
-
kind: "edge_created";
|
|
425
|
-
sessionId: string;
|
|
426
|
-
data: {
|
|
427
418
|
cause: {
|
|
428
419
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
429
420
|
eventId: string;
|
|
430
421
|
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
};
|
|
422
|
+
}>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
kind: "edge_created";
|
|
435
425
|
v: 1;
|
|
426
|
+
sessionId: string;
|
|
436
427
|
eventIndex: number;
|
|
437
428
|
eventId: string;
|
|
438
429
|
dedupeKey: string;
|
|
439
430
|
scope: {
|
|
440
431
|
runId: string;
|
|
441
432
|
};
|
|
442
|
-
}, {
|
|
443
|
-
kind: "edge_created";
|
|
444
|
-
sessionId: string;
|
|
445
433
|
data: {
|
|
434
|
+
edgeKind: "acked_step" | "checkpoint";
|
|
435
|
+
fromNodeId: string;
|
|
436
|
+
toNodeId: string;
|
|
446
437
|
cause: {
|
|
447
438
|
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
448
439
|
eventId: string;
|
|
449
440
|
};
|
|
450
|
-
edgeKind: "acked_step" | "checkpoint";
|
|
451
|
-
fromNodeId: string;
|
|
452
|
-
toNodeId: string;
|
|
453
441
|
};
|
|
442
|
+
}, {
|
|
443
|
+
kind: "edge_created";
|
|
454
444
|
v: 1;
|
|
445
|
+
sessionId: string;
|
|
455
446
|
eventIndex: number;
|
|
456
447
|
eventId: string;
|
|
457
448
|
dedupeKey: string;
|
|
458
449
|
scope: {
|
|
459
450
|
runId: string;
|
|
460
451
|
};
|
|
452
|
+
data: {
|
|
453
|
+
edgeKind: "acked_step" | "checkpoint";
|
|
454
|
+
fromNodeId: string;
|
|
455
|
+
toNodeId: string;
|
|
456
|
+
cause: {
|
|
457
|
+
kind: "intentional_fork" | "non_tip_advance" | "idempotent_replay" | "checkpoint_created";
|
|
458
|
+
eventId: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
461
|
}>, z.ZodObject<{
|
|
462
462
|
v: z.ZodLiteral<1>;
|
|
463
463
|
eventId: z.ZodString;
|
|
@@ -712,6 +712,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
712
712
|
toNodeId: string;
|
|
713
713
|
}>]>;
|
|
714
714
|
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
attemptId: string;
|
|
716
|
+
intent: "ack_pending";
|
|
715
717
|
outcome: {
|
|
716
718
|
kind: "blocked";
|
|
717
719
|
blockers: {
|
|
@@ -740,9 +742,9 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
740
742
|
kind: "advanced";
|
|
741
743
|
toNodeId: string;
|
|
742
744
|
};
|
|
745
|
+
}, {
|
|
743
746
|
attemptId: string;
|
|
744
747
|
intent: "ack_pending";
|
|
745
|
-
}, {
|
|
746
748
|
outcome: {
|
|
747
749
|
kind: "blocked";
|
|
748
750
|
blockers: {
|
|
@@ -771,13 +773,21 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
771
773
|
kind: "advanced";
|
|
772
774
|
toNodeId: string;
|
|
773
775
|
};
|
|
774
|
-
attemptId: string;
|
|
775
|
-
intent: "ack_pending";
|
|
776
776
|
}>;
|
|
777
777
|
}, "strip", z.ZodTypeAny, {
|
|
778
778
|
kind: "advance_recorded";
|
|
779
|
+
v: 1;
|
|
779
780
|
sessionId: string;
|
|
781
|
+
eventIndex: number;
|
|
782
|
+
eventId: string;
|
|
783
|
+
dedupeKey: string;
|
|
784
|
+
scope: {
|
|
785
|
+
runId: string;
|
|
786
|
+
nodeId: string;
|
|
787
|
+
};
|
|
780
788
|
data: {
|
|
789
|
+
attemptId: string;
|
|
790
|
+
intent: "ack_pending";
|
|
781
791
|
outcome: {
|
|
782
792
|
kind: "blocked";
|
|
783
793
|
blockers: {
|
|
@@ -806,10 +816,11 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
806
816
|
kind: "advanced";
|
|
807
817
|
toNodeId: string;
|
|
808
818
|
};
|
|
809
|
-
attemptId: string;
|
|
810
|
-
intent: "ack_pending";
|
|
811
819
|
};
|
|
820
|
+
}, {
|
|
821
|
+
kind: "advance_recorded";
|
|
812
822
|
v: 1;
|
|
823
|
+
sessionId: string;
|
|
813
824
|
eventIndex: number;
|
|
814
825
|
eventId: string;
|
|
815
826
|
dedupeKey: string;
|
|
@@ -817,10 +828,9 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
817
828
|
runId: string;
|
|
818
829
|
nodeId: string;
|
|
819
830
|
};
|
|
820
|
-
}, {
|
|
821
|
-
kind: "advance_recorded";
|
|
822
|
-
sessionId: string;
|
|
823
831
|
data: {
|
|
832
|
+
attemptId: string;
|
|
833
|
+
intent: "ack_pending";
|
|
824
834
|
outcome: {
|
|
825
835
|
kind: "blocked";
|
|
826
836
|
blockers: {
|
|
@@ -849,16 +859,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
849
859
|
kind: "advanced";
|
|
850
860
|
toNodeId: string;
|
|
851
861
|
};
|
|
852
|
-
attemptId: string;
|
|
853
|
-
intent: "ack_pending";
|
|
854
|
-
};
|
|
855
|
-
v: 1;
|
|
856
|
-
eventIndex: number;
|
|
857
|
-
eventId: string;
|
|
858
|
-
dedupeKey: string;
|
|
859
|
-
scope: {
|
|
860
|
-
runId: string;
|
|
861
|
-
nodeId: string;
|
|
862
862
|
};
|
|
863
863
|
}>, z.ZodObject<{
|
|
864
864
|
v: z.ZodLiteral<1>;
|
|
@@ -904,38 +904,49 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
904
904
|
suggestions: readonly string[];
|
|
905
905
|
}>;
|
|
906
906
|
}, "strict", z.ZodTypeAny, {
|
|
907
|
+
validationId: string;
|
|
908
|
+
attemptId: string;
|
|
907
909
|
contractRef: string;
|
|
908
910
|
result: {
|
|
909
911
|
issues: readonly string[];
|
|
910
912
|
valid: boolean;
|
|
911
913
|
suggestions: readonly string[];
|
|
912
914
|
};
|
|
915
|
+
}, {
|
|
913
916
|
validationId: string;
|
|
914
917
|
attemptId: string;
|
|
915
|
-
}, {
|
|
916
918
|
contractRef: string;
|
|
917
919
|
result: {
|
|
918
920
|
issues: readonly string[];
|
|
919
921
|
valid: boolean;
|
|
920
922
|
suggestions: readonly string[];
|
|
921
923
|
};
|
|
922
|
-
validationId: string;
|
|
923
|
-
attemptId: string;
|
|
924
924
|
}>;
|
|
925
925
|
}, "strip", z.ZodTypeAny, {
|
|
926
926
|
kind: "validation_performed";
|
|
927
|
+
v: 1;
|
|
927
928
|
sessionId: string;
|
|
929
|
+
eventIndex: number;
|
|
930
|
+
eventId: string;
|
|
931
|
+
dedupeKey: string;
|
|
932
|
+
scope: {
|
|
933
|
+
runId: string;
|
|
934
|
+
nodeId: string;
|
|
935
|
+
};
|
|
928
936
|
data: {
|
|
937
|
+
validationId: string;
|
|
938
|
+
attemptId: string;
|
|
929
939
|
contractRef: string;
|
|
930
940
|
result: {
|
|
931
941
|
issues: readonly string[];
|
|
932
942
|
valid: boolean;
|
|
933
943
|
suggestions: readonly string[];
|
|
934
944
|
};
|
|
935
|
-
validationId: string;
|
|
936
|
-
attemptId: string;
|
|
937
945
|
};
|
|
946
|
+
}, {
|
|
947
|
+
kind: "validation_performed";
|
|
938
948
|
v: 1;
|
|
949
|
+
sessionId: string;
|
|
939
950
|
eventIndex: number;
|
|
940
951
|
eventId: string;
|
|
941
952
|
dedupeKey: string;
|
|
@@ -943,26 +954,15 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
943
954
|
runId: string;
|
|
944
955
|
nodeId: string;
|
|
945
956
|
};
|
|
946
|
-
}, {
|
|
947
|
-
kind: "validation_performed";
|
|
948
|
-
sessionId: string;
|
|
949
957
|
data: {
|
|
958
|
+
validationId: string;
|
|
959
|
+
attemptId: string;
|
|
950
960
|
contractRef: string;
|
|
951
961
|
result: {
|
|
952
962
|
issues: readonly string[];
|
|
953
963
|
valid: boolean;
|
|
954
964
|
suggestions: readonly string[];
|
|
955
965
|
};
|
|
956
|
-
validationId: string;
|
|
957
|
-
attemptId: string;
|
|
958
|
-
};
|
|
959
|
-
v: 1;
|
|
960
|
-
eventIndex: number;
|
|
961
|
-
eventId: string;
|
|
962
|
-
dedupeKey: string;
|
|
963
|
-
scope: {
|
|
964
|
-
runId: string;
|
|
965
|
-
nodeId: string;
|
|
966
966
|
};
|
|
967
967
|
}>, z.ZodObject<{
|
|
968
968
|
v: z.ZodLiteral<1>;
|
|
@@ -1015,6 +1015,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1015
1015
|
content?: unknown;
|
|
1016
1016
|
}>]>;
|
|
1017
1017
|
}, "strip", z.ZodTypeAny, {
|
|
1018
|
+
outputId: string;
|
|
1019
|
+
outputChannel: "recap" | "artifact";
|
|
1018
1020
|
payload: {
|
|
1019
1021
|
payloadKind: "notes";
|
|
1020
1022
|
notesMarkdown: string;
|
|
@@ -1025,10 +1027,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1025
1027
|
byteLength: number;
|
|
1026
1028
|
content?: unknown;
|
|
1027
1029
|
};
|
|
1028
|
-
outputId: string;
|
|
1029
|
-
outputChannel: "recap" | "artifact";
|
|
1030
1030
|
supersedesOutputId?: string | undefined;
|
|
1031
1031
|
}, {
|
|
1032
|
+
outputId: string;
|
|
1033
|
+
outputChannel: "recap" | "artifact";
|
|
1032
1034
|
payload: {
|
|
1033
1035
|
payloadKind: "notes";
|
|
1034
1036
|
notesMarkdown: string;
|
|
@@ -1039,10 +1041,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1039
1041
|
byteLength: number;
|
|
1040
1042
|
content?: unknown;
|
|
1041
1043
|
};
|
|
1042
|
-
outputId: string;
|
|
1043
|
-
outputChannel: "recap" | "artifact";
|
|
1044
1044
|
supersedesOutputId?: string | undefined;
|
|
1045
1045
|
}>, {
|
|
1046
|
+
outputId: string;
|
|
1047
|
+
outputChannel: "recap" | "artifact";
|
|
1046
1048
|
payload: {
|
|
1047
1049
|
payloadKind: "notes";
|
|
1048
1050
|
notesMarkdown: string;
|
|
@@ -1053,10 +1055,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1053
1055
|
byteLength: number;
|
|
1054
1056
|
content?: unknown;
|
|
1055
1057
|
};
|
|
1056
|
-
outputId: string;
|
|
1057
|
-
outputChannel: "recap" | "artifact";
|
|
1058
1058
|
supersedesOutputId?: string | undefined;
|
|
1059
1059
|
}, {
|
|
1060
|
+
outputId: string;
|
|
1061
|
+
outputChannel: "recap" | "artifact";
|
|
1060
1062
|
payload: {
|
|
1061
1063
|
payloadKind: "notes";
|
|
1062
1064
|
notesMarkdown: string;
|
|
@@ -1067,14 +1069,22 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1067
1069
|
byteLength: number;
|
|
1068
1070
|
content?: unknown;
|
|
1069
1071
|
};
|
|
1070
|
-
outputId: string;
|
|
1071
|
-
outputChannel: "recap" | "artifact";
|
|
1072
1072
|
supersedesOutputId?: string | undefined;
|
|
1073
1073
|
}>;
|
|
1074
1074
|
}, "strip", z.ZodTypeAny, {
|
|
1075
1075
|
kind: "node_output_appended";
|
|
1076
|
+
v: 1;
|
|
1076
1077
|
sessionId: string;
|
|
1078
|
+
eventIndex: number;
|
|
1079
|
+
eventId: string;
|
|
1080
|
+
dedupeKey: string;
|
|
1081
|
+
scope: {
|
|
1082
|
+
runId: string;
|
|
1083
|
+
nodeId: string;
|
|
1084
|
+
};
|
|
1077
1085
|
data: {
|
|
1086
|
+
outputId: string;
|
|
1087
|
+
outputChannel: "recap" | "artifact";
|
|
1078
1088
|
payload: {
|
|
1079
1089
|
payloadKind: "notes";
|
|
1080
1090
|
notesMarkdown: string;
|
|
@@ -1085,11 +1095,12 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1085
1095
|
byteLength: number;
|
|
1086
1096
|
content?: unknown;
|
|
1087
1097
|
};
|
|
1088
|
-
outputId: string;
|
|
1089
|
-
outputChannel: "recap" | "artifact";
|
|
1090
1098
|
supersedesOutputId?: string | undefined;
|
|
1091
1099
|
};
|
|
1100
|
+
}, {
|
|
1101
|
+
kind: "node_output_appended";
|
|
1092
1102
|
v: 1;
|
|
1103
|
+
sessionId: string;
|
|
1093
1104
|
eventIndex: number;
|
|
1094
1105
|
eventId: string;
|
|
1095
1106
|
dedupeKey: string;
|
|
@@ -1097,10 +1108,9 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1097
1108
|
runId: string;
|
|
1098
1109
|
nodeId: string;
|
|
1099
1110
|
};
|
|
1100
|
-
}, {
|
|
1101
|
-
kind: "node_output_appended";
|
|
1102
|
-
sessionId: string;
|
|
1103
1111
|
data: {
|
|
1112
|
+
outputId: string;
|
|
1113
|
+
outputChannel: "recap" | "artifact";
|
|
1104
1114
|
payload: {
|
|
1105
1115
|
payloadKind: "notes";
|
|
1106
1116
|
notesMarkdown: string;
|
|
@@ -1111,18 +1121,8 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1111
1121
|
byteLength: number;
|
|
1112
1122
|
content?: unknown;
|
|
1113
1123
|
};
|
|
1114
|
-
outputId: string;
|
|
1115
|
-
outputChannel: "recap" | "artifact";
|
|
1116
1124
|
supersedesOutputId?: string | undefined;
|
|
1117
1125
|
};
|
|
1118
|
-
v: 1;
|
|
1119
|
-
eventIndex: number;
|
|
1120
|
-
eventId: string;
|
|
1121
|
-
dedupeKey: string;
|
|
1122
|
-
scope: {
|
|
1123
|
-
runId: string;
|
|
1124
|
-
nodeId: string;
|
|
1125
|
-
};
|
|
1126
1126
|
}>, z.ZodObject<{
|
|
1127
1127
|
v: z.ZodLiteral<1>;
|
|
1128
1128
|
eventId: z.ZodString;
|
|
@@ -1153,58 +1153,69 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1153
1153
|
rationale: z.ZodOptional<z.ZodString>;
|
|
1154
1154
|
normalization: z.ZodEnum<["exact", "normalized"]>;
|
|
1155
1155
|
}, "strip", z.ZodTypeAny, {
|
|
1156
|
-
level: string;
|
|
1157
1156
|
dimensionId: string;
|
|
1157
|
+
level: string;
|
|
1158
1158
|
normalization: "exact" | "normalized";
|
|
1159
1159
|
rationale?: string | undefined;
|
|
1160
1160
|
}, {
|
|
1161
|
-
level: string;
|
|
1162
1161
|
dimensionId: string;
|
|
1162
|
+
level: string;
|
|
1163
1163
|
normalization: "exact" | "normalized";
|
|
1164
1164
|
rationale?: string | undefined;
|
|
1165
1165
|
}>, "many">>;
|
|
1166
1166
|
}, "strip", z.ZodTypeAny, {
|
|
1167
|
+
attemptId: string;
|
|
1167
1168
|
assessmentId: string;
|
|
1169
|
+
artifactOutputId: string;
|
|
1170
|
+
normalizationNotes: readonly string[];
|
|
1168
1171
|
dimensions: readonly {
|
|
1169
|
-
level: string;
|
|
1170
1172
|
dimensionId: string;
|
|
1173
|
+
level: string;
|
|
1171
1174
|
normalization: "exact" | "normalized";
|
|
1172
1175
|
rationale?: string | undefined;
|
|
1173
1176
|
}[];
|
|
1174
|
-
attemptId: string;
|
|
1175
|
-
artifactOutputId: string;
|
|
1176
|
-
normalizationNotes: readonly string[];
|
|
1177
1177
|
summary?: string | undefined;
|
|
1178
1178
|
}, {
|
|
1179
|
+
attemptId: string;
|
|
1179
1180
|
assessmentId: string;
|
|
1181
|
+
artifactOutputId: string;
|
|
1182
|
+
normalizationNotes: readonly string[];
|
|
1180
1183
|
dimensions: readonly {
|
|
1181
|
-
level: string;
|
|
1182
1184
|
dimensionId: string;
|
|
1185
|
+
level: string;
|
|
1183
1186
|
normalization: "exact" | "normalized";
|
|
1184
1187
|
rationale?: string | undefined;
|
|
1185
1188
|
}[];
|
|
1186
|
-
attemptId: string;
|
|
1187
|
-
artifactOutputId: string;
|
|
1188
|
-
normalizationNotes: readonly string[];
|
|
1189
1189
|
summary?: string | undefined;
|
|
1190
1190
|
}>;
|
|
1191
1191
|
}, "strip", z.ZodTypeAny, {
|
|
1192
1192
|
kind: "assessment_recorded";
|
|
1193
|
+
v: 1;
|
|
1193
1194
|
sessionId: string;
|
|
1195
|
+
eventIndex: number;
|
|
1196
|
+
eventId: string;
|
|
1197
|
+
dedupeKey: string;
|
|
1198
|
+
scope: {
|
|
1199
|
+
runId: string;
|
|
1200
|
+
nodeId: string;
|
|
1201
|
+
};
|
|
1194
1202
|
data: {
|
|
1203
|
+
attemptId: string;
|
|
1195
1204
|
assessmentId: string;
|
|
1205
|
+
artifactOutputId: string;
|
|
1206
|
+
normalizationNotes: readonly string[];
|
|
1196
1207
|
dimensions: readonly {
|
|
1197
|
-
level: string;
|
|
1198
1208
|
dimensionId: string;
|
|
1209
|
+
level: string;
|
|
1199
1210
|
normalization: "exact" | "normalized";
|
|
1200
1211
|
rationale?: string | undefined;
|
|
1201
1212
|
}[];
|
|
1202
|
-
attemptId: string;
|
|
1203
|
-
artifactOutputId: string;
|
|
1204
|
-
normalizationNotes: readonly string[];
|
|
1205
1213
|
summary?: string | undefined;
|
|
1206
1214
|
};
|
|
1215
|
+
}, {
|
|
1216
|
+
kind: "assessment_recorded";
|
|
1207
1217
|
v: 1;
|
|
1218
|
+
sessionId: string;
|
|
1208
1219
|
eventIndex: number;
|
|
1209
1220
|
eventId: string;
|
|
1210
1221
|
dedupeKey: string;
|
|
@@ -1212,30 +1223,19 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1212
1223
|
runId: string;
|
|
1213
1224
|
nodeId: string;
|
|
1214
1225
|
};
|
|
1215
|
-
}, {
|
|
1216
|
-
kind: "assessment_recorded";
|
|
1217
|
-
sessionId: string;
|
|
1218
1226
|
data: {
|
|
1227
|
+
attemptId: string;
|
|
1219
1228
|
assessmentId: string;
|
|
1229
|
+
artifactOutputId: string;
|
|
1230
|
+
normalizationNotes: readonly string[];
|
|
1220
1231
|
dimensions: readonly {
|
|
1221
|
-
level: string;
|
|
1222
1232
|
dimensionId: string;
|
|
1233
|
+
level: string;
|
|
1223
1234
|
normalization: "exact" | "normalized";
|
|
1224
|
-
rationale?: string | undefined;
|
|
1225
|
-
}[];
|
|
1226
|
-
attemptId: string;
|
|
1227
|
-
artifactOutputId: string;
|
|
1228
|
-
normalizationNotes: readonly string[];
|
|
1235
|
+
rationale?: string | undefined;
|
|
1236
|
+
}[];
|
|
1229
1237
|
summary?: string | undefined;
|
|
1230
1238
|
};
|
|
1231
|
-
v: 1;
|
|
1232
|
-
eventIndex: number;
|
|
1233
|
-
eventId: string;
|
|
1234
|
-
dedupeKey: string;
|
|
1235
|
-
scope: {
|
|
1236
|
-
runId: string;
|
|
1237
|
-
nodeId: string;
|
|
1238
|
-
};
|
|
1239
1239
|
}>, z.ZodObject<{
|
|
1240
1240
|
v: z.ZodLiteral<1>;
|
|
1241
1241
|
eventId: z.ZodString;
|
|
@@ -1261,11 +1261,11 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1261
1261
|
dimensionId: z.ZodString;
|
|
1262
1262
|
level: z.ZodString;
|
|
1263
1263
|
}, "strip", z.ZodTypeAny, {
|
|
1264
|
-
level: string;
|
|
1265
1264
|
dimensionId: string;
|
|
1266
|
-
}, {
|
|
1267
1265
|
level: string;
|
|
1266
|
+
}, {
|
|
1268
1267
|
dimensionId: string;
|
|
1268
|
+
level: string;
|
|
1269
1269
|
}>;
|
|
1270
1270
|
effect: z.ZodObject<{
|
|
1271
1271
|
kind: z.ZodLiteral<"require_followup">;
|
|
@@ -1278,44 +1278,32 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1278
1278
|
guidance: string;
|
|
1279
1279
|
}>;
|
|
1280
1280
|
}, "strip", z.ZodTypeAny, {
|
|
1281
|
-
assessmentId: string;
|
|
1282
|
-
effect: {
|
|
1283
|
-
kind: "require_followup";
|
|
1284
|
-
guidance: string;
|
|
1285
|
-
};
|
|
1286
1281
|
attemptId: string;
|
|
1282
|
+
assessmentId: string;
|
|
1287
1283
|
trigger: {
|
|
1288
|
-
level: string;
|
|
1289
1284
|
dimensionId: string;
|
|
1285
|
+
level: string;
|
|
1290
1286
|
};
|
|
1291
|
-
}, {
|
|
1292
|
-
assessmentId: string;
|
|
1293
1287
|
effect: {
|
|
1294
1288
|
kind: "require_followup";
|
|
1295
1289
|
guidance: string;
|
|
1296
1290
|
};
|
|
1291
|
+
}, {
|
|
1297
1292
|
attemptId: string;
|
|
1293
|
+
assessmentId: string;
|
|
1298
1294
|
trigger: {
|
|
1299
|
-
level: string;
|
|
1300
1295
|
dimensionId: string;
|
|
1296
|
+
level: string;
|
|
1301
1297
|
};
|
|
1302
|
-
}>;
|
|
1303
|
-
}, "strip", z.ZodTypeAny, {
|
|
1304
|
-
kind: "assessment_consequence_applied";
|
|
1305
|
-
sessionId: string;
|
|
1306
|
-
data: {
|
|
1307
|
-
assessmentId: string;
|
|
1308
1298
|
effect: {
|
|
1309
1299
|
kind: "require_followup";
|
|
1310
1300
|
guidance: string;
|
|
1311
1301
|
};
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
dimensionId: string;
|
|
1316
|
-
};
|
|
1317
|
-
};
|
|
1302
|
+
}>;
|
|
1303
|
+
}, "strip", z.ZodTypeAny, {
|
|
1304
|
+
kind: "assessment_consequence_applied";
|
|
1318
1305
|
v: 1;
|
|
1306
|
+
sessionId: string;
|
|
1319
1307
|
eventIndex: number;
|
|
1320
1308
|
eventId: string;
|
|
1321
1309
|
dedupeKey: string;
|
|
@@ -1323,22 +1311,22 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1323
1311
|
runId: string;
|
|
1324
1312
|
nodeId: string;
|
|
1325
1313
|
};
|
|
1326
|
-
}, {
|
|
1327
|
-
kind: "assessment_consequence_applied";
|
|
1328
|
-
sessionId: string;
|
|
1329
1314
|
data: {
|
|
1315
|
+
attemptId: string;
|
|
1330
1316
|
assessmentId: string;
|
|
1317
|
+
trigger: {
|
|
1318
|
+
dimensionId: string;
|
|
1319
|
+
level: string;
|
|
1320
|
+
};
|
|
1331
1321
|
effect: {
|
|
1332
1322
|
kind: "require_followup";
|
|
1333
1323
|
guidance: string;
|
|
1334
1324
|
};
|
|
1335
|
-
attemptId: string;
|
|
1336
|
-
trigger: {
|
|
1337
|
-
level: string;
|
|
1338
|
-
dimensionId: string;
|
|
1339
|
-
};
|
|
1340
1325
|
};
|
|
1326
|
+
}, {
|
|
1327
|
+
kind: "assessment_consequence_applied";
|
|
1341
1328
|
v: 1;
|
|
1329
|
+
sessionId: string;
|
|
1342
1330
|
eventIndex: number;
|
|
1343
1331
|
eventId: string;
|
|
1344
1332
|
dedupeKey: string;
|
|
@@ -1346,6 +1334,18 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1346
1334
|
runId: string;
|
|
1347
1335
|
nodeId: string;
|
|
1348
1336
|
};
|
|
1337
|
+
data: {
|
|
1338
|
+
attemptId: string;
|
|
1339
|
+
assessmentId: string;
|
|
1340
|
+
trigger: {
|
|
1341
|
+
dimensionId: string;
|
|
1342
|
+
level: string;
|
|
1343
|
+
};
|
|
1344
|
+
effect: {
|
|
1345
|
+
kind: "require_followup";
|
|
1346
|
+
guidance: string;
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
1349
|
}>, z.ZodObject<{
|
|
1350
1350
|
v: z.ZodLiteral<1>;
|
|
1351
1351
|
eventId: z.ZodString;
|
|
@@ -1371,10 +1371,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1371
1371
|
key: z.ZodLiteral<"autonomy">;
|
|
1372
1372
|
value: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
1373
1373
|
}, "strip", z.ZodTypeAny, {
|
|
1374
|
-
value: "guided" | "
|
|
1374
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1375
1375
|
key: "autonomy";
|
|
1376
1376
|
}, {
|
|
1377
|
-
value: "guided" | "
|
|
1377
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1378
1378
|
key: "autonomy";
|
|
1379
1379
|
}>, z.ZodObject<{
|
|
1380
1380
|
key: z.ZodLiteral<"riskPolicy">;
|
|
@@ -1390,88 +1390,99 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1390
1390
|
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
1391
1391
|
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
1392
1392
|
}, "strip", z.ZodTypeAny, {
|
|
1393
|
-
autonomy: "guided" | "
|
|
1393
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1394
1394
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1395
1395
|
}, {
|
|
1396
|
-
autonomy: "guided" | "
|
|
1396
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1397
1397
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1398
1398
|
}>;
|
|
1399
1399
|
}, "strip", z.ZodTypeAny, {
|
|
1400
|
-
source: "user" | "workflow_recommendation" | "system";
|
|
1401
1400
|
changeId: string;
|
|
1401
|
+
source: "user" | "workflow_recommendation" | "system";
|
|
1402
1402
|
delta: ({
|
|
1403
|
-
value: "guided" | "
|
|
1403
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1404
1404
|
key: "autonomy";
|
|
1405
1405
|
} | {
|
|
1406
1406
|
value: "conservative" | "balanced" | "aggressive";
|
|
1407
1407
|
key: "riskPolicy";
|
|
1408
1408
|
})[];
|
|
1409
1409
|
effective: {
|
|
1410
|
-
autonomy: "guided" | "
|
|
1410
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1411
1411
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1412
1412
|
};
|
|
1413
1413
|
}, {
|
|
1414
|
-
source: "user" | "workflow_recommendation" | "system";
|
|
1415
1414
|
changeId: string;
|
|
1415
|
+
source: "user" | "workflow_recommendation" | "system";
|
|
1416
1416
|
delta: ({
|
|
1417
|
-
value: "guided" | "
|
|
1417
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1418
1418
|
key: "autonomy";
|
|
1419
1419
|
} | {
|
|
1420
1420
|
value: "conservative" | "balanced" | "aggressive";
|
|
1421
1421
|
key: "riskPolicy";
|
|
1422
1422
|
})[];
|
|
1423
1423
|
effective: {
|
|
1424
|
-
autonomy: "guided" | "
|
|
1424
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1425
1425
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1426
1426
|
};
|
|
1427
1427
|
}>, {
|
|
1428
|
-
source: "user" | "workflow_recommendation" | "system";
|
|
1429
1428
|
changeId: string;
|
|
1429
|
+
source: "user" | "workflow_recommendation" | "system";
|
|
1430
1430
|
delta: ({
|
|
1431
|
-
value: "guided" | "
|
|
1431
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1432
1432
|
key: "autonomy";
|
|
1433
1433
|
} | {
|
|
1434
1434
|
value: "conservative" | "balanced" | "aggressive";
|
|
1435
1435
|
key: "riskPolicy";
|
|
1436
1436
|
})[];
|
|
1437
1437
|
effective: {
|
|
1438
|
-
autonomy: "guided" | "
|
|
1438
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1439
1439
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1440
1440
|
};
|
|
1441
1441
|
}, {
|
|
1442
|
-
source: "user" | "workflow_recommendation" | "system";
|
|
1443
1442
|
changeId: string;
|
|
1443
|
+
source: "user" | "workflow_recommendation" | "system";
|
|
1444
1444
|
delta: ({
|
|
1445
|
-
value: "guided" | "
|
|
1445
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1446
1446
|
key: "autonomy";
|
|
1447
1447
|
} | {
|
|
1448
1448
|
value: "conservative" | "balanced" | "aggressive";
|
|
1449
1449
|
key: "riskPolicy";
|
|
1450
1450
|
})[];
|
|
1451
1451
|
effective: {
|
|
1452
|
-
autonomy: "guided" | "
|
|
1452
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1453
1453
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1454
1454
|
};
|
|
1455
1455
|
}>;
|
|
1456
1456
|
}, "strip", z.ZodTypeAny, {
|
|
1457
1457
|
kind: "preferences_changed";
|
|
1458
|
+
v: 1;
|
|
1458
1459
|
sessionId: string;
|
|
1460
|
+
eventIndex: number;
|
|
1461
|
+
eventId: string;
|
|
1462
|
+
dedupeKey: string;
|
|
1463
|
+
scope: {
|
|
1464
|
+
runId: string;
|
|
1465
|
+
nodeId: string;
|
|
1466
|
+
};
|
|
1459
1467
|
data: {
|
|
1460
|
-
source: "user" | "workflow_recommendation" | "system";
|
|
1461
1468
|
changeId: string;
|
|
1469
|
+
source: "user" | "workflow_recommendation" | "system";
|
|
1462
1470
|
delta: ({
|
|
1463
|
-
value: "guided" | "
|
|
1471
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1464
1472
|
key: "autonomy";
|
|
1465
1473
|
} | {
|
|
1466
1474
|
value: "conservative" | "balanced" | "aggressive";
|
|
1467
1475
|
key: "riskPolicy";
|
|
1468
1476
|
})[];
|
|
1469
1477
|
effective: {
|
|
1470
|
-
autonomy: "guided" | "
|
|
1478
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1471
1479
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1472
1480
|
};
|
|
1473
1481
|
};
|
|
1482
|
+
}, {
|
|
1483
|
+
kind: "preferences_changed";
|
|
1474
1484
|
v: 1;
|
|
1485
|
+
sessionId: string;
|
|
1475
1486
|
eventIndex: number;
|
|
1476
1487
|
eventId: string;
|
|
1477
1488
|
dedupeKey: string;
|
|
@@ -1479,32 +1490,21 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1479
1490
|
runId: string;
|
|
1480
1491
|
nodeId: string;
|
|
1481
1492
|
};
|
|
1482
|
-
}, {
|
|
1483
|
-
kind: "preferences_changed";
|
|
1484
|
-
sessionId: string;
|
|
1485
1493
|
data: {
|
|
1486
|
-
source: "user" | "workflow_recommendation" | "system";
|
|
1487
1494
|
changeId: string;
|
|
1495
|
+
source: "user" | "workflow_recommendation" | "system";
|
|
1488
1496
|
delta: ({
|
|
1489
|
-
value: "guided" | "
|
|
1497
|
+
value: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1490
1498
|
key: "autonomy";
|
|
1491
1499
|
} | {
|
|
1492
1500
|
value: "conservative" | "balanced" | "aggressive";
|
|
1493
1501
|
key: "riskPolicy";
|
|
1494
1502
|
})[];
|
|
1495
1503
|
effective: {
|
|
1496
|
-
autonomy: "guided" | "
|
|
1504
|
+
autonomy: "guided" | "full_auto_stop_on_user_deps" | "full_auto_never_stop";
|
|
1497
1505
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1498
1506
|
};
|
|
1499
1507
|
};
|
|
1500
|
-
v: 1;
|
|
1501
|
-
eventIndex: number;
|
|
1502
|
-
eventId: string;
|
|
1503
|
-
dedupeKey: string;
|
|
1504
|
-
scope: {
|
|
1505
|
-
runId: string;
|
|
1506
|
-
nodeId: string;
|
|
1507
|
-
};
|
|
1508
1508
|
}>, z.ZodObject<{
|
|
1509
1509
|
v: z.ZodLiteral<1>;
|
|
1510
1510
|
eventId: z.ZodString;
|
|
@@ -1734,7 +1734,15 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1734
1734
|
}>;
|
|
1735
1735
|
}, "strip", z.ZodTypeAny, {
|
|
1736
1736
|
kind: "capability_observed";
|
|
1737
|
+
v: 1;
|
|
1737
1738
|
sessionId: string;
|
|
1739
|
+
eventIndex: number;
|
|
1740
|
+
eventId: string;
|
|
1741
|
+
dedupeKey: string;
|
|
1742
|
+
scope: {
|
|
1743
|
+
runId: string;
|
|
1744
|
+
nodeId: string;
|
|
1745
|
+
};
|
|
1738
1746
|
data: {
|
|
1739
1747
|
status: "unknown" | "available" | "unavailable";
|
|
1740
1748
|
capability: "delegation" | "web_browsing";
|
|
@@ -1764,7 +1772,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1764
1772
|
enforcementGrade: "weak";
|
|
1765
1773
|
};
|
|
1766
1774
|
};
|
|
1775
|
+
}, {
|
|
1776
|
+
kind: "capability_observed";
|
|
1767
1777
|
v: 1;
|
|
1778
|
+
sessionId: string;
|
|
1768
1779
|
eventIndex: number;
|
|
1769
1780
|
eventId: string;
|
|
1770
1781
|
dedupeKey: string;
|
|
@@ -1772,9 +1783,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1772
1783
|
runId: string;
|
|
1773
1784
|
nodeId: string;
|
|
1774
1785
|
};
|
|
1775
|
-
}, {
|
|
1776
|
-
kind: "capability_observed";
|
|
1777
|
-
sessionId: string;
|
|
1778
1786
|
data: {
|
|
1779
1787
|
status: "unknown" | "available" | "unavailable";
|
|
1780
1788
|
capability: "delegation" | "web_browsing";
|
|
@@ -1804,14 +1812,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1804
1812
|
enforcementGrade: "weak";
|
|
1805
1813
|
};
|
|
1806
1814
|
};
|
|
1807
|
-
v: 1;
|
|
1808
|
-
eventIndex: number;
|
|
1809
|
-
eventId: string;
|
|
1810
|
-
dedupeKey: string;
|
|
1811
|
-
scope: {
|
|
1812
|
-
runId: string;
|
|
1813
|
-
nodeId: string;
|
|
1814
|
-
};
|
|
1815
1815
|
}>, z.ZodObject<{
|
|
1816
1816
|
v: z.ZodLiteral<1>;
|
|
1817
1817
|
eventId: z.ZodString;
|
|
@@ -1837,38 +1837,38 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1837
1837
|
category: z.ZodLiteral<"user_only_dependency">;
|
|
1838
1838
|
detail: z.ZodEnum<["needs_user_secret_or_token", "needs_user_account_access", "needs_user_artifact", "needs_user_choice", "needs_user_approval", "needs_user_environment_action"]>;
|
|
1839
1839
|
}, "strip", z.ZodTypeAny, {
|
|
1840
|
-
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1841
1840
|
category: "user_only_dependency";
|
|
1842
|
-
}, {
|
|
1843
1841
|
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1842
|
+
}, {
|
|
1844
1843
|
category: "user_only_dependency";
|
|
1844
|
+
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1845
1845
|
}>, z.ZodObject<{
|
|
1846
1846
|
category: z.ZodLiteral<"contract_violation">;
|
|
1847
1847
|
detail: z.ZodEnum<["missing_required_output", "invalid_required_output", "missing_required_notes", "assessment_followup_required"]>;
|
|
1848
1848
|
}, "strip", z.ZodTypeAny, {
|
|
1849
|
-
detail: "invalid_required_output" | "missing_required_output" | "assessment_followup_required" | "missing_required_notes";
|
|
1850
1849
|
category: "contract_violation";
|
|
1850
|
+
detail: "missing_required_output" | "invalid_required_output" | "missing_required_notes" | "assessment_followup_required";
|
|
1851
1851
|
}, {
|
|
1852
|
-
detail: "invalid_required_output" | "missing_required_output" | "assessment_followup_required" | "missing_required_notes";
|
|
1853
1852
|
category: "contract_violation";
|
|
1853
|
+
detail: "missing_required_output" | "invalid_required_output" | "missing_required_notes" | "assessment_followup_required";
|
|
1854
1854
|
}>, z.ZodObject<{
|
|
1855
1855
|
category: z.ZodLiteral<"capability_missing">;
|
|
1856
1856
|
detail: z.ZodEnum<["required_capability_unavailable", "required_capability_unknown"]>;
|
|
1857
1857
|
}, "strip", z.ZodTypeAny, {
|
|
1858
|
-
detail: "required_capability_unknown" | "required_capability_unavailable";
|
|
1859
1858
|
category: "capability_missing";
|
|
1859
|
+
detail: "required_capability_unavailable" | "required_capability_unknown";
|
|
1860
1860
|
}, {
|
|
1861
|
-
detail: "required_capability_unknown" | "required_capability_unavailable";
|
|
1862
1861
|
category: "capability_missing";
|
|
1862
|
+
detail: "required_capability_unavailable" | "required_capability_unknown";
|
|
1863
1863
|
}>, z.ZodObject<{
|
|
1864
1864
|
category: z.ZodLiteral<"unexpected">;
|
|
1865
1865
|
detail: z.ZodEnum<["invariant_violation", "storage_corruption_detected", "evaluation_error"]>;
|
|
1866
1866
|
}, "strip", z.ZodTypeAny, {
|
|
1867
|
-
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1868
1867
|
category: "unexpected";
|
|
1869
|
-
}, {
|
|
1870
1868
|
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1869
|
+
}, {
|
|
1871
1870
|
category: "unexpected";
|
|
1871
|
+
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1872
1872
|
}>]>;
|
|
1873
1873
|
summary: z.ZodString;
|
|
1874
1874
|
resolution: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
@@ -1907,28 +1907,28 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1907
1907
|
outputId: string;
|
|
1908
1908
|
}>]>, "many">>;
|
|
1909
1909
|
}, "strip", z.ZodTypeAny, {
|
|
1910
|
-
|
|
1910
|
+
gapId: string;
|
|
1911
|
+
severity: "info" | "warning" | "critical";
|
|
1911
1912
|
reason: {
|
|
1912
|
-
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1913
1913
|
category: "user_only_dependency";
|
|
1914
|
+
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1914
1915
|
} | {
|
|
1915
|
-
detail: "invalid_required_output" | "missing_required_output" | "assessment_followup_required" | "missing_required_notes";
|
|
1916
1916
|
category: "contract_violation";
|
|
1917
|
+
detail: "missing_required_output" | "invalid_required_output" | "missing_required_notes" | "assessment_followup_required";
|
|
1917
1918
|
} | {
|
|
1918
|
-
detail: "required_capability_unknown" | "required_capability_unavailable";
|
|
1919
1919
|
category: "capability_missing";
|
|
1920
|
+
detail: "required_capability_unavailable" | "required_capability_unknown";
|
|
1920
1921
|
} | {
|
|
1921
|
-
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1922
1922
|
category: "unexpected";
|
|
1923
|
+
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1923
1924
|
};
|
|
1924
|
-
|
|
1925
|
+
summary: string;
|
|
1925
1926
|
resolution: {
|
|
1926
1927
|
kind: "unresolved";
|
|
1927
1928
|
} | {
|
|
1928
1929
|
kind: "resolves";
|
|
1929
1930
|
resolvesGapId: string;
|
|
1930
1931
|
};
|
|
1931
|
-
gapId: string;
|
|
1932
1932
|
evidenceRefs?: ({
|
|
1933
1933
|
kind: "event";
|
|
1934
1934
|
eventId: string;
|
|
@@ -1937,28 +1937,28 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1937
1937
|
outputId: string;
|
|
1938
1938
|
})[] | undefined;
|
|
1939
1939
|
}, {
|
|
1940
|
-
|
|
1940
|
+
gapId: string;
|
|
1941
|
+
severity: "info" | "warning" | "critical";
|
|
1941
1942
|
reason: {
|
|
1942
|
-
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1943
1943
|
category: "user_only_dependency";
|
|
1944
|
+
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1944
1945
|
} | {
|
|
1945
|
-
detail: "invalid_required_output" | "missing_required_output" | "assessment_followup_required" | "missing_required_notes";
|
|
1946
1946
|
category: "contract_violation";
|
|
1947
|
+
detail: "missing_required_output" | "invalid_required_output" | "missing_required_notes" | "assessment_followup_required";
|
|
1947
1948
|
} | {
|
|
1948
|
-
detail: "required_capability_unknown" | "required_capability_unavailable";
|
|
1949
1949
|
category: "capability_missing";
|
|
1950
|
+
detail: "required_capability_unavailable" | "required_capability_unknown";
|
|
1950
1951
|
} | {
|
|
1951
|
-
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1952
1952
|
category: "unexpected";
|
|
1953
|
+
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1953
1954
|
};
|
|
1954
|
-
|
|
1955
|
+
summary: string;
|
|
1955
1956
|
resolution: {
|
|
1956
1957
|
kind: "unresolved";
|
|
1957
1958
|
} | {
|
|
1958
1959
|
kind: "resolves";
|
|
1959
1960
|
resolvesGapId: string;
|
|
1960
1961
|
};
|
|
1961
|
-
gapId: string;
|
|
1962
1962
|
evidenceRefs?: ({
|
|
1963
1963
|
kind: "event";
|
|
1964
1964
|
eventId: string;
|
|
@@ -1969,30 +1969,38 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
1969
1969
|
}>;
|
|
1970
1970
|
}, "strip", z.ZodTypeAny, {
|
|
1971
1971
|
kind: "gap_recorded";
|
|
1972
|
+
v: 1;
|
|
1972
1973
|
sessionId: string;
|
|
1974
|
+
eventIndex: number;
|
|
1975
|
+
eventId: string;
|
|
1976
|
+
dedupeKey: string;
|
|
1977
|
+
scope: {
|
|
1978
|
+
runId: string;
|
|
1979
|
+
nodeId: string;
|
|
1980
|
+
};
|
|
1973
1981
|
data: {
|
|
1974
|
-
|
|
1982
|
+
gapId: string;
|
|
1983
|
+
severity: "info" | "warning" | "critical";
|
|
1975
1984
|
reason: {
|
|
1976
|
-
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1977
1985
|
category: "user_only_dependency";
|
|
1986
|
+
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
1978
1987
|
} | {
|
|
1979
|
-
detail: "invalid_required_output" | "missing_required_output" | "assessment_followup_required" | "missing_required_notes";
|
|
1980
1988
|
category: "contract_violation";
|
|
1989
|
+
detail: "missing_required_output" | "invalid_required_output" | "missing_required_notes" | "assessment_followup_required";
|
|
1981
1990
|
} | {
|
|
1982
|
-
detail: "required_capability_unknown" | "required_capability_unavailable";
|
|
1983
1991
|
category: "capability_missing";
|
|
1992
|
+
detail: "required_capability_unavailable" | "required_capability_unknown";
|
|
1984
1993
|
} | {
|
|
1985
|
-
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1986
1994
|
category: "unexpected";
|
|
1995
|
+
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
1987
1996
|
};
|
|
1988
|
-
|
|
1997
|
+
summary: string;
|
|
1989
1998
|
resolution: {
|
|
1990
1999
|
kind: "unresolved";
|
|
1991
2000
|
} | {
|
|
1992
2001
|
kind: "resolves";
|
|
1993
2002
|
resolvesGapId: string;
|
|
1994
2003
|
};
|
|
1995
|
-
gapId: string;
|
|
1996
2004
|
evidenceRefs?: ({
|
|
1997
2005
|
kind: "event";
|
|
1998
2006
|
eventId: string;
|
|
@@ -2001,7 +2009,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2001
2009
|
outputId: string;
|
|
2002
2010
|
})[] | undefined;
|
|
2003
2011
|
};
|
|
2012
|
+
}, {
|
|
2013
|
+
kind: "gap_recorded";
|
|
2004
2014
|
v: 1;
|
|
2015
|
+
sessionId: string;
|
|
2005
2016
|
eventIndex: number;
|
|
2006
2017
|
eventId: string;
|
|
2007
2018
|
dedupeKey: string;
|
|
@@ -2009,32 +2020,29 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2009
2020
|
runId: string;
|
|
2010
2021
|
nodeId: string;
|
|
2011
2022
|
};
|
|
2012
|
-
}, {
|
|
2013
|
-
kind: "gap_recorded";
|
|
2014
|
-
sessionId: string;
|
|
2015
2023
|
data: {
|
|
2016
|
-
|
|
2024
|
+
gapId: string;
|
|
2025
|
+
severity: "info" | "warning" | "critical";
|
|
2017
2026
|
reason: {
|
|
2018
|
-
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
2019
2027
|
category: "user_only_dependency";
|
|
2028
|
+
detail: "needs_user_secret_or_token" | "needs_user_account_access" | "needs_user_artifact" | "needs_user_choice" | "needs_user_approval" | "needs_user_environment_action";
|
|
2020
2029
|
} | {
|
|
2021
|
-
detail: "invalid_required_output" | "missing_required_output" | "assessment_followup_required" | "missing_required_notes";
|
|
2022
2030
|
category: "contract_violation";
|
|
2031
|
+
detail: "missing_required_output" | "invalid_required_output" | "missing_required_notes" | "assessment_followup_required";
|
|
2023
2032
|
} | {
|
|
2024
|
-
detail: "required_capability_unknown" | "required_capability_unavailable";
|
|
2025
2033
|
category: "capability_missing";
|
|
2034
|
+
detail: "required_capability_unavailable" | "required_capability_unknown";
|
|
2026
2035
|
} | {
|
|
2027
|
-
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
2028
2036
|
category: "unexpected";
|
|
2037
|
+
detail: "invariant_violation" | "storage_corruption_detected" | "evaluation_error";
|
|
2029
2038
|
};
|
|
2030
|
-
|
|
2039
|
+
summary: string;
|
|
2031
2040
|
resolution: {
|
|
2032
2041
|
kind: "unresolved";
|
|
2033
2042
|
} | {
|
|
2034
2043
|
kind: "resolves";
|
|
2035
2044
|
resolvesGapId: string;
|
|
2036
2045
|
};
|
|
2037
|
-
gapId: string;
|
|
2038
2046
|
evidenceRefs?: ({
|
|
2039
2047
|
kind: "event";
|
|
2040
2048
|
eventId: string;
|
|
@@ -2043,14 +2051,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2043
2051
|
outputId: string;
|
|
2044
2052
|
})[] | undefined;
|
|
2045
2053
|
};
|
|
2046
|
-
v: 1;
|
|
2047
|
-
eventIndex: number;
|
|
2048
|
-
eventId: string;
|
|
2049
|
-
dedupeKey: string;
|
|
2050
|
-
scope: {
|
|
2051
|
-
runId: string;
|
|
2052
|
-
nodeId: string;
|
|
2053
|
-
};
|
|
2054
2054
|
}>, z.ZodObject<{
|
|
2055
2055
|
v: z.ZodLiteral<1>;
|
|
2056
2056
|
eventId: z.ZodString;
|
|
@@ -2081,34 +2081,34 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2081
2081
|
}>;
|
|
2082
2082
|
}, "strip", z.ZodTypeAny, {
|
|
2083
2083
|
kind: "context_set";
|
|
2084
|
-
sessionId: string;
|
|
2085
|
-
data: {
|
|
2086
|
-
source: "initial" | "agent_delta";
|
|
2087
|
-
contextId: string;
|
|
2088
|
-
context?: unknown;
|
|
2089
|
-
};
|
|
2090
2084
|
v: 1;
|
|
2085
|
+
sessionId: string;
|
|
2091
2086
|
eventIndex: number;
|
|
2092
2087
|
eventId: string;
|
|
2093
2088
|
dedupeKey: string;
|
|
2094
2089
|
scope: {
|
|
2095
2090
|
runId: string;
|
|
2096
2091
|
};
|
|
2097
|
-
}, {
|
|
2098
|
-
kind: "context_set";
|
|
2099
|
-
sessionId: string;
|
|
2100
2092
|
data: {
|
|
2101
2093
|
source: "initial" | "agent_delta";
|
|
2102
2094
|
contextId: string;
|
|
2103
2095
|
context?: unknown;
|
|
2104
2096
|
};
|
|
2097
|
+
}, {
|
|
2098
|
+
kind: "context_set";
|
|
2105
2099
|
v: 1;
|
|
2100
|
+
sessionId: string;
|
|
2106
2101
|
eventIndex: number;
|
|
2107
2102
|
eventId: string;
|
|
2108
2103
|
dedupeKey: string;
|
|
2109
2104
|
scope: {
|
|
2110
2105
|
runId: string;
|
|
2111
2106
|
};
|
|
2107
|
+
data: {
|
|
2108
|
+
source: "initial" | "agent_delta";
|
|
2109
|
+
contextId: string;
|
|
2110
|
+
context?: unknown;
|
|
2111
|
+
};
|
|
2112
2112
|
}>, z.ZodObject<{
|
|
2113
2113
|
v: z.ZodLiteral<1>;
|
|
2114
2114
|
eventId: z.ZodString;
|
|
@@ -2133,26 +2133,20 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2133
2133
|
summary: z.ZodString;
|
|
2134
2134
|
relatedStepId: z.ZodOptional<z.ZodString>;
|
|
2135
2135
|
}, "strip", z.ZodTypeAny, {
|
|
2136
|
-
summary: string;
|
|
2137
2136
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2137
|
+
summary: string;
|
|
2138
2138
|
divergenceId: string;
|
|
2139
2139
|
relatedStepId?: string | undefined;
|
|
2140
2140
|
}, {
|
|
2141
|
-
summary: string;
|
|
2142
2141
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2142
|
+
summary: string;
|
|
2143
2143
|
divergenceId: string;
|
|
2144
2144
|
relatedStepId?: string | undefined;
|
|
2145
2145
|
}>;
|
|
2146
2146
|
}, "strip", z.ZodTypeAny, {
|
|
2147
2147
|
kind: "divergence_recorded";
|
|
2148
|
-
sessionId: string;
|
|
2149
|
-
data: {
|
|
2150
|
-
summary: string;
|
|
2151
|
-
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2152
|
-
divergenceId: string;
|
|
2153
|
-
relatedStepId?: string | undefined;
|
|
2154
|
-
};
|
|
2155
2148
|
v: 1;
|
|
2149
|
+
sessionId: string;
|
|
2156
2150
|
eventIndex: number;
|
|
2157
2151
|
eventId: string;
|
|
2158
2152
|
dedupeKey: string;
|
|
@@ -2160,16 +2154,16 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2160
2154
|
runId: string;
|
|
2161
2155
|
nodeId: string;
|
|
2162
2156
|
};
|
|
2163
|
-
}, {
|
|
2164
|
-
kind: "divergence_recorded";
|
|
2165
|
-
sessionId: string;
|
|
2166
2157
|
data: {
|
|
2167
|
-
summary: string;
|
|
2168
2158
|
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2159
|
+
summary: string;
|
|
2169
2160
|
divergenceId: string;
|
|
2170
2161
|
relatedStepId?: string | undefined;
|
|
2171
2162
|
};
|
|
2163
|
+
}, {
|
|
2164
|
+
kind: "divergence_recorded";
|
|
2172
2165
|
v: 1;
|
|
2166
|
+
sessionId: string;
|
|
2173
2167
|
eventIndex: number;
|
|
2174
2168
|
eventId: string;
|
|
2175
2169
|
dedupeKey: string;
|
|
@@ -2177,6 +2171,12 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2177
2171
|
runId: string;
|
|
2178
2172
|
nodeId: string;
|
|
2179
2173
|
};
|
|
2174
|
+
data: {
|
|
2175
|
+
reason: "missing_user_context" | "capability_unavailable" | "efficiency_skip" | "safety_stop" | "policy_constraint";
|
|
2176
|
+
summary: string;
|
|
2177
|
+
divergenceId: string;
|
|
2178
|
+
relatedStepId?: string | undefined;
|
|
2179
|
+
};
|
|
2180
2180
|
}>, z.ZodObject<{
|
|
2181
2181
|
v: z.ZodLiteral<1>;
|
|
2182
2182
|
eventId: z.ZodString;
|
|
@@ -2349,7 +2349,15 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2349
2349
|
}>;
|
|
2350
2350
|
}, "strip", z.ZodTypeAny, {
|
|
2351
2351
|
kind: "decision_trace_appended";
|
|
2352
|
+
v: 1;
|
|
2352
2353
|
sessionId: string;
|
|
2354
|
+
eventIndex: number;
|
|
2355
|
+
eventId: string;
|
|
2356
|
+
dedupeKey: string;
|
|
2357
|
+
scope: {
|
|
2358
|
+
runId: string;
|
|
2359
|
+
nodeId: string;
|
|
2360
|
+
};
|
|
2353
2361
|
data: {
|
|
2354
2362
|
entries: {
|
|
2355
2363
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -2370,7 +2378,10 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2370
2378
|
}[];
|
|
2371
2379
|
traceId: string;
|
|
2372
2380
|
};
|
|
2381
|
+
}, {
|
|
2382
|
+
kind: "decision_trace_appended";
|
|
2373
2383
|
v: 1;
|
|
2384
|
+
sessionId: string;
|
|
2374
2385
|
eventIndex: number;
|
|
2375
2386
|
eventId: string;
|
|
2376
2387
|
dedupeKey: string;
|
|
@@ -2378,9 +2389,6 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2378
2389
|
runId: string;
|
|
2379
2390
|
nodeId: string;
|
|
2380
2391
|
};
|
|
2381
|
-
}, {
|
|
2382
|
-
kind: "decision_trace_appended";
|
|
2383
|
-
sessionId: string;
|
|
2384
2392
|
data: {
|
|
2385
2393
|
entries: {
|
|
2386
2394
|
kind: "selected_next_step" | "evaluated_condition" | "entered_loop" | "exited_loop" | "detected_non_tip_advance";
|
|
@@ -2401,13 +2409,5 @@ export declare const DomainEventV1Schema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
2401
2409
|
}[];
|
|
2402
2410
|
traceId: string;
|
|
2403
2411
|
};
|
|
2404
|
-
v: 1;
|
|
2405
|
-
eventIndex: number;
|
|
2406
|
-
eventId: string;
|
|
2407
|
-
dedupeKey: string;
|
|
2408
|
-
scope: {
|
|
2409
|
-
runId: string;
|
|
2410
|
-
nodeId: string;
|
|
2411
|
-
};
|
|
2412
2412
|
}>]>;
|
|
2413
2413
|
export type DomainEventV1 = z.infer<typeof DomainEventV1Schema>;
|