@mmerterden/multi-agent-pipeline 23.6.0 → 24.0.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 (167) hide show
  1. package/CHANGELOG.md +56 -1
  2. package/README.md +61 -27
  3. package/README.tr.md +46 -12
  4. package/SECURITY.md +3 -3
  5. package/docs/architecture.md +47 -8
  6. package/docs/ecosystem.md +20 -18
  7. package/docs/engineering.md +1 -1
  8. package/docs/facts.json +8 -6
  9. package/docs/features.md +59 -15
  10. package/install/_codex-agents.mjs +13 -8
  11. package/install/_common.mjs +24 -0
  12. package/install/_dev-only-files.mjs +4 -0
  13. package/install/_mcp-register.mjs +6 -2
  14. package/install/_rewrite-tree.mjs +197 -0
  15. package/install/codex.mjs +96 -180
  16. package/install/copilot.mjs +24 -54
  17. package/install/index.mjs +29 -11
  18. package/install/templates/codex-instructions.md +21 -5
  19. package/install/templates/copilot-instructions.md +21 -14
  20. package/manifest.json +2082 -0
  21. package/package.json +6 -2
  22. package/pipeline/commands/multi-agent/SKILL.md +7 -5
  23. package/pipeline/commands/multi-agent/analysis/SKILL.md +4 -0
  24. package/pipeline/commands/multi-agent/autopilot-on/SKILL.md +31 -3
  25. package/pipeline/commands/multi-agent/autopilot-status/SKILL.md +5 -1
  26. package/pipeline/commands/multi-agent/channels/SKILL.md +16 -8
  27. package/pipeline/commands/multi-agent/log/SKILL.md +2 -0
  28. package/pipeline/commands/multi-agent/resume/SKILL.md +2 -0
  29. package/pipeline/commands/multi-agent/review-rounds/SKILL.md +94 -0
  30. package/pipeline/commands/multi-agent/stack/SKILL.md +1 -1
  31. package/pipeline/commands/multi-agent/sync/SKILL.md +3 -3
  32. package/pipeline/contract/manifest.json +1 -1
  33. package/pipeline/contract/types/index.d.ts +1 -0
  34. package/pipeline/lib/_jira-auth.sh +50 -78
  35. package/pipeline/lib/_service-account.sh +191 -0
  36. package/pipeline/lib/credential-inventory.sh +49 -37
  37. package/pipeline/lib/credential-store.sh +48 -3
  38. package/pipeline/lib/fetch-confluence.sh +76 -92
  39. package/pipeline/lib/fetch-crashlytics.sh +30 -59
  40. package/pipeline/lib/fetch-figma-annotations.sh +9 -9
  41. package/pipeline/lib/fetch-fortify.sh +77 -81
  42. package/pipeline/lib/fetch-graylog.sh +38 -77
  43. package/pipeline/lib/figma-mcp-refresh.sh +23 -4
  44. package/pipeline/lib/figma-screenshot.sh +7 -8
  45. package/pipeline/lib/figma-token.sh +39 -46
  46. package/pipeline/lib/host.mjs +138 -0
  47. package/pipeline/lib/host.sh +48 -0
  48. package/pipeline/lib/issue-fetcher.sh +25 -41
  49. package/pipeline/lib/jira-publish.sh +23 -21
  50. package/pipeline/lib/local-model.mjs +93 -0
  51. package/pipeline/lib/md2confluence-v3.py +37 -30
  52. package/pipeline/lib/model-dispatch.sh +41 -4
  53. package/pipeline/lib/model-resolve.mjs +58 -0
  54. package/pipeline/lib/post-pr-review.sh +38 -53
  55. package/pipeline/lib/reviewer-families.mjs +70 -0
  56. package/pipeline/lib/service-account.mjs +2131 -0
  57. package/pipeline/lib/service-account.sh +35 -0
  58. package/pipeline/lib/usage-names.generated.mjs +3 -0
  59. package/pipeline/lib/usage-token.mjs +64 -24
  60. package/pipeline/lib/usage-vocab.mjs +1 -1
  61. package/pipeline/lib/user-facing.mjs +11 -3
  62. package/pipeline/lib/vercel-deploy.sh +17 -26
  63. package/pipeline/multi-agent-refs/_entry-picker.md +62 -0
  64. package/pipeline/multi-agent-refs/_input-parser.md +1 -1
  65. package/pipeline/multi-agent-refs/analysis/intake.md +2 -0
  66. package/pipeline/multi-agent-refs/analysis/reusable-refs.md +1 -0
  67. package/pipeline/multi-agent-refs/analysis/unattended.md +135 -0
  68. package/pipeline/multi-agent-refs/autopilot-on/details.md +16 -0
  69. package/pipeline/multi-agent-refs/channels/generator.md +10 -2
  70. package/pipeline/multi-agent-refs/channels/menu.md +3 -1
  71. package/pipeline/multi-agent-refs/channels/preview.md +3 -1
  72. package/pipeline/multi-agent-refs/channels/reference.md +16 -2
  73. package/pipeline/multi-agent-refs/channels/report-file.md +188 -0
  74. package/pipeline/multi-agent-refs/component-dispatch.md +2 -2
  75. package/pipeline/multi-agent-refs/cross-cli-contract.md +38 -30
  76. package/pipeline/multi-agent-refs/features/autopilot-circuit-breaker.md +4 -4
  77. package/pipeline/multi-agent-refs/features/doctor.md +37 -11
  78. package/pipeline/multi-agent-refs/features/free-models.md +3 -3
  79. package/pipeline/multi-agent-refs/features/local-model.md +87 -0
  80. package/pipeline/multi-agent-refs/features/model-fallback.md +25 -10
  81. package/pipeline/multi-agent-refs/features/product-context.md +6 -5
  82. package/pipeline/multi-agent-refs/features/review-delta.md +1 -1
  83. package/pipeline/multi-agent-refs/features/review-rounds.md +40 -0
  84. package/pipeline/multi-agent-refs/features/rework-escalation.md +5 -4
  85. package/pipeline/multi-agent-refs/features/service-accounts.md +233 -0
  86. package/pipeline/multi-agent-refs/features/unattended-security.md +10 -1
  87. package/pipeline/multi-agent-refs/help/en.md +31 -2
  88. package/pipeline/multi-agent-refs/help/tr.md +31 -2
  89. package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +3 -2
  90. package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -1
  91. package/pipeline/multi-agent-refs/phases/modes.md +20 -1
  92. package/pipeline/multi-agent-refs/phases/operations.md +1 -1
  93. package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -1
  94. package/pipeline/multi-agent-refs/phases/phase-2-dev.md +4 -4
  95. package/pipeline/multi-agent-refs/phases/phase-3-review.md +7 -3
  96. package/pipeline/multi-agent-refs/phases/phase-5-report.md +12 -10
  97. package/pipeline/multi-agent-refs/phases.md +4 -3
  98. package/pipeline/multi-agent-refs/resume/details.md +2 -0
  99. package/pipeline/multi-agent-refs/review/panel.md +30 -18
  100. package/pipeline/multi-agent-refs/setup/discovery.md +17 -5
  101. package/pipeline/multi-agent-refs/setup/token-save-flow.md +21 -2
  102. package/pipeline/multi-agent-refs/sync/overview.md +11 -5
  103. package/pipeline/multi-agent-refs/tracker-contract.md +28 -10
  104. package/pipeline/office/index.html +4 -4
  105. package/pipeline/schemas/agent-state.schema.json +19 -1
  106. package/pipeline/schemas/autopilot-config.schema.json +29 -4
  107. package/pipeline/schemas/hosts.json +512 -0
  108. package/pipeline/schemas/hosts.schema.json +310 -0
  109. package/pipeline/schemas/launch.json +22 -2
  110. package/pipeline/schemas/launch.schema.json +2 -1
  111. package/pipeline/schemas/phases.json +21 -3
  112. package/pipeline/schemas/phases.schema.json +8 -0
  113. package/pipeline/schemas/prefs.schema.json +346 -7
  114. package/pipeline/schemas/token-budget.json +2 -2
  115. package/pipeline/scripts/.doctor-mut.47076.mjs +2253 -0
  116. package/pipeline/scripts/_autopilot-config.mjs +67 -4
  117. package/pipeline/scripts/_autopilot-item.mjs +67 -0
  118. package/pipeline/scripts/_autopilot-outcomes.mjs +6 -0
  119. package/pipeline/scripts/_cost.mjs +75 -3
  120. package/pipeline/scripts/analysis-sources.mjs +22 -5
  121. package/pipeline/scripts/analysis-unattended.mjs +360 -0
  122. package/pipeline/scripts/anonymize-findings.mjs +3 -7
  123. package/pipeline/scripts/autopilot-arming.mjs +19 -10
  124. package/pipeline/scripts/autopilot-intake.mjs +124 -27
  125. package/pipeline/scripts/autopilot-menubar.swift +7 -0
  126. package/pipeline/scripts/autopilot-runner.mjs +77 -48
  127. package/pipeline/scripts/autopilot-status.sh +32 -9
  128. package/pipeline/scripts/bulk-read.sh +37 -5
  129. package/pipeline/scripts/confluence-readback.mjs +15 -7
  130. package/pipeline/scripts/cost-table.json +65 -25
  131. package/pipeline/scripts/doctor.mjs +119 -32
  132. package/pipeline/scripts/entry-mode.mjs +101 -0
  133. package/pipeline/scripts/estimate.mjs +30 -16
  134. package/pipeline/scripts/feedback-send.mjs +11 -8
  135. package/pipeline/scripts/gen-facts.mjs +16 -13
  136. package/pipeline/scripts/jira-attach.sh +23 -28
  137. package/pipeline/scripts/jira-search.sh +5 -21
  138. package/pipeline/scripts/launch-request.mjs +15 -9
  139. package/pipeline/scripts/migrate-prefs.mjs +56 -0
  140. package/pipeline/scripts/phase-tracker.sh +146 -38
  141. package/pipeline/scripts/priority-review.mjs +14 -7
  142. package/pipeline/scripts/product-context.mjs +26 -7
  143. package/pipeline/scripts/prune-logs.sh +4 -2
  144. package/pipeline/scripts/report-file.mjs +285 -0
  145. package/pipeline/scripts/review-rounds.mjs +592 -0
  146. package/pipeline/scripts/rework-escalation.mjs +26 -7
  147. package/pipeline/scripts/service-read.mjs +19 -17
  148. package/pipeline/scripts/skill-siblings.mjs +17 -1
  149. package/pipeline/scripts/status-overview.mjs +20 -10
  150. package/pipeline/scripts/uninstall.mjs +145 -57
  151. package/pipeline/scripts/usage-register.mjs +34 -11
  152. package/pipeline/scripts/usage-report.mjs +31 -26
  153. package/pipeline/scripts/validate-state.mjs +19 -11
  154. package/pipeline/scripts/validate-triage.mjs +11 -1
  155. package/pipeline/scripts/work-items.mjs +25 -28
  156. package/pipeline/scripts/write-store-config.mjs +37 -11
  157. package/pipeline/skills/.skill-manifest.json +11 -7
  158. package/pipeline/skills/.skills-index.json +13 -2
  159. package/pipeline/skills/shared/README.md +4 -3
  160. package/pipeline/skills/shared/core/multi-agent/SKILL.md +14 -6
  161. package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -0
  162. package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +11 -8
  163. package/pipeline/skills/shared/core/multi-agent-resume/SKILL.md +1 -1
  164. package/pipeline/skills/shared/core/multi-agent-review-rounds/SKILL.md +92 -0
  165. package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +3 -3
  166. package/pipeline/skills/skills-index.md +2 -1
  167. package/pipeline/lib/credential-resolve.mjs +0 -75
@@ -0,0 +1,310 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/pipeline/schemas/hosts.schema.json",
4
+ "version": "1.0.0",
5
+ "title": "Multi-Agent Pipeline - host registry",
6
+ "description": "Shape of pipeline/schemas/hosts.json: one record per CLI host the pipeline installs into and runs inside. Consumers read capability fields (dispatch.mechanism, models.binding, review.panel, headless) rather than comparing a host id, so a new host is a record here plus an engine adapter. The registry ships with the package and is not user-extensible: it names install roots and argv, which user input must never reach.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": ["version", "order", "stateRoot", "hosts"],
10
+ "properties": {
11
+ "$comment": { "type": "string" },
12
+ "version": { "type": "string", "const": "1.0.0" },
13
+ "order": {
14
+ "description": "Install and reporting order. Every id here must exist in hosts, and every host must be listed.",
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "uniqueItems": true,
18
+ "items": { "$ref": "#/$defs/hostId" }
19
+ },
20
+ "stateRoot": {
21
+ "description": "Home-relative directory holding preferences, logs and run state for every host. One root across all of them, deliberately: a run started on one host is readable from another.",
22
+ "type": "string",
23
+ "pattern": "^\\.[a-z][a-z0-9-]*$"
24
+ },
25
+ "hosts": {
26
+ "type": "object",
27
+ "minProperties": 1,
28
+ "propertyNames": { "$ref": "#/$defs/hostId" },
29
+ "additionalProperties": { "$ref": "#/$defs/host" }
30
+ }
31
+ },
32
+ "$defs": {
33
+ "hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
34
+ "rungName": { "type": "string", "pattern": "^[a-z][a-z0-9.-]*$" },
35
+ "host": {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": [
39
+ "label",
40
+ "harness",
41
+ "install",
42
+ "cli",
43
+ "detect",
44
+ "command",
45
+ "persona",
46
+ "dispatch",
47
+ "models",
48
+ "review",
49
+ "pricing",
50
+ "headless",
51
+ "sessionUsage",
52
+ "network"
53
+ ],
54
+ "properties": {
55
+ "label": { "type": "string", "minLength": 1 },
56
+ "harness": {
57
+ "description": "Which install adapter and transcript reader this host uses. Several hosts may share one engine; the record carries what differs.",
58
+ "$ref": "#/$defs/hostId"
59
+ },
60
+ "install": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": [
64
+ "flag",
65
+ "root",
66
+ "seedsPreferences",
67
+ "subtrees",
68
+ "commandSpecs",
69
+ "commandSpecPrefix"
70
+ ],
71
+ "properties": {
72
+ "flag": { "type": "string", "pattern": "^--[a-z][a-z0-9-]*$" },
73
+ "root": { "type": "string", "pattern": "^\\.[a-z][a-z0-9-]*$" },
74
+ "seedsPreferences": {
75
+ "description": "Whether this host's installer writes the shared preferences file when it is absent. A host that does not seed it needs another host installed first, which the installer has to say out loud.",
76
+ "type": "boolean"
77
+ },
78
+ "subtrees": {
79
+ "description": "Directories under the install root that must exist for the install to be whole. A health check reads this instead of assuming the Claude Code layout, which reported a Copilot-only machine as having no install at all.",
80
+ "type": "array",
81
+ "minItems": 1,
82
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }
83
+ },
84
+ "commandSpecs": {
85
+ "description": "Path, relative to the install root, of the tree holding one directory per sub-command, each with its own SKILL.md. The three layouts differ: specs are commands on one host, reference files on another, and one skill per sub-command on a third.",
86
+ "type": "string",
87
+ "pattern": "^[a-z][a-z0-9/-]*$"
88
+ },
89
+ "pathRewrites": {
90
+ "description": "Ordered rules retargeting an authored `$HOME/<stateRoot>/...` path into this host's own trees as a file lands. Order is load-bearing: a rule matching a shorter prefix placed before a longer one swallows it and yields a path that does not exist. Empty for the host the paths are authored against.",
91
+ "type": "array",
92
+ "items": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "required": ["match", "from"],
96
+ "allOf": [
97
+ {
98
+ "if": { "properties": { "match": { "const": "extension" } } },
99
+ "then": { "required": ["fromExt", "toExt"] },
100
+ "else": { "required": ["to"] }
101
+ }
102
+ ],
103
+ "properties": {
104
+ "match": {
105
+ "description": "`exact` replaces a whole path. `segment` turns `<from>/<name>` into `<to><name>`, for a host that flattens a directory per sub-command into prefixed names. `prefix` moves a leading directory and the rest of the path rides along. `extension` runs last, inside a tree this host already owns, and rewrites a file suffix. `root` renames a whole install root, for a second install of the same engine whose authored text names the engine's default tree.",
106
+ "enum": ["exact", "segment", "prefix", "extension", "root"]
107
+ },
108
+ "from": { "type": "string" },
109
+ "to": { "type": "string" },
110
+ "fromExt": { "type": "string" },
111
+ "toExt": { "type": "string" }
112
+ }
113
+ }
114
+ },
115
+ "commandSpecPrefix": {
116
+ "description": "Prefix each sub-command directory carries inside commandSpecs. Empty where the directory is the bare sub-command name; a host that fans the pipeline out into a shared skills tree has to prefix them, and a reader that ignores the prefix reports every sub-command as missing.",
117
+ "type": "string",
118
+ "pattern": "^[a-z0-9-]*$"
119
+ }
120
+ }
121
+ },
122
+ "cli": {
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": ["candidates", "scopeArgs", "getArgs"],
126
+ "properties": {
127
+ "candidates": {
128
+ "description": "Binary names or paths tried in order. $HOME is the only expansion.",
129
+ "type": "array",
130
+ "minItems": 1,
131
+ "items": { "type": "string", "minLength": 1 }
132
+ },
133
+ "scopeArgs": { "type": "array", "items": { "type": "string" } },
134
+ "getArgs": { "type": "array", "items": { "type": "string" } }
135
+ }
136
+ },
137
+ "detect": {
138
+ "type": "object",
139
+ "additionalProperties": false,
140
+ "required": ["env", "rootSegment"],
141
+ "properties": {
142
+ "env": {
143
+ "description": "Environment variables whose presence names this host. Checked after the explicit override and before the path fallback.",
144
+ "type": "array",
145
+ "items": { "type": "string", "pattern": "^[A-Z][A-Z0-9_]*$" }
146
+ },
147
+ "rootSegment": {
148
+ "description": "Path segment that identifies this host when a script resolves its own location.",
149
+ "type": "string",
150
+ "pattern": "^\\.[a-z][a-z0-9-]*$"
151
+ }
152
+ }
153
+ },
154
+ "command": {
155
+ "type": "object",
156
+ "additionalProperties": false,
157
+ "required": ["template"],
158
+ "properties": {
159
+ "template": {
160
+ "description": "How a sub-command is typed on this host. {sub} is the only placeholder.",
161
+ "type": "string",
162
+ "pattern": "\\{sub\\}"
163
+ }
164
+ }
165
+ },
166
+ "persona": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": ["format"],
170
+ "properties": {
171
+ "format": { "type": "string", "enum": ["md", "toml"] }
172
+ }
173
+ },
174
+ "dispatch": {
175
+ "type": "object",
176
+ "additionalProperties": false,
177
+ "required": ["mechanism", "modelArg", "required", "maxConcurrentChildren"],
178
+ "properties": {
179
+ "mechanism": { "type": "string", "enum": ["task-tool", "cli-flag", "spawn-agent"] },
180
+ "modelArg": { "type": "string", "minLength": 1 },
181
+ "effortArg": { "type": "string", "minLength": 1 },
182
+ "required": {
183
+ "description": "Parameters every dispatch must carry on this host. Omitting one can discard the model override without an error.",
184
+ "type": "object",
185
+ "additionalProperties": { "type": "string" }
186
+ },
187
+ "maxConcurrentChildren": {
188
+ "description": "Ceiling on simultaneous children, or null when the host documents none. A review panel may not exceed it.",
189
+ "type": ["integer", "null"],
190
+ "minimum": 1
191
+ }
192
+ }
193
+ },
194
+ "models": {
195
+ "type": "object",
196
+ "additionalProperties": false,
197
+ "required": ["binding", "providers", "rungSwitch", "rungs"],
198
+ "properties": {
199
+ "binding": {
200
+ "description": "When a rung becomes a concrete model: an environment variable at dispatch, a CLI flag at dispatch, a value written into the agent definition at install time, or inherited from the session.",
201
+ "type": "string",
202
+ "enum": ["runtime-env", "runtime-flag", "install", "session"]
203
+ },
204
+ "providers": {
205
+ "description": "Which cost-table providers this host can actually dispatch. The dispatch gate reads this instead of a fixed provider name.",
206
+ "type": "array",
207
+ "minItems": 1,
208
+ "uniqueItems": true,
209
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }
210
+ },
211
+ "rungSwitch": {
212
+ "description": "What the top-rung preference means here: live changes dispatch, recorded stores the value and changes nothing, ignored means the rung is not this host's to switch.",
213
+ "type": "string",
214
+ "enum": ["live", "recorded", "ignored"]
215
+ },
216
+ "rungs": {
217
+ "type": "object",
218
+ "minProperties": 1,
219
+ "propertyNames": { "$ref": "#/$defs/rungName" },
220
+ "additionalProperties": { "$ref": "#/$defs/modelSlot" }
221
+ }
222
+ }
223
+ },
224
+ "review": {
225
+ "type": "object",
226
+ "additionalProperties": false,
227
+ "required": ["vendorDiversity", "panel", "triage"],
228
+ "properties": {
229
+ "vendorDiversity": {
230
+ "description": "Whether the panel spans more than one model vendor. Agreement among one vendor's models is weaker evidence and the report says so.",
231
+ "type": "string",
232
+ "enum": ["single", "cross"]
233
+ },
234
+ "panel": {
235
+ "type": "array",
236
+ "minItems": 1,
237
+ "items": { "$ref": "#/$defs/panelSlot" }
238
+ },
239
+ "triage": { "$ref": "#/$defs/panelSlot" }
240
+ }
241
+ },
242
+ "pricing": {
243
+ "type": "object",
244
+ "additionalProperties": false,
245
+ "required": ["ceilingKey"],
246
+ "properties": {
247
+ "ceilingKey": {
248
+ "description": "cost-table key a budget ceiling prices this host's tokens at when the run names no model. Must exist in cost-table.json.",
249
+ "$ref": "#/$defs/rungName"
250
+ }
251
+ }
252
+ },
253
+ "headless": {
254
+ "description": "One-shot argv for a prompt this host can answer outside a session, or null when it has none. {model} is the only placeholder.",
255
+ "oneOf": [
256
+ {
257
+ "type": "object",
258
+ "additionalProperties": false,
259
+ "required": ["argv"],
260
+ "properties": {
261
+ "argv": { "type": "array", "minItems": 1, "items": { "type": "string" } }
262
+ }
263
+ },
264
+ { "type": "null" }
265
+ ]
266
+ },
267
+ "sessionUsage": {
268
+ "description": "Transcript format carrying per-message token counts, or null when this host writes none and its tokens are not measurable.",
269
+ "oneOf": [
270
+ {
271
+ "type": "object",
272
+ "additionalProperties": false,
273
+ "required": ["format"],
274
+ "properties": {
275
+ "format": { "type": "string", "enum": ["claude-jsonl", "rollout"] }
276
+ }
277
+ },
278
+ { "type": "null" }
279
+ ]
280
+ },
281
+ "network": {
282
+ "description": "Whether a run on this host needs the network. optional hosts skip the steps that reach outside the machine and say which ones they skipped.",
283
+ "type": "string",
284
+ "enum": ["required", "optional"]
285
+ }
286
+ }
287
+ },
288
+ "modelSlot": {
289
+ "type": "object",
290
+ "additionalProperties": false,
291
+ "required": ["model"],
292
+ "properties": {
293
+ "model": { "type": "string", "minLength": 1 },
294
+ "effort": { "type": "string", "minLength": 1 }
295
+ }
296
+ },
297
+ "panelSlot": {
298
+ "description": "One reviewer slot: either a rung this host resolves, or a concrete model when the panel deliberately overrides the rung map.",
299
+ "type": "object",
300
+ "additionalProperties": false,
301
+ "minProperties": 1,
302
+ "properties": {
303
+ "rung": { "$ref": "#/$defs/rungName" },
304
+ "model": { "type": "string", "minLength": 1 },
305
+ "effort": { "type": "string", "minLength": 1 }
306
+ },
307
+ "oneOf": [{ "required": ["rung"] }, { "required": ["model"] }]
308
+ }
309
+ }
310
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "1.2.0",
2
+ "contractVersion": "1.3.0",
3
3
  "verified": false,
4
4
  "note": "How a client starts a run without a terminal conversation. The claude argv is launchArgv() and the environment is launchEnv() in scripts/autopilot-runner.mjs; test/launch-contract.test.mjs holds this file to both. The shape awaits a live launch trial, so a client treats it as provisional until verified is true.",
5
5
  "requestFile": {
@@ -45,9 +45,29 @@
45
45
  "LOGS_ROOT": "{runLogsRoot}",
46
46
  "MA_LAUNCH_REQUEST": "{requestFile}"
47
47
  }
48
+ },
49
+ "analysis-autopilot": {
50
+ "argv": [
51
+ "--bg",
52
+ "--session-id",
53
+ "{sessionId}",
54
+ "--permission-prompts",
55
+ "none",
56
+ "--settings",
57
+ "{settingsFile}",
58
+ "/multi-agent:analysis {input} autopilot"
59
+ ],
60
+ "env": {
61
+ "MULTI_AGENT_UNATTENDED": "1",
62
+ "MULTI_AGENT_SESSION_ID": "{sessionId}",
63
+ "MCP_TOOLKIT_URL_POLICY": "strict",
64
+ "MCP_TOOLKIT_INDEX_DENY": "~/.ssh,~/.aws,~/.gnupg,~/Library/Keychains,~/.netrc,~/.git-credentials,~/.docker/config.json,~/.kube,~/.config/gcloud,~/.azure,~/.config/op,~/.terraform.d,~/.pypirc,~/Library/Cookies,~/Library/Application Support/Google/Chrome,~/Library/Application Support/Firefox,~/Library/Application Support/com.apple.Safari,~/.android/adbkey,~/.appstoreconnect,~/.private_keys,~/private_keys,~/.config/configstore,~/.config/github-copilot,~/.local/share/gh,~/.zsh_history,~/.bash_history,~/.gradle/gradle.properties,~/.gradle,~/Library/Application Support/Code,~/Library/Application Support/Microsoft Edge,~/Library/Application Support/BraveSoftware,~/Library/Application Support/Arc,~/Library/Application Support/com.vercel.cli,~/.claude/logs/multi-agent/contract-server,~/.claude/logs/multi-agent/office",
65
+ "LOGS_ROOT": "{runLogsRoot}",
66
+ "MA_LAUNCH_REQUEST": "{requestFile}"
67
+ }
48
68
  }
49
69
  },
50
- "note": "Only unattended shapes are declared: a background session with no permission prompts has nobody to answer an interactive run. autopilot resolves every picker without asking; background runs the same pipeline without autopilot and parks on a picker the request did not answer (pendingQuestion, answered through answer-question.mjs or the contract server); resume re-enters a run recorded under the unattended log root. An interactive request is used by a person who sets MA_LAUNCH_REQUEST in their own terminal before typing /multi-agent.",
70
+ "note": "Only unattended shapes are declared: a background session with no permission prompts has nobody to answer an interactive run. autopilot resolves every picker without asking, and analysis-autopilot does the same for the analysis command, which stops at a document instead of a pull request; background runs the same pipeline without autopilot and parks on a picker the request did not answer (pendingQuestion, answered through answer-question.mjs or the contract server); resume re-enters a run recorded under the unattended log root. An interactive request is used by a person who sets MA_LAUNCH_REQUEST in their own terminal before typing /multi-agent.",
51
71
  "background": {
52
72
  "development": {
53
73
  "argv": [
@@ -65,7 +65,8 @@
65
65
  "note": { "type": "string" },
66
66
  "modes": {
67
67
  "type": "object",
68
- "propertyNames": { "enum": ["interactive", "autopilot"] },
68
+ "description": "The launch shape per declared mode of schemas/phases.json that a client may start without a terminal conversation. autopilot runs the pipeline and stops at a pull request; analysis-autopilot runs the analysis command and stops at a document.",
69
+ "propertyNames": { "enum": ["interactive", "autopilot", "analysis-autopilot"] },
69
70
  "additionalProperties": { "$ref": "#/$defs/shape" }
70
71
  },
71
72
  "background": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/pipeline/schemas/phases.json",
4
- "description": "The phase contract, in one place: the phase ids and names, which phases each mode runs, the per-phase token ceilings and the phase numbers other code compares against. gen-mode-dispatch.mjs, render-work-summary.sh, the autopilot runner, runs-index.mjs, usage-report.mjs and gen-facts.mjs read it; smoke-phase-contract.sh holds every copy that cannot read it (the phase docs and prose counts, agent-state.schema.json, token-budget.json, phase-tracker.sh, phase-banner.sh, gc-abandoned.sh) to it. Adding or merging a phase means editing here. A mode with `names` runs the same six slots under its own step names (analysis gathers evidence and synthesises where development plans and builds), and its tracker and task widget show those names. A mode with `commits: false` delivers no commit in its Phase 4 (analysis publishes a document), so lib/run-completion.mjs asks it for no commit evidence before `status: complete`; any other mode commits. Ceilings are measured against the current phase documents, never summed from earlier ones: smoke-token-budget.sh fails a ceiling more than 25% above the measurement.",
4
+ "description": "The phase contract, in one place: the phase ids and names, which phases each mode runs, the per-phase token ceilings and the phase numbers other code compares against. gen-mode-dispatch.mjs, render-work-summary.sh, the autopilot runner, runs-index.mjs, usage-report.mjs and gen-facts.mjs read it; smoke-phase-contract.sh holds every copy that cannot read it (the phase docs and prose counts, agent-state.schema.json, token-budget.json, phase-tracker.sh, phase-banner.sh, gc-abandoned.sh) to it. Adding or merging a phase means editing here. A mode with `names` runs the same six slots under its own step names (analysis gathers evidence and synthesises where development plans and builds), and its tracker and task widget show those names. A mode with `commits: false` delivers no commit in its Phase 4 (analysis publishes a document), so lib/run-completion.mjs asks it for no commit evidence before `status: complete`; any other mode commits. `steps` is the phase's sub-step list, in order: `phase-tracker.sh add` registers each one as a pending sub-phase so the run's widget carries them from the first boundary, and the phase moves its own with `sub`. Dev declares none because its sub-steps are Phase 1's plan tasks, attached by `phase-tracker.sh plan`. Ceilings are measured against the current phase documents, never summed from earlier ones: smoke-token-budget.sh fails a ceiling more than 25% above the measurement.",
5
5
  "contractVersion": "2.0.0",
6
6
  "phaseSchema": 2,
7
7
  "phaseSchemaNote": "The phase vocabulary generation. metrics.jsonl is append-only and v19.0.0 renumbered the phases, so every line written from v19.0.0 on carries this number and a line without the field is generation 1. Aggregators pick their name table from it; without it phase 3 means Dev in old rows and Review in new ones and no reader can tell them apart.",
@@ -20,6 +20,7 @@
20
20
  {
21
21
  "id": 0,
22
22
  "name": "Init",
23
+ "steps": ["Intake", "Workspace", "Task contract"],
23
24
  "doc": "phase-0-init.md",
24
25
  "maxTokens": 13600,
25
26
  "was": [0]
@@ -27,6 +28,7 @@
27
28
  {
28
29
  "id": 1,
29
30
  "name": "Plan",
31
+ "steps": ["Context", "Exploration", "Task breakdown"],
30
32
  "doc": "phase-1-plan.md",
31
33
  "maxTokens": 10250,
32
34
  "roles": ["critic"],
@@ -36,21 +38,23 @@
36
38
  "id": 2,
37
39
  "name": "Dev",
38
40
  "doc": "phase-2-dev.md",
39
- "maxTokens": 10650,
41
+ "maxTokens": 10410,
40
42
  "roles": ["critic"],
41
43
  "was": [3]
42
44
  },
43
45
  {
44
46
  "id": 3,
45
47
  "name": "Review",
48
+ "steps": ["Gates", "Review panel", "Triage"],
46
49
  "doc": "phase-3-review.md",
47
- "maxTokens": 17260,
50
+ "maxTokens": 17500,
48
51
  "roles": ["reviewer", "review panel", "triage", "triyaj"],
49
52
  "was": [4, 5]
50
53
  },
51
54
  {
52
55
  "id": 4,
53
56
  "name": "Commit",
57
+ "steps": ["Commit", "Push", "Pull request"],
54
58
  "doc": "phase-4-commit.md",
55
59
  "maxTokens": 6650,
56
60
  "roles": ["commit step"],
@@ -59,6 +63,7 @@
59
63
  {
60
64
  "id": 5,
61
65
  "name": "Report",
66
+ "steps": ["Channels dispatch", "Log + telemetry", "Knowledge + memory"],
62
67
  "doc": "phase-5-report.md",
63
68
  "maxTokens": 5800,
64
69
  "roles": ["triage", "triyaj"],
@@ -87,6 +92,19 @@
87
92
  },
88
93
  "autopilot": false,
89
94
  "commits": false
95
+ },
96
+ "analysis-autopilot": {
97
+ "phases": [0, 1, 2, 3, 4, 5],
98
+ "names": {
99
+ "0": "Intake",
100
+ "1": "Evidence",
101
+ "2": "Synthesis",
102
+ "3": "Review",
103
+ "4": "Publish",
104
+ "5": "Report"
105
+ },
106
+ "autopilot": true,
107
+ "commits": false
90
108
  }
91
109
  },
92
110
  "thresholds": {
@@ -79,6 +79,14 @@
79
79
  "minLength": 1
80
80
  },
81
81
  "description": "Words that name work done in this phase when written beside its number in prose (\"Phase 3 reviewer\"). A word listed under two phases is valid beside either. lint-phase-labels.mjs reads them."
82
+ },
83
+ "steps": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "description": "The phase's sub-steps, in order. phase-tracker.sh `add` registers each as a pending sub-phase numbered <id>.1, <id>.2, ..., so the widget carries them from the first boundary; the phase moves its own with `sub`. A phase whose sub-steps are computed at run time (Dev, which executes the plan's tasks) declares none."
82
90
  }
83
91
  }
84
92
  }