Conversation
Size Report
Startup median (7 runs, lower is better):
|
98cc766 to
359e453
Compare
|
Thanks for the PR. At 359e453 the startup timeout path kills a daemon that is still booting, and I do not think this can merge as is. CI is likely related, because the failing iOS Smoke step is a cold daemon start through the function this PR rewrites. I am not aware of any conflicts. On a cold start, The PR deletes I did not rerun the focused tests or |
681b785 to
3bc70bf
Compare
c4f6ab8 to
34c1f64
Compare
8acd13c to
0effe16
Compare
34c1f64 to
3e5be9a
Compare
0effe16 to
2a359db
Compare
2a359db to
c188d9c
Compare
|
Consolidated into #3127 as part of reducing #3116 to seven PRs. The composition preserves the complete pre-consolidation source tree, including tests and later review corrections. This PR is superseded; its review discussion and native evidence remain available. Outstanding findings transfer to the owning keeper in the implementation record. |
Summary
Failed startup cleanup now acts on the PID and process birth captured from that launch. It delegates stopping, exit confirmation, registration matching and lock release to the shared retirement operation. A spawn failure without a captured child performs abandoned recovery without signaling a discovered daemon.
Unknown state is retained with typed outcomes. The former global metadata cleanup helper is removed, together with tests that required deleting malformed state or reconstructed its ownership checks. Registration readers and retirement now own those checks.
Six files changed; 466 gross lines. Builds on #3127; part of #3116. Startup contention/deadline handling and timeout retirement follow in dependent layers.
Validation
Tested
359e453514:98cc7666f9passed 89 focused tests with zero skips; the rebased head passed all related tests. The pre-fix client removes the malformed metadata and fails the new retention assertion.pnpm check:quickpassed.AGENT_DEVICE_REQUIRE_LOOPBACK_TESTS=1 pnpm check:affected --base fix/private-replay-retirement --runpassed: 138 related files, 918 tests; all runnable checks completed.