diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 3d9f6fd6..e406a358 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -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" }, diff --git a/plugin/skills/using-grimoire/SKILL.md b/plugin/skills/using-grimoire/SKILL.md index 91735621..3771d359 100644 --- a/plugin/skills/using-grimoire/SKILL.md +++ b/plugin/skills/using-grimoire/SKILL.md @@ -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 diff --git a/tests/test_system_rulings.py b/tests/test_system_rulings.py index 4972fbac..d58b6bdf 100644 --- a/tests/test_system_rulings.py +++ b/tests/test_system_rulings.py @@ -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/**"])]) == {}