diff --git a/Agent.md b/Agent.md index cf5a0440..c3714148 100644 --- a/Agent.md +++ b/Agent.md @@ -118,7 +118,7 @@ Community needs voiced in HN agent-UI discussions map directly to EMRG's design: pkill -f "emrg.server"; rm -f ~/.emrg/emrgd.port; python -m emrg ``` -Python: `uv run pytest tests/ -v` (875) — import check: `uv run python -c "from emrg.client.app import run_client"` +Python: `uv run pytest tests/ -v` (876) — import check: `uv run python -c "from emrg.client.app import run_client"` GUI: `cd emrg/gui && npm test` (257: 45 daemon_client + 19 conn-manager + 22 app-commands + 129 renderer smoke + 16 i18n + 7 integration + 3 commands + 7 build-config + 7 gui-state + 2 tool-group) — syntax: `node --check main.js preload.js daemon_client.js renderer/js/*.js` CI: `uv run pytest` (ubuntu + **windows-2025 matrix** — Windows pytest 回归在 PR CI 即失败,v0.2.29 教训 #725) + GUI tests + **actionlint workflow lint** (`rhysd/actionlint@v1.7.12` gate, #444 — workflow 解析错误在 PR CI 即失败,如 `if:` secrets 上下文) Re-trigger: `scripts/re-trigger-ci.sh [branch]` (workflow_dispatch, #527 — 替代空 commit 重触发:Actions outage 会整段丢弃 push 事件,dispatch 走 API 路径不受影响) diff --git a/tests/test_doc_counts.py b/tests/test_doc_counts.py index 4f119b28..db18c6ea 100644 --- a/tests/test_doc_counts.py +++ b/tests/test_doc_counts.py @@ -118,3 +118,25 @@ def test_no_duplicate_npm_test_command_lines() -> None: ] assert not bad, f"{doc}: heading(s) must not contain emoji: {bad}" + +def test_evolution_prompt_no_quick_ref_block() -> None: + """evolution_prompt.md must not contain the implemented-features quick + reference block (rant 2026-08-17T14:22:21 — removed in #822). + + pm25coder follow-up on #822: cheap insurance against accidental + re-insertion of the static in-prompt history table. The memory system + + git log handle dedup instead. + """ + prompt = (REPO_ROOT / "emrg" / "server" / "evolution_prompt.md").read_text( + encoding="utf-8" + ) + # Case-insensitive match (pm25coder note): the original block's header was + # capitalized ("Implemented-features quick reference") — the lowercase + # body phrase is the guaranteed substring, but lowercasing the whole file + # catches a header-only re-insertion too. + assert "implemented-features quick reference" not in prompt.lower(), ( + "evolution_prompt.md must not contain the implemented-features quick " + "reference block — dedup is handled by the memory system + git log " + "(rant 2026-08-17T14:22:21, #822)" + ) +