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
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:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "grimoire",
|
"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).",
|
"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": {
|
"author": {
|
||||||
"name": "Bryan Van Deusen"
|
"name": "Bryan Van Deusen"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -55,12 +55,10 @@ Two constraints on *how* that's achieved:
|
|||||||
`project_id` so results stay scoped.
|
`project_id` so results stay scoped.
|
||||||
|
|
||||||
**Code tells you what a thing does, not what was wanted.** A limit, a
|
**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
|
default or a filter found in the work is a past session's choice until a
|
||||||
until a record says the operator made it. Before presenting one as a
|
record says the operator made it. Before relying on one or changing it,
|
||||||
safeguard or a known cost, or before changing a filter, a gate or a
|
read the `Rulings` on its System; none speaking to it means unconfirmed,
|
||||||
default, read the `Rulings` on the System it belongs to; when none speaks
|
and a change that would undo what a ruling says it is for goes to them.
|
||||||
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.
|
|
||||||
|
|
||||||
2. **Rules are binding, and they reach you by retrieval.** No call loads the
|
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
|
operator's rules and no standing set is handed to a session. A rule arrives
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ async def test_a_write_with_no_prior_art_still_carries_its_areas_rulings():
|
|||||||
# ── a System whose rulings reach nobody ───────────────────────────────────
|
# ── 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,
|
return SimpleNamespace(id=sid, name=f"Area {sid}", description=description,
|
||||||
path_patterns=patterns)
|
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():
|
def test_a_system_with_rulings_and_no_files_is_named_as_undelivered():
|
||||||
systems = [
|
systems = [
|
||||||
_system(1, description=RULED, patterns=[]),
|
_area(1, description=RULED, patterns=[]),
|
||||||
# Files named: its rulings are delivered on them.
|
# 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.
|
# 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}]
|
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():
|
def test_enter_project_carries_the_flag_only_when_a_system_needs_it():
|
||||||
from grimoire.mcp.tools.projects import _rulings_undelivered
|
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 flagged["rulings_undelivered"]["systems"] == [{"id": 1, "name": "Area 1", "rulings": 2}]
|
||||||
assert "update_system" in flagged["rulings_undelivered"]["fix"]
|
assert "update_system" in flagged["rulings_undelivered"]["fix"]
|
||||||
# Absent, not empty, when every ruled System names its files.
|
# 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/**"])]) == {}
|
||||||
|
|||||||
Reference in New Issue
Block a user