dsh-project-dept 1.0.1 → 1.0.3
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 +5 -3
- package/README.zh.md +5 -3
- package/index.js +26 -12
- package/locale/en.json +4 -2
- package/locale/zh.json +4 -2
- package/package.json +2 -2
- package/skills/loop-ops/SKILL.md +124 -0
- package/skills/project-dept/README.md +366 -8
- package/skills/project-dept/README_EN.md +436 -7
- package/skills/project-dept/SKILL.md +10 -21
- package/skills/project-dept/evals/evals.json +252 -7
- package/skills/project-dept/manifest.yaml +29 -3
- package/skills/project-dept/references/blind-review.md +35 -0
- package/skills/project-dept/references/project-scaffold.md +10 -4
- package/skills/project-dept/scripts/check_review_form.py +649 -0
- package/skills/project-dept/scripts/check_skill.py +943 -0
- package/skills/project-dept/scripts/dept_gate.py +90 -7
- package/skills/project-dept/scripts/run_evals.py +1344 -0
- package/skills/project-dept/static/core/output-contract.md +7 -1
- package/skills/project-dept/static/core/workflow.md +3 -2
- package/skills/project-dept/tests/test_check_review_form.py +453 -0
- package/skills/project-dept/tests/test_check_skill.py +620 -0
- package/skills/project-dept/tests/test_dept_gate_baseline.py +229 -0
- package/skills/project-dept/tests/test_dept_gate_json.py +116 -0
- package/skills/project-dept/tests/test_run_evals.py +644 -0
- package/tests/bundle.test.js +29 -9
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ Agents can schedule work; they are bad at deciding whether the work is *correct*
|
|
|
11
11
|
## What you get
|
|
12
12
|
|
|
13
13
|
- **A `project-dept` skill** that loads when the user says things like "work this as a board", "spin up the team for this", or "the check has to be independent".
|
|
14
|
+
- **A `loop-ops` skill** that runs the bounded review loop on a deliverable that already exists: fresh reviewer thread → fix the must-fix list → a second fresh thread to confirm. Two rounds by default, a hard cap, state on disk, and an edit whitelist so the loop cannot wander.
|
|
14
15
|
- **An opening gate** — `scripts/dept_gate.py`. Exit `0` clears the work, `1` forbids it, `2` requires the lead to resolve every open debt item (fix, explicitly exempt with a reason and a recheck date, or downgrade the scope) before starting. Exit `3` means the gate never ran and must not be read as a pass.
|
|
15
16
|
- **Three-layer acceptance** — self-check, then **L2 blind review by someone who did not build the thing**, then a final pass. The reviewer may not see the author's reasoning first.
|
|
16
17
|
- **Baseline self-audit** — when the "known good" reference itself may be stale (an old report, an earlier audit note, a previous version), the baseline gets audited before it is used as truth.
|
|
@@ -28,12 +29,12 @@ If you would rather not install a bundle, copy the skill directory straight into
|
|
|
28
29
|
|
|
29
30
|
```bash
|
|
30
31
|
# per project
|
|
31
|
-
cp -r skills/project-dept <your-project>/.dsh/skills/
|
|
32
|
+
cp -r skills/project-dept skills/loop-ops <your-project>/.dsh/skills/
|
|
32
33
|
# or for every project
|
|
33
|
-
cp -r skills/project-dept ~/.dsh/skills/
|
|
34
|
+
cp -r skills/project-dept skills/loop-ops ~/.dsh/skills/
|
|
34
35
|
```
|
|
35
36
|
|
|
36
|
-
Both routes expose the same
|
|
37
|
+
Both routes expose the same two skills with the same bodies; the bundle only saves you the copy and keeps them updated through package upgrades. `loop-ops` declares `project-dept` as its prerequisite: the loop fixes a deliverable, the three-layer acceptance in `project-dept` decides whether it is done.
|
|
37
38
|
|
|
38
39
|
## Use it
|
|
39
40
|
|
|
@@ -51,6 +52,7 @@ Both routes expose the same `project-dept` skill with the same body; the bundle
|
|
|
51
52
|
|
|
52
53
|
```
|
|
53
54
|
skills/project-dept/
|
|
55
|
+
skills/loop-ops/
|
|
54
56
|
├── SKILL.md # the protocol the model reads
|
|
55
57
|
├── manifest.yaml # axes, always-load list, on-demand references
|
|
56
58
|
├── README.md / README_EN.md
|
package/README.zh.md
CHANGED
|
@@ -11,6 +11,7 @@ Agent 会调度,但**不会判断对不对**。「我拆成四个 agent,都
|
|
|
11
11
|
## 装了什么
|
|
12
12
|
|
|
13
13
|
- **一个 `project-dept` skill**:用户说「按项目部开工 / 开个板块 / 组团队做这块 / 检查要独立」时加载。
|
|
14
|
+
- **一个 `loop-ops` skill**:对一份已成形的交付物跑有限轮「审稿 → 修 → 复审」循环。每轮换全新审稿人(防谄媚)、状态落盘可续跑、编辑白名单防越改越偏、轮次硬上限(默认 2 轮,最多 3 轮)。它负责把硬伤修完,`project-dept` 的三层验收负责判定能不能交。
|
|
14
15
|
- **开工闸门** `scripts/dept_gate.py`:退出码 `0` 通过、`1` 禁止开工、`2` 必须先由负责人逐条处置遗留债务(做掉 / 写明理由与复查日期后豁免 / 降级范围)才开工、`3` 表示闸门根本没跑,**不许当通过**。
|
|
15
16
|
- **三层验收**:自检 → **由局外人独立盲审** → 终审;盲审方不得先看作者的推理过程。
|
|
16
17
|
- **基准自审**:当「已知正确」的参照物本身可能过期(旧报告、上一轮审计结论、上一版文件),先审基准,再拿它当据点。
|
|
@@ -28,12 +29,12 @@ skill 由插件自己通过 `ctx.skills.register()` 注册,装包即生效,
|
|
|
28
29
|
|
|
29
30
|
```bash
|
|
30
31
|
# 只给某个项目
|
|
31
|
-
cp -r skills/project-dept <你的项目>/.dsh/skills/
|
|
32
|
+
cp -r skills/project-dept skills/loop-ops <你的项目>/.dsh/skills/
|
|
32
33
|
# 或者给所有项目
|
|
33
|
-
cp -r skills/project-dept ~/.dsh/skills/
|
|
34
|
+
cp -r skills/project-dept skills/loop-ops ~/.dsh/skills/
|
|
34
35
|
```
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
两条路暴露的是同样两个技能,内容完全一致;bundle 只是省掉手工复制,并随包升级。`loop-ops` 把 `project-dept` 声明为前置:循环负责把硬伤修完,`project-dept` 的三层验收负责判定能不能交。
|
|
37
38
|
|
|
38
39
|
## 怎么用
|
|
39
40
|
|
|
@@ -51,6 +52,7 @@ cp -r skills/project-dept ~/.dsh/skills/
|
|
|
51
52
|
|
|
52
53
|
```
|
|
53
54
|
skills/project-dept/
|
|
55
|
+
skills/loop-ops/
|
|
54
56
|
├── SKILL.md # 模型真正读的规程
|
|
55
57
|
├── manifest.yaml # 两个轴、必读清单、按需参考
|
|
56
58
|
├── README.md / README_EN.md
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// dsh-project-dept — ship the
|
|
1
|
+
// dsh-project-dept — ship the project-dept skills inside one bundle.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// Each skill body lives at ./skills/<name>/SKILL.md, next to this file.
|
|
4
4
|
// Scanning roots is not an option for a package that must work wherever the
|
|
5
5
|
// user installed it: @deepseek-ai/dsh-skill-filesystem resolves bundledSkillDir
|
|
6
6
|
// against the DSH process cwd, not against this package. So the host half
|
|
@@ -14,8 +14,17 @@ import { dirname, join, resolve } from 'node:path';
|
|
|
14
14
|
import { fileURLToPath } from 'node:url';
|
|
15
15
|
|
|
16
16
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
// Every skill this bundle carries, in registration order. Adding a skill means
|
|
18
|
+
// dropping a folder under ./skills and listing its SKILL.md `name` here.
|
|
19
|
+
export const SKILL_NAMES = Object.freeze(['project-dept', 'loop-ops']);
|
|
20
|
+
export const SKILL_NAME = SKILL_NAMES[0];
|
|
21
|
+
const SKILLS_DIR = join(HERE, 'skills');
|
|
22
|
+
const DEFAULT_SKILL_DIR = join(SKILLS_DIR, SKILL_NAME);
|
|
23
|
+
|
|
24
|
+
/** Directory of a bundled skill by name. */
|
|
25
|
+
export function skillDirOf(name) {
|
|
26
|
+
return join(SKILLS_DIR, name);
|
|
27
|
+
}
|
|
19
28
|
|
|
20
29
|
/** Split `---\n…\n---\n body` into the frontmatter text and the body. */
|
|
21
30
|
function splitFrontmatter(source) {
|
|
@@ -101,7 +110,7 @@ export function parseFrontmatter(front) {
|
|
|
101
110
|
return data;
|
|
102
111
|
}
|
|
103
112
|
|
|
104
|
-
/** Read and validate
|
|
113
|
+
/** Read and validate one bundled skill. Exported so tests can drive every branch. */
|
|
105
114
|
export function loadSkill(dir = DEFAULT_SKILL_DIR) {
|
|
106
115
|
const skillDir = resolve(dir);
|
|
107
116
|
const file = join(skillDir, 'SKILL.md');
|
|
@@ -110,9 +119,9 @@ export function loadSkill(dir = DEFAULT_SKILL_DIR) {
|
|
|
110
119
|
const data = parseFrontmatter(front);
|
|
111
120
|
const name = String(data.name == null ? '' : data.name).trim();
|
|
112
121
|
const description = String(data.description == null ? '' : data.description).trim();
|
|
113
|
-
if (name === '') throw new Error(`project-dept: ${file} has no frontmatter name`);
|
|
114
|
-
if (description === '') throw new Error(`project-dept: ${file} has no frontmatter description`);
|
|
115
|
-
if (body.trim() === '') throw new Error(`project-dept: ${file} has no body`);
|
|
122
|
+
if (name === '') throw new Error(`dsh-project-dept: ${file} has no frontmatter name`);
|
|
123
|
+
if (description === '') throw new Error(`dsh-project-dept: ${file} has no frontmatter description`);
|
|
124
|
+
if (body.trim() === '') throw new Error(`dsh-project-dept: ${file} has no body`);
|
|
116
125
|
const whenToUse = data.whenToUse === undefined || data.whenToUse === '' ? undefined : String(data.whenToUse);
|
|
117
126
|
return {
|
|
118
127
|
name,
|
|
@@ -127,15 +136,20 @@ export function loadSkill(dir = DEFAULT_SKILL_DIR) {
|
|
|
127
136
|
|
|
128
137
|
export const inject = ['skills'];
|
|
129
138
|
|
|
139
|
+
/** Load every skill the bundle carries, in declaration order. */
|
|
140
|
+
export function loadSkills() {
|
|
141
|
+
return SKILL_NAMES.map((name) => loadSkill(skillDirOf(name)));
|
|
142
|
+
}
|
|
143
|
+
|
|
130
144
|
export function apply(ctx) {
|
|
131
145
|
const skills = ctx.skills ?? (typeof ctx.get === 'function' ? ctx.get('skills') : undefined);
|
|
132
146
|
if (skills === undefined || skills === null || typeof skills.register !== 'function') {
|
|
133
|
-
throw new Error('project-dept: the skill registry (ctx.skills) is not available, so the bundled
|
|
147
|
+
throw new Error('dsh-project-dept: the skill registry (ctx.skills) is not available, so the bundled skills cannot be registered');
|
|
134
148
|
}
|
|
135
|
-
const
|
|
136
|
-
const register = () => skills.register(
|
|
149
|
+
const definitions = loadSkills();
|
|
150
|
+
const register = () => definitions.map((definition) => skills.register(definition));
|
|
137
151
|
if (typeof ctx.effect === 'function') ctx.effect(register);
|
|
138
152
|
else register();
|
|
139
153
|
}
|
|
140
154
|
|
|
141
|
-
export const __test__ = { splitFrontmatter, parseFrontmatter, loadSkill, DEFAULT_SKILL_DIR };
|
|
155
|
+
export const __test__ = { splitFrontmatter, parseFrontmatter, loadSkill, loadSkills, skillDirOf, DEFAULT_SKILL_DIR, SKILL_NAMES };
|
package/locale/en.json
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Project department",
|
|
4
4
|
"description": "Runs one complex piece of work as a single reviewable board: an opening gate before any work starts, three-layer acceptance (self-check, independent blind review, final pass), an audit of the baseline itself, and no self-declared completion. Installing adds a project-dept skill that loads on phrases such as \"work this as a board\" or \"the check has to be independent\"; it ships an executable gate (dept_gate.py) and a document-consistency checker (check_doc.py)."
|
|
5
|
-
}
|
|
6
|
-
|
|
5
|
+
},
|
|
6
|
+
"meta.title": "Project department",
|
|
7
|
+
"meta.description": "Two workflow skills in one bundle. project-dept: open a board through a gate, decompose it, deliver it, and verify it with people who did not build it — the author never declares it done. loop-ops: a bounded review loop for a deliverable that already exists — fresh reviewer thread, fix the must-fix list, a second fresh thread to confirm; two rounds by default, state on disk, edit whitelist."
|
|
8
|
+
}
|
package/locale/zh.json
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "项目部工作流",
|
|
4
4
|
"description": "把一次复杂工作当成一个可验收的「板块」串行推进:开工前先跑闸门,交付物要过三层验收(自检 → 独立盲审 → 终审),基准本身也要核,干完不许自己标完成。装上后 agent 会多出一个 project-dept skill,用户说「按项目部开工 / 开个板块 / 组团队做这块 / 检查要独立」时自动加载;它自带 dept_gate.py 可执行闸门与 check_doc.py 文档一致性检查脚本。"
|
|
5
|
-
}
|
|
6
|
-
|
|
5
|
+
},
|
|
6
|
+
"meta.title": "项目部工作流",
|
|
7
|
+
"meta.description": "一个包里两个工作流技能。project-dept:按闸门开板块、拆解、交付,并由没参与建造的人做独立验收——作者不许自己宣布完成。loop-ops:对已成形交付物跑有限轮审稿循环——每轮换全新审稿人、按必改项修、再由新线程复核;默认两轮、状态落盘、编辑白名单。"
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-project-dept",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Acceptance-first
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Acceptance-first workflow skills for DSH: project-dept runs one complex piece of work as a single reviewable board (gate, three-layer acceptance, independent review); loop-ops runs the bounded review loop that fixes a deliverable until the must-fix list is empty.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "ZZR-rui-997",
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: loop-ops
|
|
3
|
+
description: 自动改稿/审稿闭环——把一个已经成形的交付物(章节、文档、代码、图件清单)交给「全新审稿人 → 按必改项修 → 再来一个新审稿人」的有限轮循环,直到必改项清空或用尽轮次。用轮次硬上限、防谄媚的 fresh-thread 审稿、落盘状态 JSON、编辑白名单防止越改越偏。用户说"自动改稿 / 过夜跑 / 改稿循环 / 审稿循环 / 自动打磨到定稿"时加载。
|
|
4
|
+
whenToUse: 用户明确发令要"跑改稿循环/审稿循环/过夜自动改到定稿",且手上已有一份成形稿(不是从零写作);或 project-dept 的某个板块计划里写明"用 loop-ops 收尾"。
|
|
5
|
+
metadata:
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
tags: [workflow, review-loop, blind-review, state-machine, governance]
|
|
8
|
+
requires: project-dept
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# loop-ops — 自动改稿/审稿闭环
|
|
12
|
+
|
|
13
|
+
> 设计模式来源:ARIS 的 `auto-paper-improvement-loop`(MAX_ROUNDS + 防谄媚审稿)与
|
|
14
|
+
> `auto-review-loop`(REVIEW_STATE.json 状态链)。这里只借**模式**,不搬它的 Codex/Gemini
|
|
15
|
+
> MCP 后端;审稿人用当前 Harness 的 subagent 机制。
|
|
16
|
+
|
|
17
|
+
它是 project-dept 的**循环执行器**,不是验收标准:循环产出仍是 L2 产物,最终是否算完成,
|
|
18
|
+
仍由 project-dept 的 L3(Lead 汇总 + 用户过目)判定。
|
|
19
|
+
|
|
20
|
+
## 一、何时用 / 何时不用
|
|
21
|
+
|
|
22
|
+
**用**:
|
|
23
|
+
|
|
24
|
+
- 一份已成形的东西(章节、文档、代码、图件清单)要"多轮打磨到没有硬伤";
|
|
25
|
+
- 用户明确说"自动改稿 / 过夜跑 / 改稿循环 / 审稿循环";
|
|
26
|
+
- 工作量集中在"发现问题 → 逐条修"上,且修完能自动复验。
|
|
27
|
+
|
|
28
|
+
**不用**:
|
|
29
|
+
|
|
30
|
+
- 首轮写作(先走命题/结构那一步,别拿循环代替构思);
|
|
31
|
+
- 板块验收(那是 project-dept 的三层验收,人工触发、不循环);
|
|
32
|
+
- **用户没发令**——本 skill 永不自行启动;
|
|
33
|
+
- 没有可判定的验收标准(先补标准,再谈循环)。
|
|
34
|
+
|
|
35
|
+
## 二、四件设计模式(不可裁剪)
|
|
36
|
+
|
|
37
|
+
### 1. 轮次硬上限
|
|
38
|
+
|
|
39
|
+
- 默认 `MAX_ROUNDS = 2`;用户显式要求时最多放宽到 3,**不允许更多**。
|
|
40
|
+
- 经验依据:第一轮多在修结构与事实,第二轮在修表达与一致性,两轮之后边际收益明显下降,
|
|
41
|
+
第三轮往往开始"为改而改"(把对的句子改错)。
|
|
42
|
+
- 每轮预算 = 审稿(1 次深读)+ 修改(主线程)+ 复审(1 次核对)。
|
|
43
|
+
|
|
44
|
+
### 2. 防谄媚审稿(fresh-thread 原则)
|
|
45
|
+
|
|
46
|
+
- **每轮审稿必须新开 subagent**(每次新 `name`),禁止复用上一轮的 reviewer——它记得
|
|
47
|
+
"作者改了什么",会手软。
|
|
48
|
+
- 审稿 prompt 里**禁止**出现"上一轮我们改了什么 / 上一轮得了多少分";只给当前稿子 + 岗位卡。
|
|
49
|
+
- 反例(这条为什么值钱):复用线程会把真实的 3/10 虚高成 8/10。
|
|
50
|
+
- reviewer prompt 开头 = 岗位卡全文(如 `_team/岗位/reviewer.md`),并写明"默认有错,
|
|
51
|
+
至少给出 1 个真问题",输出必改项格式 **位置 + 现文 + 应为 + 依据**。
|
|
52
|
+
- **审稿人崩溃防护**:①一次只派一个审稿任务;②等结果,超时视为崩溃 → 换新 name 重派一次;
|
|
53
|
+
③二连崩 → 落盘"复核人崩溃"记录,**降级为主线程用另一种方法自证**(异方法交叉核对),
|
|
54
|
+
不得直接标通过。
|
|
55
|
+
|
|
56
|
+
### 3. 状态落盘(可恢复)
|
|
57
|
+
|
|
58
|
+
每轮结束写 `loop_state/<task_id>/REVIEW_STATE.json`:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"task_id": "…",
|
|
63
|
+
"target": "被审对象(文件路径或交付物名)",
|
|
64
|
+
"round": 2,
|
|
65
|
+
"max_rounds": 2,
|
|
66
|
+
"reviewer_agent": "rev-<task>-r2",
|
|
67
|
+
"score_this_round": 7,
|
|
68
|
+
"must_fix": ["位置 + 现文 + 应为 + 依据", "..."],
|
|
69
|
+
"edited_files": ["..."],
|
|
70
|
+
"whitelist": ["本轮允许改的文件"],
|
|
71
|
+
"next": "review|edit|done"
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
上下文被压缩、会话被续接之后,**先读这个文件再决定下一步**,不凭记忆续跑。
|
|
76
|
+
|
|
77
|
+
### 4. 编辑白名单
|
|
78
|
+
|
|
79
|
+
- 发令时第一步就定下本轮允许修改的文件清单(例如只允许改 `第4章.md` 与 `图2-3.png`),
|
|
80
|
+
逐轮记进 REVIEW_STATE。
|
|
81
|
+
- 修改**不得越出清单**;要扩清单必须停下来问用户。
|
|
82
|
+
- 白名单是防"顺手重写"的刹车:循环最容易的失败方式不是没改对,而是把没让改的地方也改了。
|
|
83
|
+
|
|
84
|
+
## 三、流程(六步)
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
1 发令确认:目标文件、MAX_ROUNDS(默认 2)、白名单、评分口径、验收器命令
|
|
88
|
+
2 Round n 审稿:新 subagent(name=rev-<task>-r<n>)读稿 → 必改项列表(位置+现文+应为+依据)
|
|
89
|
+
3 Round n 修改:主线程按必改项逐条修(只动白名单)→ 跑验收器
|
|
90
|
+
(正文→对应 check_*.py;图→图件验收器;都过才进第 4 步)
|
|
91
|
+
4 复审:**新 subagent**(name=rev-<task>-r<n>b)只回答"必改项是否全部落地 + 有没有新硬伤";
|
|
92
|
+
复审不打分(防分数游戏)
|
|
93
|
+
5 收敛判定:复审全过 → 落盘 next=done 并报告;否则 n+1 ≤ MAX_ROUNDS 回第 2 步;
|
|
94
|
+
超限 → 停下如实报告剩余问题,**不得自动放宽判据**
|
|
95
|
+
6 交回用户:终稿 diff 摘要 + 每轮审稿单路径 + REVIEW_STATE
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## 四、红线
|
|
99
|
+
|
|
100
|
+
- **交付 ≠ 完成**:循环跑完只是 L2 产物,仍需 L3(Lead 汇总 + 用户过目)。
|
|
101
|
+
- **一次只做一个循环**:本循环就是当前板块的工作,不并行开第二个。
|
|
102
|
+
- **不编数**:分数与必改项必须落盘可查;复审说"已落地"要引用行号。
|
|
103
|
+
- **永不静默放宽**:轮次用尽仍有问题 → 停下报告,让用户决定(加轮 / 降标准 / 人工收尾)。
|
|
104
|
+
- **验证器优先于审稿人**:能用脚本判定的(格式、引用、数值一致性、图件尺寸)先交给脚本,
|
|
105
|
+
审稿人只判脚本判不了的(论证、结构、可信度)。
|
|
106
|
+
|
|
107
|
+
## 五、工具对接(当前 Harness)
|
|
108
|
+
|
|
109
|
+
| 环节 | 工具 | 备注 |
|
|
110
|
+
| --- | --- | --- |
|
|
111
|
+
| 派审稿人 | `subagent` | 每次新 `name`,prompt = 岗位卡全文 + 目标 + "默认有错" |
|
|
112
|
+
| 等结果 | `subagent` 返回即收 | 超时按崩溃预案;二连崩 → 主线程异方法自证 |
|
|
113
|
+
| 修改 | `edit` / `write` | 只动白名单;改完立刻跑验收器 |
|
|
114
|
+
| 状态 | `write` REVIEW_STATE.json | 每轮必写;压缩后靠它续跑 |
|
|
115
|
+
| 台账 | 看板 + 交付登记簿 | 循环结束时统一记,不逐轮记 |
|
|
116
|
+
|
|
117
|
+
## 六、与 project-dept 的分工
|
|
118
|
+
|
|
119
|
+
| 问题 | 归谁 |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| 这一版该不该交付 | project-dept(三层验收 + 独立盲审) |
|
|
122
|
+
| 这一版还有哪些硬伤、怎么逐条修完 | loop-ops |
|
|
123
|
+
| 修复后有没有引入新问题 | loop-ops 的复审(新线程) |
|
|
124
|
+
| 修完能不能标完成 | project-dept 的 L3(Lead + 用户) |
|