feat: consolidate schema changes from crew directories

Merges schema additions from crew/fang, crew/giles, crew/grip, and crew/wolf:

- crystallizes: bool field for work economics (compounds vs evaporates)
- work_type: WorkType field for assignment model (mutex vs open_competition)
- source_system: string field for federation adapter tracking
- quality_score: *float32 for aggregate quality (0.0-1.0)
- delegated-from: new dependency type for work delegation chains

Migrations properly sequenced as 037-040 (after existing 036 owner_column).

Also fixes test compilation errors for removed TypeRig and IsBuiltIn references.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/crew/dave
Rig: beads
Role: crew
This commit is contained in:
beads/crew/dave
2026-01-10 20:26:57 -08:00
committed by Steve Yegge
parent 8942261a12
commit f79e636000
9 changed files with 193 additions and 46 deletions

View File

@@ -39,6 +39,14 @@ CREATE TABLE IF NOT EXISTS issues (
is_template INTEGER DEFAULT 0,
-- Molecule type field (bd-oxgi)
mol_type TEXT DEFAULT '',
-- Work type field (Decision 006: mutex vs open_competition)
work_type TEXT DEFAULT 'mutex',
-- HOP quality score field (0.0-1.0, set by Refineries on merge)
quality_score REAL,
-- Work economics field (Decision 006) - compounds vs evaporates
crystallizes INTEGER DEFAULT 0,
-- Federation source system field
source_system TEXT DEFAULT '',
-- Event fields (bd-ecmd)
event_kind TEXT DEFAULT '',
actor TEXT DEFAULT '',