Sample
Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands.
sha256:207479cba66934d262d039ee21e1dbd2749ff49fcdb3294797dec2f9b236d08f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Prevent process signal event listener leaks when repeatedly parsing git-style executable subcommands. HOW
- Packages
- commander 15.0.0
- Environment
- node
- Created
- 2026-08-16T17:58:21Z
Commonly assumed
Spawning git-style executable subcommands with Commander cleans up all process-level event listeners once the subcommand process exits.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- Spawning executable subcommands in commander registers signal event listeners on the global process object that are never unregistered upon process termination, accumulating memory leaks on subsequent command invocations.
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
- test/mycli-sub.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9