fix(8205,8206): the new test helper no longer shadows _system, and using-grimoire fits its 350 lines
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 33s
CI & Build / Python tests (push) Successful in 2m9s
CI & Build / integration (push) Successful in 2m11s
CI & Build / Build & push image (push) Successful in 31s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 17:55:37 -05:00
co-authored by Claude Opus 5.5
parent 9e3767f375
commit ff47a2b08b
3 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "grimoire",
"description": "Grimoire for Claude Code: connects the grimoire MCP server, adds the hooks that deliver live project state and relevant records at the right moment, ships the shared client-neutral Grimoire skills (using-grimoire, writing-plans, reporting-back, systematic-debugging, verification, brainstorming, reusing-code, shape-accounting, family-canon), and syncs your saved Grimoire Processes as skills (/grimoire:sync).",
"version": "2026.11.28.2250",
"version": "2026.11.28.2255",
"author": {
"name": "Bryan Van Deusen"
},
+4 -6
View File
@@ -55,12 +55,10 @@ Two constraints on *how* that's achieved:
`project_id` so results stay scoped.
**Code tells you what a thing does, not what was wanted.** A limit, a
default or a fallback found by reading the work is a past session's choice
until a record says the operator made it. Before presenting one as a
safeguard or a known cost, or before changing a filter, a gate or a
default, read the `Rulings` on the System it belongs to; when none speaks
to it, call it unconfirmed rather than settled. A change that would undo
what a ruling says the thing is for goes to the operator first.
default or a filter found in the work is a past session's choice until a
record says the operator made it. Before relying on one or changing it,
read the `Rulings` on its System; none speaking to it means unconfirmed,
and a change that would undo what a ruling says it is for goes to them.
2. **Rules are binding, and they reach you by retrieval.** No call loads the
operator's rules and no standing set is handed to a session. A rule arrives
+6 -6
View File
@@ -244,7 +244,7 @@ async def test_a_write_with_no_prior_art_still_carries_its_areas_rulings():
# ── a System whose rulings reach nobody ───────────────────────────────────
def _system(sid, *, description, patterns):
def _area(sid, *, description, patterns):
return SimpleNamespace(id=sid, name=f"Area {sid}", description=description,
path_patterns=patterns)
@@ -254,11 +254,11 @@ RULED = "What it does.\n\n## Rulings\n\n- **One decision** (operator, a date).\n
def test_a_system_with_rulings_and_no_files_is_named_as_undelivered():
systems = [
_system(1, description=RULED, patterns=[]),
_area(1, description=RULED, patterns=[]),
# Files named: its rulings are delivered on them.
_system(2, description=RULED, patterns=["src/area/**"]),
_area(2, description=RULED, patterns=["src/area/**"]),
# No rulings: nothing to deliver, so nothing to flag.
_system(3, description="What it does.", patterns=[]),
_area(3, description="What it does.", patterns=[]),
]
assert sr.undelivered(systems) == [{"id": 1, "name": "Area 1", "rulings": 2}]
@@ -266,8 +266,8 @@ def test_a_system_with_rulings_and_no_files_is_named_as_undelivered():
def test_enter_project_carries_the_flag_only_when_a_system_needs_it():
from grimoire.mcp.tools.projects import _rulings_undelivered
flagged = _rulings_undelivered([_system(1, description=RULED, patterns=[])])
flagged = _rulings_undelivered([_area(1, description=RULED, patterns=[])])
assert flagged["rulings_undelivered"]["systems"] == [{"id": 1, "name": "Area 1", "rulings": 2}]
assert "update_system" in flagged["rulings_undelivered"]["fix"]
# Absent, not empty, when every ruled System names its files.
assert _rulings_undelivered([_system(2, description=RULED, patterns=["src/**"])]) == {}
assert _rulings_undelivered([_area(2, description=RULED, patterns=["src/**"])]) == {}