- Abort check: a read failure now stops the pipeline instead of carrying
on. Continuing let a later full-row Save overwrite a cancel or delete
it never saw. processChunks now returns an error, and the handlers
return it, so asynq retries an unknown state instead of acking it.
- Resolve the vector store before deleting the old chunks, and retry
when the lookup itself failed. A failed persist or an interrupted
context no longer acks with the row still in flight.
- Drain and release the wiki slots in one transaction, so a failed
release rolls the delete back for the retry. Skip any document that
still has a fresh claim in the lane: its live batch releases it.
- Re-armed and restart-recovered wiki triggers carry the language the
ops were queued with, rather than the server default.
- Return an error when the processing to finalizing handoff fails to
persist instead of acking; the ack read as "no longer processing" and
left a non-wiki row stuck with no retry.
- Only a missing row reads as deleting in the abort check. A transient
read error made callers wipe a live document's chunks and index and
return silently.
- Convert handler panics into errors below the dead-letter middleware so
the final-attempt callback marks the row failed, and recover them in
the Lite-mode executor, where a panic took down the process.
- Fail the attempt when the KB's vector store cannot be resolved rather
than dereferencing a nil retrieve engine later.