676751c489
Adds the growth_goals table (ARCHITECTURE §4.3, §5.8.6) with its migration and a pure nextGoalStatus() state machine (requested -> mentor_assigned -> in_progress -> achieved, with pause/resume and decline). Adds validateShadowPairing() (src/domain/shadows.ts): a shadow/trainee slot requires a paired mentor in the same instance who is mentor-ready for that exact skill (C5) — rejects a shadow with no paired mentor, enforced by the pure rule and the chk_shadow_paired CHECK constraint on slots. Verified the migration applies and the CHECK rejects a trainee slot without a paired mentor. 22 tests named after each rule.
62 lines
1.2 KiB
JSON
62 lines
1.2 KiB
JSON
{
|
|
"version": "7",
|
|
"dialect": "pg",
|
|
"entries": [
|
|
{
|
|
"idx": 0,
|
|
"version": "7",
|
|
"when": 1794941009107,
|
|
"tag": "0000_loose_wendell_vaughn",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 1,
|
|
"version": "7",
|
|
"when": 1794941123648,
|
|
"tag": "0001_fluffy_vivisector",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 2,
|
|
"version": "7",
|
|
"when": 1794959606685,
|
|
"tag": "0002_fearless_doctor_spectrum",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 3,
|
|
"version": "7",
|
|
"when": 1794961261600,
|
|
"tag": "0003_whole_crystal",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 4,
|
|
"version": "7",
|
|
"when": 1794964903255,
|
|
"tag": "0004_hesitant_ezekiel",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 5,
|
|
"version": "7",
|
|
"when": 1794973120521,
|
|
"tag": "0005_keen_lenny_balinger",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 6,
|
|
"version": "7",
|
|
"when": 1794975448394,
|
|
"tag": "0006_modern_shiver_man",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 7,
|
|
"version": "7",
|
|
"when": 1794976728115,
|
|
"tag": "0007_funny_zarda",
|
|
"breakpoints": true
|
|
}
|
|
]
|
|
} |