agentweaver 0.1.14 → 0.1.16

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 (100) hide show
  1. package/README.md +29 -7
  2. package/dist/artifact-manifest.js +219 -0
  3. package/dist/artifacts.js +21 -1
  4. package/dist/doctor/checks/cwd-context.js +4 -3
  5. package/dist/doctor/checks/env-diagnostics.js +193 -71
  6. package/dist/doctor/checks/flow-readiness.js +212 -203
  7. package/dist/doctor/index.js +1 -1
  8. package/dist/doctor/orchestrator.js +18 -7
  9. package/dist/doctor/runner.js +9 -8
  10. package/dist/doctor/types.js +12 -0
  11. package/dist/flow-state.js +75 -15
  12. package/dist/index.js +499 -199
  13. package/dist/interactive/blessed-session.js +361 -0
  14. package/dist/interactive/controller.js +1293 -0
  15. package/dist/interactive/create-interactive-session.js +5 -0
  16. package/dist/interactive/ink/index.js +576 -0
  17. package/dist/interactive/progress.js +245 -0
  18. package/dist/interactive/selectors.js +14 -0
  19. package/dist/interactive/session.js +1 -0
  20. package/dist/interactive/state.js +34 -0
  21. package/dist/interactive/tree.js +155 -0
  22. package/dist/interactive/types.js +1 -0
  23. package/dist/interactive/view-model.js +1 -0
  24. package/dist/interactive-ui.js +159 -194
  25. package/dist/pipeline/context.js +1 -0
  26. package/dist/pipeline/declarative-flow-runner.js +212 -6
  27. package/dist/pipeline/declarative-flows.js +27 -0
  28. package/dist/pipeline/execution-routing-config.js +15 -0
  29. package/dist/pipeline/flow-catalog.js +23 -3
  30. package/dist/pipeline/flow-run-resume.js +29 -0
  31. package/dist/pipeline/flow-specs/auto-common.json +89 -360
  32. package/dist/pipeline/flow-specs/auto-golang.json +58 -363
  33. package/dist/pipeline/flow-specs/auto-simple.json +141 -0
  34. package/dist/pipeline/flow-specs/bugz/bug-analyze.json +2 -0
  35. package/dist/pipeline/flow-specs/bugz/bug-fix.json +1 -0
  36. package/dist/pipeline/flow-specs/design-review/design-review-loop.json +304 -0
  37. package/dist/pipeline/flow-specs/design-review.json +249 -0
  38. package/dist/pipeline/flow-specs/gitlab/gitlab-diff-review.json +11 -0
  39. package/dist/pipeline/flow-specs/gitlab/gitlab-review.json +2 -0
  40. package/dist/pipeline/flow-specs/gitlab/mr-description.json +1 -0
  41. package/dist/pipeline/flow-specs/go/run-go-linter-loop.json +2 -0
  42. package/dist/pipeline/flow-specs/go/run-go-tests-loop.json +2 -0
  43. package/dist/pipeline/flow-specs/implement.json +24 -5
  44. package/dist/pipeline/flow-specs/instant-task.json +177 -0
  45. package/dist/pipeline/flow-specs/normalize-task-source.json +311 -0
  46. package/dist/pipeline/flow-specs/plan-revise.json +267 -0
  47. package/dist/pipeline/flow-specs/plan.json +48 -70
  48. package/dist/pipeline/flow-specs/review/review-fix.json +24 -4
  49. package/dist/pipeline/flow-specs/review/review-loop.json +351 -45
  50. package/dist/pipeline/flow-specs/review/review-project-loop.json +590 -0
  51. package/dist/pipeline/flow-specs/review/review-project.json +12 -0
  52. package/dist/pipeline/flow-specs/review/review.json +37 -31
  53. package/dist/pipeline/flow-specs/task-describe.json +62 -2
  54. package/dist/pipeline/flow-specs/task-source/jira-fetch.json +70 -0
  55. package/dist/pipeline/flow-specs/task-source/manual-input.json +216 -0
  56. package/dist/pipeline/node-registry.js +49 -1
  57. package/dist/pipeline/node-runner.js +3 -2
  58. package/dist/pipeline/nodes/build-review-fix-prompt-node.js +5 -1
  59. package/dist/pipeline/nodes/clear-ready-to-merge-node.js +11 -0
  60. package/dist/pipeline/nodes/commit-message-form-node.js +8 -0
  61. package/dist/pipeline/nodes/design-review-verdict-node.js +36 -0
  62. package/dist/pipeline/nodes/ensure-summary-json-node.js +70 -0
  63. package/dist/pipeline/nodes/fetch-gitlab-diff-node.js +19 -2
  64. package/dist/pipeline/nodes/fetch-gitlab-review-node.js +19 -2
  65. package/dist/pipeline/nodes/flow-run-node.js +226 -7
  66. package/dist/pipeline/nodes/git-commit-form-node.js +8 -0
  67. package/dist/pipeline/nodes/gitlab-review-artifacts-node.js +19 -2
  68. package/dist/pipeline/nodes/jira-fetch-node.js +50 -4
  69. package/dist/pipeline/nodes/llm-prompt-node.js +32 -12
  70. package/dist/pipeline/nodes/planning-bundle-node.js +10 -0
  71. package/dist/pipeline/nodes/review-verdict-node.js +86 -0
  72. package/dist/pipeline/nodes/select-files-form-node.js +8 -0
  73. package/dist/pipeline/nodes/structured-summary-node.js +24 -0
  74. package/dist/pipeline/nodes/user-input-node.js +38 -3
  75. package/dist/pipeline/nodes/write-selection-file-node.js +20 -4
  76. package/dist/pipeline/prompt-registry.js +5 -1
  77. package/dist/pipeline/prompt-runtime.js +4 -1
  78. package/dist/pipeline/review-iteration.js +26 -0
  79. package/dist/pipeline/spec-compiler.js +2 -0
  80. package/dist/pipeline/spec-types.js +5 -0
  81. package/dist/pipeline/spec-validator.js +14 -0
  82. package/dist/pipeline/value-resolver.js +84 -1
  83. package/dist/prompts.js +82 -13
  84. package/dist/review-severity.js +45 -0
  85. package/dist/runtime/artifact-registry.js +402 -0
  86. package/dist/runtime/design-review-input-contract.js +113 -0
  87. package/dist/runtime/env-loader.js +3 -0
  88. package/dist/runtime/execution-routing-store.js +134 -0
  89. package/dist/runtime/execution-routing.js +227 -0
  90. package/dist/runtime/interactive-execution-routing.js +462 -0
  91. package/dist/runtime/plan-revise-input-contract.js +147 -0
  92. package/dist/runtime/planning-bundle.js +123 -0
  93. package/dist/runtime/ready-to-merge.js +31 -0
  94. package/dist/runtime/review-input-contract.js +100 -0
  95. package/dist/scope.js +11 -2
  96. package/dist/structured-artifact-schema-registry.js +10 -0
  97. package/dist/structured-artifact-schemas.json +257 -1
  98. package/dist/structured-artifacts.js +83 -6
  99. package/dist/user-input.js +70 -3
  100. package/package.json +6 -3
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "kind": "implement-flow",
3
3
  "version": 1,
4
- "description": "Runs LLM-backed implementation based on previously approved design and plan artifacts. Executes code changes locally in the project working directory.",
4
+ "description": "Runs LLM-backed implementation based on previously approved design, plan, and QA artifacts. Executes code changes locally in the project working directory.",
5
5
  "phases": [
6
6
  {
7
7
  "id": "implement",
@@ -9,31 +9,50 @@
9
9
  {
10
10
  "id": "run_implement",
11
11
  "node": "llm-prompt",
12
+ "routingGroup": "implementation",
12
13
  "prompt": {
13
14
  "templateRef": "implement",
14
15
  "vars": {
15
16
  "design_file": {
16
17
  "artifact": {
17
18
  "kind": "design-file",
18
- "taskKey": { "ref": "params.taskKey" }
19
+ "taskKey": { "ref": "params.taskKey" },
20
+ "iteration": { "ref": "params.planningIteration" }
19
21
  }
20
22
  },
21
23
  "design_json_file": {
22
24
  "artifact": {
23
25
  "kind": "design-json-file",
24
- "taskKey": { "ref": "params.taskKey" }
26
+ "taskKey": { "ref": "params.taskKey" },
27
+ "iteration": { "ref": "params.planningIteration" }
25
28
  }
26
29
  },
27
30
  "plan_file": {
28
31
  "artifact": {
29
32
  "kind": "plan-file",
30
- "taskKey": { "ref": "params.taskKey" }
33
+ "taskKey": { "ref": "params.taskKey" },
34
+ "iteration": { "ref": "params.planningIteration" }
31
35
  }
32
36
  },
33
37
  "plan_json_file": {
34
38
  "artifact": {
35
39
  "kind": "plan-json-file",
36
- "taskKey": { "ref": "params.taskKey" }
40
+ "taskKey": { "ref": "params.taskKey" },
41
+ "iteration": { "ref": "params.planningIteration" }
42
+ }
43
+ },
44
+ "qa_file": {
45
+ "artifact": {
46
+ "kind": "qa-file",
47
+ "taskKey": { "ref": "params.taskKey" },
48
+ "iteration": { "ref": "params.planningIteration" }
49
+ }
50
+ },
51
+ "qa_json_file": {
52
+ "artifact": {
53
+ "kind": "qa-json-file",
54
+ "taskKey": { "ref": "params.taskKey" },
55
+ "iteration": { "ref": "params.planningIteration" }
37
56
  }
38
57
  }
39
58
  },
@@ -0,0 +1,177 @@
1
+ {
2
+ "kind": "instant-task-flow",
3
+ "version": 1,
4
+ "description": "End-to-end resumable pipeline for ad-hoc work in the current branch-derived scope. Runs: manual source input → task source normalization → plan → design-review loop → implement → review loop, without Jira fetch.",
5
+ "phases": [
6
+ {
7
+ "id": "source",
8
+ "steps": [
9
+ {
10
+ "id": "collect_manual_source",
11
+ "node": "flow-run",
12
+ "params": {
13
+ "fileName": { "const": "manual-input.json" },
14
+ "labelText": { "const": "Collecting manual task source" },
15
+ "taskKey": { "ref": "params.taskKey" },
16
+ "repromptInstantTaskInput": { "ref": "params.repromptInstantTaskInput" },
17
+ "prefilledInstantTaskInputValues": { "ref": "params.prefilledInstantTaskInputValues" }
18
+ }
19
+ }
20
+ ]
21
+ },
22
+ {
23
+ "id": "normalize",
24
+ "steps": [
25
+ {
26
+ "id": "run_normalize_source",
27
+ "node": "flow-run",
28
+ "params": {
29
+ "fileName": { "const": "normalize-task-source.json" },
30
+ "labelText": { "const": "Normalizing task source" },
31
+ "taskKey": { "ref": "params.taskKey" },
32
+ "iteration": { "ref": "params.taskContextIteration" },
33
+ "llmExecutor": { "ref": "params.llmExecutor" },
34
+ "llmModel": { "ref": "params.llmModel" },
35
+ "extraPrompt": { "ref": "params.extraPrompt" }
36
+ }
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "id": "plan",
42
+ "steps": [
43
+ {
44
+ "id": "run_plan_flow",
45
+ "node": "flow-run",
46
+ "params": {
47
+ "fileName": { "const": "plan.json" },
48
+ "labelText": { "const": "Running planning flow" },
49
+ "taskKey": { "ref": "params.taskKey" },
50
+ "taskContextIteration": { "ref": "params.taskContextIteration" },
51
+ "designIteration": { "ref": "params.designIteration" },
52
+ "planIteration": { "ref": "params.planIteration" },
53
+ "qaIteration": { "ref": "params.qaIteration" },
54
+ "llmExecutor": { "ref": "params.llmExecutor" },
55
+ "llmModel": { "ref": "params.llmModel" },
56
+ "extraPrompt": { "ref": "params.extraPrompt" },
57
+ "mdLang": { "ref": "params.mdLang" }
58
+ }
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "id": "design_review_loop",
64
+ "steps": [
65
+ {
66
+ "id": "run_design_review_loop",
67
+ "node": "flow-run",
68
+ "params": {
69
+ "fileName": { "const": "design-review-loop.json" },
70
+ "labelText": { "const": "Running design-review loop" },
71
+ "taskKey": { "ref": "params.taskKey" },
72
+ "workspaceDir": { "ref": "params.workspaceDir" },
73
+ "extraPrompt": { "ref": "params.extraPrompt" },
74
+ "llmExecutor": { "ref": "params.llmExecutor" },
75
+ "llmModel": { "ref": "params.llmModel" }
76
+ },
77
+ "stopFlowIf": {
78
+ "equals": [
79
+ { "ref": "steps.design_review_loop.run_design_review_loop.value.executionState.terminationOutcome" },
80
+ { "const": "stopped" }
81
+ ]
82
+ },
83
+ "stopFlowOutcome": "stopped"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "id": "implement",
89
+ "steps": [
90
+ {
91
+ "id": "resolve_planning_bundle",
92
+ "node": "planning-bundle",
93
+ "params": {
94
+ "taskKey": { "ref": "params.taskKey" }
95
+ }
96
+ },
97
+ {
98
+ "id": "run_implement",
99
+ "node": "llm-prompt",
100
+ "routingGroup": "implementation",
101
+ "prompt": {
102
+ "templateRef": "implement",
103
+ "vars": {
104
+ "design_file": { "ref": "steps.implement.resolve_planning_bundle.value.designFile" },
105
+ "design_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.designJsonFile" },
106
+ "plan_file": { "ref": "steps.implement.resolve_planning_bundle.value.planFile" },
107
+ "plan_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.planJsonFile" },
108
+ "qa_file": { "ref": "steps.implement.resolve_planning_bundle.value.qaFile" },
109
+ "qa_json_file": { "ref": "steps.implement.resolve_planning_bundle.value.qaJsonFile" }
110
+ },
111
+ "extraPrompt": { "ref": "params.extraPrompt" },
112
+ "format": "task-prompt"
113
+ },
114
+ "params": {
115
+ "labelText": { "const": "Running implementation mode locally" },
116
+ "model": { "ref": "params.llmModel" },
117
+ "executor": { "ref": "params.llmExecutor" }
118
+ }
119
+ },
120
+ {
121
+ "id": "notify_implement_complete",
122
+ "node": "telegram-notify",
123
+ "params": {
124
+ "message": {
125
+ "template": "Implementation phase for {taskKey} complete.",
126
+ "vars": {
127
+ "taskKey": { "ref": "params.taskKey" }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "id": "review-loop",
136
+ "steps": [
137
+ {
138
+ "id": "run_review_loop",
139
+ "node": "flow-run",
140
+ "stopFlowIf": {
141
+ "not": {
142
+ "equals": [
143
+ { "ref": "steps.review-loop.run_review_loop.value.executionState.terminationOutcome" },
144
+ { "const": "success" }
145
+ ]
146
+ }
147
+ },
148
+ "stopFlowOutcome": "stopped",
149
+ "params": {
150
+ "fileName": { "const": "review-loop.json" },
151
+ "labelText": { "const": "Running review-loop" },
152
+ "taskKey": { "ref": "params.taskKey" },
153
+ "baseIteration": { "ref": "params.baseIteration" },
154
+ "workspaceDir": { "ref": "params.workspaceDir" },
155
+ "extraPrompt": { "ref": "params.extraPrompt" },
156
+ "reviewFixPoints": { "ref": "params.reviewFixPoints" },
157
+ "reviewBlockingSeverities": { "ref": "params.reviewBlockingSeverities" },
158
+ "llmExecutor": { "ref": "params.llmExecutor" },
159
+ "llmModel": { "ref": "params.llmModel" }
160
+ }
161
+ },
162
+ {
163
+ "id": "notify_task_complete",
164
+ "node": "telegram-notify",
165
+ "params": {
166
+ "message": {
167
+ "template": "Task {taskKey} complete.",
168
+ "vars": {
169
+ "taskKey": { "ref": "params.taskKey" }
170
+ }
171
+ }
172
+ }
173
+ }
174
+ ]
175
+ }
176
+ ]
177
+ }
@@ -0,0 +1,311 @@
1
+ {
2
+ "kind": "normalize-task-source-flow",
3
+ "version": 1,
4
+ "description": "Normalizes the available task source into a connector-agnostic task-context artifact for planning and review flows.",
5
+ "catalogVisibility": "hidden",
6
+ "phases": [
7
+ {
8
+ "id": "normalize",
9
+ "steps": [
10
+ {
11
+ "id": "validate_jira_source",
12
+ "when": {
13
+ "exists": {
14
+ "artifact": {
15
+ "kind": "jira-task-file",
16
+ "taskKey": { "ref": "params.taskKey" }
17
+ }
18
+ }
19
+ },
20
+ "node": "file-check",
21
+ "params": {
22
+ "path": {
23
+ "artifact": {
24
+ "kind": "jira-task-file",
25
+ "taskKey": { "ref": "params.taskKey" }
26
+ }
27
+ },
28
+ "panelTitle": { "const": "Jira Task Source" },
29
+ "foundMessage": { "const": "Raw Jira task context found and will be normalized." },
30
+ "tone": { "const": "cyan" }
31
+ },
32
+ "expect": [
33
+ {
34
+ "kind": "require-file",
35
+ "path": {
36
+ "artifact": {
37
+ "kind": "jira-task-file",
38
+ "taskKey": { "ref": "params.taskKey" }
39
+ }
40
+ },
41
+ "message": "Jira task source is missing."
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "id": "run_normalize_from_jira",
47
+ "when": {
48
+ "exists": {
49
+ "artifact": {
50
+ "kind": "jira-task-file",
51
+ "taskKey": { "ref": "params.taskKey" }
52
+ }
53
+ }
54
+ },
55
+ "node": "llm-prompt",
56
+ "routingGroup": "planning",
57
+ "prompt": {
58
+ "templateRef": "task-context-from-jira",
59
+ "vars": {
60
+ "jira_task_file": {
61
+ "artifact": {
62
+ "kind": "jira-task-file",
63
+ "taskKey": { "ref": "params.taskKey" }
64
+ }
65
+ },
66
+ "jira_attachments_manifest_file": {
67
+ "artifact": {
68
+ "kind": "jira-attachments-manifest-file",
69
+ "taskKey": { "ref": "params.taskKey" }
70
+ }
71
+ },
72
+ "jira_attachments_context_file": {
73
+ "artifact": {
74
+ "kind": "jira-attachments-context-file",
75
+ "taskKey": { "ref": "params.taskKey" }
76
+ }
77
+ },
78
+ "task_context_file": {
79
+ "artifact": {
80
+ "kind": "task-context-file",
81
+ "taskKey": { "ref": "params.taskKey" },
82
+ "iteration": { "ref": "params.iteration" }
83
+ }
84
+ },
85
+ "task_context_json_file": {
86
+ "artifact": {
87
+ "kind": "task-context-json-file",
88
+ "taskKey": { "ref": "params.taskKey" },
89
+ "iteration": { "ref": "params.iteration" }
90
+ }
91
+ }
92
+ },
93
+ "extraPrompt": { "ref": "params.extraPrompt" },
94
+ "format": "task-prompt"
95
+ },
96
+ "params": {
97
+ "labelText": { "const": "Normalizing Jira task context" },
98
+ "model": { "ref": "params.llmModel" },
99
+ "executor": { "ref": "params.llmExecutor" },
100
+ "requiredArtifacts": {
101
+ "list": [
102
+ {
103
+ "artifact": {
104
+ "kind": "task-context-file",
105
+ "taskKey": { "ref": "params.taskKey" },
106
+ "iteration": { "ref": "params.iteration" }
107
+ }
108
+ },
109
+ {
110
+ "artifact": {
111
+ "kind": "task-context-json-file",
112
+ "taskKey": { "ref": "params.taskKey" },
113
+ "iteration": { "ref": "params.iteration" }
114
+ }
115
+ }
116
+ ]
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "id": "validate_manual_source",
122
+ "when": {
123
+ "all": [
124
+ {
125
+ "not": {
126
+ "exists": {
127
+ "artifact": {
128
+ "kind": "jira-task-file",
129
+ "taskKey": { "ref": "params.taskKey" }
130
+ }
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "exists": {
136
+ "artifact": {
137
+ "kind": "instant-task-input-json-file",
138
+ "taskKey": { "ref": "params.taskKey" }
139
+ }
140
+ }
141
+ }
142
+ ]
143
+ },
144
+ "node": "file-check",
145
+ "params": {
146
+ "path": {
147
+ "artifact": {
148
+ "kind": "instant-task-input-json-file",
149
+ "taskKey": { "ref": "params.taskKey" }
150
+ }
151
+ },
152
+ "panelTitle": { "const": "Manual Task Source" },
153
+ "foundMessage": { "const": "Manual task input found and will be normalized." },
154
+ "tone": { "const": "cyan" }
155
+ },
156
+ "expect": [
157
+ {
158
+ "kind": "require-structured-artifacts",
159
+ "items": [
160
+ {
161
+ "path": {
162
+ "artifact": {
163
+ "kind": "instant-task-input-json-file",
164
+ "taskKey": { "ref": "params.taskKey" }
165
+ }
166
+ },
167
+ "schemaId": "user-input/v1"
168
+ }
169
+ ],
170
+ "message": "Manual task source input is missing or invalid."
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "id": "run_normalize_from_manual",
176
+ "when": {
177
+ "all": [
178
+ {
179
+ "not": {
180
+ "exists": {
181
+ "artifact": {
182
+ "kind": "jira-task-file",
183
+ "taskKey": { "ref": "params.taskKey" }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "exists": {
190
+ "artifact": {
191
+ "kind": "instant-task-input-json-file",
192
+ "taskKey": { "ref": "params.taskKey" }
193
+ }
194
+ }
195
+ }
196
+ ]
197
+ },
198
+ "node": "llm-prompt",
199
+ "routingGroup": "planning",
200
+ "prompt": {
201
+ "templateRef": "task-context-from-manual",
202
+ "vars": {
203
+ "task_input_file": {
204
+ "artifact": {
205
+ "kind": "instant-task-input-json-file",
206
+ "taskKey": { "ref": "params.taskKey" }
207
+ }
208
+ },
209
+ "task_context_file": {
210
+ "artifact": {
211
+ "kind": "task-context-file",
212
+ "taskKey": { "ref": "params.taskKey" },
213
+ "iteration": { "ref": "params.iteration" }
214
+ }
215
+ },
216
+ "task_context_json_file": {
217
+ "artifact": {
218
+ "kind": "task-context-json-file",
219
+ "taskKey": { "ref": "params.taskKey" },
220
+ "iteration": { "ref": "params.iteration" }
221
+ }
222
+ }
223
+ },
224
+ "extraPrompt": { "ref": "params.extraPrompt" },
225
+ "format": "task-prompt"
226
+ },
227
+ "params": {
228
+ "labelText": { "const": "Normalizing manual task context" },
229
+ "model": { "ref": "params.llmModel" },
230
+ "executor": { "ref": "params.llmExecutor" },
231
+ "requiredArtifacts": {
232
+ "list": [
233
+ {
234
+ "artifact": {
235
+ "kind": "task-context-file",
236
+ "taskKey": { "ref": "params.taskKey" },
237
+ "iteration": { "ref": "params.iteration" }
238
+ }
239
+ },
240
+ {
241
+ "artifact": {
242
+ "kind": "task-context-json-file",
243
+ "taskKey": { "ref": "params.taskKey" },
244
+ "iteration": { "ref": "params.iteration" }
245
+ }
246
+ }
247
+ ]
248
+ }
249
+ }
250
+ },
251
+ {
252
+ "id": "validate_task_context_json",
253
+ "node": "file-check",
254
+ "params": {
255
+ "path": {
256
+ "artifact": {
257
+ "kind": "task-context-json-file",
258
+ "taskKey": { "ref": "params.taskKey" },
259
+ "iteration": { "ref": "params.iteration" }
260
+ }
261
+ },
262
+ "panelTitle": { "const": "Normalized Task Context" },
263
+ "foundMessage": { "const": "Normalized task context artifact found." },
264
+ "tone": { "const": "cyan" }
265
+ },
266
+ "expect": [
267
+ {
268
+ "kind": "require-file",
269
+ "path": {
270
+ "artifact": {
271
+ "kind": "task-context-json-file",
272
+ "taskKey": { "ref": "params.taskKey" },
273
+ "iteration": { "ref": "params.iteration" }
274
+ }
275
+ },
276
+ "message": "Task source normalization did not produce the task-context artifact."
277
+ },
278
+ {
279
+ "kind": "require-structured-artifacts",
280
+ "items": [
281
+ {
282
+ "path": {
283
+ "artifact": {
284
+ "kind": "task-context-json-file",
285
+ "taskKey": { "ref": "params.taskKey" },
286
+ "iteration": { "ref": "params.iteration" }
287
+ }
288
+ },
289
+ "schemaId": "task-context/v1"
290
+ }
291
+ ],
292
+ "message": "Task source normalization produced an invalid task-context artifact."
293
+ }
294
+ ],
295
+ "after": [
296
+ {
297
+ "kind": "set-summary-from-file",
298
+ "path": {
299
+ "artifact": {
300
+ "kind": "task-context-file",
301
+ "taskKey": { "ref": "params.taskKey" },
302
+ "iteration": { "ref": "params.iteration" }
303
+ }
304
+ }
305
+ }
306
+ ]
307
+ }
308
+ ]
309
+ }
310
+ ]
311
+ }