Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ flowchart LR
C -. 诊断反馈 .-> R
C -. 诊断反馈 .-> P
C -. 诊断反馈 .-> E
C --> V[完整候选的独立审阅]
C --> V[完整候选的只读审阅]
V --> A[原题重检与独立评测]
```

Lead 计入 `--workers` 的总人数。默认配置中,Engineer 持续负责原题,Researcher 处理辅助引理、替代路线和关键猜想;超过四人时增加 Prover,专门领取已明确完整 Lean 类型的辅助引理。完整候选交给符合条件的同伴切换为只读 Reviewer。
Lead 计入 `--workers` 的总人数。默认配置中,Engineer 持续负责原题,Researcher 处理辅助引理、替代路线和关键猜想;超过四人时增加 Prover,专门领取已明确完整 Lean 类型的辅助引理。

| `--workers` | 角色配置 |
| --- | --- |
Expand Down Expand Up @@ -303,6 +303,8 @@ Lead 的普通规划和初始规划执行 90 秒后收到保存提醒,120 秒

每次普通 Lead 调度都可通过本次上下文提供的专用 JSONL 文件提前发布一个完整计划。后续计划需携带准确的 `dispatchNonce` 和 `baseVersion`;宿主在同一 checkpoint 保存图、交接决策与发布收据,再唤醒等待者。每个 dispatch 只接纳第一条有效完整事件,过期或重复事件不能覆盖人工修改,普通笔记也不会隐式发布计划。最终明确修改的计划仍走正常校验与交付。

研究交付与在途任务的 `consumerGoalIds` 或直接依赖匹配时,通知会附上简短的发现摘要和剩余义务,供该任务核实和使用。通知沿用交付可见范围,完整内容见 `COOPERATION.json`。

### 辅助引理与条件性检查

条件性检查在临时源码投影中将待证引理转换为显式参数,保留未完成义务;依赖闭合后再组合并检查普通证明。局部引理、研究笔记和审阅意见分别记录,最终验收检查全部原题目标。
Expand All @@ -321,7 +323,7 @@ Lead 的普通规划和初始规划执行 90 秒后收到保存提醒,120 秒
| Lean-Eval | 执行独立官方比较器,记录比较结果与对应题目身份 |
| `--evaluator-command` | 使用指定命令作为最终评测,记录 `official: false`;它会覆盖默认评测器 |

完整候选的模型审阅与 Lean 证据分别保存。局部编译、条件性证明和模型审阅提供各自范围的反馈。
完整候选进入终审后,宿主优先安排未参与该候选证明的同伴,在新会话中做只读审阅。若存活的同伴都参与了证明,宿主使用新会话审阅并标记 `independent: false`。终审期间暂停派发普通研究,在途研究会保存草稿并让出执行位置。候选失效或终审要求修改时,普通研究可继续派发。模型审阅和 Lean 验收分别保存。

| 输出 | 内容 |
| --- | --- |
Expand Down
7 changes: 4 additions & 3 deletions src/solver/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type DispatchWaitObservation = {
endedAt?: number;
planVersion?: string;
stage: 'm3-no-ready' | 'host-filtered' | 'm5-no-selection' | 'budget-gated' | 'lead-unavailable' |
'dependency-blocked' | 'dependency-running' | 'route-paused' | 'integration-queue' | 'synchronizing' | 'plan-approval';
'dependency-blocked' | 'dependency-running' | 'route-paused' | 'integration-queue' | 'synchronizing' | 'plan-approval' | 'final-review';
gate?: 'time-limit' | 'turn-limit' | 'model-disabled';
candidateCount: number;
omittedCandidates: number;
Expand Down Expand Up @@ -166,7 +166,7 @@ const record = z.record(z.unknown());
const safeCount = count.max(Number.MAX_SAFE_INTEGER);
const dispatchWaitObservation = z.object({ observedAt: safeCount, endedAt: safeCount.optional(), planVersion: z.string().optional(),
stage: z.enum(['m3-no-ready', 'host-filtered', 'm5-no-selection', 'budget-gated', 'lead-unavailable',
'dependency-blocked', 'dependency-running', 'route-paused', 'integration-queue', 'synchronizing', 'plan-approval']),
'dependency-blocked', 'dependency-running', 'route-paused', 'integration-queue', 'synchronizing', 'plan-approval', 'final-review']),
gate: z.enum(['time-limit', 'turn-limit', 'model-disabled']).optional(),
candidateCount: safeCount, omittedCandidates: safeCount,
candidates: z.array(z.object({ taskId: z.string(), taskDigest: z.string(),
Expand Down Expand Up @@ -412,7 +412,8 @@ const runState = research.extend({ schema: z.literal('deepscientist.math.solver.
retiredRoutes: z.array(retiredRouteSchema).optional(), retiredRouteTasks: z.record(z.string()).optional(),
proofReadyRecords: z.array(proofReadyRecordSchema).optional(),
proofImports: z.array(proofImportRecordSchema).optional(),
landedHelpers: z.array(z.object({ qualifiedName: z.string(), file: z.string(), commit: z.string(), type: z.string() })).optional(),
landedHelpers: z.array(z.object({ qualifiedName: z.string(), file: z.string(), commit: z.string(), type: z.string(),
kind: z.literal('definition').optional(), producer: z.string().optional() })).optional(),
proofSearchRecords: z.record(proofSearchRecordSchema).optional(),
initialPlanPublication: planPublication.optional(), planPublication: planPublication.optional(),
lastLeadPauseInputDigest: z.string().regex(/^[a-f0-9]{64}$/u).optional(),
Expand Down
1 change: 1 addition & 0 deletions src/solver/automaticExplanations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export async function generateSolverExplanations(input: Input, options: Options
proofId: `proof_${mathDigest(target.target).slice(0, 32)}`, target: target.target,
proofFile: path.join(project, target.proofPath), projectRoot: project, environment,
statement: input.problem.contract.informalStatement || null, language: input.language,
outputDelivery: 'file',
writer: input.writer, auditors: [1, 2].map(index => ({ ...input.writer, id: `auditor-${index}` })),
alignment: INFORMALIZATION_ALIGNMENT, explanationPolicy: INFORMALIZATION_EXPLANATION_POLICY,
outlinePolicy: INFORMALIZATION_OUTLINE_POLICY, batching: { maxUnits: 12, maxSourceBytes: 60_000 },
Expand Down
Loading
Loading