ralphflow-dsh 2.3.0 → 2.4.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 (87) hide show
  1. package/README.md +47 -21
  2. package/graphs/codewiki/format.md +362 -0
  3. package/graphs/codewiki/graph.yaml +39 -0
  4. package/graphs/codewiki/nodes/assemble.md +24 -0
  5. package/graphs/codewiki/nodes/core-pages.md +17 -0
  6. package/graphs/codewiki/nodes/module-pages.md +18 -0
  7. package/graphs/codewiki/nodes/operations-pages.md +18 -0
  8. package/graphs/codewiki/nodes/survey.md +22 -0
  9. package/lib/asset-path.d.ts +59 -0
  10. package/lib/asset-path.js +181 -0
  11. package/lib/assets.d.ts +42 -0
  12. package/lib/assets.js +86 -0
  13. package/lib/client/phase.d.ts +29 -0
  14. package/lib/client/phase.js +86 -0
  15. package/lib/client/selection.d.ts +28 -0
  16. package/lib/client/selection.js +9 -0
  17. package/lib/client/status-source.d.ts +3 -1
  18. package/lib/client/status-source.js +3 -2
  19. package/lib/client/status.js +49 -13
  20. package/lib/client/viewer.d.ts +18 -0
  21. package/lib/client/viewer.js +540 -0
  22. package/lib/client.js +1159 -64
  23. package/lib/engine.d.ts +111 -47
  24. package/lib/engine.js +482 -334
  25. package/lib/facade.d.ts +175 -0
  26. package/lib/facade.js +553 -0
  27. package/lib/graph/agent-registry.d.ts +4 -0
  28. package/lib/graph/agent-registry.js +20 -0
  29. package/lib/graph/asset.d.ts +47 -0
  30. package/lib/graph/asset.js +276 -0
  31. package/lib/graph/assets.d.ts +47 -0
  32. package/lib/graph/assets.js +224 -0
  33. package/lib/graph/branches.d.ts +9 -0
  34. package/lib/graph/branches.js +13 -0
  35. package/lib/graph/check.d.ts +23 -0
  36. package/lib/graph/check.js +46 -0
  37. package/lib/graph/engine.d.ts +55 -0
  38. package/lib/graph/engine.js +2002 -0
  39. package/lib/graph/report.d.ts +9 -0
  40. package/lib/graph/report.js +117 -0
  41. package/lib/graph/state.d.ts +244 -0
  42. package/lib/graph/state.js +358 -0
  43. package/lib/graph/workspace.d.ts +68 -0
  44. package/lib/graph/workspace.js +262 -0
  45. package/lib/index.js +150 -47
  46. package/lib/owner.d.ts +34 -0
  47. package/lib/owner.js +49 -0
  48. package/lib/paths.d.ts +12 -0
  49. package/lib/paths.js +44 -0
  50. package/lib/pause.d.ts +12 -0
  51. package/lib/pause.js +19 -0
  52. package/lib/skills.d.ts +18 -31
  53. package/lib/skills.js +88 -44
  54. package/lib/status-contract.d.ts +114 -1
  55. package/lib/status-contract.js +106 -4
  56. package/lib/status-service.d.ts +5 -1
  57. package/lib/status-service.js +8 -1
  58. package/lib/tools.d.ts +14 -6
  59. package/lib/tools.js +90 -62
  60. package/lib/unfinished.d.ts +11 -0
  61. package/lib/unfinished.js +18 -0
  62. package/lib/verifier-preset.d.ts +40 -0
  63. package/lib/verifier-preset.js +126 -0
  64. package/lib/verify.d.ts +64 -10
  65. package/lib/verify.js +287 -77
  66. package/package.json +51 -38
  67. package/skills/ralphflow-create/SKILL.md +32 -0
  68. package/skills/ralphflow-create/graph-authoring.md +85 -0
  69. package/skills/ralphflow-create/matt/LICENSE +21 -0
  70. package/skills/ralphflow-create/matt/SHA256SUMS +6 -0
  71. package/skills/ralphflow-create/matt/SKILL-MECHANICS.md +22 -0
  72. package/skills/ralphflow-create/matt/SOURCE.md +12 -0
  73. package/skills/ralphflow-create/matt/grilling.md +30 -0
  74. package/skills/ralphflow-create/matt/to-spec.md +75 -0
  75. package/skills/ralphflow-create/matt/to-tickets.md +105 -0
  76. package/skills/ralphflow-create/matt/writing-for-agents.md +81 -0
  77. package/skills/ralphflow-create/ralphflow-authoring.md +31 -0
  78. package/skills/ralphflow-create/testing-workflow.md +60 -0
  79. package/skills/ralphflow-create/workflow-authoring.md +137 -0
  80. package/workflows/create-graph/steps/graph.md +17 -0
  81. package/workflows/create-graph/workflow.yaml +77 -0
  82. package/workflows/loop/workflow.yaml +23 -0
  83. package/workflows/spec/workflow.yaml +105 -0
  84. package/lib/create.d.ts +0 -10
  85. package/lib/create.js +0 -147
  86. package/workflows/loop.yaml +0 -45
  87. package/workflows/spec.yaml +0 -110
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: ralphflow-create
3
+ description: 创建或修改 RalphFlow 工作流或 DAG:用户想把流程做成工作流、设计多 agent DAG,或修改现有 Flow/Graph 资产时使用。
4
+ ---
5
+
6
+ # RalphFlow 创建
7
+
8
+ 先判断产物是 Flow 还是 Graph,再走对应分支。两条分支都以「资产已保存、`ralphflow_doctor` 通过、没有启动实例」为完成条件。
9
+
10
+ ## Flow
11
+
12
+ Flow 是顺序状态机,不走 Matt 的 grill/spec/tickets。
13
+
14
+ 1. 问清目标、触发条件、输入、产出和结束条件;只问会改变步骤或验收的决定。
15
+ 2. 读 `workflow-authoring.md`,按它的字段与写法起草;写 DO/CHECK 前读 `matt/writing-for-agents.md`。它只管写法,不引入 Graph 的 grill/spec/tickets。
16
+ 3. 把资产写到项目根的 `.dsh/ralph-flow/workflows/<slug>/workflow.yaml`(项目根 = 从当前目录向上最近的含 `.git` 的祖先目录;没有就用当前目录)。资产目录里可以放 DO/CHECK 引用的契约、模板等资源,这些资源的相对路径按该目录解析;要写出的交付物按 `output` 与产出目录的落点。
17
+ 4. 用 `ralphflow_doctor` 校验,修到全部通过。
18
+ 5. 把路径和用法交给用户;生成的工作流只在用户明确要求时启动。
19
+
20
+ 完成条件:doctor 通过,文件存在,没有启动实例。
21
+
22
+ ## Graph / DAG
23
+
24
+ Graph 用 ticket DAG。启动内置 `create-graph` Flow,由它承载 grill → spec → tickets → graph,以及 spec/tickets 的独立 CHECK 和人工门:
25
+
26
+ `ralphflow_start({ workflow: "create-graph", task: "<用户想法>" })`
27
+
28
+ 然后按它返回的步骤执行;方法由 create-graph 的步骤从 `ralphflow-create` skill 的资源目录读取随包 Matt 参考。
29
+
30
+ 如果你已经在 `create-graph` 的某个步骤中,只执行当前步骤,不再启动新的 `create-graph`。
31
+
32
+ 完成条件:create-graph 完成并给出 Graph 资产路径;没有启动生成的 Graph。
@@ -0,0 +1,85 @@
1
+ # RalphFlow 工作流资产编写
2
+
3
+ 供编写和校验可交付 Graph 工作流资产时参考。结构和有效 CHECK(独立验收)内容,以 `ralphflow_doctor` 的检查为准。
4
+
5
+ - 写任何节点的 DO/CHECK 或其他面向 agent 的文本之前,先读同目录的 [`matt/writing-for-agents.md`](matt/writing-for-agents.md);它是随包唯一权威副本,本文件不复述原则。
6
+ - Flow 资产(`steps` / `on_pass` / `check_voting`)的字段见 [`workflow-authoring.md`](workflow-authoring.md);Graph 与 Flow 字段不混用。
7
+
8
+ ## 结构
9
+
10
+ Graph 资产用与 Flow 相同的 `steps` 数组,每个步骤有 `id`、`desc`、`do`;`output` 是交付文件路径(省略时默认 `<id>.md`),`depends_on` 是前驱步骤 id 数组。上游步骤的 `output` 会自动注入下游的只读材料,**不需要再写 `inputs` 映射**;只表达顺序时也写 `depends_on`。目录名就是启动名(入口固定是 `graph.yaml`),不要再写 `id` 或 `name`。
11
+
12
+ ## 资产目录
13
+
14
+ 资产是一个目录:`graphs/<name>/graph.yaml` 加它引用的资源。**参考根是入口文件所在目录**:DO/CHECK 引用的**资产资源**(契约、页面模板、校验清单)用相对路径按它解析,执行者与验证者的提示词里都会带上同一个目录。所以这些资源放在资产自己的目录里,用 `format.md`、`templates/page.md` 这样的相对路径指向;不要把它们复制进每一步的提示词。这个根只解析资产资源,工作区路径与节点产物仍按各自一节的路径规则。单文件形态 `graphs/<name>.yaml` 仍可加载,参考根是 `graphs/`(兼容形态,共享资源放那里)。
15
+
16
+ ## 入口是地图,做法在资源里
17
+
18
+ 资产入口(`graph.yaml`)先给人看:每一步只留「做什么、交付什么」一句话,让人一眼看懂整条流程。具体做法与验收判据放进资产目录的文件,入口用相对路径指向。
19
+
20
+ - 入口的 `do` 写这一步的目标与交付;动作序列、领域契约、字段表、校验清单放进 `nodes/<id>.md`(或共用的一份 `format.md`)。
21
+ - CHECK 同理:入口写「按 `<文件>` 的验收一节逐条核对并给出证据」,判据正文放文件。
22
+ - 判断该不该外置:把入口单独给人看,他能不能说清每一步在做什么;把入口单独给执行者,它能不能顺指针拿到全部做法。两条都成立就够。
23
+ - 只有一步就能说清的工作(例如内置 `loop`)不拆:入口本身就是全部。
24
+
25
+ 完成条件:入口的每一行都在描述「做什么」;同一份做法只在一个文件里出现。
26
+
27
+ 只有产物工作流中必须与用户讨论某个决定的步骤,才使用 `execution: "main"`;普通的自主工作使用 `background`。顶层 `manual_step` 标记在启用的 CHECK 通过后仍需用户明确审查的步骤。
28
+
29
+ Graph 始终使用 Git 隔离:每个步骤在自己的 worktree 与自己的分支上运行,交卷前把运行级集成分支合进来;引擎只做快进。没有 workspace 开关,也没有并发数字;就绪步骤全部放行,由 DSH 的 agent 并发限制排队。
30
+
31
+ ## 工作区与 Git
32
+
33
+ Graph 需要工作区是 Git 仓库、有 HEAD、且工作区干净。不满足时启动失败,错误提示会要求 AI 先问用户是否初始化;用户同意后由 AI 执行 `git init` / `git add -A` / `git commit -m baseline`,再重新启动。引擎不自动初始化。
34
+
35
+ 方案要写明最终结果在集成分支 `ralphflow/<实例>`(节点分支 `ralphflow-node/<实例>/<节点>`),而不是自动改源 checkout;跑完用 `git log` / `git ls-tree` / `git checkout` 查看。设计 CHECK 必须核对:每个 DO 需要的原生能力在 Git worktree 中真实存在;输出位置和最终可审查位置已经写明。
36
+
37
+ ## 可复用场景
38
+
39
+ 当请求设计的是要在多个项目或主题上运行的流程时,流程资产就是产品。一次性执行设计跳过本分支。
40
+
41
+ 1. 只向用户询问流程目标及其约束。完成条件:每个重要的设计决定都已得到回答或记录为待定选项,且完成设计不需要任何未来的项目、主题、材料或运行值。
42
+ 2. 把每个在不同运行之间会变化的值写进任务约定(DO 里说明这些值从任务文本读取),资产中不出现任何未来的值。完成条件:每个步骤动作都从任务文本读取其变化的值。
43
+ 3. 把流程目标到步骤交付物的映射写进交付产物的 `plan` 字段,在 `goalCoverage` 中重复这份映射。完成条件:每个请求的成果都指明一个已存在的步骤、它的产物、依赖理由和验收路径。
44
+ 4. 在交付边界检查资产的结构、步骤指引、依赖和目标覆盖。完成条件:`ralphflow_doctor` 校验有效,且 `assetAcceptance` 为每个维度记录了可观察的已通过检查。
45
+ 5. 把下一步作为两个明确选项提供:停止并保留资产,或运行一个真实实例。让 `nextStep.started` 和 `generatedWorkflowStarted` 保持 false。完成条件:产物说明只有用户的明确选择才会启动运行。
46
+
47
+ ## 用引用代替复制
48
+
49
+ 让资产只承载流程与验收;可复用的方法正文放在参考资料里。
50
+
51
+ - 当一条规则已经存在于共享参考资料中时,指明该参考资料及其触发条件,让执行者去读;步骤或判据只写依赖这条规则的结果。
52
+ - CHECK 判据保持为用户可查看的验收结果。细节属于方法时,指向共享参考资料;细节属于任务特定结果时,把判据明确写出来。
53
+ - 把多个节点共用的约定放进资产目录里的一份文件(例如 `format.md`),或放进一个上游产物(例如 `CONVENTIONS.md`),并让每个节点指向它。
54
+ - 只有拿不到资产目录的辅助者才需要内联正文;拿到参考根的辅助者按相对路径自己读。
55
+
56
+ 完成条件:每条可复用的规则只有一个归属;方案指明这个归属;没有节点复述它。
57
+
58
+ ## CHECK 的选择
59
+
60
+ Graph 不提供固定的默认 CHECK:每个步骤的独立验收都由资产作者按 writing-for-agents 写成显式判据。
61
+
62
+ - 需要独立验收:写 `check: |` 加可观察、穷尽的判据,每条一行编号(`1. ...`)。判据覆盖该步骤必须交付的所有内容;`ralphflow_doctor` 的「有效 CHECK」会逐条显示。
63
+ - 独立验收没有额外价值:写 `check: null`。报告与查看器会明确显示“CHECK 关闭”,不等于验证通过。
64
+ - 不要写 `check: {mode: default}` 或 `{mode: custom, criteria}`:Graph 的 `check` 是字符串或 `null`,没有默认判据模式。
65
+
66
+ ## 编写顺序
67
+
68
+ 1. 应用方案中的成果映射。完成条件:每个请求的成果都由一个节点交付物承载,并有一条验收路径。
69
+ 2. 先为每个节点写 `nodes/<id>.md`:`## 做什么` 写有序动作,每条带可核查的完成条件;`## 验收` 写这个节点的判据。完成条件:全新的执行者只读这一份就能判断节点何时完成、怎样算通过。
70
+ 3. 把 writing-for-agents 应用到每个 `nodes/<id>.md` 的两节和面向用户的指引。完成条件:指针写明触发条件,每条规则只有一个归属,指引以正面方式陈述目标行为。
71
+ 4. 再组装入口 `graph.yaml`:每个步骤的 `do` 写一句「做什么、交付什么」并指向 `nodes/<id>.md`,`check` 写一句指向该文件「验收」一节的指针;声明依赖、产物和 CHECK 选择。完成条件:入口的每一行都在描述「做什么」,每个指针都指向同目录存在的文件。
72
+ 5. 用 `ralphflow_doctor`(工作区资产路径) 校验该对象。修复每个报告的错误并重新校验。完成条件:`ralphflow_doctor` 报告全部 ✅ 且无告警,每个步骤的有效 CHECK 与方案一致。
73
+ 6. 把资产保存为 `.dsh/ralph-flow/graphs/<slug>/graph.yaml`,把 `nodes/<id>.md` 与 DO/CHECK 引用的契约、模板放在同一目录。完成条件:入口在该路径可读,目录名与启动名一致,每条相对路径都指向同目录里存在的文件。
74
+ 7. 用 `ralphflow_doctor({ "path": ".dsh/ralph-flow/graphs/<slug>/graph.yaml" })` 校验已保存的文件。完成条件:`valid` 为 true,且 doctor 无阻塞项。
75
+ 8. 用 `ralphflow_artifact_write` 写入交付产物:请求、`plan` 文本、`assetPath`、完整的资产、两次校验结果、每个步骤的有效 CHECK、针对保存资产的查看器指引、标记为 `choiceRequired` 且 `started: false` 的 `nextStep` 选项,以及 `generatedWorkflowStarted: false`。可复用场景的交付还要包含 `designKind`、`goalCoverage`、`assetAcceptance` 和 `realRun`。完成条件:产物指明方案文本、资产路径和已保存文件的校验结果,且可复用场景字段满足可复用场景分支;然后调用一次 `ralphflow_submit`。
76
+
77
+ ## 打开已交付的资产
78
+
79
+ 保存后资产会出现在 RalphFlow 只读查看器的 Graph 列表里;让用户打开右侧 RalphFlow 标签页并重新加载即可。编辑资产走常规路径:编辑、doctor 校验、保存、重新加载。
80
+
81
+ ## 交付边界
82
+
83
+ 设计运行以方案和资产收尾。在最终回复的结尾给出两个保存路径、打开工作图的指引,以及作为用户明确选择的下一步:审查工作图、在主会话中请求修改、停止并保留资产,或运行一个真实实例。对于可复用场景,在任务约定里说明真实运行需要随任务提供的值;v1 不提供隔离样例启动。生成的工作流只在那次明确请求之后启动;设计期间不创建任何生成工作流的运行实例。
84
+
85
+ v1 不提供隔离样例启动:用户明确要求运行后,用 `ralphflow_start` 以任务文本启动真实实例。
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matt Pocock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ 0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5 LICENSE
2
+ c768e6307c7c10728c401c213f2c4ba71c542127eeb7ad2956aabd15a0fa0059 SKILL-MECHANICS.md
3
+ befdff1e27a1dfe2a294d5871169ac1afe16d983911daa4f32627514a48c1e15 grilling.md
4
+ 43ad9cf318e5e7d3d1fa360253a37021796dc87a0c2e595ad262661a10f85088 to-spec.md
5
+ 56ec23c5b2782785d4e65bff9e315b6d3aeb4ef977c174a219e99489fada1995 to-tickets.md
6
+ 551adca942227b44192edba88acd4e8db911f0121ce58ad16944ccf6a896a74a writing-for-agents.md
@@ -0,0 +1,22 @@
1
+ # Skill mechanics
2
+
3
+ The skill-specific branch of [`writing-for-agents`](SKILL.md): what changes when the document is a skill (frontmatter, the invocation choice, and router skills). Everything else about writing it is the universal reference in `SKILL.md`.
4
+
5
+ ## Invocation
6
+
7
+ Two choices, trading the two loads:
8
+
9
+ - A **model-invoked** skill keeps a `description`, so the agent can fire it autonomously, and other skills can reach it. You can still type its name: model-invocation always _includes_ user reach; a description only ever adds agent discovery, never removes the human's. The description is the skill's top-level context pointer, forced to stay loaded at all times: permanent context load in exchange for discoverability. A model-invoked skill whose content is all reference is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Mechanics: omit `disable-model-invocation`, and write a model-facing description carrying the trigger branches (the pointer-writing rules in `SKILL.md` apply in full).
10
+ - A **user-invoked** skill strips the description from the agent's reach: only the human typing its name can invoke it, and no other skill can. Zero context load, but it spends cognitive load: you are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing: a one-line summary, trigger lists stripped.
11
+
12
+ Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
13
+
14
+ Shared reference that two user-invoked skills both need can live in neither: with no descriptions, neither can fire the other. Push it to a plain file outside the skill system: external reference any skill can point at.
15
+
16
+ ## Splitting by invocation
17
+
18
+ The invocation cut of splitting (the sequence cut lives in `SKILL.md`): split off a model-invoked skill when you have a distinct leading word that should trigger it on its own (a trigger word you actually use in your prompts), or another skill must reach it. You pay context load for the new always-loaded description, so that independent reach has to be worth it.
19
+
20
+ ## Router skills
21
+
22
+ When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each, so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no description, so nothing but the human can reach them.
@@ -0,0 +1,12 @@
1
+ # Matt Pocock skills(随包副本)
2
+
3
+ - 来源:https://github.com/mattpocock/skills
4
+ - 版本:1.3.1
5
+ - commit:5beb35b040e3de97e54fa9e386d7e42d15c295c2
6
+ - 许可:MIT(见同目录 `LICENSE`)
7
+ - 随包文件:`grilling.md`、`to-spec.md`、`to-tickets.md`、`writing-for-agents.md`、`SKILL-MECHANICS.md`
8
+
9
+ 这些文件按原样随 RalphFlow 提供,便于 `ralphflow-create` skill 在用户没有安装 Matt 技能包时仍能读取同一套方法。
10
+
11
+ - 校验方法:在本目录运行 `sha256sum -c SHA256SUMS`。
12
+ - 这些文件必须保持与上游 commit `5beb35b` 逐字一致,只允许去掉 frontmatter。
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: grilling
3
+ description: Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
4
+ ---
5
+
6
+ Interview the user relentlessly until you reach a shared understanding. Map this as a **design tree**: every decision branches into the decisions that hang off it.
7
+
8
+ Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled: the questions you can ask _now_ without guessing at answers you haven't heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Then wait for the user's answers before the next round.
9
+
10
+ Format a round like so:
11
+
12
+ ```
13
+ ❓ **Q1** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
14
+
15
+ ➡️ <your recommended answer>
16
+
17
+ ---
18
+
19
+ ❓ **Q2** - **<question title>**: <question body, might be multiple paragraphs, including multiple choices>
20
+
21
+ ➡️ <your recommended answer>
22
+ ```
23
+
24
+ Word each question so "yes" accepts your recommended answer.
25
+
26
+ Each round the user answers reshapes the tree: settled decisions push the frontier outward and unblock questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a _later_ round, not this one.
27
+
28
+ Finding _facts_ is your job, never the user's. When a frontier question needs a fact from the environment (filesystem, tools, etc.), dispatch a sub-agent to find it; don't ask the user for anything you could look up yourself. Don't block on it: a running exploration is an unsettled prerequisite, so only the questions downstream of it wait for the sub-agent to report; ask the rest of the frontier now. The _decisions_ are the user's: put each to them and wait.
29
+
30
+ The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Do not act on it until the user confirms you have reached a shared understanding.
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: to-spec
3
+ description: "Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user; just synthesize what you already know.
8
+
9
+ The issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`.
10
+
11
+ ## Process
12
+
13
+ 1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.
14
+
15
+ 2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.
16
+
17
+ Check with the user that these seams match their expectations.
18
+
19
+ 3. Write the spec using the template below, then publish it to the project issue tracker. Apply the `ready-for-agent` triage label - no need for additional triage.
20
+
21
+ <spec-template>
22
+
23
+ ## Problem Statement
24
+
25
+ The problem that the user is facing, from the user's perspective.
26
+
27
+ ## Solution
28
+
29
+ The solution to the problem, from the user's perspective.
30
+
31
+ ## User Stories
32
+
33
+ A LONG, numbered list of user stories. Each user story should be in the format of:
34
+
35
+ 1. As an <actor>, I want a <feature>, so that <benefit>
36
+
37
+ <user-story-example>
38
+ 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
39
+ </user-story-example>
40
+
41
+ This list of user stories should be extremely extensive and cover all aspects of the feature.
42
+
43
+ ## Implementation Decisions
44
+
45
+ A list of implementation decisions that were made. This can include:
46
+
47
+ - The modules that will be built/modified
48
+ - The interfaces of those modules that will be modified
49
+ - Technical clarifications from the developer
50
+ - Architectural decisions
51
+ - Schema changes
52
+ - API contracts
53
+ - Specific interactions
54
+
55
+ Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
56
+
57
+ Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.
58
+
59
+ ## Testing Decisions
60
+
61
+ A list of testing decisions that were made. Include:
62
+
63
+ - A description of what makes a good test (only test external behavior, not implementation details)
64
+ - Which modules will be tested
65
+ - Prior art for the tests (i.e. similar types of tests in the codebase)
66
+
67
+ ## Out of Scope
68
+
69
+ A description of the things that are out of scope for this spec.
70
+
71
+ ## Further Notes
72
+
73
+ Any further notes about the feature.
74
+
75
+ </spec-template>
@@ -0,0 +1,105 @@
1
+ ---
2
+ name: to-tickets
3
+ description: Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # To Tickets
8
+
9
+ Break a plan, spec, or conversation into a set of **tickets**: tracer-bullet vertical slices, each declaring the tickets that **block** it.
10
+
11
+ The issue tracker and triage label vocabulary should have been provided to you. If not, tell the user to run `/setup-matt-pocock-skills`.
12
+
13
+ ## Process
14
+
15
+ ### 1. Gather context
16
+
17
+ Work from whatever is already in the conversation context. If the user passes a reference (a spec path, an issue number or URL) as an argument, fetch it and read its full body and comments.
18
+
19
+ ### 2. Explore the codebase (optional)
20
+
21
+ If you have not already explored the codebase, do so to understand the current state of the code. Ticket titles and descriptions should use the project's domain glossary vocabulary, and respect ADRs in the area you're touching.
22
+
23
+ Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."
24
+
25
+ ### 3. Draft vertical slices
26
+
27
+ Break the work into **tracer bullet** tickets.
28
+
29
+ <vertical-slice-rules>
30
+
31
+ - Each slice cuts a narrow but COMPLETE path through every layer (schema, API, UI, tests): vertical, NOT a horizontal slice of one layer
32
+ - A completed slice is demoable or verifiable on its own
33
+ - Each slice is sized to fit in a single fresh context window
34
+ - Any prefactoring should be done first
35
+
36
+ </vertical-slice-rules>
37
+
38
+ Give each ticket its **blocking edges**: the other tickets that must complete before it can start. A ticket with no blockers can start immediately.
39
+
40
+ **Wide refactors are the exception to vertical slicing.** A **wide refactor** is one mechanical change (rename a column, retype a shared symbol) whose **blast radius** fans across the whole codebase, so a single edit breaks thousands of call sites at once and no vertical slice can land green. Don't force it into a tracer bullet; sequence it as **expand–contract**. First expand: add the new form beside the old so nothing breaks. Then migrate the call sites over in batches sized by blast radius (per package, per directory), each batch its own ticket blocked by the expand, keeping CI green batch to batch because the old form still exists. Finally contract: delete the old form once no caller remains, in a ticket blocked by every migrate batch. When even the batches can't stay green alone, keep the sequence but let them share an integration branch that all block a final integrate-and-verify ticket; green is promised only there.
41
+
42
+ ### 4. Quiz the user
43
+
44
+ Present the proposed breakdown as a numbered list. For each ticket, show:
45
+
46
+ - **Title**: short descriptive name
47
+ - **Blocked by**: which other tickets (if any) must complete first
48
+ - **What it delivers**: the end-to-end behaviour this ticket makes work
49
+
50
+ Ask the user:
51
+
52
+ - Does the granularity feel right? (too coarse / too fine)
53
+ - Are the blocking edges correct: does each ticket only depend on tickets that genuinely gate it?
54
+ - Should any tickets be merged or split further?
55
+
56
+ Iterate until the user approves the breakdown.
57
+
58
+ ### 5. Publish the tickets to the configured tracker
59
+
60
+ Publish the approved tickets. **How** depends on the tracker `/setup-matt-pocock-skills` configured; the tickets are the same either way, only the shape of the blocking edges changes:
61
+
62
+ - **Local files** → write one file per ticket under `.scratch/<feature-slug>/issues/<NN>-<slug>.md`, numbered from `01` in dependency order (blockers first). Each file's "Blocked by" lists the numbers/titles it depends on. Use the per-ticket file template below: one ticket per file, never a single combined file.
63
+ - **A real issue tracker (GitHub, Linear, …)** → publish one issue per ticket in dependency order (blockers first) so each ticket's blocking edges can reference real identifiers. Use the platform's native blocking relationship where it has one; otherwise set each ticket's "Blocked by" to the blocking issues. If the source was an existing issue, make each ticket its sub-issue (tracker doc's operation). Apply the `ready-for-agent` triage label unless instructed otherwise; the tickets are agent-grabbable by construction.
64
+
65
+ Work the **frontier**: any ticket whose blockers are all done. For a purely linear chain that means top to bottom.
66
+
67
+ Do NOT close or modify any parent issue.
68
+
69
+ <local-ticket-template>
70
+
71
+ # <NN>: <Ticket title>
72
+
73
+ **What to build:** the end-to-end behaviour this ticket makes work, from the user's perspective, not a layer-by-layer implementation list.
74
+
75
+ **Blocked by:** the numbers/titles of the tickets that gate this one, or "None (can start immediately)".
76
+
77
+ **Status:** ready-for-agent
78
+
79
+ - [ ] Acceptance criterion 1
80
+ - [ ] Acceptance criterion 2
81
+
82
+ </local-ticket-template>
83
+
84
+ <issue-template>
85
+
86
+ ## Parent
87
+
88
+ A reference to the parent issue on the tracker (if the source was an existing issue, otherwise omit this section).
89
+
90
+ ## What to build
91
+
92
+ The end-to-end behaviour this ticket makes work, from the user's perspective, not layer-by-layer implementation.
93
+
94
+ ## Acceptance criteria
95
+
96
+ - [ ] Criterion 1
97
+ - [ ] Criterion 2
98
+
99
+ ## Blocked by
100
+
101
+ - A reference to each blocking ticket, or "None (can start immediately)". Omit this section when blockers were set as native edges.
102
+
103
+ </issue-template>
104
+
105
+ In either form, avoid specific file paths or code snippets: they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: writing-for-agents
3
+ description: Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
4
+ ---
5
+
6
+ Reference for writing any document an agent consumes: a skill, an `AGENTS.md` / `CLAUDE.md`, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same _process_ every run rather than producing the same output.
7
+
8
+ When the document you're writing is a skill, read [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md) for frontmatter, invocation choice, and router skills.
9
+
10
+ ## Context pointers
11
+
12
+ A **context pointer** is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in `AGENTS.md` naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material, and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.
13
+
14
+ A pointer does two jobs: state what the material is, and list the **branches** that should trigger reaching it (a branch is a distinct case the document handles, so different runs take different paths through it). Every word of an always-loaded pointer costs on every turn, so it earns even harder pruning than the body:
15
+
16
+ - **Front-load the leading word**: the pointer is where it does its triggering work.
17
+ - **One trigger per branch.** Synonyms that rename a single branch are one branch written twice; collapse them and keep only genuinely distinct branches.
18
+ - **Cut identity the body already carries.**
19
+
20
+ ## The two loads
21
+
22
+ Every document and pointer you add spends one of two budgets:
23
+
24
+ - **Context load** is the cost of always-loaded material on the agent's window: an `AGENTS.md` line, a skill description, anything sitting in context every turn, spending tokens and attention whether or not it fires.
25
+ - **Cognitive load** is the cost on the human: which documents exist and when to reach for each. The human is the index. Not a cost to minimise: it is the price of human agency; spend it where human judgement matters, remove it where it does not.
26
+
27
+ Material reached only through a pointer escapes context load at the price of the pointer's own line; material with no pointer at all rides entirely on cognitive load.
28
+
29
+ ## Information hierarchy
30
+
31
+ A document is built from two content types: **steps** (the ordered actions the agent performs) and **reference** (definitions, rules, facts consulted on demand). The two mix freely: all steps (a recipe), all reference (a review's rules, this skill), or both. The core decision is where each piece sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
32
+
33
+ 1. **In-file step** is the primary tier: what the agent does, in order.
34
+ 2. **In-file reference** is consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung), which is a fine arrangement, not a smell.
35
+ 3. **Disclosed reference** is pushed out into a separate file, reached by a context pointer, loaded only when the pointer fires. Spans a sibling file in the same folder through fully external reference that lives anywhere and any document can point at.
36
+
37
+ Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
38
+
39
+ **Progressive disclosure** is the move down the ladder (out of the main file and behind a pointer) so the top stays legible. Not primarily a token optimisation: it is how the hierarchy is protected. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. When a document has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip: a variance lever, not just a legibility one.
40
+
41
+ **Co-location** is the within-file companion: where the ladder decides _how far down_ a piece sits, co-location decides _what sits beside it_ once there. Keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it. The test: the document should read like documentation written for the agent. Grouped material reads that way; scattered material does not. (Distinct from duplication: that repeats one meaning in two places; scattering fragments one meaning across many.)
42
+
43
+ **Sprawl** is the failure mode here: a document simply too long, even when every line is live and unique. Attention thins across the excess, and every extra line is one more to keep relevant. The cure is the ladder: disclose reference behind pointers, and split by branch or sequence so each path carries only what it needs.
44
+
45
+ ## Steps and completion criteria
46
+
47
+ Every step ends on a **completion criterion**, the condition that tells the agent the work is done. Two properties make it a lever:
48
+
49
+ - **Clarity**: can the agent tell done from not-done? A vague bound ("understanding reached") invites **premature completion**: ending the step before it is genuinely done, attention slipping to _being done_. The visible steps still ahead (the **post-completion steps**) supply the pull; the criterion's clarity is the resistance. Defend in order: **sharpen the bound first** (local and cheap); only if it is irreducibly fuzzy _and_ you observe the rush, hide the later steps by splitting the sequence. Hiding only works across a real context boundary (a hand-off or a subagent dispatch; an inline call leaves the later steps in context and clears nothing).
50
+ - **Demand**: how much it requires. "Every modified model accounted for" forces thorough work where "produce a change list" does not. Demand drives **legwork** (the digging the agent does within the work, latent in the wording rather than written as its own step), and it is not step-bound: "every rule applied" binds a body of flat reference just as "every step done" binds a sequence, which is how an all-reference document still carries an exhaustiveness bar.
51
+
52
+ The strongest criteria are both checkable and exhaustive.
53
+
54
+ ## When to split
55
+
56
+ Splitting one document into two spends one of the two loads, so split only when the cut earns it:
57
+
58
+ - **By sequence**: split a run of steps where the post-completion steps tempt the agent to rush the one in front of it. Keeping them out of view drives more legwork on the current task. Beware the reverse: merging sequences exposes each step's later steps to what follows, inviting premature completion.
59
+ - **By invocation**, skill-specific: see [`SKILL-MECHANICS.md`](SKILL-MECHANICS.md).
60
+
61
+ ## Leading words
62
+
63
+ A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the document (_lesson_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds. Coining your own works if you define it clearly, but a made-up word recruits no priors: you pay in definition tokens what a pretrained word gives free; reach for an existing word first.
64
+
65
+ It anchors twice. In the body, _execution_: the agent reaches for the same behaviour every time the word appears, and inside flat reference it focuses attention on a class of thing to look for. In a pointer, _invocation_: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the material and reaches it more reliably.
66
+
67
+ Hunt for opportunities to refactor with leading words. A triad spelled out at three sites, a pointer spending a sentence to gesture at one idea. Each is a passage begging to collapse into a single token:
68
+
69
+ - "fast, deterministic, low-overhead" → _tight_ (a _tight_ loop).
70
+ - "a loop you believe in" → _red_, turning a fuzzy gate into a binary observable state (the loop goes _red_ on the bug, or it doesn't).
71
+
72
+ You win twice: fewer tokens, and a sharper hook for the agent to hang its thinking on. Assume every document is carrying restatements that leading words retire. Go find them.
73
+
74
+ **Negation** is the failure mode beside this lever: steering by prohibition drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; the negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Prompt the **positive**: state the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
75
+
76
+ ## Pruning
77
+
78
+ - Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit. **Duplication** (the same meaning in more than one place) costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank. (The accidental inverse of a leading word, which repeats a token on purpose, never the meaning.)
79
+ - The **environment** is a source of truth too (`package.json` scripts, config files, the directory layout, `--help` output), and a document that restates it is a **cache**: a copy of a lookup, earning its load only when the lookup is expensive. Cache what the agent cannot find by looking: the unwritten convention, the reason behind a choice, the gotcha no config confesses. Leave the one-file, one-command lookups to the environment, where they cannot go stale.
80
+ - Check every line for **relevance**: does it still bear on what the document does? A line loses relevance by never bearing on the task (mere exposition, or a branch that should be disclosed) or by going stale as the behaviour or world it describes changes. Shorter documents are easier to keep relevant. Without a pruning discipline the default fate is **sediment**: stale layers that settle because adding feels safe and removing feels risky, until you must core down through them to find what is still live.
81
+ - Hunt **no-ops** sentence by sentence: an instruction the model already obeys by default pays load to say nothing. The test (does it change behaviour versus the default?) is model-relative, not reader-relative: two people disagreeing about a no-op disagree about the default, and settle it by running the document, not by debate. When a sentence fails, delete the whole sentence rather than trim words from it. The test also grades leading words: a word too weak to beat the default (_be thorough_ when the agent is already thorough-ish) is a no-op, and the fix is a stronger word (_relentless_), not a different technique.
@@ -0,0 +1,31 @@
1
+ # RalphFlow 作者适配
2
+
3
+ 本文件只补 RalphFlow 的落盘约定;grill、spec、tickets 的方法用同目录 `matt/` 的原文,不在这里复述。
4
+
5
+ ## 本地文件模式
6
+
7
+ Matt 的 `to-spec` / `to-tickets` 默认发布到 issue tracker。RalphFlow 使用本地文件,不运行 `/setup-matt-pocock-skills`,不创建 GitHub/Linear issue。
8
+
9
+ 一次设计使用 `.dsh/ralph-flow/designs/<slug>/`:
10
+
11
+ - `grill.md`:grill 的决定与未决项
12
+ - `spec.md`:spec 正文
13
+ - `tickets/<NN>-<slug>.md`:一个 ticket 一个文件
14
+ - `tickets.json`:ticket 图,字段 `id`、`title`、`depends_on`、`acceptance`、`files`
15
+ - `design-delivery.json`:交付摘要
16
+
17
+ `<slug>` 用小写 kebab-case,与最终资产目录 `.dsh/ralph-flow/graphs/<slug>/` 同名。
18
+
19
+ ## 生成的 Graph
20
+
21
+ - 一个 ticket 一个 `steps` 条目;`id` 用 ticket id
22
+ - 一个 ticket 一个 `nodes/<id>.md`:`## 做什么` 写完整动作与完成条件,`## 验收` 写 ticket 的 acceptance
23
+ - `graph.yaml` 是入口地图:每个 `do` 一句话(目标 + 交付)加 `nodes/<id>.md` 指针,`check` 一句话指向该文件的「验收」一节
24
+ - 节点文件用项目内路径引用 spec 与 ticket
25
+ - `depends_on` 来自 `tickets.json`
26
+ - 资产生成后用 `ralphflow_doctor` 校验;不自动启动
27
+ - 生成资产把可复用的契约、模板放进自己的资产目录,DO/CHECK 用相对路径指向它们(参考根 = 入口文件所在目录);用户项目的事实用项目内路径
28
+
29
+ ## 写作规范
30
+
31
+ 写 spec、tickets、Graph 的 DO/CHECK 前,读 `matt/writing-for-agents.md`;每条适用规则都要落到交付物里。
@@ -0,0 +1,60 @@
1
+ # 测试工作流设计
2
+
3
+ 当请求要构建测试任务,或要构建可复用的测试与缺陷工作流时阅读。交付物是一张工作图,其报告在发现缺陷或列出未验证范围时即属完整;你负责设计,用户负责启动。
4
+
5
+ ## 梳理测试范围
6
+
7
+ 设计前,先找到项目真正的检查入口:阅读 `package.json` 脚本、测试目录、CI 配置和现有测试数据。为每个验收区域记录:
8
+
9
+ - 全新的执行者能在 Git 工作树中运行的确切命令;
10
+ - 该命令读取的仅运行期数据或环境,例如未跟踪的 fixture、被忽略的测试数据目录;
11
+ - 该命令产生的证据:失败的测试名称、断言消息、用例结果、退出码。
12
+
13
+ 覆盖区域来自任务的验收标准,而不是只看现有测试文件。没有任何命令检查的需求,要留在方案中,标为未覆盖并说明原因。
14
+
15
+ 完成条件:每个区域都指明一条真实命令,或被记录为未覆盖并写明原因。
16
+
17
+ ## 测试分支
18
+
19
+ Graph 始终在 Git worktree 中运行。为每条独立命令分配自己的 `background` 步骤;就绪步骤全部放行,由 DSH 的 agent 并发限制排队。
20
+
21
+ DO 在自己的工作树中用原生 Bash 运行命令,然后写入证据产物,记录确切命令、工作目录、退出码、输出摘要或节选,以及每个失败测试或用例及其断言消息。命令失败也是要记录的结果:当证据说明了实际发生的情况时,该分支即完成。
22
+
23
+ 分支的 CHECK(独立验收)核验证据是否忠实:确切命令、真实退出码、每个被指名的失败及其证据、每个被指名的跳过及其原因。证据忠实的失败测试套件也能通过;这正是测试工作流的意义所在。
24
+
25
+ 完成条件:每个分支都运行真实命令,并交付一个证据产物,其 CHECK 能接受失败或部分跳过的测试套件。
26
+
27
+ ## 缺陷报告
28
+
29
+ 一个综合节点依赖所有测试分支,并通过 `原生 read` 读取它们已验收的证据。它的报告合并三个部分:
30
+
31
+ - **缺陷**:每条发现单独一条记录,包含复现命令、退出状态、失败的测试或用例,以及它来自哪个证据产物。
32
+ - **覆盖情况**:一张表格,把每个计划中的验收区域归类为已验证或未验证,并附上证据或原因。
33
+ - **未验证范围**:每个缺失的数据文件、环境值、依赖或未覆盖区域,它导致哪项验收未验证,以及为什么没有验证。
34
+
35
+ 测试全绿只是一种可能的结果,不是交付。交付是一份完整、有证据支撑的报告:当证据支持时,一份发现缺陷的报告同样完成任务。
36
+
37
+ 完成条件:每个缺陷和每个计划中的验收区域都出现,并带有证据或明确的未验证原因。
38
+
39
+ ## 缺失的资料
40
+
41
+ 需要仅运行期数据或环境的命令,在 DO 里写清它读取的路径或条件,并让步骤先核对它们是否存在:
42
+
43
+ - 文件或目录:在任务文本或 DO 中给出工作区相对路径;缺失时把该步骤判为 blocked,并在证据中写明缺失路径和未验证范围。
44
+ - 宿主环境值:在 DO 中写明变量名和用途;缺失时同样 blocked,不编造值。
45
+
46
+ 把缺失描述写成该资料提供的验收项,因为它会出现在状态和未验证范围中。没有已验收证据的计划验收区域,在报告中保持未验证。被跳过的关键验收永远不算通过。
47
+
48
+ 完成条件:每个仅运行期输入都在 DO 中声明,由需要它的步骤核对,并描述为它所提供的验收。
49
+
50
+ ## CHECK 的选择
51
+
52
+ - 测试分支:使用自定义 CHECK,判据覆盖可观察的证据——命令、退出码、被指名的失败和被指名的跳过。
53
+ - 报告:使用自定义 CHECK,判据覆盖证据引用、区域覆盖、未验证范围,以及“没有支撑证据就不得判定通过”的规则。按证据和覆盖情况评判报告,因此只要报告忠实记录,发现缺陷或指出被跳过的范围也算通过。
54
+ - 没有专门验收需求的节点可以关闭 CHECK。
55
+
56
+ 完成条件:`ralphflow_doctor 的有效 CHECK` 显示每个节点选定的模式和判据,且报告判据能接受失败或部分跳过的测试套件。
57
+
58
+ ## 交付
59
+
60
+ 方案指明命令和已声明的资料;结果只有来自已验收的证据才能进入报告。交付的资产要固定其 CHECK 模式;设计期间不启动任何测试实例。用户在审查后明确启动工作流。