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
+12
View File
@@ -37,12 +37,24 @@ export interface FamilyIdea {
title: string;
note_type: string;
is_task: boolean;
/** The project whose record carries the idea — a candidate's. Null once
* the idea is promoted: canon lives on a family record with no project. */
project_id: number | null;
project_title?: string | null;
/** Reference implementations: project snippets a project can start from. */
references?: IdeaReference[];
platforms: string[];
created_at: string | null;
updated_at: string | null;
}
export interface IdeaReference {
id: number;
title: string;
project_id: number | null;
project_title: string | null;
}
/** A state snapshot a decision records — slugs, never ids. */
export interface IdeaSnapshot {
status: IdeaStatus;
+16
View File
@@ -266,6 +266,21 @@ onMounted(load);
<span :class="['fam-status', `fam-${idea.status}`]">{{ idea.status }}</span>
<span v-if="idea.status !== 'candidate'" class="fam-muted">v{{ idea.canon_version }}</span>
</div>
<p class="fam-muted fam-home">
<template v-if="idea.project_id !== null">
Proposed in
<router-link :to="`/projects/${idea.project_id}`">{{ idea.project_title ?? `project ${idea.project_id}` }}</router-link>
</template>
<template v-else>Family record</template>
<template v-if="idea.references?.length">
· Reference{{ idea.references.length > 1 ? "s" : "" }}:
<template v-for="(r, i) in idea.references" :key="r.id">
<template v-if="i">, </template>
<router-link :to="recordHref({ id: r.id, is_task: false, note_type: 'snippet' })">{{ r.title }}</router-link>
<template v-if="r.project_title"> ({{ r.project_title }})</template>
</template>
</template>
</p>
<p v-if="idea.applies_when" class="fam-applies">Applies when: {{ idea.applies_when }}</p>
<div v-if="idea.platforms.length" class="fam-platforms">
<code v-for="p in idea.platforms" :key="p" class="fam-chip">{{ p }}</code>
@@ -397,6 +412,7 @@ onMounted(load);
.fam-applies { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--fs-text-secondary); }
.fam-platforms { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.fam-topic { margin: 0.35rem 0 0; }
.fam-home { margin: 0.25rem 0 0; }
.fam-chip {
font-family: var(--fs-font-mono);
font-size: 0.72rem;