Originally created by: lodar
loop spawn --schema is prompt guidance, not a hard-enforced structured-output contract, so the live planner (olivia, 0.11.28) emits the create key as id instead of the schema-required local_id. Every create-bearing replan cycle then dies in _goal_validate_plan with every task needs a non-empty local_id. Empty/steady diffs skip the create branch, which masked it. Ground truth: DIVE-1549 (failed, used id) vs DIVE-1498 (empty, passed).
_objective_normalize_diff coerces create[].id → local_id (only when local_id is absent/blank) before validate/apply, on both the fresh-plan path and the --from-gate recovery path (pre-fix gates that stored id still apply). Invalid JSON / already-local_id diffs pass through byte-untouched so validation still emits its own precise error. Same coercion added to goal add via _goal_finish_with_plan (extends the DIVE-1349 alias normalization) for symmetry.local_id … NOT id".objective_replan_unit.sh (+1, 24 pass): a diff keyed id is coerced and materializes.goal_add_unit.sh (+1, 21 pass): a task plan keyed id is coerced (materializes + dep edge).Bundle rebuilt → 0.11.32. Needs agent-create smoke before the host roll (coordinated with Marcus / release of 0.11.31).
🤖 Generated with Claude Code
Ticket changed by: lodar