You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
materialize_typed makes no model call but is still claimed as model work #1351
job_priority(kind) from migration 0116 puts materialize_typed (phrase_bindings::MATERIALIZE_KIND) at priority 1, with the model work. It is pure store work: it reads bindings and writes typed rows, and never calls the chat endpoint. So a person's phrase decision on the review page still waits behind the whole extraction backlog, and #1349's two reserved slots do not take it either, because the lane claims only job_priority(kind) = 0.
Expected: a job that makes no model call is claimed as intake, so a human decision materializes within seconds whatever the extraction queue holds.
Fix
A new migration with CREATE OR REPLACE FUNCTION job_priority returning 0 for materialize_typed, and a rebuild of the partial index on (job_priority(kind), run_at) WHERE status = 'queued', since the index is on the function's result. Worth checking the rest of the kind list at the same time for other jobs that touch no model (embedding jobs do call the endpoint and stay where they are).
I’m taking this on. I’ll add a migration that classifies materialize_typed as intake and rebuilds the priority index, check the other registered job kinds, and add a database regression for claiming materialization ahead of queued model work. I’ll run the workspace tests and strict clippy before opening a PR against dev.
Activity
Aschenbath commentedon Oct 21, 2026
I’m taking this on. I’ll add a migration that classifies materialize_typed as intake and rebuilds the priority index, check the other registered job kinds, and add a database regression for claiming materialization ahead of queued model work. I’ll run the workspace tests and strict clippy before opening a PR against dev.
WaylandYang commentedon Oct 29, 2026
Fixed by #1358: a human phrase decision's materialization is claimed as intake, not model work (migration 0123).