| 1 | -- The plan reads itself (items/plan_settle.rs). For a work item in Triage, |
| 2 | -- where g1t suggests it goes (suggestion: JSON { horizon, appetite, |
| 3 | -- duplicate_of, why }), asked of the workspace's AI provider once |
| 4 | -- (suggested_at, set even when there was no answer). For one in Now, where it |
| 5 | -- stands in a sentence or two (standing), drafted when something new has |
| 6 | -- happened on it since standing_at. |
| 7 | ALTER TABLE work_items ADD COLUMN suggestion TEXT; |
| 8 | ALTER TABLE work_items ADD COLUMN suggested_at TEXT; |
| 9 | ALTER TABLE work_items ADD COLUMN standing TEXT; |
| 10 | ALTER TABLE work_items ADD COLUMN standing_at TEXT; |
| 11 | |
| 12 | CREATE INDEX work_items_unsuggested ON work_items (state, horizon, suggested_at) WHERE state = 'open'; |