Skip to content

Callback Catch-All in the Console Lifetime Skeleton Reports a Stop Cancellation as a Fault #4545

Backlog

Description

@ptr727

A callback off the main flow wraps its body in a catch-all that calls lifetime.Fault(exception) (console-lifetime.md, entry point prose, about line 204). A callback waiting on the stop token gets an OperationCanceledException on a signal stop and reports it as a fault. Lifetime.Exit checks the fault before the signal, so the app exits with the error status instead of re-sending the signal.

Fix direction: the callback ends quietly on a cancellation filtered by a lifetime-owner token, as the ToolRunner boundary does, and the skeleton prose and the rule's last-frame sentence say so.

Found by the local strict review of #4544. Related: #4528

Activity

  1. added
    documentation
    skills
    on Nov 29, 2026
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

    documentationskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions