Handle process signals through cooperative cancellation

This commit is contained in:
2026-11-26 02:23:48 +00:00
parent add2811a64
commit 383b43ab08
7 changed files with 277 additions and 4 deletions

View File

@@ -613,6 +613,13 @@ race tests. Update CLI/state internals, not CommandKit-owned syntax.
## Stage 21 — Connect Executable Signals To Cancellation
**Completed.** The executable routes the first SIGINT/SIGTERM into the existing
context and restores ordinary handling for a subsequent signal, joining its
signal helper before exit. Offline subprocess tests exercise in-flight provider
cancellation, terminal evidence, no fallback/retry, and a held-delivery second
signal. Repeated process tests and the prescribed executable/CLI checks pass.
No shutdown deadline or embedded process-wide handler was added.
**Coverage:** CAT-010. **Prerequisites:** Stages 10, 17, 20.
Pass a SIGINT/SIGTERM-cancelled context from cmd/notarius/main.go to app.Execute.