3e199fd8d5
- migration 0002_phase1_architect: thesis_lines (core spine + per-segment lines), thesis_nodes (+ append-only revisions), thesis_versions (one-canonical-per-line DB invariant), thesis_reviews (dual approval + feedback), segments. Reversible. - backend/mcp/architect_tools.py: agent draft tools (node tree, versions, segments, get_canonical fails-closed) — NO self-approval path. MCP-exposed. - backend/thesis_review.py + server.py routes: human-gated approval. Dual sign-off via thesis_required_approvals; atomic supersede; every action logged. - docs/PHASE_1.md (kickoff brief); docs/OPERATIONS.md (partner guide); start9/0.4 "Resolve duplicate names" fuzzy action. Verified on synthetic data: dual approval promotes correctly, exactly one canonical survives supersede, get_canonical fails closed, full interaction_log. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9 lines
373 B
SQL
9 lines
373 B
SQL
-- Reversal of 0002_phase1_architect.sql. Run manually (never auto-applied).
|
|
DROP TABLE IF EXISTS thesis_reviews;
|
|
DROP TABLE IF EXISTS thesis_node_revisions;
|
|
DROP TABLE IF EXISTS thesis_nodes;
|
|
DROP TABLE IF EXISTS thesis_versions;
|
|
DROP TABLE IF EXISTS thesis_lines;
|
|
DROP TABLE IF EXISTS segments;
|
|
DELETE FROM schema_migrations WHERE filename = '0002_phase1_architect.sql';
|