Skip to content

fix(kb): an embedding switch whose state record vanished while its claim is held reads idle #21017

Open

Description

@mrveiss

Found in review of the #20023 fix (PR #21016).

Problem

switch_status reads idle when the state record is absent. If the record vanishes while the switch claim is still held (a build in flight, or after cutover when a switch has happened but no completed record remains), the status reads idle although a switch is running or has happened. Readers (UI, cancel, start gating) then treat the system as free.

Acceptance criteria

  • A distinct status for "claim held, record absent" (or a decision recorded on this issue that idle is correct, with the reasoning)
  • A test covering the case
  • Every reader of switch_status (API, UI, cancel, start) handles the new status

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions