@skill-harness/adapters 0.24.2 → 0.24.3
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/closed-schema.js +24 -4
- package/dist/pi-daddy-record-v1-contract.d.ts +968 -0
- package/dist/pi-daddy-record-v1-contract.js +1343 -0
- package/dist/pi-daddy-record-v1.d.ts +8 -0
- package/dist/pi-daddy-record-v1.js +130 -0
- package/dist/trajectory.d.ts +1 -0
- package/dist/trajectory.js +7 -3
- package/package.json +2 -2
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
export declare const PI_DADDY_RECORD_V1_COMMIT = "38418793efb785bc582c4a233a18c40364ccd1be";
|
|
2
|
+
export declare const PI_DADDY_RECORD_V1_VERSION = "0.44.3";
|
|
3
|
+
export declare const PI_DADDY_RECORD_V1_SCHEMA: {
|
|
4
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
5
|
+
readonly $id: "https://github.com/mojomanyana/pi-daddy/contracts/ledger-record/v1/record.schema.json";
|
|
6
|
+
readonly title: "pi-daddy ledger record envelope v1";
|
|
7
|
+
readonly type: "object";
|
|
8
|
+
readonly additionalProperties: false;
|
|
9
|
+
readonly required: readonly ["v", "seq", "prev", "at", "kind", "id", "body", "digest"];
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly v: {
|
|
12
|
+
readonly const: 1;
|
|
13
|
+
};
|
|
14
|
+
readonly seq: {
|
|
15
|
+
readonly type: "integer";
|
|
16
|
+
readonly minimum: 1;
|
|
17
|
+
};
|
|
18
|
+
readonly prev: {
|
|
19
|
+
readonly anyOf: readonly [{
|
|
20
|
+
readonly type: "null";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
24
|
+
}];
|
|
25
|
+
readonly description: "SHA-256 of the previous line's bytes; null for the first record";
|
|
26
|
+
};
|
|
27
|
+
readonly at: {
|
|
28
|
+
readonly type: "string";
|
|
29
|
+
readonly format: "date-time";
|
|
30
|
+
readonly description: "the writer's clock, not the body's timestamp";
|
|
31
|
+
};
|
|
32
|
+
readonly kind: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly enum: readonly ["binding", "capability", "lifecycle", "approval", "lease", "check", "fact", "work", "control", "experiment", "activity", "advice"];
|
|
35
|
+
};
|
|
36
|
+
readonly id: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
readonly minLength: 1;
|
|
39
|
+
readonly maxLength: 128;
|
|
40
|
+
};
|
|
41
|
+
readonly body: {
|
|
42
|
+
readonly description: "the record payload; a governance event validates against governance-event.schema.json";
|
|
43
|
+
};
|
|
44
|
+
readonly imported: {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly additionalProperties: false;
|
|
47
|
+
readonly required: readonly ["path", "line"];
|
|
48
|
+
readonly properties: {
|
|
49
|
+
readonly path: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
};
|
|
52
|
+
readonly line: {
|
|
53
|
+
readonly type: "integer";
|
|
54
|
+
readonly minimum: 1;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly description: "present on records copied from a pre-format ledger; the source is left untouched";
|
|
58
|
+
};
|
|
59
|
+
readonly digest: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly pattern: "^[0-9a-f]{64}$";
|
|
62
|
+
readonly description: "SHA-256 of the canonical JSON of the record without this field";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const PI_DADDY_RECORD_V1_GOVERNANCE_SCHEMA: {
|
|
67
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
68
|
+
readonly $id: "https://github.com/mojomanyana/pi-daddy/contracts/ledger-record/v1/governance-event.schema.json";
|
|
69
|
+
readonly title: "pi-daddy ledgerVersion 3 event";
|
|
70
|
+
readonly description: "One JSON object per JSONL line. Version 3 adds unique execution identity and explicit parent execution identity; legacy and v2 lines are intentionally outside this schema.";
|
|
71
|
+
readonly oneOf: readonly [{
|
|
72
|
+
readonly $ref: "#/$defs/capabilityDecision";
|
|
73
|
+
}, {
|
|
74
|
+
readonly $ref: "#/$defs/workspaceLease";
|
|
75
|
+
}, {
|
|
76
|
+
readonly $ref: "#/$defs/childLifecycle";
|
|
77
|
+
}, {
|
|
78
|
+
readonly $ref: "#/$defs/costGate";
|
|
79
|
+
}, {
|
|
80
|
+
readonly $ref: "#/$defs/sessionConfig";
|
|
81
|
+
}, {
|
|
82
|
+
readonly $ref: "#/$defs/episodeOutcome";
|
|
83
|
+
}];
|
|
84
|
+
readonly $defs: {
|
|
85
|
+
readonly timestamp: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly format: "date-time";
|
|
88
|
+
readonly pattern: ":[0-5][0-9](?:\\.[0-9]+)?(?:[Zz]|[+-][0-9]{2}:[0-9]{2})$";
|
|
89
|
+
};
|
|
90
|
+
readonly episodeId: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly pattern: "^episode:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
|
|
93
|
+
};
|
|
94
|
+
readonly correlation: {
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly description: "Non-authoritative controller metadata under the pinned 1.0 contract. String and aggregate byte limits are additionally enforced by the runtime and cannot be represented exactly in JSON Schema.";
|
|
97
|
+
readonly properties: {
|
|
98
|
+
readonly schema_version: {
|
|
99
|
+
readonly const: "1.0";
|
|
100
|
+
};
|
|
101
|
+
readonly run_id: {
|
|
102
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
103
|
+
};
|
|
104
|
+
readonly task_id: {
|
|
105
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
106
|
+
};
|
|
107
|
+
readonly workspace_id: {
|
|
108
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
109
|
+
};
|
|
110
|
+
readonly context_id: {
|
|
111
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
112
|
+
};
|
|
113
|
+
readonly phase: {
|
|
114
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
115
|
+
};
|
|
116
|
+
readonly assurance: {
|
|
117
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
118
|
+
};
|
|
119
|
+
readonly assurance_effective: {
|
|
120
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
121
|
+
};
|
|
122
|
+
readonly policy_label: {
|
|
123
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
124
|
+
};
|
|
125
|
+
readonly assurance_source: {
|
|
126
|
+
readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
|
|
127
|
+
};
|
|
128
|
+
readonly assurance_scope: {
|
|
129
|
+
readonly oneOf: readonly [{
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly properties: {
|
|
132
|
+
readonly type: {
|
|
133
|
+
readonly const: "entire-run";
|
|
134
|
+
};
|
|
135
|
+
readonly selectors: {
|
|
136
|
+
readonly type: "array";
|
|
137
|
+
readonly maxItems: 0;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly required: readonly ["type", "selectors"];
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "object";
|
|
144
|
+
readonly properties: {
|
|
145
|
+
readonly type: {
|
|
146
|
+
readonly const: "selectors";
|
|
147
|
+
};
|
|
148
|
+
readonly selectors: {
|
|
149
|
+
readonly type: "array";
|
|
150
|
+
readonly minItems: 1;
|
|
151
|
+
readonly items: {
|
|
152
|
+
readonly type: "string";
|
|
153
|
+
readonly minLength: 1;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly required: readonly ["type", "selectors"];
|
|
158
|
+
readonly additionalProperties: false;
|
|
159
|
+
}];
|
|
160
|
+
};
|
|
161
|
+
readonly activated_at: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly maxLength: 512;
|
|
164
|
+
};
|
|
165
|
+
readonly plan_digest: {
|
|
166
|
+
readonly type: "string";
|
|
167
|
+
readonly maxLength: 512;
|
|
168
|
+
};
|
|
169
|
+
readonly definition_digest: {
|
|
170
|
+
readonly type: "string";
|
|
171
|
+
readonly maxLength: 512;
|
|
172
|
+
};
|
|
173
|
+
readonly task_digest: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly maxLength: 512;
|
|
176
|
+
};
|
|
177
|
+
readonly base_sha: {
|
|
178
|
+
readonly type: "string";
|
|
179
|
+
readonly maxLength: 512;
|
|
180
|
+
};
|
|
181
|
+
readonly head_sha: {
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly maxLength: 512;
|
|
184
|
+
};
|
|
185
|
+
readonly tree_sha: {
|
|
186
|
+
readonly type: "string";
|
|
187
|
+
readonly maxLength: 512;
|
|
188
|
+
};
|
|
189
|
+
readonly event_seq: {
|
|
190
|
+
readonly type: "number";
|
|
191
|
+
};
|
|
192
|
+
readonly last_change_seq: {
|
|
193
|
+
readonly type: "number";
|
|
194
|
+
};
|
|
195
|
+
readonly last_authority_seq: {
|
|
196
|
+
readonly type: "number";
|
|
197
|
+
};
|
|
198
|
+
readonly check_receipt_id: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
readonly maxLength: 512;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly additionalProperties: false;
|
|
204
|
+
};
|
|
205
|
+
readonly ledgerDisplayIdentifier: {
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
readonly pattern: "^[A-Za-z0-9@*][A-Za-z0-9@*._:/-]{0,511}$";
|
|
208
|
+
};
|
|
209
|
+
readonly ledgerCorrelationIdentifier: {
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly pattern: "^[A-Za-z0-9@*][A-Za-z0-9@*._:/-]{0,127}$";
|
|
212
|
+
};
|
|
213
|
+
readonly ledgerCapabilityIdentifier: {
|
|
214
|
+
readonly type: "string";
|
|
215
|
+
readonly pattern: "^(?:tool:|ext:|skill:|agent:|workspace:|context:)[A-Za-z0-9@*][A-Za-z0-9@*._/-]{0,255}$";
|
|
216
|
+
};
|
|
217
|
+
readonly refusalCode: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly enum: readonly ["CAPABILITY_ESCALATION", "GRANT_ID_MALFORMED", "DEFINITION_NOT_AUTHORIZED", "UNDECLARED_TOOLS", "UNKNOWN_TOOL", "GATED_UNAPPROVED", "APPROVAL_EXPIRED", "APPROVAL_SCOPE_MISMATCH", "APPROVAL_FLOW_FAILED", "DEPTH_EXCEEDED", "FANOUT_EXCEEDED", "EXECUTOR_UNAVAILABLE", "MODEL_UNRESOLVED", "GRANT_STORE_INVALID", "CHILD_TIMED_OUT", "CHILD_CANCELLED", "CHILD_EXIT_NONZERO", "TASK_MISSING", "UNKNOWN_DEFINITION", "CEILING_PATTERNS_UNRESOLVED", "NARROWING_VIOLATED", "DEFINITION_UNREADABLE", "CORRELATION_TOO_LARGE", "CORRELATION_INVALID", "LEDGER_WRITE_FAILED", "FANOUT_FAILED", "WORKSPACE_NOT_REGISTERED", "WORKSPACE_NOT_AUTHORIZED", "WORKSPACE_WRITE_CONFLICT", "WORKSPACE_LEASE_STALE", "LEDGER_DAMAGED", "CONTEXT_REQUEST_INVALID"];
|
|
220
|
+
};
|
|
221
|
+
readonly refusal: {
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly properties: {
|
|
224
|
+
readonly code: {
|
|
225
|
+
readonly $ref: "#/$defs/refusalCode";
|
|
226
|
+
};
|
|
227
|
+
readonly message: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
};
|
|
230
|
+
readonly details: {
|
|
231
|
+
readonly type: "object";
|
|
232
|
+
readonly additionalProperties: {
|
|
233
|
+
readonly type: readonly ["string", "number", "boolean", "null"];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly required: readonly ["code", "message"];
|
|
238
|
+
readonly additionalProperties: false;
|
|
239
|
+
};
|
|
240
|
+
readonly approvalSource: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly enum: readonly ["prompt", "session", "persisted", "inherited"];
|
|
243
|
+
};
|
|
244
|
+
readonly approvalScope: {
|
|
245
|
+
readonly type: "string";
|
|
246
|
+
readonly enum: readonly ["once", "session", "always"];
|
|
247
|
+
};
|
|
248
|
+
readonly approvalUse: {
|
|
249
|
+
readonly type: "object";
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly max: {
|
|
252
|
+
readonly type: "integer";
|
|
253
|
+
readonly minimum: 0;
|
|
254
|
+
};
|
|
255
|
+
readonly remaining: {
|
|
256
|
+
readonly type: "integer";
|
|
257
|
+
readonly minimum: 0;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly required: readonly ["max", "remaining"];
|
|
261
|
+
readonly additionalProperties: false;
|
|
262
|
+
};
|
|
263
|
+
readonly definitionDigest: {
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
readonly properties: {
|
|
266
|
+
readonly name: {
|
|
267
|
+
readonly type: "string";
|
|
268
|
+
};
|
|
269
|
+
readonly source: {
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
};
|
|
272
|
+
readonly sha256: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
readonly pattern: "^[a-fA-F0-9]{64}$";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly required: readonly ["name", "source", "sha256"];
|
|
278
|
+
readonly additionalProperties: false;
|
|
279
|
+
};
|
|
280
|
+
readonly capabilityDecision: {
|
|
281
|
+
readonly type: "object";
|
|
282
|
+
readonly properties: {
|
|
283
|
+
readonly ledgerVersion: {
|
|
284
|
+
readonly const: 3;
|
|
285
|
+
};
|
|
286
|
+
readonly event: {
|
|
287
|
+
readonly const: "capability_decision";
|
|
288
|
+
};
|
|
289
|
+
readonly ts: {
|
|
290
|
+
readonly $ref: "#/$defs/timestamp";
|
|
291
|
+
};
|
|
292
|
+
readonly episodeId: {
|
|
293
|
+
readonly $ref: "#/$defs/episodeId";
|
|
294
|
+
};
|
|
295
|
+
readonly parentId: {
|
|
296
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
297
|
+
};
|
|
298
|
+
readonly childId: {
|
|
299
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
300
|
+
};
|
|
301
|
+
readonly depth: {
|
|
302
|
+
readonly type: "integer";
|
|
303
|
+
readonly minimum: 0;
|
|
304
|
+
};
|
|
305
|
+
readonly agentType: {
|
|
306
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
307
|
+
};
|
|
308
|
+
readonly requested: {
|
|
309
|
+
readonly type: "array";
|
|
310
|
+
readonly items: {
|
|
311
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly parentGrant: {
|
|
315
|
+
readonly type: "array";
|
|
316
|
+
readonly items: {
|
|
317
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
readonly effective: {
|
|
321
|
+
readonly type: "array";
|
|
322
|
+
readonly items: {
|
|
323
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly denied: {
|
|
327
|
+
readonly type: "array";
|
|
328
|
+
readonly items: {
|
|
329
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly clipped: {
|
|
333
|
+
readonly type: "array";
|
|
334
|
+
readonly items: {
|
|
335
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
readonly gatedBlocked: {
|
|
339
|
+
readonly type: "array";
|
|
340
|
+
readonly items: {
|
|
341
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
readonly blocked: {
|
|
345
|
+
readonly type: "boolean";
|
|
346
|
+
};
|
|
347
|
+
readonly reason: {
|
|
348
|
+
readonly type: "string";
|
|
349
|
+
};
|
|
350
|
+
readonly approved: {
|
|
351
|
+
readonly type: "array";
|
|
352
|
+
readonly items: {
|
|
353
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
readonly approvalSource: {
|
|
357
|
+
readonly $ref: "#/$defs/approvalSource";
|
|
358
|
+
};
|
|
359
|
+
readonly approvalSources: {
|
|
360
|
+
readonly type: "object";
|
|
361
|
+
readonly propertyNames: {
|
|
362
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
363
|
+
};
|
|
364
|
+
readonly additionalProperties: {
|
|
365
|
+
readonly $ref: "#/$defs/approvalSource";
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
readonly approvalScopes: {
|
|
369
|
+
readonly type: "object";
|
|
370
|
+
readonly propertyNames: {
|
|
371
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
372
|
+
};
|
|
373
|
+
readonly additionalProperties: {
|
|
374
|
+
readonly $ref: "#/$defs/approvalScope";
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly approvalExpiresAt: {
|
|
378
|
+
readonly type: "object";
|
|
379
|
+
readonly propertyNames: {
|
|
380
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
381
|
+
};
|
|
382
|
+
readonly additionalProperties: {
|
|
383
|
+
readonly $ref: "#/$defs/timestamp";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
readonly approvalUses: {
|
|
387
|
+
readonly type: "object";
|
|
388
|
+
readonly propertyNames: {
|
|
389
|
+
readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
|
|
390
|
+
};
|
|
391
|
+
readonly additionalProperties: {
|
|
392
|
+
readonly $ref: "#/$defs/approvalUse";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
readonly approvalScope: {
|
|
396
|
+
readonly $ref: "#/$defs/approvalScope";
|
|
397
|
+
};
|
|
398
|
+
readonly humanDenied: {
|
|
399
|
+
readonly const: true;
|
|
400
|
+
};
|
|
401
|
+
readonly gateOutcome: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly enum: readonly ["declined", "dismissed", "no-ui", "error"];
|
|
404
|
+
};
|
|
405
|
+
readonly definitionDigest: {
|
|
406
|
+
readonly $ref: "#/$defs/definitionDigest";
|
|
407
|
+
};
|
|
408
|
+
readonly definitionHash: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
411
|
+
};
|
|
412
|
+
readonly definitionPackageVersion: {
|
|
413
|
+
readonly type: "string";
|
|
414
|
+
readonly pattern: "^[0-9A-Za-z][0-9A-Za-z.+_-]{0,127}$";
|
|
415
|
+
};
|
|
416
|
+
readonly handoff: {
|
|
417
|
+
readonly type: "object";
|
|
418
|
+
readonly description: "the context handoff this child received (ADR-0078); absent means nothing crossed";
|
|
419
|
+
readonly additionalProperties: false;
|
|
420
|
+
readonly required: readonly ["mode", "sections", "bytes", "truncatedBytes"];
|
|
421
|
+
readonly properties: {
|
|
422
|
+
readonly mode: {
|
|
423
|
+
readonly enum: readonly ["files", "pruned", "summary", "fork"];
|
|
424
|
+
};
|
|
425
|
+
readonly sections: {
|
|
426
|
+
readonly type: "integer";
|
|
427
|
+
readonly minimum: 0;
|
|
428
|
+
};
|
|
429
|
+
readonly bytes: {
|
|
430
|
+
readonly type: "integer";
|
|
431
|
+
readonly minimum: 0;
|
|
432
|
+
};
|
|
433
|
+
readonly truncatedBytes: {
|
|
434
|
+
readonly type: "integer";
|
|
435
|
+
readonly minimum: 0;
|
|
436
|
+
};
|
|
437
|
+
readonly keptTurns: {
|
|
438
|
+
readonly type: "integer";
|
|
439
|
+
readonly minimum: 0;
|
|
440
|
+
};
|
|
441
|
+
readonly droppedTurns: {
|
|
442
|
+
readonly type: "integer";
|
|
443
|
+
readonly minimum: 0;
|
|
444
|
+
};
|
|
445
|
+
readonly rule: {
|
|
446
|
+
readonly type: "string";
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
readonly executor: {
|
|
451
|
+
readonly type: "string";
|
|
452
|
+
readonly enum: readonly ["process", "herdr"];
|
|
453
|
+
};
|
|
454
|
+
readonly taskFrom: {
|
|
455
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
456
|
+
};
|
|
457
|
+
readonly taskDigest: {
|
|
458
|
+
readonly type: "string";
|
|
459
|
+
readonly pattern: "^[a-fA-F0-9]{64}$";
|
|
460
|
+
};
|
|
461
|
+
readonly correlation: {
|
|
462
|
+
readonly $ref: "#/$defs/correlation";
|
|
463
|
+
};
|
|
464
|
+
readonly refusal: {
|
|
465
|
+
readonly $ref: "#/$defs/refusal";
|
|
466
|
+
};
|
|
467
|
+
readonly executionId: {
|
|
468
|
+
readonly $ref: "#/$defs/executionId";
|
|
469
|
+
};
|
|
470
|
+
readonly parentExecutionId: {
|
|
471
|
+
readonly oneOf: readonly [{
|
|
472
|
+
readonly $ref: "#/$defs/executionId";
|
|
473
|
+
}, {
|
|
474
|
+
readonly type: "null";
|
|
475
|
+
}];
|
|
476
|
+
};
|
|
477
|
+
readonly taskFromExecutionId: {
|
|
478
|
+
readonly $ref: "#/$defs/executionId";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "parentId", "childId", "depth", "requested", "parentGrant", "effective", "denied", "clipped", "gatedBlocked", "blocked", "executor", "taskDigest"];
|
|
482
|
+
readonly additionalProperties: false;
|
|
483
|
+
};
|
|
484
|
+
readonly workspaceLease: {
|
|
485
|
+
readonly type: "object";
|
|
486
|
+
readonly properties: {
|
|
487
|
+
readonly ledgerVersion: {
|
|
488
|
+
readonly const: 3;
|
|
489
|
+
};
|
|
490
|
+
readonly event: {
|
|
491
|
+
readonly const: "workspace_lease";
|
|
492
|
+
};
|
|
493
|
+
readonly ts: {
|
|
494
|
+
readonly $ref: "#/$defs/timestamp";
|
|
495
|
+
};
|
|
496
|
+
readonly episodeId: {
|
|
497
|
+
readonly $ref: "#/$defs/episodeId";
|
|
498
|
+
};
|
|
499
|
+
readonly childId: {
|
|
500
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
501
|
+
};
|
|
502
|
+
readonly workspaceId: {
|
|
503
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
504
|
+
};
|
|
505
|
+
readonly root: {
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
readonly minLength: 1;
|
|
508
|
+
};
|
|
509
|
+
readonly access: {
|
|
510
|
+
readonly type: "string";
|
|
511
|
+
readonly enum: readonly ["read", "write"];
|
|
512
|
+
};
|
|
513
|
+
readonly outcome: {
|
|
514
|
+
readonly type: "string";
|
|
515
|
+
readonly enum: readonly ["acquired", "uncontended", "refused", "released", "released-unrecorded", "lost", "retained", "timeout", "recovered"];
|
|
516
|
+
};
|
|
517
|
+
readonly recovered: {
|
|
518
|
+
readonly oneOf: readonly [{
|
|
519
|
+
readonly type: "boolean";
|
|
520
|
+
}, {
|
|
521
|
+
readonly const: "unknown";
|
|
522
|
+
}];
|
|
523
|
+
};
|
|
524
|
+
readonly releaseReason: {
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
};
|
|
527
|
+
readonly refusal: {
|
|
528
|
+
readonly $ref: "#/$defs/refusal";
|
|
529
|
+
};
|
|
530
|
+
readonly correlation: {
|
|
531
|
+
readonly $ref: "#/$defs/correlation";
|
|
532
|
+
};
|
|
533
|
+
readonly executionId: {
|
|
534
|
+
readonly $ref: "#/$defs/executionId";
|
|
535
|
+
};
|
|
536
|
+
readonly parentExecutionId: {
|
|
537
|
+
readonly oneOf: readonly [{
|
|
538
|
+
readonly $ref: "#/$defs/executionId";
|
|
539
|
+
}, {
|
|
540
|
+
readonly type: "null";
|
|
541
|
+
}];
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "childId", "workspaceId", "root", "access", "outcome"];
|
|
545
|
+
readonly additionalProperties: false;
|
|
546
|
+
};
|
|
547
|
+
readonly childLifecycle: {
|
|
548
|
+
readonly type: "object";
|
|
549
|
+
readonly properties: {
|
|
550
|
+
readonly ledgerVersion: {
|
|
551
|
+
readonly const: 3;
|
|
552
|
+
};
|
|
553
|
+
readonly event: {
|
|
554
|
+
readonly const: "child_lifecycle";
|
|
555
|
+
};
|
|
556
|
+
readonly ts: {
|
|
557
|
+
readonly $ref: "#/$defs/timestamp";
|
|
558
|
+
};
|
|
559
|
+
readonly episodeId: {
|
|
560
|
+
readonly $ref: "#/$defs/episodeId";
|
|
561
|
+
};
|
|
562
|
+
readonly childId: {
|
|
563
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
564
|
+
};
|
|
565
|
+
readonly state: {
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
readonly enum: readonly ["starting", "running", "completed", "failed"];
|
|
568
|
+
};
|
|
569
|
+
readonly executor: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly enum: readonly ["process", "herdr"];
|
|
572
|
+
};
|
|
573
|
+
readonly exitCode: {
|
|
574
|
+
readonly type: readonly ["integer", "null"];
|
|
575
|
+
};
|
|
576
|
+
readonly signal: {
|
|
577
|
+
readonly oneOf: readonly [{
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
readonly enum: readonly ["SIGABRT", "SIGALRM", "SIGBUS", "SIGCHLD", "SIGCONT", "SIGFPE", "SIGHUP", "SIGILL", "SIGINT", "SIGIO", "SIGIOT", "SIGKILL", "SIGPIPE", "SIGPOLL", "SIGPROF", "SIGPWR", "SIGQUIT", "SIGSEGV", "SIGSTKFLT", "SIGSTOP", "SIGSYS", "SIGTERM", "SIGTRAP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGUNUSED", "SIGURG", "SIGUSR1", "SIGUSR2", "SIGVTALRM", "SIGWINCH", "SIGXCPU", "SIGXFSZ", "SIGBREAK", "SIGLOST", "SIGINFO"];
|
|
580
|
+
}, {
|
|
581
|
+
readonly type: "null";
|
|
582
|
+
}];
|
|
583
|
+
};
|
|
584
|
+
readonly timedOut: {
|
|
585
|
+
readonly const: true;
|
|
586
|
+
};
|
|
587
|
+
readonly aborted: {
|
|
588
|
+
readonly const: true;
|
|
589
|
+
};
|
|
590
|
+
readonly truncated: {
|
|
591
|
+
readonly const: true;
|
|
592
|
+
};
|
|
593
|
+
readonly reason: {
|
|
594
|
+
readonly type: "string";
|
|
595
|
+
};
|
|
596
|
+
readonly correlation: {
|
|
597
|
+
readonly $ref: "#/$defs/correlation";
|
|
598
|
+
};
|
|
599
|
+
readonly executionId: {
|
|
600
|
+
readonly $ref: "#/$defs/executionId";
|
|
601
|
+
};
|
|
602
|
+
readonly parentExecutionId: {
|
|
603
|
+
readonly oneOf: readonly [{
|
|
604
|
+
readonly $ref: "#/$defs/executionId";
|
|
605
|
+
}, {
|
|
606
|
+
readonly type: "null";
|
|
607
|
+
}];
|
|
608
|
+
};
|
|
609
|
+
readonly deadlineAt: {
|
|
610
|
+
readonly $ref: "#/$defs/timestamp";
|
|
611
|
+
};
|
|
612
|
+
readonly idleTimeoutMs: {
|
|
613
|
+
readonly type: "integer";
|
|
614
|
+
readonly minimum: 1;
|
|
615
|
+
readonly description: "the inactivity bound in milliseconds that governed this child beside the deadlineAt ceiling";
|
|
616
|
+
};
|
|
617
|
+
readonly resolvedModel: {
|
|
618
|
+
readonly oneOf: readonly [{
|
|
619
|
+
readonly $ref: "#/$defs/resolvedModel";
|
|
620
|
+
}, {
|
|
621
|
+
readonly type: "null";
|
|
622
|
+
}];
|
|
623
|
+
};
|
|
624
|
+
readonly modelSource: {
|
|
625
|
+
readonly $ref: "#/$defs/modelSource";
|
|
626
|
+
};
|
|
627
|
+
readonly thinkingLevel: {
|
|
628
|
+
readonly oneOf: readonly [{
|
|
629
|
+
readonly $ref: "#/$defs/thinkingLevel";
|
|
630
|
+
}, {
|
|
631
|
+
readonly type: "null";
|
|
632
|
+
}];
|
|
633
|
+
};
|
|
634
|
+
readonly thinkingSource: {
|
|
635
|
+
readonly $ref: "#/$defs/thinkingSource";
|
|
636
|
+
};
|
|
637
|
+
readonly tokenDetail: {
|
|
638
|
+
readonly $ref: "#/$defs/tokenDetail";
|
|
639
|
+
};
|
|
640
|
+
readonly usage: {
|
|
641
|
+
readonly $ref: "#/$defs/childUsage";
|
|
642
|
+
};
|
|
643
|
+
readonly compactionCount: {
|
|
644
|
+
readonly type: "integer";
|
|
645
|
+
readonly minimum: 0;
|
|
646
|
+
};
|
|
647
|
+
readonly usageUnavailable: {
|
|
648
|
+
readonly enum: readonly ["session-missing", "session-invalid", "usage-missing"];
|
|
649
|
+
};
|
|
650
|
+
readonly exportedEnvironment: {
|
|
651
|
+
readonly type: "array";
|
|
652
|
+
readonly minItems: 3;
|
|
653
|
+
readonly maxItems: 3;
|
|
654
|
+
readonly uniqueItems: true;
|
|
655
|
+
readonly items: {
|
|
656
|
+
readonly enum: readonly ["PI_DADDY_EPISODE", "PI_DADDY_DEFINITION", "PI_DADDY_EXECUTION"];
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
readonly definitionHash: {
|
|
660
|
+
readonly type: "string";
|
|
661
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
662
|
+
};
|
|
663
|
+
readonly definitionPackageVersion: {
|
|
664
|
+
readonly type: "string";
|
|
665
|
+
readonly pattern: "^[0-9A-Za-z][0-9A-Za-z.+_-]{0,127}$";
|
|
666
|
+
};
|
|
667
|
+
readonly herdrPaneId: {
|
|
668
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
669
|
+
};
|
|
670
|
+
readonly herdrAgentName: {
|
|
671
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "childId", "state", "executor"];
|
|
675
|
+
readonly additionalProperties: false;
|
|
676
|
+
readonly not: {
|
|
677
|
+
readonly required: readonly ["usage", "usageUnavailable"];
|
|
678
|
+
};
|
|
679
|
+
readonly allOf: readonly [{
|
|
680
|
+
readonly if: {
|
|
681
|
+
readonly properties: {
|
|
682
|
+
readonly state: {
|
|
683
|
+
readonly enum: readonly ["starting", "running"];
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly required: readonly ["state"];
|
|
687
|
+
};
|
|
688
|
+
readonly then: {
|
|
689
|
+
readonly required: readonly ["deadlineAt"];
|
|
690
|
+
};
|
|
691
|
+
}, {
|
|
692
|
+
readonly if: {
|
|
693
|
+
readonly anyOf: readonly [{
|
|
694
|
+
readonly required: readonly ["herdrPaneId"];
|
|
695
|
+
}, {
|
|
696
|
+
readonly required: readonly ["herdrAgentName"];
|
|
697
|
+
}];
|
|
698
|
+
};
|
|
699
|
+
readonly then: {
|
|
700
|
+
readonly required: readonly ["herdrPaneId", "herdrAgentName"];
|
|
701
|
+
readonly properties: {
|
|
702
|
+
readonly executor: {
|
|
703
|
+
readonly const: "herdr";
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
}];
|
|
708
|
+
};
|
|
709
|
+
readonly resolvedModel: {
|
|
710
|
+
readonly type: "object";
|
|
711
|
+
readonly additionalProperties: false;
|
|
712
|
+
readonly required: readonly ["provider", "modelId"];
|
|
713
|
+
readonly properties: {
|
|
714
|
+
readonly provider: {
|
|
715
|
+
readonly type: "string";
|
|
716
|
+
readonly minLength: 1;
|
|
717
|
+
};
|
|
718
|
+
readonly modelId: {
|
|
719
|
+
readonly type: "string";
|
|
720
|
+
readonly minLength: 1;
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
readonly thinkingLevel: {
|
|
725
|
+
readonly type: "object";
|
|
726
|
+
readonly additionalProperties: false;
|
|
727
|
+
readonly required: readonly ["level", "source"];
|
|
728
|
+
readonly properties: {
|
|
729
|
+
readonly level: {
|
|
730
|
+
readonly type: "string";
|
|
731
|
+
readonly minLength: 1;
|
|
732
|
+
};
|
|
733
|
+
readonly source: {
|
|
734
|
+
readonly enum: readonly ["explicit", "session", "advisor", "definition", "global", "pi"];
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
readonly modelSource: {
|
|
739
|
+
readonly enum: readonly ["explicit", "session", "definition", "global", "pi"];
|
|
740
|
+
};
|
|
741
|
+
readonly thinkingSource: {
|
|
742
|
+
readonly enum: readonly ["explicit", "session", "advisor", "definition", "global", "pi"];
|
|
743
|
+
};
|
|
744
|
+
readonly tokenDetail: {
|
|
745
|
+
readonly type: "object";
|
|
746
|
+
readonly additionalProperties: false;
|
|
747
|
+
readonly required: readonly ["inputTokens", "outputTokens", "cacheReadTokens", "cacheWriteTokens", "reasoningTokens"];
|
|
748
|
+
readonly properties: {
|
|
749
|
+
readonly inputTokens: {
|
|
750
|
+
readonly $ref: "#/$defs/reportedTokenCount";
|
|
751
|
+
};
|
|
752
|
+
readonly outputTokens: {
|
|
753
|
+
readonly $ref: "#/$defs/reportedTokenCount";
|
|
754
|
+
};
|
|
755
|
+
readonly cacheReadTokens: {
|
|
756
|
+
readonly $ref: "#/$defs/reportedTokenCount";
|
|
757
|
+
};
|
|
758
|
+
readonly cacheWriteTokens: {
|
|
759
|
+
readonly $ref: "#/$defs/reportedTokenCount";
|
|
760
|
+
};
|
|
761
|
+
readonly reasoningTokens: {
|
|
762
|
+
readonly $ref: "#/$defs/reportedTokenCount";
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
readonly reportedTokenCount: {
|
|
767
|
+
readonly oneOf: readonly [{
|
|
768
|
+
readonly type: "number";
|
|
769
|
+
readonly exclusiveMinimum: 0;
|
|
770
|
+
}, {
|
|
771
|
+
readonly type: "null";
|
|
772
|
+
}];
|
|
773
|
+
};
|
|
774
|
+
readonly childUsage: {
|
|
775
|
+
readonly type: "object";
|
|
776
|
+
readonly additionalProperties: false;
|
|
777
|
+
readonly required: readonly ["input", "output", "cacheRead", "cacheWrite", "totalTokens", "cost"];
|
|
778
|
+
readonly properties: {
|
|
779
|
+
readonly input: {
|
|
780
|
+
readonly type: "number";
|
|
781
|
+
readonly minimum: 0;
|
|
782
|
+
};
|
|
783
|
+
readonly output: {
|
|
784
|
+
readonly type: "number";
|
|
785
|
+
readonly minimum: 0;
|
|
786
|
+
};
|
|
787
|
+
readonly cacheRead: {
|
|
788
|
+
readonly type: "number";
|
|
789
|
+
readonly minimum: 0;
|
|
790
|
+
};
|
|
791
|
+
readonly cacheWrite: {
|
|
792
|
+
readonly type: "number";
|
|
793
|
+
readonly minimum: 0;
|
|
794
|
+
};
|
|
795
|
+
readonly reasoning: {
|
|
796
|
+
readonly type: "number";
|
|
797
|
+
readonly minimum: 0;
|
|
798
|
+
};
|
|
799
|
+
readonly totalTokens: {
|
|
800
|
+
readonly type: "number";
|
|
801
|
+
readonly minimum: 0;
|
|
802
|
+
};
|
|
803
|
+
readonly cost: {
|
|
804
|
+
readonly type: "object";
|
|
805
|
+
readonly additionalProperties: false;
|
|
806
|
+
readonly required: readonly ["input", "output", "cacheRead", "cacheWrite", "total"];
|
|
807
|
+
readonly properties: {
|
|
808
|
+
readonly input: {
|
|
809
|
+
readonly type: "number";
|
|
810
|
+
readonly minimum: 0;
|
|
811
|
+
};
|
|
812
|
+
readonly output: {
|
|
813
|
+
readonly type: "number";
|
|
814
|
+
readonly minimum: 0;
|
|
815
|
+
};
|
|
816
|
+
readonly cacheRead: {
|
|
817
|
+
readonly type: "number";
|
|
818
|
+
readonly minimum: 0;
|
|
819
|
+
};
|
|
820
|
+
readonly cacheWrite: {
|
|
821
|
+
readonly type: "number";
|
|
822
|
+
readonly minimum: 0;
|
|
823
|
+
};
|
|
824
|
+
readonly total: {
|
|
825
|
+
readonly type: "number";
|
|
826
|
+
readonly minimum: 0;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
readonly executionId: {
|
|
833
|
+
readonly type: "string";
|
|
834
|
+
readonly pattern: "^exec:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$";
|
|
835
|
+
};
|
|
836
|
+
readonly costGate: {
|
|
837
|
+
readonly type: "object";
|
|
838
|
+
readonly properties: {
|
|
839
|
+
readonly ledgerVersion: {
|
|
840
|
+
readonly const: 3;
|
|
841
|
+
};
|
|
842
|
+
readonly event: {
|
|
843
|
+
readonly const: "cost_gate";
|
|
844
|
+
};
|
|
845
|
+
readonly ts: {
|
|
846
|
+
readonly $ref: "#/$defs/timestamp";
|
|
847
|
+
};
|
|
848
|
+
readonly episodeId: {
|
|
849
|
+
readonly $ref: "#/$defs/episodeId";
|
|
850
|
+
};
|
|
851
|
+
readonly executionId: {
|
|
852
|
+
readonly $ref: "#/$defs/executionId";
|
|
853
|
+
};
|
|
854
|
+
readonly parentExecutionId: {
|
|
855
|
+
readonly oneOf: readonly [{
|
|
856
|
+
readonly $ref: "#/$defs/executionId";
|
|
857
|
+
}, {
|
|
858
|
+
readonly type: "null";
|
|
859
|
+
}];
|
|
860
|
+
};
|
|
861
|
+
readonly childId: {
|
|
862
|
+
readonly $ref: "#/$defs/ledgerDisplayIdentifier";
|
|
863
|
+
};
|
|
864
|
+
readonly gate: {
|
|
865
|
+
readonly const: "episode_cost";
|
|
866
|
+
};
|
|
867
|
+
readonly cost: {
|
|
868
|
+
readonly type: "number";
|
|
869
|
+
readonly minimum: 0;
|
|
870
|
+
};
|
|
871
|
+
readonly ceiling: {
|
|
872
|
+
readonly type: "number";
|
|
873
|
+
readonly exclusiveMinimum: 0;
|
|
874
|
+
};
|
|
875
|
+
readonly outcome: {
|
|
876
|
+
readonly enum: readonly ["continued", "stopped"];
|
|
877
|
+
};
|
|
878
|
+
readonly newCeiling: {
|
|
879
|
+
readonly type: "number";
|
|
880
|
+
readonly exclusiveMinimum: 0;
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
readonly required: readonly ["ledgerVersion", "event", "ts", "episodeId", "executionId", "parentExecutionId", "childId", "gate", "cost", "ceiling", "outcome"];
|
|
884
|
+
readonly additionalProperties: false;
|
|
885
|
+
};
|
|
886
|
+
readonly sessionConfig: {
|
|
887
|
+
readonly type: "object";
|
|
888
|
+
readonly properties: {
|
|
889
|
+
readonly ledgerVersion: {
|
|
890
|
+
readonly const: 3;
|
|
891
|
+
};
|
|
892
|
+
readonly event: {
|
|
893
|
+
readonly const: "session_config";
|
|
894
|
+
};
|
|
895
|
+
readonly ts: {
|
|
896
|
+
readonly $ref: "#/$defs/timestamp";
|
|
897
|
+
};
|
|
898
|
+
readonly episodeId: {
|
|
899
|
+
readonly $ref: "#/$defs/episodeId";
|
|
900
|
+
};
|
|
901
|
+
readonly outcome: {
|
|
902
|
+
readonly enum: readonly ["kept", "changed"];
|
|
903
|
+
};
|
|
904
|
+
readonly trigger: {
|
|
905
|
+
readonly enum: readonly ["first-delegation", "grants-models"];
|
|
906
|
+
};
|
|
907
|
+
readonly overrides: {
|
|
908
|
+
readonly type: "object";
|
|
909
|
+
readonly additionalProperties: {
|
|
910
|
+
readonly type: "object";
|
|
911
|
+
readonly properties: {
|
|
912
|
+
readonly model: {
|
|
913
|
+
readonly type: "string";
|
|
914
|
+
readonly minLength: 1;
|
|
915
|
+
};
|
|
916
|
+
readonly thinking: {
|
|
917
|
+
readonly type: "string";
|
|
918
|
+
readonly minLength: 1;
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
readonly required: readonly ["model", "thinking"];
|
|
922
|
+
readonly additionalProperties: false;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
readonly required: readonly ["ledgerVersion", "event", "ts", "episodeId", "outcome", "trigger", "overrides"];
|
|
927
|
+
readonly additionalProperties: false;
|
|
928
|
+
};
|
|
929
|
+
readonly episodeOutcome: {
|
|
930
|
+
readonly type: "object";
|
|
931
|
+
readonly properties: {
|
|
932
|
+
readonly ledgerVersion: {
|
|
933
|
+
readonly const: 3;
|
|
934
|
+
};
|
|
935
|
+
readonly event: {
|
|
936
|
+
readonly const: "episode_outcome";
|
|
937
|
+
};
|
|
938
|
+
readonly ts: {
|
|
939
|
+
readonly $ref: "#/$defs/timestamp";
|
|
940
|
+
};
|
|
941
|
+
readonly episodeId: {
|
|
942
|
+
readonly $ref: "#/$defs/episodeId";
|
|
943
|
+
};
|
|
944
|
+
readonly commit: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
readonly pattern: "^[0-9a-f]{40}$";
|
|
947
|
+
};
|
|
948
|
+
readonly survived: {
|
|
949
|
+
readonly type: "boolean";
|
|
950
|
+
};
|
|
951
|
+
readonly ci: {
|
|
952
|
+
readonly enum: readonly ["green", "red", "none"];
|
|
953
|
+
};
|
|
954
|
+
readonly amended: {
|
|
955
|
+
readonly type: "boolean";
|
|
956
|
+
};
|
|
957
|
+
readonly corrected: {
|
|
958
|
+
readonly type: "boolean";
|
|
959
|
+
};
|
|
960
|
+
readonly label: {
|
|
961
|
+
readonly enum: readonly ["positive", "negative", "unknown"];
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
readonly required: readonly ["ledgerVersion", "event", "ts", "episodeId", "commit", "survived", "ci", "amended", "corrected", "label"];
|
|
965
|
+
readonly additionalProperties: false;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
};
|