Repository navigation
Description
Context
Found while delivering #3108 (epic #3103). Hosted compute cancels a conversation's jobs when the session catalog retires it: createApp wraps catalog.retireChat and calls computeHost.cancelSession for each retired session (packages/ui-server/src/app.ts:756-764; cancelSession, packages/ui-server/src/brain/compute-host.ts:185 and :881). But no route calls catalog.retireChat yet; its only callers are the catalog itself and its tests (retireChat, packages/ui-server/src/ws/session-catalog.ts:302-310; packages/ui-server/tests/chat-lifecycle.test.ts). So the cancellation path is untested end to end.
The authenticated deletion endpoint is planned in #3230 (epic #3234), which itself waits on #3229.
Source pointers are on epic/3103-external-compute at 18d859421; the hosted compute code reaches main with #3404.
Scope
When the conversation-deletion route lands, prove through that route that a retired conversation's unsettled hosted compute jobs are cancelled. If retirement takes a different path, wire the cancellation there instead.
Out of scope
- Adding the deletion route itself (ui-server: coordinate local chat copies and expose truthful deletion outcomes #3230).
- Changing cancellation, release or reservation semantics.
- Turn-level cancellation (
cancelTurn), which is already covered.
Acceptance criteria
- When the route that retires or deletes a conversation lands, a host-route test proves its unsettled compute jobs are cancelled, their release recorded, and their reservations settled.
- Or, if conversation retirement takes a different path, the cancellation is wired there instead, with a failing-first test.
- A mutation that removes the
cancelSessioncall fails the test.
Verification
Keyless host-route test with the offline test provider and disposable state, through bun run test.
Contract impact
None.
Triage 2026-11-03: added source pointers (the existing retireChat wrapper in createApp), named #3230 as the route this waits for, added scope, exclusions, a mutation criterion and verification. Set priority: p2, blocked; attached to epic #3103. Brief complete; agent-ready alongside blocked.
Activity
schlessera commentedon Nov 3, 2026
Triage 2026-11-03: added
blockedwithBlocked by #3230. TheretireChat→cancelSessionwrapper already exists on the epic branch (packages/ui-server/src/app.ts:756-764), but there is no route to drive it until #3230 adds the authenticated deletion endpoint. Attached to #3103.schlessera commentedon Nov 3, 2026
Unblocked: #3230 is closed, so
scripts/sync-project.tsis removing theblockedlabel.