@xulthekl/team-flow 0.25.1 → 0.26.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 (37) hide show
  1. package/.claude/always/phase-guard.md +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.codex-plugin/plugin.json +1 -1
  5. package/.cursor-plugin/marketplace.json +1 -1
  6. package/.cursor-plugin/plugin.json +1 -1
  7. package/.github/plugin/marketplace.json +2 -2
  8. package/CHANGELOG.md +15 -0
  9. package/GEMINI.md +1 -1
  10. package/INSTALL.md +1 -1
  11. package/README.md +1 -1
  12. package/docs/README_en.md +1 -1
  13. package/gemini-extension.json +1 -1
  14. package/hooks/session-start +2 -2
  15. package/llms.txt +1 -1
  16. package/package.json +1 -1
  17. package/plugin.json +1 -1
  18. package/scripts/lib/config-loader.mjs +7 -3
  19. package/skills/bug-investigator/SKILL.md +1 -1
  20. package/skills/build-executor/SKILL.md +19 -19
  21. package/skills/build-executor/implementer-prompt.md +1 -1
  22. package/skills/build-executor/references/execution-modes.md +6 -6
  23. package/skills/build-executor/task-reviewer-prompt.md +1 -1
  24. package/skills/ce-brainstorm/SKILL.md +19 -4
  25. package/skills/code-reviewer/SKILL.md +2 -2
  26. package/skills/code-reviewer/code-reviewer-prompt.md +1 -1
  27. package/skills/contract-builder/SKILL.md +6 -6
  28. package/skills/need-explorer/SKILL.md +2 -2
  29. package/skills/release-archivist/SKILL.md +12 -12
  30. package/skills/release-archivist/references/closing-procedures.md +8 -8
  31. package/skills/spec-merger/SKILL.md +2 -2
  32. package/skills/spec-writer/SKILL.md +3 -3
  33. package/skills/workflow-orchestrator/references/s2-prd-prototype-loop.md +1 -1
  34. package/skills/workflow-orchestrator/references/s4-split-validate.md +1 -1
  35. package/skills/workflow-orchestrator/references/s5-monitoring.md +1 -1
  36. package/skills/workflow-start/SKILL.md +16 -16
  37. package/skills/workflow-start/references/routing-rules.md +17 -17
@@ -1,3 +1,3 @@
1
- # team-flow v0.25.1 | 阶段: {{state}} | 工作流: {{workflow}}
1
+ # team-flow v0.26.0 | 阶段: {{state}} | 工作流: {{workflow}}
2
2
  当前阶段允许的操作由 workflow-start 路由规则定义。
3
3
  禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "team-flow",
11
11
  "description": "8-state spec workflow + compound global compounding + architecture-design (4A/DDD) + local HTML prototype + product-level orchestration + bootstrap + e2e + session handoff + workflow feedback. 23 skills + 8 agents with embedded TDD, SDD, code review, debugging, delta spec sync, and design-system-driven prototyping.",
12
- "version": "0.25.1",
12
+ "version": "0.26.0",
13
13
  "source": "./",
14
14
  "author": {
15
15
  "name": "LT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.25.1",
3
+ "version": "0.26.0",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
5
5
  "source": "./",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.25.1",
3
+ "version": "0.26.0",
4
4
  "description": "Spec-first workflow that bridges OpenSpec-style planning and Superpowers-style execution discipline.",
5
5
  "author": {
6
6
  "name": "MageByte",
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Unified workflow plugin marketplace for Cursor (team-flow: team-flow + compound + architecture-design + prototype).",
8
- "version": "0.25.1"
8
+ "version": "0.26.0"
9
9
  },
10
10
  "plugins": [
11
11
  {
@@ -2,7 +2,7 @@
2
2
  "name": "team-flow",
3
3
  "displayName": "team-flow",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
5
- "version": "0.25.1",
5
+ "version": "0.26.0",
6
6
  "author": {
7
7
  "name": "LT",
8
8
  "url": "https://github.com/LT"
@@ -6,13 +6,13 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Unified workflow plugins and skills for AI coding agents (team-flow: team-flow + compound + architecture-design + prototype).",
9
- "version": "0.25.1"
9
+ "version": "0.26.0"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "team-flow",
14
14
  "description": "Unified workflow with planning artifacts, execution contracts, TDD, review gates, systematic debugging, delta spec sync, architecture-design, and local HTML prototyping.",
15
- "version": "0.25.1",
15
+ "version": "0.26.0",
16
16
  "source": ".",
17
17
  "author": {
18
18
  "name": "LT",
package/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ The format loosely follows Keep a Changelog.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.26.0] - 2026-07-29
10
+
11
+ ### Added(配置管理与 Skill 降级逻辑补强,4 项)
12
+
13
+ #### Config-loader 查找顺序优化
14
+ - **scripts/lib/config-loader.mjs**:`findConfigFile` 函数增加 `.team-flow/team-flow.config.json` 查找路径(优先于项目根目录)。新查找顺序:① `.team-flow/` → ② 根目录(兼容旧路径)→ ③ git 根 → ④ home
15
+
16
+ #### ce-brainstorm Phase 0.0 降级逻辑补强
17
+ - **skills/ce-brainstorm/SKILL.md Phase 0.0**:增加 tf CLI 可用性检查(`which tf`),不可用时走显式降级逻辑:询问用户(默认模板 or 自定义路径)→ 在 `.team-flow/templates/` 创建模板 → 维护配置到 `.team-flow/team-flow.config.json`
18
+ - **skills/ce-brainstorm/SKILL.md Phase 0.0**:增加 guardrail——明确禁止写入 skill 源码目录,项目级制品只在项目工作区创建/修改
19
+
20
+ ### Documentation(1 项)
21
+
22
+ - **docs/architecture-api-db-design-enhancement-v0.10.md**:新增第 32 章「配置管理与 Skill 降级逻辑补强」
23
+
9
24
  ## [0.25.1] - 2026-07-29
10
25
 
11
26
  ### Changed(SKILL.md 渐进式披露拆分,P1-9,3 项)
package/GEMINI.md CHANGED
@@ -8,7 +8,7 @@ The workflow is self-contained and does not require OpenSpec or Superpowers at r
8
8
 
9
9
 
10
10
  <!-- team-flow-phase-guard-start -->
11
- # team-flow v0.25.1 | 阶段: {{state}} | 工作流: {{workflow}}
11
+ # team-flow v0.26.0 | 阶段: {{state}} | 工作流: {{workflow}}
12
12
  当前阶段允许的操作由 workflow-start 路由规则定义。
13
13
  禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
14
14
  <!-- team-flow-phase-guard-end -->
package/INSTALL.md CHANGED
@@ -7,7 +7,7 @@
7
7
  - [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec) — 规划引擎(Schema 验证、Delta Spec、工件解析)
8
8
  - [obra/superpowers](https://github.com/obra/superpowers) — 执行纪律(TDD 铁律、SDD、系统化调试、代码审查)
9
9
 
10
- 当前发布版本:**v0.25.1**。
10
+ 当前发布版本:**v0.26.0**。
11
11
 
12
12
  ---
13
13
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # team-flow
2
2
 
3
- > 当前版本:`v0.25.1`
3
+ > 当前版本:`v0.26.0`
4
4
 
5
5
  > 统一插件:**team-flow**(spec 驱动开发)+ **compound-engineering 核心子集**(全局复利)+ **architecture-design**(4A+DDD 增量设计)+ **prototype**(本地 HTML 原型)+ **e2e**(AC 驱动 E2E)+ **workflow-orchestrator**(产品级编排)+ **workflow-bootstrap**(既有项目接入)。一次安装,七套能力协同。
6
6
 
package/docs/README_en.md CHANGED
@@ -126,7 +126,7 @@ npm install -g team-flow
126
126
 
127
127
  ### Version
128
128
 
129
- - Current: `v0.25.1`
129
+ - Current: `v0.26.0`
130
130
  - v0.9.1 highlights: DP-4 execution-mode recommendations, a portable runtime across 17 platforms, and a raw-package smoke with no plugin-root variable.
131
131
  - Self-contained — no OpenSpec or Superpowers runtime required
132
132
  - Upstream: [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec), [obra/superpowers](https://github.com/obra/superpowers)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
3
  "description": "Unified workflow plugin: team-flow (spec-driven dev) + compound-engineering core subset + architecture-design (4A/DDD) + prototype (local HTML). 17 skills, one install.",
4
- "version": "0.25.1",
4
+ "version": "0.26.0",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
- # v0.25.1: conditional injection — detects artifacts, injects workflow-start pointer
3
- msg="<EXTREMELY_IMPORTANT>\nYou have team-flow installed. Use /team-flow:workflow-start ONLY when you detect an active team-flow change in the workspace (look for \`.team-flow.yaml\`, \`proposal.md\`, \`execution-contract.md\`, or \`specs/\` directories), OR when the user explicitly invokes it by name. For ordinary coding tasks without team-flow artifacts, do NOT invoke workflow-start just handle the request directly.\n</EXTREMELY_IMPORTANT>"
2
+ # v0.26.0: conditional injection — detects artifacts, injects workflow-start pointer
3
+ msg="<EXTREMELY_IMPORTANT>\nYou have team-flow installed. Invoke /team-flow:workflow-start or /team-flow:workflow-orchestrator ONLY when active team-flow artifacts exist (\`.team-flow.yaml\`, \`proposal.md\`, \`execution-contract.md\`, \`specs/\`) or the user explicitly requests it. For ordinary coding tasks, do NOT invoke them.\n</EXTREMELY_IMPORTANT>\n<EXTREMELY_IMPORTANT>\n## Workspace Directory Rule\n\"Base directory for this skill\" = skill source location (read SKILL.md/references/ ONLY). User project = \`pwd\`. ALL project artifacts (changes/, prd/, docs/, .team-flow/, etc.) MUST operate under \`pwd\`, NEVER the skill base directory. Run \`pwd\` first in every skill execution.\n</EXTREMELY_IMPORTANT>"
4
4
 
5
5
  # Three platforms share the same message, only output format differs.
6
6
  if [ -n "${CURSOR_PLUGIN_ROOT:-}" ]; then
package/llms.txt CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Overview
4
4
  spec-superflow is a self-contained workflow integration plugin for Claude Code, Cursor, OpenAI Codex CLI/App, GitHub Copilot CLI, Gemini CLI, OpenCode, WorkBuddy, and Trae. It merges spec-driven planning artifacts (proposal, specs, design, tasks) with disciplined execution guardrails (TDD, review gates, controlled handoff) into one unified workflow.
5
5
 
6
- Current version: v0.25.1.
6
+ Current version: v0.26.0.
7
7
 
8
8
  ## Key Documents
9
9
  - README.md: Chinese homepage with full usage guide and FAQ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xulthekl/team-flow",
3
- "version": "0.25.1",
3
+ "version": "0.26.0",
4
4
  "description": "Unified plugin (23 skills + 8 agents) integrating team-flow, compound-engineering, architecture-design, prototype, design-system, workflow-orchestrator, workflow-bootstrap, e2e, session-handoff, workflow-feedback for multi-agent coding tools.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.25.1",
3
+ "version": "0.26.0",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking). 23 skills + 8 agents, one install.",
5
5
  "author": {
6
6
  "name": "LT"
@@ -68,11 +68,15 @@ function deepMerge(target, source) {
68
68
  }
69
69
 
70
70
  function findConfigFile(startDir) {
71
- // 1. Check startDir
71
+ // 1. Check .team-flow/ directory (preferred location)
72
+ const teamFlowDir = join(startDir, '.team-flow', 'team-flow.config.json');
73
+ if (existsSync(teamFlowDir)) return teamFlowDir;
74
+
75
+ // 2. Check startDir (legacy location, for backward compatibility)
72
76
  const direct = join(startDir, 'team-flow.config.json');
73
77
  if (existsSync(direct)) return direct;
74
78
 
75
- // 2. Check git root
79
+ // 3. Check git root
76
80
  try {
77
81
  const gitRoot = execFileSync('git', ['rev-parse', '--show-toplevel'], {
78
82
  cwd: startDir,
@@ -85,7 +89,7 @@ function findConfigFile(startDir) {
85
89
  // Not a git repo — skip
86
90
  }
87
91
 
88
- // 3. Check home directory
92
+ // 4. Check home directory
89
93
  const homePath = join(process.env.HOME || '', 'team-flow.config.json');
90
94
  if (existsSync(homePath)) return homePath;
91
95
 
@@ -49,7 +49,7 @@ Scientific method: form a single hypothesis ("I think X is the root cause becaus
49
49
 
50
50
  ### DP-5: Debug Escalation (3+ Failures)
51
51
 
52
- 3+ failed fixes = architectural problem. Each fix revealing new problems elsewhere = wrong architecture. Record: `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_5_result <decision>`. Discuss with user before attempting more fixes.
52
+ 3+ failed fixes = architectural problem. Each fix revealing new problems elsewhere = wrong architecture. Record: `npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_5_result <decision>`. Discuss with user before attempting more fixes.
53
53
 
54
54
  ## Red Flags — Return to Phase 1
55
55
 
@@ -15,18 +15,18 @@ When `architecture/sql/` exists, also read:
15
15
  - `architecture/sql/ddl/*.sql` — executable DDL scripts; reference directly for DB schema change tasks instead of hand-writing DDL
16
16
  - `architecture/sql/migration/*.sql` — data migration scripts; execute as-is for data transformation tasks
17
17
 
18
- Check workflow mode first: `npx --yes --package @xulthekl/team-flow@0.25.1 tf state get <change-dir> workflow`. If `tweak` → direct edit mode. If `hotfix` or `full` → standard contract-first discipline.
18
+ Check workflow mode first: `npx --yes --package @xulthekl/team-flow@0.26.0 tf state get <change-dir> workflow`. If `tweak` → direct edit mode. If `hotfix` or `full` → standard contract-first discipline.
19
19
 
20
20
  Branch/worktree preflight before ANY implementation edit (mandatory — do not skip):
21
21
  1. Run the isolation check:
22
22
  ```bash
23
- npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate <change-dir>
23
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf isolate <change-dir>
24
24
  ```
25
25
  This script enforces git isolation: if you are on `main`/`master` it creates a
26
26
  git worktree (preferred) or a new branch, and exits non-zero if it cannot and you
27
27
  have not approved `--force`.
28
- 2. If `npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate` exits non-zero: STOP. Do not edit `main`/`master` in place.
29
- Ask the user for explicit approval (and re-run with `npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate <change-dir> --force`
28
+ 2. If `npx --yes --package @xulthekl/team-flow@0.26.0 tf isolate` exits non-zero: STOP. Do not edit `main`/`master` in place.
29
+ Ask the user for explicit approval (and re-run with `npx --yes --package @xulthekl/team-flow@0.26.0 tf isolate <change-dir> --force`
30
30
  only after they approve).
31
31
  3. If it succeeds, report the chosen branch/worktree and make all implementation
32
32
  edits there.
@@ -52,15 +52,15 @@ Return to `specifying` or `bridging` if: new behavior appears, interfaces change
52
52
  For `full`/`hotfix`, generate proposed waves from the approved contract, then use the recommendation as a decision aid rather than silently defaulting a mode:
53
53
 
54
54
  ```bash
55
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend <change-dir> \
55
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution recommend <change-dir> \
56
56
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>] --json
57
57
  # Show every available mode, the observed facts, and the recommendation to the user.
58
58
  # The command writes a receipt tied to the artifacts, contract, and waves. After the user chooses, record that explicit confirmation:
59
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan <change-dir> \
59
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan <change-dir> \
60
60
  --mode <selected-mode> --confirm --reason "user-selected execution mode" \
61
61
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>]
62
62
  # Add --acknowledge-recommendation when the selection differs from the recommendation.
63
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json
63
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json
64
64
  ```
65
65
 
66
66
  The optional fourth `--wave` segment names prerequisite wave IDs. `execution show --json` reports `current`, plus each wave's `depends_on`, `receipt`, `blockers`, `retryable`, and `eligible` status. A wave with `retryable: true` has a current `fail` receipt and is eligible only for its focused repair and re-review; its dependents remain blocked until its replacement `pass` receipt. Report the saved plan revision, selected mode, ordered waves, dependencies, and whether every `parallel` wave can actually be dispatched concurrently on the current platform. If concurrency is unavailable, state the capability and reason plainly; retain the planned `parallel` strategy and do not silently execute it as a serial or Batch Inline plan.
@@ -73,7 +73,7 @@ The recommendation uses task count, configured `execution.inlineThreshold`, and
73
73
  | **Inline** | Recommended for a single sequential task; always available for a user-confirmed choice |
74
74
  | **Batch Inline** | Recommended for a bounded sequential batch; it remains serial and is never presented as parallel |
75
75
 
76
- Do not transition to `executing` until `execution show` reports `current: true` and the phase guard passes. A revised plan must repeat `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend` and use `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution revise --confirm`; it creates a new revision and invalidates receipts from the prior revision.
76
+ Do not transition to `executing` until `execution show` reports `current: true` and the phase guard passes. A revised plan must repeat `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution recommend` and use `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution revise --confirm`; it creates a new revision and invalidates receipts from the prior revision.
77
77
 
78
78
  ## Batch Inline Execution
79
79
 
@@ -88,21 +88,21 @@ Boundaries: if any task touches >1 module, involves schema/API/config changes, o
88
88
  For full/hotfix by default. Dispatch according to the persisted plan, review each planned wave, and run a final broad review after all waves.
89
89
 
90
90
  ### Planned-Wave Loop
91
- 1. Read the current plan with `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json`; only waves shown with `current: true` and `eligible: true` may start. A `retryable: true` wave may only be repaired and re-reviewed; do not dispatch its dependents until its replacement receipt is `pass`. The CLI encodes dependencies in `--wave <id>:<strategy>:<tasks>[:<depends-on,...>]` and rejects a review receipt for a wave whose prerequisites lack current `pass` receipts.
91
+ 1. Read the current plan with `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json`; only waves shown with `current: true` and `eligible: true` may start. A `retryable: true` wave may only be repaired and re-reviewed; do not dispatch its dependents until its replacement receipt is `pass`. The CLI encodes dependencies in `--wave <id>:<strategy>:<tasks>[:<depends-on,...>]` and rejects a review receipt for a wave whose prerequisites lack current `pass` receipts.
92
92
  2. A `parallel` wave may dispatch independent tasks simultaneously only when the platform supports concurrent dispatch. If it does not, disclose the unavailable capability and execute the same wave one task at a time without changing its stored strategy.
93
93
  3. A `serial` wave dispatches one task at a time in listed order.
94
94
  4. After every wave, write a non-empty persisted regular-file review report (separate from the implementer's report), then record exactly one receipt that names that review report:
95
95
  ```bash
96
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> \
96
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> \
97
97
  --wave <wave-id> --base <sha> --head <sha> --report <review-report-path> --verdict <pass|fail>
98
98
  ```
99
99
  Do not begin a dependent wave until its predecessor receipt is `pass`.
100
100
  5. Critical/Important findings require a `fail` receipt, a focused repair, re-review, then a replacement `pass` receipt. Never advance or close with a missing or failed receipt.
101
101
 
102
102
  ### Per-Task Loop
103
- 1. **Dispatch implementer**: Load the template with `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read skills/build-executor/implementer-prompt.md`. Extract task brief with `scripts/task-brief PLAN_FILE N`. Include: where task fits, brief path, interfaces from prior tasks, report file path.
103
+ 1. **Dispatch implementer**: Load the template with `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime asset read skills/build-executor/implementer-prompt.md`. Extract task brief with `scripts/task-brief PLAN_FILE N`. Include: where task fits, brief path, interfaces from prior tasks, report file path.
104
104
  2. **Handle response**: DONE → generate review package + dispatch reviewer. DONE_WITH_CONCERNS → assess. NEEDS_CONTEXT → provide context. BLOCKED → re-dispatch with better model or escalate.
105
- 3. **Review**: Load `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read skills/build-executor/task-reviewer-prompt.md`. Reviewer returns spec compliance + code quality verdicts with the wave ID, git range, report path, and `pass`/`fail` receipt command.
105
+ 3. **Review**: Load `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime asset read skills/build-executor/task-reviewer-prompt.md`. Reviewer returns spec compliance + code quality verdicts with the wave ID, git range, report path, and `pass`/`fail` receipt command.
106
106
  4. **Fix**: If Critical or Important issues, write the `fail` receipt, dispatch fix subagent, re-review, and write the replacement `pass` receipt.
107
107
  5. **Mark complete**: Append to `.superpowers/sdd/progress.md`: `Task N: complete (commits <base7>..<head7>, review clean)`
108
108
 
@@ -110,7 +110,7 @@ For full/hotfix by default. Dispatch according to the persisted plan, review eac
110
110
  Use the configured profile that matches the task role. Resolve it before dispatch:
111
111
 
112
112
  ```bash
113
- npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --resolve-model <profile>
113
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime config --resolve-model <profile>
114
114
  ```
115
115
 
116
116
  | Profile | Role |
@@ -123,11 +123,11 @@ npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --resolve-model
123
123
  For platforms whose dispatch supports a `model` field, explicitly pass the resolved `model` value. If the result is `configured: false`, automatic selection is unavailable: do not invent a provider model and do not bypass the existing requirement to specify `model` explicitly. Resolution only reads configuration; it does not switch models.
124
124
 
125
125
  ### Progress Ledger
126
- Track in `.superpowers/sdd/progress.md`. Check for existing ledger — completed tasks are done. After each batch: `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> batches_completed <N>`.
126
+ Track in `.superpowers/sdd/progress.md`. Check for existing ledger — completed tasks are done. After each batch: `npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> batches_completed <N>`.
127
127
 
128
128
  ## Inline Execution Mode
129
129
 
130
- Only after a user-confirmed `inline` selection is recorded by `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan --confirm`; a non-recommended selection also records `--acknowledge-recommendation`. Executes in the current session and still writes one review receipt per planned wave.
130
+ Only after a user-confirmed `inline` selection is recorded by `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan --confirm`; a non-recommended selection also records `--acknowledge-recommendation`. Executes in the current session and still writes one review receipt per planned wave.
131
131
 
132
132
  Per-task: extract brief → write failing test → confirm failure → implement → confirm green → checkpoint review (done-when criteria, SHALL/MUST verification) → commit → save a task-level recovery checkpoint when another task remains → append to progress ledger.
133
133
 
@@ -135,7 +135,7 @@ After a task is committed and reviewed, when another task remains, save the
135
135
  recovery context with real evidence:
136
136
 
137
137
  ```bash
138
- npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint save <change-dir> \
138
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf checkpoint save <change-dir> \
139
139
  --task <completed-task-id> --next "<next task>" --completed "<completed work>" \
140
140
  --verification "<verification report path>" --review "<review report path>" \
141
141
  --risk "<open risk or None>" --commit-start <base-sha> --commit-end <head-sha>
@@ -143,7 +143,7 @@ npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint save <change-dir> \
143
143
 
144
144
  This augments `.superpowers/sdd/progress.md`; it does not replace the progress
145
145
  ledger or add a new core workflow state. Do not claim a checkpoint is current
146
- when `npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint list` reports it as stale.
146
+ when `npx --yes --package @xulthekl/team-flow@0.26.0 tf checkpoint list` reports it as stale.
147
147
 
148
148
  If task hits BLOCKED (3+ fix failures or changes outside declared scope), escalate to SDD.
149
149
 
@@ -153,8 +153,8 @@ Skip TDD. Apply changes directly. Verify file integrity (exists, non-empty, vali
153
153
 
154
154
  ## DP Records
155
155
 
156
- DP-4 is written by `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan`; do not write it with raw `state set`.
157
- DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_5_result "<resolution>"` + timestamp.
156
+ DP-4 is written by `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan`; do not write it with raw `state set`.
157
+ DP-5 (debug escalation): `npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_5_result "<resolution>"` + timestamp.
158
158
 
159
159
  ## Completion Standard
160
160
 
@@ -22,7 +22,7 @@ Subagent (general-purpose):
22
22
  ## Planned Wave
23
23
 
24
24
  You are assigned to planned wave [WAVE_ID] with strategy [WAVE_STRATEGY].
25
- Read `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json` before editing. Do not start
25
+ Read `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json` before editing. Do not start
26
26
  unless all declared dependencies have `pass` review receipts. A `parallel`
27
27
  label permits concurrent dispatch only when the controller confirms the
28
28
  platform supports it; never change the saved wave strategy yourself.
@@ -7,14 +7,14 @@
7
7
  For `full`/`hotfix`, generate proposed waves from the approved contract, then use the recommendation as a decision aid:
8
8
 
9
9
  ```bash
10
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend <change-dir> \
10
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution recommend <change-dir> \
11
11
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>] --json
12
12
  # Show every available mode, the observed facts, and the recommendation to the user.
13
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan <change-dir> \
13
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan <change-dir> \
14
14
  --mode <selected-mode> --confirm --reason "user-selected execution mode" \
15
15
  --wave <wave-id>:<parallel|serial>:<task,...>[:<depends-on,...>]
16
16
  # Add --acknowledge-recommendation when the selection differs from the recommendation.
17
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json
17
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json
18
18
  ```
19
19
 
20
20
  The optional fourth `--wave` segment names prerequisite wave IDs. `execution show --json` reports `current`, plus each wave's `depends_on`, `receipt`, `blockers`, `retryable`, and `eligible` status.
@@ -37,7 +37,7 @@ Dispatch according to the persisted plan, review each planned wave, and run a fi
37
37
  3. A `serial` wave dispatches one task at a time in listed order.
38
38
  4. After every wave, write a review report, then record one receipt:
39
39
  ```bash
40
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> \
40
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> \
41
41
  --wave <wave-id> --base <sha> --head <sha> --report <review-report-path> --verdict <pass|fail>
42
42
  ```
43
43
  5. Critical/Important findings require a `fail` receipt, focused repair, re-review, then replacement `pass` receipt.
@@ -66,7 +66,7 @@ Per-task: extract brief → write failing test → confirm failure → implement
66
66
  ## Model Selection
67
67
 
68
68
  ```bash
69
- npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --resolve-model <profile>
69
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime config --resolve-model <profile>
70
70
  ```
71
71
 
72
72
  | Profile | Role |
@@ -79,7 +79,7 @@ npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --resolve-model
79
79
  ## Recovery Checkpoint
80
80
 
81
81
  ```bash
82
- npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint save <change-dir> \
82
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf checkpoint save <change-dir> \
83
83
  --task <completed-task-id> --next "<next task>" --completed "<completed work>" \
84
84
  --verification "<verification report path>" --review "<review report path>" \
85
85
  --risk "<open risk or None>" --commit-start <base-sha> --commit-end <head-sha>
@@ -146,7 +146,7 @@ Subagent (general-purpose):
146
146
  command for the controller:
147
147
 
148
148
  ```bash
149
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> --wave [WAVE_ID] --base [BASE_SHA] --head [HEAD_SHA] --report [REVIEW_REPORT_FILE] --verdict <pass|fail>
149
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> --wave [WAVE_ID] --base [BASE_SHA] --head [HEAD_SHA] --report [REVIEW_REPORT_FILE] --verdict <pass|fail>
150
150
  ```
151
151
 
152
152
  Use `fail` for any Critical/Important finding. A repair must be re-reviewed
@@ -62,14 +62,29 @@ If no feature description was provided, ask the user. If `docs/ideation/*.md` ex
62
62
 
63
63
  #### 0.0 Resolve Output Mode + PRD Template
64
64
 
65
+ > **⛔ GUARDRAIL:禁止写入 skill 源码目录**
66
+ >
67
+ > 项目级制品(PRD 模板、配置文件等)只在**项目工作区**创建/修改:
68
+ > - 模板文件:`.team-flow/templates/`
69
+ > - 配置文件:`.team-flow/team-flow.config.json`
70
+ >
71
+ > **绝不写入 skill 源码目录**(`skills/ce-brainstorm/` 等)。
72
+
65
73
  Determine `OUTPUT_FORMAT` (md or html). For the full 5-level precedence, read `references/output-format.md`.
66
74
 
67
75
  **Resolve PRD template — MANDATORY STEP, DO NOT SKIP.**
68
76
 
69
- Run `tf runtime config --get prd.template` to get the configured template (defaults to `templates/prd.md`).
70
-
71
- - **Value differs from `templates/prd.md`**: validate the file exists at project root. If valid, use it. If not, fall to user-choice below.
72
- - **Otherwise**: **YOU MUST ask the user** via the platform's blocking question tool: default template or custom path? Validate custom paths exist before writing config via `tf config --set prd.template=<path>`.
77
+ 1. **检查 tf CLI 是否可用**:运行 `which tf`
78
+ - ✅ 可用:继续执行 `tf runtime config --get prd.template`
79
+ - 不可用:走降级逻辑(见下方)
80
+
81
+ 2. **降级逻辑(tf 不可用时)**:
82
+ - 通知用户:`tf` 命令不可用,将使用默认配置
83
+ - **询问用户**:默认模板 or 自定义路径?
84
+ - 默认模板:使用 skill 内置 `templates/prd.md`
85
+ - 自定义路径:验证文件存在,在项目工作区记录配置
86
+ - 在 `.team-flow/templates/` 目录创建/使用模板(绝不在 skill 目录写入)
87
+ - **维护配置文件**:在 `.team-flow/team-flow.config.json` 中记录配置(如文件不存在则创建)
73
88
 
74
89
  Built-in `templates/prd.md` is relative to the skill's base directory. Custom paths are relative to project root.
75
90
 
@@ -16,7 +16,7 @@ Two responsibilities: requesting review (dispatching a reviewer subagent) and re
16
16
  1. Get SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
17
17
  2. Dispatch `general-purpose` subagent using template at `skills/code-reviewer/code-reviewer-prompt.md`
18
18
  3. Fill placeholders: `[DESCRIPTION]` (what was built), `[PLAN_OR_REQUIREMENTS]` (contract/spec reference), `[BASE_SHA]`, `[HEAD_SHA]`, `[WAVE_ID]`, and a distinct `[REVIEW_REPORT_FILE]`.
19
- 4. Require the reviewer to write a non-empty persisted review report at `[REVIEW_REPORT_FILE]`, then record that exact path in the wave receipt: `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> --wave <id> --base <sha> --head <sha> --report <review-report-path> --verdict <pass|fail>`.
19
+ 4. Require the reviewer to write a non-empty persisted review report at `[REVIEW_REPORT_FILE]`, then record that exact path in the wave receipt: `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> --wave <id> --base <sha> --head <sha> --report <review-report-path> --verdict <pass|fail>`.
20
20
  5. Act on feedback: Critical/Important findings require a `fail` receipt, focused repair, re-review, and replacement `pass` receipt before a dependent wave or closing can proceed. Note Minor for later, push back with reasoning if reviewer is wrong.
21
21
 
22
22
  ### Minimality And Scope
@@ -76,7 +76,7 @@ Suggestion breaks existing functionality, reviewer lacks context, violates YAGNI
76
76
  | Performative agreement | State requirement or just act |
77
77
  | Blind implementation | Verify against codebase first |
78
78
  | Batch without testing | One at a time, test each |
79
- | Proceeding without a wave receipt | Record `pass`/`fail` via `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review` before the next dependent wave |
79
+ | Proceeding without a wave receipt | Record `pass`/`fail` via `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review` before the next dependent wave |
80
80
  | Assuming reviewer is right | Check if breaks things |
81
81
  | Avoiding pushback | Technical correctness > comfort |
82
82
  | Partial implementation | Clarify all items first |
@@ -93,7 +93,7 @@ Subagent (general-purpose):
93
93
  report path. End with the exact receipt command:
94
94
 
95
95
  ```bash
96
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> --wave [WAVE_ID] --base [BASE_SHA] --head [HEAD_SHA] --report [REVIEW_REPORT_FILE] --verdict <pass|fail>
96
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> --wave [WAVE_ID] --base [BASE_SHA] --head [HEAD_SHA] --report [REVIEW_REPORT_FILE] --verdict <pass|fail>
97
97
  ```
98
98
 
99
99
  Use `fail` when any Critical or Important finding remains. A repair needs
@@ -5,9 +5,9 @@ description: Convert approved planning artifacts into an execution contract. Inv
5
5
 
6
6
  # Contract Builder
7
7
 
8
- Converts planning artifacts into a single execution handshake: `execution-contract.md`. Load the baseline with `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read templates/execution-contract.md`.
8
+ Converts planning artifacts into a single execution handshake: `execution-contract.md`. Load the baseline with `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime asset read templates/execution-contract.md`.
9
9
 
10
- Read before generating: `proposal.md`, `specs/`, `design.md`, `tasks.md`, then load `docs/artifact-contract.md` with `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read docs/artifact-contract.md`.
10
+ Read before generating: `proposal.md`, `specs/`, `design.md`, `tasks.md`, then load `docs/artifact-contract.md` with `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime asset read docs/artifact-contract.md`.
11
11
 
12
12
  **Architecture Design Outputs (v0.9 §26)**: 若 `architecture/` 目录存在,同时读取 `architecture/architecture.md` / `database.md` / `api.md`,作为执行契约的架构约束补充输入——确保 execution-contract.md 的 Implementation Constraints 段包含架构设计的关键约束(聚合边界/CQRS 分流/API 契约/schema 变更)。`architecture/` 不存在时跳过。
13
13
 
@@ -38,8 +38,8 @@ Must make obvious: approved behavior, out-of-scope, constraints, batches, test o
38
38
 
39
39
  After drafting: summarize handoff rules, identify ambiguity, flag unmapped requirements, ask user to approve explicitly. After approval:
40
40
  ```bash
41
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_3_result "approved: <summary>"
42
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_3_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
41
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_3_result "approved: <summary>"
42
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_3_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
43
43
  ```
44
44
  DP-3 is a hard gate — no implementation without this record.
45
45
 
@@ -60,9 +60,9 @@ Generate minimal contract: Intent Lock (one sentence), Task List (numbered), App
60
60
 
61
61
  ## Post-Generation
62
62
 
63
- Run `npx --yes --package @xulthekl/team-flow@0.25.1 tf state init <change-dir>` to create `.team-flow.yaml` with hashes.
63
+ Run `npx --yes --package @xulthekl/team-flow@0.26.0 tf state init <change-dir>` to create `.team-flow.yaml` with hashes.
64
64
 
65
- For hotfix, after writing the minimal contract, run `npx --yes --package @xulthekl/team-flow@0.25.1 tf state init <change-dir>` or `npx --yes --package @xulthekl/team-flow@0.25.1 tf state rebuild <change-dir>` so `contract_hash` is recorded. DP-3 remains mandatory before build.
65
+ For hotfix, after writing the minimal contract, run `npx --yes --package @xulthekl/team-flow@0.26.0 tf state init <change-dir>` or `npx --yes --package @xulthekl/team-flow@0.26.0 tf state rebuild <change-dir>` so `contract_hash` is recorded. DP-3 remains mandatory before build.
66
66
 
67
67
  ## Exception Handling
68
68
 
@@ -41,8 +41,8 @@ Restate what you heard: "Here's what I'm hearing: [problem, scope, non-goals, su
41
41
 
42
42
  After user confirms the summary:
43
43
  ```bash
44
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_1_result "confirmed: <one-line summary>"
45
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_1_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
44
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_1_result "confirmed: <one-line summary>"
45
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_1_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
46
46
  ```
47
47
  DP-1 confirms scope, non-goals, and success criteria before artifact creation.
48
48
 
@@ -72,12 +72,12 @@ If an `e2e/` suite exists for the change, fold its report into verification (see
72
72
  - Scope added without artifact updates?
73
73
  - Unresolved blockers or known risks?
74
74
  - Delta specs exist that need merging?
75
- - Run `npx --yes --package @xulthekl/team-flow@0.25.1 tf audit <change-dir>` — include `decision-point-audit.md` in archive
75
+ - Run `npx --yes --package @xulthekl/team-flow@0.26.0 tf audit <change-dir>` — include `decision-point-audit.md` in archive
76
76
 
77
77
  ### DP-6 (Verification Outcome)
78
78
  ```bash
79
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_6_result "<pass|conditional|fail>: <summary>"
80
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_6_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
79
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_6_result "<pass|conditional|fail>: <summary>"
80
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_6_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
81
81
  ```
82
82
  If FAIL, do NOT proceed to DP-7. Route back or ask about abandonment.
83
83
 
@@ -85,13 +85,13 @@ After recording a PASS outcome, also record it as the verification gate so the
85
85
  `executing → closing` transition is allowed (the guard accepts either
86
86
  `test_result: pass` or a `dp_6_result` starting with `pass`):
87
87
  ```bash
88
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> test_result pass
88
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> test_result pass
89
89
  ```
90
90
 
91
91
  ### DP-7 (Archive Confirmation)
92
92
  ```bash
93
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_7_result "confirmed: <archive summary>"
94
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_7_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
93
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_7_result "confirmed: <archive summary>"
94
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_7_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
95
95
  ```
96
96
  Verify DP-0 through DP-6 are recorded before DP-7.
97
97
 
@@ -101,14 +101,14 @@ If implementation diverged from the contract, return to `bridging` before closur
101
101
 
102
102
  ## Post-Verification
103
103
 
104
- Run `npx --yes --package @xulthekl/team-flow@0.25.1 tf state transition <change-dir> closing`. If delta specs exist, route to `spec-merger`.
104
+ Run `npx --yes --package @xulthekl/team-flow@0.26.0 tf state transition <change-dir> closing`. If delta specs exist, route to `spec-merger`.
105
105
 
106
106
  ### Architecture Merge (v0.10 §28-§31) — MUST run first
107
107
 
108
108
  Merge change-level architecture artifacts to the global `docs/architecture/` baseline **before** any other post-verification step:
109
109
 
110
110
  ```bash
111
- npx --yes --package @xulthekl/team-flow@0.25.1 tf arch-merge <change-dir>
111
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf arch-merge <change-dir>
112
112
  ```
113
113
 
114
114
  This merges `architecture/{architecture,database,api}.md` and `architecture/sql/` into the global architecture docs. Skip silently when `architecture/` does not exist (architecture-design was `skipped`).
@@ -120,7 +120,7 @@ This merges `architecture/{architecture,database,api}.md` and `architecture/sql/
120
120
  After `arch-merge` completes, run prototype-sync to merge UX deltas back to the global prototype:
121
121
 
122
122
  ```bash
123
- npx --yes --package @xulthekl/team-flow@0.25.1 tf prototype-sync <change-dir>
123
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf prototype-sync <change-dir>
124
124
  ```
125
125
 
126
126
  **Write-back order (mandatory)**: `arch-merge` → `prototype-sync` → `compound promotion` must be executed **sequentially** within the same change closing. Do not run them in parallel — the global `docs/architecture/` and `prototype/` must not be in a half-updated state when the next change grounds on them.
@@ -134,7 +134,7 @@ If `prototype-sync` reports conflicts, list them in the closing summary and flag
134
134
  During closing, promote change-level learnings to the global solutions library:
135
135
 
136
136
  ```bash
137
- npx --yes --package @xulthekl/team-flow@0.25.1 tf solutions promote <change-dir>
137
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf solutions promote <change-dir>
138
138
  ```
139
139
 
140
140
  This checks `specs/<cap>/learnings.md` for entries meeting promotion criteria:
@@ -154,7 +154,7 @@ Before finalizing the closing, check if this change produced any learnable momen
154
154
 
155
155
  If any of the above occurred, capture the learning:
156
156
  ```bash
157
- npx --yes --package @xulthekl/team-flow@0.25.1 tf solutions capture \
157
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf solutions capture \
158
158
  --phase cross-phase --domain <domain> --type pitfall \
159
159
  --severity medium --summary "<what happened and how to prevent it>"
160
160
  ```
@@ -176,6 +176,6 @@ Verify files exist and are non-empty, run `node --check` on code files, skip 5-s
176
176
  ## Exception Handling
177
177
 
178
178
  - **Parse failures**: Report exact file and section
179
- - **Missing files**: If audit can't generate, run `npx --yes --package @xulthekl/team-flow@0.25.1 tf audit` manually
179
+ - **Missing files**: If audit can't generate, run `npx --yes --package @xulthekl/team-flow@0.26.0 tf audit` manually
180
180
  - **User interruption**: Re-run verification from the beginning on resume
181
181
  - **DP gaps**: Flag missing DPs during DP-6; ask user whether to proceed or return
@@ -7,7 +7,7 @@
7
7
  After `arch-merge` completes, run prototype-sync to merge UX deltas back to the global prototype:
8
8
 
9
9
  ```bash
10
- npx --yes --package @xulthekl/team-flow@0.25.1 tf prototype-sync <change-dir>
10
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf prototype-sync <change-dir>
11
11
  ```
12
12
 
13
13
  **Write-back order (mandatory)**: `arch-merge` → `prototype-sync` → `compound promotion` must be executed **sequentially** within the same change closing. Do not run them in parallel — the global `docs/architecture/` and `prototype/` must not be in a half-updated state when the next change grounds on them.
@@ -21,7 +21,7 @@ If `prototype-sync` reports conflicts, list them in the closing summary and flag
21
21
  During closing, promote change-level learnings to the global solutions library:
22
22
 
23
23
  ```bash
24
- npx --yes --package @xulthekl/team-flow@0.25.1 tf solutions promote <change-dir>
24
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf solutions promote <change-dir>
25
25
  ```
26
26
 
27
27
  Promotion criteria:
@@ -41,7 +41,7 @@ Before finalizing the closing, check if this change produced any learnable momen
41
41
 
42
42
  If any occurred, capture the learning:
43
43
  ```bash
44
- npx --yes --package @xulthekl/team-flow@0.25.1 tf solutions capture \
44
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf solutions capture \
45
45
  --phase cross-phase --domain <domain> --type pitfall \
46
46
  --severity medium --summary "<what happened and how to prevent it>"
47
47
  ```
@@ -51,22 +51,22 @@ Advisory — skip silently if no learnable moments detected.
51
51
  ## DP-6 (Verification Outcome)
52
52
 
53
53
  ```bash
54
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_6_result "<pass|conditional|fail>: <summary>"
55
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_6_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
54
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_6_result "<pass|conditional|fail>: <summary>"
55
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_6_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
56
56
  ```
57
57
 
58
58
  If FAIL, do NOT proceed to DP-7. Route back or ask about abandonment.
59
59
 
60
60
  After PASS, also record the verification gate:
61
61
  ```bash
62
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> test_result pass
62
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> test_result pass
63
63
  ```
64
64
 
65
65
  ## DP-7 (Archive Confirmation)
66
66
 
67
67
  ```bash
68
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_7_result "confirmed: <archive summary>"
69
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_7_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
68
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_7_result "confirmed: <archive summary>"
69
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_7_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
70
70
  ```
71
71
 
72
72
  Verify DP-0 through DP-6 are recorded before DP-7.
@@ -10,7 +10,7 @@ After a change completes, delta specs (ADDED/MODIFIED/REMOVED/RENAMED) must be m
10
10
  ## Pre-Flight Checks
11
11
 
12
12
  ### Conflict Detection
13
- Run `npx --yes --package @xulthekl/team-flow@0.25.1 tf sync <change-dir>`. If conflicts are detected (same requirement modified by multiple changes), present the conflict list to the user for resolution order.
13
+ Run `npx --yes --package @xulthekl/team-flow@0.26.0 tf sync <change-dir>`. If conflicts are detected (same requirement modified by multiple changes), present the conflict list to the user for resolution order.
14
14
 
15
15
  ### Abandoned Change Guard
16
16
  Check if the change is `abandoned`. If so → STOP: "Abandoned changes cannot be synced. Delta specs are preserved for reference but must not be merged."
@@ -55,7 +55,7 @@ Output sync report table: Capability, ADDED/MODIFIED/REMOVED/RENAMED counts, Sta
55
55
  2. Change folder (including deltas) remains for traceability.
56
56
  3. Record that merging is complete so the `executing → closing` guard allows closure:
57
57
  ```bash
58
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> spec_merged true
58
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> spec_merged true
59
59
  ```
60
60
  (If the change had no delta sections, still set `spec_merged true` — there was nothing to merge.)
61
61
 
@@ -55,7 +55,7 @@ Read `docs/solutions/INDEX.md` if it exists. Filter entries where `phase = spec
55
55
 
56
56
  ## Config Check
57
57
 
58
- Run: `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime config --get artifacts.order` — generate in configured order (default: proposal → specs → design → tasks). Run with `artifacts.skip` — skip any listed artifacts.
58
+ Run: `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime config --get artifacts.order` — generate in configured order (default: proposal → specs → design → tasks). Run with `artifacts.skip` — skip any listed artifacts.
59
59
 
60
60
  ## Artifact Roles
61
61
 
@@ -135,8 +135,8 @@ Generate one at a time. Confirm each before next. This prevents scope drift —
135
135
 
136
136
  Present summary of all 4 artifacts (2-3 sentences each). Ask user for adjustments. After approval:
137
137
  ```bash
138
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_2_result "approved: <summary>"
139
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_2_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
138
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_2_result "approved: <summary>"
139
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_2_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
140
140
  ```
141
141
 
142
142
  ## Handoff Rule
@@ -54,7 +54,7 @@
54
54
  检测可复利时刻(需求矛盾、原型返工、自动评审发现不一致并修正等)。每次自动评审发现不一致并修正后触发:
55
55
 
56
56
  ```bash
57
- npx --yes --package @xulthekl/team-flow@0.25.1 tf solutions capture --phase prd --domain <domain> --type pitfall --severity <sev> --summary "<summary>"
57
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf solutions capture --phase prd --domain <domain> --type pitfall --severity <sev> --summary "<summary>"
58
58
  ```
59
59
 
60
60
  ### 6. 反馈环路检查点
@@ -38,7 +38,7 @@ verdict = FAIL → 必须回退 S3 调整拆分后重新审计,不可绕过直
38
38
 
39
39
  ```bash
40
40
  mkdir -p changes/<change-name>
41
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state init changes/<change-name>
41
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state init changes/<change-name>
42
42
  ```
43
43
 
44
44
  > ⚠️ **路径约束**:change 脚手架目录固定为项目根 `changes/<change-name>/`。
@@ -34,7 +34,7 @@
34
34
  change closing 时检查经验晋升(change 内经验 → 产品级经验):
35
35
 
36
36
  ```bash
37
- npx --yes --package @xulthekl/team-flow@0.25.1 tf solutions promote <change-dir>
37
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf solutions promote <change-dir>
38
38
  ```
39
39
 
40
40
  ### 4. 动态重规划触发
@@ -15,14 +15,14 @@ Do NOT invoke for: general coding tasks outside team-flow changes, casual questi
15
15
 
16
16
  ## States
17
17
 
18
- `exploring` → `specifying` → `bridging` → `approved-for-build` → `executing` → `closing`, with `debugging` side-path from `executing`, and `abandoned` as terminal. If a transition is ambiguous, run `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime asset read docs/state-machine.md`.
18
+ `exploring` → `specifying` → `bridging` → `approved-for-build` → `executing` → `closing`, with `debugging` side-path from `executing`, and `abandoned` as terminal. If a transition is ambiguous, run `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime asset read docs/state-machine.md`.
19
19
 
20
20
  ## Initialization
21
21
 
22
- 1. **Update check**: Run `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime check-update`. Exit 0 → continue. Exit 1 → non-blocking upgrade reminder. Exit 2 → skip.
22
+ 1. **Update check**: Run `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime check-update`. Exit 0 → continue. Exit 1 → non-blocking upgrade reminder. Exit 2 → skip.
23
23
  2. **Inspect change folder**: Check for `proposal.md`, `specs/`, `design.md`, `tasks.md`, `execution-contract.md`. Answer: Is the change fuzzy? Artifacts missing/unstable? Contract exist? User approved contract? Execution in progress or blocked? In verification/wrap-up?
24
- 3. **Overlay recovery scan**: Run `npx --yes --package @xulthekl/team-flow@0.25.1 tf handoff list <change-dir> --json` and `npx --yes --package @xulthekl/team-flow@0.25.1 tf checkpoint list <change-dir> --json`. A `result-ready` handoff requires explicit review and `npx --yes --package @xulthekl/team-flow@0.25.1 tf handoff resolve` before resuming the affected work. An `active` handoff is non-blocking side work. Show a non-stale checkpoint as recovery context; show a stale checkpoint only as historical evidence.
25
- 4. **Execution-control recovery scan**: For `approved-for-build`, `executing`, `debugging`, or `closing`, run `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json`. Treat only `current: true` plus `waves[].eligible: true` as permission to start a wave; report plan revision, mode, next eligible wave, and every wave's receipt/blockers. A missing, invalid, or stale plan blocks implementation and routes to `build-executor`; do not infer progress from chat history.
24
+ 3. **Overlay recovery scan**: Run `npx --yes --package @xulthekl/team-flow@0.26.0 tf handoff list <change-dir> --json` and `npx --yes --package @xulthekl/team-flow@0.26.0 tf checkpoint list <change-dir> --json`. A `result-ready` handoff requires explicit review and `npx --yes --package @xulthekl/team-flow@0.26.0 tf handoff resolve` before resuming the affected work. An `active` handoff is non-blocking side work. Show a non-stale checkpoint as recovery context; show a stale checkpoint only as historical evidence.
25
+ 4. **Execution-control recovery scan**: For `approved-for-build`, `executing`, `debugging`, or `closing`, run `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json`. Treat only `current: true` plus `waves[].eligible: true` as permission to start a wave; report plan revision, mode, next eligible wave, and every wave's receipt/blockers. A missing, invalid, or stale plan blocks implementation and routes to `build-executor`; do not infer progress from chat history.
26
26
 
27
27
  ## DP-0: User Confirmation Gate
28
28
 
@@ -36,17 +36,17 @@ Ask (manual path): change name + one-sentence intent, known constraints, related
36
36
 
37
37
  After confirmation:
38
38
  ```bash
39
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_decisions "<summary>"
40
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_result confirmed
41
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_confirmed true
42
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
39
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_decisions "<summary>"
40
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_result confirmed
41
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_confirmed true
42
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
43
43
  ```
44
44
 
45
45
  Config-aware routing: check `artifacts.order` and `artifacts.skip` from project config.
46
46
 
47
47
  ## Mode Detection
48
48
 
49
- If workflow is `auto`/`null`/unset: run `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime infer <change-dir>`. Inference: **hotfix** (≤2 tasks, ≤2 files, no schema/API/new modules), **tweak** (≤4 tasks, config/doc only), **full** (anything larger). Persist with `npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <dir> workflow <mode>`.
49
+ If workflow is `auto`/`null`/unset: run `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime infer <change-dir>`. Inference: **hotfix** (≤2 tasks, ≤2 files, no schema/API/new modules), **tweak** (≤4 tasks, config/doc only), **full** (anything larger). Persist with `npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <dir> workflow <mode>`.
50
50
 
51
51
  Validate mode against artifact content. If hotfix/tweak criteria not met → upgrade to `full` and output reason. Don't overwrite explicit mode unless user asks.
52
52
 
@@ -59,19 +59,19 @@ Change is fuzzy, scope unclear, comparing options, no stable change name.
59
59
  Guard: `arch_design_decision` in `.team-flow.yaml` is `null` → must run before spec-writer. Dispatch `architecture-design` as sub-agent; after return, run reasonableness check and write yaml. Full protocol in `references/routing-rules.md`「Route to architecture-design」.
60
60
 
61
61
  ### Route to spec-writer
62
- Guard: `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime guard check <dir> exploring specifying --json` → fail = BLOCK. **arch_design_decision must not be null** → fail = BLOCK (v0.9 §26). User knows what they want, artifacts missing/incomplete.
62
+ Guard: `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime guard check <dir> exploring specifying --json` → fail = BLOCK. **arch_design_decision must not be null** → fail = BLOCK (v0.9 §26). User knows what they want, artifacts missing/incomplete.
63
63
 
64
64
  ### Route to contract-builder
65
65
  Guard: `... check <dir> specifying bridging --json` → fail = BLOCK. Artifacts exist, implementation requested, contract missing/stale. Include `DP-3: 契约批准`.
66
66
 
67
67
  ### Route to build-executor
68
- Contract exists and approved, contract matches artifacts. Include `DP-4: 执行模式选择`: propose waves, run `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend <change-dir> [--wave ...]`, show the user every available mode plus evidence and the recommendation, then obtain a clear selection. The command saves a current receipt; before the first implementation edit, `build-executor` must run `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan <change-dir> --mode <selected> --confirm ...` (and `--acknowledge-recommendation` when the selected mode differs from the recommendation) using matching artifacts, contract, and waves, then `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json`; report the saved revision, selected mode, recommendation alignment, ordered waves, and actual concurrent-dispatch capability. A revision must repeat recommend and confirmation. Do not transition to `executing` until `show` reports `current: true`; then run `... check <dir> approved-for-build executing --json` → fail = BLOCK.
68
+ Contract exists and approved, contract matches artifacts. Include `DP-4: 执行模式选择`: propose waves, run `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution recommend <change-dir> [--wave ...]`, show the user every available mode plus evidence and the recommendation, then obtain a clear selection. The command saves a current receipt; before the first implementation edit, `build-executor` must run `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan <change-dir> --mode <selected> --confirm ...` (and `--acknowledge-recommendation` when the selected mode differs from the recommendation) using matching artifacts, contract, and waves, then `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json`; report the saved revision, selected mode, recommendation alignment, ordered waves, and actual concurrent-dispatch capability. A revision must repeat recommend and confirmation. Do not transition to `executing` until `show` reports `current: true`; then run `... check <dir> approved-for-build executing --json` → fail = BLOCK.
69
69
 
70
70
  ### Route to bug-investigator
71
71
  Execution hit blockage: test failure, unexpected behavior, build error, task cannot proceed. After debugging, route back to build-executor.
72
72
 
73
73
  ### Route to code-reviewer
74
- The current planned wave is implemented and ready for spec-compliance + code-quality verification. A reviewer must write an `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> --wave <id> --base <sha> --head <sha> --report <path> --verdict <pass|fail>` receipt before any dependent wave or closing transition.
74
+ The current planned wave is implemented and ready for spec-compliance + code-quality verification. A reviewer must write an `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> --wave <id> --base <sha> --head <sha> --report <path> --verdict <pass|fail>` receipt before any dependent wave or closing transition.
75
75
 
76
76
  ### Route to release-archivist
77
77
  Guard: `... check <dir> executing closing --json` → fail = BLOCK. Implementation complete, verification complete/nearly complete. Include `DP-7: 归档确认`.
@@ -90,10 +90,10 @@ uncertainty. Do not create a prototype handoff or enter a prototype worktree
90
90
  until the user confirms. After confirmation:
91
91
 
92
92
  ```bash
93
- npx --yes --package @xulthekl/team-flow@0.25.1 tf handoff create <change-dir> \
93
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf handoff create <change-dir> \
94
94
  --type prototype --objective "<confirmed objective>" \
95
95
  --expected-output "<expected evidence>" --acceptance "<completion criterion>"
96
- npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate <change-dir> prototype-<handoff-id>
96
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf isolate <change-dir> prototype-<handoff-id>
97
97
  ```
98
98
 
99
99
  Never suggest or enter this route automatically for backend, CLI, configuration,
@@ -107,7 +107,7 @@ work.
107
107
  - **Hotfix**: Route to contract-builder (minimal), skip need-explorer + spec-writer, guard check `exploring bridging --workflow hotfix`, then `bridging -> approved-for-build`, after DP-3 → build-executor (recommend, show, and confirm an execution mode), after → release-archivist (lightweight). Hotfix may skip `proposal.md`, `design.md`, `tasks.md`, and `specs/`, but it still requires a fresh minimal `execution-contract.md`, DP-3 approval, and a current execution plan before build. **architecture-design 不豁免**(v0.9 §26):同样过 architecture-design 子代理判断门,快速判定是否涉及架构变更(hotfix 可能正是架构缺陷导致)
108
108
  - **Tweak**: Route to build-executor (direct edit), skip need-explorer + spec-writer + contract-builder, guard check `exploring approved-for-build --workflow tweak`, after → release-archivist (lightweight). **architecture-design 不豁免**(v0.9 §26):同样过 architecture-design 子代理判断门
109
109
 
110
- Post-transition: 💡 `npx --yes --package @xulthekl/team-flow@0.25.1 tf inject <change-dir>` to update phase-guard artifacts.
110
+ Post-transition: 💡 `npx --yes --package @xulthekl/team-flow@0.26.0 tf inject <change-dir>` to update phase-guard artifacts.
111
111
 
112
112
  ## Staleness Detection
113
113
 
@@ -124,7 +124,7 @@ Use content inspection, not timestamps.
124
124
  ## Guardrails
125
125
 
126
126
  - No implementation before planning artifacts or contract exist
127
- - No implementation for full/hotfix without a current `npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan`; no state transition based on an unverified DP-4 string
127
+ - No implementation for full/hotfix without a current `npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan`; no state transition based on an unverified DP-4 string
128
128
  - No "continue" without state inspection
129
129
  - No implementation past stale contract
130
130
  - No implementation past bug without investigation
@@ -32,17 +32,17 @@ artifacts: # required 时必填
32
32
  - `null`(未判定)→ **BLOCK**
33
33
 
34
34
  ```bash
35
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> arch_design_decision "<required|skipped>"
36
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> arch_design_reason "<reason>"
37
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> arch_design_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
35
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> arch_design_decision "<required|skipped>"
36
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> arch_design_reason "<reason>"
37
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> arch_design_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
38
38
  # if required:
39
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> arch_design_artifacts "architecture/architecture.md,architecture/database.md,architecture/api.md"
39
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> arch_design_artifacts "architecture/architecture.md,architecture/database.md,architecture/api.md"
40
40
  ```
41
41
 
42
42
  **hotfix / tweak 不豁免**:同样过 architecture-design 子代理判断门。
43
43
 
44
44
  ## Route to spec-writer
45
- Guard: `npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime guard check <dir> exploring specifying --json` → fail = BLOCK.
45
+ Guard: `npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime guard check <dir> exploring specifying --json` → fail = BLOCK.
46
46
  **arch_design_decision must not be null** → fail = BLOCK(architecture-design gate not passed,v0.9 §26)。
47
47
  User knows what they want, artifacts missing/incomplete.
48
48
 
@@ -55,12 +55,12 @@ Contract exists and approved, contract matches artifacts. Include DP-4: 执行
55
55
 
56
56
  Propose waves, run:
57
57
  ```bash
58
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution recommend <change-dir> [--wave ...]
58
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution recommend <change-dir> [--wave ...]
59
59
  ```
60
60
  Show every available mode plus evidence and recommendation, obtain clear selection. Then:
61
61
  ```bash
62
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution plan <change-dir> --mode <selected> --confirm ...
63
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution show <change-dir> --json
62
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution plan <change-dir> --mode <selected> --confirm ...
63
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution show <change-dir> --json
64
64
  ```
65
65
  Do not transition to `executing` until `show` reports `current: true`.
66
66
  Guard: `... check <dir> approved-for-build executing --json` → fail = BLOCK.
@@ -71,7 +71,7 @@ Execution hit blockage: test failure, unexpected behavior, build error. After de
71
71
  ## Route to code-reviewer
72
72
  Current planned wave implemented and ready for review. Reviewer must write:
73
73
  ```bash
74
- npx --yes --package @xulthekl/team-flow@0.25.1 tf execution review <change-dir> --wave <id> --base <sha> --head <sha> --report <path> --verdict <pass|fail>
74
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf execution review <change-dir> --wave <id> --base <sha> --head <sha> --report <path> --verdict <pass|fail>
75
75
  ```
76
76
 
77
77
  ## Route to release-archivist
@@ -93,10 +93,10 @@ User explicitly requests, bug-investigator escalates after 3+ failures AND user
93
93
 
94
94
  When the user's brief explicitly contains UI/screen/interaction/layout/UX uncertainty, ask once whether a prototype would reduce uncertainty. After confirmation:
95
95
  ```bash
96
- npx --yes --package @xulthekl/team-flow@0.25.1 tf handoff create <change-dir> \
96
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf handoff create <change-dir> \
97
97
  --type prototype --objective "<confirmed objective>" \
98
98
  --expected-output "<expected evidence>" --acceptance "<completion criterion>"
99
- npx --yes --package @xulthekl/team-flow@0.25.1 tf isolate <change-dir> prototype-<handoff-id>
99
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf isolate <change-dir> prototype-<handoff-id>
100
100
  ```
101
101
  Never suggest for backend/CLI/config/internal-refactor work. Never pass `--force`.
102
102
 
@@ -130,17 +130,17 @@ else:
130
130
 
131
131
  After confirmation:
132
132
  ```bash
133
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_decisions "<summary>"
134
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_result confirmed
135
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_confirmed true
136
- npx --yes --package @xulthekl/team-flow@0.25.1 tf state set <change-dir> dp_0_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
133
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_decisions "<summary>"
134
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_result confirmed
135
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_confirmed true
136
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf state set <change-dir> dp_0_timestamp $(date -u +%Y-%m-%dT%H:%M:%SZ)
137
137
  ```
138
138
 
139
139
  ## Mode Detection
140
140
 
141
141
  If workflow is `auto`/`null`/unset:
142
142
  ```bash
143
- npx --yes --package @xulthekl/team-flow@0.25.1 tf runtime infer <change-dir>
143
+ npx --yes --package @xulthekl/team-flow@0.26.0 tf runtime infer <change-dir>
144
144
  ```
145
145
  Inference: **hotfix** (≤2 tasks, ≤2 files, no schema/API/new modules), **tweak** (≤4 tasks, config/doc only), **full** (anything larger).
146
146
 
@@ -152,4 +152,4 @@ Inference: **hotfix** (≤2 tasks, ≤2 files, no schema/API/new modules), **twe
152
152
  - **Brief drift (advisory, v0.9)**: change-brief.md 的 `plan_hash` 与当前 plan.md 不一致 → 提示回 orchestrator 重新分发;**不**阻断、**不**进 artifacts_hash、**不**混入上述三条产物互查
153
153
 
154
154
  ## Post-transition
155
- 💡 `npx --yes --package @xulthekl/team-flow@0.25.1 tf inject <change-dir>` to update phase-guard artifacts.
155
+ 💡 `npx --yes --package @xulthekl/team-flow@0.26.0 tf inject <change-dir>` to update phase-guard artifacts.