@behavior-os/schemas 0.0.0-stage → 2.2.1
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/LICENSE +21 -0
- package/dist/index.d.ts +1958 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1236 -0
- package/dist/index.js.map +1 -0
- package/dist/knowledge-graph.d.ts +138 -0
- package/dist/knowledge-graph.d.ts.map +1 -0
- package/dist/knowledge-graph.js +112 -0
- package/dist/knowledge-graph.js.map +1 -0
- package/package.json +25 -3
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1958 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const GovernanceActionSchema: z.ZodEnum<{
|
|
3
|
+
transform: "transform";
|
|
4
|
+
block: "block";
|
|
5
|
+
escalate: "escalate";
|
|
6
|
+
warn: "warn";
|
|
7
|
+
log: "log";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const ConditionSchema: z.ZodObject<{
|
|
10
|
+
type: z.ZodString;
|
|
11
|
+
value: z.ZodUnknown;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const GovernanceRuleSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
level: z.ZodEnum<{
|
|
16
|
+
critical: "critical";
|
|
17
|
+
high: "high";
|
|
18
|
+
medium: "medium";
|
|
19
|
+
low: "low";
|
|
20
|
+
}>;
|
|
21
|
+
action: z.ZodEnum<{
|
|
22
|
+
transform: "transform";
|
|
23
|
+
block: "block";
|
|
24
|
+
escalate: "escalate";
|
|
25
|
+
warn: "warn";
|
|
26
|
+
log: "log";
|
|
27
|
+
}>;
|
|
28
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
value: z.ZodUnknown;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
description: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const QualityGateSchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
type: z.ZodEnum<{
|
|
37
|
+
test_coverage: "test_coverage";
|
|
38
|
+
lint: "lint";
|
|
39
|
+
typecheck: "typecheck";
|
|
40
|
+
security: "security";
|
|
41
|
+
performance: "performance";
|
|
42
|
+
access_control: "access_control";
|
|
43
|
+
}>;
|
|
44
|
+
threshold: z.ZodNumber;
|
|
45
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
gte: "gte";
|
|
47
|
+
lte: "lte";
|
|
48
|
+
eq: "eq";
|
|
49
|
+
neq: "neq";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export declare const PersonaBoundarySchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
type: z.ZodEnum<{
|
|
55
|
+
max_modules: "max_modules";
|
|
56
|
+
max_files: "max_files";
|
|
57
|
+
max_lines: "max_lines";
|
|
58
|
+
max_time: "max_time";
|
|
59
|
+
max_actions: "max_actions";
|
|
60
|
+
}>;
|
|
61
|
+
value: z.ZodNumber;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export declare const PersonaSchema: z.ZodObject<{
|
|
64
|
+
role: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
authority: z.ZodString;
|
|
67
|
+
boundaries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
type: z.ZodEnum<{
|
|
70
|
+
max_modules: "max_modules";
|
|
71
|
+
max_files: "max_files";
|
|
72
|
+
max_lines: "max_lines";
|
|
73
|
+
max_time: "max_time";
|
|
74
|
+
max_actions: "max_actions";
|
|
75
|
+
}>;
|
|
76
|
+
value: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
skills: z.ZodArray<z.ZodString>;
|
|
79
|
+
description: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const WorkflowStepSchema: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
85
|
+
approvalRequired: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export declare const WorkflowSchema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
approvalRequired: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
/**
|
|
100
|
+
* The type of a construction pipeline phase. These mirror the
|
|
101
|
+
* phases a human software-factory director would mandate.
|
|
102
|
+
*/
|
|
103
|
+
export declare const PipelinePhaseDefinitionTypeSchema: z.ZodEnum<{
|
|
104
|
+
architecture: "architecture";
|
|
105
|
+
planning: "planning";
|
|
106
|
+
dependencies: "dependencies";
|
|
107
|
+
frontend: "frontend";
|
|
108
|
+
backend: "backend";
|
|
109
|
+
integration: "integration";
|
|
110
|
+
testing: "testing";
|
|
111
|
+
deployment: "deployment";
|
|
112
|
+
documentation: "documentation";
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* A single gate within a construction pipeline phase.
|
|
116
|
+
* Gates are evaluated by the PipelineEngine and must pass
|
|
117
|
+
* before the phase (and subsequent phases) can proceed.
|
|
118
|
+
*/
|
|
119
|
+
export declare const ConstructionPipelineGateSchema: z.ZodObject<{
|
|
120
|
+
id: z.ZodString;
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
phaseType: z.ZodEnum<{
|
|
123
|
+
architecture: "architecture";
|
|
124
|
+
planning: "planning";
|
|
125
|
+
dependencies: "dependencies";
|
|
126
|
+
frontend: "frontend";
|
|
127
|
+
backend: "backend";
|
|
128
|
+
integration: "integration";
|
|
129
|
+
testing: "testing";
|
|
130
|
+
deployment: "deployment";
|
|
131
|
+
documentation: "documentation";
|
|
132
|
+
}>;
|
|
133
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
134
|
+
condition: z.ZodObject<{
|
|
135
|
+
type: z.ZodString;
|
|
136
|
+
value: z.ZodUnknown;
|
|
137
|
+
description: z.ZodString;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
/**
|
|
141
|
+
* A phase definition within a construction pipeline. Each phase
|
|
142
|
+
* is associated with specific agent personas, skills to autoload,
|
|
143
|
+
* and gates to evaluate before proceeding.
|
|
144
|
+
*/
|
|
145
|
+
export declare const PipelinePhaseDefinitionSchema: z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
description: z.ZodOptional<z.ZodString>;
|
|
149
|
+
type: z.ZodEnum<{
|
|
150
|
+
architecture: "architecture";
|
|
151
|
+
planning: "planning";
|
|
152
|
+
dependencies: "dependencies";
|
|
153
|
+
frontend: "frontend";
|
|
154
|
+
backend: "backend";
|
|
155
|
+
integration: "integration";
|
|
156
|
+
testing: "testing";
|
|
157
|
+
deployment: "deployment";
|
|
158
|
+
documentation: "documentation";
|
|
159
|
+
}>;
|
|
160
|
+
requiredAgents: z.ZodArray<z.ZodString>;
|
|
161
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
162
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
phaseType: z.ZodEnum<{
|
|
166
|
+
architecture: "architecture";
|
|
167
|
+
planning: "planning";
|
|
168
|
+
dependencies: "dependencies";
|
|
169
|
+
frontend: "frontend";
|
|
170
|
+
backend: "backend";
|
|
171
|
+
integration: "integration";
|
|
172
|
+
testing: "testing";
|
|
173
|
+
deployment: "deployment";
|
|
174
|
+
documentation: "documentation";
|
|
175
|
+
}>;
|
|
176
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
177
|
+
condition: z.ZodObject<{
|
|
178
|
+
type: z.ZodString;
|
|
179
|
+
value: z.ZodUnknown;
|
|
180
|
+
description: z.ZodString;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
order: z.ZodNumber;
|
|
184
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
185
|
+
readinessArtifact: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
/**
|
|
188
|
+
* A named construction pipeline defined in a DNA pattern.
|
|
189
|
+
* The PipelinePlanner selects which pipeline to use based on
|
|
190
|
+
* the project context (web-app, API, mobile, etc.).
|
|
191
|
+
*/
|
|
192
|
+
export declare const ConstructionPipelineSchema: z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
name: z.ZodString;
|
|
195
|
+
description: z.ZodOptional<z.ZodString>;
|
|
196
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
name: z.ZodString;
|
|
199
|
+
description: z.ZodOptional<z.ZodString>;
|
|
200
|
+
type: z.ZodEnum<{
|
|
201
|
+
architecture: "architecture";
|
|
202
|
+
planning: "planning";
|
|
203
|
+
dependencies: "dependencies";
|
|
204
|
+
frontend: "frontend";
|
|
205
|
+
backend: "backend";
|
|
206
|
+
integration: "integration";
|
|
207
|
+
testing: "testing";
|
|
208
|
+
deployment: "deployment";
|
|
209
|
+
documentation: "documentation";
|
|
210
|
+
}>;
|
|
211
|
+
requiredAgents: z.ZodArray<z.ZodString>;
|
|
212
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
213
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodString;
|
|
215
|
+
name: z.ZodString;
|
|
216
|
+
phaseType: z.ZodEnum<{
|
|
217
|
+
architecture: "architecture";
|
|
218
|
+
planning: "planning";
|
|
219
|
+
dependencies: "dependencies";
|
|
220
|
+
frontend: "frontend";
|
|
221
|
+
backend: "backend";
|
|
222
|
+
integration: "integration";
|
|
223
|
+
testing: "testing";
|
|
224
|
+
deployment: "deployment";
|
|
225
|
+
documentation: "documentation";
|
|
226
|
+
}>;
|
|
227
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
228
|
+
condition: z.ZodObject<{
|
|
229
|
+
type: z.ZodString;
|
|
230
|
+
value: z.ZodUnknown;
|
|
231
|
+
description: z.ZodString;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
}, z.core.$strip>>;
|
|
234
|
+
order: z.ZodNumber;
|
|
235
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
236
|
+
readinessArtifact: z.ZodOptional<z.ZodString>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
appliesTo: z.ZodArray<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
export declare const DNASchema: z.ZodObject<{
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
version: z.ZodString;
|
|
243
|
+
description: z.ZodString;
|
|
244
|
+
personas: z.ZodArray<z.ZodObject<{
|
|
245
|
+
role: z.ZodString;
|
|
246
|
+
name: z.ZodString;
|
|
247
|
+
authority: z.ZodString;
|
|
248
|
+
boundaries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
249
|
+
id: z.ZodString;
|
|
250
|
+
type: z.ZodEnum<{
|
|
251
|
+
max_modules: "max_modules";
|
|
252
|
+
max_files: "max_files";
|
|
253
|
+
max_lines: "max_lines";
|
|
254
|
+
max_time: "max_time";
|
|
255
|
+
max_actions: "max_actions";
|
|
256
|
+
}>;
|
|
257
|
+
value: z.ZodNumber;
|
|
258
|
+
}, z.core.$strip>>>;
|
|
259
|
+
skills: z.ZodArray<z.ZodString>;
|
|
260
|
+
description: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
governance: z.ZodArray<z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
level: z.ZodEnum<{
|
|
265
|
+
critical: "critical";
|
|
266
|
+
high: "high";
|
|
267
|
+
medium: "medium";
|
|
268
|
+
low: "low";
|
|
269
|
+
}>;
|
|
270
|
+
action: z.ZodEnum<{
|
|
271
|
+
transform: "transform";
|
|
272
|
+
block: "block";
|
|
273
|
+
escalate: "escalate";
|
|
274
|
+
warn: "warn";
|
|
275
|
+
log: "log";
|
|
276
|
+
}>;
|
|
277
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
278
|
+
type: z.ZodString;
|
|
279
|
+
value: z.ZodUnknown;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
description: z.ZodOptional<z.ZodString>;
|
|
282
|
+
}, z.core.$strip>>;
|
|
283
|
+
quality: z.ZodArray<z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
type: z.ZodEnum<{
|
|
286
|
+
test_coverage: "test_coverage";
|
|
287
|
+
lint: "lint";
|
|
288
|
+
typecheck: "typecheck";
|
|
289
|
+
security: "security";
|
|
290
|
+
performance: "performance";
|
|
291
|
+
access_control: "access_control";
|
|
292
|
+
}>;
|
|
293
|
+
threshold: z.ZodNumber;
|
|
294
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
gte: "gte";
|
|
296
|
+
lte: "lte";
|
|
297
|
+
eq: "eq";
|
|
298
|
+
neq: "neq";
|
|
299
|
+
}>>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
|
+
id: z.ZodString;
|
|
303
|
+
name: z.ZodString;
|
|
304
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
308
|
+
approvalRequired: z.ZodDefault<z.ZodBoolean>;
|
|
309
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
}, z.core.$strip>>>;
|
|
312
|
+
pipelines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
name: z.ZodString;
|
|
315
|
+
description: z.ZodOptional<z.ZodString>;
|
|
316
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
name: z.ZodString;
|
|
319
|
+
description: z.ZodOptional<z.ZodString>;
|
|
320
|
+
type: z.ZodEnum<{
|
|
321
|
+
architecture: "architecture";
|
|
322
|
+
planning: "planning";
|
|
323
|
+
dependencies: "dependencies";
|
|
324
|
+
frontend: "frontend";
|
|
325
|
+
backend: "backend";
|
|
326
|
+
integration: "integration";
|
|
327
|
+
testing: "testing";
|
|
328
|
+
deployment: "deployment";
|
|
329
|
+
documentation: "documentation";
|
|
330
|
+
}>;
|
|
331
|
+
requiredAgents: z.ZodArray<z.ZodString>;
|
|
332
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
333
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
334
|
+
id: z.ZodString;
|
|
335
|
+
name: z.ZodString;
|
|
336
|
+
phaseType: z.ZodEnum<{
|
|
337
|
+
architecture: "architecture";
|
|
338
|
+
planning: "planning";
|
|
339
|
+
dependencies: "dependencies";
|
|
340
|
+
frontend: "frontend";
|
|
341
|
+
backend: "backend";
|
|
342
|
+
integration: "integration";
|
|
343
|
+
testing: "testing";
|
|
344
|
+
deployment: "deployment";
|
|
345
|
+
documentation: "documentation";
|
|
346
|
+
}>;
|
|
347
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
348
|
+
condition: z.ZodObject<{
|
|
349
|
+
type: z.ZodString;
|
|
350
|
+
value: z.ZodUnknown;
|
|
351
|
+
description: z.ZodString;
|
|
352
|
+
}, z.core.$strip>;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
order: z.ZodNumber;
|
|
355
|
+
blocking: z.ZodDefault<z.ZodBoolean>;
|
|
356
|
+
readinessArtifact: z.ZodOptional<z.ZodString>;
|
|
357
|
+
}, z.core.$strip>>;
|
|
358
|
+
appliesTo: z.ZodArray<z.ZodString>;
|
|
359
|
+
}, z.core.$strip>>>;
|
|
360
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
export declare const MissionTypeSchema: z.ZodEnum<{
|
|
363
|
+
audit: "audit";
|
|
364
|
+
deployment: "deployment";
|
|
365
|
+
feature: "feature";
|
|
366
|
+
bugfix: "bugfix";
|
|
367
|
+
research: "research";
|
|
368
|
+
refactor: "refactor";
|
|
369
|
+
incident: "incident";
|
|
370
|
+
}>;
|
|
371
|
+
export declare const MissionPrioritySchema: z.ZodEnum<{
|
|
372
|
+
critical: "critical";
|
|
373
|
+
high: "high";
|
|
374
|
+
medium: "medium";
|
|
375
|
+
low: "low";
|
|
376
|
+
}>;
|
|
377
|
+
export declare const MissionStatusSchema: z.ZodEnum<{
|
|
378
|
+
pending: "pending";
|
|
379
|
+
active: "active";
|
|
380
|
+
paused: "paused";
|
|
381
|
+
completed: "completed";
|
|
382
|
+
failed: "failed";
|
|
383
|
+
cancelled: "cancelled";
|
|
384
|
+
}>;
|
|
385
|
+
/**
|
|
386
|
+
* Where evidence came from.
|
|
387
|
+
*
|
|
388
|
+
* - `executed` — a real command/adapter ran and produced this record.
|
|
389
|
+
* - `reported` — a caller or agent asserted the result without execution.
|
|
390
|
+
* - `simulated` — the check was simulated (never a verification).
|
|
391
|
+
*/
|
|
392
|
+
export declare const EvidenceProvenanceSchema: z.ZodEnum<{
|
|
393
|
+
executed: "executed";
|
|
394
|
+
reported: "reported";
|
|
395
|
+
simulated: "simulated";
|
|
396
|
+
}>;
|
|
397
|
+
/**
|
|
398
|
+
* Evidence attached to a mission transition. `simulated: true` marks a value
|
|
399
|
+
* produced without executing the check (for example a simulated audit); such
|
|
400
|
+
* evidence can be recorded but never authorizes completion of a required gate.
|
|
401
|
+
*
|
|
402
|
+
* `provenance` and `executionId` are what let a mission in
|
|
403
|
+
* `verificationMode: 'executed'` distinguish a real run from an assertion.
|
|
404
|
+
*/
|
|
405
|
+
export declare const MissionEvidenceSchema: z.ZodObject<{
|
|
406
|
+
gate: z.ZodString;
|
|
407
|
+
status: z.ZodEnum<{
|
|
408
|
+
failed: "failed";
|
|
409
|
+
passed: "passed";
|
|
410
|
+
skipped: "skipped";
|
|
411
|
+
}>;
|
|
412
|
+
source: z.ZodString;
|
|
413
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
414
|
+
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
415
|
+
provenance: z.ZodOptional<z.ZodEnum<{
|
|
416
|
+
executed: "executed";
|
|
417
|
+
reported: "reported";
|
|
418
|
+
simulated: "simulated";
|
|
419
|
+
}>>;
|
|
420
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
421
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
422
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
423
|
+
command: z.ZodOptional<z.ZodString>;
|
|
424
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
recordedAt: z.ZodString;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
/** One auditable entry in a mission's transition history. */
|
|
428
|
+
export declare const MissionTransitionSchema: z.ZodObject<{
|
|
429
|
+
from: z.ZodEnum<{
|
|
430
|
+
pending: "pending";
|
|
431
|
+
active: "active";
|
|
432
|
+
paused: "paused";
|
|
433
|
+
completed: "completed";
|
|
434
|
+
failed: "failed";
|
|
435
|
+
cancelled: "cancelled";
|
|
436
|
+
}>;
|
|
437
|
+
to: z.ZodEnum<{
|
|
438
|
+
pending: "pending";
|
|
439
|
+
active: "active";
|
|
440
|
+
paused: "paused";
|
|
441
|
+
completed: "completed";
|
|
442
|
+
failed: "failed";
|
|
443
|
+
cancelled: "cancelled";
|
|
444
|
+
}>;
|
|
445
|
+
at: z.ZodString;
|
|
446
|
+
actor: z.ZodString;
|
|
447
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
448
|
+
version: z.ZodNumber;
|
|
449
|
+
}, z.core.$strip>;
|
|
450
|
+
export declare const MissionSchema: z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
title: z.ZodString;
|
|
453
|
+
description: z.ZodOptional<z.ZodString>;
|
|
454
|
+
type: z.ZodEnum<{
|
|
455
|
+
audit: "audit";
|
|
456
|
+
deployment: "deployment";
|
|
457
|
+
feature: "feature";
|
|
458
|
+
bugfix: "bugfix";
|
|
459
|
+
research: "research";
|
|
460
|
+
refactor: "refactor";
|
|
461
|
+
incident: "incident";
|
|
462
|
+
}>;
|
|
463
|
+
priority: z.ZodEnum<{
|
|
464
|
+
critical: "critical";
|
|
465
|
+
high: "high";
|
|
466
|
+
medium: "medium";
|
|
467
|
+
low: "low";
|
|
468
|
+
}>;
|
|
469
|
+
status: z.ZodEnum<{
|
|
470
|
+
pending: "pending";
|
|
471
|
+
active: "active";
|
|
472
|
+
paused: "paused";
|
|
473
|
+
completed: "completed";
|
|
474
|
+
failed: "failed";
|
|
475
|
+
cancelled: "cancelled";
|
|
476
|
+
}>;
|
|
477
|
+
dnaPattern: z.ZodString;
|
|
478
|
+
createdBy: z.ZodString;
|
|
479
|
+
assignedTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
480
|
+
createdAt: z.ZodString;
|
|
481
|
+
updatedAt: z.ZodString;
|
|
482
|
+
progress: z.ZodDefault<z.ZodNumber>;
|
|
483
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
484
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
requiredChecks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
486
|
+
verificationMode: z.ZodOptional<z.ZodEnum<{
|
|
487
|
+
any: "any";
|
|
488
|
+
executed: "executed";
|
|
489
|
+
}>>;
|
|
490
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
491
|
+
gate: z.ZodString;
|
|
492
|
+
status: z.ZodEnum<{
|
|
493
|
+
failed: "failed";
|
|
494
|
+
passed: "passed";
|
|
495
|
+
skipped: "skipped";
|
|
496
|
+
}>;
|
|
497
|
+
source: z.ZodString;
|
|
498
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
499
|
+
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
500
|
+
provenance: z.ZodOptional<z.ZodEnum<{
|
|
501
|
+
executed: "executed";
|
|
502
|
+
reported: "reported";
|
|
503
|
+
simulated: "simulated";
|
|
504
|
+
}>>;
|
|
505
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
506
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
507
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
508
|
+
command: z.ZodOptional<z.ZodString>;
|
|
509
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
510
|
+
recordedAt: z.ZodString;
|
|
511
|
+
}, z.core.$strip>>>;
|
|
512
|
+
transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
513
|
+
from: z.ZodEnum<{
|
|
514
|
+
pending: "pending";
|
|
515
|
+
active: "active";
|
|
516
|
+
paused: "paused";
|
|
517
|
+
completed: "completed";
|
|
518
|
+
failed: "failed";
|
|
519
|
+
cancelled: "cancelled";
|
|
520
|
+
}>;
|
|
521
|
+
to: z.ZodEnum<{
|
|
522
|
+
pending: "pending";
|
|
523
|
+
active: "active";
|
|
524
|
+
paused: "paused";
|
|
525
|
+
completed: "completed";
|
|
526
|
+
failed: "failed";
|
|
527
|
+
cancelled: "cancelled";
|
|
528
|
+
}>;
|
|
529
|
+
at: z.ZodString;
|
|
530
|
+
actor: z.ZodString;
|
|
531
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
532
|
+
version: z.ZodNumber;
|
|
533
|
+
}, z.core.$strip>>>;
|
|
534
|
+
completionBasis: z.ZodOptional<z.ZodEnum<{
|
|
535
|
+
evidence: "evidence";
|
|
536
|
+
"no-required-checks": "no-required-checks";
|
|
537
|
+
}>>;
|
|
538
|
+
lastTransitionReason: z.ZodOptional<z.ZodString>;
|
|
539
|
+
}, z.core.$strip>;
|
|
540
|
+
export declare const TaskStatusSchema: z.ZodEnum<{
|
|
541
|
+
pending: "pending";
|
|
542
|
+
completed: "completed";
|
|
543
|
+
failed: "failed";
|
|
544
|
+
cancelled: "cancelled";
|
|
545
|
+
dispatched: "dispatched";
|
|
546
|
+
running: "running";
|
|
547
|
+
blocked: "blocked";
|
|
548
|
+
}>;
|
|
549
|
+
export declare const TaskErrorCodeSchema: z.ZodEnum<{
|
|
550
|
+
INVALID_INPUT: "INVALID_INPUT";
|
|
551
|
+
INVALID_OUTPUT: "INVALID_OUTPUT";
|
|
552
|
+
AGENT_NOT_FOUND: "AGENT_NOT_FOUND";
|
|
553
|
+
ADAPTER_NOT_FOUND: "ADAPTER_NOT_FOUND";
|
|
554
|
+
DNA_NOT_FOUND: "DNA_NOT_FOUND";
|
|
555
|
+
GOVERNANCE_DENIED: "GOVERNANCE_DENIED";
|
|
556
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
557
|
+
TIMEOUT: "TIMEOUT";
|
|
558
|
+
CANCELLED: "CANCELLED";
|
|
559
|
+
RETRY_EXHAUSTED: "RETRY_EXHAUSTED";
|
|
560
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
561
|
+
CIRCUIT_OPEN: "CIRCUIT_OPEN";
|
|
562
|
+
DEPENDENCY_BLOCKED: "DEPENDENCY_BLOCKED";
|
|
563
|
+
ACCEPTANCE_FAILED: "ACCEPTANCE_FAILED";
|
|
564
|
+
EXECUTION_FAILED: "EXECUTION_FAILED";
|
|
565
|
+
PERSISTENCE_FAILED: "PERSISTENCE_FAILED";
|
|
566
|
+
}>;
|
|
567
|
+
/** One machine-checkable acceptance criterion for a task. */
|
|
568
|
+
export declare const TaskAcceptanceSchema: z.ZodObject<{
|
|
569
|
+
gate: z.ZodString;
|
|
570
|
+
description: z.ZodString;
|
|
571
|
+
type: z.ZodEnum<{
|
|
572
|
+
"exit-code": "exit-code";
|
|
573
|
+
"stdout-contains": "stdout-contains";
|
|
574
|
+
"stdout-matches": "stdout-matches";
|
|
575
|
+
"stderr-not-contains": "stderr-not-contains";
|
|
576
|
+
}>;
|
|
577
|
+
expected: z.ZodOptional<z.ZodString>;
|
|
578
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
export declare const TaskCheckResultSchema: z.ZodObject<{
|
|
581
|
+
gate: z.ZodString;
|
|
582
|
+
type: z.ZodEnum<{
|
|
583
|
+
"exit-code": "exit-code";
|
|
584
|
+
"stdout-contains": "stdout-contains";
|
|
585
|
+
"stdout-matches": "stdout-matches";
|
|
586
|
+
"stderr-not-contains": "stderr-not-contains";
|
|
587
|
+
}>;
|
|
588
|
+
required: z.ZodBoolean;
|
|
589
|
+
passed: z.ZodBoolean;
|
|
590
|
+
detail: z.ZodString;
|
|
591
|
+
}, z.core.$strip>;
|
|
592
|
+
/** A dispatched, fully identified task. */
|
|
593
|
+
export declare const TaskDefinitionSchema: z.ZodObject<{
|
|
594
|
+
id: z.ZodString;
|
|
595
|
+
missionId: z.ZodString;
|
|
596
|
+
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
597
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
598
|
+
correlationId: z.ZodString;
|
|
599
|
+
idempotencyKey: z.ZodString;
|
|
600
|
+
type: z.ZodString;
|
|
601
|
+
objective: z.ZodString;
|
|
602
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
603
|
+
acceptance: z.ZodArray<z.ZodObject<{
|
|
604
|
+
gate: z.ZodString;
|
|
605
|
+
description: z.ZodString;
|
|
606
|
+
type: z.ZodEnum<{
|
|
607
|
+
"exit-code": "exit-code";
|
|
608
|
+
"stdout-contains": "stdout-contains";
|
|
609
|
+
"stdout-matches": "stdout-matches";
|
|
610
|
+
"stderr-not-contains": "stderr-not-contains";
|
|
611
|
+
}>;
|
|
612
|
+
expected: z.ZodOptional<z.ZodString>;
|
|
613
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
agentId: z.ZodString;
|
|
616
|
+
adapter: z.ZodString;
|
|
617
|
+
status: z.ZodEnum<{
|
|
618
|
+
pending: "pending";
|
|
619
|
+
completed: "completed";
|
|
620
|
+
failed: "failed";
|
|
621
|
+
cancelled: "cancelled";
|
|
622
|
+
dispatched: "dispatched";
|
|
623
|
+
running: "running";
|
|
624
|
+
blocked: "blocked";
|
|
625
|
+
}>;
|
|
626
|
+
attempts: z.ZodNumber;
|
|
627
|
+
maxAttempts: z.ZodNumber;
|
|
628
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
629
|
+
deadline: z.ZodOptional<z.ZodString>;
|
|
630
|
+
createdAt: z.ZodString;
|
|
631
|
+
updatedAt: z.ZodString;
|
|
632
|
+
}, z.core.$strip>;
|
|
633
|
+
/** Structured, classified task failure. */
|
|
634
|
+
export declare const TaskErrorSchema: z.ZodObject<{
|
|
635
|
+
code: z.ZodEnum<{
|
|
636
|
+
INVALID_INPUT: "INVALID_INPUT";
|
|
637
|
+
INVALID_OUTPUT: "INVALID_OUTPUT";
|
|
638
|
+
AGENT_NOT_FOUND: "AGENT_NOT_FOUND";
|
|
639
|
+
ADAPTER_NOT_FOUND: "ADAPTER_NOT_FOUND";
|
|
640
|
+
DNA_NOT_FOUND: "DNA_NOT_FOUND";
|
|
641
|
+
GOVERNANCE_DENIED: "GOVERNANCE_DENIED";
|
|
642
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
643
|
+
TIMEOUT: "TIMEOUT";
|
|
644
|
+
CANCELLED: "CANCELLED";
|
|
645
|
+
RETRY_EXHAUSTED: "RETRY_EXHAUSTED";
|
|
646
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
647
|
+
CIRCUIT_OPEN: "CIRCUIT_OPEN";
|
|
648
|
+
DEPENDENCY_BLOCKED: "DEPENDENCY_BLOCKED";
|
|
649
|
+
ACCEPTANCE_FAILED: "ACCEPTANCE_FAILED";
|
|
650
|
+
EXECUTION_FAILED: "EXECUTION_FAILED";
|
|
651
|
+
PERSISTENCE_FAILED: "PERSISTENCE_FAILED";
|
|
652
|
+
}>;
|
|
653
|
+
message: z.ZodString;
|
|
654
|
+
retryable: z.ZodBoolean;
|
|
655
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
/**
|
|
658
|
+
* The raw result an execution adapter returns. It is **untrusted** until the
|
|
659
|
+
* orchestrator validates it with this schema.
|
|
660
|
+
*/
|
|
661
|
+
export declare const AdapterResultSchema: z.ZodObject<{
|
|
662
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
663
|
+
stdout: z.ZodString;
|
|
664
|
+
stderr: z.ZodString;
|
|
665
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
export declare const TaskResultSchema: z.ZodObject<{
|
|
668
|
+
id: z.ZodString;
|
|
669
|
+
missionId: z.ZodString;
|
|
670
|
+
status: z.ZodEnum<{
|
|
671
|
+
pending: "pending";
|
|
672
|
+
completed: "completed";
|
|
673
|
+
failed: "failed";
|
|
674
|
+
cancelled: "cancelled";
|
|
675
|
+
dispatched: "dispatched";
|
|
676
|
+
running: "running";
|
|
677
|
+
blocked: "blocked";
|
|
678
|
+
}>;
|
|
679
|
+
agentId: z.ZodString;
|
|
680
|
+
adapter: z.ZodString;
|
|
681
|
+
attempts: z.ZodNumber;
|
|
682
|
+
correlationId: z.ZodString;
|
|
683
|
+
idempotencyKey: z.ZodString;
|
|
684
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
685
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
686
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
687
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
688
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
689
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
690
|
+
acceptance: z.ZodArray<z.ZodObject<{
|
|
691
|
+
gate: z.ZodString;
|
|
692
|
+
type: z.ZodEnum<{
|
|
693
|
+
"exit-code": "exit-code";
|
|
694
|
+
"stdout-contains": "stdout-contains";
|
|
695
|
+
"stdout-matches": "stdout-matches";
|
|
696
|
+
"stderr-not-contains": "stderr-not-contains";
|
|
697
|
+
}>;
|
|
698
|
+
required: z.ZodBoolean;
|
|
699
|
+
passed: z.ZodBoolean;
|
|
700
|
+
detail: z.ZodString;
|
|
701
|
+
}, z.core.$strip>>;
|
|
702
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
703
|
+
gate: z.ZodString;
|
|
704
|
+
status: z.ZodEnum<{
|
|
705
|
+
failed: "failed";
|
|
706
|
+
passed: "passed";
|
|
707
|
+
skipped: "skipped";
|
|
708
|
+
}>;
|
|
709
|
+
source: z.ZodString;
|
|
710
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
711
|
+
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
+
provenance: z.ZodOptional<z.ZodEnum<{
|
|
713
|
+
executed: "executed";
|
|
714
|
+
reported: "reported";
|
|
715
|
+
simulated: "simulated";
|
|
716
|
+
}>>;
|
|
717
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
718
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
719
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
720
|
+
command: z.ZodOptional<z.ZodString>;
|
|
721
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
722
|
+
recordedAt: z.ZodString;
|
|
723
|
+
}, z.core.$strip>>;
|
|
724
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
725
|
+
code: z.ZodEnum<{
|
|
726
|
+
INVALID_INPUT: "INVALID_INPUT";
|
|
727
|
+
INVALID_OUTPUT: "INVALID_OUTPUT";
|
|
728
|
+
AGENT_NOT_FOUND: "AGENT_NOT_FOUND";
|
|
729
|
+
ADAPTER_NOT_FOUND: "ADAPTER_NOT_FOUND";
|
|
730
|
+
DNA_NOT_FOUND: "DNA_NOT_FOUND";
|
|
731
|
+
GOVERNANCE_DENIED: "GOVERNANCE_DENIED";
|
|
732
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
733
|
+
TIMEOUT: "TIMEOUT";
|
|
734
|
+
CANCELLED: "CANCELLED";
|
|
735
|
+
RETRY_EXHAUSTED: "RETRY_EXHAUSTED";
|
|
736
|
+
LOOP_DETECTED: "LOOP_DETECTED";
|
|
737
|
+
CIRCUIT_OPEN: "CIRCUIT_OPEN";
|
|
738
|
+
DEPENDENCY_BLOCKED: "DEPENDENCY_BLOCKED";
|
|
739
|
+
ACCEPTANCE_FAILED: "ACCEPTANCE_FAILED";
|
|
740
|
+
EXECUTION_FAILED: "EXECUTION_FAILED";
|
|
741
|
+
PERSISTENCE_FAILED: "PERSISTENCE_FAILED";
|
|
742
|
+
}>;
|
|
743
|
+
message: z.ZodString;
|
|
744
|
+
retryable: z.ZodBoolean;
|
|
745
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
746
|
+
}, z.core.$strip>>;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
export declare const TaskEventTypeSchema: z.ZodEnum<{
|
|
749
|
+
"mission.created": "mission.created";
|
|
750
|
+
"mission.completed": "mission.completed";
|
|
751
|
+
"mission.failed": "mission.failed";
|
|
752
|
+
"mission.cancelled": "mission.cancelled";
|
|
753
|
+
"mission.blocked": "mission.blocked";
|
|
754
|
+
"task.created": "task.created";
|
|
755
|
+
"task.dispatched": "task.dispatched";
|
|
756
|
+
"task.started": "task.started";
|
|
757
|
+
"task.retried": "task.retried";
|
|
758
|
+
"task.completed": "task.completed";
|
|
759
|
+
"task.failed": "task.failed";
|
|
760
|
+
"task.cancelled": "task.cancelled";
|
|
761
|
+
"task.blocked": "task.blocked";
|
|
762
|
+
}>;
|
|
763
|
+
/** Correlated lifecycle event. Payloads never contain stdout/stderr or env. */
|
|
764
|
+
export declare const TaskEventSchema: z.ZodObject<{
|
|
765
|
+
seq: z.ZodNumber;
|
|
766
|
+
type: z.ZodEnum<{
|
|
767
|
+
"mission.created": "mission.created";
|
|
768
|
+
"mission.completed": "mission.completed";
|
|
769
|
+
"mission.failed": "mission.failed";
|
|
770
|
+
"mission.cancelled": "mission.cancelled";
|
|
771
|
+
"mission.blocked": "mission.blocked";
|
|
772
|
+
"task.created": "task.created";
|
|
773
|
+
"task.dispatched": "task.dispatched";
|
|
774
|
+
"task.started": "task.started";
|
|
775
|
+
"task.retried": "task.retried";
|
|
776
|
+
"task.completed": "task.completed";
|
|
777
|
+
"task.failed": "task.failed";
|
|
778
|
+
"task.cancelled": "task.cancelled";
|
|
779
|
+
"task.blocked": "task.blocked";
|
|
780
|
+
}>;
|
|
781
|
+
missionId: z.ZodString;
|
|
782
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
783
|
+
correlationId: z.ZodString;
|
|
784
|
+
at: z.ZodString;
|
|
785
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
786
|
+
}, z.core.$strip>;
|
|
787
|
+
export declare const AgentTypeSchema: z.ZodEnum<{
|
|
788
|
+
operator: "operator";
|
|
789
|
+
orchestrator: "orchestrator";
|
|
790
|
+
developer: "developer";
|
|
791
|
+
architect: "architect";
|
|
792
|
+
reviewer: "reviewer";
|
|
793
|
+
analyst: "analyst";
|
|
794
|
+
}>;
|
|
795
|
+
export declare const AgentStatusSchema: z.ZodEnum<{
|
|
796
|
+
error: "error";
|
|
797
|
+
idle: "idle";
|
|
798
|
+
busy: "busy";
|
|
799
|
+
offline: "offline";
|
|
800
|
+
}>;
|
|
801
|
+
export declare const AgentSchema: z.ZodObject<{
|
|
802
|
+
id: z.ZodString;
|
|
803
|
+
name: z.ZodString;
|
|
804
|
+
type: z.ZodEnum<{
|
|
805
|
+
operator: "operator";
|
|
806
|
+
orchestrator: "orchestrator";
|
|
807
|
+
developer: "developer";
|
|
808
|
+
architect: "architect";
|
|
809
|
+
reviewer: "reviewer";
|
|
810
|
+
analyst: "analyst";
|
|
811
|
+
}>;
|
|
812
|
+
status: z.ZodEnum<{
|
|
813
|
+
error: "error";
|
|
814
|
+
idle: "idle";
|
|
815
|
+
busy: "busy";
|
|
816
|
+
offline: "offline";
|
|
817
|
+
}>;
|
|
818
|
+
dnaPattern: z.ZodString;
|
|
819
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
820
|
+
currentMission: z.ZodNullable<z.ZodString>;
|
|
821
|
+
metrics: z.ZodObject<{
|
|
822
|
+
tasksCompleted: z.ZodNumber;
|
|
823
|
+
tasksFailed: z.ZodNumber;
|
|
824
|
+
avgResponseTime: z.ZodNumber;
|
|
825
|
+
governanceViolations: z.ZodNumber;
|
|
826
|
+
}, z.core.$strip>;
|
|
827
|
+
}, z.core.$strip>;
|
|
828
|
+
export declare const GovernanceVerdictSchema: z.ZodEnum<{
|
|
829
|
+
transform: "transform";
|
|
830
|
+
escalate: "escalate";
|
|
831
|
+
allow: "allow";
|
|
832
|
+
deny: "deny";
|
|
833
|
+
}>;
|
|
834
|
+
export declare const GovernanceDecisionSchema: z.ZodObject<{
|
|
835
|
+
id: z.ZodString;
|
|
836
|
+
action: z.ZodString;
|
|
837
|
+
verdict: z.ZodEnum<{
|
|
838
|
+
transform: "transform";
|
|
839
|
+
escalate: "escalate";
|
|
840
|
+
allow: "allow";
|
|
841
|
+
deny: "deny";
|
|
842
|
+
}>;
|
|
843
|
+
reason: z.ZodString;
|
|
844
|
+
rulesEvaluated: z.ZodArray<z.ZodString>;
|
|
845
|
+
firedRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
846
|
+
timestamp: z.ZodString;
|
|
847
|
+
agentId: z.ZodString;
|
|
848
|
+
missionId: z.ZodOptional<z.ZodString>;
|
|
849
|
+
transformed: z.ZodOptional<z.ZodBoolean>;
|
|
850
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
851
|
+
}, z.core.$strip>;
|
|
852
|
+
export declare const AuditStageSchema: z.ZodEnum<{
|
|
853
|
+
lint: "lint";
|
|
854
|
+
typecheck: "typecheck";
|
|
855
|
+
security: "security";
|
|
856
|
+
performance: "performance";
|
|
857
|
+
governance: "governance";
|
|
858
|
+
coverage: "coverage";
|
|
859
|
+
}>;
|
|
860
|
+
export declare const AuditResultSchema: z.ZodObject<{
|
|
861
|
+
id: z.ZodString;
|
|
862
|
+
stage: z.ZodEnum<{
|
|
863
|
+
lint: "lint";
|
|
864
|
+
typecheck: "typecheck";
|
|
865
|
+
security: "security";
|
|
866
|
+
performance: "performance";
|
|
867
|
+
governance: "governance";
|
|
868
|
+
coverage: "coverage";
|
|
869
|
+
}>;
|
|
870
|
+
status: z.ZodEnum<{
|
|
871
|
+
failed: "failed";
|
|
872
|
+
passed: "passed";
|
|
873
|
+
skipped: "skipped";
|
|
874
|
+
warning: "warning";
|
|
875
|
+
}>;
|
|
876
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
877
|
+
timestamp: z.ZodString;
|
|
878
|
+
}, z.core.$strip>;
|
|
879
|
+
export declare const AuditReportSchema: z.ZodObject<{
|
|
880
|
+
id: z.ZodString;
|
|
881
|
+
missionId: z.ZodString;
|
|
882
|
+
agentId: z.ZodString;
|
|
883
|
+
dnaPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
884
|
+
persona: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
885
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
886
|
+
id: z.ZodString;
|
|
887
|
+
stage: z.ZodEnum<{
|
|
888
|
+
lint: "lint";
|
|
889
|
+
typecheck: "typecheck";
|
|
890
|
+
security: "security";
|
|
891
|
+
performance: "performance";
|
|
892
|
+
governance: "governance";
|
|
893
|
+
coverage: "coverage";
|
|
894
|
+
}>;
|
|
895
|
+
status: z.ZodEnum<{
|
|
896
|
+
failed: "failed";
|
|
897
|
+
passed: "passed";
|
|
898
|
+
skipped: "skipped";
|
|
899
|
+
warning: "warning";
|
|
900
|
+
}>;
|
|
901
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
902
|
+
timestamp: z.ZodString;
|
|
903
|
+
}, z.core.$strip>>;
|
|
904
|
+
overall: z.ZodEnum<{
|
|
905
|
+
warning: "warning";
|
|
906
|
+
pass: "pass";
|
|
907
|
+
fail: "fail";
|
|
908
|
+
}>;
|
|
909
|
+
summary: z.ZodString;
|
|
910
|
+
timestamp: z.ZodString;
|
|
911
|
+
simulated: z.ZodOptional<z.ZodBoolean>;
|
|
912
|
+
}, z.core.$strip>;
|
|
913
|
+
/** Whether a gate runs before (pre) or after (post) an action executes. */
|
|
914
|
+
export declare const PipelinePhaseSchema: z.ZodEnum<{
|
|
915
|
+
pre: "pre";
|
|
916
|
+
post: "post";
|
|
917
|
+
}>;
|
|
918
|
+
export declare const GateStatusSchema: z.ZodEnum<{
|
|
919
|
+
failed: "failed";
|
|
920
|
+
passed: "passed";
|
|
921
|
+
skipped: "skipped";
|
|
922
|
+
warning: "warning";
|
|
923
|
+
}>;
|
|
924
|
+
export declare const GateResultSchema: z.ZodObject<{
|
|
925
|
+
id: z.ZodString;
|
|
926
|
+
name: z.ZodString;
|
|
927
|
+
phase: z.ZodEnum<{
|
|
928
|
+
pre: "pre";
|
|
929
|
+
post: "post";
|
|
930
|
+
}>;
|
|
931
|
+
blocking: z.ZodBoolean;
|
|
932
|
+
status: z.ZodEnum<{
|
|
933
|
+
failed: "failed";
|
|
934
|
+
passed: "passed";
|
|
935
|
+
skipped: "skipped";
|
|
936
|
+
warning: "warning";
|
|
937
|
+
}>;
|
|
938
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
939
|
+
durationMs: z.ZodNumber;
|
|
940
|
+
timestamp: z.ZodString;
|
|
941
|
+
}, z.core.$strip>;
|
|
942
|
+
export declare const PipelineRunSchema: z.ZodObject<{
|
|
943
|
+
id: z.ZodString;
|
|
944
|
+
overall: z.ZodEnum<{
|
|
945
|
+
warning: "warning";
|
|
946
|
+
pass: "pass";
|
|
947
|
+
fail: "fail";
|
|
948
|
+
}>;
|
|
949
|
+
blocked: z.ZodBoolean;
|
|
950
|
+
blockedBy: z.ZodOptional<z.ZodString>;
|
|
951
|
+
phases: z.ZodArray<z.ZodEnum<{
|
|
952
|
+
pre: "pre";
|
|
953
|
+
post: "post";
|
|
954
|
+
}>>;
|
|
955
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
956
|
+
id: z.ZodString;
|
|
957
|
+
name: z.ZodString;
|
|
958
|
+
phase: z.ZodEnum<{
|
|
959
|
+
pre: "pre";
|
|
960
|
+
post: "post";
|
|
961
|
+
}>;
|
|
962
|
+
blocking: z.ZodBoolean;
|
|
963
|
+
status: z.ZodEnum<{
|
|
964
|
+
failed: "failed";
|
|
965
|
+
passed: "passed";
|
|
966
|
+
skipped: "skipped";
|
|
967
|
+
warning: "warning";
|
|
968
|
+
}>;
|
|
969
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
970
|
+
durationMs: z.ZodNumber;
|
|
971
|
+
timestamp: z.ZodString;
|
|
972
|
+
}, z.core.$strip>>;
|
|
973
|
+
durationMs: z.ZodNumber;
|
|
974
|
+
timestamp: z.ZodString;
|
|
975
|
+
missionId: z.ZodOptional<z.ZodString>;
|
|
976
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
977
|
+
}, z.core.$strip>;
|
|
978
|
+
export declare const VoteChoiceSchema: z.ZodEnum<{
|
|
979
|
+
approve: "approve";
|
|
980
|
+
reject: "reject";
|
|
981
|
+
abstain: "abstain";
|
|
982
|
+
}>;
|
|
983
|
+
export declare const VoteSchema: z.ZodObject<{
|
|
984
|
+
voterId: z.ZodString;
|
|
985
|
+
choice: z.ZodEnum<{
|
|
986
|
+
approve: "approve";
|
|
987
|
+
reject: "reject";
|
|
988
|
+
abstain: "abstain";
|
|
989
|
+
}>;
|
|
990
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
991
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
export declare const DecisionPolicySchema: z.ZodEnum<{
|
|
994
|
+
majority: "majority";
|
|
995
|
+
supermajority: "supermajority";
|
|
996
|
+
unanimous: "unanimous";
|
|
997
|
+
}>;
|
|
998
|
+
export declare const DecisionOutcomeSchema: z.ZodEnum<{
|
|
999
|
+
approved: "approved";
|
|
1000
|
+
rejected: "rejected";
|
|
1001
|
+
no_quorum: "no_quorum";
|
|
1002
|
+
}>;
|
|
1003
|
+
export declare const DecisionSchema: z.ZodObject<{
|
|
1004
|
+
id: z.ZodString;
|
|
1005
|
+
subject: z.ZodString;
|
|
1006
|
+
policy: z.ZodEnum<{
|
|
1007
|
+
majority: "majority";
|
|
1008
|
+
supermajority: "supermajority";
|
|
1009
|
+
unanimous: "unanimous";
|
|
1010
|
+
}>;
|
|
1011
|
+
outcome: z.ZodEnum<{
|
|
1012
|
+
approved: "approved";
|
|
1013
|
+
rejected: "rejected";
|
|
1014
|
+
no_quorum: "no_quorum";
|
|
1015
|
+
}>;
|
|
1016
|
+
quorum: z.ZodNumber;
|
|
1017
|
+
quorumMet: z.ZodBoolean;
|
|
1018
|
+
approve: z.ZodNumber;
|
|
1019
|
+
reject: z.ZodNumber;
|
|
1020
|
+
abstain: z.ZodNumber;
|
|
1021
|
+
participatingWeight: z.ZodNumber;
|
|
1022
|
+
votes: z.ZodArray<z.ZodObject<{
|
|
1023
|
+
voterId: z.ZodString;
|
|
1024
|
+
choice: z.ZodEnum<{
|
|
1025
|
+
approve: "approve";
|
|
1026
|
+
reject: "reject";
|
|
1027
|
+
abstain: "abstain";
|
|
1028
|
+
}>;
|
|
1029
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
1030
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
}, z.core.$strip>>;
|
|
1032
|
+
decidedBy: z.ZodArray<z.ZodString>;
|
|
1033
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
1034
|
+
timestamp: z.ZodString;
|
|
1035
|
+
missionId: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
}, z.core.$strip>;
|
|
1037
|
+
export declare const ConsensusPolicySchema: z.ZodEnum<{
|
|
1038
|
+
majority: "majority";
|
|
1039
|
+
supermajority: "supermajority";
|
|
1040
|
+
unanimous: "unanimous";
|
|
1041
|
+
}>;
|
|
1042
|
+
export declare const ConsensusVoteSchema: z.ZodObject<{
|
|
1043
|
+
agentId: z.ZodString;
|
|
1044
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
+
choice: z.ZodEnum<{
|
|
1046
|
+
approve: "approve";
|
|
1047
|
+
reject: "reject";
|
|
1048
|
+
abstain: "abstain";
|
|
1049
|
+
}>;
|
|
1050
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1051
|
+
}, z.core.$strip>;
|
|
1052
|
+
export declare const ConsensusTallySchema: z.ZodObject<{
|
|
1053
|
+
approveWeight: z.ZodNumber;
|
|
1054
|
+
rejectWeight: z.ZodNumber;
|
|
1055
|
+
abstainWeight: z.ZodNumber;
|
|
1056
|
+
totalParticipating: z.ZodNumber;
|
|
1057
|
+
approveRatio: z.ZodNumber;
|
|
1058
|
+
rejectRatio: z.ZodNumber;
|
|
1059
|
+
}, z.core.$strip>;
|
|
1060
|
+
export declare const ConsensusOutcomeSchema: z.ZodEnum<{
|
|
1061
|
+
approved: "approved";
|
|
1062
|
+
rejected: "rejected";
|
|
1063
|
+
inconclusive: "inconclusive";
|
|
1064
|
+
}>;
|
|
1065
|
+
export declare const ConsensusRoundSchema: z.ZodObject<{
|
|
1066
|
+
id: z.ZodString;
|
|
1067
|
+
subject: z.ZodString;
|
|
1068
|
+
policy: z.ZodEnum<{
|
|
1069
|
+
majority: "majority";
|
|
1070
|
+
supermajority: "supermajority";
|
|
1071
|
+
unanimous: "unanimous";
|
|
1072
|
+
}>;
|
|
1073
|
+
quorum: z.ZodNumber;
|
|
1074
|
+
votes: z.ZodArray<z.ZodObject<{
|
|
1075
|
+
agentId: z.ZodString;
|
|
1076
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
1077
|
+
choice: z.ZodEnum<{
|
|
1078
|
+
approve: "approve";
|
|
1079
|
+
reject: "reject";
|
|
1080
|
+
abstain: "abstain";
|
|
1081
|
+
}>;
|
|
1082
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
}, z.core.$strip>>;
|
|
1084
|
+
tally: z.ZodObject<{
|
|
1085
|
+
approveWeight: z.ZodNumber;
|
|
1086
|
+
rejectWeight: z.ZodNumber;
|
|
1087
|
+
abstainWeight: z.ZodNumber;
|
|
1088
|
+
totalParticipating: z.ZodNumber;
|
|
1089
|
+
approveRatio: z.ZodNumber;
|
|
1090
|
+
rejectRatio: z.ZodNumber;
|
|
1091
|
+
}, z.core.$strip>;
|
|
1092
|
+
outcome: z.ZodEnum<{
|
|
1093
|
+
approved: "approved";
|
|
1094
|
+
rejected: "rejected";
|
|
1095
|
+
inconclusive: "inconclusive";
|
|
1096
|
+
}>;
|
|
1097
|
+
reason: z.ZodString;
|
|
1098
|
+
timestamp: z.ZodString;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1100
|
+
export declare const PredictionTypeSchema: z.ZodEnum<{
|
|
1101
|
+
"governance-block": "governance-block";
|
|
1102
|
+
"mission-failure": "mission-failure";
|
|
1103
|
+
"quality-fall": "quality-fall";
|
|
1104
|
+
"drift-significant": "drift-significant";
|
|
1105
|
+
"pattern-repeated": "pattern-repeated";
|
|
1106
|
+
}>;
|
|
1107
|
+
export declare const PredictionSchema: z.ZodObject<{
|
|
1108
|
+
id: z.ZodString;
|
|
1109
|
+
type: z.ZodEnum<{
|
|
1110
|
+
"governance-block": "governance-block";
|
|
1111
|
+
"mission-failure": "mission-failure";
|
|
1112
|
+
"quality-fall": "quality-fall";
|
|
1113
|
+
"drift-significant": "drift-significant";
|
|
1114
|
+
"pattern-repeated": "pattern-repeated";
|
|
1115
|
+
}>;
|
|
1116
|
+
subject: z.ZodString;
|
|
1117
|
+
confidence: z.ZodNumber;
|
|
1118
|
+
horizonHours: z.ZodNumber;
|
|
1119
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1120
|
+
recommendation: z.ZodString;
|
|
1121
|
+
timestamp: z.ZodString;
|
|
1122
|
+
}, z.core.$strip>;
|
|
1123
|
+
export declare const EvolutionProposalSchema: z.ZodObject<{
|
|
1124
|
+
id: z.ZodString;
|
|
1125
|
+
dnaName: z.ZodString;
|
|
1126
|
+
changeType: z.ZodEnum<{
|
|
1127
|
+
"add-warn": "add-warn";
|
|
1128
|
+
"relax-block": "relax-block";
|
|
1129
|
+
"add-block": "add-block";
|
|
1130
|
+
}>;
|
|
1131
|
+
kind: z.ZodEnum<{
|
|
1132
|
+
"governance-warn": "governance-warn";
|
|
1133
|
+
}>;
|
|
1134
|
+
pattern: z.ZodString;
|
|
1135
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
1136
|
+
type: z.ZodString;
|
|
1137
|
+
value: z.ZodUnknown;
|
|
1138
|
+
}, z.core.$strip>>;
|
|
1139
|
+
ruleId: z.ZodString;
|
|
1140
|
+
description: z.ZodString;
|
|
1141
|
+
confidence: z.ZodNumber;
|
|
1142
|
+
occurrences: z.ZodNumber;
|
|
1143
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1144
|
+
timestamp: z.ZodString;
|
|
1145
|
+
requiresVote: z.ZodDefault<z.ZodBoolean>;
|
|
1146
|
+
voteThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1147
|
+
}, z.core.$strip>;
|
|
1148
|
+
export declare const CodeFixProposalSchema: z.ZodObject<{
|
|
1149
|
+
id: z.ZodString;
|
|
1150
|
+
pattern: z.ZodString;
|
|
1151
|
+
confidence: z.ZodNumber;
|
|
1152
|
+
occurrences: z.ZodNumber;
|
|
1153
|
+
suggestion: z.ZodString;
|
|
1154
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1155
|
+
timestamp: z.ZodString;
|
|
1156
|
+
}, z.core.$strip>;
|
|
1157
|
+
export declare const LearningTypeSchema: z.ZodEnum<{
|
|
1158
|
+
pattern: "pattern";
|
|
1159
|
+
insight: "insight";
|
|
1160
|
+
fix: "fix";
|
|
1161
|
+
failure: "failure";
|
|
1162
|
+
optimization: "optimization";
|
|
1163
|
+
}>;
|
|
1164
|
+
export declare const LearningImpactSchema: z.ZodEnum<{
|
|
1165
|
+
critical: "critical";
|
|
1166
|
+
high: "high";
|
|
1167
|
+
medium: "medium";
|
|
1168
|
+
low: "low";
|
|
1169
|
+
}>;
|
|
1170
|
+
export declare const LearningEventSchema: z.ZodObject<{
|
|
1171
|
+
id: z.ZodString;
|
|
1172
|
+
type: z.ZodEnum<{
|
|
1173
|
+
pattern: "pattern";
|
|
1174
|
+
insight: "insight";
|
|
1175
|
+
fix: "fix";
|
|
1176
|
+
failure: "failure";
|
|
1177
|
+
optimization: "optimization";
|
|
1178
|
+
}>;
|
|
1179
|
+
source: z.ZodString;
|
|
1180
|
+
content: z.ZodString;
|
|
1181
|
+
impact: z.ZodEnum<{
|
|
1182
|
+
critical: "critical";
|
|
1183
|
+
high: "high";
|
|
1184
|
+
medium: "medium";
|
|
1185
|
+
low: "low";
|
|
1186
|
+
}>;
|
|
1187
|
+
relatedMission: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
relatedPattern: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
timestamp: z.ZodString;
|
|
1190
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1191
|
+
}, z.core.$strip>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Lifecycle of a governed learning:
|
|
1194
|
+
* `observation -> lesson -> candidate -> validated -> policy -> monitored`.
|
|
1195
|
+
* Each record moves exactly one stage forward and keeps an auditable trail of
|
|
1196
|
+
* transitions; `validated` (and every later stage) requires evidence.
|
|
1197
|
+
*/
|
|
1198
|
+
export declare const LearningStageSchema: z.ZodEnum<{
|
|
1199
|
+
policy: "policy";
|
|
1200
|
+
observation: "observation";
|
|
1201
|
+
lesson: "lesson";
|
|
1202
|
+
candidate: "candidate";
|
|
1203
|
+
validated: "validated";
|
|
1204
|
+
monitored: "monitored";
|
|
1205
|
+
}>;
|
|
1206
|
+
export declare const LearningTransitionSchema: z.ZodObject<{
|
|
1207
|
+
from: z.ZodEnum<{
|
|
1208
|
+
policy: "policy";
|
|
1209
|
+
observation: "observation";
|
|
1210
|
+
lesson: "lesson";
|
|
1211
|
+
candidate: "candidate";
|
|
1212
|
+
validated: "validated";
|
|
1213
|
+
monitored: "monitored";
|
|
1214
|
+
}>;
|
|
1215
|
+
to: z.ZodEnum<{
|
|
1216
|
+
policy: "policy";
|
|
1217
|
+
observation: "observation";
|
|
1218
|
+
lesson: "lesson";
|
|
1219
|
+
candidate: "candidate";
|
|
1220
|
+
validated: "validated";
|
|
1221
|
+
monitored: "monitored";
|
|
1222
|
+
}>;
|
|
1223
|
+
at: z.ZodString;
|
|
1224
|
+
actor: z.ZodString;
|
|
1225
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1226
|
+
}, z.core.$strip>;
|
|
1227
|
+
export declare const LearningRecordSchema: z.ZodObject<{
|
|
1228
|
+
id: z.ZodString;
|
|
1229
|
+
stage: z.ZodEnum<{
|
|
1230
|
+
policy: "policy";
|
|
1231
|
+
observation: "observation";
|
|
1232
|
+
lesson: "lesson";
|
|
1233
|
+
candidate: "candidate";
|
|
1234
|
+
validated: "validated";
|
|
1235
|
+
monitored: "monitored";
|
|
1236
|
+
}>;
|
|
1237
|
+
title: z.ZodString;
|
|
1238
|
+
content: z.ZodString;
|
|
1239
|
+
source: z.ZodString;
|
|
1240
|
+
impact: z.ZodEnum<{
|
|
1241
|
+
critical: "critical";
|
|
1242
|
+
high: "high";
|
|
1243
|
+
medium: "medium";
|
|
1244
|
+
low: "low";
|
|
1245
|
+
}>;
|
|
1246
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1247
|
+
transitions: z.ZodArray<z.ZodObject<{
|
|
1248
|
+
from: z.ZodEnum<{
|
|
1249
|
+
policy: "policy";
|
|
1250
|
+
observation: "observation";
|
|
1251
|
+
lesson: "lesson";
|
|
1252
|
+
candidate: "candidate";
|
|
1253
|
+
validated: "validated";
|
|
1254
|
+
monitored: "monitored";
|
|
1255
|
+
}>;
|
|
1256
|
+
to: z.ZodEnum<{
|
|
1257
|
+
policy: "policy";
|
|
1258
|
+
observation: "observation";
|
|
1259
|
+
lesson: "lesson";
|
|
1260
|
+
candidate: "candidate";
|
|
1261
|
+
validated: "validated";
|
|
1262
|
+
monitored: "monitored";
|
|
1263
|
+
}>;
|
|
1264
|
+
at: z.ZodString;
|
|
1265
|
+
actor: z.ZodString;
|
|
1266
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
}, z.core.$strip>>;
|
|
1268
|
+
relatedMission: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
createdAt: z.ZodString;
|
|
1270
|
+
updatedAt: z.ZodString;
|
|
1271
|
+
}, z.core.$strip>;
|
|
1272
|
+
export declare const ProtocolStepSchema: z.ZodObject<{
|
|
1273
|
+
number: z.ZodNumber;
|
|
1274
|
+
name: z.ZodString;
|
|
1275
|
+
description: z.ZodString;
|
|
1276
|
+
tool: z.ZodString;
|
|
1277
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1278
|
+
}, z.core.$strip>;
|
|
1279
|
+
export declare const AgentStateSchema: z.ZodObject<{
|
|
1280
|
+
currentStep: z.ZodDefault<z.ZodNumber>;
|
|
1281
|
+
selectedDna: z.ZodNullable<z.ZodString>;
|
|
1282
|
+
agentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1283
|
+
persona: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1284
|
+
activeMission: z.ZodNullable<z.ZodString>;
|
|
1285
|
+
stepHistory: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1286
|
+
createdAt: z.ZodString;
|
|
1287
|
+
updatedAt: z.ZodString;
|
|
1288
|
+
}, z.core.$strip>;
|
|
1289
|
+
export declare const McpToolSchema: z.ZodObject<{
|
|
1290
|
+
name: z.ZodString;
|
|
1291
|
+
description: z.ZodString;
|
|
1292
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1293
|
+
}, z.core.$strip>;
|
|
1294
|
+
export declare const McpResourceSchema: z.ZodObject<{
|
|
1295
|
+
uri: z.ZodString;
|
|
1296
|
+
name: z.ZodString;
|
|
1297
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
}, z.core.$strip>;
|
|
1300
|
+
export type GovernanceAction = z.infer<typeof GovernanceActionSchema>;
|
|
1301
|
+
export type Condition = z.infer<typeof ConditionSchema>;
|
|
1302
|
+
export type GovernanceRule = z.infer<typeof GovernanceRuleSchema>;
|
|
1303
|
+
export type QualityGate = z.infer<typeof QualityGateSchema>;
|
|
1304
|
+
export type PersonaBoundary = z.infer<typeof PersonaBoundarySchema>;
|
|
1305
|
+
export type Persona = z.infer<typeof PersonaSchema>;
|
|
1306
|
+
export type WorkflowStep = z.infer<typeof WorkflowStepSchema>;
|
|
1307
|
+
export type Workflow = z.infer<typeof WorkflowSchema>;
|
|
1308
|
+
export type DNA = z.infer<typeof DNASchema>;
|
|
1309
|
+
export type MissionType = z.infer<typeof MissionTypeSchema>;
|
|
1310
|
+
export type MissionPriority = z.infer<typeof MissionPrioritySchema>;
|
|
1311
|
+
export type MissionStatus = z.infer<typeof MissionStatusSchema>;
|
|
1312
|
+
export type Mission = z.infer<typeof MissionSchema>;
|
|
1313
|
+
export type MissionEvidence = z.infer<typeof MissionEvidenceSchema>;
|
|
1314
|
+
export type MissionTransition = z.infer<typeof MissionTransitionSchema>;
|
|
1315
|
+
export type EvidenceProvenance = z.infer<typeof EvidenceProvenanceSchema>;
|
|
1316
|
+
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
1317
|
+
export type TaskErrorCode = z.infer<typeof TaskErrorCodeSchema>;
|
|
1318
|
+
export type TaskAcceptance = z.infer<typeof TaskAcceptanceSchema>;
|
|
1319
|
+
export type TaskCheckResult = z.infer<typeof TaskCheckResultSchema>;
|
|
1320
|
+
export type TaskDefinition = z.infer<typeof TaskDefinitionSchema>;
|
|
1321
|
+
export type TaskError = z.infer<typeof TaskErrorSchema>;
|
|
1322
|
+
export type AdapterResult = z.infer<typeof AdapterResultSchema>;
|
|
1323
|
+
export type TaskResult = z.infer<typeof TaskResultSchema>;
|
|
1324
|
+
export type TaskEventType = z.infer<typeof TaskEventTypeSchema>;
|
|
1325
|
+
export type TaskEvent = z.infer<typeof TaskEventSchema>;
|
|
1326
|
+
export type AgentType = z.infer<typeof AgentTypeSchema>;
|
|
1327
|
+
export type AgentStatus = z.infer<typeof AgentStatusSchema>;
|
|
1328
|
+
export type Agent = z.infer<typeof AgentSchema>;
|
|
1329
|
+
export type PipelinePhaseDefinitionType = z.infer<typeof PipelinePhaseDefinitionTypeSchema>;
|
|
1330
|
+
export type ConstructionPipelineGate = z.infer<typeof ConstructionPipelineGateSchema>;
|
|
1331
|
+
export type PipelinePhaseDefinition = z.infer<typeof PipelinePhaseDefinitionSchema>;
|
|
1332
|
+
export type ConstructionPipeline = z.infer<typeof ConstructionPipelineSchema>;
|
|
1333
|
+
export type GovernanceVerdict = z.infer<typeof GovernanceVerdictSchema>;
|
|
1334
|
+
export type GovernanceDecision = z.infer<typeof GovernanceDecisionSchema> & {
|
|
1335
|
+
warnings?: string[];
|
|
1336
|
+
};
|
|
1337
|
+
export type AuditStage = z.infer<typeof AuditStageSchema>;
|
|
1338
|
+
export type AuditResult = z.infer<typeof AuditResultSchema>;
|
|
1339
|
+
export type AuditReport = z.infer<typeof AuditReportSchema>;
|
|
1340
|
+
export type PipelinePhase = z.infer<typeof PipelinePhaseSchema>;
|
|
1341
|
+
export type GateStatus = z.infer<typeof GateStatusSchema>;
|
|
1342
|
+
export type GateResult = z.infer<typeof GateResultSchema>;
|
|
1343
|
+
export type PipelineRun = z.infer<typeof PipelineRunSchema>;
|
|
1344
|
+
export type VoteChoice = z.infer<typeof VoteChoiceSchema>;
|
|
1345
|
+
export type Vote = z.infer<typeof VoteSchema>;
|
|
1346
|
+
export type DecisionPolicy = z.infer<typeof DecisionPolicySchema>;
|
|
1347
|
+
export type DecisionOutcome = z.infer<typeof DecisionOutcomeSchema>;
|
|
1348
|
+
export type Decision = z.infer<typeof DecisionSchema>;
|
|
1349
|
+
export type EvolutionProposal = z.infer<typeof EvolutionProposalSchema>;
|
|
1350
|
+
export type CodeFixProposal = z.infer<typeof CodeFixProposalSchema>;
|
|
1351
|
+
export declare const CodeFixResultSchema: z.ZodObject<{
|
|
1352
|
+
id: z.ZodString;
|
|
1353
|
+
proposalId: z.ZodString;
|
|
1354
|
+
pattern: z.ZodString;
|
|
1355
|
+
confidence: z.ZodNumber;
|
|
1356
|
+
applied: z.ZodBoolean;
|
|
1357
|
+
voteOutcome: z.ZodOptional<z.ZodEnum<{
|
|
1358
|
+
approved: "approved";
|
|
1359
|
+
rejected: "rejected";
|
|
1360
|
+
no_quorum: "no_quorum";
|
|
1361
|
+
}>>;
|
|
1362
|
+
voteTally: z.ZodOptional<z.ZodObject<{
|
|
1363
|
+
approve: z.ZodNumber;
|
|
1364
|
+
reject: z.ZodNumber;
|
|
1365
|
+
abstain: z.ZodNumber;
|
|
1366
|
+
}, z.core.$strip>>;
|
|
1367
|
+
timestamp: z.ZodString;
|
|
1368
|
+
missionId: z.ZodOptional<z.ZodString>;
|
|
1369
|
+
}, z.core.$strip>;
|
|
1370
|
+
export type CodeFixResult = z.infer<typeof CodeFixResultSchema>;
|
|
1371
|
+
/**
|
|
1372
|
+
* A governed, persisted code-edit record.
|
|
1373
|
+
*
|
|
1374
|
+
* Every evaluated edit is recorded — including dry-runs and refusals — so the
|
|
1375
|
+
* history of rejected proposals is versioned, not just the applied ones.
|
|
1376
|
+
*/
|
|
1377
|
+
export declare const CodeEditRecordSchema: z.ZodObject<{
|
|
1378
|
+
id: z.ZodString;
|
|
1379
|
+
file: z.ZodString;
|
|
1380
|
+
beforeHash: z.ZodString;
|
|
1381
|
+
afterHash: z.ZodString;
|
|
1382
|
+
bytesBefore: z.ZodNumber;
|
|
1383
|
+
bytesAfter: z.ZodNumber;
|
|
1384
|
+
addedLines: z.ZodNumber;
|
|
1385
|
+
removedLines: z.ZodNumber;
|
|
1386
|
+
occurrences: z.ZodNumber;
|
|
1387
|
+
applied: z.ZodBoolean;
|
|
1388
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1389
|
+
agentId: z.ZodString;
|
|
1390
|
+
dnaPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
+
voteOutcome: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
approved: "approved";
|
|
1393
|
+
rejected: "rejected";
|
|
1394
|
+
no_quorum: "no_quorum";
|
|
1395
|
+
}>>;
|
|
1396
|
+
voteTally: z.ZodOptional<z.ZodObject<{
|
|
1397
|
+
approve: z.ZodNumber;
|
|
1398
|
+
reject: z.ZodNumber;
|
|
1399
|
+
abstain: z.ZodNumber;
|
|
1400
|
+
}, z.core.$strip>>;
|
|
1401
|
+
missionId: z.ZodOptional<z.ZodString>;
|
|
1402
|
+
timestamp: z.ZodString;
|
|
1403
|
+
}, z.core.$strip>;
|
|
1404
|
+
export type CodeEditRecord = z.infer<typeof CodeEditRecordSchema>;
|
|
1405
|
+
export declare const RankedRecommendationSchema: z.ZodObject<{
|
|
1406
|
+
id: z.ZodString;
|
|
1407
|
+
text: z.ZodString;
|
|
1408
|
+
score: z.ZodNumber;
|
|
1409
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1410
|
+
timestamp: z.ZodString;
|
|
1411
|
+
}, z.core.$strip>;
|
|
1412
|
+
export type RankedRecommendation = z.infer<typeof RankedRecommendationSchema>;
|
|
1413
|
+
export declare const DriftInfoSchema: z.ZodObject<{
|
|
1414
|
+
id: z.ZodString;
|
|
1415
|
+
newerName: z.ZodString;
|
|
1416
|
+
olderName: z.ZodString;
|
|
1417
|
+
rulesAdded: z.ZodNumber;
|
|
1418
|
+
rulesRemoved: z.ZodNumber;
|
|
1419
|
+
rulesChanged: z.ZodArray<z.ZodString>;
|
|
1420
|
+
gatesAdded: z.ZodNumber;
|
|
1421
|
+
gatesRemoved: z.ZodNumber;
|
|
1422
|
+
gatesChanged: z.ZodArray<z.ZodString>;
|
|
1423
|
+
totalChanges: z.ZodNumber;
|
|
1424
|
+
significant: z.ZodBoolean;
|
|
1425
|
+
summary: z.ZodString;
|
|
1426
|
+
timestamp: z.ZodString;
|
|
1427
|
+
}, z.core.$strip>;
|
|
1428
|
+
export type DriftInfo = z.infer<typeof DriftInfoSchema>;
|
|
1429
|
+
export type ConsensusPolicy = z.infer<typeof ConsensusPolicySchema>;
|
|
1430
|
+
export type ConsensusVote = z.infer<typeof ConsensusVoteSchema>;
|
|
1431
|
+
export type ConsensusTally = z.infer<typeof ConsensusTallySchema>;
|
|
1432
|
+
export type ConsensusOutcome = z.infer<typeof ConsensusOutcomeSchema>;
|
|
1433
|
+
export type ConsensusRound = z.infer<typeof ConsensusRoundSchema>;
|
|
1434
|
+
export type PredictionType = z.infer<typeof PredictionTypeSchema>;
|
|
1435
|
+
export type Prediction = z.infer<typeof PredictionSchema>;
|
|
1436
|
+
export type LearningType = z.infer<typeof LearningTypeSchema>;
|
|
1437
|
+
export type LearningImpact = z.infer<typeof LearningImpactSchema>;
|
|
1438
|
+
export type LearningEvent = z.infer<typeof LearningEventSchema>;
|
|
1439
|
+
export type LearningStage = z.infer<typeof LearningStageSchema>;
|
|
1440
|
+
export type LearningTransition = z.infer<typeof LearningTransitionSchema>;
|
|
1441
|
+
export type LearningRecord = z.infer<typeof LearningRecordSchema>;
|
|
1442
|
+
export type ProtocolStep = z.infer<typeof ProtocolStepSchema>;
|
|
1443
|
+
export type AgentState = z.infer<typeof AgentStateSchema>;
|
|
1444
|
+
export type McpTool = z.infer<typeof McpToolSchema>;
|
|
1445
|
+
export type McpResource = z.infer<typeof McpResourceSchema>;
|
|
1446
|
+
export declare const AntiPatternTypeSchema: z.ZodEnum<{
|
|
1447
|
+
"typescript-error": "typescript-error";
|
|
1448
|
+
"lint-violation": "lint-violation";
|
|
1449
|
+
"security-vulnerability": "security-vulnerability";
|
|
1450
|
+
"performance-issue": "performance-issue";
|
|
1451
|
+
"architecture-violation": "architecture-violation";
|
|
1452
|
+
"code-smell": "code-smell";
|
|
1453
|
+
"test-gap": "test-gap";
|
|
1454
|
+
"documentation-gap": "documentation-gap";
|
|
1455
|
+
"governance-bypass": "governance-bypass";
|
|
1456
|
+
"pattern-debt": "pattern-debt";
|
|
1457
|
+
}>;
|
|
1458
|
+
export declare const SeveritySchema: z.ZodEnum<{
|
|
1459
|
+
critical: "critical";
|
|
1460
|
+
high: "high";
|
|
1461
|
+
medium: "medium";
|
|
1462
|
+
low: "low";
|
|
1463
|
+
info: "info";
|
|
1464
|
+
}>;
|
|
1465
|
+
export declare const AntiPatternSchema: z.ZodObject<{
|
|
1466
|
+
id: z.ZodString;
|
|
1467
|
+
type: z.ZodEnum<{
|
|
1468
|
+
"typescript-error": "typescript-error";
|
|
1469
|
+
"lint-violation": "lint-violation";
|
|
1470
|
+
"security-vulnerability": "security-vulnerability";
|
|
1471
|
+
"performance-issue": "performance-issue";
|
|
1472
|
+
"architecture-violation": "architecture-violation";
|
|
1473
|
+
"code-smell": "code-smell";
|
|
1474
|
+
"test-gap": "test-gap";
|
|
1475
|
+
"documentation-gap": "documentation-gap";
|
|
1476
|
+
"governance-bypass": "governance-bypass";
|
|
1477
|
+
"pattern-debt": "pattern-debt";
|
|
1478
|
+
}>;
|
|
1479
|
+
severity: z.ZodEnum<{
|
|
1480
|
+
critical: "critical";
|
|
1481
|
+
high: "high";
|
|
1482
|
+
medium: "medium";
|
|
1483
|
+
low: "low";
|
|
1484
|
+
info: "info";
|
|
1485
|
+
}>;
|
|
1486
|
+
pattern: z.ZodString;
|
|
1487
|
+
description: z.ZodString;
|
|
1488
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
file: z.ZodOptional<z.ZodString>;
|
|
1490
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
1491
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1492
|
+
recommendation: z.ZodString;
|
|
1493
|
+
detectedAt: z.ZodString;
|
|
1494
|
+
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
1495
|
+
resolvedAt: z.ZodOptional<z.ZodString>;
|
|
1496
|
+
resolvedBy: z.ZodOptional<z.ZodString>;
|
|
1497
|
+
}, z.core.$strip>;
|
|
1498
|
+
export declare const ConversationTurnSchema: z.ZodObject<{
|
|
1499
|
+
id: z.ZodString;
|
|
1500
|
+
agentId: z.ZodString;
|
|
1501
|
+
role: z.ZodEnum<{
|
|
1502
|
+
agent: "agent";
|
|
1503
|
+
system: "system";
|
|
1504
|
+
user: "user";
|
|
1505
|
+
expert: "expert";
|
|
1506
|
+
}>;
|
|
1507
|
+
content: z.ZodString;
|
|
1508
|
+
timestamp: z.ZodString;
|
|
1509
|
+
}, z.core.$strip>;
|
|
1510
|
+
export declare const PragmaticConversationSchema: z.ZodObject<{
|
|
1511
|
+
id: z.ZodString;
|
|
1512
|
+
title: z.ZodString;
|
|
1513
|
+
problem: z.ZodString;
|
|
1514
|
+
status: z.ZodEnum<{
|
|
1515
|
+
cancelled: "cancelled";
|
|
1516
|
+
resolved: "resolved";
|
|
1517
|
+
open: "open";
|
|
1518
|
+
"in-progress": "in-progress";
|
|
1519
|
+
closed: "closed";
|
|
1520
|
+
}>;
|
|
1521
|
+
participants: z.ZodArray<z.ZodString>;
|
|
1522
|
+
turns: z.ZodArray<z.ZodObject<{
|
|
1523
|
+
id: z.ZodString;
|
|
1524
|
+
agentId: z.ZodString;
|
|
1525
|
+
role: z.ZodEnum<{
|
|
1526
|
+
agent: "agent";
|
|
1527
|
+
system: "system";
|
|
1528
|
+
user: "user";
|
|
1529
|
+
expert: "expert";
|
|
1530
|
+
}>;
|
|
1531
|
+
content: z.ZodString;
|
|
1532
|
+
timestamp: z.ZodString;
|
|
1533
|
+
}, z.core.$strip>>;
|
|
1534
|
+
antiPatterns: z.ZodArray<z.ZodString>;
|
|
1535
|
+
solution: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
resolvedBy: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
lessonsLearned: z.ZodArray<z.ZodString>;
|
|
1538
|
+
createdAt: z.ZodString;
|
|
1539
|
+
updatedAt: z.ZodString;
|
|
1540
|
+
}, z.core.$strip>;
|
|
1541
|
+
export declare const PolicyRuleSchema: z.ZodObject<{
|
|
1542
|
+
id: z.ZodString;
|
|
1543
|
+
name: z.ZodString;
|
|
1544
|
+
description: z.ZodString;
|
|
1545
|
+
condition: z.ZodString;
|
|
1546
|
+
action: z.ZodEnum<{
|
|
1547
|
+
block: "block";
|
|
1548
|
+
warn: "warn";
|
|
1549
|
+
require: "require";
|
|
1550
|
+
"auto-fix": "auto-fix";
|
|
1551
|
+
}>;
|
|
1552
|
+
severity: z.ZodEnum<{
|
|
1553
|
+
critical: "critical";
|
|
1554
|
+
high: "high";
|
|
1555
|
+
medium: "medium";
|
|
1556
|
+
low: "low";
|
|
1557
|
+
info: "info";
|
|
1558
|
+
}>;
|
|
1559
|
+
appliesTo: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1560
|
+
agent: "agent";
|
|
1561
|
+
role: "role";
|
|
1562
|
+
persona: "persona";
|
|
1563
|
+
project: "project";
|
|
1564
|
+
}>>>;
|
|
1565
|
+
effectiveFrom: z.ZodString;
|
|
1566
|
+
effectiveUntil: z.ZodOptional<z.ZodString>;
|
|
1567
|
+
}, z.core.$strip>;
|
|
1568
|
+
export declare const RoleSchema: z.ZodObject<{
|
|
1569
|
+
id: z.ZodString;
|
|
1570
|
+
name: z.ZodString;
|
|
1571
|
+
displayName: z.ZodString;
|
|
1572
|
+
responsibilities: z.ZodArray<z.ZodString>;
|
|
1573
|
+
policies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1574
|
+
canAudit: z.ZodDefault<z.ZodBoolean>;
|
|
1575
|
+
canEnforce: z.ZodDefault<z.ZodBoolean>;
|
|
1576
|
+
canTeach: z.ZodDefault<z.ZodBoolean>;
|
|
1577
|
+
}, z.core.$strip>;
|
|
1578
|
+
export type AntiPatternType = z.infer<typeof AntiPatternTypeSchema>;
|
|
1579
|
+
export type Severity = z.infer<typeof SeveritySchema>;
|
|
1580
|
+
export type AntiPattern = z.infer<typeof AntiPatternSchema>;
|
|
1581
|
+
export type ConversationTurn = z.infer<typeof ConversationTurnSchema>;
|
|
1582
|
+
export type PragmaticConversation = z.infer<typeof PragmaticConversationSchema>;
|
|
1583
|
+
export type PolicyRule = z.infer<typeof PolicyRuleSchema>;
|
|
1584
|
+
export type Role = z.infer<typeof RoleSchema>;
|
|
1585
|
+
export * from './knowledge-graph.js';
|
|
1586
|
+
export declare const BehaviorProfileSchema: z.ZodObject<{
|
|
1587
|
+
actionRate: z.ZodNumber;
|
|
1588
|
+
denialRate: z.ZodNumber;
|
|
1589
|
+
escalationRate: z.ZodNumber;
|
|
1590
|
+
toolDiversity: z.ZodNumber;
|
|
1591
|
+
offHoursRatio: z.ZodNumber;
|
|
1592
|
+
}, z.core.$strip>;
|
|
1593
|
+
export declare const AnomalyScoreSchema: z.ZodObject<{
|
|
1594
|
+
id: z.ZodString;
|
|
1595
|
+
agentId: z.ZodString;
|
|
1596
|
+
baseline: z.ZodObject<{
|
|
1597
|
+
actionRate: z.ZodNumber;
|
|
1598
|
+
denialRate: z.ZodNumber;
|
|
1599
|
+
escalationRate: z.ZodNumber;
|
|
1600
|
+
toolDiversity: z.ZodNumber;
|
|
1601
|
+
offHoursRatio: z.ZodNumber;
|
|
1602
|
+
}, z.core.$strip>;
|
|
1603
|
+
current: z.ZodObject<{
|
|
1604
|
+
actionRate: z.ZodNumber;
|
|
1605
|
+
denialRate: z.ZodNumber;
|
|
1606
|
+
escalationRate: z.ZodNumber;
|
|
1607
|
+
toolDiversity: z.ZodNumber;
|
|
1608
|
+
offHoursRatio: z.ZodNumber;
|
|
1609
|
+
}, z.core.$strip>;
|
|
1610
|
+
deviation: z.ZodNumber;
|
|
1611
|
+
explanation: z.ZodString;
|
|
1612
|
+
timestamp: z.ZodString;
|
|
1613
|
+
}, z.core.$strip>;
|
|
1614
|
+
export declare const ExperiencePhaseSchema: z.ZodEnum<{
|
|
1615
|
+
execute: "execute";
|
|
1616
|
+
observe: "observe";
|
|
1617
|
+
reflect: "reflect";
|
|
1618
|
+
abstract: "abstract";
|
|
1619
|
+
apply: "apply";
|
|
1620
|
+
}>;
|
|
1621
|
+
export declare const ExperienceRecordSchema: z.ZodObject<{
|
|
1622
|
+
id: z.ZodString;
|
|
1623
|
+
agentId: z.ZodString;
|
|
1624
|
+
action: z.ZodString;
|
|
1625
|
+
outcome: z.ZodEnum<{
|
|
1626
|
+
success: "success";
|
|
1627
|
+
failure: "failure";
|
|
1628
|
+
partial: "partial";
|
|
1629
|
+
}>;
|
|
1630
|
+
observation: z.ZodString;
|
|
1631
|
+
reflection: z.ZodString;
|
|
1632
|
+
abstraction: z.ZodString;
|
|
1633
|
+
application: z.ZodString;
|
|
1634
|
+
phase: z.ZodEnum<{
|
|
1635
|
+
execute: "execute";
|
|
1636
|
+
observe: "observe";
|
|
1637
|
+
reflect: "reflect";
|
|
1638
|
+
abstract: "abstract";
|
|
1639
|
+
apply: "apply";
|
|
1640
|
+
}>;
|
|
1641
|
+
confidence: z.ZodNumber;
|
|
1642
|
+
createdAt: z.ZodString;
|
|
1643
|
+
}, z.core.$strip>;
|
|
1644
|
+
export declare const ComplianceStatusSchema: z.ZodEnum<{
|
|
1645
|
+
compliant: "compliant";
|
|
1646
|
+
"at-risk": "at-risk";
|
|
1647
|
+
violation: "violation";
|
|
1648
|
+
}>;
|
|
1649
|
+
export declare const ComplianceMapSchema: z.ZodObject<{
|
|
1650
|
+
id: z.ZodString;
|
|
1651
|
+
regulation: z.ZodString;
|
|
1652
|
+
rules: z.ZodArray<z.ZodString>;
|
|
1653
|
+
evidence: z.ZodArray<z.ZodString>;
|
|
1654
|
+
lastAudit: z.ZodString;
|
|
1655
|
+
status: z.ZodEnum<{
|
|
1656
|
+
compliant: "compliant";
|
|
1657
|
+
"at-risk": "at-risk";
|
|
1658
|
+
violation: "violation";
|
|
1659
|
+
}>;
|
|
1660
|
+
score: z.ZodNumber;
|
|
1661
|
+
}, z.core.$strip>;
|
|
1662
|
+
export type BehaviorProfile = z.infer<typeof BehaviorProfileSchema>;
|
|
1663
|
+
export type AnomalyScore = z.infer<typeof AnomalyScoreSchema>;
|
|
1664
|
+
export type ExperiencePhase = z.infer<typeof ExperiencePhaseSchema>;
|
|
1665
|
+
export type ExperienceRecord = z.infer<typeof ExperienceRecordSchema>;
|
|
1666
|
+
export type ComplianceStatus = z.infer<typeof ComplianceStatusSchema>;
|
|
1667
|
+
export type ComplianceMap = z.infer<typeof ComplianceMapSchema>;
|
|
1668
|
+
export declare const HybridEvaluationSchema: z.ZodObject<{
|
|
1669
|
+
id: z.ZodString;
|
|
1670
|
+
symbolicVerdict: z.ZodEnum<{
|
|
1671
|
+
escalate: "escalate";
|
|
1672
|
+
warn: "warn";
|
|
1673
|
+
allow: "allow";
|
|
1674
|
+
deny: "deny";
|
|
1675
|
+
}>;
|
|
1676
|
+
neuralConfidence: z.ZodNumber;
|
|
1677
|
+
hybridVerdict: z.ZodEnum<{
|
|
1678
|
+
escalate: "escalate";
|
|
1679
|
+
warn: "warn";
|
|
1680
|
+
allow: "allow";
|
|
1681
|
+
deny: "deny";
|
|
1682
|
+
}>;
|
|
1683
|
+
diverged: z.ZodBoolean;
|
|
1684
|
+
explanation: z.ZodString;
|
|
1685
|
+
timestamp: z.ZodString;
|
|
1686
|
+
}, z.core.$strip>;
|
|
1687
|
+
export declare const AgentIdentitySchema: z.ZodObject<{
|
|
1688
|
+
agentId: z.ZodString;
|
|
1689
|
+
did: z.ZodString;
|
|
1690
|
+
publicKeyHash: z.ZodString;
|
|
1691
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
1692
|
+
issuedAt: z.ZodString;
|
|
1693
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1694
|
+
}, z.core.$strip>;
|
|
1695
|
+
export declare const IdentityVerificationResultSchema: z.ZodObject<{
|
|
1696
|
+
agentId: z.ZodString;
|
|
1697
|
+
did: z.ZodString;
|
|
1698
|
+
valid: z.ZodBoolean;
|
|
1699
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
verifiedAt: z.ZodString;
|
|
1701
|
+
}, z.core.$strip>;
|
|
1702
|
+
export declare const RiskLevelSchema: z.ZodEnum<{
|
|
1703
|
+
critical: "critical";
|
|
1704
|
+
high: "high";
|
|
1705
|
+
medium: "medium";
|
|
1706
|
+
low: "low";
|
|
1707
|
+
}>;
|
|
1708
|
+
export declare const RiskAssessmentSchema: z.ZodObject<{
|
|
1709
|
+
id: z.ZodString;
|
|
1710
|
+
agentId: z.ZodString;
|
|
1711
|
+
level: z.ZodEnum<{
|
|
1712
|
+
critical: "critical";
|
|
1713
|
+
high: "high";
|
|
1714
|
+
medium: "medium";
|
|
1715
|
+
low: "low";
|
|
1716
|
+
}>;
|
|
1717
|
+
score: z.ZodNumber;
|
|
1718
|
+
factors: z.ZodArray<z.ZodString>;
|
|
1719
|
+
adjustedThresholds: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1720
|
+
timestamp: z.ZodString;
|
|
1721
|
+
}, z.core.$strip>;
|
|
1722
|
+
export declare const DynamicPolicySchema: z.ZodObject<{
|
|
1723
|
+
id: z.ZodString;
|
|
1724
|
+
agentId: z.ZodString;
|
|
1725
|
+
baseRuleIds: z.ZodArray<z.ZodString>;
|
|
1726
|
+
riskLevel: z.ZodEnum<{
|
|
1727
|
+
critical: "critical";
|
|
1728
|
+
high: "high";
|
|
1729
|
+
medium: "medium";
|
|
1730
|
+
low: "low";
|
|
1731
|
+
}>;
|
|
1732
|
+
enforcementMultiplier: z.ZodNumber;
|
|
1733
|
+
elevatedScrutiny: z.ZodBoolean;
|
|
1734
|
+
activeSince: z.ZodString;
|
|
1735
|
+
}, z.core.$strip>;
|
|
1736
|
+
export declare const CounterfactualResultSchema: z.ZodObject<{
|
|
1737
|
+
id: z.ZodString;
|
|
1738
|
+
originalDecisionId: z.ZodString;
|
|
1739
|
+
modification: z.ZodString;
|
|
1740
|
+
hypotheticalVerdict: z.ZodEnum<{
|
|
1741
|
+
transform: "transform";
|
|
1742
|
+
escalate: "escalate";
|
|
1743
|
+
warn: "warn";
|
|
1744
|
+
allow: "allow";
|
|
1745
|
+
deny: "deny";
|
|
1746
|
+
}>;
|
|
1747
|
+
actualVerdict: z.ZodEnum<{
|
|
1748
|
+
transform: "transform";
|
|
1749
|
+
escalate: "escalate";
|
|
1750
|
+
warn: "warn";
|
|
1751
|
+
allow: "allow";
|
|
1752
|
+
deny: "deny";
|
|
1753
|
+
}>;
|
|
1754
|
+
diverged: z.ZodBoolean;
|
|
1755
|
+
explanation: z.ZodString;
|
|
1756
|
+
timestamp: z.ZodString;
|
|
1757
|
+
}, z.core.$strip>;
|
|
1758
|
+
export declare const ExplainableReportSchema: z.ZodObject<{
|
|
1759
|
+
id: z.ZodString;
|
|
1760
|
+
title: z.ZodString;
|
|
1761
|
+
agentId: z.ZodString;
|
|
1762
|
+
from: z.ZodString;
|
|
1763
|
+
to: z.ZodString;
|
|
1764
|
+
decisionsAnalyzed: z.ZodNumber;
|
|
1765
|
+
summary: z.ZodString;
|
|
1766
|
+
findings: z.ZodArray<z.ZodString>;
|
|
1767
|
+
recommendations: z.ZodArray<z.ZodString>;
|
|
1768
|
+
severity: z.ZodEnum<{
|
|
1769
|
+
critical: "critical";
|
|
1770
|
+
healthy: "healthy";
|
|
1771
|
+
attention: "attention";
|
|
1772
|
+
}>;
|
|
1773
|
+
timestamp: z.ZodString;
|
|
1774
|
+
}, z.core.$strip>;
|
|
1775
|
+
export declare const TemporalPatternSchema: z.ZodObject<{
|
|
1776
|
+
id: z.ZodString;
|
|
1777
|
+
description: z.ZodString;
|
|
1778
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
1779
|
+
cronSchedule: z.ZodString;
|
|
1780
|
+
activeDays: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1781
|
+
occurrences: z.ZodNumber;
|
|
1782
|
+
avgDeviation: z.ZodNumber;
|
|
1783
|
+
isRisk: z.ZodBoolean;
|
|
1784
|
+
detectedAt: z.ZodString;
|
|
1785
|
+
lastSeen: z.ZodString;
|
|
1786
|
+
}, z.core.$strip>;
|
|
1787
|
+
export declare const TemporalPatternSuggestionSchema: z.ZodObject<{
|
|
1788
|
+
patternId: z.ZodString;
|
|
1789
|
+
suggestedCron: z.ZodString;
|
|
1790
|
+
confidence: z.ZodNumber;
|
|
1791
|
+
reason: z.ZodString;
|
|
1792
|
+
}, z.core.$strip>;
|
|
1793
|
+
export declare const CrossDomainTransferSchema: z.ZodObject<{
|
|
1794
|
+
id: z.ZodString;
|
|
1795
|
+
sourceDna: z.ZodString;
|
|
1796
|
+
targetDna: z.ZodString;
|
|
1797
|
+
ruleId: z.ZodString;
|
|
1798
|
+
similarity: z.ZodNumber;
|
|
1799
|
+
justification: z.ZodString;
|
|
1800
|
+
createdAt: z.ZodString;
|
|
1801
|
+
}, z.core.$strip>;
|
|
1802
|
+
export declare const SemanticFactSchema: z.ZodObject<{
|
|
1803
|
+
id: z.ZodString;
|
|
1804
|
+
fact: z.ZodString;
|
|
1805
|
+
sourceEpisodes: z.ZodArray<z.ZodString>;
|
|
1806
|
+
confidence: z.ZodNumber;
|
|
1807
|
+
createdAt: z.ZodString;
|
|
1808
|
+
lastValidated: z.ZodOptional<z.ZodString>;
|
|
1809
|
+
}, z.core.$strip>;
|
|
1810
|
+
export declare const ConsolidatedKnowledgeSchema: z.ZodObject<{
|
|
1811
|
+
semanticFacts: z.ZodArray<z.ZodObject<{
|
|
1812
|
+
id: z.ZodString;
|
|
1813
|
+
fact: z.ZodString;
|
|
1814
|
+
sourceEpisodes: z.ZodArray<z.ZodString>;
|
|
1815
|
+
confidence: z.ZodNumber;
|
|
1816
|
+
createdAt: z.ZodString;
|
|
1817
|
+
lastValidated: z.ZodOptional<z.ZodString>;
|
|
1818
|
+
}, z.core.$strip>>;
|
|
1819
|
+
summary: z.ZodString;
|
|
1820
|
+
episodesProcessed: z.ZodNumber;
|
|
1821
|
+
factsPruned: z.ZodNumber;
|
|
1822
|
+
timestamp: z.ZodString;
|
|
1823
|
+
}, z.core.$strip>;
|
|
1824
|
+
export declare const FailurePatternSchema: z.ZodObject<{
|
|
1825
|
+
id: z.ZodString;
|
|
1826
|
+
operationType: z.ZodString;
|
|
1827
|
+
errorPattern: z.ZodString;
|
|
1828
|
+
occurrences: z.ZodNumber;
|
|
1829
|
+
failureRate: z.ZodNumber;
|
|
1830
|
+
recommendedThreshold: z.ZodNumber;
|
|
1831
|
+
}, z.core.$strip>;
|
|
1832
|
+
export declare const BreakerAdjustmentSchema: z.ZodObject<{
|
|
1833
|
+
id: z.ZodString;
|
|
1834
|
+
failurePatternId: z.ZodString;
|
|
1835
|
+
breakerName: z.ZodString;
|
|
1836
|
+
previousThreshold: z.ZodNumber;
|
|
1837
|
+
newThreshold: z.ZodNumber;
|
|
1838
|
+
reason: z.ZodString;
|
|
1839
|
+
timestamp: z.ZodString;
|
|
1840
|
+
}, z.core.$strip>;
|
|
1841
|
+
export declare const ValueDefinitionSchema: z.ZodObject<{
|
|
1842
|
+
id: z.ZodString;
|
|
1843
|
+
name: z.ZodString;
|
|
1844
|
+
description: z.ZodString;
|
|
1845
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
1846
|
+
}, z.core.$strip>;
|
|
1847
|
+
export declare const AlignmentScoreSchema: z.ZodObject<{
|
|
1848
|
+
id: z.ZodString;
|
|
1849
|
+
agentId: z.ZodString;
|
|
1850
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1851
|
+
id: z.ZodString;
|
|
1852
|
+
name: z.ZodString;
|
|
1853
|
+
description: z.ZodString;
|
|
1854
|
+
keywords: z.ZodArray<z.ZodString>;
|
|
1855
|
+
}, z.core.$strip>>;
|
|
1856
|
+
scores: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1857
|
+
overallScore: z.ZodNumber;
|
|
1858
|
+
violations: z.ZodArray<z.ZodString>;
|
|
1859
|
+
timestamp: z.ZodString;
|
|
1860
|
+
}, z.core.$strip>;
|
|
1861
|
+
export declare const CollectiveVoteSchema: z.ZodObject<{
|
|
1862
|
+
id: z.ZodString;
|
|
1863
|
+
proposal: z.ZodString;
|
|
1864
|
+
votes: z.ZodArray<z.ZodObject<{
|
|
1865
|
+
agentId: z.ZodString;
|
|
1866
|
+
choice: z.ZodEnum<{
|
|
1867
|
+
approve: "approve";
|
|
1868
|
+
reject: "reject";
|
|
1869
|
+
abstain: "abstain";
|
|
1870
|
+
}>;
|
|
1871
|
+
weight: z.ZodNumber;
|
|
1872
|
+
confidence: z.ZodNumber;
|
|
1873
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
1874
|
+
}, z.core.$strip>>;
|
|
1875
|
+
result: z.ZodEnum<{
|
|
1876
|
+
approved: "approved";
|
|
1877
|
+
rejected: "rejected";
|
|
1878
|
+
tie: "tie";
|
|
1879
|
+
}>;
|
|
1880
|
+
collectiveConfidence: z.ZodNumber;
|
|
1881
|
+
}, z.core.$strip>;
|
|
1882
|
+
export declare const ExternalEventSchema: z.ZodObject<{
|
|
1883
|
+
id: z.ZodString;
|
|
1884
|
+
source: z.ZodString;
|
|
1885
|
+
type: z.ZodString;
|
|
1886
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1887
|
+
receivedAt: z.ZodString;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
export declare const ExternalPolicySchema: z.ZodObject<{
|
|
1890
|
+
id: z.ZodString;
|
|
1891
|
+
source: z.ZodString;
|
|
1892
|
+
ruleId: z.ZodString;
|
|
1893
|
+
action: z.ZodEnum<{
|
|
1894
|
+
transform: "transform";
|
|
1895
|
+
block: "block";
|
|
1896
|
+
escalate: "escalate";
|
|
1897
|
+
warn: "warn";
|
|
1898
|
+
log: "log";
|
|
1899
|
+
}>;
|
|
1900
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
1901
|
+
type: z.ZodString;
|
|
1902
|
+
value: z.ZodUnknown;
|
|
1903
|
+
}, z.core.$strip>>;
|
|
1904
|
+
importedAt: z.ZodString;
|
|
1905
|
+
}, z.core.$strip>;
|
|
1906
|
+
export declare const GovernanceChangeRequestSchema: z.ZodObject<{
|
|
1907
|
+
id: z.ZodString;
|
|
1908
|
+
dnaName: z.ZodString;
|
|
1909
|
+
ruleId: z.ZodString;
|
|
1910
|
+
changeType: z.ZodEnum<{
|
|
1911
|
+
add: "add";
|
|
1912
|
+
modify: "modify";
|
|
1913
|
+
delete: "delete";
|
|
1914
|
+
}>;
|
|
1915
|
+
proposedRule: z.ZodOptional<z.ZodObject<{
|
|
1916
|
+
id: z.ZodString;
|
|
1917
|
+
level: z.ZodEnum<{
|
|
1918
|
+
critical: "critical";
|
|
1919
|
+
high: "high";
|
|
1920
|
+
medium: "medium";
|
|
1921
|
+
low: "low";
|
|
1922
|
+
}>;
|
|
1923
|
+
action: z.ZodEnum<{
|
|
1924
|
+
transform: "transform";
|
|
1925
|
+
block: "block";
|
|
1926
|
+
escalate: "escalate";
|
|
1927
|
+
warn: "warn";
|
|
1928
|
+
log: "log";
|
|
1929
|
+
}>;
|
|
1930
|
+
conditions: z.ZodArray<z.ZodObject<{
|
|
1931
|
+
type: z.ZodString;
|
|
1932
|
+
value: z.ZodUnknown;
|
|
1933
|
+
}, z.core.$strip>>;
|
|
1934
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
}, z.core.$strip>>;
|
|
1936
|
+
rationale: z.ZodString;
|
|
1937
|
+
ciStatus: z.ZodEnum<{
|
|
1938
|
+
pending: "pending";
|
|
1939
|
+
approved: "approved";
|
|
1940
|
+
passing: "passing";
|
|
1941
|
+
failing: "failing";
|
|
1942
|
+
}>;
|
|
1943
|
+
createdAt: z.ZodString;
|
|
1944
|
+
}, z.core.$strip>;
|
|
1945
|
+
export type TemporalPattern = z.infer<typeof TemporalPatternSchema>;
|
|
1946
|
+
export type TemporalPatternSuggestion = z.infer<typeof TemporalPatternSuggestionSchema>;
|
|
1947
|
+
export type CrossDomainTransfer = z.infer<typeof CrossDomainTransferSchema>;
|
|
1948
|
+
export type SemanticFact = z.infer<typeof SemanticFactSchema>;
|
|
1949
|
+
export type ConsolidatedKnowledge = z.infer<typeof ConsolidatedKnowledgeSchema>;
|
|
1950
|
+
export type FailurePattern = z.infer<typeof FailurePatternSchema>;
|
|
1951
|
+
export type BreakerAdjustment = z.infer<typeof BreakerAdjustmentSchema>;
|
|
1952
|
+
export type ValueDefinition = z.infer<typeof ValueDefinitionSchema>;
|
|
1953
|
+
export type AlignmentScore = z.infer<typeof AlignmentScoreSchema>;
|
|
1954
|
+
export type CollectiveVote = z.infer<typeof CollectiveVoteSchema>;
|
|
1955
|
+
export type ExternalEvent = z.infer<typeof ExternalEventSchema>;
|
|
1956
|
+
export type ExternalPolicy = z.infer<typeof ExternalPolicySchema>;
|
|
1957
|
+
export type GovernanceChangeRequest = z.infer<typeof GovernanceChangeRequestSchema>;
|
|
1958
|
+
//# sourceMappingURL=index.d.ts.map
|