@skill-harness/adapters 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +2 -1
  2. package/dist/archive-access.d.ts +58 -0
  3. package/dist/archive-access.js +61 -0
  4. package/dist/archive-checkpoint.d.ts +47 -0
  5. package/dist/archive-checkpoint.js +116 -0
  6. package/dist/archive-facts.d.ts +19 -0
  7. package/dist/archive-facts.js +20 -0
  8. package/dist/archive-observer.d.ts +21 -0
  9. package/dist/archive-observer.js +79 -0
  10. package/dist/archive-policy.d.ts +107 -0
  11. package/dist/archive-policy.js +135 -0
  12. package/dist/archive-read-capability.d.ts +49 -0
  13. package/dist/archive-read-capability.js +45 -0
  14. package/dist/archive-retention-policy.d.ts +52 -0
  15. package/dist/archive-retention-policy.js +49 -0
  16. package/dist/archived-work.d.ts +44 -0
  17. package/dist/archived-work.js +59 -0
  18. package/dist/blind-intervention.d.ts +29 -0
  19. package/dist/blind-intervention.js +211 -0
  20. package/dist/closed-schema.d.ts +6 -0
  21. package/dist/closed-schema.js +70 -14
  22. package/dist/codex-diagnostic-model.d.ts +14 -0
  23. package/dist/codex-diagnostic-model.js +39 -0
  24. package/dist/codex-host-observer.d.ts +111 -0
  25. package/dist/codex-host-observer.js +309 -0
  26. package/dist/codex-https.d.ts +7 -0
  27. package/dist/codex-https.js +221 -0
  28. package/dist/codex-model-profile.d.ts +38 -0
  29. package/dist/codex-model-profile.js +54 -0
  30. package/dist/codex-producer-ipc.d.ts +55 -0
  31. package/dist/codex-producer-ipc.js +67 -0
  32. package/dist/codex-sdk-transport.d.ts +50 -0
  33. package/dist/codex-sdk-transport.js +294 -0
  34. package/dist/codex-subscription.d.ts +114 -0
  35. package/dist/codex-subscription.js +268 -0
  36. package/dist/evidence-archive.d.ts +57 -0
  37. package/dist/evidence-archive.js +221 -0
  38. package/dist/execution-projection-schema.d.ts +10 -0
  39. package/dist/execution-projection-schema.js +30 -0
  40. package/dist/execution-retention-archive.d.ts +69 -0
  41. package/dist/execution-retention-archive.js +154 -0
  42. package/dist/generated/retention-v2-contract.d.ts +72 -0
  43. package/dist/generated/retention-v2-contract.js +105 -0
  44. package/dist/generated/retention-v2-json.d.ts +24 -0
  45. package/dist/generated/retention-v2-json.js +268 -0
  46. package/dist/generated/retention-v2-native-json.d.ts +2 -0
  47. package/dist/generated/retention-v2-native-json.js +33 -0
  48. package/dist/generated/retention-v2-native.d.ts +58 -0
  49. package/dist/generated/retention-v2-native.js +155 -0
  50. package/dist/generated/retention-v2-pin.d.ts +2 -0
  51. package/dist/generated/retention-v2-pin.js +4 -0
  52. package/dist/generated/retention-v2-types.d.ts +49 -0
  53. package/dist/generated/retention-v2-types.js +2 -0
  54. package/dist/generated/retention-v2-work-types.d.ts +260 -0
  55. package/dist/generated/retention-v2-work-types.js +13 -0
  56. package/dist/generated/work-v4/execution-id.d.ts +5 -0
  57. package/dist/generated/work-v4/execution-id.js +14 -0
  58. package/dist/generated/work-v4/json.d.ts +24 -0
  59. package/dist/generated/work-v4/json.js +268 -0
  60. package/dist/generated/work-v4/occurrences.d.ts +226 -0
  61. package/dist/generated/work-v4/occurrences.js +116 -0
  62. package/dist/generated/work-v4/pin.d.ts +1 -0
  63. package/dist/generated/work-v4/pin.js +3 -0
  64. package/dist/generated/work-v4/projection.d.ts +294 -0
  65. package/dist/generated/work-v4/projection.js +238 -0
  66. package/dist/generated/work-v4/reader.d.ts +24 -0
  67. package/dist/generated/work-v4/reader.js +109 -0
  68. package/dist/generated/work-v4/snapshot.d.ts +28 -0
  69. package/dist/generated/work-v4/snapshot.js +268 -0
  70. package/dist/generated/work-v4/types.d.ts +260 -0
  71. package/dist/generated/work-v4/types.js +13 -0
  72. package/dist/generated/work-v4/validation.d.ts +13 -0
  73. package/dist/generated/work-v4/validation.js +227 -0
  74. package/dist/index.d.ts +24 -0
  75. package/dist/index.js +24 -0
  76. package/dist/installed-review-session.d.ts +28 -0
  77. package/dist/installed-review-session.js +166 -0
  78. package/dist/intervention-run.d.ts +403 -0
  79. package/dist/intervention-run.js +169 -0
  80. package/dist/learning-case.d.ts +12 -0
  81. package/dist/learning-case.js +15 -0
  82. package/dist/learning-journal.d.ts +18 -0
  83. package/dist/learning-journal.js +256 -0
  84. package/dist/pi-daddy-ledger-v2.d.ts +4 -4
  85. package/dist/pi-daddy-ledger-v2.js +9 -7
  86. package/dist/pi-daddy-ledger-v3.d.ts +683 -0
  87. package/dist/pi-daddy-ledger-v3.js +961 -0
  88. package/dist/pi.js +115 -24
  89. package/dist/principal-payload-port.d.ts +25 -0
  90. package/dist/principal-payload-port.js +40 -0
  91. package/dist/producer-product.d.ts +70 -0
  92. package/dist/producer-product.js +186 -0
  93. package/dist/producer-review.d.ts +53 -0
  94. package/dist/producer-review.js +207 -0
  95. package/dist/prompt-capture-extension.d.ts +10 -0
  96. package/dist/prompt-capture-extension.js +26 -0
  97. package/dist/prompt-provenance.d.ts +22 -0
  98. package/dist/prompt-provenance.js +146 -0
  99. package/dist/reviewed-archive-export.d.ts +42 -0
  100. package/dist/reviewed-archive-export.js +78 -0
  101. package/dist/trajectory.d.ts +15 -9
  102. package/dist/trajectory.js +375 -55
  103. package/dist/trust-lifecycle.d.ts +128 -0
  104. package/dist/trust-lifecycle.js +200 -0
  105. package/dist/weekly-investigation.d.ts +237 -0
  106. package/dist/weekly-investigation.js +330 -0
  107. package/dist/work-candidates.d.ts +29 -0
  108. package/dist/work-candidates.js +78 -0
  109. package/dist/work-case-archive.d.ts +25 -0
  110. package/dist/work-case-archive.js +63 -0
  111. package/dist/work-case-review.d.ts +45 -0
  112. package/dist/work-case-review.js +220 -0
  113. package/dist/work-signal-cases.d.ts +15 -0
  114. package/dist/work-signal-cases.js +54 -0
  115. package/dist/work-signal-observation.d.ts +23 -0
  116. package/dist/work-signal-observation.js +89 -0
  117. package/package.json +4 -3
@@ -0,0 +1,683 @@
1
+ export declare const PI_DADDY_LEDGER_V3_CONTRACT_COMMIT = "4a9524394ca995fd74ed9bbb836dc4e73cda3b8c";
2
+ export declare const PI_DADDY_LEDGER_V3_CONTRACT_TREE = "7c006bff213142634f0f911ba9bd6add363ecaae";
3
+ export declare const PI_DADDY_LEDGER_V3_SCHEMA_SHA256 = "64e3d875e74bc32fa43fb96892605548259cd16f6ed6678646d73cc56280c511";
4
+ export declare const PI_DADDY_LEDGER_V3_SCHEMA: {
5
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
6
+ readonly $id: "https://github.com/mojomanyana/pi-daddy/contracts/ledger/v3/ledger-event.schema.json";
7
+ readonly title: "pi-daddy ledgerVersion 3 event";
8
+ 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.";
9
+ readonly oneOf: readonly [{
10
+ readonly $ref: "#/$defs/capabilityDecision";
11
+ }, {
12
+ readonly $ref: "#/$defs/workspaceLease";
13
+ }, {
14
+ readonly $ref: "#/$defs/childLifecycle";
15
+ }, {
16
+ readonly $ref: "#/$defs/checkReceipt";
17
+ }, {
18
+ readonly $ref: "#/$defs/workflowFact";
19
+ }];
20
+ readonly $defs: {
21
+ readonly timestamp: {
22
+ readonly type: "string";
23
+ readonly format: "date-time";
24
+ readonly pattern: ":[0-5][0-9](?:\\.[0-9]+)?(?:[Zz]|[+-][0-9]{2}:[0-9]{2})$";
25
+ };
26
+ readonly correlation: {
27
+ readonly type: "object";
28
+ 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.";
29
+ readonly properties: {
30
+ readonly schema_version: {
31
+ readonly const: "1.0";
32
+ };
33
+ readonly run_id: {
34
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
35
+ };
36
+ readonly task_id: {
37
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
38
+ };
39
+ readonly workspace_id: {
40
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
41
+ };
42
+ readonly context_id: {
43
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
44
+ };
45
+ readonly phase: {
46
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
47
+ };
48
+ readonly assurance: {
49
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
50
+ };
51
+ readonly assurance_effective: {
52
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
53
+ };
54
+ readonly policy_label: {
55
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
56
+ };
57
+ readonly assurance_source: {
58
+ readonly $ref: "#/$defs/ledgerCorrelationIdentifier";
59
+ };
60
+ readonly assurance_scope: {
61
+ readonly oneOf: readonly [{
62
+ readonly type: "object";
63
+ readonly properties: {
64
+ readonly type: {
65
+ readonly const: "entire-run";
66
+ };
67
+ readonly selectors: {
68
+ readonly type: "array";
69
+ readonly maxItems: 0;
70
+ };
71
+ };
72
+ readonly required: readonly ["type", "selectors"];
73
+ readonly additionalProperties: false;
74
+ }, {
75
+ readonly type: "object";
76
+ readonly properties: {
77
+ readonly type: {
78
+ readonly const: "selectors";
79
+ };
80
+ readonly selectors: {
81
+ readonly type: "array";
82
+ readonly minItems: 1;
83
+ readonly items: {
84
+ readonly type: "string";
85
+ readonly minLength: 1;
86
+ };
87
+ };
88
+ };
89
+ readonly required: readonly ["type", "selectors"];
90
+ readonly additionalProperties: false;
91
+ }];
92
+ };
93
+ readonly activated_at: {
94
+ readonly type: "string";
95
+ readonly maxLength: 512;
96
+ };
97
+ readonly plan_digest: {
98
+ readonly type: "string";
99
+ readonly maxLength: 512;
100
+ };
101
+ readonly definition_digest: {
102
+ readonly type: "string";
103
+ readonly maxLength: 512;
104
+ };
105
+ readonly task_digest: {
106
+ readonly type: "string";
107
+ readonly maxLength: 512;
108
+ };
109
+ readonly base_sha: {
110
+ readonly type: "string";
111
+ readonly maxLength: 512;
112
+ };
113
+ readonly head_sha: {
114
+ readonly type: "string";
115
+ readonly maxLength: 512;
116
+ };
117
+ readonly tree_sha: {
118
+ readonly type: "string";
119
+ readonly maxLength: 512;
120
+ };
121
+ readonly event_seq: {
122
+ readonly type: "number";
123
+ };
124
+ readonly last_change_seq: {
125
+ readonly type: "number";
126
+ };
127
+ readonly last_authority_seq: {
128
+ readonly type: "number";
129
+ };
130
+ readonly check_receipt_id: {
131
+ readonly type: "string";
132
+ readonly maxLength: 512;
133
+ };
134
+ };
135
+ readonly additionalProperties: false;
136
+ };
137
+ readonly ledgerDisplayIdentifier: {
138
+ readonly type: "string";
139
+ readonly pattern: "^[A-Za-z0-9@*][A-Za-z0-9@*._:/-]{0,511}$";
140
+ };
141
+ readonly ledgerCorrelationIdentifier: {
142
+ readonly type: "string";
143
+ readonly pattern: "^[A-Za-z0-9@*][A-Za-z0-9@*._:/-]{0,127}$";
144
+ };
145
+ readonly ledgerCapabilityIdentifier: {
146
+ readonly type: "string";
147
+ readonly pattern: "^(tool|skill|agent|workspace|ext):[A-Za-z0-9@*][A-Za-z0-9@*._/-]{0,255}$";
148
+ };
149
+ readonly refusalCode: {
150
+ readonly type: "string";
151
+ 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", "CHECK_NOT_CONFIGURED", "CHECK_CONFIGURATION_INVALID", "CHECK_IDENTITY_UNAVAILABLE", "CHECK_IDENTITY_MISMATCH"];
152
+ };
153
+ readonly refusal: {
154
+ readonly type: "object";
155
+ readonly properties: {
156
+ readonly code: {
157
+ readonly $ref: "#/$defs/refusalCode";
158
+ };
159
+ readonly message: {
160
+ readonly type: "string";
161
+ };
162
+ readonly details: {
163
+ readonly type: "object";
164
+ readonly additionalProperties: {
165
+ readonly type: readonly ["string", "number", "boolean", "null"];
166
+ };
167
+ };
168
+ };
169
+ readonly required: readonly ["code", "message"];
170
+ readonly additionalProperties: false;
171
+ };
172
+ readonly approvalSource: {
173
+ readonly type: "string";
174
+ readonly enum: readonly ["prompt", "session", "persisted", "inherited"];
175
+ };
176
+ readonly approvalScope: {
177
+ readonly type: "string";
178
+ readonly enum: readonly ["once", "session", "always"];
179
+ };
180
+ readonly approvalUse: {
181
+ readonly type: "object";
182
+ readonly properties: {
183
+ readonly max: {
184
+ readonly type: "integer";
185
+ readonly minimum: 0;
186
+ };
187
+ readonly remaining: {
188
+ readonly type: "integer";
189
+ readonly minimum: 0;
190
+ };
191
+ };
192
+ readonly required: readonly ["max", "remaining"];
193
+ readonly additionalProperties: false;
194
+ };
195
+ readonly definitionDigest: {
196
+ readonly type: "object";
197
+ readonly properties: {
198
+ readonly name: {
199
+ readonly type: "string";
200
+ };
201
+ readonly source: {
202
+ readonly type: "string";
203
+ };
204
+ readonly sha256: {
205
+ readonly type: "string";
206
+ readonly pattern: "^[a-fA-F0-9]{64}$";
207
+ };
208
+ };
209
+ readonly required: readonly ["name", "source", "sha256"];
210
+ readonly additionalProperties: false;
211
+ };
212
+ readonly capabilityDecision: {
213
+ readonly type: "object";
214
+ readonly properties: {
215
+ readonly ledgerVersion: {
216
+ readonly const: 3;
217
+ };
218
+ readonly event: {
219
+ readonly const: "capability_decision";
220
+ };
221
+ readonly ts: {
222
+ readonly $ref: "#/$defs/timestamp";
223
+ };
224
+ readonly parentId: {
225
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
226
+ };
227
+ readonly childId: {
228
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
229
+ };
230
+ readonly depth: {
231
+ readonly type: "integer";
232
+ readonly minimum: 0;
233
+ };
234
+ readonly agentType: {
235
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
236
+ };
237
+ readonly requested: {
238
+ readonly type: "array";
239
+ readonly items: {
240
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
241
+ };
242
+ };
243
+ readonly parentGrant: {
244
+ readonly type: "array";
245
+ readonly items: {
246
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
247
+ };
248
+ };
249
+ readonly effective: {
250
+ readonly type: "array";
251
+ readonly items: {
252
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
253
+ };
254
+ };
255
+ readonly denied: {
256
+ readonly type: "array";
257
+ readonly items: {
258
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
259
+ };
260
+ };
261
+ readonly clipped: {
262
+ readonly type: "array";
263
+ readonly items: {
264
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
265
+ };
266
+ };
267
+ readonly gatedBlocked: {
268
+ readonly type: "array";
269
+ readonly items: {
270
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
271
+ };
272
+ };
273
+ readonly blocked: {
274
+ readonly type: "boolean";
275
+ };
276
+ readonly reason: {
277
+ readonly type: "string";
278
+ };
279
+ readonly approved: {
280
+ readonly type: "array";
281
+ readonly items: {
282
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
283
+ };
284
+ };
285
+ readonly approvalSource: {
286
+ readonly $ref: "#/$defs/approvalSource";
287
+ };
288
+ readonly approvalSources: {
289
+ readonly type: "object";
290
+ readonly propertyNames: {
291
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
292
+ };
293
+ readonly additionalProperties: {
294
+ readonly $ref: "#/$defs/approvalSource";
295
+ };
296
+ };
297
+ readonly approvalScopes: {
298
+ readonly type: "object";
299
+ readonly propertyNames: {
300
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
301
+ };
302
+ readonly additionalProperties: {
303
+ readonly $ref: "#/$defs/approvalScope";
304
+ };
305
+ };
306
+ readonly approvalExpiresAt: {
307
+ readonly type: "object";
308
+ readonly propertyNames: {
309
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
310
+ };
311
+ readonly additionalProperties: {
312
+ readonly $ref: "#/$defs/timestamp";
313
+ };
314
+ };
315
+ readonly approvalUses: {
316
+ readonly type: "object";
317
+ readonly propertyNames: {
318
+ readonly $ref: "#/$defs/ledgerCapabilityIdentifier";
319
+ };
320
+ readonly additionalProperties: {
321
+ readonly $ref: "#/$defs/approvalUse";
322
+ };
323
+ };
324
+ readonly approvalScope: {
325
+ readonly $ref: "#/$defs/approvalScope";
326
+ };
327
+ readonly humanDenied: {
328
+ readonly const: true;
329
+ };
330
+ readonly gateOutcome: {
331
+ readonly type: "string";
332
+ readonly enum: readonly ["declined", "dismissed", "no-ui", "error"];
333
+ };
334
+ readonly definitionDigest: {
335
+ readonly $ref: "#/$defs/definitionDigest";
336
+ };
337
+ readonly executor: {
338
+ readonly type: "string";
339
+ readonly enum: readonly ["process", "herdr"];
340
+ };
341
+ readonly taskFrom: {
342
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
343
+ };
344
+ readonly taskDigest: {
345
+ readonly type: "string";
346
+ readonly pattern: "^[a-fA-F0-9]{64}$";
347
+ };
348
+ readonly correlation: {
349
+ readonly $ref: "#/$defs/correlation";
350
+ };
351
+ readonly refusal: {
352
+ readonly $ref: "#/$defs/refusal";
353
+ };
354
+ readonly executionId: {
355
+ readonly $ref: "#/$defs/executionId";
356
+ };
357
+ readonly parentExecutionId: {
358
+ readonly oneOf: readonly [{
359
+ readonly $ref: "#/$defs/executionId";
360
+ }, {
361
+ readonly type: "null";
362
+ }];
363
+ };
364
+ readonly taskFromExecutionId: {
365
+ readonly $ref: "#/$defs/executionId";
366
+ };
367
+ };
368
+ readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "parentId", "childId", "depth", "requested", "parentGrant", "effective", "denied", "clipped", "gatedBlocked", "blocked", "executor", "taskDigest"];
369
+ readonly additionalProperties: false;
370
+ };
371
+ readonly workspaceLease: {
372
+ readonly type: "object";
373
+ readonly properties: {
374
+ readonly ledgerVersion: {
375
+ readonly const: 3;
376
+ };
377
+ readonly event: {
378
+ readonly const: "workspace_lease";
379
+ };
380
+ readonly ts: {
381
+ readonly $ref: "#/$defs/timestamp";
382
+ };
383
+ readonly childId: {
384
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
385
+ };
386
+ readonly workspaceId: {
387
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
388
+ };
389
+ readonly root: {
390
+ readonly type: "string";
391
+ readonly minLength: 1;
392
+ };
393
+ readonly access: {
394
+ readonly type: "string";
395
+ readonly enum: readonly ["read", "write"];
396
+ };
397
+ readonly outcome: {
398
+ readonly type: "string";
399
+ readonly enum: readonly ["acquired", "uncontended", "refused", "released", "released-unrecorded", "lost", "retained", "timeout", "recovered"];
400
+ };
401
+ readonly recovered: {
402
+ readonly oneOf: readonly [{
403
+ readonly type: "boolean";
404
+ }, {
405
+ readonly const: "unknown";
406
+ }];
407
+ };
408
+ readonly releaseReason: {
409
+ readonly type: "string";
410
+ };
411
+ readonly refusal: {
412
+ readonly $ref: "#/$defs/refusal";
413
+ };
414
+ readonly correlation: {
415
+ readonly $ref: "#/$defs/correlation";
416
+ };
417
+ readonly executionId: {
418
+ readonly $ref: "#/$defs/executionId";
419
+ };
420
+ readonly parentExecutionId: {
421
+ readonly oneOf: readonly [{
422
+ readonly $ref: "#/$defs/executionId";
423
+ }, {
424
+ readonly type: "null";
425
+ }];
426
+ };
427
+ };
428
+ readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "childId", "workspaceId", "root", "access", "outcome"];
429
+ readonly additionalProperties: false;
430
+ };
431
+ readonly childLifecycle: {
432
+ readonly type: "object";
433
+ readonly properties: {
434
+ readonly ledgerVersion: {
435
+ readonly const: 3;
436
+ };
437
+ readonly event: {
438
+ readonly const: "child_lifecycle";
439
+ };
440
+ readonly ts: {
441
+ readonly $ref: "#/$defs/timestamp";
442
+ };
443
+ readonly childId: {
444
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
445
+ };
446
+ readonly state: {
447
+ readonly type: "string";
448
+ readonly enum: readonly ["starting", "running", "completed", "failed"];
449
+ };
450
+ readonly executor: {
451
+ readonly type: "string";
452
+ readonly enum: readonly ["process", "herdr"];
453
+ };
454
+ readonly exitCode: {
455
+ readonly type: readonly ["integer", "null"];
456
+ };
457
+ readonly signal: {
458
+ readonly oneOf: readonly [{
459
+ readonly type: "string";
460
+ 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"];
461
+ }, {
462
+ readonly type: "null";
463
+ }];
464
+ };
465
+ readonly timedOut: {
466
+ readonly const: true;
467
+ };
468
+ readonly aborted: {
469
+ readonly const: true;
470
+ };
471
+ readonly truncated: {
472
+ readonly const: true;
473
+ };
474
+ readonly reason: {
475
+ readonly type: "string";
476
+ };
477
+ readonly correlation: {
478
+ readonly $ref: "#/$defs/correlation";
479
+ };
480
+ readonly executionId: {
481
+ readonly $ref: "#/$defs/executionId";
482
+ };
483
+ readonly parentExecutionId: {
484
+ readonly oneOf: readonly [{
485
+ readonly $ref: "#/$defs/executionId";
486
+ }, {
487
+ readonly type: "null";
488
+ }];
489
+ };
490
+ readonly deadlineAt: {
491
+ readonly $ref: "#/$defs/timestamp";
492
+ };
493
+ readonly herdrPaneId: {
494
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
495
+ };
496
+ readonly herdrAgentName: {
497
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
498
+ };
499
+ };
500
+ readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "childId", "state", "executor"];
501
+ readonly additionalProperties: false;
502
+ readonly allOf: readonly [{
503
+ readonly if: {
504
+ readonly properties: {
505
+ readonly state: {
506
+ readonly enum: readonly ["starting", "running"];
507
+ };
508
+ };
509
+ readonly required: readonly ["state"];
510
+ };
511
+ readonly then: {
512
+ readonly required: readonly ["deadlineAt"];
513
+ };
514
+ }, {
515
+ readonly if: {
516
+ readonly anyOf: readonly [{
517
+ readonly required: readonly ["herdrPaneId"];
518
+ }, {
519
+ readonly required: readonly ["herdrAgentName"];
520
+ }];
521
+ };
522
+ readonly then: {
523
+ readonly required: readonly ["herdrPaneId", "herdrAgentName"];
524
+ readonly properties: {
525
+ readonly executor: {
526
+ readonly const: "herdr";
527
+ };
528
+ };
529
+ };
530
+ }];
531
+ };
532
+ readonly checkReceipt: {
533
+ readonly type: "object";
534
+ readonly properties: {
535
+ readonly ledgerVersion: {
536
+ readonly const: 3;
537
+ };
538
+ readonly event: {
539
+ readonly const: "check_receipt";
540
+ };
541
+ readonly ts: {
542
+ readonly $ref: "#/$defs/timestamp";
543
+ };
544
+ readonly childId: {
545
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
546
+ };
547
+ readonly receiptId: {
548
+ readonly type: "string";
549
+ readonly pattern: "^[a-fA-F0-9]{64}$";
550
+ };
551
+ readonly workspaceId: {
552
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
553
+ };
554
+ readonly checkId: {
555
+ readonly $ref: "#/$defs/ledgerDisplayIdentifier";
556
+ };
557
+ readonly treeSha: {
558
+ readonly type: "string";
559
+ readonly minLength: 1;
560
+ };
561
+ readonly correlation: {
562
+ readonly $ref: "#/$defs/correlation";
563
+ };
564
+ readonly executionId: {
565
+ readonly $ref: "#/$defs/executionId";
566
+ };
567
+ readonly parentExecutionId: {
568
+ readonly oneOf: readonly [{
569
+ readonly $ref: "#/$defs/executionId";
570
+ }, {
571
+ readonly type: "null";
572
+ }];
573
+ };
574
+ };
575
+ readonly required: readonly ["ledgerVersion", "event", "ts", "executionId", "parentExecutionId", "childId", "receiptId", "workspaceId", "checkId", "treeSha"];
576
+ readonly additionalProperties: false;
577
+ };
578
+ readonly executionId: {
579
+ readonly type: "string";
580
+ 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}$";
581
+ };
582
+ readonly workflowFact: {
583
+ readonly type: "object";
584
+ readonly properties: {
585
+ readonly ledgerVersion: {
586
+ readonly const: 3;
587
+ };
588
+ readonly event: {
589
+ readonly const: "workflow_fact";
590
+ };
591
+ readonly ts: {
592
+ readonly $ref: "#/$defs/timestamp";
593
+ };
594
+ readonly factId: {
595
+ readonly type: "string";
596
+ readonly pattern: "^fact:[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}$";
597
+ };
598
+ readonly source: {
599
+ readonly type: "string";
600
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$";
601
+ };
602
+ readonly provenance: {
603
+ readonly enum: readonly ["planned", "observed", "controller_validated"];
604
+ };
605
+ readonly kind: {
606
+ readonly enum: readonly ["workflow_phase", "inline_skill", "transition"];
607
+ };
608
+ readonly subject: {
609
+ readonly type: "string";
610
+ readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$";
611
+ };
612
+ readonly state: {
613
+ readonly enum: readonly ["pending", "observed", "started", "completed", "blocked"];
614
+ };
615
+ readonly correlation: {
616
+ readonly allOf: readonly [{
617
+ readonly $ref: "#/$defs/correlation";
618
+ }, {
619
+ readonly type: "object";
620
+ readonly properties: {
621
+ readonly run_id: {
622
+ readonly type: "string";
623
+ readonly minLength: 1;
624
+ };
625
+ };
626
+ readonly required: readonly ["run_id"];
627
+ }];
628
+ };
629
+ };
630
+ readonly required: readonly ["ledgerVersion", "event", "ts", "factId", "source", "provenance", "kind", "subject", "state", "correlation"];
631
+ readonly additionalProperties: false;
632
+ readonly allOf: readonly [{
633
+ readonly if: {
634
+ readonly properties: {
635
+ readonly provenance: {
636
+ readonly const: "planned";
637
+ };
638
+ };
639
+ readonly required: readonly ["provenance"];
640
+ };
641
+ readonly then: {
642
+ readonly properties: {
643
+ readonly state: {
644
+ readonly const: "pending";
645
+ };
646
+ };
647
+ };
648
+ }, {
649
+ readonly if: {
650
+ readonly properties: {
651
+ readonly provenance: {
652
+ readonly const: "observed";
653
+ };
654
+ };
655
+ readonly required: readonly ["provenance"];
656
+ };
657
+ readonly then: {
658
+ readonly properties: {
659
+ readonly state: {
660
+ readonly const: "observed";
661
+ };
662
+ };
663
+ };
664
+ }, {
665
+ readonly if: {
666
+ readonly properties: {
667
+ readonly provenance: {
668
+ readonly const: "controller_validated";
669
+ };
670
+ };
671
+ readonly required: readonly ["provenance"];
672
+ };
673
+ readonly then: {
674
+ readonly properties: {
675
+ readonly state: {
676
+ readonly enum: readonly ["started", "completed", "blocked"];
677
+ };
678
+ };
679
+ };
680
+ }];
681
+ };
682
+ };
683
+ };