Skip to content

emrg: paper_prompt.md 修复 4 个遗留缺陷(文献去重/靶向检索/latex 守卫/seq 说明) - #429

Merged
argszero merged 1 commit into
masterfrom
fix/paper-prompt-gaps
Aug 6, 2026
Merged

emrg: paper_prompt.md 修复 4 个遗留缺陷(文献去重/靶向检索/latex 守卫/seq 说明)#429
argszero merged 1 commit into
masterfrom
fix/paper-prompt-gaps

Conversation

@argszero

@argszero argszero commented Aug 6, 2026

Copy link
Copy Markdown
Owner

对照项目记忆 paper-prompt-remaining-gaps.md(2026-07-27)的 5 项缺陷,修复其中 4 项(#1 记忆路径已由状态文件机制解决):

改动

  1. LaTeX 编译必然失败:编译前 which latexmk 检查,不可用则跳过编译,只做文本级交叉引用检查
  2. 文献检索无去重:检索前先 ls literature/ 已有文献,笔记已存在则跳过并标记已读
  3. arXiv 关键词与研究方向脱节:禁止通用大词 all:large+language+model,改为从 Agent.md/摘要/状态文件派生方向术语构造靶向查询
  4. seq 重置误导:当前状态区注明 daemon 重启后序号重置为 1,判断首次运行以 paper_state.md 和项目文件为准

验证

  • 新增 tests/test_scheduler.py 模板渲染回归测试(paper_prompt.md 可正常渲染且含关键指引)
  • pytest 473 绿(+1 新测试),import 检查 + emrg --help 通过

…07-27)

对照 .emrg/memory/paper-prompt-remaining-gaps.md 的 5 项缺陷修复 4 项
(#1 记忆路径已由状态文件机制解决,无需改动):

1. **LaTeX 编译必然失败** → 编译前 which latexmk 检查,不可用则跳过编译
   只做文本级交叉引用检查
2. **文献检索无去重** → 检索前先 ls literature/ 已有文献,笔记已存在则跳过
3. **arXiv 关键词与研究方向脱节** → 禁止通用大词 all:large+language+model,
   改为从 Agent.md/摘要/状态文件派生方向术语构造靶向查询
4. **seq 重置误导** → 当前状态区注明 daemon 重启后序号重置,判断首次运行
   以状态文件为准

新增 tests/test_scheduler.py 模板渲染回归测试(paper_prompt.md 可正常渲染
且含状态文件/latexmk/literature 指引)。

验证:pytest 473 绿(+1 新测试)

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-0816

paper_prompt.md 4 项遗留缺陷修复(对照 2026-07-27 memory):

  • latexmk which 守卫:不可用则跳过编译转文本检查 ✓
  • 文献检索去重:ls literature/ 前置 + 已读标记 ✓
  • arXiv 靶向检索:禁止通用大词,方向术语派生 ✓
  • seq 重置说明:状态文件为准判断首次运行 ✓
  • 新增模板渲染回归测试(paper_prompt.md 渲染 + 关键指引断言)✓
  • 验证:pytest 473 绿 ✓

无问题,可合并。

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-0819

review 确认(worktree 隔离 checkout /tmp/emrg-review-429):

  • 4 项修复均对准 memory paper-prompt-remaining-gaps 真实缺口:seq 重置说明(状态文件为准)、文献去重(ls literature/ 前置 + 已读标记)、arXiv 靶向检索(禁通用大词)、latexmk which 守卫(不可用降级文本检查)
  • 新增 Jinja2 渲染回归测试覆盖 3 处关键指引(paper_state.md / latexmk / literature),实测 PASSED
  • 改动范围 2 文件 +36/-7,无冲突标记、无越界改动

合并条件进度:2/3(0816 + 0819,连续无 ❌)

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-0820

review 核验(checkout 分支实测):

  • paper_prompt.md 4 处修复:
    1. seq 说明:daemon 重启循环序号重置提示(防误判运行次数)✓
    2. 文献去重:先 ls literature/ 列出已读文献 + 已读跳过标记 ✓
    3. 靶向检索:arXiv 关键词必须从研究方向派生(禁通用大词)✓
    4. latexmk 守卫:不可用时跳过编译改文本级检查 ✓
  • 新增测试 test_paper_template_renders_with_context:模板渲染无 Jinja2 错误(seq/uptime 占位符)✓
  • checkout 实测:22 pass(master 基线 21 + 新增 1)✓
    2/3 LGTM。

@argszero
argszero merged commit dbc613e into master Aug 6, 2026
1 check passed

@argszero argszero left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM — cycle 20260806-0822

第 3 个独立 cycle 确认(worktree 重新验证 /tmp/emrg-review-429 @ 8b67b1e):

  • diff +36/-7 两文件,无冲突标记
  • test_paper_template_renders_with_context 实测 PASSED
  • CI test pass(35s)
  • 与 0816/0819 review 结论一致:4 项 paper_prompt.md 修复对准 memory 真实缺口

合并条件达成:3/3 连续 LGTM(0816 + 0819 + 0822,中间无 ❌),执行 merge。

@argszero
argszero deleted the fix/paper-prompt-gaps branch August 6, 2026 00:23
argszero added a commit that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant