Repository navigation
Conversation
… every capture shape
…ns to the finalization interval
…xit is unavailable
…ecorded deliveries
…and MCP workflows
|
Thanks for the Linux run. The finalizer's exit code is now recorded (45caf68): The batch-3 |
|
TL;DR: This is a real-Linux runtime check of #1583 for #1253, at the new head 1cb4525. Fixed: a finalizer's exit code now shows in the record, and separately, all 21 repeat batches pass on a roomy /tmp. Still not run: Windows, macOS, the full test lanes and the merge with current main. Everything below ran on one Linux box. I changed nothing on GitHub.
Each exit-code row is 3 runs per Node, and all 3 agreed.
Still not run
Thanks, nikolay-dementiev, for recording the exit code and for the quick answer on batch 3. CommandsEvery run used
Raw output: exit codesI wrote four small Node scripts and ran each from the CLI.
In every row, SIGTERM went out at 0 ms and was recorded as Raw output: repeat batchesEach batch ran the two real-child files (32 tests in all). Load is the 1-minute average before the batch. It counts tasks that run or wait, out of 24 threads. /tmp is a 16 GB memory-backed filesystem. Other jobs on the box used it too.
The 7 changed files started at load 1.78 (Node 24), 2.22 (Node 22) and 3.22 (Node 26). The first run counted 30 tests in these two files at 8a1600e. I did not check which tests were added since. Raw output: forced write errorThe error text is from the CLI's stderr. The failing line is the fixture's first write, Raw output: merge with main (another agent's run, not repeated by me)Read from that agent's notes file, so secondhand.
Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
TL;DR: I ran the full test lanes on 1cb4525 on Linux. The PR causes no failures. Five tests in other areas fail on this box, and they fail the same way on the base dce81ca.
All the tests this PR touches pass, including The 7 boundary failures are 5 test cases in 5 files. None of these files is in the PR. I reran each file alone on the head and on a fresh base tree, and each gave the same result on both:
I did not look into why they fail here. It may be this box. The first Still not run
Edit: The lanes on the merged head 0aea0d1 are in my new comment. The PR causes no failures there. Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
TL;DR: I ran the full test lanes on the merged head 0aea0d1 on Linux. The PR causes no failures. Two boundary tests fail, and both fail the same way on main 0fa0b04. The merge brought main 0fa0b04 into the PR branch. GitHub now reports the PR as mergeable. I compared the PR's own changes before and after the merge. Two files differ, and both are conflict fixes.
The counts are higher than in my earlier comment because the tree now includes main 0fa0b04. This time I built first, so All the tests this PR touches pass, including The 2 boundary failures are in 2 files. None of these files is in the PR. I ran each file alone twice on the head and twice on a fresh build of main 0fa0b04. Each run gave the same result on both:
Of the five files that failed last time, four now pass, on the head and on main alone: Still not run
Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Thanks for the finalization work. Independent Linux verification of One ownership gap remains before retaining the first start identity: |
|
Final reviewed head is Linux validation passed all 250 cases in 13 focused files, including real compiled CLI/MCP finalization, cancellation, file-hash omissions, detached owned cleanup, and adjacent Electron workflows. Static checks, build and docs passed. Test discovery previously found all 796 files exactly once; no test files were subsequently added or removed. Initial ownership-binding regressions use representative OS observations, without manufacturing PID reuse or signaling foreign processes. Additional acceptance validators compile when a tool is used; the complete advertised schemas and normal SDK call path remain validated. One identical-runtime before/after pair reduced connection plus first call from 13.65 s to 6.44 s. This is a test-client measurement; upstream SDK #2997 remains open. All 12 finalization acceptance cases passed the earlier integrated CI with existing deadlines. Merged as |
# Conflicts: # src/application/javascript/JavaScriptArtifactPathResolution.test.ts # tests/acceptance/applications/electronPreloadOverridesCli.test.ts # tests/composition/javascript-applications/electronOptionKeys.test.ts
A capture deadline previously killed the target before its SIGTERM handler could write a final report. This extends the existing CLI/MCP process-capture scenario with optional
finalization_ms(default0): send SIGTERM to the captured root, continue collecting observations, then attempt SIGKILL once if the requested interval expires.Fixes #1253. Supports the usability work in #1065.
The initiating timeout or idle timeout remains
exit.reason, and deadline exits retainexit.code: null. Optionalexit.finalizationrecords the requested and observed interval, the actual finalizer exit code (or null), and each signal attempt with its delivery result and any unavailable reason. Incomplete captures retain the same finalization facts. A zero interval preserves existing scenario commitments; the combined timeout, finalization and settlement budget must be a safe integer.For example, add
"finalization_ms": 1500to an existing capture scenario. A cooperative target can then return:{ "code": null, "signal": 0, "reason": "timeout", "finalization": { "requested_ms": 1500, "elapsed_ms": 12, "exit_code": 0, "signals": [ { "signal": "SIGTERM", "sent_at_ms": 0, "delivery": "signaled" } ] } }The first retained root identity is bound to the captured run token between two OS identity observations. Finalization signals recheck that identity; unavailable ownership or identity is reported without a bare-PID fallback. Identity inspection and signaling remain separate OS operations. Cancellation during finalization stops it immediately. Only the root receives finalization signals; owned descendant cleanup follows, and cleanup uncertainty preserves collected facts.
The contributor's implementation and commits are preserved. Maintenance follow-ups bind the initial identity to captured ownership, validate complete observations inside cleanup-partial envelopes, and cover a detached descendant that survives root finalization before owned cleanup. The shared acceptance client still validates the full advertised schema dialect and uses the normal SDK call path, while compiling its additional validators only for tools it calls. This removes duplicated cold test-client work; it does not resolve upstream SDK #2997.
Integrated frozen main
29cc1b87after #1664 fixed the source-qualified Electron API fixtures and the resulting merge conflicts. The three fixtures use main's implementation, preserving the contributor history and keeping them out of this PR's final diff.Validation:
npm run check:fast,npm run build:cached, andnpm run docs:checkpassed. Final heade980e6b0passed all 250 cases in 13 focused files, covering the process/schema cases, real compiled finalization workflows, and adjacent Electron CLI/MCP workflows.npm run verify:test-discoverypreviously found all 796 test files exactly once; no test files were added or removed afterward.Windows capture remains unsupported and is rejected before PTY launch. No Hopper/Ghidra verification applies. Signal-attempt evidence does not establish which concurrent action caused an exit, and PTY exit notification can arrive after the OS exit. The requested interval is not an end-to-end wall-clock bound over snapshots and cleanup. No package release was performed.