rename(547): three hook-shell tests call the renamed functions
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 53s
CI & Build / integration (push) Successful in 1m1s
CI & Build / Python tests (push) Successful in 1m54s
CI & Build / Build & push image (push) Successful in 32s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 53s
CI & Build / integration (push) Successful in 1m1s
CI & Build / Python tests (push) Successful in 1m54s
CI & Build / Build & push image (push) Successful in 32s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user