@mmerterden/multi-agent-pipeline 23.7.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 (142) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/README.md +57 -24
  3. package/README.tr.md +41 -8
  4. package/SECURITY.md +3 -3
  5. package/docs/architecture.md +41 -4
  6. package/docs/ecosystem.md +15 -13
  7. package/docs/facts.json +5 -4
  8. package/docs/features.md +59 -15
  9. package/install/_codex-agents.mjs +13 -8
  10. package/install/_common.mjs +24 -0
  11. package/install/_dev-only-files.mjs +4 -0
  12. package/install/_mcp-register.mjs +6 -2
  13. package/install/_rewrite-tree.mjs +197 -0
  14. package/install/codex.mjs +96 -180
  15. package/install/copilot.mjs +24 -54
  16. package/install/index.mjs +29 -11
  17. package/install/templates/codex-instructions.md +21 -5
  18. package/install/templates/copilot-instructions.md +21 -14
  19. package/manifest.json +2082 -0
  20. package/package.json +6 -2
  21. package/pipeline/commands/multi-agent/SKILL.md +5 -4
  22. package/pipeline/commands/multi-agent/analysis/SKILL.md +4 -0
  23. package/pipeline/commands/multi-agent/autopilot-on/SKILL.md +31 -3
  24. package/pipeline/commands/multi-agent/autopilot-status/SKILL.md +5 -1
  25. package/pipeline/commands/multi-agent/channels/SKILL.md +16 -8
  26. package/pipeline/commands/multi-agent/log/SKILL.md +2 -0
  27. package/pipeline/commands/multi-agent/stack/SKILL.md +1 -1
  28. package/pipeline/contract/manifest.json +1 -1
  29. package/pipeline/contract/types/index.d.ts +1 -0
  30. package/pipeline/lib/_jira-auth.sh +50 -78
  31. package/pipeline/lib/_service-account.sh +191 -0
  32. package/pipeline/lib/credential-inventory.sh +49 -37
  33. package/pipeline/lib/credential-store.sh +48 -3
  34. package/pipeline/lib/fetch-confluence.sh +76 -92
  35. package/pipeline/lib/fetch-crashlytics.sh +30 -59
  36. package/pipeline/lib/fetch-figma-annotations.sh +9 -9
  37. package/pipeline/lib/fetch-fortify.sh +77 -81
  38. package/pipeline/lib/fetch-graylog.sh +38 -77
  39. package/pipeline/lib/figma-mcp-refresh.sh +23 -4
  40. package/pipeline/lib/figma-screenshot.sh +7 -8
  41. package/pipeline/lib/figma-token.sh +39 -46
  42. package/pipeline/lib/host.mjs +138 -0
  43. package/pipeline/lib/host.sh +48 -0
  44. package/pipeline/lib/issue-fetcher.sh +25 -41
  45. package/pipeline/lib/jira-publish.sh +23 -21
  46. package/pipeline/lib/local-model.mjs +93 -0
  47. package/pipeline/lib/md2confluence-v3.py +37 -30
  48. package/pipeline/lib/model-dispatch.sh +41 -4
  49. package/pipeline/lib/model-resolve.mjs +58 -0
  50. package/pipeline/lib/post-pr-review.sh +38 -53
  51. package/pipeline/lib/reviewer-families.mjs +70 -0
  52. package/pipeline/lib/service-account.mjs +2131 -0
  53. package/pipeline/lib/service-account.sh +35 -0
  54. package/pipeline/lib/usage-token.mjs +64 -24
  55. package/pipeline/lib/usage-vocab.mjs +1 -1
  56. package/pipeline/lib/user-facing.mjs +11 -3
  57. package/pipeline/lib/vercel-deploy.sh +17 -26
  58. package/pipeline/multi-agent-refs/_entry-picker.md +62 -0
  59. package/pipeline/multi-agent-refs/analysis/intake.md +2 -0
  60. package/pipeline/multi-agent-refs/analysis/reusable-refs.md +1 -0
  61. package/pipeline/multi-agent-refs/analysis/unattended.md +135 -0
  62. package/pipeline/multi-agent-refs/autopilot-on/details.md +16 -0
  63. package/pipeline/multi-agent-refs/channels/generator.md +10 -2
  64. package/pipeline/multi-agent-refs/channels/menu.md +3 -1
  65. package/pipeline/multi-agent-refs/channels/preview.md +3 -1
  66. package/pipeline/multi-agent-refs/channels/reference.md +16 -2
  67. package/pipeline/multi-agent-refs/channels/report-file.md +188 -0
  68. package/pipeline/multi-agent-refs/cross-cli-contract.md +35 -27
  69. package/pipeline/multi-agent-refs/features/doctor.md +37 -11
  70. package/pipeline/multi-agent-refs/features/free-models.md +3 -3
  71. package/pipeline/multi-agent-refs/features/local-model.md +87 -0
  72. package/pipeline/multi-agent-refs/features/model-fallback.md +25 -10
  73. package/pipeline/multi-agent-refs/features/product-context.md +6 -5
  74. package/pipeline/multi-agent-refs/features/service-accounts.md +233 -0
  75. package/pipeline/multi-agent-refs/features/unattended-security.md +10 -1
  76. package/pipeline/multi-agent-refs/help/en.md +28 -1
  77. package/pipeline/multi-agent-refs/help/tr.md +28 -1
  78. package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +2 -1
  79. package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +2 -1
  80. package/pipeline/multi-agent-refs/phases/modes.md +20 -1
  81. package/pipeline/multi-agent-refs/phases/phase-5-report.md +12 -10
  82. package/pipeline/multi-agent-refs/phases.md +4 -3
  83. package/pipeline/multi-agent-refs/review/panel.md +30 -18
  84. package/pipeline/multi-agent-refs/setup/discovery.md +17 -5
  85. package/pipeline/multi-agent-refs/setup/token-save-flow.md +21 -2
  86. package/pipeline/multi-agent-refs/sync/overview.md +11 -5
  87. package/pipeline/multi-agent-refs/tracker-contract.md +28 -10
  88. package/pipeline/office/index.html +3 -3
  89. package/pipeline/schemas/autopilot-config.schema.json +29 -4
  90. package/pipeline/schemas/hosts.json +512 -0
  91. package/pipeline/schemas/hosts.schema.json +310 -0
  92. package/pipeline/schemas/launch.json +22 -2
  93. package/pipeline/schemas/launch.schema.json +2 -1
  94. package/pipeline/schemas/phases.json +19 -1
  95. package/pipeline/schemas/phases.schema.json +8 -0
  96. package/pipeline/schemas/prefs.schema.json +331 -4
  97. package/pipeline/scripts/.doctor-mut.47076.mjs +2253 -0
  98. package/pipeline/scripts/_autopilot-config.mjs +67 -4
  99. package/pipeline/scripts/_autopilot-item.mjs +67 -0
  100. package/pipeline/scripts/_autopilot-outcomes.mjs +6 -0
  101. package/pipeline/scripts/_cost.mjs +75 -3
  102. package/pipeline/scripts/analysis-sources.mjs +22 -5
  103. package/pipeline/scripts/analysis-unattended.mjs +360 -0
  104. package/pipeline/scripts/anonymize-findings.mjs +3 -7
  105. package/pipeline/scripts/autopilot-arming.mjs +19 -10
  106. package/pipeline/scripts/autopilot-intake.mjs +124 -27
  107. package/pipeline/scripts/autopilot-menubar.swift +7 -0
  108. package/pipeline/scripts/autopilot-runner.mjs +77 -48
  109. package/pipeline/scripts/autopilot-status.sh +32 -9
  110. package/pipeline/scripts/bulk-read.sh +37 -5
  111. package/pipeline/scripts/confluence-readback.mjs +15 -7
  112. package/pipeline/scripts/cost-table.json +65 -25
  113. package/pipeline/scripts/doctor.mjs +119 -32
  114. package/pipeline/scripts/entry-mode.mjs +101 -0
  115. package/pipeline/scripts/estimate.mjs +30 -16
  116. package/pipeline/scripts/feedback-send.mjs +11 -8
  117. package/pipeline/scripts/gen-facts.mjs +7 -9
  118. package/pipeline/scripts/jira-attach.sh +23 -28
  119. package/pipeline/scripts/jira-search.sh +5 -21
  120. package/pipeline/scripts/launch-request.mjs +15 -9
  121. package/pipeline/scripts/migrate-prefs.mjs +56 -0
  122. package/pipeline/scripts/phase-tracker.sh +146 -38
  123. package/pipeline/scripts/priority-review.mjs +14 -7
  124. package/pipeline/scripts/product-context.mjs +26 -7
  125. package/pipeline/scripts/prune-logs.sh +4 -2
  126. package/pipeline/scripts/report-file.mjs +285 -0
  127. package/pipeline/scripts/rework-escalation.mjs +19 -4
  128. package/pipeline/scripts/service-read.mjs +19 -17
  129. package/pipeline/scripts/skill-siblings.mjs +17 -1
  130. package/pipeline/scripts/status-overview.mjs +20 -10
  131. package/pipeline/scripts/uninstall.mjs +145 -57
  132. package/pipeline/scripts/usage-register.mjs +34 -11
  133. package/pipeline/scripts/usage-report.mjs +31 -26
  134. package/pipeline/scripts/validate-triage.mjs +11 -1
  135. package/pipeline/scripts/work-items.mjs +25 -28
  136. package/pipeline/scripts/write-store-config.mjs +37 -11
  137. package/pipeline/skills/.skill-manifest.json +4 -4
  138. package/pipeline/skills/.skills-index.json +1 -1
  139. package/pipeline/skills/shared/core/multi-agent/SKILL.md +11 -3
  140. package/pipeline/skills/shared/core/multi-agent-analysis/SKILL.md +2 -0
  141. package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +11 -8
  142. package/pipeline/lib/credential-resolve.mjs +0 -75
@@ -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 `$HOME/.claude/multi-agent-refs/` when a phase starts; neither embeds the
193
- phase specs. They are still two different files on purpose, and auditors must
194
- not flag the difference in their text as a parity violation: each routes the
195
- way its host dispatches, and the phase refs they both read are the contract.
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) | `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 no `multi-agent-refs` tree of its own (`install/copilot.mjs` leaves those paths pointing at `~/.claude`), so the refs come from the Claude Code install on the same machine; the rules a run needs before any ref is read are kept in the skill. |
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: a subagent cannot be dispatched to a
295
- non-Anthropic model, because subagent dispatch belongs to the host. The `free`
296
- rung (`route-on --free`) is reachable only where the pipeline makes the call
297
- itself: `bulk-read.sh` and the `delegate` call site, where a skill asks
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
- | Sub-phase progress | TaskCreate with `addBlockedBy` | `phase-tracker.sh sub <N> <sub> <name> <status>` | `phase-tracker.sh sub ...` (the plan tool has no nesting) |
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": [{ "id": "identity", "severity": "WARN", "problem": "...", "step": "set ...", "detail": null }]
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 reads: `commands/`,
150
- `multi-agent-refs/`, `scripts/`, `lib/`, `schemas/`. BLOCK when any is missing -
151
- a run cannot start without them.
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 when this Mac has no such plugin, because the pipeline's own iOS
463
- skills then apply; INFO when it is available but not linked; WARN when the link
464
- was copied from an older Xcode build than the one installed; OK otherwise. The
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 <bulkRead.model or haiku>` |
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 |
@@ -0,0 +1,87 @@
1
+ # Local model host
2
+
3
+ A fourth install target: the Codex CLI engine pointed at a model served from
4
+ this machine, in a tree of its own. `npx @mmerterden/multi-agent-pipeline
5
+ install --local` writes `~/.codex-local/` and leaves `~/.codex/` untouched.
6
+
7
+ ## Why a separate tree rather than a profile
8
+
9
+ The engine keeps its model binding in agent files under its own home. Two
10
+ installs sharing one home means the second silently retunes the first, and a
11
+ run started on one answers on the other's model. A profile would also open a
12
+ second dimension every consumer has to ask about, which is the name-based
13
+ branching the host registry exists to remove. So the local target is a host
14
+ record like any other, in the host registry: id `local`, root `.codex-local`.
15
+
16
+ ## What the server has to be
17
+
18
+ Not "any OpenAI-compatible server". The engine speaks the OpenAI **Responses**
19
+ API and no other: `wire_api = "chat"` is refused when the config loads, and both
20
+ the custom-provider path and `--oss --local-provider` send `POST /v1/responses`.
21
+ A server that offers only `/v1/chat/completions` cannot answer.
22
+
23
+ Ollama serves `/v1/responses` from v0.13.3, with streaming and tool calling, and
24
+ the engine requires v0.13.4 or newer. Whether another local server qualifies is
25
+ a question about that server, and the answer is which endpoint it serves.
26
+
27
+ ## What the user chooses
28
+
29
+ The registry is packaged data: it names install roots and argv, so it is not
30
+ extensible. Two values are the user's and live in preferences:
31
+
32
+ ```json
33
+ {
34
+ "global": {
35
+ "localModel": {
36
+ "baseUrl": "http://127.0.0.1:11434/v1",
37
+ "model": "qwen3-coder",
38
+ "contextWindow": 131072
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ Both are validated before either reaches a config file or an agent file
45
+ (`lib/local-model.mjs`, and `doctor` check `local-model`):
46
+
47
+ - `baseUrl` is loopback unless `allowRemote` is set. The base URL is where every
48
+ prompt in a run goes, so an address off this machine is an explicit decision
49
+ rather than a typo that happened to resolve.
50
+ - `model` is a narrow character set, because the value is written into a TOML
51
+ file.
52
+ - `contextWindow` is required and not guessed. A one-turn request already
53
+ carries about 45 KB of instructions before the task, and a phase spec is
54
+ larger again; a window set too small truncates the diff and the run reports on
55
+ a file it never saw.
56
+
57
+ Until a model is recorded, agents are written with no model at all and children
58
+ inherit the session's. That is the one answer that cannot be wrong.
59
+
60
+ ## What the run looks like
61
+
62
+ | | Local model host |
63
+ |---|---|
64
+ | Rungs | all four collapse to the one model; no reasoning effort |
65
+ | Review panel | one reviewer, triage on the same model |
66
+ | Children at once | 1 |
67
+ | Price | zero per token; the ledger still counts tokens, so a run is comparable with one that cost money |
68
+ | Network | optional |
69
+ | Autopilot | not offered |
70
+
71
+ The engine still attempts a request to its vendor's telemetry host. Denying it
72
+ does not stop a run, but "offline" means the model is local, not that the
73
+ process makes no outbound request.
74
+
75
+ ## The honest limit
76
+
77
+ Quality drops, and this host says so. One reviewer instead of three means less
78
+ disagreement to triage, and a smaller model reads a diff less carefully. The
79
+ profile claims the pipeline runs, not that it runs as well.
80
+
81
+ ## Gates
82
+
83
+ `pipeline/scripts/smoke-local-host.sh` covers the registry shape, the
84
+ preference refusals (an address off this machine, a model name carrying shell
85
+ syntax, a window too small, a non-http scheme), a live install that keeps to its
86
+ own tree, and the agent binding with and without a configured model. No model is
87
+ started there, so nothing in it claims a local model produces usable work.