Skip to content

fix(backend): reconcile stale bare-processing conversations after crash #10461

Closed

Description

@Git-on-my-level

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_stack regression scenario creates the crash-window state: an admitted bare processing conversation 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

  1. added
    bug
    backend
    on Jul 24, 2026
  2. 13 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugreliabilitystability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions