@suifei/dsh-ai-team 0.3.89 → 0.3.90

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.90 - 2026-11-12
4
+
5
+ **Darwin Phase 2 自动 hill-climbing 循环(`skillopt_optimize`)**
6
+
7
+ - 每轮:rubric 诊断最大加权短板 → 独立生成器产出候选(子代理,仅改该维度)→ 写入 → paired 独立 judge 多数决 → keep 保留 / revert 回滚 → results.tsv 追加。
8
+ - 约束:单维改动、150% 体积上限、连续 2 轮 margin 全 slight/tie 触顶 break(HL-4 见好就收)、judge 不可用即回滚(未验证改动绝不保留)。
9
+ - 版本化双模式:项目是**干净 git 仓库**时 commit/revert(新提交回滚,不用 reset --hard);否则 `.skillopt-sleep/backups/*.bak` 文件备份恢复。
10
+ - 结果记录 `<project>/.skillopt-sleep/results.tsv`(9 列,与 darwin 格式一致);keep/revert 记 `eval_mode=paired`。
11
+ - 测试:`test/skillopt-optimize.test.js` 9 项(短板诊断与平局、plateau 判据、候选校验、keep/revert/跳过/回滚/触顶、TSV 9 列)。
12
+
13
+
3
14
  ## 0.3.89 - 2026-11-12
4
15
 
5
16
  **完全对齐 darwin-skill v2.1(9 维 rubric + 独立 judge)**
package/index.js CHANGED
@@ -28,6 +28,8 @@ import { apply as applySkillOpt } from './lib/vendor/skillopt/src/index.js';
28
28
  import { createAdoptGate, wrapToolsWithAdoptGate } from './lib/skillopt/adopt-gate.js';
29
29
  import { formatRubric, scoreSkillRubric } from './lib/skillopt/rubric.js';
30
30
  import { makeJudge, makeReadPair } from './lib/skillopt/gate-wiring.js';
31
+ import { runOptimizeLoop } from './lib/skillopt/optimizer.js';
32
+ import { makeGenerator, makeResultAppender, makeVcs } from './lib/skillopt/optimize-wiring.js';
31
33
  import { createMemberPermissionGuard } from './lib/host/permission-guard.js';
32
34
  import { installFaultAdapter } from './lib/host/fault-adapter.js';
33
35
  import { buildModelCatalog } from './lib/host/model-catalog.js';
@@ -44,7 +46,7 @@ export const name = 'ai-team';
44
46
  /** The workbench only makes sense where the Web carrier exists. */
45
47
  export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy', 'tools', 'shell'];
46
48
 
47
- const VERSION = '0.3.89';
49
+ const VERSION = '0.3.90';
48
50
  const HUMAN_ID = 'mem_human';
49
51
 
50
52
  const SKILLOPT_BACKENDS = ['mock', 'claude', 'codex', 'copilot', 'cursor', 'pi', 'opencode', 'handoff', 'azure_openai'];
@@ -851,13 +853,59 @@ export function apply(ctx, config = {}) {
851
853
  ].filter(Boolean).join('\n');
852
854
  },
853
855
  });
854
- const disposeExtra = () => {
855
- try { disposeSkillOpt?.(); } catch { /* already disposed */ }
856
- try { rubricTool?.(); } catch { /* noop */ }
857
- try { judgeTool?.(); } catch { /* noop */ }
858
- };
856
+ // Darwin Phase 2:自动 hill-climbing(诊断→生成→写入→judge→keep/revert)。
857
+ // 同一轮只改一个维度,版本化走干净 git 仓库,否则 .bak 备份。
858
+ const optimizeTool = tools.register({
859
+ name: 'skillopt_optimize',
860
+ description: 'Run the Darwin hill-climbing loop on one SKILL.md: weakest-dimension diagnosis, generated candidate, paired independent judge, keep/revert, results.tsv.',
861
+ parameters: {
862
+ project: { type: 'string', description: 'Project directory' },
863
+ skillPath: { type: 'string', description: 'Path to SKILL.md to optimize' },
864
+ rounds: { type: 'number', description: 'Max rounds (default 3)' },
865
+ },
866
+ output: { schema: { type: 'string' }, render: (_args, value) => [{ type: 'text', text: String(value) }] },
867
+ async execute(args) {
868
+ const project = typeof args?.project === 'string' && args.project !== '' ? args.project : process.cwd();
869
+ const skillPath = typeof args?.skillPath === 'string' && args.skillPath !== '' ? args.skillPath : join(project, 'SKILL.md');
870
+ if (!existsSync(skillPath)) return `[skillopt optimize] SKILL.md not found: ${skillPath}`;
871
+ const rounds = Number.isSafeInteger(args?.rounds) ? Math.max(1, Math.min(5, args.rounds)) : 3;
872
+ const vcs = await makeVcs({ shell, projectDir: project });
873
+ const result = await runOptimizeLoop({
874
+ skillPath,
875
+ rounds,
876
+ readText: async (path) => readFileSync(path, 'utf8'),
877
+ writeText: async (path, text) => writeFileSync(path, text, 'utf8'),
878
+ score: (text) => scoreSkillRubric(text, { measured: false }),
879
+ generate: makeGenerator({
880
+ subagents: ctx.get('subagents'),
881
+ ensureParent: () => ensureParent(),
882
+ providerName: () => providers[0],
883
+ cwd: project,
884
+ }),
885
+ judge: async ({ before, after }) => {
886
+ const judge = makeJudge({
887
+ subagents: ctx.get('subagents'),
888
+ ensureParent: () => ensureParent(),
889
+ providerName: () => providers[0],
890
+ votes: config.skilloptJudgeVotes ?? 3,
891
+ diag,
892
+ });
893
+ return judge({ before, after, projectDir: project });
894
+ },
895
+ vcs,
896
+ appendResult: makeResultAppender({ projectDir: project }),
897
+ });
898
+ diag.append({ ev: 'skillopt.optimize', project, skillPath, status: result.status, rounds: result.rounds.length, finalScore: result.finalScore, vcs: vcs.kind });
899
+ const lines = [
900
+ `[skillopt optimize] status=${result.status} rounds=${result.rounds.length} finalScore=${result.finalScore ?? '-'} vcs=${vcs.kind}`,
901
+ ...(result.rounds ?? []).map((round) => ` r${round.round} ${round.dimension}: ${round.verdict} (${round.better}-${round.worse}) ${round.oldScore}→${round.newScore ?? '-'}${round.kept ? ' kept' : ' reverted'}`),
902
+ result.error ? ` error: ${result.error}` : '',
903
+ ].filter(Boolean);
904
+ return lines.join('\n');
905
+ },
906
+ });
859
907
  disposeSkillOpt = disposeExtra;
860
- diag.append({ ev: 'skillopt.registered', backend: config.skilloptBackend ?? 'mock', timeoutMs: config.skilloptTimeoutMs ?? 120_000, adoptGate: true, judgeVotes: config.skilloptJudgeVotes ?? 3 });
908
+ diag.append({ ev: 'skillopt.registered', backend: config.skilloptBackend ?? 'mock', timeoutMs: config.skilloptTimeoutMs ?? 120_000, adoptGate: true, judgeVotes: config.skilloptJudgeVotes ?? 3, optimize: true });
861
909
  }
862
910
  } catch (error) {
863
911
  diag.append({ ev: 'skillopt.fail', message: error?.message ?? String(error) });
@@ -0,0 +1,108 @@
1
+ /**
2
+ * 自动优化循环的宿主适配:VCS(git / 文件备份)、候选生成器(独立子代理)、
3
+ * results.tsv 追加。与 optimizer.js 的纯编排分离,便于测试替换。
4
+ */
5
+ import { existsSync, mkdirSync, readFileSync, writeFileSync, copyFileSync } from 'node:fs';
6
+ import { dirname, join } from 'node:path';
7
+ import { runEngineCli, quoteArgv } from './gate-wiring.js';
8
+
9
+ /** 项目是否为干净 git 仓库(决定 git 棘轮还是文件备份)。 */
10
+ async function isCleanGitRepo(shell, cwd) {
11
+ const inside = await runEngineCli(shell, ['git', '-C', cwd, 'rev-parse', '--is-inside-work-tree']).catch(() => null);
12
+ if (inside?.exitCode !== 0 || !/true/.test(inside?.stdout ?? '')) return false;
13
+ const status = await runEngineCli(shell, ['git', '-C', cwd, 'status', '--porcelain']).catch(() => null);
14
+ return status?.exitCode === 0 && (status.stdout ?? '').trim() === '';
15
+ }
16
+
17
+ /**
18
+ * @param {{shell:object, projectDir:string, now?:()=>number}} deps
19
+ * @returns {Promise<object>} vcs 适配器
20
+ */
21
+ export async function makeVcs({ shell, projectDir, now = () => Date.now() }) {
22
+ const git = await isCleanGitRepo(shell, projectDir);
23
+ if (git) {
24
+ const commit = async (message) => {
25
+ const add = await runEngineCli(shell, ['git', '-C', projectDir, 'add', '-A']);
26
+ if (add.exitCode !== 0) throw new Error(`git add failed: ${add.stderr}`);
27
+ const done = await runEngineCli(shell, ['git', '-C', projectDir, 'commit', '-m', message, '--no-verify']);
28
+ if (done.exitCode !== 0) throw new Error(`git commit failed: ${done.stderr}`);
29
+ const head = await runEngineCli(shell, ['git', '-C', projectDir, 'rev-parse', '--short', 'HEAD']);
30
+ return (head.stdout ?? '').trim() || null;
31
+ };
32
+ return {
33
+ kind: 'git',
34
+ commit,
35
+ // keep 时无需额外动作:commit 已留下保留版本。
36
+ commitKept: async () => {},
37
+ revert: async () => {
38
+ const done = await runEngineCli(shell, ['git', '-C', projectDir, 'revert', 'HEAD', '--no-edit']);
39
+ if (done.exitCode !== 0) throw new Error(`git revert failed: ${done.stderr}`);
40
+ },
41
+ writeBaseline: async (path, text) => { writeFileSync(path, text, 'utf8'); },
42
+ };
43
+ }
44
+ const backupDir = join(projectDir, '.skillopt-sleep', 'backups');
45
+ mkdirSync(backupDir, { recursive: true });
46
+ return {
47
+ kind: 'file',
48
+ backup: async (path, text) => {
49
+ const stamp = new Date(now()).toISOString().replace(/[:.]/g, '-');
50
+ const target = join(backupDir, `${path.split(/[\\/]/).pop()}.${stamp}.bak`);
51
+ writeFileSync(target, text, 'utf8');
52
+ return target;
53
+ },
54
+ restore: async (path, backupPath) => {
55
+ if (!existsSync(backupPath)) throw new Error(`backup missing: ${backupPath}`);
56
+ copyFileSync(backupPath, path);
57
+ },
58
+ };
59
+ }
60
+
61
+ /** 独立生成器:一次性子代理按 rubric 短板改进,只输出完整新文件。 */
62
+ export function makeGenerator({ subagents, ensureParent, providerName, cwd }) {
63
+ return async ({ skillPath, before, dimension, round }) => {
64
+ const parentInfo = await ensureParent();
65
+ const provider = providerName();
66
+ const prompt = [
67
+ '你是技能改进器。只输出改进后的完整 SKILL.md 内容(不要解释、不要代码围栏)。',
68
+ `目标维度:dim${dimension.id} ${dimension.name}(当前 ${dimension.score}/10,权重 ${dimension.weight})。`,
69
+ '硬约束:不得改变技能的核心用途;只解决该维度;不得删掉已有的失败分支/检查点/反例清单;',
70
+ '不得加长到原文 150% 以上;不得引入软化措辞(建议/可以考虑/根据情况/灵活把握/视情况而定)。',
71
+ `这是第 ${round} 轮。`,
72
+ '',
73
+ '## 原文',
74
+ before,
75
+ ].join('\n');
76
+ const activation = await subagents.startActivation({
77
+ provider,
78
+ label: `skillopt-optimize-${round}`,
79
+ request: { cwd, prompt: [{ type: 'text', text: prompt }], parent: parentInfo?.agent },
80
+ delivery: 'parent',
81
+ });
82
+ try {
83
+ const result = await activation?.result;
84
+ const raw = Array.isArray(result?.output)
85
+ ? result.output.map((part) => (typeof part === 'string' ? part : part?.text ?? '')).join('\n')
86
+ : String(result?.output ?? '');
87
+ // 去掉可能包裹的 ```markdown 围栏。
88
+ const fenced = raw.match(/```(?:markdown|md)?\s*\n([\s\S]*?)\n```/);
89
+ return fenced !== null ? fenced[1] : raw.trim();
90
+ } finally {
91
+ try { await activation?.dispose?.(); } catch { /* already gone */ }
92
+ }
93
+ };
94
+ }
95
+
96
+ /** results.tsv 追加(表头自动补)。 */
97
+ export function makeResultAppender({ projectDir }) {
98
+ const dir = join(projectDir, '.skillopt-sleep');
99
+ const path = join(dir, 'results.tsv');
100
+ return async (line) => {
101
+ mkdirSync(dir, { recursive: true });
102
+ const header = ['timestamp', 'commit', 'skill', 'old_score', 'new_score', 'status', 'dimension', 'note', 'eval_mode'].join('\t');
103
+ const prefix = existsSync(path) && readFileSync(path, 'utf8').includes('eval_mode') ? '' : header + '\n';
104
+ writeFileSync(path, prefix + line + '\n', { encoding: 'utf8', flag: 'a' });
105
+ };
106
+ }
107
+
108
+ export { quoteArgv };
@@ -0,0 +1,177 @@
1
+ /**
2
+ * Darwin Phase 2 自动优化循环(hill-climbing)——插件侧编排。
3
+ *
4
+ * 一轮 = 诊断(rubric 最大加权短板)→ 生成改进(独立生成器,非 judge)→
5
+ * 写入 → paired 独立 judge 多数决 → keep(保留)或 revert(回滚)→ 记录。
6
+ *
7
+ * 安全约束(对齐 darwin 与项目纪律):
8
+ * - 每轮只针对一个维度(避免多变量无法归因);
9
+ * - 体积上限 150%(超限直接拒绝,不进入 judge);
10
+ * - 棘轮用 paired 多数决(绝对分只做 triage);
11
+ * - 版本化:项目是干净 git 仓库时用 commit/revert,否则用 .bak 文件恢复;
12
+ * - 连续 2 轮 judge margin 全为 slight/tie → 触顶 break(见好就收,HL-4)。
13
+ *
14
+ * 纯逻辑与 I/O 分离:所有外部动作(读/写/git/生成/judge/评分/时钟)都注入,
15
+ * 因此循环可在测试里用一个内存文件系统完整验证。
16
+ */
17
+
18
+ export const DEFAULT_ROUNDS = 3;
19
+ const MAX_GROWTH = 1.5;
20
+
21
+ /** 最大加权短板(weight × (10 - score) / 10;同分时取原始分更低者)。 */
22
+ export function weakestDimension(rubric) {
23
+ const scored = (rubric?.dimensions ?? []).filter((dimension) => Number.isFinite(dimension?.score));
24
+ if (scored.length === 0) return null;
25
+ return scored.reduce((worst, dimension) => {
26
+ const gap = dimension.weight * (10 - dimension.score) / 10;
27
+ const worstGap = worst.weight * (10 - worst.score) / 10;
28
+ if (gap > worstGap) return dimension;
29
+ if (gap === worstGap && dimension.score < worst.score) return dimension;
30
+ return worst;
31
+ });
32
+ }
33
+
34
+ /** 触顶判据:连续 2 轮 judge 的 margin 全为 slight/tie。 */
35
+ export function isPlateau(recentMargins) {
36
+ const lastTwo = recentMargins.slice(-2);
37
+ return lastTwo.length === 2 && lastTwo.every((row) => row.every((margin) => margin === 'slight' || margin === 'tie'));
38
+ }
39
+
40
+ /** 一轮候选的静态校验:不得超体积上限、必须真的变了。 */
41
+ export function validateCandidate({ before, after }) {
42
+ if (typeof after !== 'string' || after.trim() === '') return { ok: false, reason: 'generator returned an empty candidate' };
43
+ if (after === before) return { ok: false, reason: 'generator returned an unchanged candidate' };
44
+ if (after.length > before.length * MAX_GROWTH) {
45
+ return { ok: false, reason: `candidate exceeds 150% of the original size (${before.length} -> ${after.length}); trim before judging` };
46
+ }
47
+ return { ok: true, reason: '' };
48
+ }
49
+
50
+ /** results.tsv 行(9 列,与 darwin 格式一致)。 */
51
+ export function resultRow({ timestamp, commit, skill, oldScore, newScore, status, dimension, note, evalMode }) {
52
+ return [timestamp, commit, skill, oldScore, newScore, status, dimension, note, evalMode].join('\t');
53
+ }
54
+
55
+ export const RESULTS_HEADER = ['timestamp', 'commit', 'skill', 'old_score', 'new_score', 'status', 'dimension', 'note', 'eval_mode'].join('\t');
56
+
57
+ /**
58
+ * 跑一个 skill 的优化循环。
59
+ *
60
+ * @param {object} input
61
+ * @param {string} input.skillPath 目标 SKILL.md 绝对路径
62
+ * @param {string} [input.skillName] 记录用名字(默认取文件名所在目录名)
63
+ * @param {number} [input.rounds] MAX_ROUNDS(默认 3)
64
+ * @param {(path:string)=>Promise<string>} input.readText
65
+ * @param {(path:string, text:string)=>Promise<void>} input.writeText
66
+ * @param {(text:string, options:{measured:boolean})=>object} input.score 同步 rubric 评分
67
+ * @param {(input:{skillPath:string, before:string, dimension:object, round:number})=>Promise<string>} input.generate 生成候选全文
68
+ * @param {(input:{before:string, after:string, skillPath:string})=>Promise<{verdict:string, better:number, worse:number, ties:number, valid:number, votes:Array, errors:string[]}>} input.judge
69
+ * @param {object} input.vcs `{kind:'git', commit:(message)=>Promise<string>, revert:()=>Promise<void>}` 或 `{kind:'file', backup:(path:string,text:string)=>Promise<string>, restore:(path:string,backup:string)=>Promise<void>}`
70
+ * @param {(line:string)=>Promise<void>} [input.appendResult] 追加 results.tsv(含表头由实现方保证)
71
+ * @param {() => number} [input.now]
72
+ * @returns {Promise<{status:'completed'|'plateau'|'reverted'|'error', rounds:Array, finalScore:number|null, error?:string}>}
73
+ */
74
+ export async function runOptimizeLoop(input) {
75
+ const {
76
+ skillPath, skillName, rounds = DEFAULT_ROUNDS, readText, writeText, score, generate, judge, vcs,
77
+ appendResult, now = () => Date.now(),
78
+ } = input;
79
+ const name = skillName ?? skillPath.split(/[\\/]/).slice(-2, -1)[0] ?? skillPath;
80
+ const history = [];
81
+ const staleness = [];
82
+ const stamp = () => new Date(now()).toISOString().slice(0, 19);
83
+ try {
84
+ for (let round = 1; round <= rounds; round++) {
85
+ const before = await readText(skillPath);
86
+ const baseline = score(before, { measured: false });
87
+ const dimension = weakestDimension(baseline);
88
+ if (dimension === null) {
89
+ await appendResult?.(resultRow({ timestamp: stamp(), commit: '-', skill: name, oldScore: String(baseline?.total ?? '-'), newScore: '-', status: 'error', dimension: '-', note: 'rubric produced no scorable dimensions', evalMode: 'structural' }));
90
+ return { status: 'error', rounds: history, finalScore: baseline?.total ?? null, error: 'no scorable dimensions' };
91
+ }
92
+ let candidate;
93
+ try {
94
+ candidate = await generate({ skillPath, before, dimension, round });
95
+ } catch (error) {
96
+ return { status: 'error', rounds: history, finalScore: baseline?.total ?? null, error: `generator failed: ${error?.message ?? error}` };
97
+ }
98
+ const validation = validateCandidate({ before, after: candidate });
99
+ if (!validation.ok) {
100
+ await appendResult?.(resultRow({ timestamp: stamp(), commit: '-', skill: name, oldScore: String(baseline.total), newScore: '-', status: 'skipped', dimension: dimension.name, note: validation.reason, evalMode: 'structural' }));
101
+ continue;
102
+ }
103
+ // 版本化:先记录基线,再写入候选。
104
+ let version = null;
105
+ if (vcs?.kind === 'git') {
106
+ try { version = await vcs.commit(`optimize ${name}: address dim${dimension.id} ${dimension.name}`); }
107
+ catch { version = null; }
108
+ } else if (vcs?.kind === 'file') {
109
+ version = await vcs.backup(skillPath, before);
110
+ }
111
+ await writeText(skillPath, candidate);
112
+ let verdict;
113
+ try {
114
+ verdict = await judge({ before, after: candidate, skillPath });
115
+ } catch (error) {
116
+ // judge 不可用:回滚,绝不保留未验证改动。
117
+ await restore(vcs, skillPath, before, version);
118
+ return { status: 'error', rounds: history, finalScore: baseline.total, error: `judge unavailable: ${error?.message ?? error}` };
119
+ }
120
+ const margins = (verdict.votes ?? []).map((vote) => vote.margin ?? 'slight');
121
+ staleness.push(margins);
122
+ const kept = verdict.verdict === 'keep';
123
+ if (!kept) {
124
+ await restore(vcs, skillPath, before, version);
125
+ } else if (vcs?.kind === 'git' && version !== null && typeof vcs.commitKept === 'function') {
126
+ await vcs.commitKept(version);
127
+ }
128
+ const afterScore = kept ? score(candidate, { measured: false }) : baseline;
129
+ history.push({
130
+ round,
131
+ dimension: `dim${dimension.id} ${dimension.name}`,
132
+ verdict: verdict.verdict,
133
+ better: verdict.better,
134
+ worse: verdict.worse,
135
+ ties: verdict.ties,
136
+ margins,
137
+ oldScore: baseline.total,
138
+ newScore: afterScore?.total ?? null,
139
+ kept,
140
+ });
141
+ await appendResult?.(resultRow({
142
+ timestamp: stamp(),
143
+ commit: version ?? '-',
144
+ skill: name,
145
+ oldScore: String(baseline.total),
146
+ newScore: String(afterScore?.total ?? '-'),
147
+ status: kept ? 'keep' : 'revert',
148
+ dimension: `dim${dimension.id}`,
149
+ note: `${verdict.better}-${verdict.worse} ${verdict.verdict}${verdict.errors?.length ? ` (${verdict.errors.join('; ')})` : ''}`,
150
+ evalMode: 'paired',
151
+ }));
152
+ if (!kept) {
153
+ return { status: 'reverted', rounds: history, finalScore: baseline.total };
154
+ }
155
+ if (isPlateau(staleness)) {
156
+ return { status: 'plateau', rounds: history, finalScore: (await readText(skillPath)).length > 0 ? (score(await readText(skillPath), { measured: false })?.total ?? null) : null };
157
+ }
158
+ }
159
+ const finalText = await readText(skillPath);
160
+ return { status: 'completed', rounds: history, finalScore: score(finalText, { measured: false })?.total ?? null };
161
+ } catch (error) {
162
+ return { status: 'error', rounds: history, finalScore: null, error: error?.message ?? String(error) };
163
+ }
164
+ }
165
+
166
+ async function restore(vcs, skillPath, before, version) {
167
+ if (vcs?.kind === 'git') {
168
+ try { await vcs.revert(); } catch { /* fall through to file restore */ }
169
+ // 兜底:git revert 失败时用内存里的基线覆盖,保证不留下未验证改动。
170
+ }
171
+ if (vcs?.kind === 'file' && version !== null && typeof vcs.restore === 'function') {
172
+ try { await vcs.restore(skillPath, version); return; } catch { /* fall through */ }
173
+ }
174
+ if (vcs?.kind === 'git') {
175
+ try { await vcs.writeBaseline?.(skillPath, before); } catch { /* last resort */ }
176
+ }
177
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.3.89",
3
+ "version": "0.3.90",
4
4
  "type": "module",
5
5
  "description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
6
6
  "license": "MIT",
@@ -30,3 +30,18 @@ whenToUse: 所有 Agent(PMO/主理人/执行/验收)在规划、实现、验
30
30
  - PMO/主理人:用复盘、头脑风暴、深度研究形成验收标准与 Task 草案,不把决策推给 Human;需要 Human 时交给 PMO 自动决策。
31
31
  - 执行:先读核心纪律与结果定义;交付证据必须实测,不手填数字。
32
32
  - 验收:独立复跑;只按 resultDefinition / QA checklist 判定;不共享执行者的 claim。
33
+
34
+ ## 会议要求
35
+
36
+ 请启动“正反极限论证器”。不要急着回答,也不要默认 Human 或 PMO 的问题已经定义正确。
37
+ 第一步,用最完整、最准确的方式重新表述我真正想解决的问题,并指出其中可能存在的隐含假设。
38
+ 第二步,分别建立两个最强版本的论证:【最强支持方】尽可能使用事实、逻辑、案例和因果关系证明我的当前想法成立;【最强反对方】同样以最有力的方式证明我的想法可能错误。禁止故意给任何一边安排弱论据。
39
+ 第三步,比较双方真正的分歧点,找出最可能改变最终结论的3个关键变量。
40
+ 第四步,只向我提出一个最值得回答的问题。等我回答后,再综合双方证据,明确给出当前判断、理由、最大风险、结论置信度以及下一步最值得采取的行动。
41
+ 我的问题是:[用户填写,或者由 PMO 代填]。
42
+
43
+ ## 结果定义
44
+
45
+ - **明确可量化**:结果必须能够被客观测量和验证。
46
+ - **与业务目标对齐**:结果应直接反映业务价值和用户满意度。
47
+ - **可追溯性**:所有结果都应有清晰的来源和记录,便于后续分析和优化。