@aionis/manifest 0.1.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +178 -0
  3. package/README.md +170 -0
  4. package/dist/ast/types.d.ts +34 -0
  5. package/dist/ast/types.js +1 -0
  6. package/dist/cli.d.ts +2 -0
  7. package/dist/cli.js +122 -0
  8. package/dist/compile.d.ts +14 -0
  9. package/dist/compile.js +219 -0
  10. package/dist/contracts.d.ts +12610 -0
  11. package/dist/contracts.js +401 -0
  12. package/dist/diagnostics/types.d.ts +17 -0
  13. package/dist/diagnostics/types.js +1 -0
  14. package/dist/execute/localRuntime.d.ts +5 -0
  15. package/dist/execute/localRuntime.js +165 -0
  16. package/dist/execute/moduleRuntime.d.ts +25 -0
  17. package/dist/execute/moduleRuntime.js +352 -0
  18. package/dist/execute/types.d.ts +113 -0
  19. package/dist/execute/types.js +1 -0
  20. package/dist/execute-cli.d.ts +2 -0
  21. package/dist/execute-cli.js +112 -0
  22. package/dist/execute.d.ts +6 -0
  23. package/dist/execute.js +46 -0
  24. package/dist/graph/buildExecutionGraph.d.ts +8 -0
  25. package/dist/graph/buildExecutionGraph.js +69 -0
  26. package/dist/graph/types.d.ts +24 -0
  27. package/dist/graph/types.js +1 -0
  28. package/dist/handoff-store-cli.d.ts +2 -0
  29. package/dist/handoff-store-cli.js +139 -0
  30. package/dist/handoff-store.d.ts +103 -0
  31. package/dist/handoff-store.js +78 -0
  32. package/dist/index.d.ts +22 -0
  33. package/dist/index.js +21 -0
  34. package/dist/ir/types.d.ts +92 -0
  35. package/dist/ir/types.js +1 -0
  36. package/dist/parser/parseAst.d.ts +3 -0
  37. package/dist/parser/parseAst.js +207 -0
  38. package/dist/parser/payload.d.ts +6 -0
  39. package/dist/parser/payload.js +211 -0
  40. package/dist/plan/buildExecutionPlan.d.ts +9 -0
  41. package/dist/plan/buildExecutionPlan.js +98 -0
  42. package/dist/plan/types.d.ts +44 -0
  43. package/dist/plan/types.js +1 -0
  44. package/dist/publish-cli.d.ts +2 -0
  45. package/dist/publish-cli.js +249 -0
  46. package/dist/publish.d.ts +148 -0
  47. package/dist/publish.js +190 -0
  48. package/dist/recover-cli.d.ts +2 -0
  49. package/dist/recover-cli.js +258 -0
  50. package/dist/recover.d.ts +489 -0
  51. package/dist/recover.js +290 -0
  52. package/dist/refs/resolveRefs.d.ts +13 -0
  53. package/dist/refs/resolveRefs.js +104 -0
  54. package/dist/registry/loadModuleRegistry.d.ts +28 -0
  55. package/dist/registry/loadModuleRegistry.js +97 -0
  56. package/dist/registry/types.d.ts +20 -0
  57. package/dist/registry/types.js +2 -0
  58. package/dist/resume-cli.d.ts +2 -0
  59. package/dist/resume-cli.js +379 -0
  60. package/dist/resume.d.ts +2076 -0
  61. package/dist/resume.js +452 -0
  62. package/dist/run-cli.d.ts +2 -0
  63. package/dist/run-cli.js +119 -0
  64. package/dist/run.d.ts +9 -0
  65. package/dist/run.js +43 -0
  66. package/dist/runtime-handoff-cli.d.ts +2 -0
  67. package/dist/runtime-handoff-cli.js +179 -0
  68. package/dist/runtime-handoff.d.ts +914 -0
  69. package/dist/runtime-handoff.js +383 -0
  70. package/dist/scanner/scanSource.d.ts +9 -0
  71. package/dist/scanner/scanSource.js +43 -0
  72. package/dist/schema/validateIrSchemas.d.ts +3 -0
  73. package/dist/schema/validateIrSchemas.js +64 -0
  74. package/dist/validate-module-cli.d.ts +2 -0
  75. package/dist/validate-module-cli.js +93 -0
  76. package/dist/validate-registry-cli.d.ts +2 -0
  77. package/dist/validate-registry-cli.js +82 -0
  78. package/dist/validate.d.ts +52 -0
  79. package/dist/validate.js +91 -0
  80. package/fixtures/duplicate-doc.aionis.md +19 -0
  81. package/fixtures/fenced-example.aionis.md +27 -0
  82. package/fixtures/malformed-payload.aionis.md +9 -0
  83. package/fixtures/npm-installed-module-registry.json +17 -0
  84. package/fixtures/standalone-module-registry.json +13 -0
  85. package/fixtures/standalone-runner-plan.json +51 -0
  86. package/fixtures/standalone-runner.aionis.md +29 -0
  87. package/fixtures/unresolved-ref.aionis.md +14 -0
  88. package/fixtures/valid-minimal.aionis.md +24 -0
  89. package/fixtures/valid-workflow.aionis.md +29 -0
  90. package/official-modules/copy-summary/CHANGELOG.md +6 -0
  91. package/official-modules/copy-summary/README.md +43 -0
  92. package/official-modules/copy-summary/index.mjs +41 -0
  93. package/official-modules/copy-summary/package.json +31 -0
  94. package/official-modules/json-transform/CHANGELOG.md +6 -0
  95. package/official-modules/json-transform/README.md +51 -0
  96. package/official-modules/json-transform/index.mjs +53 -0
  97. package/official-modules/json-transform/package.json +31 -0
  98. package/official-modules/research-claims/CHANGELOG.md +6 -0
  99. package/official-modules/research-claims/README.md +47 -0
  100. package/official-modules/research-claims/index.mjs +44 -0
  101. package/official-modules/research-claims/package.json +31 -0
  102. package/package.json +74 -0
@@ -0,0 +1,914 @@
1
+ import { z } from "zod";
2
+ import type { CompileResult } from "./compile.js";
3
+ import type { ExecutionResultV1 } from "./execute/types.js";
4
+ export declare const AIONIS_MANIFEST_RUNTIME_HANDOFF_VERSION: "aionis_manifest_runtime_handoff_v1";
5
+ declare const RuntimeExecutionStageSchema: z.ZodEnum<["triage", "patch", "review", "resume"]>;
6
+ declare const RuntimeExecutionRoleSchema: z.ZodEnum<["orchestrator", "triage", "patch", "review", "resume"]>;
7
+ export declare const RuntimeReviewerContractSchema: z.ZodObject<{
8
+ standard: z.ZodString;
9
+ required_outputs: z.ZodArray<z.ZodString, "many">;
10
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
11
+ rollback_required: z.ZodBoolean;
12
+ }, "strip", z.ZodTypeAny, {
13
+ standard: string;
14
+ required_outputs: string[];
15
+ acceptance_checks: string[];
16
+ rollback_required: boolean;
17
+ }, {
18
+ standard: string;
19
+ required_outputs: string[];
20
+ acceptance_checks: string[];
21
+ rollback_required: boolean;
22
+ }>;
23
+ export declare const RuntimeResumeAnchorSchema: z.ZodObject<{
24
+ anchor: z.ZodString;
25
+ file_path: z.ZodNullable<z.ZodString>;
26
+ symbol: z.ZodNullable<z.ZodString>;
27
+ repo_root: z.ZodNullable<z.ZodString>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ symbol: string | null;
30
+ anchor: string;
31
+ file_path: string | null;
32
+ repo_root: string | null;
33
+ }, {
34
+ symbol: string | null;
35
+ anchor: string;
36
+ file_path: string | null;
37
+ repo_root: string | null;
38
+ }>;
39
+ export declare const RuntimeExecutionStateSchema: z.ZodObject<{
40
+ state_id: z.ZodString;
41
+ scope: z.ZodString;
42
+ task_brief: z.ZodString;
43
+ current_stage: z.ZodEnum<["triage", "patch", "review", "resume"]>;
44
+ active_role: z.ZodEnum<["orchestrator", "triage", "patch", "review", "resume"]>;
45
+ owned_files: z.ZodArray<z.ZodString, "many">;
46
+ modified_files: z.ZodArray<z.ZodString, "many">;
47
+ pending_validations: z.ZodArray<z.ZodString, "many">;
48
+ completed_validations: z.ZodArray<z.ZodString, "many">;
49
+ last_accepted_hypothesis: z.ZodNullable<z.ZodString>;
50
+ rejected_paths: z.ZodArray<z.ZodString, "many">;
51
+ unresolved_blockers: z.ZodArray<z.ZodString, "many">;
52
+ rollback_notes: z.ZodArray<z.ZodString, "many">;
53
+ reviewer_contract: z.ZodNullable<z.ZodObject<{
54
+ standard: z.ZodString;
55
+ required_outputs: z.ZodArray<z.ZodString, "many">;
56
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
57
+ rollback_required: z.ZodBoolean;
58
+ }, "strip", z.ZodTypeAny, {
59
+ standard: string;
60
+ required_outputs: string[];
61
+ acceptance_checks: string[];
62
+ rollback_required: boolean;
63
+ }, {
64
+ standard: string;
65
+ required_outputs: string[];
66
+ acceptance_checks: string[];
67
+ rollback_required: boolean;
68
+ }>>;
69
+ resume_anchor: z.ZodNullable<z.ZodObject<{
70
+ anchor: z.ZodString;
71
+ file_path: z.ZodNullable<z.ZodString>;
72
+ symbol: z.ZodNullable<z.ZodString>;
73
+ repo_root: z.ZodNullable<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ symbol: string | null;
76
+ anchor: string;
77
+ file_path: string | null;
78
+ repo_root: string | null;
79
+ }, {
80
+ symbol: string | null;
81
+ anchor: string;
82
+ file_path: string | null;
83
+ repo_root: string | null;
84
+ }>>;
85
+ updated_at: z.ZodString;
86
+ version: z.ZodLiteral<1>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ version: 1;
89
+ state_id: string;
90
+ scope: string;
91
+ task_brief: string;
92
+ current_stage: "triage" | "patch" | "review" | "resume";
93
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
94
+ owned_files: string[];
95
+ modified_files: string[];
96
+ pending_validations: string[];
97
+ completed_validations: string[];
98
+ last_accepted_hypothesis: string | null;
99
+ rejected_paths: string[];
100
+ unresolved_blockers: string[];
101
+ rollback_notes: string[];
102
+ reviewer_contract: {
103
+ standard: string;
104
+ required_outputs: string[];
105
+ acceptance_checks: string[];
106
+ rollback_required: boolean;
107
+ } | null;
108
+ resume_anchor: {
109
+ symbol: string | null;
110
+ anchor: string;
111
+ file_path: string | null;
112
+ repo_root: string | null;
113
+ } | null;
114
+ updated_at: string;
115
+ }, {
116
+ version: 1;
117
+ state_id: string;
118
+ scope: string;
119
+ task_brief: string;
120
+ current_stage: "triage" | "patch" | "review" | "resume";
121
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
122
+ owned_files: string[];
123
+ modified_files: string[];
124
+ pending_validations: string[];
125
+ completed_validations: string[];
126
+ last_accepted_hypothesis: string | null;
127
+ rejected_paths: string[];
128
+ unresolved_blockers: string[];
129
+ rollback_notes: string[];
130
+ reviewer_contract: {
131
+ standard: string;
132
+ required_outputs: string[];
133
+ acceptance_checks: string[];
134
+ rollback_required: boolean;
135
+ } | null;
136
+ resume_anchor: {
137
+ symbol: string | null;
138
+ anchor: string;
139
+ file_path: string | null;
140
+ repo_root: string | null;
141
+ } | null;
142
+ updated_at: string;
143
+ }>;
144
+ export declare const RuntimeExecutionPacketSchema: z.ZodObject<{
145
+ version: z.ZodLiteral<1>;
146
+ state_id: z.ZodString;
147
+ current_stage: z.ZodEnum<["triage", "patch", "review", "resume"]>;
148
+ active_role: z.ZodEnum<["orchestrator", "triage", "patch", "review", "resume"]>;
149
+ task_brief: z.ZodString;
150
+ target_files: z.ZodArray<z.ZodString, "many">;
151
+ next_action: z.ZodNullable<z.ZodString>;
152
+ hard_constraints: z.ZodArray<z.ZodString, "many">;
153
+ accepted_facts: z.ZodArray<z.ZodString, "many">;
154
+ rejected_paths: z.ZodArray<z.ZodString, "many">;
155
+ pending_validations: z.ZodArray<z.ZodString, "many">;
156
+ unresolved_blockers: z.ZodArray<z.ZodString, "many">;
157
+ rollback_notes: z.ZodArray<z.ZodString, "many">;
158
+ review_contract: z.ZodNullable<z.ZodObject<{
159
+ standard: z.ZodString;
160
+ required_outputs: z.ZodArray<z.ZodString, "many">;
161
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
162
+ rollback_required: z.ZodBoolean;
163
+ }, "strip", z.ZodTypeAny, {
164
+ standard: string;
165
+ required_outputs: string[];
166
+ acceptance_checks: string[];
167
+ rollback_required: boolean;
168
+ }, {
169
+ standard: string;
170
+ required_outputs: string[];
171
+ acceptance_checks: string[];
172
+ rollback_required: boolean;
173
+ }>>;
174
+ resume_anchor: z.ZodNullable<z.ZodObject<{
175
+ anchor: z.ZodString;
176
+ file_path: z.ZodNullable<z.ZodString>;
177
+ symbol: z.ZodNullable<z.ZodString>;
178
+ repo_root: z.ZodNullable<z.ZodString>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ symbol: string | null;
181
+ anchor: string;
182
+ file_path: string | null;
183
+ repo_root: string | null;
184
+ }, {
185
+ symbol: string | null;
186
+ anchor: string;
187
+ file_path: string | null;
188
+ repo_root: string | null;
189
+ }>>;
190
+ artifact_refs: z.ZodArray<z.ZodString, "many">;
191
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
192
+ }, "strip", z.ZodTypeAny, {
193
+ version: 1;
194
+ state_id: string;
195
+ task_brief: string;
196
+ current_stage: "triage" | "patch" | "review" | "resume";
197
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
198
+ pending_validations: string[];
199
+ rejected_paths: string[];
200
+ unresolved_blockers: string[];
201
+ rollback_notes: string[];
202
+ resume_anchor: {
203
+ symbol: string | null;
204
+ anchor: string;
205
+ file_path: string | null;
206
+ repo_root: string | null;
207
+ } | null;
208
+ target_files: string[];
209
+ next_action: string | null;
210
+ hard_constraints: string[];
211
+ accepted_facts: string[];
212
+ review_contract: {
213
+ standard: string;
214
+ required_outputs: string[];
215
+ acceptance_checks: string[];
216
+ rollback_required: boolean;
217
+ } | null;
218
+ artifact_refs: string[];
219
+ evidence_refs: string[];
220
+ }, {
221
+ version: 1;
222
+ state_id: string;
223
+ task_brief: string;
224
+ current_stage: "triage" | "patch" | "review" | "resume";
225
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
226
+ pending_validations: string[];
227
+ rejected_paths: string[];
228
+ unresolved_blockers: string[];
229
+ rollback_notes: string[];
230
+ resume_anchor: {
231
+ symbol: string | null;
232
+ anchor: string;
233
+ file_path: string | null;
234
+ repo_root: string | null;
235
+ } | null;
236
+ target_files: string[];
237
+ next_action: string | null;
238
+ hard_constraints: string[];
239
+ accepted_facts: string[];
240
+ review_contract: {
241
+ standard: string;
242
+ required_outputs: string[];
243
+ acceptance_checks: string[];
244
+ rollback_required: boolean;
245
+ } | null;
246
+ artifact_refs: string[];
247
+ evidence_refs: string[];
248
+ }>;
249
+ export declare const RuntimeExecutionReadyHandoffSchema: z.ZodObject<{
250
+ anchor: z.ZodString;
251
+ handoff_kind: z.ZodLiteral<"task_handoff">;
252
+ summary: z.ZodNullable<z.ZodString>;
253
+ handoff_text: z.ZodString;
254
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
255
+ target_files: z.ZodArray<z.ZodString, "many">;
256
+ next_action: z.ZodNullable<z.ZodString>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ summary: string | null;
259
+ anchor: string;
260
+ acceptance_checks: string[];
261
+ target_files: string[];
262
+ next_action: string | null;
263
+ handoff_kind: "task_handoff";
264
+ handoff_text: string;
265
+ }, {
266
+ summary: string | null;
267
+ anchor: string;
268
+ acceptance_checks: string[];
269
+ target_files: string[];
270
+ next_action: string | null;
271
+ handoff_kind: "task_handoff";
272
+ handoff_text: string;
273
+ }>;
274
+ export declare const RuntimeGraphSummarySchema: z.ZodObject<{
275
+ graph_id: z.ZodNullable<z.ZodString>;
276
+ execution_count: z.ZodNumber;
277
+ graph_node_count: z.ZodNumber;
278
+ graph_edge_count: z.ZodNumber;
279
+ module_refs: z.ZodArray<z.ZodString, "many">;
280
+ output_refs: z.ZodArray<z.ZodString, "many">;
281
+ expected_outputs: z.ZodArray<z.ZodString, "many">;
282
+ artifact_count: z.ZodNumber;
283
+ evidence_count: z.ZodNumber;
284
+ }, "strip", z.ZodTypeAny, {
285
+ graph_id: string | null;
286
+ expected_outputs: string[];
287
+ execution_count: number;
288
+ graph_node_count: number;
289
+ graph_edge_count: number;
290
+ module_refs: string[];
291
+ output_refs: string[];
292
+ artifact_count: number;
293
+ evidence_count: number;
294
+ }, {
295
+ graph_id: string | null;
296
+ expected_outputs: string[];
297
+ execution_count: number;
298
+ graph_node_count: number;
299
+ graph_edge_count: number;
300
+ module_refs: string[];
301
+ output_refs: string[];
302
+ artifact_count: number;
303
+ evidence_count: number;
304
+ }>;
305
+ export declare const RuntimeExecutionArtifactSchema: z.ZodObject<{
306
+ ref: z.ZodString;
307
+ execution_id: z.ZodString;
308
+ module: z.ZodOptional<z.ZodString>;
309
+ value: z.ZodUnknown;
310
+ }, "strip", z.ZodTypeAny, {
311
+ execution_id: string;
312
+ ref: string;
313
+ value?: unknown;
314
+ module?: string | undefined;
315
+ }, {
316
+ execution_id: string;
317
+ ref: string;
318
+ value?: unknown;
319
+ module?: string | undefined;
320
+ }>;
321
+ export declare const RuntimeExecutionEvidenceSchema: z.ZodObject<{
322
+ ref: z.ZodString;
323
+ execution_id: z.ZodString;
324
+ module: z.ZodOptional<z.ZodString>;
325
+ value: z.ZodUnknown;
326
+ }, "strip", z.ZodTypeAny, {
327
+ execution_id: string;
328
+ ref: string;
329
+ value?: unknown;
330
+ module?: string | undefined;
331
+ }, {
332
+ execution_id: string;
333
+ ref: string;
334
+ value?: unknown;
335
+ module?: string | undefined;
336
+ }>;
337
+ export declare const RuntimeExecutionResultSummarySchema: z.ZodObject<{
338
+ runtime_id: z.ZodString;
339
+ status: z.ZodEnum<["success", "failed"]>;
340
+ output_refs: z.ZodArray<z.ZodString, "many">;
341
+ artifact_count: z.ZodNumber;
342
+ evidence_count: z.ZodNumber;
343
+ }, "strip", z.ZodTypeAny, {
344
+ status: "success" | "failed";
345
+ runtime_id: string;
346
+ output_refs: string[];
347
+ artifact_count: number;
348
+ evidence_count: number;
349
+ }, {
350
+ status: "success" | "failed";
351
+ runtime_id: string;
352
+ output_refs: string[];
353
+ artifact_count: number;
354
+ evidence_count: number;
355
+ }>;
356
+ export declare const AionisManifestRuntimeHandoffSchema: z.ZodObject<{
357
+ runtime_handoff_version: z.ZodLiteral<"aionis_manifest_runtime_handoff_v1">;
358
+ source_compile_result_version: z.ZodLiteral<"aionis_manifest_compile_result_v1">;
359
+ generated_at: z.ZodString;
360
+ source_doc_id: z.ZodString;
361
+ source_doc_version: z.ZodString;
362
+ scope: z.ZodString;
363
+ task_brief: z.ZodString;
364
+ graph_summary: z.ZodObject<{
365
+ graph_id: z.ZodNullable<z.ZodString>;
366
+ execution_count: z.ZodNumber;
367
+ graph_node_count: z.ZodNumber;
368
+ graph_edge_count: z.ZodNumber;
369
+ module_refs: z.ZodArray<z.ZodString, "many">;
370
+ output_refs: z.ZodArray<z.ZodString, "many">;
371
+ expected_outputs: z.ZodArray<z.ZodString, "many">;
372
+ artifact_count: z.ZodNumber;
373
+ evidence_count: z.ZodNumber;
374
+ }, "strip", z.ZodTypeAny, {
375
+ graph_id: string | null;
376
+ expected_outputs: string[];
377
+ execution_count: number;
378
+ graph_node_count: number;
379
+ graph_edge_count: number;
380
+ module_refs: string[];
381
+ output_refs: string[];
382
+ artifact_count: number;
383
+ evidence_count: number;
384
+ }, {
385
+ graph_id: string | null;
386
+ expected_outputs: string[];
387
+ execution_count: number;
388
+ graph_node_count: number;
389
+ graph_edge_count: number;
390
+ module_refs: string[];
391
+ output_refs: string[];
392
+ artifact_count: number;
393
+ evidence_count: number;
394
+ }>;
395
+ execution_result_summary: z.ZodNullable<z.ZodObject<{
396
+ runtime_id: z.ZodString;
397
+ status: z.ZodEnum<["success", "failed"]>;
398
+ output_refs: z.ZodArray<z.ZodString, "many">;
399
+ artifact_count: z.ZodNumber;
400
+ evidence_count: z.ZodNumber;
401
+ }, "strip", z.ZodTypeAny, {
402
+ status: "success" | "failed";
403
+ runtime_id: string;
404
+ output_refs: string[];
405
+ artifact_count: number;
406
+ evidence_count: number;
407
+ }, {
408
+ status: "success" | "failed";
409
+ runtime_id: string;
410
+ output_refs: string[];
411
+ artifact_count: number;
412
+ evidence_count: number;
413
+ }>>;
414
+ execution_artifacts: z.ZodArray<z.ZodObject<{
415
+ ref: z.ZodString;
416
+ execution_id: z.ZodString;
417
+ module: z.ZodOptional<z.ZodString>;
418
+ value: z.ZodUnknown;
419
+ }, "strip", z.ZodTypeAny, {
420
+ execution_id: string;
421
+ ref: string;
422
+ value?: unknown;
423
+ module?: string | undefined;
424
+ }, {
425
+ execution_id: string;
426
+ ref: string;
427
+ value?: unknown;
428
+ module?: string | undefined;
429
+ }>, "many">;
430
+ execution_evidence: z.ZodArray<z.ZodObject<{
431
+ ref: z.ZodString;
432
+ execution_id: z.ZodString;
433
+ module: z.ZodOptional<z.ZodString>;
434
+ value: z.ZodUnknown;
435
+ }, "strip", z.ZodTypeAny, {
436
+ execution_id: string;
437
+ ref: string;
438
+ value?: unknown;
439
+ module?: string | undefined;
440
+ }, {
441
+ execution_id: string;
442
+ ref: string;
443
+ value?: unknown;
444
+ module?: string | undefined;
445
+ }>, "many">;
446
+ execution_state_v1: z.ZodObject<{
447
+ state_id: z.ZodString;
448
+ scope: z.ZodString;
449
+ task_brief: z.ZodString;
450
+ current_stage: z.ZodEnum<["triage", "patch", "review", "resume"]>;
451
+ active_role: z.ZodEnum<["orchestrator", "triage", "patch", "review", "resume"]>;
452
+ owned_files: z.ZodArray<z.ZodString, "many">;
453
+ modified_files: z.ZodArray<z.ZodString, "many">;
454
+ pending_validations: z.ZodArray<z.ZodString, "many">;
455
+ completed_validations: z.ZodArray<z.ZodString, "many">;
456
+ last_accepted_hypothesis: z.ZodNullable<z.ZodString>;
457
+ rejected_paths: z.ZodArray<z.ZodString, "many">;
458
+ unresolved_blockers: z.ZodArray<z.ZodString, "many">;
459
+ rollback_notes: z.ZodArray<z.ZodString, "many">;
460
+ reviewer_contract: z.ZodNullable<z.ZodObject<{
461
+ standard: z.ZodString;
462
+ required_outputs: z.ZodArray<z.ZodString, "many">;
463
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
464
+ rollback_required: z.ZodBoolean;
465
+ }, "strip", z.ZodTypeAny, {
466
+ standard: string;
467
+ required_outputs: string[];
468
+ acceptance_checks: string[];
469
+ rollback_required: boolean;
470
+ }, {
471
+ standard: string;
472
+ required_outputs: string[];
473
+ acceptance_checks: string[];
474
+ rollback_required: boolean;
475
+ }>>;
476
+ resume_anchor: z.ZodNullable<z.ZodObject<{
477
+ anchor: z.ZodString;
478
+ file_path: z.ZodNullable<z.ZodString>;
479
+ symbol: z.ZodNullable<z.ZodString>;
480
+ repo_root: z.ZodNullable<z.ZodString>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ symbol: string | null;
483
+ anchor: string;
484
+ file_path: string | null;
485
+ repo_root: string | null;
486
+ }, {
487
+ symbol: string | null;
488
+ anchor: string;
489
+ file_path: string | null;
490
+ repo_root: string | null;
491
+ }>>;
492
+ updated_at: z.ZodString;
493
+ version: z.ZodLiteral<1>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ version: 1;
496
+ state_id: string;
497
+ scope: string;
498
+ task_brief: string;
499
+ current_stage: "triage" | "patch" | "review" | "resume";
500
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
501
+ owned_files: string[];
502
+ modified_files: string[];
503
+ pending_validations: string[];
504
+ completed_validations: string[];
505
+ last_accepted_hypothesis: string | null;
506
+ rejected_paths: string[];
507
+ unresolved_blockers: string[];
508
+ rollback_notes: string[];
509
+ reviewer_contract: {
510
+ standard: string;
511
+ required_outputs: string[];
512
+ acceptance_checks: string[];
513
+ rollback_required: boolean;
514
+ } | null;
515
+ resume_anchor: {
516
+ symbol: string | null;
517
+ anchor: string;
518
+ file_path: string | null;
519
+ repo_root: string | null;
520
+ } | null;
521
+ updated_at: string;
522
+ }, {
523
+ version: 1;
524
+ state_id: string;
525
+ scope: string;
526
+ task_brief: string;
527
+ current_stage: "triage" | "patch" | "review" | "resume";
528
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
529
+ owned_files: string[];
530
+ modified_files: string[];
531
+ pending_validations: string[];
532
+ completed_validations: string[];
533
+ last_accepted_hypothesis: string | null;
534
+ rejected_paths: string[];
535
+ unresolved_blockers: string[];
536
+ rollback_notes: string[];
537
+ reviewer_contract: {
538
+ standard: string;
539
+ required_outputs: string[];
540
+ acceptance_checks: string[];
541
+ rollback_required: boolean;
542
+ } | null;
543
+ resume_anchor: {
544
+ symbol: string | null;
545
+ anchor: string;
546
+ file_path: string | null;
547
+ repo_root: string | null;
548
+ } | null;
549
+ updated_at: string;
550
+ }>;
551
+ execution_packet_v1: z.ZodObject<{
552
+ version: z.ZodLiteral<1>;
553
+ state_id: z.ZodString;
554
+ current_stage: z.ZodEnum<["triage", "patch", "review", "resume"]>;
555
+ active_role: z.ZodEnum<["orchestrator", "triage", "patch", "review", "resume"]>;
556
+ task_brief: z.ZodString;
557
+ target_files: z.ZodArray<z.ZodString, "many">;
558
+ next_action: z.ZodNullable<z.ZodString>;
559
+ hard_constraints: z.ZodArray<z.ZodString, "many">;
560
+ accepted_facts: z.ZodArray<z.ZodString, "many">;
561
+ rejected_paths: z.ZodArray<z.ZodString, "many">;
562
+ pending_validations: z.ZodArray<z.ZodString, "many">;
563
+ unresolved_blockers: z.ZodArray<z.ZodString, "many">;
564
+ rollback_notes: z.ZodArray<z.ZodString, "many">;
565
+ review_contract: z.ZodNullable<z.ZodObject<{
566
+ standard: z.ZodString;
567
+ required_outputs: z.ZodArray<z.ZodString, "many">;
568
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
569
+ rollback_required: z.ZodBoolean;
570
+ }, "strip", z.ZodTypeAny, {
571
+ standard: string;
572
+ required_outputs: string[];
573
+ acceptance_checks: string[];
574
+ rollback_required: boolean;
575
+ }, {
576
+ standard: string;
577
+ required_outputs: string[];
578
+ acceptance_checks: string[];
579
+ rollback_required: boolean;
580
+ }>>;
581
+ resume_anchor: z.ZodNullable<z.ZodObject<{
582
+ anchor: z.ZodString;
583
+ file_path: z.ZodNullable<z.ZodString>;
584
+ symbol: z.ZodNullable<z.ZodString>;
585
+ repo_root: z.ZodNullable<z.ZodString>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ symbol: string | null;
588
+ anchor: string;
589
+ file_path: string | null;
590
+ repo_root: string | null;
591
+ }, {
592
+ symbol: string | null;
593
+ anchor: string;
594
+ file_path: string | null;
595
+ repo_root: string | null;
596
+ }>>;
597
+ artifact_refs: z.ZodArray<z.ZodString, "many">;
598
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
599
+ }, "strip", z.ZodTypeAny, {
600
+ version: 1;
601
+ state_id: string;
602
+ task_brief: string;
603
+ current_stage: "triage" | "patch" | "review" | "resume";
604
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
605
+ pending_validations: string[];
606
+ rejected_paths: string[];
607
+ unresolved_blockers: string[];
608
+ rollback_notes: string[];
609
+ resume_anchor: {
610
+ symbol: string | null;
611
+ anchor: string;
612
+ file_path: string | null;
613
+ repo_root: string | null;
614
+ } | null;
615
+ target_files: string[];
616
+ next_action: string | null;
617
+ hard_constraints: string[];
618
+ accepted_facts: string[];
619
+ review_contract: {
620
+ standard: string;
621
+ required_outputs: string[];
622
+ acceptance_checks: string[];
623
+ rollback_required: boolean;
624
+ } | null;
625
+ artifact_refs: string[];
626
+ evidence_refs: string[];
627
+ }, {
628
+ version: 1;
629
+ state_id: string;
630
+ task_brief: string;
631
+ current_stage: "triage" | "patch" | "review" | "resume";
632
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
633
+ pending_validations: string[];
634
+ rejected_paths: string[];
635
+ unresolved_blockers: string[];
636
+ rollback_notes: string[];
637
+ resume_anchor: {
638
+ symbol: string | null;
639
+ anchor: string;
640
+ file_path: string | null;
641
+ repo_root: string | null;
642
+ } | null;
643
+ target_files: string[];
644
+ next_action: string | null;
645
+ hard_constraints: string[];
646
+ accepted_facts: string[];
647
+ review_contract: {
648
+ standard: string;
649
+ required_outputs: string[];
650
+ acceptance_checks: string[];
651
+ rollback_required: boolean;
652
+ } | null;
653
+ artifact_refs: string[];
654
+ evidence_refs: string[];
655
+ }>;
656
+ execution_ready_handoff: z.ZodObject<{
657
+ anchor: z.ZodString;
658
+ handoff_kind: z.ZodLiteral<"task_handoff">;
659
+ summary: z.ZodNullable<z.ZodString>;
660
+ handoff_text: z.ZodString;
661
+ acceptance_checks: z.ZodArray<z.ZodString, "many">;
662
+ target_files: z.ZodArray<z.ZodString, "many">;
663
+ next_action: z.ZodNullable<z.ZodString>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ summary: string | null;
666
+ anchor: string;
667
+ acceptance_checks: string[];
668
+ target_files: string[];
669
+ next_action: string | null;
670
+ handoff_kind: "task_handoff";
671
+ handoff_text: string;
672
+ }, {
673
+ summary: string | null;
674
+ anchor: string;
675
+ acceptance_checks: string[];
676
+ target_files: string[];
677
+ next_action: string | null;
678
+ handoff_kind: "task_handoff";
679
+ handoff_text: string;
680
+ }>;
681
+ }, "strip", z.ZodTypeAny, {
682
+ generated_at: string;
683
+ scope: string;
684
+ task_brief: string;
685
+ runtime_handoff_version: "aionis_manifest_runtime_handoff_v1";
686
+ source_compile_result_version: "aionis_manifest_compile_result_v1";
687
+ source_doc_id: string;
688
+ source_doc_version: string;
689
+ graph_summary: {
690
+ graph_id: string | null;
691
+ expected_outputs: string[];
692
+ execution_count: number;
693
+ graph_node_count: number;
694
+ graph_edge_count: number;
695
+ module_refs: string[];
696
+ output_refs: string[];
697
+ artifact_count: number;
698
+ evidence_count: number;
699
+ };
700
+ execution_result_summary: {
701
+ status: "success" | "failed";
702
+ runtime_id: string;
703
+ output_refs: string[];
704
+ artifact_count: number;
705
+ evidence_count: number;
706
+ } | null;
707
+ execution_artifacts: {
708
+ execution_id: string;
709
+ ref: string;
710
+ value?: unknown;
711
+ module?: string | undefined;
712
+ }[];
713
+ execution_evidence: {
714
+ execution_id: string;
715
+ ref: string;
716
+ value?: unknown;
717
+ module?: string | undefined;
718
+ }[];
719
+ execution_state_v1: {
720
+ version: 1;
721
+ state_id: string;
722
+ scope: string;
723
+ task_brief: string;
724
+ current_stage: "triage" | "patch" | "review" | "resume";
725
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
726
+ owned_files: string[];
727
+ modified_files: string[];
728
+ pending_validations: string[];
729
+ completed_validations: string[];
730
+ last_accepted_hypothesis: string | null;
731
+ rejected_paths: string[];
732
+ unresolved_blockers: string[];
733
+ rollback_notes: string[];
734
+ reviewer_contract: {
735
+ standard: string;
736
+ required_outputs: string[];
737
+ acceptance_checks: string[];
738
+ rollback_required: boolean;
739
+ } | null;
740
+ resume_anchor: {
741
+ symbol: string | null;
742
+ anchor: string;
743
+ file_path: string | null;
744
+ repo_root: string | null;
745
+ } | null;
746
+ updated_at: string;
747
+ };
748
+ execution_packet_v1: {
749
+ version: 1;
750
+ state_id: string;
751
+ task_brief: string;
752
+ current_stage: "triage" | "patch" | "review" | "resume";
753
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
754
+ pending_validations: string[];
755
+ rejected_paths: string[];
756
+ unresolved_blockers: string[];
757
+ rollback_notes: string[];
758
+ resume_anchor: {
759
+ symbol: string | null;
760
+ anchor: string;
761
+ file_path: string | null;
762
+ repo_root: string | null;
763
+ } | null;
764
+ target_files: string[];
765
+ next_action: string | null;
766
+ hard_constraints: string[];
767
+ accepted_facts: string[];
768
+ review_contract: {
769
+ standard: string;
770
+ required_outputs: string[];
771
+ acceptance_checks: string[];
772
+ rollback_required: boolean;
773
+ } | null;
774
+ artifact_refs: string[];
775
+ evidence_refs: string[];
776
+ };
777
+ execution_ready_handoff: {
778
+ summary: string | null;
779
+ anchor: string;
780
+ acceptance_checks: string[];
781
+ target_files: string[];
782
+ next_action: string | null;
783
+ handoff_kind: "task_handoff";
784
+ handoff_text: string;
785
+ };
786
+ }, {
787
+ generated_at: string;
788
+ scope: string;
789
+ task_brief: string;
790
+ runtime_handoff_version: "aionis_manifest_runtime_handoff_v1";
791
+ source_compile_result_version: "aionis_manifest_compile_result_v1";
792
+ source_doc_id: string;
793
+ source_doc_version: string;
794
+ graph_summary: {
795
+ graph_id: string | null;
796
+ expected_outputs: string[];
797
+ execution_count: number;
798
+ graph_node_count: number;
799
+ graph_edge_count: number;
800
+ module_refs: string[];
801
+ output_refs: string[];
802
+ artifact_count: number;
803
+ evidence_count: number;
804
+ };
805
+ execution_result_summary: {
806
+ status: "success" | "failed";
807
+ runtime_id: string;
808
+ output_refs: string[];
809
+ artifact_count: number;
810
+ evidence_count: number;
811
+ } | null;
812
+ execution_artifacts: {
813
+ execution_id: string;
814
+ ref: string;
815
+ value?: unknown;
816
+ module?: string | undefined;
817
+ }[];
818
+ execution_evidence: {
819
+ execution_id: string;
820
+ ref: string;
821
+ value?: unknown;
822
+ module?: string | undefined;
823
+ }[];
824
+ execution_state_v1: {
825
+ version: 1;
826
+ state_id: string;
827
+ scope: string;
828
+ task_brief: string;
829
+ current_stage: "triage" | "patch" | "review" | "resume";
830
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
831
+ owned_files: string[];
832
+ modified_files: string[];
833
+ pending_validations: string[];
834
+ completed_validations: string[];
835
+ last_accepted_hypothesis: string | null;
836
+ rejected_paths: string[];
837
+ unresolved_blockers: string[];
838
+ rollback_notes: string[];
839
+ reviewer_contract: {
840
+ standard: string;
841
+ required_outputs: string[];
842
+ acceptance_checks: string[];
843
+ rollback_required: boolean;
844
+ } | null;
845
+ resume_anchor: {
846
+ symbol: string | null;
847
+ anchor: string;
848
+ file_path: string | null;
849
+ repo_root: string | null;
850
+ } | null;
851
+ updated_at: string;
852
+ };
853
+ execution_packet_v1: {
854
+ version: 1;
855
+ state_id: string;
856
+ task_brief: string;
857
+ current_stage: "triage" | "patch" | "review" | "resume";
858
+ active_role: "triage" | "patch" | "review" | "resume" | "orchestrator";
859
+ pending_validations: string[];
860
+ rejected_paths: string[];
861
+ unresolved_blockers: string[];
862
+ rollback_notes: string[];
863
+ resume_anchor: {
864
+ symbol: string | null;
865
+ anchor: string;
866
+ file_path: string | null;
867
+ repo_root: string | null;
868
+ } | null;
869
+ target_files: string[];
870
+ next_action: string | null;
871
+ hard_constraints: string[];
872
+ accepted_facts: string[];
873
+ review_contract: {
874
+ standard: string;
875
+ required_outputs: string[];
876
+ acceptance_checks: string[];
877
+ rollback_required: boolean;
878
+ } | null;
879
+ artifact_refs: string[];
880
+ evidence_refs: string[];
881
+ };
882
+ execution_ready_handoff: {
883
+ summary: string | null;
884
+ anchor: string;
885
+ acceptance_checks: string[];
886
+ target_files: string[];
887
+ next_action: string | null;
888
+ handoff_kind: "task_handoff";
889
+ handoff_text: string;
890
+ };
891
+ }>;
892
+ export type AionisManifestRuntimeHandoffV1 = z.infer<typeof AionisManifestRuntimeHandoffSchema>;
893
+ export declare class AionisManifestRuntimeHandoffError extends Error {
894
+ constructor(message: string);
895
+ }
896
+ type RuntimeHandoffOptions = {
897
+ executionResult?: ExecutionResultV1 | null;
898
+ scope?: string;
899
+ generatedAt?: string;
900
+ currentStage?: z.infer<typeof RuntimeExecutionStageSchema>;
901
+ activeRole?: z.infer<typeof RuntimeExecutionRoleSchema>;
902
+ repoRoot?: string | null;
903
+ filePath?: string | null;
904
+ symbol?: string | null;
905
+ requireErrorFree?: boolean;
906
+ };
907
+ export declare function buildRuntimeHandoffV1(args: {
908
+ inputPath: string;
909
+ result: CompileResult;
910
+ } & RuntimeHandoffOptions): AionisManifestRuntimeHandoffV1;
911
+ export declare function buildRuntimeHandoffV1FromEnvelope(args: {
912
+ envelope: unknown;
913
+ } & RuntimeHandoffOptions): AionisManifestRuntimeHandoffV1;
914
+ export {};