Handle process signals through cooperative cancellation
This commit is contained in:
@@ -266,6 +266,12 @@ the selected single failure-finalization boundary preserves genuine causes.
|
||||
|
||||
### CAT-010 — Process Signals Do Not Reach Cooperative Cancellation
|
||||
|
||||
**Status:** Resolved. The executable routes the first SIGINT/SIGTERM to its
|
||||
application context and restores ordinary signal handling during cleanup.
|
||||
Offline subprocess tests observe provider cancellation, joined work, terminal
|
||||
evidence, no retry/fallback, and subsequent-signal termination with held delivery.
|
||||
Embedded callers retain their contexts; no cleanup deadline is introduced.
|
||||
|
||||
**Assessment:** Static executable integration weakness; original P3.
|
||||
|
||||
**Source:** [CONC-001](04-concurrency.md#conc-001--process-signals-bypass-cooperative-cancellation-and-cleanup).
|
||||
@@ -281,7 +287,7 @@ does not imply SIGKILL handling or a new shutdown deadline guarantee.
|
||||
**Subsequent decision:** [Discussion Item 3](discussion.md#3-process-signals-and-cooperative-cancellation)
|
||||
selects cooperative cancellation on the first SIGINT/SIGTERM and ordinary
|
||||
termination on a subsequent signal, with no application shutdown deadline.
|
||||
Signal handling stays at the executable boundary; implementation remains pending.
|
||||
Signal handling stays at the executable boundary.
|
||||
|
||||
### CAT-011 — Extreme Accepted Context Radius Can Empty Evidence
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user