@mmerterden/multi-agent-pipeline 20.39.1 → 20.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +165 -0
- package/README.md +28 -10
- package/README.tr.md +26 -9
- package/docs/FIGMA_PIPELINE.md +1 -1
- package/docs/adr/0019-product-tree.md +143 -0
- package/docs/adr/README.md +1 -0
- package/docs/ecosystem.md +14 -14
- package/docs/facts.json +7 -7
- package/docs/features.md +10 -4
- package/index.js +13 -2
- package/install/_common.mjs +0 -126
- package/install/_dev-only-files.mjs +1 -0
- package/install/_managed-block.mjs +5 -18
- package/install/_unattended-profile.mjs +200 -30
- package/install/claude.mjs +39 -40
- package/install/codex.mjs +2 -1
- package/install/copilot.mjs +1 -23
- package/install/index.mjs +195 -54
- package/install/templates/claude-hooks.json +34 -1
- package/manifest.json +473 -396
- package/package.json +3 -2
- package/pipeline/agents/code-reviewer.md +1 -1
- package/pipeline/commands/multi-agent/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/analysis/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/autopilot/SKILL.md +3 -3
- package/pipeline/commands/multi-agent/autopilot-off/SKILL.md +15 -13
- package/pipeline/commands/multi-agent/garbage-collect/SKILL.md +7 -5
- package/pipeline/commands/multi-agent/health/SKILL.md +6 -4
- package/pipeline/commands/multi-agent/office-on/SKILL.md +2 -3
- package/pipeline/commands/multi-agent/office-pair/SKILL.md +23 -0
- package/pipeline/commands/multi-agent/review-analysis/SKILL.md +1 -1
- package/pipeline/contract/CHANGELOG.md +27 -0
- package/pipeline/contract/README.md +2 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/error-unsigned.json +1 -1
- package/pipeline/contract/fixtures/launch-plan.json +1 -1
- package/pipeline/contract/manifest.json +28 -2
- package/pipeline/contract/types/index.d.ts +182 -5
- package/pipeline/lib/agent-model-sync.mjs +2 -4
- package/pipeline/lib/args.mjs +194 -0
- package/pipeline/lib/autopilot-activation.sh +1 -1
- package/pipeline/lib/autopilot-state.sh +1 -1
- package/pipeline/lib/bg-launch.mjs +3 -3
- package/pipeline/lib/classify-intent.sh +9 -9
- package/pipeline/lib/claude-sessions.mjs +74 -5
- package/pipeline/lib/cli-help.mjs +80 -0
- package/pipeline/lib/context-budget.mjs +5 -42
- package/pipeline/lib/credential-inventory.sh +23 -4
- package/pipeline/lib/credential-resolve.mjs +8 -12
- package/pipeline/lib/credential-store.sh +1 -1
- package/pipeline/lib/cross-repo.mjs +61 -0
- package/pipeline/lib/extract-conventions.sh +27 -27
- package/pipeline/lib/fetch-figma-annotations.sh +1 -1
- package/pipeline/lib/free-hosts.generated.mjs +22 -0
- package/pipeline/lib/glob-match.mjs +189 -0
- package/pipeline/lib/health-messages.mjs +351 -0
- package/pipeline/lib/hook-registration.mjs +5 -0
- package/pipeline/lib/identifier-scan.mjs +22 -11
- package/pipeline/lib/jira-family-write.sh +3 -3
- package/pipeline/lib/jira-publish.sh +1 -1
- package/pipeline/lib/json-file-lock.mjs +24 -23
- package/pipeline/lib/mcp-config-audit.mjs +1479 -0
- package/pipeline/lib/md2confluence-v3.py +12 -4
- package/pipeline/lib/outbound-gate.mjs +8 -70
- package/pipeline/lib/owned-path-gate.mjs +6 -180
- package/pipeline/lib/plan-todos.sh +1 -1
- package/pipeline/lib/plugin-skill-roots.mjs +45 -1
- package/pipeline/lib/pr-request-location.mjs +3 -3
- package/pipeline/lib/prefs-value.mjs +122 -21
- package/pipeline/lib/regular-file.mjs +11 -6
- package/pipeline/lib/repo-profile-derive.mjs +138 -65
- package/pipeline/lib/repo-profile-root.mjs +52 -0
- package/pipeline/lib/repo-profile.mjs +5 -38
- package/pipeline/lib/review-watch.sh +1 -1
- package/pipeline/lib/run-worktree.mjs +147 -0
- package/pipeline/lib/run-writable.sh +85 -0
- package/pipeline/lib/safe-write.mjs +542 -0
- package/pipeline/lib/secret-patterns.generated.mjs +249 -0
- package/pipeline/lib/shadow-git.sh +1 -1
- package/pipeline/lib/slug.mjs +118 -0
- package/pipeline/lib/tdd-evidence.mjs +13 -13
- package/pipeline/lib/tiered-budget.mjs +87 -0
- package/pipeline/lib/unattended-profile-check.mjs +75 -31
- package/pipeline/lib/unattended-tool-homes.mjs +1407 -0
- package/pipeline/lib/untrusted-fence.mjs +65 -0
- package/pipeline/lib/untrusted.mjs +13 -25
- package/pipeline/lib/user-facing.mjs +3 -5
- package/pipeline/lib/vercel-deploy.sh +2 -2
- package/pipeline/lib/web-push.mjs +198 -0
- package/pipeline/multi-agent-refs/analysis/locked.md +6 -6
- package/pipeline/multi-agent-refs/analysis/review.md +23 -1
- package/pipeline/multi-agent-refs/analysis-template.md +3 -3
- package/pipeline/multi-agent-refs/conventions-defaults.md +2 -2
- package/pipeline/multi-agent-refs/features/autopilot-operations.md +10 -7
- package/pipeline/multi-agent-refs/features/code-graph.md +11 -1
- package/pipeline/multi-agent-refs/features/constitution.md +3 -3
- package/pipeline/multi-agent-refs/features/doctor.md +38 -2
- package/pipeline/multi-agent-refs/features/external-context-injection.md +1 -1
- package/pipeline/multi-agent-refs/features/office-remote-protocol.md +152 -1
- package/pipeline/multi-agent-refs/features/office-threat-model.md +1 -1
- package/pipeline/multi-agent-refs/features/phone-api.md +1 -1
- package/pipeline/multi-agent-refs/features/plan-critic.md +3 -3
- package/pipeline/multi-agent-refs/features/product-tree.md +68 -0
- package/pipeline/multi-agent-refs/features/repo-profile.md +2 -2
- package/pipeline/multi-agent-refs/features/review-decision.md +21 -8
- package/pipeline/multi-agent-refs/features/scaffold.md +1 -1
- package/pipeline/multi-agent-refs/features/unattended-gates.md +3 -3
- package/pipeline/multi-agent-refs/features/unattended-security.md +574 -23
- package/pipeline/multi-agent-refs/features/usage-reporting.md +91 -0
- package/pipeline/multi-agent-refs/garbage-collect/phases.md +3 -1
- package/pipeline/multi-agent-refs/help/en.md +3 -2
- package/pipeline/multi-agent-refs/help/tr.md +8 -7
- package/pipeline/multi-agent-refs/keychain.md +1 -0
- package/pipeline/multi-agent-refs/knowledge.md +59 -0
- package/pipeline/multi-agent-refs/orchestrator/skill-loading.md +1 -1
- package/pipeline/multi-agent-refs/outside-the-pipeline.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +4 -3
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +8 -4
- package/pipeline/multi-agent-refs/phases.md +1 -1
- package/pipeline/multi-agent-refs/sync/stack-plugins.md +1 -1
- package/pipeline/multi-agent-refs/test-gen/stages.md +1 -1
- package/pipeline/multi-agent-refs/tracker-contract.md +2 -2
- package/pipeline/multi-agent-refs/unattended-contract.md +1 -1
- package/pipeline/office/assets/app_icon_180.png +0 -0
- package/pipeline/office/assets/app_icon_192.png +0 -0
- package/pipeline/office/assets/app_icon_512.png +0 -0
- package/pipeline/office/index.html +508 -6
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/preferences-template.json +3 -1
- package/pipeline/rules/figma-pipeline.md +1 -1
- package/pipeline/rules/outside-the-pipeline.md +3 -3
- package/pipeline/schemas/agent-state.schema.json +1 -1
- package/pipeline/schemas/analysis-spec.schema.json +1 -1
- package/pipeline/schemas/autopilot-config.schema.json +1 -1
- package/pipeline/schemas/autopilot-off-request.schema.json +1 -1
- package/pipeline/schemas/autopilot-off.schema.json +8 -2
- package/pipeline/schemas/dev-critic-output.schema.json +1 -1
- package/pipeline/schemas/launch.json +6 -6
- package/pipeline/schemas/learnings-ledger.schema.json +43 -2
- package/pipeline/schemas/office-archive.schema.json +265 -0
- package/pipeline/schemas/office-server-room.schema.json +283 -0
- package/pipeline/schemas/prefs.schema.json +100 -1
- package/pipeline/schemas/product-tree-overlay.schema.json +57 -0
- package/pipeline/schemas/product-tree.schema.json +136 -0
- package/pipeline/schemas/runs-index.schema.json +1 -1
- package/pipeline/schemas/secret-patterns.json +257 -1
- package/pipeline/schemas/secret-patterns.schema.json +25 -4
- package/pipeline/schemas/toolkit-path-params.json +1077 -0
- package/pipeline/schemas/toolkit-path-params.schema.json +36 -0
- package/pipeline/schemas/unattended-policy.json +10 -1
- package/pipeline/schemas/unattended-policy.schema.json +4 -0
- package/pipeline/schemas/unattended-profile.json +93 -4
- package/pipeline/schemas/unattended-profile.schema.json +10 -0
- package/pipeline/scripts/_active-run.mjs +6 -3
- package/pipeline/scripts/_analysis-doc-diagrams.mjs +115 -0
- package/pipeline/scripts/_analysis-doc-markers.mjs +252 -0
- package/pipeline/scripts/_analysis-doc-redesign.mjs +160 -0
- package/pipeline/scripts/_analysis-doc-rules.mjs +191 -0
- package/pipeline/scripts/_analysis-doc-shapes.mjs +196 -0
- package/pipeline/scripts/_analysis-doc-structure.mjs +313 -0
- package/pipeline/scripts/_autopilot-ops.mjs +12 -3
- package/pipeline/scripts/_contract-core.mjs +282 -0
- package/pipeline/scripts/_contract-office-page.mjs +108 -0
- package/pipeline/scripts/_contract-routes-catalog.mjs +84 -0
- package/pipeline/scripts/_contract-routes-office.mjs +133 -0
- package/pipeline/scripts/_contract-routes-ops.mjs +538 -0
- package/pipeline/scripts/_contract-routes-repos.mjs +270 -0
- package/pipeline/scripts/_contract-routes-runs.mjs +468 -0
- package/pipeline/scripts/_contract-routes-work.mjs +255 -0
- package/pipeline/scripts/_eval-stats.mjs +182 -0
- package/pipeline/scripts/_guard_rules.py +130 -1
- package/pipeline/scripts/_learnings-promotion.mjs +229 -0
- package/pipeline/scripts/_lint-suppression.mjs +1067 -0
- package/pipeline/scripts/_locate.mjs +539 -0
- package/pipeline/scripts/_memory-policy.mjs +253 -40
- package/pipeline/scripts/_product-tree-extract.mjs +761 -0
- package/pipeline/scripts/_product-tree.mjs +923 -0
- package/pipeline/scripts/_renamed-skills.mjs +11 -2
- package/pipeline/scripts/_retrieval.mjs +15 -8
- package/pipeline/scripts/_secret-scan.mjs +8 -2
- package/pipeline/scripts/_stack-adapter.mjs +28 -19
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/_test-gaming.mjs +44 -6
- package/pipeline/scripts/_unified-diff.mjs +2 -2
- package/pipeline/scripts/_user_guard_rules.py +744 -0
- package/pipeline/scripts/activity-snapshot.mjs +36 -15
- package/pipeline/scripts/agent-guard.py +61 -5
- package/pipeline/scripts/agent-guard.sh +8 -1
- package/pipeline/scripts/analysis-conform-coverage.mjs +3 -0
- package/pipeline/scripts/analysis-sources.mjs +3 -0
- package/pipeline/scripts/analysis-story-tree.mjs +6 -5
- package/pipeline/scripts/analysis-tickets-writeback.mjs +7 -0
- package/pipeline/scripts/anonymize-findings.mjs +1 -1
- package/pipeline/scripts/answer-check.mjs +3 -0
- package/pipeline/scripts/answer-question.mjs +22 -9
- package/pipeline/scripts/argv-secret-scan.mjs +3 -0
- package/pipeline/scripts/audit-log.sh +22 -2
- package/pipeline/scripts/autopilot-arming.mjs +6 -5
- package/pipeline/scripts/autopilot-awake.mjs +3 -0
- package/pipeline/scripts/autopilot-control.mjs +31 -34
- package/pipeline/scripts/autopilot-intake.mjs +3 -0
- package/pipeline/scripts/autopilot-publish.mjs +34 -13
- package/pipeline/scripts/autopilot-runner.mjs +289 -86
- package/pipeline/scripts/autopilot-status.sh +1 -1
- package/pipeline/scripts/base-branch-candidates.mjs +7 -0
- package/pipeline/scripts/bug-bash.mjs +3 -0
- package/pipeline/scripts/build-references.mjs +3 -0
- package/pipeline/scripts/build-skills-index.mjs +16 -5
- package/pipeline/scripts/build-stack-plugins.mjs +3 -0
- package/pipeline/scripts/bulk-read.sh +1 -1
- package/pipeline/scripts/capture-evidence.sh +1 -1
- package/pipeline/scripts/capture-flush.sh +52 -2
- package/pipeline/scripts/check-derived-drift.mjs +5 -2
- package/pipeline/scripts/classify-plan-safety.mjs +7 -0
- package/pipeline/scripts/commands.mjs +21 -11
- package/pipeline/scripts/confirm-command.mjs +3 -0
- package/pipeline/scripts/confluence-readback.mjs +3 -0
- package/pipeline/scripts/constitution.mjs +6 -13
- package/pipeline/scripts/contract-server.mjs +710 -2317
- package/pipeline/scripts/cost-analyze.mjs +8 -18
- package/pipeline/scripts/cost-budget-check.mjs +4 -15
- package/pipeline/scripts/council-view.mjs +3 -0
- package/pipeline/scripts/crush-json.mjs +3 -0
- package/pipeline/scripts/debt-ledger.mjs +12 -37
- package/pipeline/scripts/decisions-log.mjs +14 -8
- package/pipeline/scripts/diff-explain.mjs +8 -16
- package/pipeline/scripts/diff-risk-score.mjs +5 -15
- package/pipeline/scripts/doctor.mjs +204 -12
- package/pipeline/scripts/edit-syntax-gate.mjs +5 -10
- package/pipeline/scripts/estimate.mjs +5 -10
- package/pipeline/scripts/evidence-gate.mjs +5 -21
- package/pipeline/scripts/explore-findings.mjs +3 -0
- package/pipeline/scripts/feedback-send.mjs +5 -6
- package/pipeline/scripts/file-context.mjs +20 -22
- package/pipeline/scripts/find-polluter.mjs +29 -17
- package/pipeline/scripts/finding-fingerprint.mjs +22 -9
- package/pipeline/scripts/gate-ledger.mjs +25 -21
- package/pipeline/scripts/gc-abandoned.sh +143 -40
- package/pipeline/scripts/gc-plan.mjs +8 -1
- package/pipeline/scripts/gc-refs.sh +4 -4
- package/pipeline/scripts/gc-tmp.sh +3 -3
- package/pipeline/scripts/gc-worktrees.sh +4 -4
- package/pipeline/scripts/gen-facts.mjs +3 -0
- package/pipeline/scripts/gen-free-hosts.mjs +132 -0
- package/pipeline/scripts/gen-mode-dispatch.mjs +11 -3
- package/pipeline/scripts/gen-secret-patterns.mjs +263 -0
- package/pipeline/scripts/gen-skills-index.mjs +11 -1
- package/pipeline/scripts/graph-affected.mjs +3 -0
- package/pipeline/scripts/graph-build.mjs +6 -18
- package/pipeline/scripts/graph-confirm.mjs +3 -0
- package/pipeline/scripts/graph-hint.mjs +13 -19
- package/pipeline/scripts/graph-links.mjs +3 -0
- package/pipeline/scripts/graph-mermaid.mjs +3 -0
- package/pipeline/scripts/graph-query.mjs +260 -17
- package/pipeline/scripts/handle-diff-audit.mjs +20 -12
- package/pipeline/scripts/health-report.mjs +201 -158
- package/pipeline/scripts/host-hooks.mjs +3 -0
- package/pipeline/scripts/issues.mjs +26 -11
- package/pipeline/scripts/jira-family.mjs +14 -23
- package/pipeline/scripts/jira-search.sh +1 -1
- package/pipeline/scripts/jira-wiki-escape.mjs +10 -0
- package/pipeline/scripts/job-launch.mjs +107 -8
- package/pipeline/scripts/launch-request.mjs +6 -2
- package/pipeline/scripts/learn-from-transcripts.mjs +14 -25
- package/pipeline/scripts/learnings-ledger.mjs +766 -113
- package/pipeline/scripts/localize-commands.mjs +7 -0
- package/pipeline/scripts/log-metric.sh +26 -8
- package/pipeline/scripts/match-skills.mjs +7 -0
- package/pipeline/scripts/mcp-config-audit.mjs +130 -0
- package/pipeline/scripts/migrate-prefs.mjs +34 -21
- package/pipeline/scripts/migrate-state.mjs +3 -0
- package/pipeline/scripts/mutation-probe.mjs +51 -32
- package/pipeline/scripts/note-agent-event.mjs +7 -14
- package/pipeline/scripts/note-mcp-failure.mjs +356 -0
- package/pipeline/scripts/note-mcp-failure.sh +19 -0
- package/pipeline/scripts/note-skill-use.mjs +343 -0
- package/pipeline/scripts/note-skill-use.sh +19 -0
- package/pipeline/scripts/observations.mjs +17 -16
- package/pipeline/scripts/office-archive.mjs +280 -0
- package/pipeline/scripts/office-build.mjs +117 -8
- package/pipeline/scripts/office-control.mjs +7 -3
- package/pipeline/scripts/office-credentials.mjs +3 -0
- package/pipeline/scripts/office-ledger.mjs +3 -0
- package/pipeline/scripts/office-memory.mjs +10 -4
- package/pipeline/scripts/office-pair.mjs +24 -3
- package/pipeline/scripts/office-prune.mjs +3 -0
- package/pipeline/scripts/office-push.mjs +613 -0
- package/pipeline/scripts/office-remote-client.mjs +30 -3
- package/pipeline/scripts/office-server-room.mjs +435 -0
- package/pipeline/scripts/office-settings.mjs +4 -4
- package/pipeline/scripts/office-webapp.mjs +59 -0
- package/pipeline/scripts/offload-ref.sh +1 -1
- package/pipeline/scripts/open-questions-gate.mjs +25 -12
- package/pipeline/scripts/output-quality-check.sh +1 -1
- package/pipeline/scripts/owned-path-gate.mjs +22 -11
- package/pipeline/scripts/package-manager.mjs +7 -0
- package/pipeline/scripts/parity-score.mjs +3 -0
- package/pipeline/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/scripts/phase-tracker.sh +179 -35
- package/pipeline/scripts/phase0-exit-gate.mjs +4 -1
- package/pipeline/scripts/phone-devices.mjs +32 -16
- package/pipeline/scripts/plan-complexity.mjs +17 -13
- package/pipeline/scripts/plan-coverage-gate.mjs +3 -2
- package/pipeline/scripts/plan-critique-gate.mjs +22 -12
- package/pipeline/scripts/plan-remote-links.mjs +18 -11
- package/pipeline/scripts/plugin-refresh.sh +1 -1
- package/pipeline/scripts/pr-request.mjs +3 -0
- package/pipeline/scripts/pr-timeline.mjs +13 -9
- package/pipeline/scripts/pre-commit-check.sh +175 -124
- package/pipeline/scripts/pre-push-check.sh +12 -0
- package/pipeline/scripts/probe-evidence-capability.sh +1 -1
- package/pipeline/scripts/probe-store-key.mjs +33 -15
- package/pipeline/scripts/product-context.mjs +25 -26
- package/pipeline/scripts/product-tree-eval.mjs +685 -0
- package/pipeline/scripts/product-tree.mjs +544 -0
- package/pipeline/scripts/prune-logs.sh +4 -4
- package/pipeline/scripts/purge.sh +2 -2
- package/pipeline/scripts/record-phase.mjs +19 -9
- package/pipeline/scripts/release-notes.mjs +3 -0
- package/pipeline/scripts/render-flow-run.mjs +48 -32
- package/pipeline/scripts/render-jira-evidence.mjs +18 -11
- package/pipeline/scripts/render-work-summary.sh +1 -1
- package/pipeline/scripts/repo-map.mjs +35 -20
- package/pipeline/scripts/repo-profile.mjs +21 -21
- package/pipeline/scripts/repo-recommend.mjs +22 -9
- package/pipeline/scripts/research-gate.mjs +20 -12
- package/pipeline/scripts/review-decision-gate.mjs +209 -33
- package/pipeline/scripts/review-delta.mjs +36 -15
- package/pipeline/scripts/review-file-filter.mjs +3 -0
- package/pipeline/scripts/review-scope.mjs +3 -0
- package/pipeline/scripts/rework-base.mjs +3 -0
- package/pipeline/scripts/rework-escalation.mjs +25 -20
- package/pipeline/scripts/rework-rulings.mjs +3 -0
- package/pipeline/scripts/routine-registry.mjs +27 -20
- package/pipeline/scripts/run-aggregator.mjs +15 -16
- package/pipeline/scripts/run-commit-check.mjs +3 -0
- package/pipeline/scripts/run-kill.mjs +6 -14
- package/pipeline/scripts/run-log.mjs +32 -15
- package/pipeline/scripts/run-metrics.mjs +7 -0
- package/pipeline/scripts/run-results.mjs +3 -0
- package/pipeline/scripts/run-scope-guard.mjs +3 -0
- package/pipeline/scripts/run-stop-guard.mjs +15 -9
- package/pipeline/scripts/run-write.mjs +400 -0
- package/pipeline/scripts/runs-index.mjs +22 -15
- package/pipeline/scripts/scaffold-gate.mjs +26 -9
- package/pipeline/scripts/scan-agent-config.sh +39 -11
- package/pipeline/scripts/scan-skills.sh +17 -6
- package/pipeline/scripts/scenario-audit.mjs +3 -0
- package/pipeline/scripts/scope-check-gate.mjs +21 -11
- package/pipeline/scripts/search-logs.sh +1 -1
- package/pipeline/scripts/security-evidence-gate.mjs +23 -12
- package/pipeline/scripts/service-read.mjs +6 -9
- package/pipeline/scripts/skill-candidates.mjs +3 -0
- package/pipeline/scripts/skill-conformance.mjs +29 -15
- package/pipeline/scripts/skill-siblings.mjs +34 -4
- package/pipeline/scripts/skill-usage.mjs +379 -0
- package/pipeline/scripts/smoke-schema-validation.sh +1 -1
- package/pipeline/scripts/spec-consistency-gate.mjs +22 -12
- package/pipeline/scripts/stack-toggle.mjs +3 -0
- package/pipeline/scripts/status-overview.mjs +2 -2
- package/pipeline/scripts/steer-run.mjs +3 -0
- package/pipeline/scripts/symbol-existence-gate.mjs +22 -14
- package/pipeline/scripts/sync-skill-copies.mjs +141 -0
- package/pipeline/scripts/system-status.mjs +3 -0
- package/pipeline/scripts/task-mirror.mjs +59 -22
- package/pipeline/scripts/test-classify.mjs +15 -10
- package/pipeline/scripts/test-gap-scan.mjs +5 -15
- package/pipeline/scripts/test-gen-gate.mjs +19 -10
- package/pipeline/scripts/test-gen-state.mjs +16 -15
- package/pipeline/scripts/test-integrity-gate.mjs +113 -16
- package/pipeline/scripts/test-stability-gate.mjs +3 -0
- package/pipeline/scripts/test-strength.mjs +39 -18
- package/pipeline/scripts/test-summary.mjs +24 -16
- package/pipeline/scripts/token-budget-report.mjs +18 -8
- package/pipeline/scripts/toolkit-tools.mjs +19 -4
- package/pipeline/scripts/transcript-index.mjs +38 -18
- package/pipeline/scripts/triage-memory.mjs +20 -59
- package/pipeline/scripts/unattended_policy.py +1828 -27
- package/pipeline/scripts/uninstall.mjs +120 -13
- package/pipeline/scripts/update-check.sh +1 -1
- package/pipeline/scripts/update-issue-progress.sh +6 -6
- package/pipeline/scripts/usage-identity.mjs +18 -7
- package/pipeline/scripts/usage-register-beacon.mjs +3 -0
- package/pipeline/scripts/usage-register.mjs +21 -12
- package/pipeline/scripts/usage-report.mjs +27 -11
- package/pipeline/scripts/user-test-handoff.sh +1 -1
- package/pipeline/scripts/validate-analysis-doc.mjs +163 -1240
- package/pipeline/scripts/validate-analysis.mjs +7 -0
- package/pipeline/scripts/validate-code-graph.mjs +7 -0
- package/pipeline/scripts/validate-complaint-doc.mjs +3 -0
- package/pipeline/scripts/validate-diff-risk.mjs +7 -0
- package/pipeline/scripts/validate-planning.mjs +3 -0
- package/pipeline/scripts/validate-reviewer.mjs +7 -0
- package/pipeline/scripts/validate-state.mjs +7 -0
- package/pipeline/scripts/validate-test-gap.mjs +7 -0
- package/pipeline/scripts/validate-triage.mjs +7 -0
- package/pipeline/scripts/valven-gate.mjs +14 -14
- package/pipeline/scripts/valven-port.mjs +14 -13
- package/pipeline/scripts/valven-split.mjs +14 -13
- package/pipeline/scripts/verify-citations.mjs +13 -14
- package/pipeline/scripts/verify.mjs +3 -0
- package/pipeline/scripts/work-items.mjs +5 -5
- package/pipeline/scripts/worktree-finalize.sh +3 -3
- package/pipeline/scripts/worktree-prepare-all.mjs +3 -0
- package/pipeline/scripts/worktrees.mjs +3 -0
- package/pipeline/scripts/write-state.mjs +33 -23
- package/pipeline/scripts/write-store-config.mjs +5 -1
- package/pipeline/skills/.skill-manifest.json +48 -44
- package/pipeline/skills/.skills-index.json +44 -33
- package/pipeline/skills/shared/README.md +35 -34
- package/pipeline/skills/shared/core/google-play-compliance/references/examples.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-autopilot-off/SKILL.md +15 -13
- package/pipeline/skills/shared/core/multi-agent-health/SKILL.md +6 -2
- package/pipeline/skills/shared/core/multi-agent-review-analysis/SKILL.md +1 -1
- package/pipeline/skills/shared/external/agent-introspection-debugging/SKILL.md +1 -6
- package/pipeline/skills/shared/external/android-performance/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-clips/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-store-release-notes/SKILL.md +1 -1
- package/pipeline/skills/shared/external/app-store-release-notes/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/app-store-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/apple-on-device-ai/SKILL.md +1 -1
- package/pipeline/skills/shared/external/avkit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/backlog/SKILL.md +1 -1
- package/pipeline/skills/shared/external/context-compression/SKILL.md +1 -1
- package/pipeline/skills/shared/external/core-bluetooth/SKILL.md +1 -1
- package/pipeline/skills/shared/external/core-data/SKILL.md +1 -1
- package/pipeline/skills/shared/external/council/SKILL.md +1 -6
- package/pipeline/skills/shared/external/e2e-testing/SKILL.md +1 -9
- package/pipeline/skills/shared/external/fix-review-verdicts/SKILL.md +3 -0
- package/pipeline/skills/shared/external/humanizer/SKILL.md +1 -5
- package/pipeline/skills/shared/external/ios-coding-standard/references/lint-local.sh +1 -1
- package/pipeline/skills/shared/external/ios-localization/SKILL.md +1 -1
- package/pipeline/skills/shared/external/ios-security/SKILL.md +1 -1
- package/pipeline/skills/shared/external/ios-simulator/SKILL.md +1 -1
- package/pipeline/skills/shared/external/kotlin-coroutines-expert/references/patterns.md +1 -1
- package/pipeline/skills/shared/external/live-activities/SKILL.md +1 -1
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +1 -1
- package/pipeline/skills/shared/external/macos-app-distribution/SKILL.md +1 -1
- package/pipeline/skills/shared/external/macos-app-distribution/evals/trigger-eval.json +10 -0
- package/pipeline/skills/shared/external/macos-menubar-utility/SKILL.md +1 -1
- package/pipeline/skills/shared/external/macos-menubar-utility/evals/trigger-eval.json +10 -0
- package/pipeline/skills/shared/external/mapkit-location/SKILL.md +1 -1
- package/pipeline/skills/shared/external/passkit-wallet/SKILL.md +1 -1
- package/pipeline/skills/shared/external/push-notifications/SKILL.md +1 -1
- package/pipeline/skills/shared/external/search-first/SKILL.md +1 -6
- package/pipeline/skills/shared/external/skill-creator/SKILL.md +1 -1
- package/pipeline/skills/shared/external/spec-persona-walk/SKILL.md +118 -0
- package/pipeline/skills/shared/external/spec-persona-walk/evals/evals.json +50 -0
- package/pipeline/skills/shared/external/spec-persona-walk/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/skills/shared/external/storekit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-concurrency-fix/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-concurrency-fix/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/swift-formatstyle/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-testing/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-testing-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swift-testing-review/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/swiftdata/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swiftdata-review/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swiftdata-review/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/swiftui-glass-effects/SKILL.md +1 -1
- package/pipeline/skills/shared/external/tailwind-styling/SKILL.md +1 -1
- package/pipeline/skills/shared/external/tailwind-styling/evals/trigger-eval.json +11 -0
- package/pipeline/skills/shared/external/vision-framework/SKILL.md +1 -1
- package/pipeline/skills/shared/external/widgetkit/SKILL.md +1 -1
- package/pipeline/skills/skill-copies.json +47 -0
- package/pipeline/skills/skills-index.md +33 -32
package/docs/adr/README.md
CHANGED
|
@@ -28,6 +28,7 @@ Format: lightly adapted from [Michael Nygard's ADR template](https://cognitect.c
|
|
|
28
28
|
| [0016](./0016-the-run-shape-is-asked-not-typed.md) | The shape of a run is asked, not typed into its name | Accepted |
|
|
29
29
|
| [0017](./0017-change-impact-from-the-graph.md) | Change impact from the graph: spans, a transitive walk, freshness | Accepted |
|
|
30
30
|
| [0018](./0018-cross-repo-links-not-a-global-graph.md) | Cross-repository links, not a global graph | Accepted |
|
|
31
|
+
| [0019](./0019-product-tree.md) | A product tree over the code graph, measured before it is trusted | Accepted (ships off; M0 verdict NO-GO) |
|
|
31
32
|
|
|
32
33
|
## Writing a New ADR
|
|
33
34
|
|
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 -->
|
|
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
|
|
@@ -113,14 +113,14 @@ hand-authored *inside* `multi-agent-plugins` and are never touched by sync.
|
|
|
113
113
|
<!-- facts: skillCount="skills - single authoring source" -->
|
|
114
114
|
```mermaid
|
|
115
115
|
graph TD
|
|
116
|
-
EXT["pipeline/skills/shared/external/<br/>
|
|
116
|
+
EXT["pipeline/skills/shared/external/<br/>167 skills - single authoring source<br/>(the pipeline's own phases read these too)"]
|
|
117
117
|
|
|
118
|
-
EXT -->|"cross-stack skills"| COMMONP["ai-common-toolkit
|
|
119
|
-
EXT -->|"outside facts for analysis"| ANAP["ai-analyst-toolkit
|
|
120
|
-
EXT -->|"Apple/Xcode-only"| IOSP["ai-ios-toolkit
|
|
121
|
-
EXT -->|"Android/Kotlin-only"| ANDP["ai-android-toolkit
|
|
122
|
-
EXT -->|"backend-only"| BEP["ai-backend-toolkit
|
|
123
|
-
EXT -->|"web/frontend-only"| FEP["ai-frontend-toolkit
|
|
118
|
+
EXT -->|"cross-stack skills"| COMMONP["ai-common-toolkit"]
|
|
119
|
+
EXT -->|"outside facts for analysis"| ANAP["ai-analyst-toolkit"]
|
|
120
|
+
EXT -->|"Apple/Xcode-only"| IOSP["ai-ios-toolkit"]
|
|
121
|
+
EXT -->|"Android/Kotlin-only"| ANDP["ai-android-toolkit"]
|
|
122
|
+
EXT -->|"backend-only"| BEP["ai-backend-toolkit"]
|
|
123
|
+
EXT -->|"web/frontend-only"| FEP["ai-frontend-toolkit"]
|
|
124
124
|
|
|
125
125
|
COMMONP --> BUMP{"skill set<br/>changed?"}
|
|
126
126
|
ANAP --> BUMP
|
|
@@ -136,7 +136,7 @@ graph TD
|
|
|
136
136
|
style EXT fill:#ffd,stroke:#333
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
Together the plugins carry more skills than the <!-- fact:skillCount -->167<!-- /fact -->-skill source because each
|
|
140
140
|
plugin also carries its own authored `reference/`, `workflow/` and `tools/`
|
|
141
141
|
skills and an `index` router. A vendored knowledge skill ships in exactly one
|
|
142
142
|
plugin: cross-stack skills go to `ai-common-toolkit` rather than into every
|
|
@@ -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 -->
|
|
243
|
-
at toolkit <!-- fact:toolkitVersion -->3.
|
|
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.31.0<!-- /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 -->
|
|
257
|
-
sees 50 tools instead of <!-- fact:toolCount -->
|
|
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` |
|
|
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-
|
|
4
|
-
"version": "20.
|
|
3
|
+
"generatedAt": "2026-11-03",
|
|
4
|
+
"version": "20.41.0",
|
|
5
5
|
"phaseSchema": 2,
|
|
6
6
|
"phases": [
|
|
7
7
|
{
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"analysis": [0, 1, 2, 3, 4, 5]
|
|
37
37
|
},
|
|
38
38
|
"commandCount": 71,
|
|
39
|
-
"skillCount":
|
|
40
|
-
"skillCountAll":
|
|
39
|
+
"skillCount": 167,
|
|
40
|
+
"skillCountAll": 241,
|
|
41
41
|
"agentCount": 11,
|
|
42
42
|
"hosts": ["Claude Code", "Codex CLI", "Copilot CLI"],
|
|
43
|
-
"toolCount":
|
|
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.
|
|
70
|
+
"toolkitVersion": "3.31.0"
|
|
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 -->
|
|
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
|
|
|
@@ -68,6 +68,12 @@ Phase 1 queries it to hand Explore a ranked starting file set instead of a full
|
|
|
68
68
|
|
|
69
69
|
Measured on a 4,300-file Swift app against a grep-and-read baseline at the same 30,000-token retrieval budget: 80.4% key-fact coverage at 18,465 tokens against 66.0% at 24,555. The gain is entirely in searches phrased in domain words (63.3% against 32.0%, at under half the cost). When the task already names an exact type, `grep -lw` is still slightly better and slightly cheaper, and the command says so rather than overselling. Reasoning, trade and limits: `docs/adr/0010-own-code-graph.md`.
|
|
70
70
|
|
|
71
|
+
### Product Tree (`product-tree.mjs`, off by default)
|
|
72
|
+
|
|
73
|
+
A screen layer over the code graph: screens, routes, flows (coordinators), localized strings, endpoints and tests, derived without a model into `~/.claude/knowledge/<project>/product-tree.json`, so a bug written in the words a user saw can reach the files behind that screen. SwiftUI, Compose (including Navigation 3) and Next.js / react-router are read; programmatic navigation is counted and listed when its destination is computed, so coverage is a number rather than an assumption. The model may only propose additions with evidence; a person agrees at a terminal, agent-guard asks before an agent runs `agree` or `reject`, and an unattended run never decides.
|
|
74
|
+
|
|
75
|
+
Measured on 230 held-out bug fixes from eight repositories, the screen layer did not beat the graph-only ranking (recall@10 46.5% against 47.1%, McNemar p = 1.0), so `prefs.global.productTree.enabled` stays `false`. Method, numbers and coverage: `docs/adr/0019-product-tree.md`.
|
|
76
|
+
|
|
71
77
|
### Stack Auto-Detection
|
|
72
78
|
|
|
73
79
|
| Platform | Detection | Guide Loaded |
|
|
@@ -178,7 +184,7 @@ Multi-channel reporter - Phase 5 delegates to it, and it's also invocable post-h
|
|
|
178
184
|
/multi-agent:channels ABC-1234 --channels jira,confluence --content test
|
|
179
185
|
```
|
|
180
186
|
|
|
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
|
|
187
|
+
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
188
|
|
|
183
189
|
### Body Preservation Contract (smoke-verified)
|
|
184
190
|
|
|
@@ -318,7 +324,7 @@ Detail: [`unattended-security.md`](../pipeline/multi-agent-refs/features/unatten
|
|
|
318
324
|
|
|
319
325
|
### Verification Gates
|
|
320
326
|
|
|
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
|
|
327
|
+
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
328
|
|
|
323
329
|
| Gate | What it checks |
|
|
324
330
|
|---|---|
|
|
@@ -330,7 +336,7 @@ While the quality gates are active (`MULTI_AGENT_UNATTENDED=1`, or `state.autopi
|
|
|
330
336
|
| `evidence-gate`, `test-summary` | build and test claims read with the stack's own markers and a positive executed test count |
|
|
331
337
|
| `test-strength` | a new test goes red without the change it claims to cover |
|
|
332
338
|
| `review-decision` | a `blocking` finding carries two independent reviewers or a failing test |
|
|
333
|
-
| `spec-consistency`, `plan-critique` | recorded, not
|
|
339
|
+
| `spec-consistency`, `plan-critique` | recorded, not required at commit (see below) |
|
|
334
340
|
|
|
335
341
|
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
342
|
|
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([
|
|
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:
|
package/install/_common.mjs
CHANGED
|
@@ -707,97 +707,6 @@ export function pruneLegacyMultiAgentSkills(skillsDir) {
|
|
|
707
707
|
return removed;
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
-
/**
|
|
711
|
-
* Trees an older installer created and no current one manages.
|
|
712
|
-
*
|
|
713
|
-
* A tree that stops being copied does not stop existing: the wipe-before-copy
|
|
714
|
-
* pattern only runs for trees the installer still writes, so a tree dropped
|
|
715
|
-
* from the installer keeps whatever it last wrote until something removes it.
|
|
716
|
-
*
|
|
717
|
-
* `eval/` held eval corpora for harnesses that are maintainer CI tooling and do
|
|
718
|
-
* not ship, so nothing installed can read or remove it.
|
|
719
|
-
*
|
|
720
|
-
* `~/.multi-agent/` is the shared runtime the retired Cursor / Antigravity /
|
|
721
|
-
* VS Code Copilot Chat adapters used to reach the gate scripts by absolute
|
|
722
|
-
* path: scripts, lib and schemas that no current installer refreshes, and that
|
|
723
|
-
* look like a live install when browsed.
|
|
724
|
-
*
|
|
725
|
-
* `root: "home"` entries sit beside `~/.claude`, not inside it.
|
|
726
|
-
*
|
|
727
|
-
* @type {ReadonlyArray<{dir: string, root?: "claude"|"home", reason: string, knownEntries?: string[], entryMarker?: string}>}
|
|
728
|
-
*/
|
|
729
|
-
const ABANDONED_TREES = Object.freeze([
|
|
730
|
-
{
|
|
731
|
-
dir: "eval",
|
|
732
|
-
reason: "eval corpora; the harnesses that read them are maintainer-only and no longer ship",
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
// Two roots the pipeline wrote task state into before the log root settled
|
|
736
|
-
// on ~/.claude/logs/multi-agent/. Nothing in the tree references either any
|
|
737
|
-
// more - no script, no doc, no schema - so they are orphaned copies of
|
|
738
|
-
// state nothing can read. `entryMarker` is the guard: every entry must be a
|
|
739
|
-
// directory holding an agent-state.json, which is the shape only this
|
|
740
|
-
// pipeline wrote. A folder someone else put there fails that test and the
|
|
741
|
-
// tree is kept.
|
|
742
|
-
dir: "multi-agent-tasks",
|
|
743
|
-
entryMarker: "agent-state.json",
|
|
744
|
-
reason: "pre-log-root task state; the current root is ~/.claude/logs/multi-agent/",
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
dir: ".multi-agent-state",
|
|
748
|
-
entryMarker: "agent-state.json",
|
|
749
|
-
reason: "pre-log-root task state; the current root is ~/.claude/logs/multi-agent/",
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
dir: ".multi-agent",
|
|
753
|
-
root: "home",
|
|
754
|
-
// `.multi-agent/` is also the live per-repo path memory-save.sh and the
|
|
755
|
-
// offload-ref writer use (memory/, refs/, .gitignore). If $HOME is itself a
|
|
756
|
-
// repo, or anything else put an unknown entry there, the tree is not ours.
|
|
757
|
-
knownEntries: ["scripts", "lib", "schemas", ".DS_Store"],
|
|
758
|
-
reason:
|
|
759
|
-
"shared runtime for the Cursor / Antigravity / Copilot Chat adapters, all deleted in v10.7.0",
|
|
760
|
-
},
|
|
761
|
-
]);
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* @param {string} target
|
|
765
|
-
* @param {ReadonlyArray<string>|undefined} knownEntries
|
|
766
|
-
* @param {string|undefined} entryMarker file every entry must contain, for trees keyed by task id
|
|
767
|
-
* @returns {boolean} true when every top-level entry is one the abandoned tree is known to contain
|
|
768
|
-
*/
|
|
769
|
-
function isKnownLegacyTree(target, knownEntries, entryMarker) {
|
|
770
|
-
if (entryMarker) {
|
|
771
|
-
// Shape check rather than a name list, for trees whose entries are task ids
|
|
772
|
-
// and therefore unknowable in advance. An entry qualifies when it carries
|
|
773
|
-
// the marker, or when it is an empty directory - an abandoned run that was
|
|
774
|
-
// torn down leaves one of those, and nothing that is empty can belong to
|
|
775
|
-
// anyone else. A directory with content but no marker is somebody's, and
|
|
776
|
-
// one such entry keeps the whole tree.
|
|
777
|
-
try {
|
|
778
|
-
return readdirSync(target)
|
|
779
|
-
.filter((name) => name !== ".DS_Store")
|
|
780
|
-
.every((name) => {
|
|
781
|
-
const entry = join(target, name);
|
|
782
|
-
if (existsSync(join(entry, entryMarker))) return true;
|
|
783
|
-
try {
|
|
784
|
-
return readdirSync(entry).filter((n) => n !== ".DS_Store").length === 0;
|
|
785
|
-
} catch {
|
|
786
|
-
return false;
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
} catch {
|
|
790
|
-
return false;
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
if (!knownEntries) return true;
|
|
794
|
-
try {
|
|
795
|
-
return readdirSync(target).every((name) => knownEntries.includes(name));
|
|
796
|
-
} catch {
|
|
797
|
-
return false;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
710
|
/**
|
|
802
711
|
* Registry of command renames. Command names are an interface: users type
|
|
803
712
|
* them, docs and saved routines reference them, and Copilot installs derive
|
|
@@ -824,41 +733,6 @@ export const COMMAND_RENAMES = Object.freeze({
|
|
|
824
733
|
"local-autopilot": "autopilot",
|
|
825
734
|
});
|
|
826
735
|
|
|
827
|
-
/**
|
|
828
|
-
* Remove trees an older install left behind.
|
|
829
|
-
*
|
|
830
|
-
* @param {string} claudeDir e.g. `$HOME/.claude`
|
|
831
|
-
* @param {string} [home] `$HOME`, for entries marked `root: "home"`. Defaults to
|
|
832
|
-
* the parent of `claudeDir`, which is the layout every installer uses.
|
|
833
|
-
* @returns {number} directories removed
|
|
834
|
-
*/
|
|
835
|
-
export function pruneAbandonedTrees(claudeDir, home = dirname(claudeDir)) {
|
|
836
|
-
let removed = 0;
|
|
837
|
-
for (const { dir, root, reason, knownEntries, entryMarker } of ABANDONED_TREES) {
|
|
838
|
-
const base = root === "home" ? home : claudeDir;
|
|
839
|
-
const target = join(base, dir);
|
|
840
|
-
if (!existsSync(target)) continue;
|
|
841
|
-
if (!isKnownLegacyTree(target, knownEntries, entryMarker)) {
|
|
842
|
-
console.log(
|
|
843
|
-
` kept ${target}: holds entries no abandoned install wrote, so it is not ours to remove`,
|
|
844
|
-
);
|
|
845
|
-
continue;
|
|
846
|
-
}
|
|
847
|
-
if (dryRun) {
|
|
848
|
-
console.log(` [dry-run] would remove abandoned tree ${target} (${reason})`);
|
|
849
|
-
removed++;
|
|
850
|
-
continue;
|
|
851
|
-
}
|
|
852
|
-
try {
|
|
853
|
-
rmSync(target, { recursive: true, force: true });
|
|
854
|
-
removed++;
|
|
855
|
-
} catch {
|
|
856
|
-
/* non-fatal - a leftover tree must never fail an install */
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
return removed;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
736
|
/**
|
|
863
737
|
* Copy a single file, honouring dry-run mode.
|
|
864
738
|
* @param {string} src
|
|
@@ -72,6 +72,7 @@ const DEV_ONLY_TOOLING = Object.freeze([
|
|
|
72
72
|
"_shingle-index.mjs", // imported only by upstream-overlap-gate.mjs, which never ships
|
|
73
73
|
"_png-phash.mjs", // imported only by upstream-overlap-gate.mjs, which never ships
|
|
74
74
|
"gen-free-llm-skill.mjs", // reads the sibling toolkit checkout; an install has none
|
|
75
|
+
"gen-toolkit-path-params.mjs", // reads the sibling toolkit checkout; an install has none
|
|
75
76
|
"gen-fact-marks.mjs", // renders the counts in the repo's own docs; an install has no docs/
|
|
76
77
|
"gen-ref-toc.mjs", // regenerates the repo's own reference tree; an install has no pipeline/
|
|
77
78
|
"ref-filler-audit.mjs", // audits the repo's own instruction docs; an install has no pipeline/
|
|
@@ -6,10 +6,8 @@
|
|
|
6
6
|
* everything around it. Every install replaces only that span, so user content
|
|
7
7
|
* before and after survives.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* (v5.6.2 pre-marker sections, v11.4.1 explicit end marker) and must not be
|
|
12
|
-
* re-derived per target.
|
|
9
|
+
* Shared by the Copilot and Codex installers, so the bounding rules are defined
|
|
10
|
+
* once rather than per target.
|
|
13
11
|
*
|
|
14
12
|
* @module install/_managed-block
|
|
15
13
|
*/
|
|
@@ -51,11 +49,10 @@ export function legacyTrailingContent(section) {
|
|
|
51
49
|
* @param {string} opts.body - pipeline section content (without the end marker)
|
|
52
50
|
* @param {string} opts.startMarker - first line of the managed span
|
|
53
51
|
* @param {string} opts.endMarker - HTML comment terminating the managed span
|
|
54
|
-
* @param {RegExp[]} [opts.driftPatterns] - pre-marker sections to scrub
|
|
55
52
|
* @returns {"created"|"updated"|"appended"} what the merge did
|
|
56
53
|
*/
|
|
57
54
|
export function mergeManagedBlock(opts) {
|
|
58
|
-
const { path, body, startMarker, endMarker
|
|
55
|
+
const { path, body, startMarker, endMarker } = opts;
|
|
59
56
|
const managedBlock = body.trimEnd() + "\n\n" + endMarker + "\n";
|
|
60
57
|
|
|
61
58
|
if (!existsSync(path)) {
|
|
@@ -63,17 +60,7 @@ export function mergeManagedBlock(opts) {
|
|
|
63
60
|
return "created";
|
|
64
61
|
}
|
|
65
62
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
// Drift cleanup: strip pipeline sections written by installers that predate
|
|
69
|
-
// the stable marker. Without this they linger and contradict current output.
|
|
70
|
-
let cleaned = false;
|
|
71
|
-
for (const re of driftPatterns) {
|
|
72
|
-
if (re.test(existing)) {
|
|
73
|
-
existing = existing.replace(re, "");
|
|
74
|
-
cleaned = true;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
63
|
+
const existing = readFileSync(path, "utf-8");
|
|
77
64
|
|
|
78
65
|
if (!existing.includes(startMarker)) {
|
|
79
66
|
writeFile(path, existing.trimEnd() + "\n\n" + managedBlock);
|
|
@@ -95,5 +82,5 @@ export function mergeManagedBlock(opts) {
|
|
|
95
82
|
const trailingClean = trailing.replace(/^[\r\n]+/, "").trimEnd();
|
|
96
83
|
if (trailingClean.length > 0) out += "\n" + trailingClean + "\n";
|
|
97
84
|
writeFile(path, out);
|
|
98
|
-
return
|
|
85
|
+
return "updated";
|
|
99
86
|
}
|