Context
PR #80 adds process-wide first/second-signal coordination. Unit tests can exercise internal coordination seams, while real SIGINT/SIGTERM behavior currently requires spawning a child process and sending an operating-system signal. Consumers building on Repl.Testing need a supported, repeatable way to verify cleanup and exit-code contracts.
Desired outcome
Provide either:
- a public in-memory test abstraction that can drive the logical process-signal lifecycle without real global OS registrations; or
- first-class documented helpers for child-process signal tests when in-memory simulation would give false confidence.
A hybrid is likely appropriate: deterministic in-memory tests for policy/coordination and process tests for runtime/platform integration.
Acceptance criteria
Context
PR #80 adds process-wide first/second-signal coordination. Unit tests can exercise internal coordination seams, while real
SIGINT/SIGTERMbehavior currently requires spawning a child process and sending an operating-system signal. Consumers building onRepl.Testingneed a supported, repeatable way to verify cleanup and exit-code contracts.Desired outcome
Provide either:
A hybrid is likely appropriate: deterministic in-memory tests for policy/coordination and process tests for runtime/platform integration.
Acceptance criteria
Repl.Testingdocumentation states which guarantees require a spawned process.