maestro-flow 0.5.34 → 0.5.35
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/.agents/agents/workflow-collab-planner.md +1 -0
- package/.agents/agents/workflow-planner.md +2 -0
- package/.agents/skills/maestro-help/SKILL.md +1 -1
- package/.agents/skills/maestro-help/index/catalog.json +0 -1
- package/.agents/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.agents/skills/maestro-plan/SKILL.md +3 -1
- package/.agents/skills/maestro-ralph/SKILL.md +46 -17
- package/.agents/skills/maestro-ralph-execute/SKILL.md +51 -10
- package/.agents/skills/quality-test/SKILL.md +27 -1
- package/.agy/agents/workflow-collab-planner.md +1 -0
- package/.agy/agents/workflow-planner.md +2 -0
- package/.agy/skills/maestro-help/SKILL.md +1 -1
- package/.agy/skills/maestro-help/index/catalog.json +0 -1
- package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.agy/skills/maestro-plan/SKILL.md +3 -1
- package/.agy/skills/maestro-ralph/SKILL.md +46 -17
- package/.agy/skills/maestro-ralph-execute/SKILL.md +51 -10
- package/.agy/skills/quality-test/SKILL.md +27 -1
- package/.claude/agents/workflow-collab-planner.md +1 -0
- package/.claude/agents/workflow-planner.md +2 -0
- package/.claude/commands/maestro-plan.md +3 -1
- package/.claude/commands/maestro-ralph-execute.md +51 -10
- package/.claude/commands/maestro-ralph.md +46 -17
- package/.claude/commands/quality-test.md +27 -1
- package/.claude/skills/maestro-help/SKILL.md +1 -1
- package/.claude/skills/maestro-help/index/catalog.json +0 -1
- package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
- package/.codex/skills/maestro/SKILL.md +17 -2
- package/.codex/skills/maestro-analyze/SKILL.md +20 -3
- package/.codex/skills/maestro-brainstorm/SKILL.md +30 -4
- package/.codex/skills/maestro-execute/SKILL.md +25 -3
- package/.codex/skills/maestro-grill/SKILL.md +9 -0
- package/.codex/skills/maestro-plan/SKILL.md +26 -3
- package/.codex/skills/maestro-ralph/SKILL.md +6 -0
- package/.codex/skills/maestro-ralph-execute/SKILL.md +51 -10
- package/.codex/skills/maestro-roadmap/SKILL.md +30 -1
- package/.codex/skills/quality-review/SKILL.md +9 -0
- package/README.md +28 -5
- package/README.zh-CN.md +28 -5
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +82 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +444 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/search.d.ts +46 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/search.js +413 -19
- package/dashboard/dist-server/dashboard/src/server/wiki/search.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +16 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.d.ts +13 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +102 -7
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.test.js +42 -0
- package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.test.js.map +1 -1
- package/dashboard/dist-server/src/commands/hooks.d.ts +3 -0
- package/dashboard/dist-server/src/commands/hooks.js +11 -8
- package/dashboard/dist-server/src/commands/hooks.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.js +1 -1
- package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.js.map +1 -1
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js +2 -6
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js.map +1 -1
- package/dist/src/cli.js +1 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/hooks.d.ts +3 -0
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +11 -8
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +42 -9
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/commands/search.d.ts +5 -0
- package/dist/src/commands/search.d.ts.map +1 -1
- package/dist/src/commands/search.js +81 -11
- package/dist/src/commands/search.js.map +1 -1
- package/dist/src/commands/update.d.ts.map +1 -1
- package/dist/src/commands/update.js +37 -21
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/core/install-executor.d.ts.map +1 -1
- package/dist/src/core/install-executor.js +6 -3
- package/dist/src/core/install-executor.js.map +1 -1
- package/dist/src/graph/kg/extraction/code/code-extractor.js +1 -1
- package/dist/src/graph/kg/extraction/code/code-extractor.js.map +1 -1
- package/dist/src/graph/kg/extraction/orchestrator.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/orchestrator.js +2 -6
- package/dist/src/graph/kg/extraction/orchestrator.js.map +1 -1
- package/dist/src/ralph/cmd-next.d.ts.map +1 -1
- package/dist/src/ralph/cmd-next.js +2 -3
- package/dist/src/ralph/cmd-next.js.map +1 -1
- package/package.json +4 -2
- package/workflows/claude-instructions.md +17 -2
- package/workflows/codex-instructions.md +85 -14
- package/workflows/command-authoring.md +1 -1
- package/workflows/plan.md +2 -1
- package/.agents/skills/maestro-ralph-beta/SKILL.md +0 -882
- package/.agy/skills/maestro-ralph-beta/SKILL.md +0 -878
- package/.claude/commands/maestro-ralph-beta.md +0 -880
- package/.codex/skills/maestro-ralph-beta/SKILL.md +0 -883
|
@@ -21,6 +21,7 @@ $ARGUMENTS — intent text, flags, or keywords.
|
|
|
21
21
|
**Parse:**
|
|
22
22
|
```
|
|
23
23
|
-y flag → auto_confirm = true
|
|
24
|
+
--roadmap → wants_roadmap = true (强制多发布 roadmap 路径;roadmap 默认 opt-in)
|
|
24
25
|
.md/.txt path → input_doc (supplementary context only, NEVER substitutes lifecycle stages)
|
|
25
26
|
Remaining → intent
|
|
26
27
|
```
|
|
@@ -54,7 +55,7 @@ S_PARSE_ROUTE — 解析参数、路由入口 PERSIST: —
|
|
|
54
55
|
S_STATUS — 显示 session 进度 PERSIST: —
|
|
55
56
|
S_CONTINUE — 恢复执行 PERSIST: —
|
|
56
57
|
S_RESOLVE_PHASE — 解析 phase + phase_is_new + D-007 milestone PERSIST: session.phase, session.phase_is_new, session.milestone
|
|
57
|
-
S_INFER — 基于已解析 phase 推断 lifecycle_position PERSIST: session.lifecycle_position
|
|
58
|
+
S_INFER — 基于已解析 phase 推断 lifecycle_position PERSIST: session.lifecycle_position, session.wants_roadmap
|
|
58
59
|
S_RESOLVE_SCOPE — 读 macro analyze conclusions.scope_verdict PERSIST: session.scope_verdict, session.analyze_macro_id
|
|
59
60
|
S_QUALITY_MODE — 决定质量管线模式 PERSIST: session.quality_mode
|
|
60
61
|
S_PLANNING_MODE — 决定统一/独立规划模式 PERSIST: session.planning_mode
|
|
@@ -126,7 +127,7 @@ S_DISPATCH:
|
|
|
126
127
|
→ END DO: view_file(AbsolutePath="<agy-skills-dir>/maestro-ralph-execute/SKILL.md") + execute inline
|
|
127
128
|
|
|
128
129
|
S_DECISION_EVAL: (decision 节点 == `step.decision` 非空,下述 gate 名取自该字段)
|
|
129
|
-
→ S_APPLY_VERDICT WHEN: quality-gate (post-execute, post-business-test, post-review, post-test)
|
|
130
|
+
→ S_APPLY_VERDICT WHEN: quality-gate (post-execute, post-business-test, post-review, post-test, post-frontend-verify)
|
|
130
131
|
DO: A_DELEGATE_EVALUATE
|
|
131
132
|
→ S_APPLY_VERDICT WHEN: goal-gate (post-goal-audit)
|
|
132
133
|
DO: A_GOAL_AUDIT_EVALUATE
|
|
@@ -213,6 +214,14 @@ resolve_milestone(phase_number):
|
|
|
213
214
|
| blueprint / 规格 / 正式文档 / spec-generate / 7-phase | `blueprint` |
|
|
214
215
|
| broad/medium intent 无数字 phase (重构/全面/重写/迁移/新功能 X) | `analyze-macro` |
|
|
215
216
|
|
|
217
|
+
**Roadmap opt-in detection** (设 `session.wants_roadmap`,缺省 `false`):
|
|
218
|
+
```
|
|
219
|
+
wants_roadmap = (--roadmap flag)
|
|
220
|
+
OR (intent 含多发布信号: 多发布|多版本|分阶段交付|按里程碑发布|v1.*v2|multi-release|roadmap)
|
|
221
|
+
OR (.workflow/roadmap.md 已存在) ← 向后兼容:既有 roadmap 项目行为不变
|
|
222
|
+
```
|
|
223
|
+
默认 `false` → large 项目走单一多波次 `plan --from analyze`,不引入 roadmap 横切层;roadmap 仅多发布场景 opt-in。
|
|
224
|
+
|
|
216
225
|
**Bootstrap detection:**
|
|
217
226
|
|
|
218
227
|
| Condition | Position |
|
|
@@ -227,7 +236,7 @@ resolve_milestone(phase_number):
|
|
|
227
236
|
| Condition | Position |
|
|
228
237
|
|-----------|----------|
|
|
229
238
|
| `phase_is_new == true` (新 phase) | `analyze` |
|
|
230
|
-
| no milestones AND no roadmap.md AND has analyze macro artifact | `roadmap` |
|
|
239
|
+
| no milestones AND no roadmap.md AND has analyze macro artifact | `roadmap` if `wants_roadmap` else `plan` (--from analyze) |
|
|
231
240
|
| no milestones AND no roadmap.md AND no analyze artifact | `analyze-macro` |
|
|
232
241
|
| `phase == null` (grill/brainstorm/blueprint/init/roadmap/analyze-macro override 已定) | n/a |
|
|
233
242
|
| phase 已存在 + 无任何 artifact | `analyze` |
|
|
@@ -248,9 +257,9 @@ resolve_milestone(phase_number):
|
|
|
248
257
|
|
|
249
258
|
| scope_verdict | 链路 |
|
|
250
259
|
|---------------|------|
|
|
251
|
-
| `large` | analyze-macro → roadmap → analyze → plan → execute →
|
|
252
|
-
| `medium` / `small` | analyze-macro → plan --from analyze:{ANL_ID} → execute → ...(跳过 roadmap + analyze-phase
|
|
253
|
-
| `unknown` | 默认走
|
|
260
|
+
| `large` + `wants_roadmap` | analyze-macro → roadmap → analyze → plan → execute → ...(多发布 opt-in) |
|
|
261
|
+
| `large`(默认)/ `medium` / `small` | analyze-macro → plan --from analyze:{ANL_ID} → execute → ...(跳过 roadmap + analyze-phase;单一多波次计划) |
|
|
262
|
+
| `unknown` | 默认走 standalone(plan --from analyze)路径,post-analyze-scope 决策节点再纠正 |
|
|
254
263
|
|
|
255
264
|
**Refine from post-execute results:**
|
|
256
265
|
|
|
@@ -333,10 +342,10 @@ narrow → derive defaults from intent + codebase, skip questions.
|
|
|
333
342
|
```json
|
|
334
343
|
{ "id": "G1", "goal": "<deliverable>", "boundary": "<in/out note>",
|
|
335
344
|
"done_when": "<objectively checkable condition>",
|
|
336
|
-
"evidence": "verification.json|review.json|uat.md|<test path>",
|
|
345
|
+
"evidence": "verification.json|review.json|uat.md|e2e-results.json|<test path>",
|
|
337
346
|
"lifecycle": ["analyze","execute"], "status": "pending" }
|
|
338
347
|
```
|
|
339
|
-
`done_when` 必须客观可验证,且引用 ralph 已产出的 artifact;`lifecycle` 字段映射到产出 evidence 的生命周期 stage
|
|
348
|
+
`done_when` 必须客观可验证,且引用 ralph 已产出的 artifact;`lifecycle` 字段映射到产出 evidence 的生命周期 stage。涉及前端可用性的子目标,`done_when` 应引用 `e2e-results.json`(frontend-verify 门产出),不得仅以后端 API/build 证据判定可用。
|
|
340
349
|
|
|
341
350
|
**5. Persist** (additive): `boundary_contract`, `execution_criteria`, `task_decomposition`。每个 sub-goal 含 `status: "pending"` + `completion_confirmed: false`。
|
|
342
351
|
|
|
@@ -362,6 +371,7 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
|
|
|
362
371
|
| review | `quality-review {phase}` | `quality-review` | `post-review` | all (quick: append `--tier quick`) |
|
|
363
372
|
| test-gen | `quality-auto-test {phase}` | `quality-auto-test` | — | full / standard if coverage<80% |
|
|
364
373
|
| test | `quality-test {phase}` | `quality-test` | `post-test` | full, standard |
|
|
374
|
+
| frontend-verify | `quality-test {phase} --frontend-verify` | `quality-test --frontend-verify` | `post-frontend-verify` | all(**仅当 phase 交付 UI 时插入**:检出 `dashboard/` 或 UI 关键词 `landing\|page\|dashboard\|frontend\|UI\|component\|界面`) |
|
|
365
375
|
| milestone-audit | `maestro-milestone-audit` | *(same)* | — | all |
|
|
366
376
|
| goal-audit | *(decision-only)* | *(same)* | `post-goal-audit` | all (only if decomposed) |
|
|
367
377
|
| milestone-complete | `maestro-milestone-complete` | *(same)* | `post-milestone` | all |
|
|
@@ -376,6 +386,7 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
|
|
|
376
386
|
2. **跳过已完成**:跳过当前 milestone+phase 下已有 completed artifact 的 stage(按 `session.phase` 过滤);unified 按 milestone 过滤
|
|
377
387
|
3. **quality_mode 过滤**:按 `session.quality_mode` 排除不匹配 stage
|
|
378
388
|
3.5. **grill auto_confirm 跳过**:`auto_confirm == true` 时删除 `grill` stage(grill 为交互式苏格拉底拷问,不支持自动模式);brainstorm args 不含 `--from grill:*`
|
|
389
|
+
3.6. **frontend-verify UI 门控**:仅当当前 phase 交付前端(检出 `dashboard/` 目录,或 phase 目标/计划含 UI 关键词 `landing|page|dashboard|frontend|UI|component|界面`)时保留 `frontend-verify` stage + `post-frontend-verify` decision;纯后端 phase 删除该 stage
|
|
379
390
|
4. **决策节点**:每个 Decision after 非空的 stage 之后插入 `{ decision: "<gate>", retry_count: 0, max_retries: 2, command_scope: null, command_path: null }`
|
|
380
391
|
5. **goal-audit 插入**:`task_decomposition` 存在时,在最后一个 evidence-producing stage(execute/review/test)之后、`milestone-complete` 之前插入 `decision:post-goal-audit`
|
|
381
392
|
6. **终点硬约束**:chain 以 `milestone-complete` 结尾
|
|
@@ -390,13 +401,16 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
|
|
|
390
401
|
- **不在 build 阶段读取 .md 内容**;`<required_reading>` / `<deferred_reading>` 解析与加载由 `maestro ralph next` CLI 在执行期完成
|
|
391
402
|
10. **每个 step 初始化** `completion_confirmed: false`, `completion_status: null`, `completion_evidence: null`, `deferred_reads: []`, `load: null`(由 `ralph next` 写入)
|
|
392
403
|
11. **scope_verdict gating**(仅当 chain 起点 = `analyze-macro`):
|
|
393
|
-
- `scope_verdict
|
|
394
|
-
- `
|
|
395
|
-
- `scope_verdict == unknown` → 默认
|
|
404
|
+
- `scope_verdict == large` **且** `wants_roadmap` → 保留 `roadmap` + `analyze`;`plan` 选 phase 列(`{phase}`)
|
|
405
|
+
- 其余(`medium` / `small`,或 `large` 但非 `wants_roadmap`)→ 跳过 `roadmap` + `analyze` 两 stage;`plan` 选 standalone 列(`--from analyze:{analyze_macro_id}`),不带 `{phase}`
|
|
406
|
+
- `scope_verdict == unknown` → 默认 standalone(非 roadmap)路径;由 `post-analyze-scope` 决策节点在 macro analyze 完成后纠正(A_APPLY_SCOPE_VERDICT)
|
|
396
407
|
12. **--from 自动注入**:
|
|
397
408
|
- `analyze_macro_id` 存在且当前 step 是 `roadmap` → args 改为 `--from analyze:{analyze_macro_id}`
|
|
398
|
-
- `analyze_macro_id`
|
|
409
|
+
- `analyze_macro_id` 存在且当前 `plan` step 处于 standalone 列(即非 wants_roadmap 路径:`medium`/`small`,或 `large` 但非 `wants_roadmap`)→ args 改为 `--from analyze:{analyze_macro_id}`
|
|
399
410
|
- `blueprint_id` 存在 → 当前 step 是 `plan` → args 改为 `--from blueprint:{blueprint_id}`(优先级低于 phase 数字参数)
|
|
411
|
+
- **phase-level deferred chaining**(独立模式,step 含 `{phase}` 占位符):build 阶段前序 artifact 尚未产出,由 A_RESOLVE_ARGS(ralph-execute)运行时从 state.json 查找同 phase+milestone 最新 completed artifact 注入:
|
|
412
|
+
- `plan` step → `--from analyze:{phase_analyze_id}`,写 `source_artifact_ref`
|
|
413
|
+
- `execute` step → `--dir {plan_path}`(现有逻辑),写 `source_artifact_ref = "plan:{id}"`
|
|
400
414
|
- 写入 `step.source_artifact_ref` 以便审计
|
|
401
415
|
13. **D-007 Milestone-ref 标注**:每个含 `{phase}` 占位符的 step → `step.milestone_id = session.milestone`(由 A_RESOLVE_PHASE 反查得出),禁止读 `current_milestone`
|
|
402
416
|
14. **动态插入步骤**(A_APPLY_*)同样应用规则 7-13
|
|
@@ -419,6 +433,7 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
|
|
|
419
433
|
| post-business-test | .tests/auto-test/report.json |
|
|
420
434
|
| post-review | review.json |
|
|
421
435
|
| post-test | uat.md, .tests/test-results.json |
|
|
436
|
+
| post-frontend-verify | e2e-results.json |
|
|
422
437
|
4. Check artifact for confidence section → include as signal
|
|
423
438
|
5. Execute delegate (run_in_background, STOP, wait for callback):
|
|
424
439
|
```
|
|
@@ -520,14 +535,14 @@ Runs only when `task_decomposition` present.
|
|
|
520
535
|
|
|
521
536
|
由 `post-analyze-scope` 触发,依据 `session.scope_verdict` 重塑下游链路。
|
|
522
537
|
|
|
523
|
-
1. 读 `session.scope_verdict`
|
|
524
|
-
2. 路径 A(`large
|
|
525
|
-
3. 路径 B(`medium` / `small`):
|
|
538
|
+
1. 读 `session.scope_verdict` + `session.wants_roadmap`
|
|
539
|
+
2. 路径 A(`large` 且 `wants_roadmap`):保持当前链(roadmap+analyze);为后续 `roadmap` step 注入 `--from analyze:{analyze_macro_id}`;为后续 `plan` step 选 phase 列;继续推进
|
|
540
|
+
3. 路径 B(`medium` / `small`,或 `large` 但非 `wants_roadmap`):
|
|
526
541
|
- 删除 `goal-audit` 之前所有未完成的 `roadmap` + `analyze` (phase) step
|
|
527
542
|
- 把下一个未完成的 `plan` step 改为 `maestro-plan --from analyze:{analyze_macro_id}`,去掉 `{phase}`,`source_artifact_ref = analyze:{analyze_macro_id}`
|
|
528
543
|
- 后续 `execute` 等沿用同一 standalone scope(不带 `{phase}`,由 plan 写出的 task 列表驱动)
|
|
529
544
|
4. 路径 C(`unknown`):
|
|
530
|
-
- 非 auto_confirm → ask_question 二选一(
|
|
545
|
+
- 非 auto_confirm → ask_question 二选一(roadmap 多发布 / 单一计划);auto_confirm → 默认路径 B(单一计划,不引入 roadmap)
|
|
531
546
|
5. Reindex steps,标 decision completed,write status.json
|
|
532
547
|
6. Display: ◆ Scope verdict: {verdict} → {kept|collapsed to standalone via analyze:{ANL_ID}}
|
|
533
548
|
|
|
@@ -577,6 +592,7 @@ Runs only when `task_decomposition` present.
|
|
|
577
592
|
"quality_mode": "standard", // "full" | "standard" | "quick"
|
|
578
593
|
"planning_mode": "independent", // "unified" | "independent"
|
|
579
594
|
"scope_verdict": null, // "large" | "medium" | "small" | "unknown" | null
|
|
595
|
+
"wants_roadmap": false, // roadmap opt-in:--roadmap | 多发布 intent | roadmap.md 已存在
|
|
580
596
|
"analyze_macro_id": null, // "ANL-xxx" 来自最新 macro analyze
|
|
581
597
|
"blueprint_id": null, // "BLP-xxx" 若存在
|
|
582
598
|
"cli_tool": "claude", "passed_gates": [],
|
|
@@ -668,6 +684,15 @@ quality-test {phase}
|
|
|
668
684
|
decision:post-test {retry+1}
|
|
669
685
|
```
|
|
670
686
|
|
|
687
|
+
**post-frontend-verify:** (UI 写端点未接线/不可用时)
|
|
688
|
+
```
|
|
689
|
+
quality-debug --from-frontend-verify "{gap_summary}"
|
|
690
|
+
maestro-plan --gaps {phase}
|
|
691
|
+
maestro-execute {phase}
|
|
692
|
+
quality-test {phase} --frontend-verify
|
|
693
|
+
decision:post-frontend-verify {retry+1}
|
|
694
|
+
```
|
|
695
|
+
|
|
671
696
|
**post-goal-audit:** (per unmet sub-goal group)
|
|
672
697
|
```
|
|
673
698
|
# for each unmet sub-goal G{n}, scoped to target_phase:
|
|
@@ -716,12 +741,13 @@ decision:post-goal-audit {retry+1}
|
|
|
716
741
|
- [ ] Intent overrides 识别 grill / brainstorm / blueprint / analyze-macro
|
|
717
742
|
- [ ] auto_confirm=true 时 grill stage 跳过(交互式拷问不支持自动模式)
|
|
718
743
|
- [ ] A_RESOLVE_SCOPE_VERDICT 读 macro analyze conclusions.scope_verdict,写入 session.scope_verdict + analyze_macro_id
|
|
719
|
-
- [ ] 链路起点 = analyze-macro 时:large→roadmap+analyze+plan(phase)
|
|
744
|
+
- [ ] 链路起点 = analyze-macro 时:large+wants_roadmap→roadmap+analyze+plan(phase);其余(含 large 默认/medium/small)→直跳 plan --from analyze:{ANL_ID}(跳过 roadmap+analyze)
|
|
720
745
|
- [ ] post-analyze-scope decision 节点在 macro analyze 之后插入;A_SCOPE_EVALUATE/A_APPLY_SCOPE_VERDICT 重塑链路
|
|
721
746
|
- [ ] plan step args 支持三路径:`{phase}` / `--from analyze:{ANL_ID}` / `--from blueprint:{BLP_ID}`,写入 step.source_artifact_ref
|
|
722
747
|
- [ ] roadmap step args 自动注入 `--from analyze:{analyze_macro_id}`(若存在)
|
|
723
748
|
- [ ] artifact 过滤按 session.phase;unified 按 milestone
|
|
724
749
|
- [ ] quality_mode 由 A_DETERMINE_QUALITY_MODE 决定,过滤 build steps
|
|
750
|
+
- [ ] frontend-verify stage 仅在 phase 交付 UI 时插入(test 后、milestone-audit 前);post-frontend-verify 走 quality-gate 评估,evidence=e2e-results.json
|
|
725
751
|
- [ ] Decomposition: broad intent ≤3 question clarify;narrow auto-derive
|
|
726
752
|
- [ ] status.json 唯一真源:boundary_contract + execution_criteria + task_decomposition;无外部清单
|
|
727
753
|
- [ ] 执行 step 含 `command_scope` + `command_path`(通过 `maestro ralph skills --platform agy --json --quiet` 预校验,project 覆盖 global);decision step 通过 `step.decision` 字段标识
|
|
@@ -735,5 +761,8 @@ decision:post-goal-audit {retry+1}
|
|
|
735
761
|
- [ ] Chain 必须以 `milestone-complete` 结尾
|
|
736
762
|
- [ ] Decision nodes 由 maestro delegate --role analyze 评估
|
|
737
763
|
- [ ] Ralph 不执行 step,只 evaluate;Skill("maestro-ralph-execute") handoff
|
|
764
|
+
- [ ] Phase-level deferred chaining:plan/execute step 的 `--from`/`--dir` 注入由 A_RESOLVE_ARGS(ralph-execute)运行时完成;build 阶段标记意图,不预知 artifact ID
|
|
765
|
+
- [ ] Phase-level plan step 运行时获得 `--from analyze:{phase_analyze_id}`(由 ralph-execute 从 state.json 查找注入)
|
|
766
|
+
- [ ] Phase-level execute step 运行时获得 `source_artifact_ref = "plan:{id}"`
|
|
738
767
|
|
|
739
768
|
</appendix>
|
|
@@ -132,19 +132,44 @@ S_FALLBACK:
|
|
|
132
132
|
| maestro-brainstorm | topic | `"{intent}"` |
|
|
133
133
|
| maestro-roadmap | description | `"{intent}"` |
|
|
134
134
|
| maestro-analyze | phase or topic | `{phase}` or `"{intent}"` |
|
|
135
|
-
| maestro-plan | phase or --dir |
|
|
136
|
-
| maestro-execute | phase or --dir |
|
|
135
|
+
| maestro-plan | phase, --from, or --dir | see --from auto-injection below |
|
|
136
|
+
| maestro-execute | phase or --dir | see --from auto-injection below |
|
|
137
137
|
| quality-debug | gap context | Read previous step's error/gap |
|
|
138
138
|
| quality-* | phase | `{phase}` |
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
**--from auto-injection (phase-level artifact chaining):**
|
|
141
|
+
|
|
142
|
+
Phase-level steps 在 build 阶段无法预知前序 artifact ID。A_RESOLVE_ARGS 运行时从 state.json 查找并注入显式引用,打通 analyze→plan→execute 数据管道:
|
|
143
|
+
|
|
141
144
|
```
|
|
142
|
-
Read state.json
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
Read state.json.artifacts(含 milestone_history 内归档 artifacts)
|
|
146
|
+
→ filter by milestone={session.milestone} + phase={session.phase} + status=="completed"
|
|
147
|
+
|
|
148
|
+
plan step(含 {phase} 占位符,args 无 --from 且无 --dir):
|
|
149
|
+
1. 查同 phase+milestone 最新 completed type=="analyze" artifact → id = ANL-xxx
|
|
150
|
+
2. 命中 → args 追加 --from analyze:{id}
|
|
151
|
+
3. 写 step.source_artifact_ref = "analyze:{id}"
|
|
152
|
+
|
|
153
|
+
execute step(含 {phase} 占位符,args 无 --dir):
|
|
154
|
+
1. 查同 phase+milestone 最新 completed type=="plan" artifact → id = PLN-xxx, path = scratch/...
|
|
155
|
+
2. 命中 → args 追加 --dir .workflow/scratch/{path}
|
|
156
|
+
3. 写 step.source_artifact_ref = "plan:{id}"
|
|
145
157
|
```
|
|
146
158
|
|
|
147
|
-
|
|
159
|
+
兜底:查询无结果 → 不注入,由命令自身 discovery 逻辑处理。已有 `--from` 或 `--dir` 的 step 不覆盖。
|
|
160
|
+
|
|
161
|
+
**Goal context injection:**
|
|
162
|
+
|
|
163
|
+
当 step.goal_ref 非空且 session.task_decomposition 存在时:
|
|
164
|
+
```
|
|
165
|
+
goal = session.task_decomposition.find(g => g.id == step.goal_ref)
|
|
166
|
+
if goal:
|
|
167
|
+
goal_snippet = { id: goal.id, goal: goal.goal, done_when: goal.done_when,
|
|
168
|
+
boundary: goal.boundary, evidence: goal.evidence }
|
|
169
|
+
→ 传递给 A_EXEC_STEP 用于 inline execution 前注入(见 step 2 goal context pre-injection)
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Write enriched args + source_artifact_ref back to status.json.
|
|
148
173
|
|
|
149
174
|
### A_EXEC_DECISION
|
|
150
175
|
|
|
@@ -160,13 +185,24 @@ Write enriched args back to status.json.
|
|
|
160
185
|
- 退出码 2 → 交给 S_LOCATE
|
|
161
186
|
- 退出码 3 → active_step_index 已被占用
|
|
162
187
|
- 退出码 1 → pause session
|
|
163
|
-
2. **
|
|
164
|
-
|
|
188
|
+
2. **Goal context pre-injection** — 若 A_RESOLVE_ARGS 产出了 `goal_snippet`(step.goal_ref 非空),在 ralph next stdout prompt **顶部前置**以下 block,使执行命令感知当前子目标和执行约束:
|
|
189
|
+
```
|
|
190
|
+
<goal_context>
|
|
191
|
+
Sub-goal: {goal.id} — {goal.goal}
|
|
192
|
+
Done when: {goal.done_when}
|
|
193
|
+
Boundary: {goal.boundary}
|
|
194
|
+
Evidence target: {goal.evidence}
|
|
195
|
+
Execution criteria: {session.execution_criteria joined by '; '}
|
|
196
|
+
</goal_context>
|
|
197
|
+
```
|
|
198
|
+
无 goal_snippet 时跳过此步。goal_context block 不替换 ralph next 的 stdout 内容,仅在其前方拼接。
|
|
199
|
+
3. **Inline execution** — 按 stdout(含 goal_context 前置)执行;deferred_reading 按需 Read
|
|
200
|
+
4. **Complete**:
|
|
165
201
|
- `run_command("maestro ralph complete N --status DONE [--evidence <path>]")`
|
|
166
202
|
- `run_command("maestro ralph complete N --status DONE_WITH_CONCERNS --concerns \"...\"")`
|
|
167
203
|
- `run_command("maestro ralph retry N")`
|
|
168
204
|
- `run_command("maestro ralph complete N --status BLOCKED --reason \"...\"")`
|
|
169
|
-
|
|
205
|
+
5. **Propagate context signals** — 关键信号 (`PHASE: N` / `scratch_dir: path` / `BLP-xxx`) 写入 `status.json.context`
|
|
170
206
|
|
|
171
207
|
完成后 S_LOCATE 触发 `view_file(AbsolutePath="<agy-skills-dir>/maestro-ralph-execute/SKILL.md") + execute inline` 自调用。
|
|
172
208
|
|
|
@@ -242,5 +278,10 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
|
|
|
242
278
|
- [ ] Context signals 由执行 step 显式写回 status.json.context(非 ralph-execute 内嵌扫描)
|
|
243
279
|
- [ ] Auto mode: retry 一次后 pause;interactive 提供 retry/skip/abort
|
|
244
280
|
- [ ] 自调用持续到全部 completion_confirmed 或 paused
|
|
281
|
+
- [ ] --from auto-injection:phase-level plan step 运行时从 state.json 查找同 phase+milestone 最新 completed analyze artifact → 注入 `--from analyze:{id}`,写 `source_artifact_ref`
|
|
282
|
+
- [ ] --from auto-injection:phase-level execute step 运行时查找同 phase+milestone 最新 completed plan artifact → 注入 `--dir`,写 `source_artifact_ref`
|
|
283
|
+
- [ ] Goal context injection:step.goal_ref 非空时从 task_decomposition 提取 goal_snippet,A_EXEC_STEP 在 ralph next stdout 顶部前置 `<goal_context>` block
|
|
284
|
+
- [ ] Goal context 包含 sub-goal description、done_when、boundary、evidence、execution_criteria
|
|
285
|
+
- [ ] 已有 `--from` 或 `--dir` 的 step 不被 auto-injection 覆盖
|
|
245
286
|
|
|
246
287
|
</appendix>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: quality-test
|
|
3
3
|
description: Use when implementation needs user acceptance testing with interactive verification and gap closure
|
|
4
|
-
argument-hint: [phase] [--smoke] [--auto-fix]
|
|
4
|
+
argument-hint: [phase] [--smoke] [--auto-fix] [--frontend-verify]
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- ask_question
|
|
7
7
|
- define_subagent
|
|
@@ -29,6 +29,31 @@ Flags, artifact context resolution, and output directory format defined in workf
|
|
|
29
29
|
</context>
|
|
30
30
|
|
|
31
31
|
<execution>
|
|
32
|
+
**Mode select:** `--frontend-verify` → 走下方 **Frontend Verify Mode**(确定性浏览器 smoke,**不是**对话式 UAT);否则 Follow '~/.maestro/workflows/test.md' completely.
|
|
33
|
+
|
|
34
|
+
### Frontend Verify Mode (`--frontend-verify`)
|
|
35
|
+
|
|
36
|
+
补 ralph 链路缺失的运行时可用性门:确定性验证每个用户可观测能力真正经 UI 可触发,避免"后端绿灯=完成"。
|
|
37
|
+
|
|
38
|
+
1. **Resolve targets**: 读 phase 的 `plan.json` / `.task/TASK-*.json`,提取所有 `[UI-observable]` convergence.criteria(plan 阶段产出);缺失则枚举后端写端点(POST/PUT/PATCH/DELETE)作为待验证清单。
|
|
39
|
+
2. **Start app**: `next start`(或从 dashboard/package.json 解析的既有启动脚本);启动失败 → E003。
|
|
40
|
+
3. **Drive browser**: 用 chrome-devtools MCP(`mcp__claude_dms3-chrome-devtools__*`:navigate / click / fill / take_snapshot / list_network_requests)逐条执行每个 `[UI-observable]` 流程,断言:UI 入口存在且可触发 → 对应写请求返回 2xx → DOM 出现预期结果。
|
|
41
|
+
4. **Write evidence**: 产出 `e2e-results.json`(结构见下),逐条记 pass/fail + 证据(网络状态码、快照引用)。**确定性断言,禁止"无人应答=全过"**。
|
|
42
|
+
5. **Verdict**: 任一 `[UI-observable]` fail 或写端点无 UI 入口 → STATUS=NEEDS_RETRY(ralph 经 post-frontend-verify 触发 Fix-Loop);全过 → DONE。
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
// e2e-results.json
|
|
46
|
+
{ "phase": "{phase}", "app_url": "http://localhost:3000",
|
|
47
|
+
"checks": [ { "criterion": "[UI-observable] ...", "ui_entry": "<selector/route>",
|
|
48
|
+
"request": "POST /api/notes", "status": 201, "dom_assert": "list shows new item",
|
|
49
|
+
"passed": true } ],
|
|
50
|
+
"summary": { "total": 0, "passed": 0, "failed": 0 }, "verdict": "pass|fail" }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Ralph-invoked 完成:`maestro ralph complete <idx> --status {STATUS} --evidence e2e-results.json`。
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
32
57
|
Follow '~/.maestro/workflows/test.md' completely.
|
|
33
58
|
|
|
34
59
|
### Phase Gates (MANDATORY, BLOCKING)
|
|
@@ -146,4 +171,5 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
|
|
|
146
171
|
- [ ] Gaps updated with root_cause, fix_direction, affected_files
|
|
147
172
|
- [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
|
|
148
173
|
- [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
|
|
174
|
+
- [ ] `--frontend-verify`: 每条 [UI-observable] criterion 经真实浏览器断言,产出 e2e-results.json;任一 fail → NEEDS_RETRY(不放行)
|
|
149
175
|
</success_criteria>
|
|
@@ -117,6 +117,7 @@ You are a collaborative planner that works within a pre-allocated task ID range.
|
|
|
117
117
|
- Task files must use `convergence.criteria` (array of testable strings), not `done_when`
|
|
118
118
|
- files must use `[{path, action, target, change}]` format, not `["path"]`
|
|
119
119
|
- Each task must have convergence.criteria with min 2 testable conditions
|
|
120
|
+
- Vertical slice for UI features: deliver backend + frontend + integration as one end-to-end capability per wave (no backend-only/frontend-only split); each UI delivery wave needs ≥1 task with a `[UI-observable]` convergence criterion (verifiable user-facing flow)
|
|
120
121
|
- Each task must have `read_first[]` — files the executor MUST read before implementation
|
|
121
122
|
- `action` must contain concrete values (function signatures, config keys, import paths), not just a verb
|
|
122
123
|
- Task definitions follow the same schema as workflow-planner output
|
|
@@ -160,11 +160,13 @@ These rules prevent over-splitting that wastes tokens on unnecessary agent spawn
|
|
|
160
160
|
- **Low** (single file, single concern, zero cross-module): **1 task**
|
|
161
161
|
- **Medium** (multiple files OR integration point): **1-4 tasks**
|
|
162
162
|
- **High** (cross-module, architectural, new subsystem): **4-10 tasks**
|
|
163
|
+
8. **Vertical slice for UI features (MANDATORY)** — 含用户界面的功能必须作为端到端纵向切片交付一个用户可观测能力(后端 endpoint + 前端 wiring + 集成同属一个交付波次),**禁止**拆成 backend-only / frontend-only 任务或按层切波。每个交付波次须闭合一个可用能力,而非一层。
|
|
163
164
|
|
|
164
165
|
## Constraints
|
|
165
166
|
- Each task must be substantial (15-60 min of work); group related changes, avoid file-per-task
|
|
166
167
|
- Each task must have convergence.criteria (min 2 testable conditions)
|
|
167
168
|
- convergence.criteria must be specific and testable (not "works correctly")
|
|
169
|
+
- For UI features, each delivery wave MUST have ≥1 task with a `[UI-observable]` convergence criterion — a verifiable user-facing flow (e.g. `[UI-observable] User can create a Note in the UI and see it in the list`). Backend-only criteria do NOT satisfy this; the runtime check is enforced by ralph's frontend-verify gate.
|
|
168
170
|
- Each task must have `read_first[]` — files the executor MUST read before implementation (the file being modified + source-of-truth files)
|
|
169
171
|
- `action` must contain concrete values (function signatures, config keys, import paths), not just a verb like "Implement"
|
|
170
172
|
- files must use array format `[{path, action, target, change}]`
|
|
@@ -88,7 +88,8 @@ Follow '~/.maestro/workflows/plan.md' completely.
|
|
|
88
88
|
- REQUIRED: Plan-checker passed (or minor issues acknowledged).
|
|
89
89
|
- REQUIRED: Confidence scored with 5-dimension factor model.
|
|
90
90
|
- REQUIRED: Pressure pass completed on highest-complexity task.
|
|
91
|
-
-
|
|
91
|
+
- REQUIRED: If plan touches UI (检出 `dashboard/` 或 UI 关键词 `landing|page|dashboard|frontend|UI|component|界面`), each delivery wave has ≥1 `[UI-observable]` convergence criterion (vertical-slice delivery, not backend-only).
|
|
92
|
+
- BLOCKED if: plan-checker found critical issues, OR UI plan missing `[UI-observable]` coverage — fix plan before presenting to user.
|
|
92
93
|
|
|
93
94
|
**GATE P5 → Completion: User Confirmation → Done**
|
|
94
95
|
- REQUIRED: User confirmation captured (execute/modify/cancel).
|
|
@@ -213,6 +214,7 @@ Status verdicts:
|
|
|
213
214
|
- [ ] .task/TASK-*.json files created for each task
|
|
214
215
|
- [ ] Every task has `read_first[]` with at least the file being modified + source of truth files
|
|
215
216
|
- [ ] Every task has `convergence.criteria[]` with grep-verifiable conditions (no subjective language)
|
|
217
|
+
- [ ] UI plans: each delivery wave has ≥1 `[UI-observable]` convergence criterion (vertical slice; verified at runtime by ralph frontend-verify gate)
|
|
216
218
|
- [ ] Every task `action` and `implementation` contain concrete values (no "align X with Y")
|
|
217
219
|
- [ ] Plan confidence scored in P4 with 5-dimension factor model
|
|
218
220
|
- [ ] Plan readiness gate checked before P4.5 collision detection
|
|
@@ -134,19 +134,44 @@ S_FALLBACK:
|
|
|
134
134
|
| maestro-brainstorm | topic | `"{intent}"` |
|
|
135
135
|
| maestro-roadmap | description | `"{intent}"` |
|
|
136
136
|
| maestro-analyze | phase or topic | `{phase}` or `"{intent}"` |
|
|
137
|
-
| maestro-plan | phase or --dir |
|
|
138
|
-
| maestro-execute | phase or --dir |
|
|
137
|
+
| maestro-plan | phase, --from, or --dir | see --from auto-injection below |
|
|
138
|
+
| maestro-execute | phase or --dir | see --from auto-injection below |
|
|
139
139
|
| quality-debug | gap context | Read previous step's error/gap |
|
|
140
140
|
| quality-* | phase | `{phase}` |
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
**--from auto-injection (phase-level artifact chaining):**
|
|
143
|
+
|
|
144
|
+
Phase-level steps 在 build 阶段无法预知前序 artifact ID。A_RESOLVE_ARGS 运行时从 state.json 查找并注入显式引用,打通 analyze→plan→execute 数据管道:
|
|
145
|
+
|
|
143
146
|
```
|
|
144
|
-
Read state.json
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
Read state.json.artifacts(含 milestone_history 内归档 artifacts)
|
|
148
|
+
→ filter by milestone={session.milestone} + phase={session.phase} + status=="completed"
|
|
149
|
+
|
|
150
|
+
plan step(含 {phase} 占位符,args 无 --from 且无 --dir):
|
|
151
|
+
1. 查同 phase+milestone 最新 completed type=="analyze" artifact → id = ANL-xxx
|
|
152
|
+
2. 命中 → args 追加 --from analyze:{id}
|
|
153
|
+
3. 写 step.source_artifact_ref = "analyze:{id}"
|
|
154
|
+
|
|
155
|
+
execute step(含 {phase} 占位符,args 无 --dir):
|
|
156
|
+
1. 查同 phase+milestone 最新 completed type=="plan" artifact → id = PLN-xxx, path = scratch/...
|
|
157
|
+
2. 命中 → args 追加 --dir .workflow/scratch/{path}
|
|
158
|
+
3. 写 step.source_artifact_ref = "plan:{id}"
|
|
147
159
|
```
|
|
148
160
|
|
|
149
|
-
|
|
161
|
+
兜底:查询无结果 → 不注入,由命令自身 discovery 逻辑处理。已有 `--from` 或 `--dir` 的 step 不覆盖。
|
|
162
|
+
|
|
163
|
+
**Goal context injection:**
|
|
164
|
+
|
|
165
|
+
当 step.goal_ref 非空且 session.task_decomposition 存在时:
|
|
166
|
+
```
|
|
167
|
+
goal = session.task_decomposition.find(g => g.id == step.goal_ref)
|
|
168
|
+
if goal:
|
|
169
|
+
goal_snippet = { id: goal.id, goal: goal.goal, done_when: goal.done_when,
|
|
170
|
+
boundary: goal.boundary, evidence: goal.evidence }
|
|
171
|
+
→ 传递给 A_EXEC_STEP 用于 inline execution 前注入(见 step 2 goal context pre-injection)
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Write enriched args + source_artifact_ref back to status.json.
|
|
150
175
|
|
|
151
176
|
### A_EXEC_DECISION
|
|
152
177
|
|
|
@@ -162,13 +187,24 @@ Write enriched args back to status.json.
|
|
|
162
187
|
- 退出码 2 → 交给 S_LOCATE
|
|
163
188
|
- 退出码 3 → active_step_index 已被占用
|
|
164
189
|
- 退出码 1 → pause session
|
|
165
|
-
2. **
|
|
166
|
-
|
|
190
|
+
2. **Goal context pre-injection** — 若 A_RESOLVE_ARGS 产出了 `goal_snippet`(step.goal_ref 非空),在 ralph next stdout prompt **顶部前置**以下 block,使执行命令感知当前子目标和执行约束:
|
|
191
|
+
```
|
|
192
|
+
<goal_context>
|
|
193
|
+
Sub-goal: {goal.id} — {goal.goal}
|
|
194
|
+
Done when: {goal.done_when}
|
|
195
|
+
Boundary: {goal.boundary}
|
|
196
|
+
Evidence target: {goal.evidence}
|
|
197
|
+
Execution criteria: {session.execution_criteria joined by '; '}
|
|
198
|
+
</goal_context>
|
|
199
|
+
```
|
|
200
|
+
无 goal_snippet 时跳过此步。goal_context block 不替换 ralph next 的 stdout 内容,仅在其前方拼接。
|
|
201
|
+
3. **Inline execution** — 按 stdout(含 goal_context 前置)执行;deferred_reading 按需 Read
|
|
202
|
+
4. **Complete**:
|
|
167
203
|
- `Bash("maestro ralph complete N --status DONE [--evidence <path>]")`
|
|
168
204
|
- `Bash("maestro ralph complete N --status DONE_WITH_CONCERNS --concerns \"...\"")`
|
|
169
205
|
- `Bash("maestro ralph retry N")`
|
|
170
206
|
- `Bash("maestro ralph complete N --status BLOCKED --reason \"...\"")`
|
|
171
|
-
|
|
207
|
+
5. **Propagate context signals** — 关键信号 (`PHASE: N` / `scratch_dir: path` / `BLP-xxx`) 写入 `status.json.context`
|
|
172
208
|
|
|
173
209
|
完成后 S_LOCATE 触发 `Skill({ skill: "maestro-ralph-execute" })` 自调用。
|
|
174
210
|
|
|
@@ -244,5 +280,10 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
|
|
|
244
280
|
- [ ] Context signals 由执行 step 显式写回 status.json.context(非 ralph-execute 内嵌扫描)
|
|
245
281
|
- [ ] Auto mode: retry 一次后 pause;interactive 提供 retry/skip/abort
|
|
246
282
|
- [ ] 自调用持续到全部 completion_confirmed 或 paused
|
|
283
|
+
- [ ] --from auto-injection:phase-level plan step 运行时从 state.json 查找同 phase+milestone 最新 completed analyze artifact → 注入 `--from analyze:{id}`,写 `source_artifact_ref`
|
|
284
|
+
- [ ] --from auto-injection:phase-level execute step 运行时查找同 phase+milestone 最新 completed plan artifact → 注入 `--dir`,写 `source_artifact_ref`
|
|
285
|
+
- [ ] Goal context injection:step.goal_ref 非空时从 task_decomposition 提取 goal_snippet,A_EXEC_STEP 在 ralph next stdout 顶部前置 `<goal_context>` block
|
|
286
|
+
- [ ] Goal context 包含 sub-goal description、done_when、boundary、evidence、execution_criteria
|
|
287
|
+
- [ ] 已有 `--from` 或 `--dir` 的 step 不被 auto-injection 覆盖
|
|
247
288
|
|
|
248
289
|
</appendix>
|