other

Mission Control task-editor save diagnosis

2026-04-27

Mission Control task-editor save diagnosis

Date: 2026-04-27

Scope

Diagnose the task-editor save issue Pete hit when trying to mark JAM-45 done from the UI.

Root cause

The task editor exposed all status columns in the Column select for existing tasks, but the server-side save path does not allow arbitrary status jumps.

Relevant save path:

That creates a UI/API mismatch:

Live repro

I reproduced this in the running UI at http://localhost:3100/tasks using temporary tasks.

Repro 1, invalid transition, expected failure before fix

Temporary task: JAM-47

Observed result:

Repro 2, valid transition, save path works

Temporary task: JAM-48

Observed result:

This confirms the bug is not a generic editor save failure. It is a status-option mismatch between the editor and lifecycle-enforcing API.

Fix implemented

I made the task lifecycle rules a shared source of truth and constrained edit-mode status options to legal choices for the task’s current persisted state.

Files changed:

Expected behavior after restart/reload:

This prevents the editor from offering impossible transitions that the API will reject.

Validation status

Completed:

Blocked in this session:

Remaining edge cases