@mmerterden/multi-agent-pipeline 20.39.0 → 20.40.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 (436) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +24 -9
  3. package/README.tr.md +22 -8
  4. package/docs/FIGMA_PIPELINE.md +1 -1
  5. package/docs/ecosystem.md +6 -6
  6. package/docs/facts.json +5 -5
  7. package/docs/features.md +4 -4
  8. package/index.js +13 -2
  9. package/install/_common.mjs +0 -126
  10. package/install/_dev-only-files.mjs +1 -0
  11. package/install/_managed-block.mjs +5 -18
  12. package/install/_unattended-profile.mjs +200 -30
  13. package/install/claude.mjs +29 -39
  14. package/install/codex.mjs +2 -1
  15. package/install/copilot.mjs +1 -23
  16. package/install/index.mjs +195 -54
  17. package/install/templates/claude-hooks.json +23 -1
  18. package/manifest.json +438 -381
  19. package/package.json +3 -2
  20. package/pipeline/agents/code-reviewer.md +1 -1
  21. package/pipeline/commands/multi-agent/SKILL.md +1 -1
  22. package/pipeline/commands/multi-agent/analysis/SKILL.md +1 -1
  23. package/pipeline/commands/multi-agent/autopilot/SKILL.md +3 -3
  24. package/pipeline/commands/multi-agent/autopilot-off/SKILL.md +15 -13
  25. package/pipeline/commands/multi-agent/garbage-collect/SKILL.md +7 -5
  26. package/pipeline/commands/multi-agent/health/SKILL.md +6 -4
  27. package/pipeline/commands/multi-agent/office-on/SKILL.md +2 -3
  28. package/pipeline/commands/multi-agent/office-pair/SKILL.md +23 -0
  29. package/pipeline/contract/CHANGELOG.md +27 -0
  30. package/pipeline/contract/README.md +2 -0
  31. package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
  32. package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
  33. package/pipeline/contract/fixtures/error-unsigned.json +1 -1
  34. package/pipeline/contract/fixtures/launch-plan.json +1 -1
  35. package/pipeline/contract/manifest.json +28 -2
  36. package/pipeline/contract/types/index.d.ts +178 -5
  37. package/pipeline/lib/agent-model-sync.mjs +2 -4
  38. package/pipeline/lib/args.mjs +194 -0
  39. package/pipeline/lib/autopilot-activation.sh +1 -1
  40. package/pipeline/lib/autopilot-state.sh +1 -1
  41. package/pipeline/lib/bg-launch.mjs +3 -3
  42. package/pipeline/lib/classify-intent.sh +9 -9
  43. package/pipeline/lib/claude-sessions.mjs +74 -5
  44. package/pipeline/lib/cli-help.mjs +80 -0
  45. package/pipeline/lib/credential-inventory.sh +23 -4
  46. package/pipeline/lib/credential-resolve.mjs +8 -12
  47. package/pipeline/lib/credential-store.sh +1 -1
  48. package/pipeline/lib/cross-repo.mjs +61 -0
  49. package/pipeline/lib/extract-conventions.sh +27 -27
  50. package/pipeline/lib/fetch-figma-annotations.sh +1 -1
  51. package/pipeline/lib/free-hosts.generated.mjs +22 -0
  52. package/pipeline/lib/glob-match.mjs +189 -0
  53. package/pipeline/lib/health-messages.mjs +351 -0
  54. package/pipeline/lib/identifier-scan.mjs +22 -11
  55. package/pipeline/lib/jira-family-write.sh +3 -3
  56. package/pipeline/lib/jira-publish.sh +1 -1
  57. package/pipeline/lib/json-file-lock.mjs +24 -23
  58. package/pipeline/lib/mcp-config-audit.mjs +1479 -0
  59. package/pipeline/lib/outbound-gate.mjs +8 -70
  60. package/pipeline/lib/owned-path-gate.mjs +6 -180
  61. package/pipeline/lib/plan-todos.sh +1 -1
  62. package/pipeline/lib/plugin-skill-roots.mjs +45 -1
  63. package/pipeline/lib/pr-request-location.mjs +3 -3
  64. package/pipeline/lib/prefs-value.mjs +122 -21
  65. package/pipeline/lib/regular-file.mjs +11 -6
  66. package/pipeline/lib/repo-profile-derive.mjs +138 -65
  67. package/pipeline/lib/repo-profile-root.mjs +52 -0
  68. package/pipeline/lib/repo-profile.mjs +5 -38
  69. package/pipeline/lib/review-watch.sh +1 -1
  70. package/pipeline/lib/run-worktree.mjs +147 -0
  71. package/pipeline/lib/run-writable.sh +85 -0
  72. package/pipeline/lib/safe-write.mjs +542 -0
  73. package/pipeline/lib/secret-patterns.generated.mjs +249 -0
  74. package/pipeline/lib/shadow-git.sh +1 -1
  75. package/pipeline/lib/slug.mjs +118 -0
  76. package/pipeline/lib/tdd-evidence.mjs +13 -13
  77. package/pipeline/lib/unattended-profile-check.mjs +75 -31
  78. package/pipeline/lib/unattended-tool-homes.mjs +1407 -0
  79. package/pipeline/lib/untrusted-fence.mjs +65 -0
  80. package/pipeline/lib/untrusted.mjs +13 -25
  81. package/pipeline/lib/user-facing.mjs +3 -5
  82. package/pipeline/lib/vercel-deploy.sh +2 -2
  83. package/pipeline/lib/web-push.mjs +198 -0
  84. package/pipeline/multi-agent-refs/analysis/locked.md +6 -6
  85. package/pipeline/multi-agent-refs/analysis-template.md +3 -3
  86. package/pipeline/multi-agent-refs/conventions-defaults.md +2 -2
  87. package/pipeline/multi-agent-refs/features/autopilot-operations.md +10 -7
  88. package/pipeline/multi-agent-refs/features/constitution.md +3 -3
  89. package/pipeline/multi-agent-refs/features/doctor.md +6 -1
  90. package/pipeline/multi-agent-refs/features/external-context-injection.md +1 -1
  91. package/pipeline/multi-agent-refs/features/office-remote-protocol.md +152 -1
  92. package/pipeline/multi-agent-refs/features/office-threat-model.md +1 -1
  93. package/pipeline/multi-agent-refs/features/phone-api.md +1 -1
  94. package/pipeline/multi-agent-refs/features/plan-critic.md +3 -3
  95. package/pipeline/multi-agent-refs/features/repo-profile.md +2 -2
  96. package/pipeline/multi-agent-refs/features/review-decision.md +21 -8
  97. package/pipeline/multi-agent-refs/features/scaffold.md +1 -1
  98. package/pipeline/multi-agent-refs/features/unattended-gates.md +3 -3
  99. package/pipeline/multi-agent-refs/features/unattended-security.md +486 -22
  100. package/pipeline/multi-agent-refs/features/usage-reporting.md +60 -0
  101. package/pipeline/multi-agent-refs/garbage-collect/phases.md +3 -1
  102. package/pipeline/multi-agent-refs/help/en.md +2 -2
  103. package/pipeline/multi-agent-refs/help/tr.md +7 -7
  104. package/pipeline/multi-agent-refs/keychain.md +1 -0
  105. package/pipeline/multi-agent-refs/knowledge.md +1 -0
  106. package/pipeline/multi-agent-refs/orchestrator/skill-loading.md +1 -1
  107. package/pipeline/multi-agent-refs/outside-the-pipeline.md +1 -0
  108. package/pipeline/multi-agent-refs/phases/phase-3-review.md +4 -3
  109. package/pipeline/multi-agent-refs/phases/phase-5-report.md +6 -4
  110. package/pipeline/multi-agent-refs/phases.md +1 -1
  111. package/pipeline/multi-agent-refs/sync/stack-plugins.md +1 -1
  112. package/pipeline/multi-agent-refs/test-gen/stages.md +1 -1
  113. package/pipeline/multi-agent-refs/tracker-contract.md +2 -2
  114. package/pipeline/multi-agent-refs/unattended-contract.md +1 -1
  115. package/pipeline/office/assets/app_icon_180.png +0 -0
  116. package/pipeline/office/assets/app_icon_192.png +0 -0
  117. package/pipeline/office/assets/app_icon_512.png +0 -0
  118. package/pipeline/office/index.html +502 -6
  119. package/pipeline/office/toolkit.json +1 -1
  120. package/pipeline/preferences-template.json +2 -1
  121. package/pipeline/rules/figma-pipeline.md +1 -1
  122. package/pipeline/rules/outside-the-pipeline.md +3 -3
  123. package/pipeline/schemas/agent-state.schema.json +1 -1
  124. package/pipeline/schemas/analysis-spec.schema.json +1 -1
  125. package/pipeline/schemas/autopilot-config.schema.json +1 -1
  126. package/pipeline/schemas/autopilot-off-request.schema.json +1 -1
  127. package/pipeline/schemas/autopilot-off.schema.json +8 -2
  128. package/pipeline/schemas/dev-critic-output.schema.json +1 -1
  129. package/pipeline/schemas/launch.json +6 -6
  130. package/pipeline/schemas/learnings-ledger.schema.json +8 -0
  131. package/pipeline/schemas/office-archive.schema.json +168 -0
  132. package/pipeline/schemas/office-server-room.schema.json +283 -0
  133. package/pipeline/schemas/prefs.schema.json +17 -1
  134. package/pipeline/schemas/runs-index.schema.json +1 -1
  135. package/pipeline/schemas/secret-patterns.json +257 -1
  136. package/pipeline/schemas/secret-patterns.schema.json +25 -4
  137. package/pipeline/schemas/toolkit-path-params.json +1077 -0
  138. package/pipeline/schemas/toolkit-path-params.schema.json +36 -0
  139. package/pipeline/schemas/unattended-policy.json +10 -1
  140. package/pipeline/schemas/unattended-policy.schema.json +4 -0
  141. package/pipeline/schemas/unattended-profile.json +93 -4
  142. package/pipeline/schemas/unattended-profile.schema.json +10 -0
  143. package/pipeline/scripts/_active-run.mjs +6 -3
  144. package/pipeline/scripts/_analysis-doc-diagrams.mjs +115 -0
  145. package/pipeline/scripts/_analysis-doc-markers.mjs +252 -0
  146. package/pipeline/scripts/_analysis-doc-redesign.mjs +160 -0
  147. package/pipeline/scripts/_analysis-doc-rules.mjs +191 -0
  148. package/pipeline/scripts/_analysis-doc-shapes.mjs +196 -0
  149. package/pipeline/scripts/_analysis-doc-structure.mjs +313 -0
  150. package/pipeline/scripts/_autopilot-ops.mjs +12 -3
  151. package/pipeline/scripts/_contract-core.mjs +282 -0
  152. package/pipeline/scripts/_contract-office-page.mjs +108 -0
  153. package/pipeline/scripts/_contract-routes-catalog.mjs +84 -0
  154. package/pipeline/scripts/_contract-routes-office.mjs +133 -0
  155. package/pipeline/scripts/_contract-routes-ops.mjs +538 -0
  156. package/pipeline/scripts/_contract-routes-repos.mjs +270 -0
  157. package/pipeline/scripts/_contract-routes-runs.mjs +468 -0
  158. package/pipeline/scripts/_contract-routes-work.mjs +255 -0
  159. package/pipeline/scripts/_lint-suppression.mjs +1067 -0
  160. package/pipeline/scripts/_memory-policy.mjs +40 -26
  161. package/pipeline/scripts/_renamed-skills.mjs +11 -2
  162. package/pipeline/scripts/_retrieval.mjs +2 -6
  163. package/pipeline/scripts/_secret-scan.mjs +8 -2
  164. package/pipeline/scripts/_stack-adapter.mjs +28 -19
  165. package/pipeline/scripts/_test-gaming.mjs +44 -6
  166. package/pipeline/scripts/_unified-diff.mjs +2 -2
  167. package/pipeline/scripts/activity-snapshot.mjs +36 -15
  168. package/pipeline/scripts/analysis-conform-coverage.mjs +3 -0
  169. package/pipeline/scripts/analysis-sources.mjs +3 -0
  170. package/pipeline/scripts/analysis-story-tree.mjs +6 -5
  171. package/pipeline/scripts/analysis-tickets-writeback.mjs +7 -0
  172. package/pipeline/scripts/anonymize-findings.mjs +1 -1
  173. package/pipeline/scripts/answer-check.mjs +3 -0
  174. package/pipeline/scripts/answer-question.mjs +22 -9
  175. package/pipeline/scripts/argv-secret-scan.mjs +3 -0
  176. package/pipeline/scripts/audit-log.sh +22 -2
  177. package/pipeline/scripts/autopilot-arming.mjs +6 -5
  178. package/pipeline/scripts/autopilot-awake.mjs +3 -0
  179. package/pipeline/scripts/autopilot-control.mjs +31 -34
  180. package/pipeline/scripts/autopilot-intake.mjs +3 -0
  181. package/pipeline/scripts/autopilot-publish.mjs +34 -13
  182. package/pipeline/scripts/autopilot-runner.mjs +289 -86
  183. package/pipeline/scripts/autopilot-status.sh +1 -1
  184. package/pipeline/scripts/base-branch-candidates.mjs +7 -0
  185. package/pipeline/scripts/bug-bash.mjs +3 -0
  186. package/pipeline/scripts/build-references.mjs +3 -0
  187. package/pipeline/scripts/build-skills-index.mjs +16 -5
  188. package/pipeline/scripts/build-stack-plugins.mjs +3 -0
  189. package/pipeline/scripts/bulk-read.sh +1 -1
  190. package/pipeline/scripts/capture-evidence.sh +1 -1
  191. package/pipeline/scripts/capture-flush.sh +52 -2
  192. package/pipeline/scripts/check-derived-drift.mjs +5 -2
  193. package/pipeline/scripts/classify-plan-safety.mjs +7 -0
  194. package/pipeline/scripts/commands.mjs +21 -11
  195. package/pipeline/scripts/confirm-command.mjs +3 -0
  196. package/pipeline/scripts/confluence-readback.mjs +3 -0
  197. package/pipeline/scripts/constitution.mjs +6 -13
  198. package/pipeline/scripts/contract-server.mjs +710 -2317
  199. package/pipeline/scripts/cost-analyze.mjs +8 -18
  200. package/pipeline/scripts/cost-budget-check.mjs +4 -15
  201. package/pipeline/scripts/council-view.mjs +3 -0
  202. package/pipeline/scripts/crush-json.mjs +3 -0
  203. package/pipeline/scripts/debt-ledger.mjs +12 -37
  204. package/pipeline/scripts/decisions-log.mjs +14 -8
  205. package/pipeline/scripts/diff-explain.mjs +8 -16
  206. package/pipeline/scripts/diff-risk-score.mjs +5 -15
  207. package/pipeline/scripts/doctor.mjs +47 -11
  208. package/pipeline/scripts/edit-syntax-gate.mjs +5 -10
  209. package/pipeline/scripts/estimate.mjs +5 -10
  210. package/pipeline/scripts/evidence-gate.mjs +5 -21
  211. package/pipeline/scripts/explore-findings.mjs +3 -0
  212. package/pipeline/scripts/feedback-send.mjs +5 -6
  213. package/pipeline/scripts/file-context.mjs +20 -22
  214. package/pipeline/scripts/find-polluter.mjs +29 -17
  215. package/pipeline/scripts/finding-fingerprint.mjs +22 -9
  216. package/pipeline/scripts/gate-ledger.mjs +25 -21
  217. package/pipeline/scripts/gc-abandoned.sh +143 -40
  218. package/pipeline/scripts/gc-plan.mjs +8 -1
  219. package/pipeline/scripts/gc-refs.sh +4 -4
  220. package/pipeline/scripts/gc-tmp.sh +3 -3
  221. package/pipeline/scripts/gc-worktrees.sh +4 -4
  222. package/pipeline/scripts/gen-facts.mjs +3 -0
  223. package/pipeline/scripts/gen-free-hosts.mjs +132 -0
  224. package/pipeline/scripts/gen-mode-dispatch.mjs +11 -3
  225. package/pipeline/scripts/gen-secret-patterns.mjs +263 -0
  226. package/pipeline/scripts/gen-skills-index.mjs +11 -1
  227. package/pipeline/scripts/graph-affected.mjs +3 -0
  228. package/pipeline/scripts/graph-build.mjs +6 -18
  229. package/pipeline/scripts/graph-confirm.mjs +3 -0
  230. package/pipeline/scripts/graph-hint.mjs +13 -19
  231. package/pipeline/scripts/graph-links.mjs +3 -0
  232. package/pipeline/scripts/graph-mermaid.mjs +3 -0
  233. package/pipeline/scripts/graph-query.mjs +3 -0
  234. package/pipeline/scripts/handle-diff-audit.mjs +20 -12
  235. package/pipeline/scripts/health-report.mjs +201 -158
  236. package/pipeline/scripts/host-hooks.mjs +3 -0
  237. package/pipeline/scripts/issues.mjs +26 -11
  238. package/pipeline/scripts/jira-family.mjs +14 -23
  239. package/pipeline/scripts/jira-search.sh +1 -1
  240. package/pipeline/scripts/jira-wiki-escape.mjs +10 -0
  241. package/pipeline/scripts/job-launch.mjs +107 -8
  242. package/pipeline/scripts/launch-request.mjs +6 -2
  243. package/pipeline/scripts/learn-from-transcripts.mjs +14 -25
  244. package/pipeline/scripts/learnings-ledger.mjs +113 -81
  245. package/pipeline/scripts/localize-commands.mjs +7 -0
  246. package/pipeline/scripts/log-metric.sh +26 -8
  247. package/pipeline/scripts/match-skills.mjs +7 -0
  248. package/pipeline/scripts/mcp-config-audit.mjs +130 -0
  249. package/pipeline/scripts/migrate-prefs.mjs +34 -21
  250. package/pipeline/scripts/migrate-state.mjs +3 -0
  251. package/pipeline/scripts/mutation-probe.mjs +51 -32
  252. package/pipeline/scripts/note-agent-event.mjs +7 -14
  253. package/pipeline/scripts/note-skill-use.mjs +273 -0
  254. package/pipeline/scripts/note-skill-use.sh +19 -0
  255. package/pipeline/scripts/observations.mjs +17 -16
  256. package/pipeline/scripts/office-archive.mjs +267 -0
  257. package/pipeline/scripts/office-build.mjs +117 -8
  258. package/pipeline/scripts/office-control.mjs +7 -3
  259. package/pipeline/scripts/office-credentials.mjs +3 -0
  260. package/pipeline/scripts/office-ledger.mjs +3 -0
  261. package/pipeline/scripts/office-memory.mjs +6 -3
  262. package/pipeline/scripts/office-pair.mjs +24 -3
  263. package/pipeline/scripts/office-prune.mjs +3 -0
  264. package/pipeline/scripts/office-push.mjs +613 -0
  265. package/pipeline/scripts/office-remote-client.mjs +30 -3
  266. package/pipeline/scripts/office-server-room.mjs +435 -0
  267. package/pipeline/scripts/office-settings.mjs +4 -4
  268. package/pipeline/scripts/office-webapp.mjs +59 -0
  269. package/pipeline/scripts/offload-ref.sh +1 -1
  270. package/pipeline/scripts/open-questions-gate.mjs +25 -12
  271. package/pipeline/scripts/output-quality-check.sh +1 -1
  272. package/pipeline/scripts/owned-path-gate.mjs +22 -11
  273. package/pipeline/scripts/package-manager.mjs +7 -0
  274. package/pipeline/scripts/parity-score.mjs +3 -0
  275. package/pipeline/scripts/phase-tracker.sh +179 -35
  276. package/pipeline/scripts/phase0-exit-gate.mjs +4 -1
  277. package/pipeline/scripts/phone-devices.mjs +32 -16
  278. package/pipeline/scripts/plan-complexity.mjs +17 -13
  279. package/pipeline/scripts/plan-coverage-gate.mjs +3 -2
  280. package/pipeline/scripts/plan-critique-gate.mjs +22 -12
  281. package/pipeline/scripts/plan-remote-links.mjs +18 -11
  282. package/pipeline/scripts/plugin-refresh.sh +1 -1
  283. package/pipeline/scripts/pr-request.mjs +3 -0
  284. package/pipeline/scripts/pr-timeline.mjs +13 -9
  285. package/pipeline/scripts/pre-commit-check.sh +175 -124
  286. package/pipeline/scripts/pre-push-check.sh +12 -0
  287. package/pipeline/scripts/probe-evidence-capability.sh +1 -1
  288. package/pipeline/scripts/probe-store-key.mjs +33 -15
  289. package/pipeline/scripts/product-context.mjs +25 -26
  290. package/pipeline/scripts/prune-logs.sh +4 -4
  291. package/pipeline/scripts/purge.sh +2 -2
  292. package/pipeline/scripts/record-phase.mjs +19 -9
  293. package/pipeline/scripts/release-notes.mjs +3 -0
  294. package/pipeline/scripts/render-flow-run.mjs +48 -32
  295. package/pipeline/scripts/render-jira-evidence.mjs +18 -11
  296. package/pipeline/scripts/render-work-summary.sh +1 -1
  297. package/pipeline/scripts/repo-map.mjs +35 -20
  298. package/pipeline/scripts/repo-profile.mjs +21 -21
  299. package/pipeline/scripts/repo-recommend.mjs +22 -9
  300. package/pipeline/scripts/research-gate.mjs +20 -12
  301. package/pipeline/scripts/review-decision-gate.mjs +209 -33
  302. package/pipeline/scripts/review-delta.mjs +36 -15
  303. package/pipeline/scripts/review-file-filter.mjs +3 -0
  304. package/pipeline/scripts/review-scope.mjs +3 -0
  305. package/pipeline/scripts/rework-base.mjs +3 -0
  306. package/pipeline/scripts/rework-escalation.mjs +25 -20
  307. package/pipeline/scripts/rework-rulings.mjs +3 -0
  308. package/pipeline/scripts/routine-registry.mjs +27 -20
  309. package/pipeline/scripts/run-aggregator.mjs +15 -16
  310. package/pipeline/scripts/run-commit-check.mjs +3 -0
  311. package/pipeline/scripts/run-kill.mjs +6 -14
  312. package/pipeline/scripts/run-log.mjs +32 -15
  313. package/pipeline/scripts/run-metrics.mjs +7 -0
  314. package/pipeline/scripts/run-results.mjs +3 -0
  315. package/pipeline/scripts/run-scope-guard.mjs +3 -0
  316. package/pipeline/scripts/run-stop-guard.mjs +15 -9
  317. package/pipeline/scripts/run-write.mjs +400 -0
  318. package/pipeline/scripts/runs-index.mjs +22 -15
  319. package/pipeline/scripts/scaffold-gate.mjs +26 -9
  320. package/pipeline/scripts/scan-agent-config.sh +39 -11
  321. package/pipeline/scripts/scan-skills.sh +17 -6
  322. package/pipeline/scripts/scenario-audit.mjs +3 -0
  323. package/pipeline/scripts/scope-check-gate.mjs +21 -11
  324. package/pipeline/scripts/search-logs.sh +1 -1
  325. package/pipeline/scripts/security-evidence-gate.mjs +23 -12
  326. package/pipeline/scripts/service-read.mjs +6 -9
  327. package/pipeline/scripts/skill-candidates.mjs +3 -0
  328. package/pipeline/scripts/skill-conformance.mjs +29 -15
  329. package/pipeline/scripts/skill-siblings.mjs +34 -4
  330. package/pipeline/scripts/skill-usage.mjs +379 -0
  331. package/pipeline/scripts/smoke-schema-validation.sh +1 -1
  332. package/pipeline/scripts/spec-consistency-gate.mjs +22 -12
  333. package/pipeline/scripts/stack-toggle.mjs +3 -0
  334. package/pipeline/scripts/status-overview.mjs +2 -2
  335. package/pipeline/scripts/steer-run.mjs +3 -0
  336. package/pipeline/scripts/symbol-existence-gate.mjs +22 -14
  337. package/pipeline/scripts/sync-skill-copies.mjs +141 -0
  338. package/pipeline/scripts/system-status.mjs +3 -0
  339. package/pipeline/scripts/task-mirror.mjs +59 -22
  340. package/pipeline/scripts/test-classify.mjs +15 -10
  341. package/pipeline/scripts/test-gap-scan.mjs +5 -15
  342. package/pipeline/scripts/test-gen-gate.mjs +19 -10
  343. package/pipeline/scripts/test-gen-state.mjs +16 -15
  344. package/pipeline/scripts/test-integrity-gate.mjs +113 -16
  345. package/pipeline/scripts/test-stability-gate.mjs +3 -0
  346. package/pipeline/scripts/test-strength.mjs +39 -18
  347. package/pipeline/scripts/test-summary.mjs +24 -16
  348. package/pipeline/scripts/token-budget-report.mjs +18 -8
  349. package/pipeline/scripts/toolkit-tools.mjs +19 -4
  350. package/pipeline/scripts/transcript-index.mjs +38 -18
  351. package/pipeline/scripts/triage-memory.mjs +20 -59
  352. package/pipeline/scripts/unattended_policy.py +1828 -27
  353. package/pipeline/scripts/uninstall.mjs +120 -13
  354. package/pipeline/scripts/update-check.sh +1 -1
  355. package/pipeline/scripts/update-issue-progress.sh +6 -6
  356. package/pipeline/scripts/usage-identity.mjs +18 -7
  357. package/pipeline/scripts/usage-register-beacon.mjs +3 -0
  358. package/pipeline/scripts/usage-register.mjs +21 -12
  359. package/pipeline/scripts/usage-report.mjs +27 -11
  360. package/pipeline/scripts/user-test-handoff.sh +1 -1
  361. package/pipeline/scripts/validate-analysis-doc.mjs +163 -1240
  362. package/pipeline/scripts/validate-analysis.mjs +7 -0
  363. package/pipeline/scripts/validate-code-graph.mjs +7 -0
  364. package/pipeline/scripts/validate-complaint-doc.mjs +3 -0
  365. package/pipeline/scripts/validate-diff-risk.mjs +7 -0
  366. package/pipeline/scripts/validate-planning.mjs +3 -0
  367. package/pipeline/scripts/validate-reviewer.mjs +7 -0
  368. package/pipeline/scripts/validate-state.mjs +7 -0
  369. package/pipeline/scripts/validate-test-gap.mjs +7 -0
  370. package/pipeline/scripts/validate-triage.mjs +7 -0
  371. package/pipeline/scripts/valven-gate.mjs +14 -14
  372. package/pipeline/scripts/valven-port.mjs +14 -13
  373. package/pipeline/scripts/valven-split.mjs +14 -13
  374. package/pipeline/scripts/verify-citations.mjs +13 -14
  375. package/pipeline/scripts/verify.mjs +3 -0
  376. package/pipeline/scripts/work-items.mjs +5 -5
  377. package/pipeline/scripts/worktree-finalize.sh +3 -3
  378. package/pipeline/scripts/worktree-prepare-all.mjs +3 -0
  379. package/pipeline/scripts/worktrees.mjs +3 -0
  380. package/pipeline/scripts/write-state.mjs +33 -23
  381. package/pipeline/scripts/write-store-config.mjs +5 -1
  382. package/pipeline/skills/.skill-manifest.json +40 -40
  383. package/pipeline/skills/.skills-index.json +32 -32
  384. package/pipeline/skills/shared/README.md +31 -31
  385. package/pipeline/skills/shared/core/google-play-compliance/references/examples.md +1 -1
  386. package/pipeline/skills/shared/core/multi-agent-autopilot-off/SKILL.md +15 -13
  387. package/pipeline/skills/shared/core/multi-agent-health/SKILL.md +6 -2
  388. package/pipeline/skills/shared/external/agent-introspection-debugging/SKILL.md +1 -6
  389. package/pipeline/skills/shared/external/android-performance/SKILL.md +1 -1
  390. package/pipeline/skills/shared/external/app-clips/SKILL.md +1 -1
  391. package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +1 -1
  392. package/pipeline/skills/shared/external/app-store-release-notes/SKILL.md +1 -1
  393. package/pipeline/skills/shared/external/app-store-release-notes/evals/trigger-eval.json +11 -0
  394. package/pipeline/skills/shared/external/app-store-review/SKILL.md +1 -1
  395. package/pipeline/skills/shared/external/apple-on-device-ai/SKILL.md +1 -1
  396. package/pipeline/skills/shared/external/avkit/SKILL.md +1 -1
  397. package/pipeline/skills/shared/external/context-compression/SKILL.md +1 -1
  398. package/pipeline/skills/shared/external/core-bluetooth/SKILL.md +1 -1
  399. package/pipeline/skills/shared/external/core-data/SKILL.md +1 -1
  400. package/pipeline/skills/shared/external/council/SKILL.md +1 -6
  401. package/pipeline/skills/shared/external/e2e-testing/SKILL.md +1 -9
  402. package/pipeline/skills/shared/external/fix-review-verdicts/SKILL.md +3 -0
  403. package/pipeline/skills/shared/external/humanizer/SKILL.md +1 -5
  404. package/pipeline/skills/shared/external/ios-coding-standard/references/lint-local.sh +1 -1
  405. package/pipeline/skills/shared/external/ios-localization/SKILL.md +1 -1
  406. package/pipeline/skills/shared/external/ios-security/SKILL.md +1 -1
  407. package/pipeline/skills/shared/external/ios-simulator/SKILL.md +1 -1
  408. package/pipeline/skills/shared/external/kotlin-coroutines-expert/references/patterns.md +1 -1
  409. package/pipeline/skills/shared/external/live-activities/SKILL.md +1 -1
  410. package/pipeline/skills/shared/external/macos-app-distribution/SKILL.md +1 -1
  411. package/pipeline/skills/shared/external/macos-app-distribution/evals/trigger-eval.json +10 -0
  412. package/pipeline/skills/shared/external/macos-menubar-utility/SKILL.md +1 -1
  413. package/pipeline/skills/shared/external/macos-menubar-utility/evals/trigger-eval.json +10 -0
  414. package/pipeline/skills/shared/external/mapkit-location/SKILL.md +1 -1
  415. package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +1 -1
  416. package/pipeline/skills/shared/external/push-notifications/SKILL.md +1 -1
  417. package/pipeline/skills/shared/external/search-first/SKILL.md +1 -6
  418. package/pipeline/skills/shared/external/skill-creator/SKILL.md +1 -1
  419. package/pipeline/skills/shared/external/storekit/SKILL.md +1 -1
  420. package/pipeline/skills/shared/external/swift-concurrency-fix/SKILL.md +1 -1
  421. package/pipeline/skills/shared/external/swift-concurrency-fix/evals/trigger-eval.json +11 -0
  422. package/pipeline/skills/shared/external/swift-formatstyle/SKILL.md +1 -1
  423. package/pipeline/skills/shared/external/swift-testing/SKILL.md +1 -1
  424. package/pipeline/skills/shared/external/swift-testing-review/SKILL.md +1 -1
  425. package/pipeline/skills/shared/external/swift-testing-review/evals/trigger-eval.json +11 -0
  426. package/pipeline/skills/shared/external/swiftdata/SKILL.md +1 -1
  427. package/pipeline/skills/shared/external/swiftdata-review/SKILL.md +1 -1
  428. package/pipeline/skills/shared/external/swiftdata-review/evals/trigger-eval.json +11 -0
  429. package/pipeline/skills/shared/external/swiftui-glass-effects/SKILL.md +1 -1
  430. package/pipeline/skills/shared/external/tailwind-styling/SKILL.md +1 -1
  431. package/pipeline/skills/shared/external/tailwind-styling/evals/trigger-eval.json +11 -0
  432. package/pipeline/skills/shared/external/vision-framework/SKILL.md +1 -1
  433. package/pipeline/skills/shared/external/widgetkit/SKILL.md +1 -1
  434. package/pipeline/skills/skill-copies.json +43 -0
  435. package/pipeline/skills/skills-index.md +31 -31
  436. package/pipeline/office/NOTICE.md +0 -18
package/CHANGELOG.md CHANGED
@@ -16,6 +16,127 @@ Internal file-layout changes that don't affect the slash-command surface are sti
16
16
 
17
17
  ## [Unreleased]
18
18
 
19
+ ## [20.40.0] - 2026-11-03
20
+
21
+ ### Added
22
+
23
+ - Office: a control panel station in the server room. It lists every Claude Code session with its current work, last step, tokens in, out and cached, estimated cost and duration; today's tokens and estimated cost per model; and six health lights (doctor, hooks, toolkit, last gate, recurring error-ledger tags, autopilot). The lights and today's totals come from `health-report.mjs`'s JSON, never probed and reused for two minutes; the server racks on the floor carry a light that turns red, blinking, when any health section is red. New local-only route `GET /v1/server-room` (`office-server-room.mjs --json`), contract 1.10.0.
24
+ - Office: a memory archive station in the archive room. Per repository it shows the newest decisions with their rationale, security notes and learnings from the learnings ledger (entries their feedback retired are left out and counted, as `brief` and `profile` leave them out), and the hubs, clusters, surprising connections and questions of the code graph report when one exists. Every text is redacted and cut short. New route `GET /v1/archive` (`office-archive.mjs --json`), local-only like `/v1/memory` and `/v1/server-room`; a test holds that the phone route family has no verb for any of the three, that a device signature opens none of them and that the remote client never forwards them.
25
+ - Office: installable as a web app (Add to Dock on the Mac, Add to Home Screen in Safari). The server serves a manifest at `/office/manifest.webmanifest` (standalone, the HUD colour, the page language), the page links it with an `apple-touch-icon` and the Safari meta tags, and the layout keeps clear of every safe-area inset. The 180, 192 and 512 pixel icons are drawn by `office-build.mjs` from the first character sheet and held to it by `--check`. The panel CSP gains only `manifest-src 'self'`; every link stays under `/office/`. There is no service worker, so nothing is cached and a launch still needs a fresh code from `/multi-agent:office-on`.
26
+ - Office Web Push: a paired phone can be notified that a question is waiting or that a run finished, and nothing more. The machine client sends one padded code, encrypted per RFC 8291 with a VAPID token (RFC 8292) signed on `node:crypto` (`lib/web-push.mjs`), straight to the push service; the subscription reaches the machine only as a sealed, passkey-bound phone verb (`office-push.mjs`). Off until `office-pair.mjs push on <device>`; `push keygen` keeps the VAPID key in the Keychain as `office_push_vapid`; revoking a device deletes its subscription; rate-limited and audited in `remote-frames.jsonl`. See `features/office-remote-protocol.md`, Web Push.
27
+ - `/multi-agent:health --lang en|tr`: the text report renders in the given language, else `outputLanguage`, else English. Every section of `--json` carries `message {id, params}` beside its English `reason`, from the catalogue in `lib/health-messages.mjs`; the office server-room lights render the same catalogue in the page's language.
28
+ - `smoke-pipefail-early-exit.sh`: fails on a pipe into `grep -q` (one line or a continuation), on a capture ending in `head` or `grep -m` whose status is chained, and on `head` or `grep -m` behind a pipe in a `set -e` smoke.
29
+ - `test/unattended_policy_properties.py` (stdlib, fixed seed, run by `test/unattended-policy-properties.test.mjs`): random toolkit calls built from the declaration, checking writes and reads inside and outside the allowed locations, unknown tools, undeclared arguments, `..`, `./`, `//`, trailing slashes, `~` and `$HOME`, letter case on darwin, and real symlinks.
30
+ - `lib/glob-match.mjs`: the owned-path glob matcher as a leaf module with no pipeline imports; `owned-path-gate.mjs` re-exports it. `test/lib-import-graph.test.mjs` fails on any static import cycle among `pipeline/lib` and the `scripts/_*` helpers.
31
+ - `lib/cli-help.mjs`: every script CLI answers `-h` and `--help` with its usage and exit 0, and prints only its leading comment block, never a generated block below it.
32
+ - `MULTI_AGENT_CROSS_REPO_REQUIRED=1` makes `gen-free-hosts.mjs --check` and `gen-toolkit-path-params.mjs --check` fail when no toolkit checkout is found; both name the checkout, branch and commit they compared. `pre-push-check.sh` sets it, and `MULTI_AGENT_TOOLKIT_DIR` overrides the lookup.
33
+ - `smoke-pack-contents.sh` diffs the exact packed file list against `pipeline/scripts/fixtures/pack-files.txt` and reports a `files[]` negation that matches nothing as inert.
34
+ - Shared libs `lib/args.mjs`, `lib/slug.mjs` and `lib/prefs-value.mjs` hold the flag parsing, slug and preferences lookups, and `test/shared-lib-ratchet.test.mjs` fails on a new hand-rolled copy (43 argv loops and 2 preferences paths are listed as pending migration).
35
+ - `sync-skill-copies.mjs` keeps every file shared across skills (`skill-copies.json`) in one source; `npm test` runs its `--check`.
36
+ - The review's test-gaming scan reports a `lint-suppression` shape: an added inline suppression (`swiftlint:disable`, `swift-format-ignore`, `eslint-disable`, `@ts-ignore`, `@ts-expect-error`, `biome-ignore`, `@Suppress`/`@SuppressWarnings`, `ktlint-disable`, `# noqa`, `# type: ignore`, `# pylint: disable`, `# pyright: ignore`, `//nolint`, `#[allow(`, `rubocop:disable`), matched per language in comments only, is blocking, or important when the line states its reason. A loosened lint config (SwiftLint, ESLint, golangci, detekt, RuboCop, ruff/pylint/flake8 sections, ktlint `.editorconfig`, `.swiftformat`) is flagged too: a rule turned off, downgraded or removed, a disable list grown, or a threshold raised.
37
+ - `learnings-ledger.mjs add --supersedes <id>` (repeatable or a comma list, at most five) records the earlier entries a new one replaces without rewriting the append-only ledger. It refuses an unknown id, an entry recorded after now, the entry itself and a link that closes a cycle. `brief` and `profile` leave a superseded entry out, `timeline` rows and `show` give `superseded_by`, and `stats` counts `superseded`. The office memory archive leaves superseded entries out and counts them separately from retired ones.
38
+ - Skill calls are counted in a local log (`~/.claude/logs/multi-agent/skill-usage.jsonl`): skill name, outcome, time, host and repository folder name, plus a format version; never arguments, prompts or output. One writer rotates the log at a time, under a lock, so two hooks firing together never lose the older generation. `skill-usage.mjs summary [--days N] [--json]` shows per-skill counts, the installed skills not called in the window and where the log starts (`coverageStart`, `coversWindow`); `prune-candidates [--days N]` lists the unseen ones with their last use and names none while the log is younger than the window. The installed list holds every skill of every plugin the multi-agent-plugins marketplace lists, at any depth under the plugin's `skills/`, named `<plugin>:<folder>`; rename aliases are left out and a call under an old name counts for the new one; everything under `~/.claude/commands` is reported as not observable and is never a candidate, because a typed slash command makes no Skill tool call. Nothing is deleted. The office server room shows the skills used in the last 30 days, locally only. Off with `skillUsage.enabled: false` or `usageLog.optOut: true`.
39
+ - `pipeline/lib/mcp-config-audit.mjs` classifies each MCP server's launch selector offline as pinned, floating, mutable, local, remote or unknown (npx and other package runners, git specs, uvx and pipx, container images, go run, deno, remote URLs) and reports literal secrets in env, headers, arguments or URLs with the value masked. JSON, JSONC and TOML `mcp_servers` are read without a dependency. The toolkit's new `security_mcp_config_audit` uses the same module.
40
+
41
+ ### Changed
42
+
43
+ - `pipeline/lib/repo-profile.mjs` and `repo-profile-derive.mjs` no longer import each other: the schema version and `mainRepoRoot` live in the leaf module `repo-profile-root.mjs`, which both import. `repo-profile.mjs` re-exports both names, so callers are unchanged.
44
+ - `validate-analysis-doc.mjs` runs its checks as 27 named functions from a table in report order (33 report rows); the checks live in six `_analysis-doc-*.mjs` modules next to it (structure, markers, diagrams, rules, redesign, shapes). Output and exit codes are unchanged, pinned by `test/validate-analysis-doc-golden.test.mjs` over 94 documents. `smoke-validate-analysis-doc.sh` and `smoke-locked-citations.sh` read the modules along with the validator.
45
+ - `contract-server.mjs` is the server core only: it checks a request in the security-model order through named entry points and looks the route up in `ROUTES`, a table of entries defined in six per-family modules (`_contract-routes-runs`, `-catalog`, `-repos`, `-ops`, `-office`, `-work`), with the shared pieces in `_contract-core.mjs` and the panel page in `_contract-office-page.mjs`. The served surface is unchanged: `ROUTES` keeps its order and fields, every export stays, and `test/contract-server-golden.test.mjs` pins every request across every route, method, entry point and refusal. `smoke-office-single-source.sh` reads the route modules along with the server.
46
+ - The office panel's script is split by concern into `pipeline/office-src/app/` (strings, core helpers and the API, floor, HUD and windows, activity data, one file per group of station panels, the company, the demo, start). `office-build.mjs` concatenates them in the order `APP_MODULES` lists into the same single inline script; each module names what it shares through `/* global */` and `/* exported */` lines, which the build leaves out of the page. The page runs the same code as before.
47
+ - The unattended guard confines toolkit parameters from the toolkit's own declaration instead of guessing from names. `pipeline/schemas/toolkit-path-params.json` lists, per tool, the parameters it writes to and the paths it reads, generated from the toolkit's `tool-manifest.json` (3.29.0) by `pipeline/scripts/gen-toolkit-path-params.mjs`; `npm test` runs its `--check` against a sibling toolkit checkout and skips with a message when there is none. A declared write is checked against the protected paths and the credential stores, a declared read against the credential stores, `$HOME` itself and the host roots. So `document_pdf_inspect.path` may read a file under a repo's `.claude/`, while `web_trace.path` and `ios_xcodebuild.derived_data_path` are checked as writes. Any path-named argument a tool does not declare, and every one on a tool missing from the file, is still checked as a write. For a tool the declaration does not list, every argument string that looks like a path (absolute, `~`, `$HOME` or climbing with `..`) is read-checked; on a declared tool, a path-looking string in an argument the declaration does not list is read-checked unless a text-like key names it (`TOOLKIT_TEXT_KEYS`), so a certificate or render path the declaration missed cannot reach a credential store, and the pass-kit signing files are declared reads. An object or a list in a declared read that also takes inline data is judged by the path-looking strings inside it, so `security_evidence_check` and `security_sarif_export` findings, `design_contrast_check` tokens and a `coverage_gap` inventory run unattended. `doctor --probe` warns when the served toolkit version differs from the declaration's `toolkitVersion`.
48
+ - Unattended credential denies: a toolkit write can no longer target `~/.aws`, `~/Library/Keychains` or `~/.docker/config.json`, and a toolkit read can no longer reach those, `~/.ssh`, `~/.gnupg`, `~/.netrc`, `~/.git-credentials` or the host roots. The unattended profile and the toolkit guard also deny reads of `~/.kube`, `~/.config/gcloud`, `~/.azure`, `~/.config/op`, `~/.terraform.d`, `~/.pypirc`, `~/Library/Cookies` and the Chrome, Firefox and Safari profiles under `~/Library/Application Support` (a `Read()` deny, a sandbox `denyRead` entry and the guard's read check). The guard's credential-store list, the profile's `Read()` denies, the sandbox `denyRead` list and `MCP_TOOLKIT_INDEX_DENY` cover `~/.android/adbkey`, `~/.appstoreconnect`, `~/.private_keys`, `~/private_keys`, `~/.config/configstore`, `~/.config/github-copilot`, `~/.local/share/gh`, `~/.zsh_history`, `~/.bash_history`, `~/.gradle/gradle.properties` and the Edge, Brave, Arc, VS Code and Vercel CLI folders under `~/Library/Application Support`. The index deny list is the guard's list plus the contract server and office directories, pinned in every `launch.json` shape and forced on the office's toolkit child; a parity test fails when one drifts. Existing installs pick up the new denies through `tightenUnattendedProfile`. The sandbox also denies reads of all of `~/.gradle` (credentials, init scripts, the configuration cache key store, daemon state) and of `~/.local/share/gh`: the profile points `XDG_DATA_HOME` at `~/.multi-agent-unattended-homes/xdg-data`, rebuilt before each launch as links to the operator's data entries without gh, and each run gets its own Gradle home under `~/.multi-agent-unattended`, set per launch and removed after the run, into which it downloads its dependencies, Gradle distribution and JDK toolchains; no Gradle cache is shared with a run. The sandbox no longer allows writes to `~/.gradle`, and every install records the mirrored data directory in `~/.claude/multi-agent-unattended.tool-homes.json`. Gradle builds that need credentials from `~/.gradle/gradle.properties`, and gh extensions, are not available unattended, and `~/.gradle/init.gradle(.kts)` are denied for writes. As a second layer `check_bash` refuses Bash reads of either path, globs over-approximated, shell options that widen globs, local web servers and recursive or archiving reads (`grep -r`, `rg`, `tar`, `cp -R`, `zip -r`, `fd -x`, `pax -w`, `7z a`, a home-rooted `find` into `cpio`) rooted at `$HOME` or above; the Gradle `properties` task is refused. A grep or rg pattern and option values are not read as roots, and `$(pwd)`, `$(git rev-parse --show-toplevel)` and unset variables are accepted as roots.
49
+ - Every secret detector (commit hook, outbound gate, agent-config and skill scanners, memory-store rejoin prefixes) is generated from `secret-patterns.json` by `gen-secret-patterns.mjs`; `npm test` runs its `--check`. Block messages name each pattern by its generated label (a `ghp_` token is reported as a GitHub token).
50
+ - The free-model sandbox hosts are generated from the toolkit's provider catalog by `gen-free-hosts.mjs` into `lib/free-hosts.generated.mjs`; `npm test` runs its `--check`.
51
+ - Eight knowledge skills have sharper trigger descriptions, each naming when to use it and which sibling skill to use instead: `app-store-release-notes`, `swift-testing-review`, `swiftdata-review`, `macos-menubar-utility`, `macos-app-distribution`, `swift-concurrency-fix`, `swiftui-glass-effects`, `tailwind-styling`. The descriptions of `app-store-review` and `skill-creator` are shorter, and twenty-three skill descriptions are single-line and shorter. The always-on description surface counts block-scalar descriptions by their text, and its budget is 96000 bytes.
52
+ - The untrusted-data fence takes extra attributes on its opening line.
53
+ - Every contract route declares its remote tier, and the server refuses to load a route without one; the resolved tiers are unchanged. `officeLang` lives in `_contract-core.mjs`, so route modules depend only on the core.
54
+ - Scripts read the preferences override variable name from `PREFS_ENV` in `lib/prefs-value.mjs`.
55
+ - The health gate line shows local time ("2 Nov 09:34", "2 Kasım 09:34'te"); `--json` keeps the ISO value. `health-report.mjs` usage errors say what was wrong (unknown language, unknown flag, missing `--lang` value) in the output language, and `--lang=<code>` is accepted.
56
+ - The server room's doctor light no longer counts hook warnings the hooks light already shows, so the rack agrees with the health report.
57
+ - Doctor and the credential inventory mark `office_push_vapid` as generated and name `office-pair.mjs push keygen` as its remedy instead of setup; `migrate-prefs` adds its keychain mapping slot on upgraded installs.
58
+ - Turkish office and health wording: informal address throughout, one term (Otopilot) for the mode, and clearer rack, archive and runner lines. The office page's tab title and Home Screen name follow the page language.
59
+ - Installer output drops internal tags, uses the colon command form (`/multi-agent:setup`), says "Preferences already exist", and an upgrade prints what it upgraded from and to.
60
+ - Uninstall stops the office server and the remote client before removing files, names the kept `office_push_vapid` key and the paired devices, removes them only under `--all-data`, words a dry run as what it would do, and plans MCP removal only on hosts that are installed.
61
+ - `office-build.mjs` prints its usage for `--help` and refuses unknown arguments before writing anything.
62
+ - READMEs describe the server room panel, the memory archive, installing the office page as an app and phone notifications; the office-pair row mentions `push`, the health row `--lang` and the last gate.
63
+ - The config-hygiene scan (`scan-agent-config.sh`) judges MCP launch selectors through `mcp-config-audit.mjs` instead of flagging every `npx -y`: floating or mutable selectors and plain-http servers are MEDIUM, a literal secret is HIGH and its value is never printed, and a pinned launch is not reported. Outside MCP configs a bare `npx` is reported only with `-y`, `--yes` or `-p`.
64
+ - `constitution.mjs` exports `LINT_FILES`, so the constitution and the test-gaming scan agree on which files are lint configuration.
65
+ - `gen-fact-marks.mjs` also reads `pipeline/rules`, so the MCP tool count in `outside-the-pipeline.md` is rendered from `docs/facts.json`.
66
+ - 41 CLI scripts and the Claude Code and Codex installers read arguments through `lib/args.mjs` and the preferences path through `lib/prefs-value.mjs`, with unchanged flags, messages and exit codes. `lib/args.mjs` gains an `onArg` hook for checks made in argv order. `match-skills.mjs` and `package-manager.mjs` keep their own loops because they run copied without `lib/`.
67
+
68
+ ### Fixed
69
+
70
+ - Unattended guard: `ios_xcodebuild` `extra_args` is split as the shell will and each path flag's value is checked (`-project`, `-workspace`, `-xctestrun`, `-exportOptionsPlist` as reads; `-derivedDataPath`, `-resultBundlePath`, `-archivePath`, `-exportPath`, `-clonedSourcePackagesDirPath`, `-packageCachePath`, `-resultStreamPath`, `-testProductsPath` as writes). An unknown flag ending in `Path` or `Dir`, a missing value, `-xcconfig`, `-toolchain` and an uppercase build-setting override are refused, and so are glob characters, `~`, quotes, shell characters and any character outside printable ASCII, space and tab anywhere in `extra_args`, so neither a pattern such as `-xcconfi?` nor a U+FEFF separator can turn into a refused flag after the check. The string is split on space and tab only, as the toolkit splits it; the list form gets the same path checks. Unattended, `extra_args` follows an allowlist of xcodebuild flags and refuses `=`, padded list entries and flag entries holding a space. The list form accepts Swift test identifiers with parentheses and repeated `-destination` entries, and the test-enumeration flags and `-skipUnavailableActions` are allowed.
71
+ - Unattended guard: a refused toolkit write into a credential store says the run does not write it, not that it does not read it.
72
+ - `pre-commit-check.sh`: staged and unstaged scans read diffs with `--text --no-ext-diff --no-textconv` and the repository's attributes neutralised, so a key in a `-diff` or `binary` file, behind a textconv or behind `diff.external` is scanned. Staged files are decided from the index: a key staged and then deleted or overwritten in the working tree is scanned, binary content (numstat `-`) is scanned whole from the index blob, and NULs no longer turn added lines into "Binary file matches". The range scan's attribute override uses `attr.tree`; its `--attr-source` diff-tree option was a usage error that sent every file to the whole-blob fallback.
73
+ - `pre-commit-check.sh` reads its secret and git-command matches, and the non-ASCII test before the look-alike fold, from here-strings, so under `pipefail` a secret near the top of a large staged file is no longer scanned clean when `grep -q` exits early, and SIGPIPE no longer skips the fold. The same applies to the skill scanner, the issue-progress comment check, the worktree lists, the `launchctl`, `simctl`, `firebase` and marketplace probes, and intent classification; the same early-exit pipes are gone from every shipped shell script, and `smoke-pipefail-early-exit.sh` now scans every `.sh` under `pipeline/`, not only the smokes.
74
+ - Office push: `push keygen --rotate` writes only when the probe says the key is readable or missing, never over a locked or unknown one. A refused Keychain write names the store's exit code and first error line (the key cut out) and the next step; a malformed or unpaired device id points at `phone-devices.mjs list`; `push status` carries a `hint` with the keygen command when there is no key.
75
+ - Web Push: a VAPID private key must be canonical base64url (40 to 43 characters, standard padding allowed), 30 to 32 bytes, and satisfy 1 < d < n; `"AQ"` and keys with characters outside the alphabet are refused instead of loading as another key.
76
+ - `eval-skill-triggers-live.mjs` asks the routing question with the host's skills, plugins and MCP servers turned off (`--disable-slash-commands`, `--strict-mcp-config`). With them on, a model could answer with an installed command or a prefixed tool name that is not in the catalog under test, which scored as a miss.
77
+ - `smoke-bulk-read-free.sh` matches the captured worker output without piping it into `grep -q`. Under `pipefail` that pipe failed a check whenever grep exited on its match before the writer finished (`printf: write error: Broken pipe`), so a loaded machine failed a correct read at random. A check in the smoke fails if such a pipe comes back.
78
+ - An AWS key id (`AKIA`/`ASIA`) that runs on into more key characters is matched by the commit hook, the outbound gate and the agent guard's command-line scan.
79
+ - `ownedPaths` derivation matches how the owned-path gate reads globs: a slash-free pathspec naming a tracked path is read, a tracked file stays a file instead of becoming `<file>/**`, and an exception under a wildcard entry is attached to every entry that covers it.
80
+ - 131 smokes read a pipeline's output without piping it into `grep -q` or `head`, so a match found before the input ends no longer fails the check through SIGPIPE under `pipefail`.
81
+ - `skill-siblings.mjs` and doctor skip a host with no `.pipeline-version`, so a Claude-only install is no longer yellow for Copilot and Codex surfaces that are not installed.
82
+ - `office-archive.mjs` text mode prints a sentence when no repository has anything recorded.
83
+ - `gen-ref-toc.mjs --dir <missing>` and `run-aggregator.mjs --task-dir` with no value print a one-line error and exit 2 instead of a stack trace; `routine-registry.mjs add --name=bar` names the accepted spelling instead of printing undefined.
84
+ - `office-control.mjs` reads paired devices from the phone registry, so its status and `on --json` report the same remote state.
85
+ - The contract golden test seeds its own `TMPDIR` and normalizes the seed's real path, so it no longer depends on the host's pre-push stamp or the macOS `/private` prefix.
86
+ - `swiftdata` names `core-data` in its Not-for clause, so a question about an existing Core Data store routes to `core-data` instead of `swiftdata`.
87
+ - `health-report --lang=--x` stops with "--lang needs a value" instead of never returning.
88
+ - `transcript-index` reads a file named like an `Object.prototype` key (`constructor`, `toString`) as a transcript file, not as a numeric option.
89
+ - The skill-usage hook reads the repository folder from the file system instead of a git child process, so a row keeps its `repo` field under load.
90
+ - The lint-suppression scan runs in linear time on long lines and skips config lines over 4 KB. A scan that throws is reported as `gaming.scanned: false`, `--out` is still written, and Phase 3 Step 1.76 turns a failed or missing test-integrity result into a blocking "gate unavailable" finding.
91
+ - A renamed source file or lint config no longer reports its existing suppressions or rules as new, generated and vendored paths (the review file exclusions) are skipped, and a directive counts only at the start of a comment. Config loosening also covers an added list item with no visible parent (important), entries dropped from `select`, `opt_in_rules` or `extends`, and golangci `disable-all` / `default: none` (blocking); keys pair by section and parent, and `[[array.of.tables]]` ends a section. Directives added: ruff and flake8 file `noqa`, `mypy: ignore-errors`, `@ts-nocheck`, ESLint inline `rule: 0|off`, `@SuppressFBWarnings`, `noinspection`, `CHECKSTYLE:OFF`, and `NOLINT` for C, C++ and Objective-C.
92
+ - The MCP config audit never echoes a secret value: one sanitiser covers every selector, reason and name, an unknown launch names only its launcher and an unparsable URL only its scheme. Secrets are also found in `env` and `VAR=` prefixes, `bash -c` strings, bare `KEY=value` arguments and after `--api-key`-style flags. Its TOML reader cannot write to `Object.prototype`, malformed JSON is reported by line and column only, and echoed strings are capped at 4 KB.
93
+ - MCP selector classification: uvx git specs with a `#subdirectory=` fragment, every value-taking `docker run` option, `npx --loglevel` and `pkg@=1.2.3`. The audit CLI reports an unreadable file as HIGH and keeps going, and `scan-agent-config.sh` reports a failed audit as HIGH.
94
+ - The file-context hook skips superseded ledger entries.
95
+ - Pre-commit reads a staged binary from index stage 0, so a file named like `1:key.bin` is scanned.
96
+ - The install summary says "downgraded" for an older version and names an unreadable previous version instead of printing `null`.
97
+ - The MCP config audit's TOML reader reports a type clash by line only, never with a value from the file, parses literal strings in linear time, and the audit masks token-like URL path segments and `;` parameters.
98
+ - `test-integrity-gate.mjs` removes its `--out` before it runs, so an earlier iteration's file is never read as current, and no longer overflows the stack on a large diff. `review-decision-gate.mjs` treats an unscanned test-integrity result as a gate error, and autopilot never lowers a `gate_error` blocker.
99
+ - Lint-suppression pairing: each removed line excuses one added line, config lines pair only within one file or a renamed pair, so a rule moved into another config file is reported, and a line whose code changed while it kept its suppression is not reported as new. SwiftLint, pylint and clang-tidy `NOLINT` directives are read anywhere in a comment, and a JS/TS regex literal containing `//` no longer hides a directive on the same line.
100
+ - Lint config loosening reads glob, quoted and trailing-comment list items and every rule of an inline ESLint config (`off` blocking, `warn` important). A lowered minimum (`min_length`, `min-public-methods`, `MinNameLength`), a raised report floor (`min-complexity`, `min-len`, `min-occurrences`, `min-confidence`, `min-similarity-lines`, dupl `threshold`) and a golangci issue cap set to 0 (unlimited) are reported; a nested `warning` or `error` whose parent key is neither in the hunk header nor readable is reported as important. Directives after division, a JSX self-closing tag or a postfix operator are read. With `--diff-base` the gate reads a list item's parent key from the working tree when the diff leaves it out.
101
+ - The office skills panel says the usage log is younger than the window, and from which date the unused list means something, instead of an unused count that `prune-candidates` does not back. The server-room contract adds `skills.coversWindow` and `skills.coverageStart`.
102
+ - The install summary orders pre-release versions by semver, so `rc.9 -> rc.10` reads as an upgrade.
103
+ - `review-decision-gate.mjs` no longer trusts `.pipeline/test-integrity.json`, which the run can write. With a diff base (`--diff-base`, else `state.baseBranch`) it re-runs test-integrity itself, uses that result, and puts a blocker that triage dropped back into `accepted[]`; without one, a `test_integrity` blocker stays blocking. An empty `--integrity` file exits 3.
104
+ - The MCP config audit masks path segments, subdomain labels and bare fragment words of 16 or more characters that look random, whatever their characters; names, git refs and full commit SHAs stay readable. Arguments nested deeper than 64 levels give a one-line error instead of a RangeError.
105
+ - The skill-usage hook reads `.git` and `commondir` only when they are regular files of at most 4 KiB, so a FIFO or device there never blocks it.
106
+ - `smoke-npm-scope-pinning.sh` reads a line that is only a string literal as printed text, so a message array holding an install hint is not taken for a call.
107
+ - `test-integrity-gate.mjs --out` must be a regular file inside `--repo`, which must be a git work tree root (default: the cwd's work tree), and is written through a temp file and rename; `review-decision-gate.mjs` reads its re-run from the gate's stdout. Phase 3 Step 1.76 states that an unscanned test-integrity file parks the run.
108
+ - Pipeline output flags (`--out`, `--output`, `--json-out`) are checked as writes by the unattended guard when their value resolves.
109
+ - Unattended tool homes: the data directory lives under `~/.multi-agent-unattended-homes`, which no run can write, and is rebuilt before each launch. The refresh never follows a link, discards through a quarantine with one rename, checks the placed data directory, and never throws on a leftover it cannot remove; concurrent launches no longer fail with EEXIST. Nothing is ever deleted where a run can write it: a directory whose mode stops the rename gets u+rwx after a device and inode check and one retry, else it is left for a later sweep. The quarantine is deleted one directory entry at a time with the budget checked per entry, so removal memory does not grow with a directory's width. Install makes the run root and its four shared directories, and migrates the old `~/.multi-agent-unattended` layout without following links. It writes the data-directory record through a temp file and a rename, records the migration as pending before it starts and clears it only once all of it is gone, and waits while an unattended run may be at work: a session listed with a live process, a parked one, one missing for under a day, or an empty or unrecognised list counts as one. It moves old entries relative to a working directory checked by device and inode. `tightenUnattendedProfile` removes every `GRADLE_` variable from the shared profile.
110
+ - Hooks and launcher code outside the sandbox write a run's state directory, `~/.multi-agent-unattended/logs`, `pr-requests` and the run directory through `lib/safe-write.mjs`: temp files with `O_CREAT|O_EXCL|O_NOFOLLOW` and a random name renamed into place, appends with `O_APPEND|O_NOFOLLOW` and an fstat regular-file check, a link at any component below the run root refused, so a link a run plants beside its state is never written through. Shell scripts that run outside the sandbox (`phase-tracker.sh`, `log-metric.sh`, `audit-log.sh`, `gc-abandoned.sh`) make those writes through `scripts/run-write.mjs`. The publish step reads the PR request with `O_NOFOLLOW` within the run requests directory, and the runner readies the requests directories without following a link.
111
+ - Each unattended run gets a fresh Gradle home, `~/.multi-agent-unattended/run-<session>-<random>/gradle-home`, built where no run writes and holding only `org.gradle.daemon=false` in `gradle.properties`, and is launched with its own settings file, `~/.multi-agent-unattended-homes/launch/<session>.json`: the installed profile with that run directory added to `allowWrite` and `GRADLE_USER_HOME` and `GRADLE_OPTS=-Dorg.gradle.daemon=false` added to `env`. No Gradle cache is shared with a run: each run downloads its dependencies, its Gradle distribution and its JDK toolchains. The shared profile no longer lets a run write `~/.multi-agent-unattended`, only its `logs`, `pr-requests`, `repo-profiles` and `toolkit-index` directories, so a run cannot write another run's home or change the run root. The launch precondition refuses a launch without `MULTI_AGENT_SESSION_ID`, one whose argv `--session-id` differs from it, or one carrying any other `GRADLE_` variable, and accepts exactly that session's file and home. The runner removes the home and file once the session ends, the office sets it aside into the quarantine once the session list it polls shows a job's session ended, and a later launch sweeps the rest: a session listed with a live process keeps its run directory whatever its age, a listed session whose process is gone or one missing from a readable, non-empty list for a day has ended, and anything else goes after 7 days. Removal budgets are 2 s / 200000 entries at launch and 60 s / 2000000 after a run and at install, where the quarantine is also drained. The operator's `GRADLE_OPTS` and other Gradle variables do not reach a run. `~/.multi-agent-unattended-homes` is in `denyWrite` and the Edit denies as a whole.
112
+ - The unattended guard refuses Bash writes into `~/.gradle` and everything under `~/.multi-agent-unattended-homes`, including a link entry itself, and moving or removing a directory above `~/.multi-agent-unattended-homes` or the PR requests directory. It refuses `env -i`, `env -u` of any protected variable (every `MULTI_AGENT_*` included) and `su`, and protects `~/.config/multi-agent-pipeline`, the file `MULTI_AGENT_PREFS` names and `~/.config/multi-agent-toolkit`; the two `~/.config` directories are also in the profile's denyWrite and Edit denies, and moving or removing a directory above any of the three is refused. It reads env long options as GNU does (any unique prefix) and as BSD does (`--X` is `-` followed by X), refuses every long option except `--null`, `--debug`, `--help`, `--version`, `--list-signal-handling` and the three signal options spelled exactly, reads `genv` and `gnuenv` like env with GNU-accurate refusals, refuses `genv`/`gnuenv` `-a` (also in a cluster) as `--argv0` is refused, refuses `env -P`, refuses `env -u` with a name the shell rewrites, and refuses writes under another session's run directory. It judges zsh `emulate -c` like `zsh -c`, refuses `emulate -o <glob option>` and `emulate ksh|sh|bash`, strips `noglob` and `nocorrect`, and refuses `sched`.
113
+ - `lib/safe-write.mjs` accepts a path spelled in another case or Unicode form from the disk (`/users/...`, a wrong-case leaf, NFC to an NFD directory). Anchors and the pinned directory with each parent up to the anchor are compared by device and inode, not by spelling, and a link below the run root is still refused, through an operator's link into the root as well. The earlier working directory is restored by device and inode, falling back to the home directory, so the process is never left in a run's directory.
114
+ - `gc-abandoned.sh` (office gc apply, runner daily report) salvages and marks a run's state through `run-write.mjs abandon`; a run whose state directory holds a link, or whose state resolves outside the run root, is left alone, reported as `refused` with the reason and counted in the summary line. It never runs git inside an unattended run's worktree (state below the run root, `--unattended`, or named in the runner's `worktrees.jsonl`): the run is marked abandoned and the worktree kept as `kept-unattended`, because `git status` and `git stash` run the clean filters the run's own config names. Registration is read from the main repository by an explicit `--git-dir`.
115
+ - `phase-tracker.sh` takes its lock, reads, writes, repoints `.tracker-current` and appends spans through `run-write.mjs` when the tracker is below the unattended run root, under `MULTI_AGENT_UNATTENDED=1`, or with `TRACKER_SAFE_WRITE=1`, which `task-mirror` sets. `mv`'s flag is probed once, and temp names no longer fork `od` and `tr`.
116
+ - The unattended guard refuses `env -a` and `--argv0` under every env name (`env`, `./env`, Homebrew's `gnubin/env`), not only `genv` and `gnuenv`.
117
+ - `log-metric.sh` and `audit-log.sh` append through `run-write.mjs` below the unattended run root, and the audit trail there rotates through `run-write.mjs rotate`, one rename to `audit.jsonl.1` at `AUDIT_ROTATE_AT_BYTES`, keeping two generations.
118
+ - The office sets an ended job's run home aside into the quarantine with one rename instead of deleting it inside the `/v1/activity` request.
119
+ - Prose says "required" instead of "mandatory".
120
+ - `run-write begin` checks its deadline on every pass, reclaims at most three stale locks, and removes a file, FIFO or link planted at `<tracker>.lock`, so it no longer waits forever on one; the task-mirror hook kills `phase-tracker.sh`'s whole process group on its timeout.
121
+ - `ma_under_run_root` resolves a relative path against the working directory and stops at `/`, so a relative `LOGS_ROOT` no longer hangs `log-metric.sh`; a directory that exists but cannot be entered counts as below the run root.
122
+ - `phase-tracker.sh` takes `.tracker-current` below the run root only when it names a `tracker-state.json` below the same log root, reads it and the unlocked state without following a link, and prints the reason run-write gave for a refusal. It reads `mv --version` from a here-string, so the GNU probe no longer fails through SIGPIPE under pipefail.
123
+ - The skill-usage log rotates through safe-write (size, lock and rename), so a link at the log, `.1` or the lock is never followed.
124
+ - `capture-flush.sh` reads an unattended run's triage as a regular JSON file within its run directory and never names the store from the state's `project`.
125
+ - The autopilot runner and `autopilot-control off --now` no longer stash or inspect an unattended run's worktree. The runner removes a retired run's worktree only when its own publish step, in that retirement, returned `pr-opened` or `pushed-awaiting-pr`; a PR or publish outcome the run's state claims is not enough, and a publish step that threw or was skipped keeps the worktree (`keptWorktree` in `attempted.jsonl`). Untracked files in a delivered run's worktree are removed with it, because the publish step's last check covers tracked files only. `autopilot-off --now` (and `POST /v1/autopilot/off`) returns `keptWorktrees`, the worktree of each item it ended. Removal goes through the main repository by `--git-dir`, resolved with `rev-parse --git-common-dir` so a repository that is itself a linked worktree is accepted; `run-kill` removes the same way. A worktree whose run did not deliver stays until it is removed by hand, as does one a run locked or whose `.git` file it rewrote.
126
+ - `run-write.mjs` has `read`, `rotate` and `--within <root>`; without `--within`, a target spelled inside the run root is held to it, so `..` or a link out is refused. Exit 3 names its reason (`link`, `too-large`, `not-a-directory`, `not-a-regular-file`, `exists`, `outside`). `lib/run-worktree.mjs` checks and removes a run's worktree from its main repository without running git inside it.
127
+ - `capture-flush.sh` no longer leaves a temp file behind on every flush of an unattended run: the private triage copy is made once, where the exit trap removes it.
128
+
129
+ ### Removed
130
+
131
+ - `test/fixtures/gen-toolkit-path-params.mjs` and its `toolkit-path-params.json`: the regex guess at the toolkit's write parameters is replaced by the vendored declaration.
132
+ - Upgrade cleanups that every install at the supported floor (20.17.0) has already run, since each has run on every install since 20.3.0 or earlier: the removal of trees no installer writes any more (`~/.claude/eval`, `~/.claude/multi-agent-tasks`, `~/.claude/.multi-agent-state` and the old adapter runtime in `~/.multi-agent`), the scrub of the pre-5.0 `## Multi-Agent Task Orchestrator` and `## Instruction Sync` sections from `copilot-instructions.md`, and the in-place rewrite of an agent-guard hook registered under a `Bash(...)` matcher or the web-tools-only matcher. A directory of those names, or a section under those headings, is now the user's and is left alone; a guard entry under an old matcher still does not count, and the current one is added beside it.
133
+
134
+ ## [20.39.1] - 2026-11-02
135
+
136
+ ### Removed
137
+
138
+ - `pipeline/office/NOTICE.md`: every office sprite is built from this project's own sources in `pipeline/office-art`, so the office ships without a notice file. An upgrade removes the installed copy with the rest of the old office tree.
139
+
19
140
  ## [20.39.0] - 2026-11-02
20
141
 
21
142
  ### Added
package/README.md CHANGED
@@ -262,7 +262,7 @@ The discipline behind all of this - bounded loops, evidence gates, token-budgete
262
262
  | `/multi-agent:sync` | One-shot sync: Claude Code, Copilot CLI, pipeline repo, website, toolkit MCP |
263
263
  | `/multi-agent:update` | Update to the latest published npm release and run migrations |
264
264
  | `/multi-agent:doctor` | Health check of the install: layout, preferences, credentials, hooks, host capabilities; the exit code is the verdict |
265
- | `/multi-agent:health` | One look at the machine: services, toolkit, install, sessions and today's cost, autopilot, office, disk, errors |
265
+ | `/multi-agent:health` | One look at the machine: services, toolkit, install, sessions and today's cost, autopilot, office, disk, the last local gate, errors; `--lang en\|tr` picks the language |
266
266
  | `/multi-agent:uninstall` | Remove the pipeline from every CLI. Keychain tokens always left intact |
267
267
  | `/multi-agent:serve` | Local contract server for a client: 127.0.0.1 only, token, stops when idle |
268
268
  | `/multi-agent:help` | This catalog, in the terminal, in your `outputLanguage` |
@@ -297,7 +297,7 @@ the pipeline merges.
297
297
  - **One outward writer.** The session never pushes. Phase 4 writes a PR request, and the runner, outside the session, re-runs the stack's build and tests itself, re-checks the gate ledger, the secret scan over the commit range and the outbound gate, pushes the branch the run recorded from a clean staging repository, and opens the PR with `gh pr create --draft`. A check that fails leaves the item `verification-failed` with the verdict on disk. On Bitbucket the branch is pushed and a summary written, since there is no draft PR to open. [Unattended security](./pipeline/multi-agent-refs/features/unattended-security.md)
298
298
  - **Operations around a run.** A second launchd agent keeps the Mac awake while the mode is on (`caffeinate -s -i`, plus `-d` if you answer yes to the display question at `autopilot-on`), and each run holds a sleep lock until its tick ends. Every credential a configured repo needs is probed before the schedule is offered and again on every tick, so a locked keychain refuses with the key and the fix. A circuit breaker stops launching after consecutive attempts that produced nothing, `costCeilingUsd` caps spend over a rolling 24 hours, `maxParallelAgents` caps sessions working at once, and once a day the runner writes a cleanup report and, when enabled, a digest. [Autopilot operations](./pipeline/multi-agent-refs/features/autopilot-operations.md)
299
299
  - **A fail-closed guard.** Under the variable, the Bash guard judges a command only when it reduces to simple commands joined by `;`, `&&`, `||` and plain pipes, and refuses anything else unparsed. On what it can parse: no push, PR, issue or tracker write, no Keychain read, no fetch outside the network allowlist, no package install or manifest edit, no write into a protected path. Ticket, page and PR text reaches the model inside untrusted-data delimiters. The permission profile (`install --unattended`) is a second line; the boundary is a separate non-admin macOS user and GitHub rulesets on the default and release branches, which the operator applies. [Unattended security](./pipeline/multi-agent-refs/features/unattended-security.md)
300
- - **Claims are checked, not trusted.** With the quality gates active, a run's claims about the repository are checked before it commits: a localization key or endpoint the change references exists, open analysis questions are answered or park the run, a triage citation quotes the line it cites, a "pre-existing" finding points at a line the diff did not touch, the plan's steps are covered, and a test pass shows a positive executed count read with the stack's own markers (8 stacks: `ios`, `android`, `web`, `backend-node`, `python`, `go`, `rust`, `jvm`) along with a new test that fails without the change. Every verdict goes to a gate ledger, and the commit hook refuses a commit whose mandatory gates did not pass for HEAD. [Unattended gates](./pipeline/multi-agent-refs/features/unattended-gates.md), [stack adapters](./pipeline/multi-agent-refs/features/stack-adapters.md)
300
+ - **Claims are checked, not trusted.** With the quality gates active, a run's claims about the repository are checked before it commits: a localization key or endpoint the change references exists, open analysis questions are answered or park the run, a triage citation quotes the line it cites, a "pre-existing" finding points at a line the diff did not touch, the plan's steps are covered, and a test pass shows a positive executed count read with the stack's own markers (8 stacks: `ios`, `android`, `web`, `backend-node`, `python`, `go`, `rust`, `jvm`) along with a new test that fails without the change. Every verdict goes to a gate ledger, and the commit hook refuses a commit whose required gates did not pass for HEAD. [Unattended gates](./pipeline/multi-agent-refs/features/unattended-gates.md), [stack adapters](./pipeline/multi-agent-refs/features/stack-adapters.md)
301
301
  - **Spec, plan and review discipline.** `/multi-agent:analysis` writes a project constitution (security, accessibility, architecture and licensing rules, each tied to a source), and a spec-consistency gate checks by id that every requirement has a task and a test and that nothing waives a binding rule. Phase 1 ends with one plan-critic round under six lenses (scope, feasibility, security, a cheaper alternative, an unstated input, a decision left to the implementer), answered once and judged by a script. In review, a `blocking` finding stops the run only when two independent reviewers carry it or a failing test shows it; otherwise it is lowered to `important`, never dropped. [Constitution](./pipeline/multi-agent-refs/features/constitution.md), [plan critic](./pipeline/multi-agent-refs/features/plan-critic.md), [review decision](./pipeline/multi-agent-refs/features/review-decision.md)
302
302
  - **A client contract.** Commands and run questions are declared as data. `/multi-agent:serve` starts a localhost HTTP server over the same JSON the CLI prints, and `pipeline/contract/` ships the manifest, TypeScript types and fixtures a client builds against. Four phone routes read redacted runs, answer a parked question with one of its offered options, and, only when switched on, queue a launch; every request carries an Ed25519 signature from an enrolled device. The phone app is a separate project. [Client kit](./pipeline/contract/README.md), [phone API](./pipeline/multi-agent-refs/features/phone-api.md)
303
303
 
@@ -382,6 +382,20 @@ the page with a one-time code; the server runs until `/multi-agent:office-off`.
382
382
  Accounting shows tokens and cost, the manager's office holds autopilot,
383
383
  routines and the settings (output language, the fable rung, model routing),
384
384
  and the orientation room explains the building.
385
+ - **The server room's control panel.** Every Claude Code session with its
386
+ work and spend, today's totals per model, and health lights for doctor,
387
+ hooks, the toolkit, the last local gate, run errors and autopilot; the rack
388
+ sums them.
389
+ - **The memory archive.** The archive room shows what the learning loop holds
390
+ per repository: decisions with their rationale, security notes, learnings,
391
+ and the code graph report's hubs, clusters and questions. It is never offered
392
+ to a phone.
393
+ - **Install the page as an app.** The page carries a web app manifest, so it
394
+ can be added to the Dock (Safari: File, Add to Dock) or to a phone's Home
395
+ Screen. It opens `/office` and works while the server runs.
396
+ - **Phone notifications.** A paired phone can get two notifications with no
397
+ content (a question is waiting, a run finished). `office-pair.mjs push`
398
+ turns them on; see `/multi-agent:office-pair`.
385
399
  - **People take jobs.** Click one, pick a job, confirm. Writes that change the
386
400
  machine are local-only and take two requests. Work that is interactive or
387
401
  changes the installation stays in the terminal, and the commands window says
@@ -389,12 +403,12 @@ the page with a one-time code; the server runs until `/multi-agent:office-off`.
389
403
 
390
404
  ![Repository floors with Development and Analysis rooms, a live analysis and an annex desk](.github/office/rooms.png)
391
405
 
392
- | Command | What it does |
393
- | ---------------------------- | --------------------------------------------------------------- |
394
- | `/multi-agent:office-on` | Start or reuse the server and open the page |
395
- | `/multi-agent:office-status` | Whether it runs, its URL (never the token) and its last actions |
396
- | `/multi-agent:office-pair` | Pair a phone: QR, wait, compare the code, enrol |
397
- | `/multi-agent:office-off` | Stop the server; it runs until you do |
406
+ | Command | What it does |
407
+ | ---------------------------- | ---------------------------------------------------------------------------------- |
408
+ | `/multi-agent:office-on` | Start or reuse the server and open the page |
409
+ | `/multi-agent:office-status` | Whether it runs, its URL (never the token) and its last actions |
410
+ | `/multi-agent:office-pair` | Pair a phone: QR, wait, compare the code, enrol; `push` turns on its notifications |
411
+ | `/multi-agent:office-off` | Stop the server; it runs until you do |
398
412
 
399
413
  Security model: [office threat model](pipeline/multi-agent-refs/features/office-threat-model.md).
400
414
  Phone access is not part of this installation.
@@ -509,6 +523,7 @@ The **secret scan** runs as a `PreToolUse` hook on Claude Code (hard-blocks a co
509
523
  | `graph-hint.sh` (points a whole-repo identifier search at a current code graph, once per session) | PreToolUse `Grep`/`Glob` | none | none |
510
524
  | `note-agent-event.sh` (a subagent's outcome or a failed tool call, into the session notes) | SubagentStop, PostToolUseFailure | none | none |
511
525
  | `answer-check.sh` (an AskUserQuestion submitted without a choice is asked again, not defaulted) | PostToolUse `AskUserQuestion` | none | none |
526
+ | `note-skill-use.sh` (skill name, outcome, time, host and repo folder name into a local log, so unused skills can be pruned on evidence; never arguments, prompts or output) | PostToolUse / PostToolUseFailure `Skill` | none: Codex reads skill files, no tool call to hook | none: no Copilot hooks are installed |
512
527
  | `edit-syntax-gate.sh` | PostToolUse file edits | PostToolUse `apply_patch` | none: Copilot discards postToolUse output |
513
528
  | `check-read-size.sh`, capture hooks | registered | none | none |
514
529
 
@@ -520,7 +535,7 @@ Installing the pipeline is not only useful when you run it. Open an ordinary ses
520
535
 
521
536
  - **Services you already onboarded.** The token `setup` mapped is readable now - resolve the logical name through `credential-store.sh` and fetch the issue, the page, the log. **Reads are ordinary work; writes are not.** Posting a Jira comment, editing an issue or opening a PR goes through the pipeline commands, because the rules that make those safe (never auto-close, `Ref:` not `Closes:`, humanizer on outward prose) live there.
522
537
  - **The stack skills `/multi-agent:stack` enabled for the repo.** Each toolkit's own `index` skill routes; the pipeline keeps no copy of that table.
523
- - **The `multi-agent-toolkit` MCP.** <!-- fact:toolCount -->227<!-- /fact --> tools, most of them for a running app - screen state, crash logs, design comparison, store pre-submission, web scraping and browser test states. Several measure instead of judging by eye: WCAG contrast (`design_contrast_check`), layout shift across themes or a mirrored locale (`ios_visual_diff` with `mode: "layout"`), store listing limits (`store_listing_lint`), review themes with verbatim quotes (`store_review_themes`) and whether security findings cite real lines (`security_evidence_check`, with `security_sarif_export` for code-scanning views). The learnings ledger and the code graph are readable through it too (`learnings_*`, `graph_*`).
538
+ - **The `multi-agent-toolkit` MCP.** <!-- fact:toolCount -->228<!-- /fact --> tools, most of them for a running app - screen state, crash logs, design comparison, store pre-submission, web scraping and browser test states. Several measure instead of judging by eye: WCAG contrast (`design_contrast_check`), layout shift across themes or a mirrored locale (`ios_visual_diff` with `mode: "layout"`), store listing limits (`store_listing_lint`), review themes with verbatim quotes (`store_review_themes`) and whether security findings cite real lines (`security_evidence_check`, with `security_sarif_export` for code-scanning views). The learnings ledger and the code graph are readable through it too (`learnings_*`, `graph_*`).
524
539
 
525
540
  Uninstall preserves this layer: the tokens, the reader that opens them, the mapping that names them, and the MCP registration. Removing the pipeline should not cost you the credentials you onboarded through it.
526
541
 
package/README.tr.md CHANGED
@@ -261,7 +261,7 @@ Koşunun kendisinde ayarlanabilen tek şey autopilot; geri kalan her şey kendi
261
261
  | `/multi-agent:sync` | Tek atımlık senkron: Claude Code, Copilot CLI, pipeline repo, website, toolkit MCP |
262
262
  | `/multi-agent:update` | npm'deki son yayına günceller ve migration'ları koşar |
263
263
  | `/multi-agent:doctor` | Kurulumun sağlık kontrolü: yerleşim, tercihler, kimlik bilgileri, hook'lar, host yetenekleri; çıkış kodu verdiktin kendisi |
264
- | `/multi-agent:health` | Makineye tek bakış: servisler, toolkit, kurulum, oturumlar ve bugünün maliyeti, autopilot, ofis, disk, hatalar |
264
+ | `/multi-agent:health` | Makineye tek bakış: servisler, toolkit, kurulum, oturumlar ve bugünün maliyeti, otopilot, ofis, disk, son yerel kapı, hatalar; dili `--lang en\|tr` seçer |
265
265
  | `/multi-agent:uninstall` | Pipeline'ı her CLI'dan kaldırır. Keychain token'larına hiç dokunmaz |
266
266
  | `/multi-agent:serve` | İstemci için yerel sözleşme sunucusu: yalnızca 127.0.0.1, token, boşta durur |
267
267
  | `/multi-agent:help` | Bu katalog, terminalde, `outputLanguage`'ine göre |
@@ -382,6 +382,19 @@ başlatır ve sayfayı tek kullanımlık bir kodla açar; sunucu
382
382
  koşuları ve eski koşu loglarını temizler. Muhasebe token ve maliyeti
383
383
  gösterir. Yönetici odasında otopilot, rutinler ve ayarlar (çıktı dili,
384
384
  Fable basamağı, model yönlendirmesi) var. Oryantasyon odası binayı anlatır.
385
+ - **Sunucu odasının kontrol paneli.** Her Claude Code oturumunu işi ve
386
+ harcamasıyla, bugünün model başına toplamlarını ve doctor, hook'lar, toolkit,
387
+ son yerel kapı, koşu hataları ve otopilot için sağlık ışıklarını gösterir;
388
+ kabindeki ışık hepsini tek renkte özetler.
389
+ - **Hafıza arşivi.** Arşiv odası öğrenme döngüsünün her repo için sakladıklarını
390
+ gösterir: gerekçeleriyle kararlar, güvenlik notları, öğrenilenler ve kod
391
+ grafiği raporunun merkezleri, kümeleri ve soruları. Telefona hiç açılmaz.
392
+ - **Sayfayı uygulama olarak kur.** Sayfa bir web uygulaması manifesti taşır;
393
+ Dock'a (Safari: Dosya, Dock'a Ekle) ya da telefonun ana ekranına eklenebilir.
394
+ `/office` adresini açar ve sunucu çalıştığı sürece çalışır.
395
+ - **Telefon bildirimleri.** Eşlenmiş bir telefon içerik taşımayan iki bildirim
396
+ alabilir (bir soru bekliyor, bir koşu bitti). `office-pair.mjs push` bunları
397
+ açar; ayrıntısı `/multi-agent:office-pair` içinde.
385
398
  - **Kişiler iş alır.** Birine tıkla, iş seç, onayla. Makineyi değiştiren
386
399
  yazmalar yalnızca yereldir ve iki istek ister. Etkileşimli ya da kurulumu
387
400
  değiştiren işler terminalde kalır; komutlar penceresi her komut için sebebini
@@ -389,12 +402,12 @@ başlatır ve sayfayı tek kullanımlık bir kodla açar; sunucu
389
402
 
390
403
  ![Geliştirme ve Analiz odalarıyla repo katları, süren bir analiz ve bir şube masası](.github/office/rooms-tr.png)
391
404
 
392
- | Komut | Ne yapar |
393
- | ---------------------------- | -------------------------------------------------------- |
394
- | `/multi-agent:office-on` | Sunucuyu başlatır ya da var olanı kullanır, sayfayı açar |
395
- | `/multi-agent:office-status` | Çalışıyor mu, adresi (token asla) ve son işlemleri |
396
- | `/multi-agent:office-pair` | Telefonu eşle: QR, bekle, kodu karşılaştır, kaydet |
397
- | `/multi-agent:office-off` | Sunucuyu durdurur; sen durdurana kadar çalışır |
405
+ | Komut | Ne yapar |
406
+ | ---------------------------- | ------------------------------------------------------------------------------ |
407
+ | `/multi-agent:office-on` | Sunucuyu başlatır ya da var olanı kullanır, sayfayı açar |
408
+ | `/multi-agent:office-status` | Çalışıyor mu, adresi (token asla) ve son işlemleri |
409
+ | `/multi-agent:office-pair` | Telefonu eşle: QR, bekle, kodu karşılaştır, kaydet; `push` bildirimlerini açar |
410
+ | `/multi-agent:office-off` | Sunucuyu durdurur; sunucu ancak bununla durur. |
398
411
 
399
412
  Güvenlik modeli: [ofis tehdit modeli](pipeline/multi-agent-refs/features/office-threat-model.md).
400
413
  Telefondan erişim bu kurulumun parçası değil.
@@ -509,6 +522,7 @@ triage notu bunu belirtir.
509
522
  | `file-context.sh` (okunan ya da aranan dosya hakkında repo hafızasının söylediklerini verir; çıktı 10.000 karakterlik hook sınırına sığdırılır) | PreToolUse `Read`/`Grep`/`Glob`, PostToolUse `Read` | yok | yok |
510
523
  | `graph-hint.sh` (tüm repoda bir tanımlayıcı aranırken güncel kod grafiğini önerir, oturumda bir kez) | PreToolUse `Grep`/`Glob` | yok | yok |
511
524
  | `note-agent-event.sh` (alt ajanın sonucunu ya da başarısız araç çağrısını oturum notlarına yazar) | SubagentStop, PostToolUseFailure | yok | yok |
525
+ | `note-skill-use.sh` (skill adı, sonuç, zaman, host ve repo klasör adı yerel bir loga yazılır; kullanılmayan skill'ler kanıtla ayıklanır; argüman, prompt ve çıktı asla yazılmaz) | PostToolUse / PostToolUseFailure `Skill` | yok: Codex skill dosyalarını okur, yakalanacak araç çağrısı yok | yok: Copilot hook'u kurulmaz |
512
526
  | `edit-syntax-gate.sh` | PostToolUse dosya düzenlemeleri | PostToolUse `apply_patch` | yok: Copilot postToolUse çıktısını atar |
513
527
  | `check-read-size.sh`, capture hook'ları | kayıtlı | yok | yok |
514
528
 
@@ -520,7 +534,7 @@ Pipeline'ı kurmak yalnız onu çalıştırdığında işe yaramıyor. Sıradan
520
534
 
521
535
  - **Zaten onboard ettiğin servisler.** `setup`'ın eşlediği token okunabilir durumda - mantıksal adı `credential-store.sh` ile çöz, issue'yu, sayfayı, logu getir. **Okuma sıradan iş, yazma değil.** Jira yorumu, issue düzenleme ve PR açma pipeline komutlarından geçer, çünkü onları güvenli kılan kurallar (issue asla otomatik kapanmaz, `Closes:` değil `Ref:`, dışa dönük metinde humanizer) orada yaşıyor.
522
536
  - **`/multi-agent:stack`'in bu repo için açtığı stack skilleri.** Yönlendirmeyi her toolkit'in kendi `index` skill'i yapar; pipeline o tablonun kopyasını tutmaz.
523
- - **`multi-agent-toolkit` MCP.** <!-- fact:toolCount -->227<!-- /fact --> araç, çoğu çalışan uygulama için - ekran durumu, crash logu, tasarım karşılaştırma, store ön-kontrolü, web kazıma ve tarayıcı test durumları. Bazı kontrolleri gözle değil ölçümle yapar. WCAG kontrastı `design_contrast_check` ile, tema ya da RTL değişince kayan yerleşim `ios_visual_diff` (`mode: "layout"`) ile ölçülür. Mağaza metni sınırlarını `store_listing_lint` denetler. `store_review_themes` yorumları temalara ayırır ve alıntıyı birebir bırakır. Güvenlik bulgularının gerçek satırlara dayandığını `security_evidence_check` doğrular; `security_sarif_export` kod tarama ekranları için SARIF yazar. Öğrenim kaydı (`learnings_*`) ve kod grafiği (`graph_*`) de buradan okunur.
537
+ - **`multi-agent-toolkit` MCP.** <!-- fact:toolCount -->228<!-- /fact --> araç, çoğu çalışan uygulama için - ekran durumu, crash logu, tasarım karşılaştırma, store ön-kontrolü, web kazıma ve tarayıcı test durumları. Bazı kontrolleri gözle değil ölçümle yapar. WCAG kontrastı `design_contrast_check` ile, tema ya da RTL değişince kayan yerleşim `ios_visual_diff` (`mode: "layout"`) ile ölçülür. Mağaza metni sınırlarını `store_listing_lint` denetler. `store_review_themes` yorumları temalara ayırır ve alıntıyı birebir bırakır. Güvenlik bulgularının gerçek satırlara dayandığını `security_evidence_check` doğrular; `security_sarif_export` kod tarama ekranları için SARIF yazar. Öğrenim kaydı (`learnings_*`) ve kod grafiği (`graph_*`) de buradan okunur.
524
538
 
525
539
  Uninstall bu katmanı korur: token'lar, onları açan okuyucu, adlarını tutan eşleme ve MCP kaydı. Pipeline'ı kaldırmak, onun üzerinden onboard ettiğin credential'ları kaybetmek anlamına gelmemeli.
526
540
 
@@ -11,7 +11,7 @@ End-to-end guide for generating production-ready UI components from Figma design
11
11
  - **Multi-repo aware** - components span multiple repos (tokens in `common`, view in `components`, docs in `wiki`). The orchestrator sequences writes correctly.
12
12
  - **Non-blocking side effects** - wiki generation + Jira sync run as augmentations; failures log and Phase 5 continues.
13
13
  - **Cross-cutting integration skills** - Phase 2 detects content patterns (`figma-form-integration`, `figma-price-integration`, `figma-ui-patterns`) and interaction patterns (`figma-navigation`, `figma-overlays`, `figma-bottom-sheets`) and dispatches the matching skill. All are **native-SwiftUI-first**; a project's own navigation/overlay/sheet system is used only when `figmaConfig.ui.{navigationSystem,overlaySystem,sheetSystem}` declares one (absent → stock SwiftUI: `NavigationStack`, `.alert`/`.sheet(item:)`, `.presentationDetents`). Generic across SwiftUI codebases.
14
- - **Evolve an existing component** - `figma-evolve-component` reconciles a shipped component against current Figma (drift-heal) and additively extends it for a new need, behind a mandatory human gate - distinct from a fresh build, `figma-mend` (rebuild), and `figma-fix` (review bug).
14
+ - **Evolve an existing component** - `figma-evolve-component` reconciles a shipped component against current Figma (drift-heal) and additively extends it for a new need, behind a required human gate - distinct from a fresh build, `figma-mend` (rebuild), and `figma-fix` (review bug).
15
15
 
16
16
  ## How it runs
17
17
 
package/docs/ecosystem.md CHANGED
@@ -7,7 +7,7 @@ separately, wired together at install time and at run time:
7
7
  |---|---|---|
8
8
  | **`multi-agent-pipeline`** (this repo) | Orchestration: the <!-- fact:phaseCount -->6<!-- /fact -->-phase flow, the <!-- fact:commandCount -->71<!-- /fact --> slash commands, quality gates, review/triage, cross-CLI parity | npm package (`@mmerterden/multi-agent-pipeline`), installs itself onto Claude Code / Copilot CLI / Codex CLI |
9
9
  | **`multi-agent-plugins`** | Stack knowledge: per-platform component/lifecycle skills (iOS, Android, Frontend, Backend) + shared knowledge | Claude Code marketplace, 6 independently-versioned plugins |
10
- | **`multi-agent-toolkit-mcp`** | The pipeline's hands on devices and browsers: <!-- fact:toolCount -->227<!-- /fact --> MCP tools across <!-- fact:toolFamilyCount -->23<!-- /fact --> families (simulator/emulator control, end-to-end locators and assertions, memory, crash diagnostics, accessibility audit, store compliance and listing lint, web automation and scraping, Figma-vs-mock design audit with contrast checks, code intelligence, a code graph, a learnings ledger, wallet passes, an agent-DSL batch runner, a full-text context index with text-to-image rendering, provider-backed and community research, opt-in social reading, verified hand-off of simple text tasks to free models, video key frames and transcripts, offline security scoring with evidence checks and SARIF export, read-only access to related repositories at their latest branch, travel document fixtures, a voice channel, App Store Connect and Play Console APIs, virtual iPhones) | npm package, registered as a standard stdio MCP server on every host |
10
+ | **`multi-agent-toolkit-mcp`** | The pipeline's hands on devices and browsers: <!-- fact:toolCount -->228<!-- /fact --> MCP tools across <!-- fact:toolFamilyCount -->23<!-- /fact --> families (simulator/emulator control, end-to-end locators and assertions, memory, crash diagnostics, accessibility audit, store compliance and listing lint, web automation and scraping, Figma-vs-mock design audit with contrast checks, code intelligence, a code graph, a learnings ledger, wallet passes, an agent-DSL batch runner, a full-text context index with text-to-image rendering, provider-backed and community research, opt-in social reading, verified hand-off of simple text tasks to free models, video key frames and transcripts, offline security scoring with evidence checks, SARIF export and MCP config launch-selector audits, read-only access to related repositories at their latest branch, travel document fixtures, a voice channel, App Store Connect and Play Console APIs, virtual iPhones) | npm package, registered as a standard stdio MCP server on every host |
11
11
 
12
12
  None of the three depends on the others at the code level. They compose through two
13
13
  narrow contracts: the **Skill tool** (pipeline → plugin, at Phase 2) and the **MCP
@@ -239,8 +239,8 @@ Detail: [`unattended-security.md`](../pipeline/multi-agent-refs/features/unatten
239
239
 
240
240
  ### multi-agent-toolkit-mcp's tools, by category
241
241
 
242
- <!-- fact:toolCount -->227<!-- /fact --> tools in <!-- fact:toolFamilyCount -->23<!-- /fact --> families, counted from the server's own `tools/list` response
243
- at toolkit <!-- fact:toolkitVersion -->3.29.0<!-- /fact --> rather than from a README. Three families are defined in
242
+ <!-- fact:toolCount -->228<!-- /fact --> tools in <!-- fact:toolFamilyCount -->23<!-- /fact --> families, counted from the server's own `tools/list` response
243
+ at toolkit <!-- fact:toolkitVersion -->3.30.1<!-- /fact --> rather than from a README. Three families are defined in
244
244
  modules the main file only spreads in, so a count taken from the source reads
245
245
  low; the response is the only place the whole surface appears at once. A
246
246
  family is the prefix every tool name carries.
@@ -253,8 +253,8 @@ skill body and leaves frontmatter `allowed-tools` alone. Both qualified forms
253
253
  let `lint-mcp-refs.mjs` check that the tool exists.
254
254
 
255
255
  The families can be narrowed per host: `MCP_TOOLKIT_CAPS` serves only the named
256
- ones, and unset serves all <!-- fact:toolCount -->227<!-- /fact -->. A frontend repo that sets `web,code,context`
257
- sees 50 tools instead of <!-- fact:toolCount -->227<!-- /fact -->, which matters because every registered server's
256
+ ones, and unset serves all <!-- fact:toolCount -->228<!-- /fact -->. A frontend repo that sets `web,code,context`
257
+ sees 50 tools instead of <!-- fact:toolCount -->228<!-- /fact -->, which matters because every registered server's
258
258
  tool list is charged against the context window on every turn.
259
259
 
260
260
  | Family | Tools | Primary pipeline consumers |
@@ -272,7 +272,7 @@ tool list is charged against the context window on every turn.
272
272
  | `ui` | 5 | `ui_locate` and target checks for end-to-end steps: `/multi-agent:test`, `/multi-agent:bug-bash`, the `e2e-testing` skill |
273
273
  | `context` | 4 | any skill holding an offloaded payload too large to read; ranks passages instead of grepping lines. `context_render` pages long text into images and reports whether that is cheaper than the text |
274
274
  | `pass` | 4 | pass-kit work outside the pipeline; no pipeline phase consumes them |
275
- | `security` | 4 | `security_cvss_score`, `security_dep_inventory`, `security_evidence_check`, `security_sarif_export`: the Phase 3 security audit (`security-auditor`) and `/multi-agent:security-review`; offline, no egress |
275
+ | `security` | 5 | `security_cvss_score`, `security_dep_inventory`, `security_evidence_check`, `security_sarif_export`, `security_mcp_config_audit`: the Phase 3 security audit (`security-auditor`) and `/multi-agent:security-review`; offline, no egress |
276
276
  | `document` | 3 | the `e2e-testing` skill's MRZ and document-scan recipes, `document_pdf_inspect` |
277
277
  | `learnings` | 3 | `learnings_search`, `learnings_timeline`, `learnings_get`: the knowledge ledger and `/multi-agent:search` |
278
278
  | `research` | 3 | `research_search`, `research_ask`, `research_community`: the research engine, `signal-community`, `/multi-agent:refactor` band E. `research_community` is off unless `MCP_TOOLKIT_CAPS` has `research-community`. Denied in unattended runs and autonomous research |
package/docs/facts.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "Generated by pipeline/scripts/gen-facts.mjs. Do not hand-edit: the site reads this, and a number edited here instead of at its source is the drift this file removes.",
3
- "generatedAt": "2026-11-01",
4
- "version": "20.39.0",
3
+ "generatedAt": "2026-11-03",
4
+ "version": "20.40.0",
5
5
  "phaseSchema": 2,
6
6
  "phases": [
7
7
  {
@@ -40,7 +40,7 @@
40
40
  "skillCountAll": 240,
41
41
  "agentCount": 11,
42
42
  "hosts": ["Claude Code", "Codex CLI", "Copilot CLI"],
43
- "toolCount": 227,
43
+ "toolCount": 228,
44
44
  "toolCategories": {
45
45
  "ios": 42,
46
46
  "web": 38,
@@ -52,10 +52,10 @@
52
52
  "graph": 8,
53
53
  "repo": 6,
54
54
  "voice": 6,
55
+ "security": 5,
55
56
  "ui": 5,
56
57
  "context": 4,
57
58
  "pass": 4,
58
- "security": 4,
59
59
  "document": 3,
60
60
  "learnings": 3,
61
61
  "research": 3,
@@ -67,5 +67,5 @@
67
67
  "test": 1
68
68
  },
69
69
  "pluginSkillCount": 262,
70
- "toolkitVersion": "3.29.0"
70
+ "toolkitVersion": "3.30.1"
71
71
  }
package/docs/features.md CHANGED
@@ -54,7 +54,7 @@ The install is not only useful while `/multi-agent` is running. `rules/outside-t
54
54
 
55
55
  - **Onboarded service credentials.** Resolve the logical name through `credential-store.sh` and read the issue, page or log. Writes route through the pipeline commands, which carry the rules that make them safe - issues are never auto-closed, PR bodies use `Ref:`, outward prose goes through the humanizer.
56
56
  - **The stack skills enabled for this repo.** Each toolkit's own `index` skill routes. The pipeline reads the effective `enabledPlugins` rather than keeping a stack table, so a seventh toolkit needs no code change.
57
- - **The `multi-agent-toolkit` MCP.** <!-- fact:toolCount -->227<!-- /fact --> tools, most of them for a running app.
57
+ - **The `multi-agent-toolkit` MCP.** <!-- fact:toolCount -->228<!-- /fact --> tools, most of them for a running app.
58
58
 
59
59
  Uninstall preserves the whole layer - tokens, the reader that opens them, the mapping that names them, the MCP registration. It is 1.5 kB of always-loaded text; the detail lives in a ref that loads on demand, and a gate keeps both under a ceiling because every byte there is paid by every session.
60
60
 
@@ -178,7 +178,7 @@ Multi-channel reporter - Phase 5 delegates to it, and it's also invocable post-h
178
178
  /multi-agent:channels ABC-1234 --channels jira,confluence --content test
179
179
  ```
180
180
 
181
- Multi-select **channels** (Jira / Confluence / Wiki / PR description) × multi-select **content** (normal analysis / test scenarios / auto-diff summary / manual note). Each body runs through the humanizer skill per-channel. Bitbucket PR updates use the reviewer-preserving PUT pattern (title + description + reviewers + fromRef + toRef + version mandatory). Replaces the earlier `enrich` command - all its capabilities (diff auto-summarize, manual mode, reviewer-preserving) are preserved; Confluence + Wiki are new.
181
+ Multi-select **channels** (Jira / Confluence / Wiki / PR description) × multi-select **content** (normal analysis / test scenarios / auto-diff summary / manual note). Each body runs through the humanizer skill per-channel. Bitbucket PR updates use the reviewer-preserving PUT pattern (title + description + reviewers + fromRef + toRef + version required). Replaces the earlier `enrich` command - all its capabilities (diff auto-summarize, manual mode, reviewer-preserving) are preserved; Confluence + Wiki are new.
182
182
 
183
183
  ### Body Preservation Contract (smoke-verified)
184
184
 
@@ -318,7 +318,7 @@ Detail: [`unattended-security.md`](../pipeline/multi-agent-refs/features/unatten
318
318
 
319
319
  ### Verification Gates
320
320
 
321
- While the quality gates are active (`MULTI_AGENT_UNATTENDED=1`, or `state.autopilot` for a terminal autopilot run), each gate appends its verdict to `state.gates[]` through `gate-ledger.mjs`, and under the variable the commit hook refuses a commit unless every mandatory gate passed or was not applicable for HEAD.
321
+ While the quality gates are active (`MULTI_AGENT_UNATTENDED=1`, or `state.autopilot` for a terminal autopilot run), each gate appends its verdict to `state.gates[]` through `gate-ledger.mjs`, and under the variable the commit hook refuses a commit unless every required gate passed or was not applicable for HEAD.
322
322
 
323
323
  | Gate | What it checks |
324
324
  |---|---|
@@ -330,7 +330,7 @@ While the quality gates are active (`MULTI_AGENT_UNATTENDED=1`, or `state.autopi
330
330
  | `evidence-gate`, `test-summary` | build and test claims read with the stack's own markers and a positive executed test count |
331
331
  | `test-strength` | a new test goes red without the change it claims to cover |
332
332
  | `review-decision` | a `blocking` finding carries two independent reviewers or a failing test |
333
- | `spec-consistency`, `plan-critique` | recorded, not mandatory at commit (see below) |
333
+ | `spec-consistency`, `plan-critique` | recorded, not required at commit (see below) |
334
334
 
335
335
  Stack adapters cover 8 stacks: `ios`, `android`, `web`, `backend-node`, `python`, `go`, `rust`, `jvm`, plus `unknown`. Detail: [`unattended-gates.md`](../pipeline/multi-agent-refs/features/unattended-gates.md), [`stack-adapters.md`](../pipeline/multi-agent-refs/features/stack-adapters.md).
336
336
 
package/index.js CHANGED
@@ -40,7 +40,16 @@ if (noColor) {
40
40
  // `simctl` for every iOS build and every piece of visual evidence. On another
41
41
  // platform a run does not degrade, it fails - so refusing here is the honest
42
42
  // answer rather than letting the user discover it at Phase 3.
43
- const PLATFORM_EXEMPT = new Set(["uninstall", "delete", "help", "--version", "-v", "version"]);
43
+ const PLATFORM_EXEMPT = new Set([
44
+ "uninstall",
45
+ "delete",
46
+ "help",
47
+ "--help",
48
+ "-h",
49
+ "--version",
50
+ "-v",
51
+ "version",
52
+ ]);
44
53
  if (process.platform !== "darwin" && !PLATFORM_EXEMPT.has(command ?? "")) {
45
54
  if (process.env.MULTI_AGENT_ALLOW_NON_DARWIN !== "1") {
46
55
  console.error(
@@ -78,7 +87,7 @@ if (command === "--version" || command === "-v" || command === "version") {
78
87
  pathToFileURL(join(__dirname, "pipeline", "scripts", "verify.mjs")).href
79
88
  );
80
89
  await main();
81
- } else if (command === "help") {
90
+ } else if (command === "help" || command === "--help" || command === "-h") {
82
91
  console.log(`
83
92
  multi-agent-pipeline - 6-phase AI development pipeline
84
93
 
@@ -109,6 +118,8 @@ if (command === "--version" || command === "-v" || command === "version") {
109
118
 
110
119
  Help:
111
120
  npx @mmerterden/multi-agent-pipeline help
121
+ npx @mmerterden/multi-agent-pipeline install --help Installer flags
122
+ npx @mmerterden/multi-agent-pipeline uninstall --help Uninstaller flags
112
123
  npx @mmerterden/multi-agent-pipeline --version Print the installed version
113
124
 
114
125
  Options: