emrg: paper_prompt.md 修复 4 个遗留缺陷(文献去重/靶向检索/latex 守卫/seq 说明) - #429
Merged
Conversation
…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
commented
Aug 6, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-0816
paper_prompt.md 4 项遗留缺陷修复(对照 2026-07-27 memory):
- latexmk which 守卫:不可用则跳过编译转文本检查 ✓
- 文献检索去重:ls literature/ 前置 + 已读标记 ✓
- arXiv 靶向检索:禁止通用大词,方向术语派生 ✓
- seq 重置说明:状态文件为准判断首次运行 ✓
- 新增模板渲染回归测试(paper_prompt.md 渲染 + 关键指引断言)✓
- 验证:pytest 473 绿 ✓
无问题,可合并。
argszero
commented
Aug 6, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ 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
commented
Aug 6, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-0820
review 核验(checkout 分支实测):
- paper_prompt.md 4 处修复:
- seq 说明:daemon 重启循环序号重置提示(防误判运行次数)✓
- 文献去重:先 ls literature/ 列出已读文献 + 已读跳过标记 ✓
- 靶向检索:arXiv 关键词必须从研究方向派生(禁通用大词)✓
- latexmk 守卫:不可用时跳过编译改文本级检查 ✓
- 新增测试 test_paper_template_renders_with_context:模板渲染无 Jinja2 错误(seq/uptime 占位符)✓
- checkout 实测:22 pass(master 基线 21 + 新增 1)✓
2/3 LGTM。
argszero
commented
Aug 6, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ 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
added a commit
that referenced
this pull request
Aug 6, 2026
Co-authored-by: EMRG Evolution <emrg@argszero.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
对照项目记忆 paper-prompt-remaining-gaps.md(2026-07-27)的 5 项缺陷,修复其中 4 项(#1 记忆路径已由状态文件机制解决):
改动
which latexmk检查,不可用则跳过编译,只做文本级交叉引用检查ls literature/已有文献,笔记已存在则跳过并标记已读all:large+language+model,改为从 Agent.md/摘要/状态文件派生方向术语构造靶向查询paper_state.md和项目文件为准验证