fix(8140): family triggers open only records that can carry an idea, and enter_project names a project's unevaluated candidates
CI & Build / Python lint (push) Successful in 7s
CI & Build / TypeScript typecheck (push) Successful in 43s
CI & Build / Plugin hooks (push) Successful in 49s
CI & Build / Python tests (push) Failing after 2m12s
CI & Build / integration (push) Successful in 2m41s
CI & Build / Build & push image (push) Skipped

Tasks, non-knowledge kinds and records titled for their own project are never
opened as candidates by the citation or repeat trigger; a lineage word inside
a quoted title no longer reads as lineage. The family line counts and names
this project's own candidates that only the system has decided on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 09:41:09 -05:00
co-authored by Claude Opus 5.5
parent 55f53de92d
commit de55b73075
7 changed files with 224 additions and 11 deletions
+12
View File
@@ -97,3 +97,15 @@ def test_every_surface_that_meets_family_canon_points_at_the_skill():
assert "`family`" in tool_doc("grimoire.mcp.tools.projects", "enter_project")
assert "family_owed" in tool_doc("grimoire.mcp.tools.tasks", "update_task")
assert "family_owed" in skill_text("reporting-back")
def test_the_line_names_this_projects_own_unevaluated_candidates():
cand = {"count": 3, "ideas": [{"id": 7, "title": "Signed APK lane"},
{"id": 9, "title": "Outbox"}]}
line = family_line(5, [], cand)
assert line["candidates"] == 3
assert line["line"].endswith("3 of this project's own records proposed as family ideas, never evaluated")
call = line["calls"]["candidates"]
assert '#7 "Signed APK lane", #9 "Outbox"' in call and "and 1 more" in call
assert "promote_family_idea" in call and "retire_family_idea" in call
assert family_line(5, [], {"count": 0, "ideas": []}) is None