Repository navigation
Description
Problem
The legacy synchronous process_in_progress_conversation path can admit a conversation as processing without creating a durable job. A hard process crash between admission and completion leaves a stale bare-processing row. The current reconciler sweeps the jobs collection only, so this row is not replayed and the accepted recording can fail to appear.
This is the load-bearing, short-term item from the shared omi-knowledge:projects/core-reliability-regression-confidence/README.md project. It belongs in the Omi Stability workstream.
Scope
Add the smallest backend reconciler safety net for stale bare-processing conversations—those with no owning durable job and past a conservative threshold—so each is driven through an existing truthful terminal path. Do not migrate clients, redesign the legacy endpoint, or introduce new test infrastructure.
Acceptance criteria
- A hermetic
listen_pusher_stackregression scenario creates the crash-window state: an admitted bareprocessingconversation with no durable job. - The reconciler safety net drives that conversation to exactly one terminal state, using existing ownership/fence semantics and without duplicating a terminal outcome.
GET /v1/conversations/{id}proves the terminal conversation is retrievable.- Existing durable-job reconciliation behavior remains intact; normal durable jobs are not double-finalized.
- The change is bounded to the authoritative backend owner; no client-contract change.
- Include
Failure-Class:metadata appropriate to the real registry and required invariant references. - Run relevant backend tests plus final
make preflight; report exact commands/results in the PR.
Explicit non-goals
- Client migration from the legacy route to
/v1/conversations/{id}/finalize. - Telemetry-quality fixes and the two additional read-back scenarios; those are separate follow-up items.
- Any new runner, corpus, or conformance infrastructure.
Evidence
- Knowledge record:
projects/core-reliability-regression-confidence/README.md(2026-07-23). - Source leads documented there:
backend/routers/conversations.py,backend/main.py, and conversation finalization/reconciliation code.
Activity
fix(backend): bound stale-processing recovery by server-owned admissi…
fix(backend): reconcile stale bare-processing conversations after crash
test(backend): add listen_pusher_stack regression for stale-processin…
fix(backend): bound stale-processing recovery by server-owned admissi…
fix(backend): bound stale-processing recovery by persisted cursor and…
test(backend): lease guard coverage for every live producer and curso…
fix(backend): guard every live producer and make cursor multi-pod safe
fix(backend): declare orphan stale setting on all scheduler runtime s…
chore(backend): raise developer.py line-count baseline for lease guard
fix(backend): declare orphan stale setting on backend-integration sch…
fix(backend): reconcile stale bare-processing conversations after crash
13 remaining items
fix(backend): guard every live producer and make cursor multi-pod safe
fix(backend): declare orphan stale setting on all scheduler runtime s…
chore(backend): raise developer.py line-count baseline for lease guard
fix(backend): declare orphan stale setting on backend-integration sch…
fix(backend): reconcile stale bare-processing conversations after crash
test(backend): add listen_pusher_stack regression for stale-processin…
fix(backend): bound stale-processing recovery by server-owned admissi…
fix(backend): bound stale-processing recovery by persisted cursor and…
test(backend): lease guard coverage for every live producer and curso…
fix(backend): guard every live producer and make cursor multi-pod safe
fix(backend): declare orphan stale setting on all scheduler runtime s…
chore(backend): raise developer.py line-count baseline for lease guard
fix(backend): declare orphan stale setting on backend-integration sch…
chore(backend): raise developer.py line-count baseline for lease guard