Skip to content

Cancelling a control task leaves its worker-response routes #1827

Closed

Description

@FlorentinDUBOIS

cancel_task removes only queued_tasks. The response route remains in in_flight; a later response finds the route, cannot find the task, and returns before terminal cleanup. Repeated failed replays can retain routes for the main-process lifetime.

Evidence: runtime-confirmed unit plus source. Candidate command exited 101: 1 run, 0 passed, 1 failed, 124 filtered; two cancelled-task routes remained and the unrelated route was preserved.

Normal task completion purges routes, but malformed replay calls cancel_task instead; worker answers and worker-close synthesis both hit the same early return for the absent task.

Acceptance criteria: Cancellation must retire every response route belonging to that task while preserving routes belonging to other tasks. Cover late worker answers and worker closure after cancellation.

Source checked at bd19a78e2831fa9b3bc099eff96359f1bd457958 on 2026-10-03:

Runtime evidence, where stated, was collected on 8ed38435c6e80dc374de421116d8b145f1e5ce6a; the reviewed mechanisms remain unchanged at the source revision above. Audit regression tests are prepared locally and are not yet published on main.

Activity

  1. FlorentinDUBOIS commented on Oct 3, 2026

    @FlorentinDUBOIS
    CollaboratorAuthor

    Reproduced on the frozen bd19a78e2831fa9b3bc099eff96359f1bd457958 base and included in #1843.

    command::server::tests::cancelling_a_task_retires_its_in_flight_response_routes is red. After cancellation, two worker-response routes for the cancelled task remain while the unrelated witness route also remains. The combined suite reports the same unique failure in the Sōzu lib/bin targets.

    These are IPC response routes, not HTTP frontend routes. The draft contains no product fix.

  2. added a commit that references this issue on Oct 4, 2026
    d7b5f14
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions