From f1d26f01e2a0ff8e4e183953f390cf39e2227ebf Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 22 Oct 2026 11:01:11 -0400 Subject: [PATCH] rename(547): three hook-shell tests call the renamed functions The step-3 sweep matched `scribe` only after a non-letter, and in these three tests the shell call sits right after a `\n` escape in a Python string, so the character before it was the letter n. They still called scribe_recent_context, scribe_skip_prompt and scribe_checkpoint_allowed; they now call the grimoire_ names. No other escape-adjacent occurrence remains in the tree. Co-Authored-By: Claude Opus 5.5 --- tests/test_autoinject_context.py | 2 +- tests/test_prompt_boundary_filter.py | 2 +- tests/test_session_slippage_readout.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_autoinject_context.py b/tests/test_autoinject_context.py index ed3696b3..c8eb006c 100644 --- a/tests/test_autoinject_context.py +++ b/tests/test_autoinject_context.py @@ -70,7 +70,7 @@ def recent(tmp_path: Path, lines: list[str]) -> str: t = tmp_path / "t.jsonl" t.write_text("\n".join(lines) + "\n") r = subprocess.run( - ["bash", "-c", f'set -uo pipefail\n. "{DEFS}"\nscribe_recent_context "{t}"'], + ["bash", "-c", f'set -uo pipefail\n. "{DEFS}"\ngrimoire_recent_context "{t}"'], capture_output=True, ) assert r.returncode == 0, r.stderr.decode() diff --git a/tests/test_prompt_boundary_filter.py b/tests/test_prompt_boundary_filter.py index 0ef29a3f..68aabf16 100644 --- a/tests/test_prompt_boundary_filter.py +++ b/tests/test_prompt_boundary_filter.py @@ -75,7 +75,7 @@ def _skip(prompt: str) -> bool: """Run the real predicate in the real shell — not a reimplementation.""" if shutil.which("bash") is None: # pragma: no cover pytest.skip("hook runtime tool 'bash' not installed") - script = f'set -uo pipefail\n. "{DEFS}"\nscribe_skip_prompt "$1" && echo SKIP || echo KEEP\n' + script = f'set -uo pipefail\n. "{DEFS}"\ngrimoire_skip_prompt "$1" && echo SKIP || echo KEEP\n' out = subprocess.run( ["bash", "-c", script, "_", prompt], capture_output=True, text=True, timeout=30, diff --git a/tests/test_session_slippage_readout.py b/tests/test_session_slippage_readout.py index 693d6581..41233f81 100644 --- a/tests/test_session_slippage_readout.py +++ b/tests/test_session_slippage_readout.py @@ -317,7 +317,7 @@ def test_a_checkpoint_budget_is_restored_by_a_compaction(tmp_path): f = d / "s.checkpoint.ids" sh(f'grimoire_checkpoint_allowed "{f}" 156 >/dev/null') r = subprocess.run( - ["bash", "-c", f'. "{DEFS}"\nscribe_checkpoint_allowed "{f}" 156'], + ["bash", "-c", f'. "{DEFS}"\ngrimoire_checkpoint_allowed "{f}" 156'], capture_output=True, text=True, timeout=30, ) assert r.returncode != 0, "a rule does not get to stop the same session twice"