outline-refiner
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOutline Refiner (Planner pass, NO PROSE)
大纲优化器(Planner pass,禁止生成正文内容)
Goal: make the outline auditable by adding an explicit planner stage that answers:
- Do we have enough mapped evidence per H3?
- Are the same few papers reused everywhere?
- Are subsection axes still generic/scaffold-y?
- Is the outline likely to produce a paper-like structure (final ToC budget: ~6–8 H2; fewer, thicker H3s)?
This is a deterministic “planner” unit: it must not write survey prose.
目标:通过添加一个明确的planner阶段,让大纲具备可审计性,该阶段需回答以下问题:
- 每个H3小节是否有足够的映射证据?
- 是否存在少数论文被反复复用的情况?
- 子小节的维度是否仍过于通用/框架化?
- 该大纲是否可能生成类论文的结构(最终目录预算:约6–8个H2;更少、更详实的H3)?
这是一个确定性的“planner”单元:不得撰写调研类正文内容。
Inputs
输入项
Required:
outline/outline.ymloutline/mapping.tsv
Optional (best-effort diagnosis; may be missing early in the pipeline):
- (if present: explains recent merges; helps interpret mapping/coverage changes)
outline/OUTLINE_BUDGET_REPORT.md - (for evidence levels)
papers/paper_notes.jsonl - (for axis specificity)
outline/subsection_briefs.jsonl - (for scope drift hints)
GOAL.md
必填:
outline/outline.ymloutline/mapping.tsv
可选(尽最大努力诊断;在流程早期可能缺失):
- (若存在:解释近期的合并操作;有助于解读映射/覆盖率变化)
outline/OUTLINE_BUDGET_REPORT.md - (用于证据级别判断)
papers/paper_notes.jsonl - (用于维度特异性判断)
outline/subsection_briefs.jsonl - (用于提示明显的范围偏离)
GOAL.md
Outputs
输出项
- (bullets + small tables; NO PROSE)
outline/coverage_report.md - (append-only JSONL; one record per run)
outline/outline_state.jsonl
- (项目符号+小型表格;无正文内容)
outline/coverage_report.md - (追加式JSONL文件;每次运行生成一条记录)
outline/outline_state.jsonl
Workflow (planner pass, NO PROSE)
工作流(Planner pass,禁止生成正文内容)
- Parse to enumerate H2 sections + H3 subsections (section sizing / budget).
outline/outline.yml- If exists, use it as the merge/change log so the coverage report can explain why structure changed.
outline/OUTLINE_BUDGET_REPORT.md
- If
- Read and compute per-H3 coverage and reuse hotspots.
outline/mapping.tsv - If exists, summarize evidence levels (fulltext/abstract/title) for mapped papers.
papers/paper_notes.jsonl - If exists, compute axis specificity (generic vs specific axes) per H3.
outline/subsection_briefs.jsonl - Optionally use to flag obvious scope drift (keywords not reflected in outline).
GOAL.md - Write and append a run record to
outline/coverage_report.md.outline/outline_state.jsonl
- 解析,枚举H2章节 + H3子小节(章节规模/预算)。
outline/outline.yml- 若存在,将其作为合并/变更日志,以便覆盖率报告能解释结构变更的原因。
outline/OUTLINE_BUDGET_REPORT.md
- 若
- 读取,计算每个H3小节的覆盖率和复用热点。
outline/mapping.tsv - 若存在,汇总已映射论文的证据级别(全文/摘要/标题)。
papers/paper_notes.jsonl - 若存在,计算每个H3小节的维度特异性(通用维度vs特定维度)。
outline/subsection_briefs.jsonl - 可选:使用标记明显的范围偏离(大纲中未体现的关键词)。
GOAL.md - 生成并向
outline/coverage_report.md追加一条运行记录。outline/outline_state.jsonl
Freeze policy
冻结策略
- If exists, the script will not overwrite
outline/coverage_report.refined.ok.outline/coverage_report.md
- 若文件存在,脚本将不会覆盖
outline/coverage_report.refined.ok。outline/coverage_report.md
Script
脚本
Quick Start
快速开始
python .codex/skills/outline-refiner/scripts/run.py --helppython .codex/skills/outline-refiner/scripts/run.py --workspace workspaces/<ws>
python .codex/skills/outline-refiner/scripts/run.py --helppython .codex/skills/outline-refiner/scripts/run.py --workspace workspaces/<ws>
All Options
所有选项
- : workspace root
--workspace <dir> - : unit id (optional; for logs)
--unit-id <U###> - : override inputs (rare; prefer defaults)
--inputs <semicolon-separated> - : override outputs (rare; prefer defaults)
--outputs <semicolon-separated> - : checkpoint id (optional; for logs)
--checkpoint <C#>
- :工作区根目录
--workspace <dir> - :单元ID(可选;用于日志)
--unit-id <U###> - :覆盖输入项(罕见;优先使用默认值)
--inputs <semicolon-separated> - :覆盖输出项(罕见;优先使用默认值)
--outputs <semicolon-separated> - :检查点ID(可选;用于日志)
--checkpoint <C#>
Examples
示例
- Planner-pass diagnostics after :
section-mapperpython .codex/skills/outline-refiner/scripts/run.py --workspace workspaces/<ws>
- 在之后执行Planner-pass诊断:
section-mapperpython .codex/skills/outline-refiner/scripts/run.py --workspace workspaces/<ws>
Troubleshooting
故障排除
Issue: report is missing evidence-level or axis-specificity columns
问题:报告缺少证据级别或维度特异性列
Cause:
- Optional inputs are missing (no and/or no
papers/paper_notes.jsonl).outline/subsection_briefs.jsonl
Fix:
- Run and/or
paper-notes, then rerunsubsection-briefs.outline-refiner
原因:
- 可选输入项缺失(无和/或无
papers/paper_notes.jsonl)。outline/subsection_briefs.jsonl
解决方法:
- 运行和/或
paper-notes,然后重新运行subsection-briefs。outline-refiner