Propagate host cancellation, distinguish it from failure, and release session/model ownership deterministically.
Cancellation ownership
Create the CancellationTokenSource in the host at the lifetime that matches the operation, view, request, or worker.
UI stop state
Disable duplicate stop actions, show that cancellation was requested, and keep the UI responsive while the runtime reaches a cancellation boundary.
Error taxonomy
Present cancellation separately from identity, parse, bind, model-load, generation, and disposal failures.
Finalization
Dispose the session before the model in a finally path. Do not swallow disposal exceptions solely to simplify a demonstration.
Available now
- The public UAIX.LmRuntime package family and canonical package documentation.
- The host-facing workflow and evidence distinctions described on this page.
Host responsibilities
- Select and trust inputs, define policy and limits, integrate the UI or service, retain application evidence, and test the exact deployment.
Not claimed
- Cancellation may not interrupt every instruction instantly.
- Disposal order does not replace application shutdown testing.
Operational boundary
What this page covers: Propagate host cancellation, distinguish it from failure, and release session/model ownership deterministically.
Available now: The documented package surfaces and this host-facing guidance are public.
Host responsibility: Own acquisition, trust, configuration, presentation, persistence, transport, policy, tests, and deployment.
Not claimed: Universal compatibility, production certification, safety certification, hidden fallbacks, or behavior beyond retained evidence.
Canonical sources: Canonical package documentation · Current release metadata
Last reviewed UTC:
Source and review record
Prerequisites
- Read Get Started
- Review host/runtime boundaries