claim-matrix-rewriter
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseClaim Matrix Rewriter (Evidence-first, NO PROSE)
主张矩阵重写工具(证据优先,禁止散文式内容)
Purpose: make a navigation/index layer that is driven by evidence packs (not by outline bullets).
outline/claim_evidence_matrix.mdKey property: keep the legacy, gate-checked format so downstream QA can rely on stable markers:
- (one per subsection)
- Claim: - (>=2 per subsection)
- Evidence:
目的:将打造为一个由证据包(而非大纲项目符号)驱动的导航/索引层。
outline/claim_evidence_matrix.md核心特性:保留经过验证的旧格式,以便下游QA流程可以依赖稳定的标记:
- (每个小节一个)
- Claim: - (每个小节至少2个)
- Evidence:
Inputs
输入文件
outline/subsection_briefs.jsonloutline/evidence_drafts.jsonlcitations/ref.bib
outline/subsection_briefs.jsonloutline/evidence_drafts.jsonlcitations/ref.bib
Outputs
输出文件
outline/claim_evidence_matrix.md
outline/claim_evidence_matrix.md
Non-negotiables
不可协商规则
- NO PROSE: bullets only.
- No placeholders: no , unicode ellipsis (
...),…,TODO, or(placeholder).<!-- SCAFFOLD --> - Claims are evidence-aware:
- fulltext-backed: may summarize comparisons
- abstract-only/title-only: must be provisional (no strong “dominant trade-offs” language)
- 禁止散文式内容:仅使用项目符号。
- 无占位符:不得使用、Unicode省略号(
...)、…、TODO或(placeholder)。<!-- SCAFFOLD --> - 主张需基于证据:
- 有全文支持:可总结对比内容
- 仅含摘要/标题:必须为临时主张(不得使用“主导权衡”这类绝对表述)
Helper script
辅助脚本
python .codex/skills/claim-matrix-rewriter/scripts/run.py --helppython .codex/skills/claim-matrix-rewriter/scripts/run.py --workspace <ws>
python .codex/skills/claim-matrix-rewriter/scripts/run.py --helppython .codex/skills/claim-matrix-rewriter/scripts/run.py --workspace <ws>
Script
脚本说明
Quick Start
快速开始
python .codex/skills/claim-matrix-rewriter/scripts/run.py --helppython .codex/skills/claim-matrix-rewriter/scripts/run.py --workspace <ws>
python .codex/skills/claim-matrix-rewriter/scripts/run.py --helppython .codex/skills/claim-matrix-rewriter/scripts/run.py --workspace <ws>
All Options
所有选项
- See .
--help - Requires: ,
outline/subsection_briefs.jsonl,outline/evidence_drafts.jsonl.citations/ref.bib
- 查看获取详情。
--help - 依赖:、
outline/subsection_briefs.jsonl、outline/evidence_drafts.jsonl。citations/ref.bib
Examples
使用示例
- Rewrite the matrix from evidence packs:
- Ensure and
outline/subsection_briefs.jsonlexist andoutline/evidence_drafts.jsonlis empty.blocking_missing - Ensure exists and contains the cited keys.
citations/ref.bib - Run:
python .codex/skills/claim-matrix-rewriter/scripts/run.py --workspace workspaces/<ws>
- Ensure
- 从证据包重写矩阵:
- 确保和
outline/subsection_briefs.jsonl已存在且outline/evidence_drafts.jsonl为空。blocking_missing - 确保已存在且包含所需的引用键。
citations/ref.bib - 运行命令:
python .codex/skills/claim-matrix-rewriter/scripts/run.py --workspace workspaces/<ws>
- 确保
Troubleshooting
故障排除
Issue: cited keys are missing from citations/ref.bib
citations/ref.bib问题:citations/ref.bib
中缺少引用键
citations/ref.bibFix:
- Run (or fix the upstream notes) so every referenced key exists before rewriting.
citation-verifier
解决方法:
- 运行(或修复上游笔记),确保所有引用的键在重写前已存在。
citation-verifier
Issue: evidence packs still have blocking_missing
blocking_missing问题:证据包仍包含blocking_missing
blocking_missingFix:
- Fix upstream evidence (/
paper-notes) first; the matrix should not “paper over” missing evidence.evidence-draft
解决方法:
- 先修复上游证据(/
paper-notes);矩阵不能“掩盖”缺失的证据。evidence-draft