Merge branch 'work/mqti13'

# Conflicts:
#	internal/contracts/state/v1/state.pb.go
This commit is contained in:
sam committed 2026-10-11 04:03:52 +11:00
commit cac0f43b58
17 files changed
+1957 -1413

No files matched your search

@@ -0,0 +1,14 @@
-- tasks.outcome_posted marks that a chat task's terminal outcome reached the
-- conversation that created it. Tasks that finished before this column existed
-- were never promised a report.
-- +goose Up
ALTER TABLE tasks ADD COLUMN outcome_posted boolean NOT NULL DEFAULT false;
UPDATE tasks SET outcome_posted = true;
CREATE INDEX idx_tasks_outcome_unposted ON tasks (id) WHERE origin <> '' AND NOT outcome_posted;
-- +goose Down
DROP INDEX idx_tasks_outcome_unposted;
ALTER TABLE tasks DROP COLUMN outcome_posted;