Scribe is renamed Fabled Grimoire #212

Merged
bvandeusen merged 78 commits from dev into main 2026-10-22 14:20:16 -04:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit f1d26f01e2 - Show all commits
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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"