@mmerterden/multi-agent-pipeline 23.7.0 → 24.1.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.
- package/CHANGELOG.md +60 -1
- package/README.md +59 -24
- package/README.tr.md +43 -8
- package/SECURITY.md +3 -3
- package/docs/architecture.md +41 -4
- package/docs/ecosystem.md +15 -13
- package/docs/facts.json +5 -4
- package/docs/features.md +67 -15
- package/install/_codex-agents.mjs +13 -8
- package/install/_common.mjs +24 -0
- package/install/_dev-only-files.mjs +5 -0
- package/install/_mcp-register.mjs +6 -2
- package/install/_rewrite-tree.mjs +197 -0
- package/install/codex.mjs +96 -180
- package/install/copilot.mjs +24 -54
- package/install/index.mjs +29 -11
- package/install/templates/codex-instructions.md +21 -5
- package/install/templates/copilot-instructions.md +21 -14
- package/manifest.json +2083 -0
- package/package.json +8 -2
- package/pipeline/commands/multi-agent/SKILL.md +5 -4
- package/pipeline/commands/multi-agent/analysis/SKILL.md +5 -1
- package/pipeline/commands/multi-agent/autopilot-on/SKILL.md +31 -3
- package/pipeline/commands/multi-agent/autopilot-status/SKILL.md +5 -1
- package/pipeline/commands/multi-agent/channels/SKILL.md +16 -8
- package/pipeline/commands/multi-agent/log/SKILL.md +2 -0
- package/pipeline/commands/multi-agent/stack/SKILL.md +1 -1
- package/pipeline/contract/CHANGELOG.md +15 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/runs-awaiting-question.json +6 -1
- package/pipeline/contract/fixtures/runs-empty.json +1 -1
- package/pipeline/contract/fixtures/runs-failed.json +21 -1
- package/pipeline/contract/fixtures/runs-old-schema.json +18 -3
- package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +31 -1
- package/pipeline/contract/fixtures/runs-pr-opened.json +31 -1
- package/pipeline/contract/fixtures/runs-running.json +16 -1
- package/pipeline/contract/manifest.json +14 -14
- package/pipeline/contract/types/index.d.ts +20 -1
- package/pipeline/lib/_jira-auth.sh +50 -78
- package/pipeline/lib/_service-account.sh +191 -0
- package/pipeline/lib/credential-inventory.sh +49 -37
- package/pipeline/lib/credential-store.sh +48 -3
- package/pipeline/lib/fetch-confluence.sh +76 -92
- package/pipeline/lib/fetch-crashlytics.sh +30 -59
- package/pipeline/lib/fetch-figma-annotations.sh +9 -9
- package/pipeline/lib/fetch-fortify.sh +77 -81
- package/pipeline/lib/fetch-graylog.sh +38 -77
- package/pipeline/lib/figma-mcp-refresh.sh +23 -4
- package/pipeline/lib/figma-screenshot.sh +7 -8
- package/pipeline/lib/figma-token.sh +39 -46
- package/pipeline/lib/host.mjs +138 -0
- package/pipeline/lib/host.sh +48 -0
- package/pipeline/lib/issue-fetcher.sh +25 -41
- package/pipeline/lib/jira-publish.sh +23 -21
- package/pipeline/lib/local-model.mjs +93 -0
- package/pipeline/lib/md2confluence-v3.py +37 -30
- package/pipeline/lib/model-dispatch.sh +41 -4
- package/pipeline/lib/model-resolve.mjs +58 -0
- package/pipeline/lib/post-pr-review.sh +38 -53
- package/pipeline/lib/reviewer-families.mjs +70 -0
- package/pipeline/lib/service-account.mjs +2131 -0
- package/pipeline/lib/service-account.sh +35 -0
- package/pipeline/lib/usage-token.mjs +64 -24
- package/pipeline/lib/usage-vocab.mjs +1 -1
- package/pipeline/lib/user-facing.mjs +11 -3
- package/pipeline/lib/vercel-deploy.sh +17 -26
- package/pipeline/multi-agent-refs/_entry-picker.md +62 -0
- package/pipeline/multi-agent-refs/analysis/intake.md +2 -0
- package/pipeline/multi-agent-refs/analysis/render.md +12 -1
- package/pipeline/multi-agent-refs/analysis/reusable-refs.md +1 -0
- package/pipeline/multi-agent-refs/analysis/unattended.md +135 -0
- package/pipeline/multi-agent-refs/autopilot-on/details.md +16 -0
- package/pipeline/multi-agent-refs/channels/generator.md +10 -2
- package/pipeline/multi-agent-refs/channels/menu.md +3 -1
- package/pipeline/multi-agent-refs/channels/preview.md +3 -1
- package/pipeline/multi-agent-refs/channels/reference.md +16 -2
- package/pipeline/multi-agent-refs/channels/report-file.md +188 -0
- package/pipeline/multi-agent-refs/cross-cli-contract.md +35 -27
- package/pipeline/multi-agent-refs/features/doctor.md +37 -11
- package/pipeline/multi-agent-refs/features/free-models.md +3 -3
- package/pipeline/multi-agent-refs/features/local-model.md +87 -0
- package/pipeline/multi-agent-refs/features/model-fallback.md +25 -10
- package/pipeline/multi-agent-refs/features/product-context.md +6 -5
- package/pipeline/multi-agent-refs/features/service-accounts.md +233 -0
- package/pipeline/multi-agent-refs/features/unattended-security.md +10 -1
- package/pipeline/multi-agent-refs/help/en.md +36 -1
- package/pipeline/multi-agent-refs/help/tr.md +34 -1
- package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +2 -1
- package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -1
- package/pipeline/multi-agent-refs/phases/modes.md +20 -1
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-4-commit.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +13 -11
- package/pipeline/multi-agent-refs/phases.md +4 -3
- package/pipeline/multi-agent-refs/review/panel.md +30 -18
- package/pipeline/multi-agent-refs/setup/discovery.md +17 -5
- package/pipeline/multi-agent-refs/setup/token-save-flow.md +21 -2
- package/pipeline/multi-agent-refs/sync/overview.md +11 -5
- package/pipeline/multi-agent-refs/tracker-contract.md +64 -20
- package/pipeline/office/index.html +77 -4
- package/pipeline/schemas/activity.schema.json +63 -4
- package/pipeline/schemas/autopilot-config.schema.json +29 -4
- package/pipeline/schemas/hosts.json +512 -0
- package/pipeline/schemas/hosts.schema.json +310 -0
- package/pipeline/schemas/launch.json +22 -2
- package/pipeline/schemas/launch.schema.json +2 -1
- package/pipeline/schemas/now-lines.json +103 -0
- package/pipeline/schemas/now-lines.schema.json +42 -0
- package/pipeline/schemas/phases.json +19 -1
- package/pipeline/schemas/phases.schema.json +8 -0
- package/pipeline/schemas/prefs.schema.json +331 -4
- package/pipeline/schemas/runs-index.schema.json +22 -1
- package/pipeline/scripts/_autopilot-config.mjs +67 -4
- package/pipeline/scripts/_autopilot-item.mjs +67 -0
- package/pipeline/scripts/_autopilot-outcomes.mjs +6 -0
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/_cost.mjs +75 -3
- package/pipeline/scripts/activity-snapshot.mjs +27 -1
- package/pipeline/scripts/analysis-sources.mjs +22 -5
- package/pipeline/scripts/analysis-unattended.mjs +360 -0
- package/pipeline/scripts/anonymize-findings.mjs +3 -7
- package/pipeline/scripts/autopilot-arming.mjs +19 -10
- package/pipeline/scripts/autopilot-intake.mjs +124 -27
- package/pipeline/scripts/autopilot-menubar.swift +7 -0
- package/pipeline/scripts/autopilot-runner.mjs +77 -48
- package/pipeline/scripts/autopilot-status.sh +32 -9
- package/pipeline/scripts/bulk-read.sh +37 -5
- package/pipeline/scripts/confluence-readback.mjs +15 -7
- package/pipeline/scripts/cost-table.json +65 -25
- package/pipeline/scripts/doctor.mjs +119 -32
- package/pipeline/scripts/entry-mode.mjs +101 -0
- package/pipeline/scripts/estimate.mjs +30 -16
- package/pipeline/scripts/feedback-send.mjs +11 -8
- package/pipeline/scripts/gen-facts.mjs +7 -9
- package/pipeline/scripts/jira-attach.sh +23 -28
- package/pipeline/scripts/jira-search.sh +5 -21
- package/pipeline/scripts/launch-request.mjs +15 -9
- package/pipeline/scripts/migrate-prefs.mjs +56 -0
- package/pipeline/scripts/phase-tracker.sh +226 -50
- package/pipeline/scripts/priority-review.mjs +14 -7
- package/pipeline/scripts/product-context.mjs +26 -7
- package/pipeline/scripts/prune-logs.sh +4 -2
- package/pipeline/scripts/render-work-summary.sh +51 -1
- package/pipeline/scripts/report-file.mjs +285 -0
- package/pipeline/scripts/rework-escalation.mjs +19 -4
- package/pipeline/scripts/runs-index.mjs +2 -1
- package/pipeline/scripts/service-read.mjs +19 -17
- package/pipeline/scripts/skill-siblings.mjs +17 -1
- package/pipeline/scripts/status-overview.mjs +20 -10
- package/pipeline/scripts/uninstall.mjs +145 -57
- package/pipeline/scripts/usage-register.mjs +34 -11
- package/pipeline/scripts/usage-report.mjs +31 -26
- package/pipeline/scripts/validate-triage.mjs +11 -1
- package/pipeline/scripts/work-items.mjs +25 -28
- package/pipeline/scripts/write-store-config.mjs +37 -11
- package/pipeline/skills/.skill-manifest.json +4 -4
- package/pipeline/skills/.skills-index.json +1 -1
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +11 -3
- package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -0
- package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +11 -8
- package/pipeline/lib/credential-resolve.mjs +0 -75
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
| `--message "..."` | Manual mode - use user text as source, no diff read. Forces `content=note`. |
|
|
42
42
|
| `--message-file path` | Manual mode, long message from file. |
|
|
43
43
|
| `--append` | PR description: append instead of replace. |
|
|
44
|
-
| `--dry-run` | Generate, print to stdout, do not POST. |
|
|
44
|
+
| `--dry-run` | Generate, print to stdout, do not POST. Does not write the report file; prints the path it would write. |
|
|
45
|
+
| `--file-only` | No menu, no approval gate, no dispatch: compose the `Report` body and write the report file only. Content from `--content`, else from prefs. Used by the Phase 5 offline short-circuit, unattended Phase 5, the autopilot timeout, and a menu resolved with zero channels. |
|
|
45
46
|
| `--lang=tr\|en\|both` | Output language override (default: `en`; `promptLanguage` is locked to `en`). |
|
|
46
47
|
| `--ready` | If PR draft, promote to READY after channels dispatch. |
|
|
47
48
|
|
|
@@ -65,6 +66,7 @@ Non-interactive in three cases; the menu is skipped and flag values or prefs are
|
|
|
65
66
|
| `--channels X,Y` + `--content A,B` flags | Exact flag values, no menu. |
|
|
66
67
|
| `autopilot` (Phase 5 delegate) | Reads `prefs.global.reportChannels` + `prefs.global.reportContent`. Per the Phase 5 autopilot-pause contract, Phase 5 still pauses before calling channels but pre-fills the menu from prefs. A post-hoc call in autopilot mode uses prefs directly. |
|
|
67
68
|
| `--dry-run` | Runs the menu, generates output, prints to stdout, does not post. |
|
|
69
|
+
| `--file-only` | Skips the menu, the gate and the dispatch; composes one body and writes the report file. |
|
|
68
70
|
|
|
69
71
|
## Step 8 summary format
|
|
70
72
|
|
|
@@ -75,8 +77,14 @@ channels dispatch complete
|
|
|
75
77
|
Confluence - skipped: user declined
|
|
76
78
|
Wiki ✓ 3 files via github-wiki adapter
|
|
77
79
|
Board ✓ In Develop → In Review (project #4)
|
|
80
|
+
Report file ✓ $HOME/.claude/logs/multi-agent/app/PROJ-12/task-report.md
|
|
78
81
|
```
|
|
79
82
|
|
|
83
|
+
The `Report file` row is always last and always present: `✓` with the absolute
|
|
84
|
+
path (and `(previous kept in report-history/)` when a previous run's file was
|
|
85
|
+
rotated), `-` for a dry run or when there was no content source at all, `✗` with
|
|
86
|
+
the reason when the writer refused.
|
|
87
|
+
|
|
80
88
|
## Error handling
|
|
81
89
|
|
|
82
90
|
| Condition | Behavior |
|
|
@@ -90,6 +98,9 @@ channels dispatch complete
|
|
|
90
98
|
| Bitbucket PR version mismatch | Refetch once, retry; fail on second mismatch |
|
|
91
99
|
| Jira token missing/expired | Token Save Flow inline; skip on user-skip |
|
|
92
100
|
| Wiki preconditions not met | Case B menu per `$HOME/.claude/multi-agent-refs/wiki-capture.md` |
|
|
101
|
+
| No external channel available or selected | Not an error: file-only. Bodies are composed and written to disk, nothing is posted |
|
|
102
|
+
| Report file refused (writer exit 7 or 2) | The `Report file` row carries the reason; dispatch continues unaffected |
|
|
103
|
+
| No content source at all | Nothing is written and Step 8 says so. A pipeline run always has a log, so this is the post-hoc case |
|
|
93
104
|
|
|
94
105
|
## Cross-CLI parity
|
|
95
106
|
|
|
@@ -122,6 +133,7 @@ Progress emission on Copilot (no native TaskCreate UI): `bash ~/.copilot/scripts
|
|
|
122
133
|
→ page created → https://<host>/pages/12345
|
|
123
134
|
|
|
124
135
|
/multi-agent:channels https://<bitbucket>/.../pull-requests/42 --dry-run
|
|
136
|
+
/multi-agent:channels PROJ-12345 --file-only # local-only repo: compose and write, post nothing
|
|
125
137
|
→ resolves → PROJ-67890
|
|
126
138
|
→ prints Jira + PR body preview to stdout, no POST
|
|
127
139
|
|
|
@@ -137,8 +149,10 @@ Phase 5 invokes channels internally instead of running its own Jira / Confluence
|
|
|
137
149
|
| Who | What |
|
|
138
150
|
|---|---|
|
|
139
151
|
| Phase 5 | Progress tracker (sub-steps 1-3), agent-log finalization (step 4), knowledge + memory capture (step 5), telemetry emission |
|
|
140
|
-
| `channels` | All external delivery: PR description update, Jira comment, Confluence page, Wiki pages |
|
|
152
|
+
| `channels` | All external delivery: PR description update, Jira comment, Confluence page, Wiki pages. Plus the local report file, which is not delivery and is written whatever the channels do |
|
|
141
153
|
|
|
142
154
|
Phase 5 passes a runtime state bundle: `{jiraId, prUrl, remoteType, taskType, figmaConfig, agentState, pipelineLogPath, flowRuns}`. Channels reads these directly and skips Step 1 target resolution.
|
|
143
155
|
|
|
156
|
+
On the three paths where nothing is posted - the offline short-circuit, an unattended run, and the autopilot timeout - Phase 5 calls channels with `--file-only` rather than skipping it. That is the whole reason the report file exists: those are the paths that used to end with the summary composed and then dropped. The channels return carries `reportFile: {status, path}`, which is not written to `channelResults`: that object records what was posted, and this was not.
|
|
157
|
+
|
|
144
158
|
Autopilot: Phase 5 always pauses at the channels menu, the one exception to the autopilot zero-interaction contract. A 30-min timeout ends the session cleanly and the task stays resumable via `/multi-agent:resume`; full contract in `$HOME/.claude/multi-agent-refs/phases/modes.md`. The Step 6 approval gate follows the same split: interactive runs approve the composed bodies before dispatch, autopilot posts directly after the menu resolves.
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Channels - the report file
|
|
2
|
+
|
|
3
|
+
<!-- toc -->
|
|
4
|
+
- [Why it is not a channel](#why-it-is-not-a-channel)
|
|
5
|
+
- [Path](#path)
|
|
6
|
+
- [The file](#the-file)
|
|
7
|
+
- [When it is written](#when-it-is-written)
|
|
8
|
+
- [Rotation](#rotation)
|
|
9
|
+
- [Writer](#writer)
|
|
10
|
+
- [Step 8 row](#step-8-row)
|
|
11
|
+
<!-- /toc -->
|
|
12
|
+
|
|
13
|
+
> Loaded by `channels/SKILL.md` Step 5. The SKILL keeps the one-line rule; this
|
|
14
|
+
> file carries the path, the envelope, the write moments, `--file-only`,
|
|
15
|
+
> rotation and the writer's interface.
|
|
16
|
+
|
|
17
|
+
## Why it is not a channel
|
|
18
|
+
|
|
19
|
+
Every channel is an external write, and three ordinary paths end with nothing
|
|
20
|
+
written at all:
|
|
21
|
+
|
|
22
|
+
- a local-only repo short-circuits Phase 5 before the menu (`phases/phase-5-report.md`);
|
|
23
|
+
- an unattended run defers delivery to the runner and posts nothing;
|
|
24
|
+
- a cancelled menu, the autopilot timeout, and a menu with every row unticked
|
|
25
|
+
all end after Step 5.
|
|
26
|
+
|
|
27
|
+
On a machine with no tracker the development summary and the test scenarios were
|
|
28
|
+
composed, shown once in the preview, and lost.
|
|
29
|
+
|
|
30
|
+
A fifth channel would not fix that. A channel is selectable, waits for the Step 6
|
|
31
|
+
gate, and is skipped unattended and offline - each of which reintroduces one of
|
|
32
|
+
the three losses. So the report file is internal capture, like `agent-log.md`:
|
|
33
|
+
unconditional, local, and with no preference to get wrong. It is not a post, and
|
|
34
|
+
no rule about posting applies to it.
|
|
35
|
+
|
|
36
|
+
## Path
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
${LOGS_ROOT:-$HOME/.claude/logs/multi-agent}/<project>/<task-id>/task-report.md
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Beside `agent-log.md`. Not the repo or the worktree, which Phase 4 removes and
|
|
43
|
+
where a stray file invites an accidental commit; not the Desktop, which is
|
|
44
|
+
presumptuous on a shipped product and outside the unattended write scope. The
|
|
45
|
+
log directory survives the worktree, `/multi-agent:log` already looks there,
|
|
46
|
+
`prune-logs` already owns its lifetime, and an unattended run may write to it.
|
|
47
|
+
|
|
48
|
+
`task-report.md`, not `report.md`: store-ready, bug-bash and complaint-analysis
|
|
49
|
+
already write a `report.md` and mean something else by it.
|
|
50
|
+
|
|
51
|
+
The task directory is `dirname` of the pipeline log when there is one. For a
|
|
52
|
+
post-hoc call on a task that never ran through the pipeline, it is
|
|
53
|
+
`<LOGS_ROOT>/<project>/<key>/` with the key being the Jira id, else `GH<n>`,
|
|
54
|
+
else `PR<n>`.
|
|
55
|
+
|
|
56
|
+
How someone who never read this finds it: the Step 8 row prints the absolute
|
|
57
|
+
path, the Phase 5 closing block carries `Report file:`, the Step 3 menu says in
|
|
58
|
+
one line that it is always written, `/multi-agent:log` prints it, and the `Logs:`
|
|
59
|
+
line of `/multi-agent:help` names it.
|
|
60
|
+
|
|
61
|
+
## The file
|
|
62
|
+
|
|
63
|
+
```markdown
|
|
64
|
+
# {taskKey} - {title}
|
|
65
|
+
|
|
66
|
+
- Branch: `{head}` -> `{base}`
|
|
67
|
+
- PR: {url | none}
|
|
68
|
+
- Tracker: {jira id or issue url | none}
|
|
69
|
+
- Written: {YYYY-MM-DD HH:mm} by /multi-agent:channels (run {runId})
|
|
70
|
+
- Delivery: {not sent | pr posted · jira skipped: declined | ...}
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
# Report
|
|
75
|
+
|
|
76
|
+
{body}
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
# Jira comment
|
|
81
|
+
|
|
82
|
+
{body}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Envelope labels are fixed English so the file stays parseable; the bodies are in
|
|
86
|
+
`outputLanguage`. Block headings are `Report`, `PR description (<repo>#<n>)`,
|
|
87
|
+
`Jira comment` and `Confluence page`, in that order whatever order they were
|
|
88
|
+
handed over in.
|
|
89
|
+
|
|
90
|
+
**The file always carries one PR-shaped body.** When `pr` is selected that block
|
|
91
|
+
is the PR body, copied. When it is not, the generator composes one body in the
|
|
92
|
+
`channels/pr.md` section order, with the PR tone, labelled `Report`. The PR shape
|
|
93
|
+
is the superset, so `Geliştirme Özeti` and `Test Senaryoları` are on disk in
|
|
94
|
+
every case. The cost is one extra composition when `pr` is not selected.
|
|
95
|
+
|
|
96
|
+
`technicalAnalysis` renders in the PR-shaped block, always, and never in the
|
|
97
|
+
`Jira comment` block, which is a copy of the Jira body. The "never Jira" rule is
|
|
98
|
+
about the Jira reader and is untouched.
|
|
99
|
+
|
|
100
|
+
Bodies are copied byte for byte. Nothing is merged, converted or run through the
|
|
101
|
+
humanizer a second time: a second pass would break byte-identity with what the
|
|
102
|
+
adapters post.
|
|
103
|
+
|
|
104
|
+
## When it is written
|
|
105
|
+
|
|
106
|
+
Whenever Step 5 composed at least one body.
|
|
107
|
+
|
|
108
|
+
- **Right after the humanizer, before Step 6.** Cancel, the timeout and a crash
|
|
109
|
+
therefore all leave it behind.
|
|
110
|
+
- Rewritten after each `Edit` re-render, and once more at Step 8 with
|
|
111
|
+
`--delivery` to stamp the outcomes.
|
|
112
|
+
- **No approval gate.** The gate protects an audience from unreviewed text. This
|
|
113
|
+
file has no audience but the machine's owner, is replaceable, and holds less
|
|
114
|
+
than `agent-log.md` already does.
|
|
115
|
+
- `--dry-run` writes nothing and prints the path it would write.
|
|
116
|
+
- If the access check stops channels inside Phase 5, Phase 5 records
|
|
117
|
+
`report file not written` and continues its internal capture. It never halts
|
|
118
|
+
on it.
|
|
119
|
+
- No content source at all - no log, no PR diff, no `--message`, no state - and
|
|
120
|
+
nothing is written. Step 8 says so. A pipeline run always has a log.
|
|
121
|
+
|
|
122
|
+
### `--file-only`
|
|
123
|
+
|
|
124
|
+
No menu, no Step 6, no Step 7. Content comes from `--content`, else from
|
|
125
|
+
`prefs.global.reportContent` filtered by the availability rules. Only the
|
|
126
|
+
`Report` body is composed.
|
|
127
|
+
|
|
128
|
+
Used by the Phase 5 offline short-circuit, unattended Phase 5, the autopilot
|
|
129
|
+
30-minute timeout, and a menu resolved with zero channels, which is a valid
|
|
130
|
+
selection meaning file-only.
|
|
131
|
+
|
|
132
|
+
## Rotation
|
|
133
|
+
|
|
134
|
+
- `task-report.md` is always the latest.
|
|
135
|
+
- Same `runId` as the file already there (the Edit loop, the delivery stamp):
|
|
136
|
+
replaced in place.
|
|
137
|
+
- A different `runId`: the previous file moves to
|
|
138
|
+
`report-history/task-report-<stamp>-<runId>.md` first. The newest 5 are kept.
|
|
139
|
+
- The run id is in the name because the stamp is minute-resolution: two runs
|
|
140
|
+
inside one minute would otherwise share a name, the second quietly replacing
|
|
141
|
+
the first in the very place that exists to not lose it.
|
|
142
|
+
- Not appended, because one unreadable file is not a report. Not
|
|
143
|
+
timestamp-only-named, because then nobody can tell which one is current.
|
|
144
|
+
|
|
145
|
+
## Writer
|
|
146
|
+
|
|
147
|
+
`$HOME/.claude/scripts/report-file.mjs`. Zero dependencies beyond the outbound gate.
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
report-file.mjs write --dir <task-dir> --run <id> --meta <meta.json>
|
|
151
|
+
--body <name>=<file> [--body ...] [--delivery <json>]
|
|
152
|
+
report-file.mjs path --dir <task-dir>
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
`meta.json` carries `{taskKey, title, branch, base, prUrl, tracker}`; a missing
|
|
156
|
+
value renders as `none`. `--delivery` takes the dispatch result object. stdout is
|
|
157
|
+
the absolute path.
|
|
158
|
+
|
|
159
|
+
| Exit | Meaning |
|
|
160
|
+
|---|---|
|
|
161
|
+
| 0 | written |
|
|
162
|
+
| 2 | usage, no body, an empty body, or a path that is not inside the logs root |
|
|
163
|
+
| 7 | a body carries credential-shaped text |
|
|
164
|
+
|
|
165
|
+
What it refuses, and why each one is a refusal rather than a repair:
|
|
166
|
+
|
|
167
|
+
- a `--dir` whose realpath is outside `LOGS_ROOT`, including one reached through
|
|
168
|
+
a symlink or `..`;
|
|
169
|
+
- a symlink at `task-report.md` or at `report-history/`, which would point the
|
|
170
|
+
write somewhere else;
|
|
171
|
+
- a body that the outbound gate matches with certainty. Nothing is written, the
|
|
172
|
+
existing file and its history are untouched, and the message names the rule
|
|
173
|
+
and the line but never the matched value.
|
|
174
|
+
|
|
175
|
+
It writes to a temp file in the same directory and renames, mode 0600, so a
|
|
176
|
+
reader never sees a half-written report and a crash leaves the previous one
|
|
177
|
+
intact.
|
|
178
|
+
|
|
179
|
+
## Step 8 row
|
|
180
|
+
|
|
181
|
+
Always present, last row of the block.
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
Report file ✓ /Users/me/.claude/logs/multi-agent/app/PROJ-12/task-report.md (previous kept in report-history/)
|
|
185
|
+
Report file - dry run: would write <path>
|
|
186
|
+
Report file - nothing to write: no content source
|
|
187
|
+
Report file ✗ not written: credential-shaped text in the Jira comment body
|
|
188
|
+
```
|
|
@@ -61,7 +61,7 @@ plugin natively. The other two are served by the installer, so all three end up
|
|
|
61
61
|
same active skill set:
|
|
62
62
|
|
|
63
63
|
| Host | Delivery | Discovery |
|
|
64
|
-
|
|
64
|
+
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
65
65
|
| Claude Code | the marketplace plugin, loaded natively | matched on description |
|
|
66
66
|
| Copilot CLI | `install/copilot.mjs` copies the **enabled** stack plugin's authored skills (`index`, `reference/`, `workflow/`, `tools/`) into `~/.copilot/skills/` | matched on description |
|
|
67
67
|
| Codex CLI | `install/codex.mjs` copies the same set **plus** `skills/shared/external` into `~/.codex/multi-agent-refs/skills/` as reference files | located by path; the AGENTS.md block carries the `ls` / `grep` recipe |
|
|
@@ -89,7 +89,7 @@ What still MUST match across CLIs for component tasks: the `taskType === "compon
|
|
|
89
89
|
Two parallel shared/core skills under `pipeline/skills/shared/core/` wrap external tooling for pre-submission store compliance:
|
|
90
90
|
|
|
91
91
|
| Skill | Path | Tool wrapper | Rules |
|
|
92
|
-
|
|
92
|
+
| -------------------------- | ------------------------------------------------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
93
93
|
| `apple-archive-compliance` | `pipeline/skills/shared/core/apple-archive-compliance/` | `ios_app_store_audit` MCP tool (in `@mmerterden/multi-agent-mcp` ≥ v3.0.0) | 18 (Apple ITMS + App Store Review Guidelines) |
|
|
94
94
|
| `google-play-compliance` | `pipeline/skills/shared/core/google-play-compliance/` | bundletool + aapt2 + apksigner | 21 (4 categories: Technical / Security / Privacy / Hygiene) |
|
|
95
95
|
|
|
@@ -111,7 +111,7 @@ list once and names the fallback it takes (`test-gen/stages.md`,
|
|
|
111
111
|
`features/test-classification.md`).
|
|
112
112
|
|
|
113
113
|
| Capability | Tools / fields | Minimum |
|
|
114
|
-
|
|
114
|
+
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
|
|
115
115
|
| Element locators | `ui_locate`, `ios_tap_element`, `android_tap_element`; codes `LOCATOR_NOT_FOUND`, `LOCATOR_AMBIGUOUS` | `@mmerterden/multi-agent-mcp` ≥ v3.19.0 |
|
|
116
116
|
| Assertion steps and verdicts | `agent_run_steps` steps `expect_text`, `expect_element`, `expect_url`; `verdict: passed / failed / blocked` with `ASSERTION_FAILED`, `CREDENTIAL_MISSING`, `ENVIRONMENT_UNAVAILABLE`, `SEED_DATA_MISSING`, `BUDGET_EXCEEDED`, `REPLAY_DIVERGED`; failure `trace.md` | ≥ v3.19.0 |
|
|
117
117
|
| Secrets by reference | `secret_ref` on the type tools | ≥ v3.19.0 |
|
|
@@ -137,7 +137,7 @@ list once and names the fallback it takes (`test-gen/stages.md`,
|
|
|
137
137
|
### 2.1 Identity / account placeholders
|
|
138
138
|
|
|
139
139
|
| Placeholder | Meaning | Example real value |
|
|
140
|
-
|
|
140
|
+
| ---------------- | ---------------------------------------------------------- | ----------------------- |
|
|
141
141
|
| `{owner}` | Public GitHub org/user owning the pipeline repo | `multi-agent-ecosystem` |
|
|
142
142
|
| `{npm-scope}` | npm scope for publishing | `@mmerterden` |
|
|
143
143
|
| `${USER}` | Local OS username, used for per-user keychain keys | `alice` |
|
|
@@ -147,7 +147,7 @@ list once and names the fallback it takes (`test-gen/stages.md`,
|
|
|
147
147
|
### 2.2 Host / URL placeholders
|
|
148
148
|
|
|
149
149
|
| Placeholder | Meaning | Example |
|
|
150
|
-
|
|
150
|
+
| ------------------- | -------------------------- | ------------------------ |
|
|
151
151
|
| `{jira-host}` | Jira server hostname | `jira.company.com` |
|
|
152
152
|
| `{bitbucket-host}` | Bitbucket server hostname | `bitbucket.company.com` |
|
|
153
153
|
| `{confluence-host}` | Confluence server hostname | `confluence.company.com` |
|
|
@@ -159,7 +159,7 @@ list once and names the fallback it takes (`test-gen/stages.md`,
|
|
|
159
159
|
Use these specific names (from the Copilot set) - **never invent new ones**. They correspond to realistic example project types.
|
|
160
160
|
|
|
161
161
|
| Placeholder | Represents |
|
|
162
|
-
|
|
162
|
+
| ------------------ | ------------------------------------------------ |
|
|
163
163
|
| `my-ios-app` | An iOS native project |
|
|
164
164
|
| `my-figma-app` | A figma-driven SwiftUI component project |
|
|
165
165
|
| `my-ui-components` | A UI component library (cross-platform possible) |
|
|
@@ -167,7 +167,7 @@ Use these specific names (from the Copilot set) - **never invent new ones**. T
|
|
|
167
167
|
### 2.4 Task / tracker placeholders
|
|
168
168
|
|
|
169
169
|
| Placeholder | Meaning |
|
|
170
|
-
|
|
170
|
+
| ------------ | ---------------------------------------------------------------------- |
|
|
171
171
|
| `{JIRA_KEY}` | Jira project key (e.g., `PROJ`, `MOBILE`) |
|
|
172
172
|
| `PROJ-12345` | Example Jira issue (placeholder, always use `PROJ-12345` for examples) |
|
|
173
173
|
| `#N` | GitHub issue number placeholder |
|
|
@@ -177,7 +177,7 @@ Use these specific names (from the Copilot set) - **never invent new ones**. T
|
|
|
177
177
|
Legacy names found during the v3.7 audit - replaced per this contract.
|
|
178
178
|
|
|
179
179
|
| Deprecated | Replace with | Reason |
|
|
180
|
-
|
|
180
|
+
| ------------------------------------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------- |
|
|
181
181
|
| `{github-username}` | `{owner}` | Shorter, consistent with `{owner}` pattern |
|
|
182
182
|
| `{website-repo}` | `website` (literal, since the repo name IS "website" under `{owner}`) | Hardcoding the repo name inside `{owner}` scope is fine |
|
|
183
183
|
| `{your-website}` | `{website-host}` | Match `{*-host}` convention |
|
|
@@ -189,15 +189,19 @@ Legacy names found during the v3.7 audit - replaced per this contract.
|
|
|
189
189
|
## 2.6 Intentional structural divergence - two entry files over one set of refs
|
|
190
190
|
|
|
191
191
|
Both top-level orchestrators are short entry files that read the phase contracts
|
|
192
|
-
from
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
from the refs tree when a phase starts; neither embeds the phase specs. Every
|
|
193
|
+
host installs that tree under its own root (`~/.claude/multi-agent-refs/`,
|
|
194
|
+
`~/.copilot/multi-agent-refs/`, `~/.codex/multi-agent-refs/`), and the installer
|
|
195
|
+
retargets the `$HOME/.claude/...` paths the sources are authored against as the
|
|
196
|
+
files land, so each install resolves a ref inside its own tree. They are still
|
|
197
|
+
two different files on purpose, and auditors must not flag the difference in
|
|
198
|
+
their text as a parity violation: each routes the way its host dispatches, and
|
|
199
|
+
the phase refs they both read are the contract.
|
|
196
200
|
|
|
197
201
|
| Surface | File | Shape | Why |
|
|
198
|
-
|
|
202
|
+
| ------------------------ | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
199
203
|
| Claude Code (colon-form) | `pipeline/commands/multi-agent/SKILL.md` | thin dispatcher: input classification and the routing table, then `$HOME/.claude/multi-agent-refs/orchestrator/dispatcher.md` for the full rows and `phases/phase-N-*.md` for the phase that starts | Each sub-command is its own `/multi-agent:<name>` entry, so the dispatcher only routes task input and loads the one ref the action needs. |
|
|
200
|
-
| Copilot CLI (dash-form)
|
|
204
|
+
| Copilot CLI (dash-form) | `pipeline/skills/shared/core/multi-agent/SKILL.md` | entry skill with the routing, task-operation, autopilot, persona-dispatch and phase-label rules inline, which reads `$HOME/.claude/multi-agent-refs/orchestrator/copilot-pipeline.md` before routing and `phases/phase-N-*.md` when each phase starts | Copilot installs its own `multi-agent-refs` tree and retargets every ref path into it, so a Copilot-only machine resolves them without a second CLI. The sub-command specs are not copied there: this host already carries each one as its own skill, and the rewrite points at those. |
|
|
201
205
|
| Codex CLI | installed as `~/.codex/skills/multi-agent/SKILL.md`, generated from the Claude dispatcher | thin dispatcher, refs under `~/.codex/multi-agent-refs/` | Codex reads files on demand, so it takes the Claude shape - **and it has to.** See below. |
|
|
202
206
|
|
|
203
207
|
### Why Codex takes the thin-dispatcher shape, and must keep it
|
|
@@ -255,7 +259,7 @@ borderline finding.
|
|
|
255
259
|
Where the budget goes instead, when vendor diversity is unavailable:
|
|
256
260
|
|
|
257
261
|
| Host | Reviewer 1 | Reviewer 2 | Reviewer 3 |
|
|
258
|
-
|
|
262
|
+
| ----------- | ----------------------------------- | ------------------------------------- | ----------------- |
|
|
259
263
|
| Copilot CLI | Fable/Opus, security + architecture | GPT-5.4, edge cases (cross-vendor) | Sonnet, quality |
|
|
260
264
|
| Claude Code | Fable, security + architecture | Opus, edge cases | Sonnet, quality |
|
|
261
265
|
| Codex | `xhigh`, security + architecture | a different family member, edge cases | `medium`, quality |
|
|
@@ -277,7 +281,7 @@ they are `/multi-agent:fable-on`, `/multi-agent:fable-off` and
|
|
|
277
281
|
via the router skill.
|
|
278
282
|
|
|
279
283
|
| Host | What `fable-on` / `fable-off` does | Why |
|
|
280
|
-
|
|
284
|
+
| ----------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
281
285
|
| Claude Code | live switch: flips `modelFallback.fableEnabled` and realigns `costBudget.pricingModel` | the only host where the `fable` rung is Fable 5.2 |
|
|
282
286
|
| Copilot CLI | writes the preference, changes no dispatch | Fable is not offered there; its personas never sat on this rung |
|
|
283
287
|
| Codex CLI | writes the preference, changes no dispatch, **deliberately** | the `fable` rung on Codex means `gpt-5.6 @ xhigh` - a different model on a different account. A knob named after an Anthropic model must not silently retune a Codex run |
|
|
@@ -291,10 +295,12 @@ host's actual behaviour, never claim a change that did not happen.
|
|
|
291
295
|
|
|
292
296
|
The routing trio (`route-on`, `route-off`, `route-status`) has no such split -
|
|
293
297
|
it writes `prefs.global.modelRouting` identically everywhere. Its honest limit is
|
|
294
|
-
different and applies on every host:
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
different and applies on every host: subagent dispatch belongs to the host, so
|
|
299
|
+
a rung that host does not offer, or whose model belongs to a provider it does
|
|
300
|
+
not dispatch, is refused and the rule's next rung answers. `model-dispatch.sh`
|
|
301
|
+
reads both facts from `schemas/hosts.json` and prints the reason it skipped a
|
|
302
|
+
rung on stderr. The `free` rung (`route-on --free`) is reachable only where the
|
|
303
|
+
pipeline makes the call itself: `bulk-read.sh` and the `delegate` call site, where a skill asks
|
|
298
304
|
`model-dispatch.sh delegate --default host` and calls `llm_delegate` on `free`.
|
|
299
305
|
The toolkit and its CLI are the same on all three hosts, so the free chain
|
|
300
306
|
behaves identically everywhere. `route-status` prints the limit on every run.
|
|
@@ -327,7 +333,7 @@ argument-hint: "<input hint>"
|
|
|
327
333
|
### 3.3 Transform Contract
|
|
328
334
|
|
|
329
335
|
| Direction | Action |
|
|
330
|
-
|
|
336
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
331
337
|
| Claude → Copilot | Add `name`, `user-invocable: true`, `argument-hint`; remove `allowed-tools`; `description` stays English (localization happens only in the installed Claude tree via `description-tr` + `localize-commands.mjs`, never in repo or Copilot files) |
|
|
332
338
|
| Copilot → Claude | Remove `name`, `user-invocable`, `argument-hint`; add `allowed-tools` (inferred from command's actual tool calls) |
|
|
333
339
|
| Both directions | `not-for: <sibling>` carries across with the same value: top-level in the command, under `metadata:` in the skill, where every key no host reads lives (`language` too) |
|
|
@@ -347,13 +353,14 @@ argument-hint: "<input hint>"
|
|
|
347
353
|
### 4.1 TaskCreate ↔ phase-tracker.sh
|
|
348
354
|
|
|
349
355
|
| Concept | Claude Code | Copilot CLI | Codex CLI |
|
|
350
|
-
|
|
356
|
+
| ---------------------------- | ----------------------------------------------------- | -------------------------------------------------------- | --------------------------------------------------------- |
|
|
351
357
|
| Print the registration calls | `phase-tracker.sh tiles` (emits the TaskCreate list) | `phase-tracker.sh tiles` (emits the reprint instruction) | `phase-tracker.sh tiles` (emits the update_plan payload) |
|
|
352
358
|
| Register a phase | `TaskCreate` tool call with subject/description | `phase-tracker.sh add <N> <name>` | `update_plan` step, `status: pending` |
|
|
353
359
|
| Mark a phase in-progress | `TaskUpdate` → `in_progress` | `phase-tracker.sh update <N> in_progress` | `update_plan` step → `in_progress` |
|
|
354
360
|
| Mark a phase complete | `TaskUpdate` → `completed` | `phase-tracker.sh update <N> completed` | `update_plan` step → `completed` |
|
|
355
361
|
| Mark a phase failed | `TaskUpdate` → `completed` + log failure in agent-log | `phase-tracker.sh update <N> failed` | `update_plan` step → `completed` + failure in agent-log |
|
|
356
|
-
|
|
|
362
|
+
| Register a phase's sub-steps | `add` does it from `schemas/phases.json`; one `TaskCreate` per indented row `tiles` prints | `add` does it; the card draws the rows | `add` does it; `tiles` puts the rows in the `update_plan` payload |
|
|
363
|
+
| Sub-step progress | `phase-tracker.sh sub <N> <sub> <name> <status>`, then the `TaskUpdate` its NEXT block prints | `phase-tracker.sh sub ...`, then `render` | `phase-tracker.sh sub ...`, then the `update_plan` its NEXT block prints (the plan tool has no nesting, so `<N>.<sub>` inside the step text is the hierarchy) |
|
|
357
364
|
|
|
358
365
|
`update_plan` takes the FULL step list, not a delta, so each boundary rewrites the
|
|
359
366
|
whole plan. It must never be called in parallel with another tool, and it is
|
|
@@ -377,7 +384,7 @@ which CLI you typed the command in. Continuous mode therefore requires the
|
|
|
377
384
|
no Copilot or Codex equivalent of the child.
|
|
378
385
|
|
|
379
386
|
| Concept | Claude Code | Copilot CLI | Codex CLI |
|
|
380
|
-
|
|
387
|
+
| ---------------------------- | ---------------------------------------------------------------------------- | --------------------------- | ----------------------------------------------- |
|
|
381
388
|
| Turn the mode on | `/multi-agent:autopilot-on` | `/multi-agent-autopilot-on` | `multi-agent autopilot-on` via the router skill |
|
|
382
389
|
| Scripts, libs, templates | `~/.claude/{scripts,lib,templates}` | `~/.copilot/...` | `~/.codex/...` |
|
|
383
390
|
| Which one is read | `ma_ap_asset <rel>` resolves the caller's own tree first, then the other two | same | same |
|
|
@@ -403,7 +410,7 @@ Codex-only machine rendered a launchd job from a file the host did not have.
|
|
|
403
410
|
Given the same user input, both CLIs must produce identical parsed state:
|
|
404
411
|
|
|
405
412
|
| Input pattern | Parsed as |
|
|
406
|
-
|
|
413
|
+
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
407
414
|
| `PROJ-12345` (bare Jira ID) | `input.type = "jira-id"`, `input.jiraId = "PROJ-12345"` |
|
|
408
415
|
| `https://{jira-host}/browse/PROJ-12345` | `input.type = "jira-url"`, `input.jiraId = "PROJ-12345"` |
|
|
409
416
|
| `https://github.com/{owner}/{repo}/issues/42` | `input.type = "github-issue-url"`, `input.issueNo = 42`, `input.owner = "{owner}"`, `input.repo = "{repo}"` |
|
|
@@ -411,6 +418,7 @@ Given the same user input, both CLIs must produce identical parsed state:
|
|
|
411
418
|
| Any other string | `input.type = "free-text"`, `input.summary = <string>` |
|
|
412
419
|
|
|
413
420
|
One modifier exists:
|
|
421
|
+
|
|
414
422
|
- `autopilot` - skip confirmations, and resolve the workspace to a worktree without asking.
|
|
415
423
|
|
|
416
424
|
The workspace is not a flag. Where the branch lives is a Phase 0 Step 5b question on attended runs.
|
|
@@ -420,7 +428,7 @@ The workspace is not a flag. Where the branch lives is a Phase 0 Step 5b questio
|
|
|
420
428
|
## 6. Output Format Expectations
|
|
421
429
|
|
|
422
430
|
| Artifact | Both CLIs must produce |
|
|
423
|
-
|
|
431
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
424
432
|
| `agent-state.json` | Same JSON schema (see `~/.claude/schemas/agent-state.schema.json`); same field names; same values for identical input |
|
|
425
433
|
| `agent-log.md` | Same section order, same phase headers (`📊 Phase 1`, `🧠 Phase 2`, etc.), same timeline columns |
|
|
426
434
|
| PR body | Same template; no CLI-specific headers |
|
|
@@ -443,7 +451,7 @@ those installs). Call sites never invoke `security` themselves - the wrapper is
|
|
|
443
451
|
what keeps a secret off argv and what writes the audit entry.
|
|
444
452
|
|
|
445
453
|
| Purpose | Canonical | Underlying backend (for debugging only) |
|
|
446
|
-
|
|
454
|
+
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
|
|
447
455
|
| Keychain read | `~/.claude/lib/credential-store.sh get <key>` | `security find-generic-password -a "$USER" -s <key> -w` |
|
|
448
456
|
| Keychain write | `~/.claude/lib/credential-store.sh set <key> -` (the secret streams over stdin and stays off argv; `set <key> <value>` is for non-secret values) | `security add-generic-password -a "$USER" -s <key> -w` |
|
|
449
457
|
| Clipboard read | `pbpaste` | - |
|
|
@@ -22,7 +22,7 @@ things the tool used to do.
|
|
|
22
22
|
## What the exit code means
|
|
23
23
|
|
|
24
24
|
| Code | Meaning |
|
|
25
|
-
|
|
25
|
+
| ---- | ---------------------------------------------------------------------------------- |
|
|
26
26
|
| 0 | healthy - nothing above INFO |
|
|
27
27
|
| 1 | degraded - at least one WARN, no BLOCK |
|
|
28
28
|
| 2 | blocked - at least one BLOCK |
|
|
@@ -44,7 +44,7 @@ Every other check tops out at WARN however bad it looks.
|
|
|
44
44
|
## Who calls it, and what they do with the code
|
|
45
45
|
|
|
46
46
|
| Caller | When | On exit 2 |
|
|
47
|
-
|
|
47
|
+
| --------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
48
48
|
| `/multi-agent:setup` | before the first question, and again at the end | the closing run is the evidence for or against "setup complete" |
|
|
49
49
|
| `/multi-agent:update` | after the install | report that the update left a state a run will fail from, rather than "updated" |
|
|
50
50
|
| `/multi-agent:sync` | step 0 | **stop.** Syncing a blocked install copies one fault onto five surfaces, and the copies are what people then debug |
|
|
@@ -57,7 +57,7 @@ and a gate that blocked on every warning would be routed around within a week.
|
|
|
57
57
|
## The four severities
|
|
58
58
|
|
|
59
59
|
| Severity | Meaning |
|
|
60
|
-
|
|
60
|
+
| -------- | ---------------------------------------------------------------------------------------- |
|
|
61
61
|
| BLOCK | a run will fail or leak |
|
|
62
62
|
| WARN | a run will work and be worse: a degraded capability, a stale copy, a rejected credential |
|
|
63
63
|
| INFO | a capability the user chose not to enable; nothing to fix |
|
|
@@ -98,7 +98,9 @@ golden file:
|
|
|
98
98
|
"schemaVersion": 1,
|
|
99
99
|
"exit": 1,
|
|
100
100
|
"selection": null,
|
|
101
|
-
"checks": [
|
|
101
|
+
"checks": [
|
|
102
|
+
{ "id": "identity", "severity": "WARN", "problem": "...", "step": "set ...", "detail": null }
|
|
103
|
+
]
|
|
102
104
|
}
|
|
103
105
|
```
|
|
104
106
|
|
|
@@ -146,9 +148,14 @@ nothing tests.
|
|
|
146
148
|
|
|
147
149
|
### install-present
|
|
148
150
|
|
|
149
|
-
The installed tree exists and carries the subtrees a run
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
The installed tree this doctor is part of exists and carries the subtrees a run
|
|
152
|
+
reads on that host, as `schemas/hosts.json` lists them: `multi-agent-refs/`,
|
|
153
|
+
`scripts/`, `lib/` and `schemas/` on all three, plus `commands/` on Claude Code
|
|
154
|
+
and `skills/` on Copilot CLI and Codex CLI. The tree is the one the script was
|
|
155
|
+
installed into (`~/.claude`, `~/.copilot` or `~/.codex`), so a Copilot-only or
|
|
156
|
+
Codex-only machine is checked against its own install; run from a checkout, the
|
|
157
|
+
checks answer for the first host in the registry. BLOCK when any subtree is
|
|
158
|
+
missing - a run cannot start without them.
|
|
152
159
|
|
|
153
160
|
### install-version
|
|
154
161
|
|
|
@@ -402,7 +409,6 @@ readiness, not correctness: a machine that fails all four still runs the
|
|
|
402
409
|
pipeline perfectly well with someone watching it. What they catch is the
|
|
403
410
|
failure mode of an unwatched run - stopping without saying so.
|
|
404
411
|
|
|
405
|
-
|
|
406
412
|
### usage-report
|
|
407
413
|
|
|
408
414
|
The outcome `usage-report.mjs` recorded for its last send attempt, read from
|
|
@@ -435,6 +441,7 @@ outcome, naming the status, its detail and either "the failure report
|
|
|
435
441
|
was sent" (no login, a dry run, or a refusal the person chose). Registration
|
|
436
442
|
runs quietly from setup, update and Phase 0, so this is where a machine that
|
|
437
443
|
never registers shows why.
|
|
444
|
+
|
|
438
445
|
### access
|
|
439
446
|
|
|
440
447
|
The last answer of the run-time access check (`usage-access.mjs`), read from
|
|
@@ -455,16 +462,33 @@ Claude while the user believes it does not. `--probe` also sends each
|
|
|
455
462
|
configured provider one tiny request and WARNs when every usable one fails it
|
|
456
463
|
(a revoked key, an exhausted quota). `--explain` lists each provider with its
|
|
457
464
|
key source, never a value.
|
|
465
|
+
|
|
466
|
+
### local-model
|
|
467
|
+
|
|
468
|
+
Only on the local-model host; SKIP elsewhere, naming the host, because no other
|
|
469
|
+
host runs a model served from this machine. BLOCK when `global.localModel` is
|
|
470
|
+
absent or unusable, with the reason naming the field and what it has to be: a
|
|
471
|
+
model id of a narrow character set, a base URL that is loopback unless
|
|
472
|
+
`allowRemote` is set, and a context window of at least 8192 tokens. `--probe`
|
|
473
|
+
also asks the server for its model list and BLOCKs when nothing answers, since a
|
|
474
|
+
run that reaches a phase and then cannot ask a model has already spent the
|
|
475
|
+
setup. The step is to set `global.localModel` in the preferences file, which the
|
|
476
|
+
message names by path.
|
|
477
|
+
|
|
458
478
|
### xcode-skills
|
|
459
479
|
|
|
460
480
|
Is Apple's `xcode-integration` plugin, which Xcode 27.1 and later materialize
|
|
461
481
|
(`xcrun agent plugin path`), linked into Claude Code at the installed Xcode
|
|
462
|
-
build. SKIP
|
|
463
|
-
|
|
464
|
-
|
|
482
|
+
build. SKIP on Copilot CLI and Codex CLI, which receive Apple's skills as copied
|
|
483
|
+
directories rather than a linked plugin, so the linkage this check reads does
|
|
484
|
+
not describe them. SKIP when this Mac has no such plugin, because the pipeline's
|
|
485
|
+
own iOS skills then apply; INFO when it is available but not linked; WARN when
|
|
486
|
+
the link was copied from an older Xcode build than the one installed; OK
|
|
487
|
+
otherwise. The
|
|
465
488
|
step is `/multi-agent:update`, which re-runs the installer's link. Apple's skills
|
|
466
489
|
are the reference for iPhone Duo and window resizing, SwiftUI, App Intents and
|
|
467
490
|
the accessibility audits, so a stale copy is a worse answer, never a failed run.
|
|
491
|
+
|
|
468
492
|
### routine-commands
|
|
469
493
|
|
|
470
494
|
Does a saved routine still name a removed command: the plain autopilot command,
|
|
@@ -480,6 +504,7 @@ each routine with the removed commands it names, the replacement for each
|
|
|
480
504
|
(`/multi-agent "<task>" autopilot`; `/multi-agent:fable-on`,
|
|
481
505
|
`/multi-agent:fable-off` or `/multi-agent:fable-status`;
|
|
482
506
|
`/multi-agent:routines-<action>`) and the file to edit.
|
|
507
|
+
|
|
483
508
|
### mcp-legacy-names
|
|
484
509
|
|
|
485
510
|
Does the current project still name the MCP server by its pre-4.0 id. The
|
|
@@ -492,6 +517,7 @@ until the old registration is gone. OK when none of them names the old
|
|
|
492
517
|
id, WARN listing each file and its entries, with the replacement to make:
|
|
493
518
|
`mcp__multi-agent__` for permission rules and hook matchers, `multi-agent` as
|
|
494
519
|
a server id or `.mcp.json` key.
|
|
520
|
+
|
|
495
521
|
### unattended-contract
|
|
496
522
|
|
|
497
523
|
Is `multi-agent-refs/unattended-contract.md` installed. It is the only place
|
|
@@ -48,8 +48,8 @@ is not stated. Corporate source, tickets and logs belong under the default.
|
|
|
48
48
|
## The two call sites
|
|
49
49
|
|
|
50
50
|
| Call site | Who calls | What goes free | Fallback |
|
|
51
|
-
|
|
52
|
-
| `bulk-read` | `bulk-read.sh`, when the read gate diverts a large file | the line-numbered summary of one file, validated against `schemas/bulk-read-output.schema.json` and the file's line count | `claude -p --model <
|
|
51
|
+
| ----------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
52
|
+
| `bulk-read` | `bulk-read.sh`, when the read gate diverts a large file | the line-numbered summary of one file, validated against `schemas/bulk-read-output.schema.json` and the file's line count | the host's one-shot call, taken from `schemas/hosts.json` (`headless.argv`), on the `bulkRead.model` rung or `haiku`: `claude -p --model <rung>` on Claude Code. A host the registry gives no such call for degrades and names the reason, and the caller reads the region itself |
|
|
53
53
|
| `delegate` | a skill or phase, through the `llm_delegate` MCP tool | one of the simple tasks below | the session does the task itself |
|
|
54
54
|
|
|
55
55
|
Both ask the router first, so the policy has one implementation:
|
|
@@ -67,7 +67,7 @@ for one.
|
|
|
67
67
|
Only tasks whose answer can be checked against their own source:
|
|
68
68
|
|
|
69
69
|
| Task | `llm_delegate` | Development | Analysis |
|
|
70
|
-
|
|
70
|
+
| ------------------------------- | ------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
71
71
|
| Summarize a long text | `task: summarize` | build and test logs, crash logs, a long file the plan only needs the shape of | Confluence pages, Swagger descriptions, Jira descriptions and comment threads, `generic-doc` links fetched through `web_scrape`, research documents |
|
|
72
72
|
| Pull named fields out of a text | `task: extract` with a `schema` | ticket keys, endpoints, error codes, failing test names from a log | acceptance criteria, endpoints and field lists, dates and owners from a document |
|
|
73
73
|
| Pick one label | `task: classify` with `labels` | commit type from a diff summary, a log line's severity | issue type, affected platform, a comment's intent |
|