The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(curator): stop pinning the unadvertised edit alias in the read-before-write prompt
teknium1968624b0dbea
diff --git a/tests/agent/test_curator.py b/tests/agent/test_curator.pyindex 261b252f90b..0d3ae9395b7 100644--- a/tests/agent/test_curator.py+++ b/tests/agent/test_curator.py@@ -642,7 +642,9 @@ def test_review_prompt_tells_reviewer_to_read_before_writing(curator_env, monkey``_background_review_read_before_write_guard`` refuses a background-reviewwrite whose target was not loaded via ``skill_view`` in the same turn —- edit, patch, write_file over an existing file, and remove_file. The forked+ patch (targeted or full rewrite), write_file over an existing file, and+ remove_file; ``edit`` is an unadvertised alias of the full-rewrite patch,+ so the prompt no longer names it. The forkedreviewer only performs that read if the prompt tells it to, so a guard theprompt never mentions is a silently jammed write channel rather than asafety net: the run completes, writes nothing, and reads like a pass that@@ -669,7 +671,7 @@ def test_review_prompt_tells_reviewer_to_read_before_writing(curator_env, monkeyprompt = captured["prompt"]assert "skill_view" in prompt- for action in ("edit", "patch", "write_file", "remove_file"):+ for action in ("patch", "write_file", "remove_file"):assert f"action={action}" in prompt, ("the delivered prompt never tells the reviewer to call skill_view "f"before skill_manage action={action}, which the read-before-write "