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

@@ -138,6 +138,12 @@ available evidence. Publication, required capture, and presentation are separate
boundaries: later failure does not undo completed publication.
[CLI Reference](cli.md#completion-report) owns the completion value and outcomes.
The executable treats the first SIGINT or SIGTERM as a cooperative cancellation
request. It restores ordinary signal handling during cleanup so a subsequent
signal can terminate the process. There is no shutdown deadline or guarantee
that collaborators which ignore cancellation will stop; forced termination may
leave capture incomplete. Embedded application callers retain their own contexts.
### Acceptance And Fallback
PromptKit owns transient retries and structural repair. Application semantic