Seed the v5 thesis into the Architect Workshop (v0.1.0:53)
backend/thesis_seed.py builds the starting "living messaging source of truth" from docs/thesis-seed-v5.md: a core line (throughline; the open Option A/B banner as a competing variant group; the three pillars; the proof; voice rules), one line per LP segment carrying that segment's angle, and the five segment definitions. ensure_thesis_seed(conn) runs from init_db, seeding ONLY when the Workshop is empty (no thesis lines) — idempotent and non-destructive, so it bootstraps once and never overwrites partner edits. Everything lands draft/candidate; nothing is made canonical (that stays the partners' dual-approval action, guardrail #4). Content is Ten31's own messaging, not LP data. Test: backend/test_thesis_seed.py runs init_db and asserts the core line, 5 segment lines, the 2-member Option A/B variant group, 3 pillars, segment_cuts, and segment defs, plus re-seed-is-a-no-op (11/11). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -469,6 +469,13 @@ def init_db():
|
||||
except Exception as _e:
|
||||
print(f"[backfill] grid contact_id backfill warning: {_e}")
|
||||
|
||||
# One-time: seed the v5 thesis into the Architect's Workshop if it is empty.
|
||||
try:
|
||||
from thesis_seed import ensure_thesis_seed as _ensure_thesis_seed
|
||||
_ensure_thesis_seed(conn)
|
||||
except Exception as _e:
|
||||
print(f"[thesis] seed warning: {_e}")
|
||||
|
||||
conn.close()
|
||||
print(f"Database initialized at {DB_PATH}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user