@ai-content-space/loopx 0.1.9 → 0.1.10

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/README.md CHANGED
@@ -228,11 +228,14 @@ Main artifacts:
228
228
  - `.loopx/workflows/<slug>/development-plan.md`
229
229
  - `.loopx/workflows/<slug>/test-plan.md`
230
230
  - `.loopx/workflows/<slug>/requirement-traceability.md`
231
+ - `.loopx/workflows/<slug>/plan-delegation-decision.md`
231
232
 
232
233
  After a successful plan run, loopx also writes derived reading views at `.loopx/workflows/<slug>/view/index.html`, `.loopx/workflows/<slug>/view/plan.html`, and `.loopx/views/index.html`. Use these for human review; keep Markdown and JSON as the editable sources of truth.
233
234
 
234
235
  `requirement-traceability.md` maps the original source requirements or PRD to the generated plan package, change delta, vertical slices, and tests. If explicit source coverage items or source requirement tables are not covered by the plan package, `plan` stays blocked before build approval.
235
236
 
237
+ `plan-delegation-decision.md` records whether planning should stay local or use stronger critic/parallel-review depth. The decision uses risk, scope, state/data integrity, verification complexity, and architecture tradeoffs as triggers; missing delegation rationale blocks build handoff.
238
+
236
239
  `spec-delta.md` uses requirement deltas: `## ADDED Requirements`, `## MODIFIED Requirements`, `## REMOVED Requirements`, and `## RENAMED Requirements`. ADDED and MODIFIED entries are full `### Requirement:` blocks with SHALL/MUST language and `#### Scenario:` examples, so archive can merge them into the current long-lived spec state.
237
240
 
238
241
  ### build
@@ -386,6 +389,7 @@ Documents users normally need to watch:
386
389
  - `.loopx/workflows/<slug>/spec.md`: the current requirement working copy.
387
390
  - `.loopx/workflows/<slug>/plan.md`, `architecture.md`, `development-plan.md`, and `test-plan.md`: the current task's plan, architecture, execution, and verification contract.
388
391
  - `.loopx/workflows/<slug>/requirement-traceability.md`: original requirement coverage gate used by plan, build, and review.
392
+ - `.loopx/workflows/<slug>/plan-delegation-decision.md`: recorded local/critic/parallel-review planning delegation rationale.
389
393
  - `.loopx/workflows/<slug>/execution-record.md` and `review-report.md`: execution evidence and review result.
390
394
  - `.loopx/views/index.html` and `.loopx/workflows/<slug>/view/index.html`: reading entrypoints written after `plan` and regenerated by `loopx render`.
391
395
 
@@ -522,4 +526,4 @@ node src/cli.mjs status --json
522
526
 
523
527
  ## Version
524
528
 
525
- Current npm package version: `0.1.9`.
529
+ Current npm package version: `0.1.10`.
package/README.zh-CN.md CHANGED
@@ -230,11 +230,14 @@ node scripts/verify-skills.mjs
230
230
  - `.loopx/workflows/<slug>/development-plan.md`
231
231
  - `.loopx/workflows/<slug>/test-plan.md`
232
232
  - `.loopx/workflows/<slug>/requirement-traceability.md`
233
+ - `.loopx/workflows/<slug>/plan-delegation-decision.md`
233
234
 
234
235
  plan 成功后,loopx 还会写入派生阅读视图:`.loopx/workflows/<slug>/view/index.html`、`.loopx/workflows/<slug>/view/plan.html` 和 `.loopx/views/index.html`。这些视图用于人工审阅;Markdown 和 JSON 仍然是可编辑事实源。
235
236
 
236
237
  `requirement-traceability.md` 会把原始需求或 PRD 映射到生成的 plan package、change delta、vertical slices 和测试。若显式需求覆盖项或需求表格项没有被计划包覆盖,`plan` 会在 build approval 前保持 blocked。
237
238
 
239
+ `plan-delegation-decision.md` 会记录规划阶段应保持本地顺序审阅,还是需要更强的 critic/parallel-review 深度。决策依据包括风险、范围、状态/数据完整性、验证复杂度和架构取舍;缺少委派依据会阻塞 build handoff。
240
+
238
241
  `spec-delta.md` 使用 requirement delta:`## ADDED Requirements`、`## MODIFIED Requirements`、`## REMOVED Requirements` 和 `## RENAMED Requirements`。ADDED / MODIFIED 必须是完整的 `### Requirement:` 块,包含 SHALL/MUST 约束和 `#### Scenario:` 场景,archive 才能把它们合并进长期 spec 当前状态。
239
242
 
240
243
  ### build
@@ -397,6 +400,7 @@ loopx 在当前项目下写入 `.loopx/`:
397
400
  - `.loopx/workflows/<slug>/spec.md`:当前需求工作副本。
398
401
  - `.loopx/workflows/<slug>/plan.md`、`architecture.md`、`development-plan.md`、`test-plan.md`:当前任务的计划、架构和验证约定。
399
402
  - `.loopx/workflows/<slug>/requirement-traceability.md`:plan、build、review 都会消费的原始需求覆盖门禁。
403
+ - `.loopx/workflows/<slug>/plan-delegation-decision.md`:记录 local / critic-only / parallel-review 规划委派依据。
400
404
  - `.loopx/workflows/<slug>/execution-record.md`、`review-report.md`:执行证据和评审结论。
401
405
  - `.loopx/views/index.html` 与 `.loopx/workflows/<slug>/view/index.html`:plan 后写入、也可由 `loopx render` 重新生成的阅读入口。
402
406
 
@@ -533,4 +537,4 @@ node src/cli.mjs status --json
533
537
 
534
538
  ## 版本
535
539
 
536
- 当前 npm 包版本:`0.1.9`。
540
+ 当前 npm 包版本:`0.1.10`。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ai-content-space/loopx",
3
3
  "type": "module",
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "description": "Skill-first loopx workflow product for Codex",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loopx",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Skill-first loopx workflow product for Codex",
5
5
  "skills": "./skills/",
6
6
  "interface": {
@@ -3,7 +3,7 @@ name: archive
3
3
  description: "Archives an approved loopx change delta into long-lived specs and writes an ADR candidate after done approval. Not for active builds or unapproved reviews."
4
4
  when_to_use: "archive, done workflow, spec delta, long-lived specs, ADR candidate, review approved, 归档, 同步规格"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "<workflow slug>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: autopilot
3
3
  description: "Runs one bounded autonomous loopx orchestration over clarify, plan, build, and review while preserving canonical artifacts. Not for manual gate-by-gate control."
4
4
  when_to_use: "autopilot, autonomous loopx run, end-to-end workflow, run all stages, bounded orchestration, 自动执行, 全流程"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "<workflow slug>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: build
3
3
  description: "Executes an approved loopx plan or review rework contract with evidence, verification, deslop, and regression gates. Not for unclear requirements or independent review."
4
4
  when_to_use: "build, implement approved plan, execute PRD, --from-review, review rework, implementation fixes, 执行, 实现, 修改"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "[--no-deslop] <approved PRD path or workflow slug> | --from-review <review artifact path>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: clarify
3
3
  description: "Clarifies ambiguous loopx work into requirements, non-goals, decision boundaries, and design-ready specs before planning. Not for already-approved plans or concrete implementation tasks."
4
4
  when_to_use: "clarify, requirements, ambiguous request, unclear scope, non-goals, decision boundaries, acceptance criteria, 需求澄清, 范围不清"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # loopx Clarify
@@ -3,7 +3,7 @@ name: debug
3
3
  description: "Finds root cause for bugs, failing tests, build failures, regressions, and unexpected behavior before fixes. Not for new feature planning or routine code review."
4
4
  when_to_use: "debug, bug, test failure, build failure, regression, unexpected behavior, root cause, 报错, 失败, 回归, 排查"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Systematic Debugging
@@ -3,7 +3,7 @@ name: go-style
3
3
  description: "Applies loopx Go coding style for .go edits, tests, errors, context, naming, and interface boundaries. Not for non-Go code or Kratos-specific architecture by itself."
4
4
  when_to_use: "go-style, Go, golang, .go files, go tests, gofmt, idiomatic Go, Go style, Go 代码"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Go Style
@@ -3,7 +3,7 @@ name: kratos
3
3
  description: "Supports Go-Kratos microservices, proto/buf APIs, service/biz/data layers, middleware, auth, config, and troubleshooting. Not for generic Go style alone."
4
4
  when_to_use: "kratos, Go-Kratos, proto, buf, service layer, biz layer, data layer, middleware, auth, config, Kratos 微服务"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Kratos
@@ -3,7 +3,7 @@ name: plan
3
3
  description: "Creates a consensus-first loopx plan package with Planner, Architect, and Critic review from an approved spec. Not for unresolved requirements or direct implementation."
4
4
  when_to_use: "plan, planning, consensus planning, PRD, architecture plan, test plan, approved clarify spec, 规划, 方案, 架构评审"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "[--interactive] [--deliberate] [--direct <spec-path>] <clarified task or spec path>"
8
8
  ---
9
9
 
@@ -34,6 +34,7 @@ By default, `plan` includes the full consensus review loop formerly documented u
34
34
  - Keep planning artifact-bound: produce PRD, architecture, development plan, and test plan outputs.
35
35
  - Preserve accepted intent as durable change artifacts: proposal, spec delta, design, tasks, and artifact dependency graph.
36
36
  - Separate planning approval from execution approval.
37
+ - Treat human review as a first-class product surface: planning Markdown and HTML views must be readable enough for a reviewer to approve or reject without opening runtime state JSON.
37
38
  - Do not start implementation from `plan`.
38
39
  - Prefer a smaller executable plan over a broad plan that cannot be verified.
39
40
  - Preserve non-goals, decision boundaries, and residual-risk warnings from clarify.
@@ -165,6 +166,7 @@ On approval, write canonical planning artifacts:
165
166
  - `.loopx/workflows/<slug>/development-plan.md`
166
167
  - `.loopx/workflows/<slug>/test-plan.md`
167
168
  - `.loopx/workflows/<slug>/requirement-traceability.md`
169
+ - `.loopx/workflows/<slug>/plan-delegation-decision.md`
168
170
  - `.loopx/plans/prd-<slug>.md`
169
171
  - `.loopx/plans/test-spec-<slug>.md`
170
172
  - `.loopx/changes/active/<change-id>/proposal.md`
@@ -184,7 +186,10 @@ The HTML files are derived reading views for human plan review. They are not can
184
186
 
185
187
  The final plan must include:
186
188
 
189
+ - Chinese reviewer-facing Markdown for `plan.md`, `architecture.md`, `development-plan.md`, `test-plan.md`, canonical PRD/test spec, traceability, and delegation decision; English prose is allowed only for code paths, API names, commands, enum values, and source terms
190
+ - an HTML reading view that exposes stage status, human approval points, blockers, source coverage, and artifact summaries before the full Markdown bodies
187
191
  - a source-requirement coverage matrix that maps the original requirements/PRD to plan, architecture, slices, spec delta, and tests
192
+ - a delegation decision with mode `local|critic-only|parallel-review`, score, triggers, and reason for whether subagent-style review is warranted
188
193
  - ADR: Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups
189
194
  - concrete implementation steps sized to the actual task
190
195
  - target long-lived spec domains and an OpenSpec-style requirements delta for archive
@@ -247,11 +252,15 @@ HTML:
247
252
  - `plan_execution_inputs_resolved`: `true|false`
248
253
  - `source_requirements_status`: `complete|partial`
249
254
  - `requirement_traceability_path`: `.loopx/workflows/<slug>/requirement-traceability.md`
255
+ - `plan_delegation_mode`: `local|critic-only|parallel-review`
256
+ - `plan_delegation_decision_path`: `.loopx/workflows/<slug>/plan-delegation-decision.md`
250
257
  - `requested_transition`: remains explicit before build/autopilot
251
258
 
252
259
  The plan gate is blocked until:
253
260
 
254
261
  - plan package artifacts exist
262
+ - Planner, Architect, and Critic evidence artifacts exist
263
+ - reviewer-facing planning docs and derived canonical PRD/test spec are Chinese-readable
255
264
  - change proposal, spec delta, design, tasks, vertical slices, and artifact graph exist
256
265
  - spec delta declares target domains and `## ADDED|MODIFIED|REMOVED|RENAMED Requirements` blocks
257
266
  - every ADDED or MODIFIED requirement uses `### Requirement:`, contains SHALL or MUST text, and includes at least one `#### Scenario:`
@@ -262,6 +271,7 @@ The plan gate is blocked until:
262
271
  - verification steps are concrete
263
272
  - execution inputs are fully mapped to concrete sources
264
273
  - source requirements are covered by `requirement-traceability.md`; uncovered original PRD requirements block build handoff
274
+ - delegation decision is recorded in `plan-delegation-decision.md`; absence of an explicit local/critic/parallel-review rationale blocks build handoff
265
275
  - user approval exists for any execution transition
266
276
  </Runtime_State_Machine>
267
277
 
@@ -279,6 +289,7 @@ Primary outputs:
279
289
 
280
290
  - approved plan package under `.loopx/workflows/<slug>/`
281
291
  - original source requirements and traceability matrix under `.loopx/workflows/<slug>/requirement-traceability.md`
292
+ - delegation decision under `.loopx/workflows/<slug>/plan-delegation-decision.md`
282
293
  - canonical PRD and test spec under `.loopx/plans/`
283
294
  - change artifacts under `.loopx/changes/active/<change-id>/`
284
295
  - derived HTML reading views under `.loopx/workflows/<slug>/view/` and `.loopx/views/`
@@ -3,7 +3,7 @@ name: review
3
3
  description: "Reviews a loopx build execution record for acceptance, code risks, evidence quality, and architecture smells. Not for doing implementation work or replanning."
4
4
  when_to_use: "review, code review, acceptance, go no-go, execution-record, architecture smell, build complete, 审查, 验收"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "<execution-record path or workflow slug>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: tdd
3
3
  description: "Guides feature and bugfix implementation through a failing test before production code and red-green-refactor discipline. Not for generated files or throwaway prototypes."
4
4
  when_to_use: "tdd, failing test first, feature implementation, bugfix, regression test, red green refactor, 测试先行"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Test-Driven Development (TDD)
@@ -3,7 +3,7 @@ name: verify
3
3
  description: "Requires fresh verification evidence before claiming work is complete, fixed, passing, review-ready, or ready to commit. Not for speculative confidence or stale results."
4
4
  when_to_use: "verify, completion claim, fixed claim, tests pass, review-ready, commit, fresh evidence, 验证, 完成前检查"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Verification Before Completion
@@ -3,7 +3,7 @@ name: archive
3
3
  description: "Archives an approved loopx change delta into long-lived specs and writes an ADR candidate after done approval. Not for active builds or unapproved reviews."
4
4
  when_to_use: "archive, done workflow, spec delta, long-lived specs, ADR candidate, review approved, 归档, 同步规格"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "<workflow slug>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: autopilot
3
3
  description: "Runs one bounded autonomous loopx orchestration over clarify, plan, build, and review while preserving canonical artifacts. Not for manual gate-by-gate control."
4
4
  when_to_use: "autopilot, autonomous loopx run, end-to-end workflow, run all stages, bounded orchestration, 自动执行, 全流程"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "<workflow slug>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: build
3
3
  description: "Executes an approved loopx plan or review rework contract with evidence, verification, deslop, and regression gates. Not for unclear requirements or independent review."
4
4
  when_to_use: "build, implement approved plan, execute PRD, --from-review, review rework, implementation fixes, 执行, 实现, 修改"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "[--no-deslop] <approved PRD path or workflow slug> | --from-review <review artifact path>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: clarify
3
3
  description: "Clarifies ambiguous loopx work into requirements, non-goals, decision boundaries, and design-ready specs before planning. Not for already-approved plans or concrete implementation tasks."
4
4
  when_to_use: "clarify, requirements, ambiguous request, unclear scope, non-goals, decision boundaries, acceptance criteria, 需求澄清, 范围不清"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # loopx Clarify
@@ -3,7 +3,7 @@ name: debug
3
3
  description: "Finds root cause for bugs, failing tests, build failures, regressions, and unexpected behavior before fixes. Not for new feature planning or routine code review."
4
4
  when_to_use: "debug, bug, test failure, build failure, regression, unexpected behavior, root cause, 报错, 失败, 回归, 排查"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Systematic Debugging
@@ -3,7 +3,7 @@ name: go-style
3
3
  description: "Applies loopx Go coding style for .go edits, tests, errors, context, naming, and interface boundaries. Not for non-Go code or Kratos-specific architecture by itself."
4
4
  when_to_use: "go-style, Go, golang, .go files, go tests, gofmt, idiomatic Go, Go style, Go 代码"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Go Style
@@ -3,7 +3,7 @@ name: kratos
3
3
  description: "Supports Go-Kratos microservices, proto/buf APIs, service/biz/data layers, middleware, auth, config, and troubleshooting. Not for generic Go style alone."
4
4
  when_to_use: "kratos, Go-Kratos, proto, buf, service layer, biz layer, data layer, middleware, auth, config, Kratos 微服务"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Kratos
@@ -3,7 +3,7 @@ name: plan
3
3
  description: "Creates a consensus-first loopx plan package with Planner, Architect, and Critic review from an approved spec. Not for unresolved requirements or direct implementation."
4
4
  when_to_use: "plan, planning, consensus planning, PRD, architecture plan, test plan, approved clarify spec, 规划, 方案, 架构评审"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "[--interactive] [--deliberate] [--direct <spec-path>] <clarified task or spec path>"
8
8
  ---
9
9
 
@@ -34,6 +34,7 @@ By default, `plan` includes the full consensus review loop formerly documented u
34
34
  - Keep planning artifact-bound: produce PRD, architecture, development plan, and test plan outputs.
35
35
  - Preserve accepted intent as durable change artifacts: proposal, spec delta, design, tasks, and artifact dependency graph.
36
36
  - Separate planning approval from execution approval.
37
+ - Treat human review as a first-class product surface: planning Markdown and HTML views must be readable enough for a reviewer to approve or reject without opening runtime state JSON.
37
38
  - Do not start implementation from `plan`.
38
39
  - Prefer a smaller executable plan over a broad plan that cannot be verified.
39
40
  - Preserve non-goals, decision boundaries, and residual-risk warnings from clarify.
@@ -165,6 +166,7 @@ On approval, write canonical planning artifacts:
165
166
  - `.loopx/workflows/<slug>/development-plan.md`
166
167
  - `.loopx/workflows/<slug>/test-plan.md`
167
168
  - `.loopx/workflows/<slug>/requirement-traceability.md`
169
+ - `.loopx/workflows/<slug>/plan-delegation-decision.md`
168
170
  - `.loopx/plans/prd-<slug>.md`
169
171
  - `.loopx/plans/test-spec-<slug>.md`
170
172
  - `.loopx/changes/active/<change-id>/proposal.md`
@@ -184,7 +186,10 @@ The HTML files are derived reading views for human plan review. They are not can
184
186
 
185
187
  The final plan must include:
186
188
 
189
+ - Chinese reviewer-facing Markdown for `plan.md`, `architecture.md`, `development-plan.md`, `test-plan.md`, canonical PRD/test spec, traceability, and delegation decision; English prose is allowed only for code paths, API names, commands, enum values, and source terms
190
+ - an HTML reading view that exposes stage status, human approval points, blockers, source coverage, and artifact summaries before the full Markdown bodies
187
191
  - a source-requirement coverage matrix that maps the original requirements/PRD to plan, architecture, slices, spec delta, and tests
192
+ - a delegation decision with mode `local|critic-only|parallel-review`, score, triggers, and reason for whether subagent-style review is warranted
188
193
  - ADR: Decision, Drivers, Alternatives considered, Why chosen, Consequences, Follow-ups
189
194
  - concrete implementation steps sized to the actual task
190
195
  - target long-lived spec domains and an OpenSpec-style requirements delta for archive
@@ -247,11 +252,15 @@ HTML:
247
252
  - `plan_execution_inputs_resolved`: `true|false`
248
253
  - `source_requirements_status`: `complete|partial`
249
254
  - `requirement_traceability_path`: `.loopx/workflows/<slug>/requirement-traceability.md`
255
+ - `plan_delegation_mode`: `local|critic-only|parallel-review`
256
+ - `plan_delegation_decision_path`: `.loopx/workflows/<slug>/plan-delegation-decision.md`
250
257
  - `requested_transition`: remains explicit before build/autopilot
251
258
 
252
259
  The plan gate is blocked until:
253
260
 
254
261
  - plan package artifacts exist
262
+ - Planner, Architect, and Critic evidence artifacts exist
263
+ - reviewer-facing planning docs and derived canonical PRD/test spec are Chinese-readable
255
264
  - change proposal, spec delta, design, tasks, vertical slices, and artifact graph exist
256
265
  - spec delta declares target domains and `## ADDED|MODIFIED|REMOVED|RENAMED Requirements` blocks
257
266
  - every ADDED or MODIFIED requirement uses `### Requirement:`, contains SHALL or MUST text, and includes at least one `#### Scenario:`
@@ -262,6 +271,7 @@ The plan gate is blocked until:
262
271
  - verification steps are concrete
263
272
  - execution inputs are fully mapped to concrete sources
264
273
  - source requirements are covered by `requirement-traceability.md`; uncovered original PRD requirements block build handoff
274
+ - delegation decision is recorded in `plan-delegation-decision.md`; absence of an explicit local/critic/parallel-review rationale blocks build handoff
265
275
  - user approval exists for any execution transition
266
276
  </Runtime_State_Machine>
267
277
 
@@ -279,6 +289,7 @@ Primary outputs:
279
289
 
280
290
  - approved plan package under `.loopx/workflows/<slug>/`
281
291
  - original source requirements and traceability matrix under `.loopx/workflows/<slug>/requirement-traceability.md`
292
+ - delegation decision under `.loopx/workflows/<slug>/plan-delegation-decision.md`
282
293
  - canonical PRD and test spec under `.loopx/plans/`
283
294
  - change artifacts under `.loopx/changes/active/<change-id>/`
284
295
  - derived HTML reading views under `.loopx/workflows/<slug>/view/` and `.loopx/views/`
@@ -3,7 +3,7 @@ name: review
3
3
  description: "Reviews a loopx build execution record for acceptance, code risks, evidence quality, and architecture smells. Not for doing implementation work or replanning."
4
4
  when_to_use: "review, code review, acceptance, go no-go, execution-record, architecture smell, build complete, 审查, 验收"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  argument-hint: "<execution-record path or workflow slug>"
8
8
  ---
9
9
 
@@ -3,7 +3,7 @@ name: tdd
3
3
  description: "Guides feature and bugfix implementation through a failing test before production code and red-green-refactor discipline. Not for generated files or throwaway prototypes."
4
4
  when_to_use: "tdd, failing test first, feature implementation, bugfix, regression test, red green refactor, 测试先行"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Test-Driven Development (TDD)
@@ -3,7 +3,7 @@ name: verify
3
3
  description: "Requires fresh verification evidence before claiming work is complete, fixed, passing, review-ready, or ready to commit. Not for speculative confidence or stale results."
4
4
  when_to_use: "verify, completion claim, fixed claim, tests pass, review-ready, commit, fresh evidence, 验证, 完成前检查"
5
5
  metadata:
6
- version: "0.1.9"
6
+ version: "0.1.10"
7
7
  ---
8
8
 
9
9
  # Verification Before Completion
package/src/cli.mjs CHANGED
@@ -90,6 +90,8 @@ function printHumanStatus(status) {
90
90
  console.log(`plan_architect_review_status: ${status.state.plan_architect_review_status}`);
91
91
  console.log(`plan_critic_verdict: ${status.state.plan_critic_verdict}`);
92
92
  console.log(`plan_artifact_status: ${status.state.plan_docs_status}`);
93
+ console.log(`plan_delegation_mode: ${status.state.plan_delegation_mode ?? 'unknown'}`);
94
+ console.log(`plan_delegation_decision_path: ${status.state.plan_delegation_decision_path ?? '(none)'}`);
93
95
  console.log(`source_requirements_status: ${status.state.source_requirements_status ?? 'unknown'}`);
94
96
  console.log(`requirement_traceability_path: ${status.state.requirement_traceability_path ?? '(none)'}`);
95
97
  console.log(`plan_blockers: ${Array.isArray(status.state.plan_blockers) && status.state.plan_blockers.length > 0 ? status.state.plan_blockers.join(', ') : '(none)'}`);