Propagate cancellation and preserve resumable state

This commit is contained in:
2026-11-20 05:53:49 +00:00
parent a6c6f1e4ab
commit c7a5ff316d
21 changed files with 356 additions and 27 deletions

View File

@@ -644,6 +644,18 @@ save and lock-release failures and verify underlying causes remain inspectable.
## Stage 16: Propagate process cancellation and finalize resumable state
**Completed.** Interrupt/termination signals now cancel the native invocation.
Acquisition checks synchronous native loads, planning and scheduling check the
operation context, and running adapters/storage retain it. Transcription settles
workers and preserves returned shutdown/checkpoint causes alongside cancellation.
Terminal local manifest persistence and evidence readback detach cancellation
without detaching active work; acquired locks still release and completed speaker
and artifact checkpoints remain resumable. Restore preserves its incomplete marker
on cancellation, and initialization/cleanup stop before further local actions.
Deterministic process-signal, mid-transcription/analysis, failed-terminal-save,
retry, acquisition, runner/restore, adapter cancellation, focused race, package,
build, and diff checks pass with Go 1.27.4.
Read: process entry, runner lifecycle, HTTP/subprocess adapter cancellation,
restore finalization, and CommandKit's invocation-context/outcome contracts.