feat(8565,8566,8567,8568): promoting a family idea lifts it onto a family record with no project
CI & Build / TypeScript typecheck (push) Successful in 14s
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Failing after 1m55s
CI & Build / integration (push) Failing after 2m33s
CI & Build / Build & push image (push) Skipped

Canon now belongs to the family. Promotion moves an idea off the project
record it was written on and onto a note with no project (owned by the same
person, arose_from_id naming the project record), carrying its state,
platforms, references, ledger and decision log. The project record stays its
own; a snippet becomes a reference implementation. Revising the idea or
folding a conflict into it now edits the family record, never a project's.
The project record's id still names the idea in every family call
(family.idea_key).

- A project that owns a reference snippet and has not answered the idea is
  answered adopted by the system, naming the snippet, unless its shapes
  already speak for it (on promotion and on set_family_references).
- The family record takes the project record's shares and its project's
  shares, so whoever could read the idea still can.
- An owed task still finds its Systems through the project record the idea
  was lifted from.
- Migration 0141 lifts every idea promoted before this, the same way.
- The Family page shows where each idea lives and its reference
  implementations; the skill, tool descriptions, model docstring and
  features doc describe the family record. Plugin minted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 14:44:56 -05:00
co-authored by Claude Opus 5.5
parent 0d9fe5d3c5
commit 6c0481ef9c
13 changed files with 788 additions and 19 deletions
+15 -3
View File
@@ -114,6 +114,14 @@ async def promote_family_idea(
canon before, its version moves, so earlier answers read as needing a
recheck.
An idea on a project's record moves onto a FAMILY RECORD with no project
(`lifted` in the response names it): the family owns canon, so revising
it edits that record, never a project's. The project's record stays its
own; a snippet becomes a reference implementation, and its project is
answered `adopted`. Its id still names the idea in every family call.
Deciding about an idea from any project's session needs no permission:
it changes the family's state, not the project the record came from.
Args:
note_id: the record that carries the idea.
applies_when: when it applies, in platform terms.
@@ -188,9 +196,10 @@ async def revise_family_idea(
note_id: int, reason: str, applies_when: str = "", platforms: list[str] | None = None,
evidence: list[str] | None = None,
) -> dict:
"""Record that a canon idea's SUBSTANCE changed — you rewrote its note's
approach, its traps or its checklist, or its applicability or platforms
moved. The canon version moves, so every project's answer given against
"""Record that a canon idea's SUBSTANCE changed — you rewrote its family
record's approach, its traps or its checklist (update_note on the id
get_family_idea returns, which has no project), or its applicability or
platforms moved. The canon version moves, so every project's answer given against
the old version reads `needs_recheck` until it is assessed again.
A typo fix is not a revision. A change a project that adopted the old
@@ -368,6 +377,9 @@ async def set_family_references(note_id: int, snippet_ids: list[int]) -> dict:
Args:
note_id: the family idea.
snippet_ids: snippets implementing it. [] clears the list.
A project that owns one of these snippets and has not answered the idea
is answered `adopted` with the snippet as evidence.
"""
refs = await adoption_svc.set_references(current_user_id(), note_id, snippet_ids or [])
return {"references": refs}