@mmerterden/multi-agent-pipeline 17.6.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +310 -0
- package/README.md +76 -18
- package/README.tr.md +55 -16
- package/docs/adr/0002-instruction-driven-flag.md +1 -0
- package/docs/adr/0005-lazy-phase-docs.md +11 -1
- package/docs/adr/0008-installer-modularization-and-secret-leak-defense.md +1 -0
- package/docs/adr/0010-own-code-graph.md +1 -0
- package/docs/adr/0011-dormant-ci.md +25 -1
- package/docs/adr/0014-six-phase-consolidation.md +134 -0
- package/docs/adr/README.md +2 -1
- package/docs/architecture.md +37 -38
- package/docs/best-practices.md +1 -1
- package/docs/ecosystem.md +37 -26
- package/docs/engineering.md +1 -1
- package/docs/facts.json +45 -0
- package/docs/features.md +54 -53
- package/docs/performance.md +5 -5
- package/docs/recovery-guide.md +9 -9
- package/docs/server-readiness.md +188 -0
- package/docs/token-budget-history.md +3 -1
- package/index.js +18 -3
- package/install/_codex-agents.mjs +1 -1
- package/install/_common.mjs +42 -17
- package/install/_dev-only-files.mjs +8 -0
- package/install/_unattended-profile.mjs +113 -0
- package/install/index.mjs +48 -0
- package/install/templates/claude-hooks.json +1 -1
- package/install/templates/codex-instructions.md +1 -1
- package/install/templates/copilot-instructions.md +28 -28
- package/manifest.json +1065 -0
- package/package.json +6 -3
- package/pipeline/agents/dev-critic.md +3 -3
- package/pipeline/commands/figma-to-swiftui.md +1 -1
- package/pipeline/commands/multi-agent/SKILL.md +8 -8
- package/pipeline/commands/multi-agent/analysis/SKILL.md +9 -9
- package/pipeline/commands/multi-agent/autopilot/SKILL.md +7 -7
- package/pipeline/commands/multi-agent/channels/SKILL.md +15 -15
- package/pipeline/commands/multi-agent/diff-explain/SKILL.md +6 -6
- package/pipeline/commands/multi-agent/garbage-collect/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/graph/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/help/SKILL.md +62 -62
- package/pipeline/commands/multi-agent/language/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/local/SKILL.md +11 -11
- package/pipeline/commands/multi-agent/local-autopilot/SKILL.md +13 -13
- package/pipeline/commands/multi-agent/log/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/manual-test/SKILL.md +9 -9
- package/pipeline/commands/multi-agent/model/SKILL.md +69 -0
- package/pipeline/commands/multi-agent/refactor/SKILL.md +3 -3
- package/pipeline/commands/multi-agent/resume/SKILL.md +4 -4
- package/pipeline/commands/multi-agent/resume-local/SKILL.md +19 -17
- package/pipeline/commands/multi-agent/review/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/route-off/SKILL.md +36 -0
- package/pipeline/commands/multi-agent/route-on/SKILL.md +74 -0
- package/pipeline/commands/multi-agent/route-status/SKILL.md +56 -0
- package/pipeline/commands/multi-agent/setup/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/status/SKILL.md +54 -23
- package/pipeline/commands/multi-agent/steer/SKILL.md +2 -2
- package/pipeline/commands/multi-agent/sync/SKILL.md +12 -13
- package/pipeline/commands/multi-agent/test/SKILL.md +1 -1
- package/pipeline/lib/_jira-auth.sh +8 -0
- package/pipeline/lib/analysis-jira-write.sh +32 -0
- package/pipeline/lib/ask-choice.sh +13 -2
- package/pipeline/lib/autopilot-state.sh +8 -0
- package/pipeline/lib/credential-inventory.sh +1 -1
- package/pipeline/lib/fatal.mjs +129 -0
- package/pipeline/lib/fetch-fortify.sh +1 -1
- package/pipeline/lib/figma-mcp-refresh.sh +18 -0
- package/pipeline/lib/figma-screenshot.sh +18 -0
- package/pipeline/lib/invoked-directly.mjs +43 -0
- package/pipeline/lib/jira-publish.sh +42 -0
- package/pipeline/lib/md2confluence-v3.py +47 -0
- package/pipeline/lib/model-rung.sh +142 -0
- package/pipeline/lib/outbound-gate.mjs +175 -0
- package/pipeline/lib/phase-schema.mjs +88 -0
- package/pipeline/lib/plan-todos.sh +32 -11
- package/pipeline/lib/post-pr-review.sh +77 -8
- package/pipeline/lib/repo-hygiene.sh +8 -3
- package/pipeline/lib/require-jq.sh +40 -0
- package/pipeline/lib/route-state.sh +161 -0
- package/pipeline/lib/run-paths.sh +335 -0
- package/pipeline/multi-agent-refs/_account-picker.md +1 -1
- package/pipeline/multi-agent-refs/_dev-context.md +1 -1
- package/pipeline/multi-agent-refs/_input-parser.md +1 -1
- package/pipeline/multi-agent-refs/analysis/evidence.md +0 -9
- package/pipeline/multi-agent-refs/analysis/intake.md +1 -1
- package/pipeline/multi-agent-refs/analysis/locked.md +21 -22
- package/pipeline/multi-agent-refs/analysis/render.md +1 -1
- package/pipeline/multi-agent-refs/analysis/synthesis.md +12 -6
- package/pipeline/multi-agent-refs/android-guide.md +1 -1
- package/pipeline/multi-agent-refs/audit-guide.md +13 -13
- package/pipeline/multi-agent-refs/channels/issue-comment.md +2 -2
- package/pipeline/multi-agent-refs/channels/jira.md +3 -3
- package/pipeline/multi-agent-refs/channels/pr.md +4 -4
- package/pipeline/multi-agent-refs/channels/wiki.md +1 -1
- package/pipeline/multi-agent-refs/component-dispatch.md +3 -3
- package/pipeline/multi-agent-refs/cross-cli-contract.md +31 -6
- package/pipeline/multi-agent-refs/features/autopilot-circuit-breaker.md +74 -4
- package/pipeline/multi-agent-refs/features/code-graph.md +5 -5
- package/pipeline/multi-agent-refs/features/cost-analysis.md +93 -0
- package/pipeline/multi-agent-refs/features/design-conformance.md +1 -1
- package/pipeline/multi-agent-refs/features/dev-critic.md +3 -3
- package/pipeline/multi-agent-refs/features/doctor.md +47 -2
- package/pipeline/multi-agent-refs/features/external-context-injection.md +3 -3
- package/pipeline/multi-agent-refs/features/maturity-followup.md +3 -3
- package/pipeline/multi-agent-refs/features/model-fallback.md +5 -5
- package/pipeline/multi-agent-refs/features/plan-todos.md +1 -1
- package/pipeline/multi-agent-refs/features/repo-map.md +1 -1
- package/pipeline/multi-agent-refs/features/review-delta.md +3 -3
- package/pipeline/multi-agent-refs/features/review-multi-repo.md +1 -1
- package/pipeline/multi-agent-refs/features/scope-check.md +4 -4
- package/pipeline/multi-agent-refs/features/skill-conformance.md +2 -2
- package/pipeline/multi-agent-refs/features/stack-skill-routing.md +1 -1
- package/pipeline/multi-agent-refs/features/verify-by-test.md +4 -4
- package/pipeline/multi-agent-refs/features/verify.md +83 -0
- package/pipeline/multi-agent-refs/features/visual-evidence.md +19 -19
- package/pipeline/multi-agent-refs/features/worktree-finalize.md +6 -6
- package/pipeline/multi-agent-refs/issue-jira-triad.md +10 -10
- package/pipeline/multi-agent-refs/knowledge.md +11 -11
- package/pipeline/multi-agent-refs/multi-repo-integration-build.md +13 -13
- package/pipeline/multi-agent-refs/payload-contracts.md +8 -8
- package/pipeline/multi-agent-refs/phases/log-format.md +10 -10
- package/pipeline/multi-agent-refs/phases/modes.md +30 -30
- package/pipeline/multi-agent-refs/phases/operations.md +21 -10
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +25 -25
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +599 -0
- package/pipeline/multi-agent-refs/phases/{phase-3-dev.md → phase-2-dev.md} +129 -49
- package/pipeline/multi-agent-refs/phases/{phase-4-review.md → phase-3-review.md} +225 -107
- package/pipeline/multi-agent-refs/phases/{phase-6-commit.md → phase-4-commit.md} +23 -23
- package/pipeline/multi-agent-refs/phases/{phase-7-report.md → phase-5-report.md} +29 -29
- package/pipeline/multi-agent-refs/phases.md +44 -48
- package/pipeline/multi-agent-refs/picker-contract.md +1 -1
- package/pipeline/multi-agent-refs/progress-contract.md +6 -6
- package/pipeline/multi-agent-refs/readiness-review.md +1 -1
- package/pipeline/multi-agent-refs/rules.md +7 -7
- package/pipeline/multi-agent-refs/swiftui-guide.md +2 -2
- package/pipeline/multi-agent-refs/tracker-contract.md +31 -32
- package/pipeline/multi-agent-refs/unattended-contract.md +129 -0
- package/pipeline/multi-agent-refs/wiki-capture.md +14 -14
- package/pipeline/preferences-template.json +9 -1
- package/pipeline/rules/outside-the-pipeline.md +1 -1
- package/pipeline/schemas/agent-state.schema.json +50 -50
- package/pipeline/schemas/analysis-output.schema.json +2 -2
- package/pipeline/schemas/autopilot-config.schema.json +1 -1
- package/pipeline/schemas/code-graph.schema.json +1 -1
- package/pipeline/schemas/criteria-manifest.schema.json +1 -1
- package/pipeline/schemas/dev-critic-output.schema.json +1 -1
- package/pipeline/schemas/diff-risk.schema.json +1 -1
- package/pipeline/schemas/migrations/prefs-2.4.0-to-2.5.0.mjs +2 -2
- package/pipeline/schemas/migrations/prefs-2.6.0-to-2.7.0.mjs +31 -0
- package/pipeline/schemas/migrations/state-2.1.0-to-2.2.0.mjs +129 -0
- package/pipeline/schemas/phases.json +105 -0
- package/pipeline/schemas/plan-todos.schema.json +5 -5
- package/pipeline/schemas/planning-output.schema.json +1 -1
- package/pipeline/schemas/prefs.schema.json +100 -56
- package/pipeline/schemas/reviewer-output.schema.json +3 -3
- package/pipeline/schemas/route-config.schema.json +74 -0
- package/pipeline/schemas/scope-check.schema.json +1 -1
- package/pipeline/schemas/test-gap.schema.json +1 -1
- package/pipeline/schemas/token-budget.json +12 -18
- package/pipeline/schemas/triage-output.schema.json +6 -6
- package/pipeline/scripts/README.md +3 -3
- package/pipeline/scripts/_code-graph.mjs +2 -2
- package/pipeline/scripts/_run-paths.mjs +372 -0
- package/pipeline/scripts/_smoke-root.sh +1 -1
- package/pipeline/scripts/aggregate-metrics.mjs +65 -65
- package/pipeline/scripts/autopilot-arming.mjs +2 -1
- package/pipeline/scripts/autopilot-intake.mjs +2 -1
- package/pipeline/scripts/autopilot-runner.mjs +206 -2
- package/pipeline/scripts/build-references.mjs +2 -1
- package/pipeline/scripts/build-stack-plugins.mjs +10 -2
- package/pipeline/scripts/capture-evidence.sh +7 -2
- package/pipeline/scripts/capture-flush.sh +8 -8
- package/pipeline/scripts/capture-resume.sh +3 -3
- package/pipeline/scripts/classify-plan-safety.mjs +3 -2
- package/pipeline/scripts/cost-analyze.mjs +600 -0
- package/pipeline/scripts/cost-budget-check.mjs +4 -12
- package/pipeline/scripts/council-view.mjs +2 -1
- package/pipeline/scripts/crush-json.mjs +2 -1
- package/pipeline/scripts/diff-explain.mjs +7 -10
- package/pipeline/scripts/diff-risk-score.mjs +2 -1
- package/pipeline/scripts/doctor.mjs +140 -6
- package/pipeline/scripts/evidence-gate.mjs +9 -3
- package/pipeline/scripts/feedback-send.mjs +12 -2
- package/pipeline/scripts/gc-abandoned.sh +32 -16
- package/pipeline/scripts/gc-tmp.sh +1 -1
- package/pipeline/scripts/gc-worktrees.sh +12 -5
- package/pipeline/scripts/gen-facts.mjs +175 -0
- package/pipeline/scripts/gen-mode-dispatch.mjs +32 -37
- package/pipeline/scripts/gen-ref-toc.mjs +1 -1
- package/pipeline/scripts/github-ssh-setup.sh +64 -7
- package/pipeline/scripts/graph-mermaid.mjs +4 -2
- package/pipeline/scripts/graph-report.mjs +1 -1
- package/pipeline/scripts/jira-attach.sh +1 -1
- package/pipeline/scripts/keychain-save.sh +101 -30
- package/pipeline/scripts/learn-from-transcripts.mjs +3 -2
- package/pipeline/scripts/learning-curve.mjs +36 -31
- package/pipeline/scripts/log-metric.sh +17 -4
- package/pipeline/scripts/make-manifest.mjs +199 -0
- package/pipeline/scripts/memory-save.sh +1 -1
- package/pipeline/scripts/migrate-prefs.mjs +24 -6
- package/pipeline/scripts/migrate-state.mjs +94 -4
- package/pipeline/scripts/phase-banner.sh +26 -22
- package/pipeline/scripts/phase-tracker.sh +48 -10
- package/pipeline/scripts/plan-coverage-gate.mjs +8 -4
- package/pipeline/scripts/pre-commit-check.sh +7 -0
- package/pipeline/scripts/pre-push-check.sh +7 -0
- package/pipeline/scripts/purge.sh +23 -6
- package/pipeline/scripts/render-agent-log-cost.sh +10 -3
- package/pipeline/scripts/render-cost-summary.sh +9 -2
- package/pipeline/scripts/render-work-summary.sh +14 -7
- package/pipeline/scripts/review-file-filter.mjs +5 -3
- package/pipeline/scripts/review-scope.mjs +2 -1
- package/pipeline/scripts/routine-registry.mjs +2 -1
- package/pipeline/scripts/run-aggregator.mjs +26 -20
- package/pipeline/scripts/run-metrics.mjs +4 -2
- package/pipeline/scripts/runs-index.mjs +353 -0
- package/pipeline/scripts/scorecard-snapshot.mjs +178 -0
- package/pipeline/scripts/search-logs.sh +18 -0
- package/pipeline/scripts/smoke-cross-cli-behavior.sh +6 -6
- package/pipeline/scripts/smoke-schema-validation.sh +26 -7
- package/pipeline/scripts/test-gap-scan.mjs +2 -1
- package/pipeline/scripts/test-integrity-gate.mjs +2 -1
- package/pipeline/scripts/token-budget-report.mjs +13 -2
- package/pipeline/scripts/triage-memory.mjs +2 -2
- package/pipeline/scripts/update-issue-progress.sh +56 -7
- package/pipeline/scripts/usage-report.mjs +12 -1
- package/pipeline/scripts/validate-analysis-doc.mjs +75 -18
- package/pipeline/scripts/validate-code-graph.mjs +6 -3
- package/pipeline/scripts/validate-complaint-doc.mjs +2 -1
- package/pipeline/scripts/validate-diff-risk.mjs +6 -3
- package/pipeline/scripts/validate-planning.mjs +1 -1
- package/pipeline/scripts/validate-reviewer.mjs +1 -1
- package/pipeline/scripts/validate-state.mjs +45 -5
- package/pipeline/scripts/validate-test-gap.mjs +6 -3
- package/pipeline/scripts/validate-triage.mjs +6 -4
- package/pipeline/scripts/verify-citations.mjs +4 -2
- package/pipeline/scripts/verify.mjs +327 -0
- package/pipeline/scripts/worktree-finalize.sh +18 -9
- package/pipeline/scripts/write-state.mjs +154 -15
- package/pipeline/skills/.skill-manifest.json +37 -21
- package/pipeline/skills/.skills-index.json +104 -5
- package/pipeline/skills/shared/README.md +15 -6
- package/pipeline/skills/shared/core/apple-archive-compliance/SKILL.md +2 -2
- package/pipeline/skills/shared/core/google-play-compliance/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent/SKILL.md +69 -71
- package/pipeline/skills/shared/core/multi-agent-autopilot/SKILL.md +3 -3
- package/pipeline/skills/shared/core/multi-agent-channels/SKILL.md +14 -14
- package/pipeline/skills/shared/core/multi-agent-diff-explain/SKILL.md +5 -5
- package/pipeline/skills/shared/core/multi-agent-graph/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-help/SKILL.md +25 -23
- package/pipeline/skills/shared/core/multi-agent-language/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-local/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-local-autopilot/SKILL.md +8 -8
- package/pipeline/skills/shared/core/multi-agent-manual-test/SKILL.md +6 -6
- package/pipeline/skills/shared/core/multi-agent-model/SKILL.md +71 -0
- package/pipeline/skills/shared/core/multi-agent-refactor/SKILL.md +3 -3
- package/pipeline/skills/shared/core/multi-agent-resume/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-resume-local/SKILL.md +7 -7
- package/pipeline/skills/shared/core/multi-agent-route-off/SKILL.md +39 -0
- package/pipeline/skills/shared/core/multi-agent-route-on/SKILL.md +76 -0
- package/pipeline/skills/shared/core/multi-agent-route-status/SKILL.md +59 -0
- package/pipeline/skills/shared/core/multi-agent-setup/SKILL.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-status/SKILL.md +35 -11
- package/pipeline/skills/shared/core/multi-agent-steer/SKILL.md +2 -2
- package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +6 -5
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/package_app.sh +4 -1
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/setup_dev_signing.sh +4 -1
- package/pipeline/skills/shared/external/macos-spm-app-packaging/assets/templates/sign-and-notarize.sh +2 -1
- package/pipeline/skills/skills-index.md +13 -4
- package/pipeline/multi-agent-refs/phases/phase-1-analysis.md +0 -263
- package/pipeline/multi-agent-refs/phases/phase-2-planning.md +0 -344
- package/pipeline/multi-agent-refs/phases/phase-5-test.md +0 -182
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## Pipeline Overview
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
6-phase development workflow (Phase 0 through Phase 5). Describe your task and follow the phases:
|
|
10
10
|
|
|
11
11
|
0. **Init** - Project setup, worktree, branch creation, identity binding
|
|
12
12
|
1. **Analysis** - Stack detection, codebase exploration
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
cases + cross-provider diversity) + Opus (security + architecture) + Sonnet
|
|
18
18
|
(quality + correctness), followed by an Opus triage pass. Claude Code: Fable +
|
|
19
19
|
Opus + Sonnet, followed by a Fable triage pass (GPT-5.4 is not natively
|
|
20
|
-
reachable there - the only intentional cross-CLI asymmetry for Phase
|
|
21
|
-
filters false-positives and out-of-scope items before looping back to Phase
|
|
20
|
+
reachable there - the only intentional cross-CLI asymmetry for Phase 3). Triage
|
|
21
|
+
filters false-positives and out-of-scope items before looping back to Phase 2.
|
|
22
22
|
5. **Test** - Optional manual testing + on-demand device audits
|
|
23
23
|
6. **Commit** - Secret scan · commit · push · PR creation
|
|
24
24
|
7. **Report** - Jira comment · Wiki + Figma screenshots · Confluence · log · knowledge + memory
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
- **multi-agent-autopilot**: no confirmations, auto commit/PR, always Full
|
|
31
31
|
- **multi-agent-local-autopilot**: same, no worktree
|
|
32
32
|
|
|
33
|
-
Depth is the question, not a command: Full runs all
|
|
33
|
+
Depth is the question, not a command: Full runs all 6 phases, Short is
|
|
34
34
|
Init -> Dev(Opus) -> Review -> Test -> Commit -> Report. Review is never
|
|
35
35
|
skipped either way.
|
|
36
36
|
|
|
@@ -54,18 +54,18 @@ so the user's input pattern stays language-agnostic.
|
|
|
54
54
|
|
|
55
55
|
## Sub-Agent Personas
|
|
56
56
|
|
|
57
|
-
Phase 1 (
|
|
57
|
+
Phase 1 (Plan) and Phase 3 (Review) dispatch sub-agents for parallel exploration
|
|
58
58
|
and review. The persona prompts live at `~/.copilot/agents/*.md` - installed by the
|
|
59
59
|
pipeline installer alongside the Claude Code equivalents at `~/.claude/agents/`.
|
|
60
60
|
|
|
61
61
|
| Agent | File | Used in |
|
|
62
62
|
|-------|------|---------|
|
|
63
63
|
| Explorer | `~/.copilot/agents/explorer.md` | Phase 1 codebase scan (parallel dispatch) |
|
|
64
|
-
| Code Reviewer | `~/.copilot/agents/code-reviewer.md` | Phase
|
|
65
|
-
| iOS Architect | `~/.copilot/agents/ios-architect.md` | Phase
|
|
66
|
-
| Android Architect | `~/.copilot/agents/android-architect.md` | Phase
|
|
67
|
-
| Backend Architect | `~/.copilot/agents/backend-architect.md` | Phase
|
|
68
|
-
| Security Auditor | `~/.copilot/agents/security-auditor.md` | Phase
|
|
64
|
+
| Code Reviewer | `~/.copilot/agents/code-reviewer.md` | Phase 3 quality/correctness reviewer |
|
|
65
|
+
| iOS Architect | `~/.copilot/agents/ios-architect.md` | Phase 3 iOS architecture review |
|
|
66
|
+
| Android Architect | `~/.copilot/agents/android-architect.md` | Phase 3 Android architecture review |
|
|
67
|
+
| Backend Architect | `~/.copilot/agents/backend-architect.md` | Phase 3 API/backend review |
|
|
68
|
+
| Security Auditor | `~/.copilot/agents/security-auditor.md` | Phase 3 security audit (OWASP-based) |
|
|
69
69
|
|
|
70
70
|
Load the matching persona file before dispatching each reviewer - the prompt defines
|
|
71
71
|
the model's focus area, severity rubric, and output format the triage pass expects.
|
|
@@ -77,7 +77,7 @@ but the actual contract is **8 interactive steps** from `refs/phases/phase-0-ini
|
|
|
77
77
|
Copilot CLI has no slash-command infrastructure to auto-route through the full ref file,
|
|
78
78
|
so execute ALL of these explicitly before touching code:
|
|
79
79
|
|
|
80
|
-
1. **Bootstrap tracker** - `bash ~/.copilot/scripts/phase-tracker.sh init
|
|
80
|
+
1. **Bootstrap tracker** - `bash ~/.copilot/scripts/phase-tracker.sh init 6` (once, before Step 0)
|
|
81
81
|
2. **Load prefs** - read `~/.claude/multi-agent-preferences.json`; warn + stop if setup never ran
|
|
82
82
|
3. **Parse input** - classify (Jira ID, GitHub URL, free-text) + fetch issue via `gh` / Jira API
|
|
83
83
|
4. **Select project(s) - single OR multi-repo** - scan `$HOME`, present numbered list,
|
|
@@ -125,8 +125,8 @@ bash ~/.copilot/scripts/phase-tracker.sh init "$TASK_ID"
|
|
|
125
125
|
bash ~/.copilot/scripts/phase-tracker.sh add 0 Init
|
|
126
126
|
bash ~/.copilot/scripts/phase-tracker.sh tiles
|
|
127
127
|
|
|
128
|
-
# Step 7.5, after the depth answer - Full below, Short drops 1:
|
|
129
|
-
for p in 1:
|
|
128
|
+
# Step 7.5, after the depth answer - Full below, Short drops 1:Plan:
|
|
129
|
+
for p in 1:Plan 2:Dev 3:Review 4:Commit 5:Report; do
|
|
130
130
|
bash ~/.copilot/scripts/phase-tracker.sh add "${p%%:*}" "${p#*:}"
|
|
131
131
|
done
|
|
132
132
|
bash ~/.copilot/scripts/phase-tracker.sh tiles --new
|
|
@@ -135,7 +135,7 @@ bash ~/.copilot/scripts/phase-tracker.sh tiles --new
|
|
|
135
135
|
# transition to in_progress, completed_at on terminal status (completed/failed/skipped).
|
|
136
136
|
# Render now shows a 16-char ASCII progress bar + elapsed time + per-phase token
|
|
137
137
|
# usage + Total footer (v5.5.0):
|
|
138
|
-
# Phase
|
|
138
|
+
# Phase 2: Dev ████████████████ 2m 35s · 18.7k tok
|
|
139
139
|
# Total 34.8k tok
|
|
140
140
|
bash ~/.copilot/scripts/phase-tracker.sh update <N> in_progress
|
|
141
141
|
bash ~/.copilot/scripts/phase-tracker.sh update <N> completed # or failed / skipped
|
|
@@ -162,12 +162,12 @@ LOG_METRIC_FORWARD_TO_TRACKER=1 bash ~/.copilot/scripts/log-metric.sh "$TASK_ID"
|
|
|
162
162
|
# v8.3+ - phase model tag (used by render-agent-log-cost.sh):
|
|
163
163
|
bash ~/.copilot/scripts/phase-tracker.sh model <N> <opus|sonnet|haiku|gpt-5.4>
|
|
164
164
|
|
|
165
|
-
# Phase
|
|
165
|
+
# Phase 5 sub-step enforcement (v5.4.1) - register all 5 steps up front so
|
|
166
166
|
# wiki/confluence skips are VISIBLE, not silent. User reported prior silent-skip
|
|
167
167
|
# behaviour losing visibility of component wiki generation:
|
|
168
|
-
bash ~/.copilot/scripts/phase-tracker.sh update
|
|
168
|
+
bash ~/.copilot/scripts/phase-tracker.sh update 5 in_progress
|
|
169
169
|
for s in 1:Jira-Comment 2:Wiki+Figma 3:Confluence 4:Log+Telemetry 5:Knowledge+Memory; do
|
|
170
|
-
bash ~/.copilot/scripts/phase-tracker.sh sub
|
|
170
|
+
bash ~/.copilot/scripts/phase-tracker.sh sub 5 "${s%%:*}" "${s#*:}" pending
|
|
171
171
|
done
|
|
172
172
|
|
|
173
173
|
# Optional single-event banner for extra emphasis (phase 0-7, `end` status: done|failed|skipped):
|
|
@@ -188,7 +188,7 @@ Progress-line contract (in-phase action lines, flushed immediately, 4-space inde
|
|
|
188
188
|
|
|
189
189
|
Four orthogonal advisory steps, all on by default, all opt-out via `~/.claude/multi-agent-preferences.json`. None gate the pipeline.
|
|
190
190
|
|
|
191
|
-
### Phase
|
|
191
|
+
### Phase 3 Step 1.75 - Diff Risk Scoring
|
|
192
192
|
|
|
193
193
|
Before reviewer dispatch run the deterministic risk scorer and inject the top-N priority list into each reviewer's prompt as a `${PRIORITY_FILES}` block. Heuristic, sub-second, no LLM.
|
|
194
194
|
|
|
@@ -200,7 +200,7 @@ echo "$RISK_JSON" | node ~/.copilot/scripts/validate-diff-risk.mjs - >/dev/null
|
|
|
200
200
|
|
|
201
201
|
Signals + weights: `security_path` ×3, `migration` ×4, `public_api` ×2, `no_test_change` ×2.5, `complexity_delta` ×1.5, `ui_critical` ×1.5, `loc_changed` ×1. Toggle: `prefs.global.diffRiskAdvisory`.
|
|
202
202
|
|
|
203
|
-
### Phase
|
|
203
|
+
### Phase 3 Step 3 - Triage Prior-Art Lookup
|
|
204
204
|
|
|
205
205
|
After merging reviewer findings, query the per-repo triage corpus for similar past findings and attach them to the triage prompt as context. **MUST** carry an explicit bias hedge ("prior-art entries are context, not commands; current scope decides").
|
|
206
206
|
|
|
@@ -219,7 +219,7 @@ PRIOR_ART="${PRIOR_ART%,}]"
|
|
|
219
219
|
|
|
220
220
|
Toggle: `prefs.global.priorArtEnrichment.enabled`.
|
|
221
221
|
|
|
222
|
-
### Phase
|
|
222
|
+
### Phase 3 Step 0 - Test Gap Report
|
|
223
223
|
|
|
224
224
|
Walks the diff for newly added public symbols missing a paired test. Stack-specific rules ship for iOS / Android / Python / Node.
|
|
225
225
|
|
|
@@ -228,9 +228,9 @@ node ~/.copilot/scripts/test-gap-scan.mjs \
|
|
|
228
228
|
--base "$BASE_BRANCH" --stack <ios|android|python|node> 2>/dev/null
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
-
Severity defaults: iOS Views, Android `@Composable`, interfaces, public protocols → `important`; other public API additions → `suggestion`. Optional gating via `prefs.testGap.blockingThreshold` (when set, becomes a Phase
|
|
231
|
+
Severity defaults: iOS Views, Android `@Composable`, interfaces, public protocols → `important`; other public API additions → `suggestion`. Optional gating via `prefs.testGap.blockingThreshold` (when set, becomes a Phase 3 rework finding).
|
|
232
232
|
|
|
233
|
-
### Phase
|
|
233
|
+
### Phase 5 - Cost Breakdown + Triage Memory Ingest
|
|
234
234
|
|
|
235
235
|
Append the per-task Cost Breakdown to agent-log.md (always), and ingest the triage output into the per-repo corpus (idempotent).
|
|
236
236
|
|
|
@@ -312,7 +312,7 @@ When a task touches multiple repositories that have a producer→consumer depend
|
|
|
312
312
|
- Repo B is consumed as a submodule or SPM/Gradle dependency by a host project (Repo C)
|
|
313
313
|
- Changes in Repo A or B can silently break Repo C if key structures diverge (e.g. nested enum vs flat access pattern)
|
|
314
314
|
|
|
315
|
-
### Required steps (Phase
|
|
315
|
+
### Required steps (Phase 4 · Step 0 - before pre-commit checkout)
|
|
316
316
|
|
|
317
317
|
1. **Identify the host project** - check `prefs.global.multiRepoIntegrationHosts` for a matching `repoSet` combo. If no match, ASK the user once (record the answer to skip re-asking); autopilot refuses to prompt, skips visibly.
|
|
318
318
|
2. **Update submodules** - refresh each listed submodule path inside `hostPath` to pick up this task's feature branch / merged commits.
|
|
@@ -320,8 +320,8 @@ When a task touches multiple repositories that have a producer→consumer depend
|
|
|
320
320
|
4. **Build the host scheme/module** - capture error lines from stderr.
|
|
321
321
|
5. **Evaluate**:
|
|
322
322
|
- Zero new errors → sub-step `completed`, proceed to commit/PR.
|
|
323
|
-
- New errors from our changes → sub-step `failed`, STOP. Offer: return to Phase
|
|
324
|
-
- Pre-existing errors (unrelated) → document in Phase
|
|
323
|
+
- New errors from our changes → sub-step `failed`, STOP. Offer: return to Phase 2 for auto-fix / pause for manual fix / override with warning.
|
|
324
|
+
- Pre-existing errors (unrelated) → document in the Phase 5 report and proceed.
|
|
325
325
|
|
|
326
326
|
### Why this exists
|
|
327
327
|
|
|
@@ -333,11 +333,11 @@ encounter and auto-applies on subsequent runs - no repeated configuration.
|
|
|
333
333
|
### Tracker integration
|
|
334
334
|
|
|
335
335
|
```bash
|
|
336
|
-
# Phase
|
|
336
|
+
# Phase 4 entry - if multi-repo, register the integration-build sub-step:
|
|
337
337
|
if [ "$(jq '.projects | length' "$STATE_FILE")" -ge 2 ]; then
|
|
338
|
-
bash ~/.copilot/scripts/phase-tracker.sh sub
|
|
338
|
+
bash ~/.copilot/scripts/phase-tracker.sh sub 4 0 "Integration build" in_progress
|
|
339
339
|
# ... run the build per refs/multi-repo-integration-build.md ...
|
|
340
|
-
bash ~/.copilot/scripts/phase-tracker.sh sub
|
|
340
|
+
bash ~/.copilot/scripts/phase-tracker.sh sub 4 0 "Integration build" completed
|
|
341
341
|
fi
|
|
342
342
|
```
|
|
343
343
|
|