Repository navigation
test(crash-reporting): keep ambiguous whole-tree kills reportable - #14667
Conversation
📝 WalkthroughWalkthroughThe recoverable sibling-churn test adds asynchronous no-op callbacks for minidump generation and detail attachment. The renderer crash invocation now receives these callbacks. The test verifies that GPU and Network Service events are recorded as 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
710fbfb to
bd687de
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/crash-reporting/process-gone-recorder.ts (1)
154-163: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winIsolate failures in the settle timer callback.
A synchronous failure in
siblingProcessTreeKillCount,recordSuppressedProcessGone, orpersistProcessGoneCrashreaches the main-processuncaughtExceptionhandler, which rethrows it on the next tick. Wrap the callback intry/catchand recordcrash_report_persist_failedwithpersistFailureDataandrecordDurableCrashBreadcrumb.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 71bb6489-ea20-4134-84aa-84f6db05ceaf
📥 Commits
Reviewing files that changed from the base of the PR and between 73bbe20 and 993bbc2234924436976a9ef48b17a2e34e553143.
📒 Files selected for processing (8)
src/main/crash-reporting/durable-crash-breadcrumb.tssrc/main/crash-reporting/process-gone-classification.test.tssrc/main/crash-reporting/process-gone-classification.tssrc/main/crash-reporting/process-gone-killed-one-ordering.test.tssrc/main/crash-reporting/process-gone-recorder.test.tssrc/main/crash-reporting/process-gone-recorder.tssrc/main/crash-reporting/process-tree-kill-window.test.tssrc/main/crash-reporting/process-tree-kill-window.ts
7b7894b to
71146b1
Compare
71146b1 to
1f2ed8c
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
1f2ed8c to
66f716a
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0dfd5833-41e5-46a3-a7cf-23ce626f05b8
📒 Files selected for processing (1)
src/main/crash-reporting/process-gone-killed-one-ordering.test.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 7 remain after this review.
| recordProcessGoneCrash( | ||
| { record, attachDetails } as never, | ||
| rendererKill, | ||
| dedupe, | ||
| noMinidump | ||
| ) |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- target test ---'
sed -n '1,150p' src/main/crash-reporting/process-gone-killed-one-ordering.test.ts
printf '%s\n' '--- recorder store definitions and usages ---'
rg -n -C 4 'CrashReportRecorderStore|recordProcessGoneCrash' src tests \
-g '*.{ts,tsx,js,jsx}' || trueRepository: stablyai/orca
Length of output: 37608
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- recorder implementation ---'
sed -n '1,180p' src/main/crash-reporting/process-gone-recorder.ts
printf '%s\n' '--- CrashReportStore definition ---'
rg -n -C 8 'interface CrashReportStore|type CrashReportStore|class .*CrashReportStore|export .*CrashReportStore' src/main src \
-g '*.{ts,tsx}' || true
printf '%s\n' '--- package/type-check configuration ---'
rg -n -C 3 'strict|noEmit|typecheck|tsc' package.json tsconfig*.json . -g 'package.json' -g 'tsconfig*.json' \
-g '!node_modules' || trueRepository: stablyai/orca
Length of output: 25005
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- recorder implementation ---'
sed -n '1,180p' src/main/crash-reporting/process-gone-recorder.ts
printf '%s\n' '--- CrashReportStore definition ---'
rg -n -C 8 'interface CrashReportStore|type CrashReportStore|class .*CrashReportStore|export .*CrashReportStore' src/main src \
-g '*.{ts,tsx}' || true
printf '%s\n' '--- package/type-check configuration ---'
rg -n -C 3 'strict|noEmit|typecheck|tsc' package.json tsconfig*.json . \
-g 'package.json' -g 'tsconfig*.json' -g '!node_modules' || trueRepository: stablyai/orca
Length of output: 25005
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- CrashReportStore methods ---'
sed -n '82,240p' src/main/crash-reporting/crash-report-store.ts
printf '%s\n' '--- existing typed mock patterns ---'
rg -n -C 3 'satisfies .*CrashReport|Pick<CrashReportStore|CrashReportRecorderStore|const .*: CrashReportStore' src/main \
-g '*.{ts,tsx}' || true
printf '%s\n' '--- available TypeScript tooling ---'
command -v tsc || true
test -d node_modules && printf '%s\n' 'node_modules present' || printf '%s\n' 'node_modules absent'Repository: stablyai/orca
Length of output: 7641
🏁 Script executed:
#!/bin/bash
set -eu
tmp="$(mktemp --suffix=.ts)"
trap 'rm -f "$tmp" "$tmp.tsbuildinfo"' EXIT
cat >"$tmp" <<EOF
import type { CrashReportStore } from '$PWD/src/main/crash-reporting/crash-report-store'
type RecorderStore = Pick<CrashReportStore, 'record' | 'attachDetails'>
const record = (() => {}) as unknown as RecorderStore['record']
const attachDetails = (async () => null) as unknown as RecorderStore['attachDetails']
const typedStore = { record, attachDetails } satisfies RecorderStore
const directStore: RecorderStore = typedStore
void directStore
EOF
printf '%s\n' '--- typed-store verifier ---'
tsc --noEmit --strict --skipLibCheck \
--module esnext --moduleResolution bundler --target es2022 \
--types vitest "$tmp"Repository: stablyai/orca
Length of output: 322
🏁 Script executed:
#!/bin/bash
set -eu
tmp="$(mktemp --suffix=.ts)"
trap 'rm -f "$tmp"' EXIT
cat >"$tmp" <<EOF
import type { CrashReportStore } from '$PWD/src/main/crash-reporting/crash-report-store'
type RecorderStore = Pick<CrashReportStore, 'record' | 'attachDetails'>
const record = (() => {}) as unknown as RecorderStore['record']
const attachDetails = (async () => null) as unknown as RecorderStore['attachDetails']
const typedStore = { record, attachDetails } satisfies RecorderStore
const directStore: RecorderStore = typedStore
void directStore
EOF
printf '%s\n' '--- typed-store verifier ---'
tsc --noEmit --strict --skipLibCheck \
--module esnext --moduleResolution bundler --target es2022 \
--types vitest "$tmp"Repository: stablyai/orca
Length of output: 322
🏁 Script executed:
#!/bin/bash
set -eu
tmp="$(mktemp --suffix=.ts)"
trap 'rm -f "$tmp"' EXIT
cat >"$tmp" <<EOF
import type { CrashReportStore } from '$PWD/src/main/crash-reporting/crash-report-store'
type RecorderStore = Pick<CrashReportStore, 'record' | 'attachDetails'>
const record = (() => {}) as unknown as RecorderStore['record']
const attachDetails = (async () => null) as unknown as RecorderStore['attachDetails']
const typedStore = { record, attachDetails } satisfies RecorderStore
const directStore: RecorderStore = typedStore
void directStore
EOF
printf '%s\n' '--- typed-store verifier ---'
tsc --ignoreConfig --noEmit --strict --skipLibCheck \
--module esnext --moduleResolution bundler --target es2022 \
--types vitest "$tmp"Repository: stablyai/orca
Length of output: 180
Preserve compile-time validation for the test store.
as never bypasses the CrashReportRecorderStore contract. Use satisfies Pick<CrashReportStore, 'record' | 'attachDetails'> or an equivalent typed store, then pass it directly.
66f716a to
486b2a0
Compare
486b2a0 to
ff53261
Compare
…d, not webContents id Several webContents can share one OS renderer process (a same-site popup runs in its opener's process), so keying the renderer dedupe on the webContents id filed one report per observer of a single death — re-creating the duplicate noise #14667 removed. Key on webContents.getProcessId() instead: the Chromium render-process- host id. Live-verified on Electron 43.1.0: getOSProcessId() already reads 0 inside render-process-gone, while the host id stays readable and is identical across webContents sharing the dead process. The webContents id remains on the report as attribution evidence. An unreadable identity (webContents destroyed mid-event) buckets as 'unknown' so a single death's burst still coalesces instead of duplicating.
…er report
Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports
whose renderer only died alongside a sibling Chromium child that died at the same
instant:
F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1
F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1
GPU crashed/-1 +180ms
process-gone-classification.ts classifies each event in isolation:
isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable
churn, and `if (reason !== 'killed') return true` then reports the renderer half as
a genuine renderer crash before any cross-source signal exists. Triage reads
"renderer crashed" for what died with three other processes.
process-gone-sibling-correlation keeps a bounded ring of child deaths, populated
before the suppression early-return so churn-suppressed siblings stay visible, and
matches a renderer death against child deaths sharing its failure signature.
What the timing can and cannot support:
- The window is asymmetric. 1s of lookback (a child that died first can plausibly
have taken the renderer with it), but only 250ms of lookahead: a child dying well
after the renderer is at least as likely to be an effect of it — Chromium tearing
down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a
symmetric window would retro-label a genuine lone crash as collateral.
- crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest
1.4.184 cluster is an external taskkill /T where renderer and children are
co-victims; no sibling caused anything there.
- The verdict is not derived from timing alone. A host with a child looping at the
observed 1459/min drops a death into every window, so crashAttribution is set only
when the nearest sibling is within 250ms and no identity repeats. Looser or
repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets,
siblingProcessDeathRepeats) with no attribution.
- The signature match buckets `crashed` with `abnormal-exit` and gates on the exit
code only on win32. Both fixtures are win32, where every process in a collateral
pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality
gate would mean this never fires on macOS or Linux.
The report stays reportable and gains evidence rather than being suppressed
(#14667). Both arrival orders are covered without delaying persistence: a sibling
that dies first is folded into the initial record, a sibling that dies after amends
the record already on disk through attachDetails, the same way the minidump
signature does. Late amends are capped at two per report and skipped when the
rendered evidence is unchanged, so a crash-looping child cannot rewrite the store
during renderer recovery, and a failed amend now leaves a
sibling_attribution_attach_failed breadcrumb instead of vanishing.
Relationship to #12484: it is still OPEN and adds process-tree-kill-window.ts, the
same ring/lookback bookkeeping with a 250ms settle, patching the same recorder
hunks with the opposite policy (suppress the killed/1 renderer report instead of
keeping it). #14667 is test-only — it pinned the keep-the-report policy in tests, it
did not remove a shipped implementation. #12484 has to be closed or rebased out
before this lands.
…ablyai#14667) * test(crash-reporting): keep ambiguous tree kills reportable * test(crash-reporting): drop the stale sibling-settle deferral comment
…blaming the renderer (#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to #12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). #14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. #12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift
…blaming the renderer (stablyai#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (stablyai#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to stablyai#12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). stablyai#14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. stablyai#12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift (cherry picked from commit 6103b78)
…blaming the renderer (stablyai#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (stablyai#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to stablyai#12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). stablyai#14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. stablyai#12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift
…ablyai#14667) * test(crash-reporting): keep ambiguous tree kills reportable * test(crash-reporting): drop the stale sibling-settle deferral comment
…blaming the renderer (stablyai#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (stablyai#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to stablyai#12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). stablyai#14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. stablyai#12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift
ELI5
When the renderer and Chromium helper processes exit near the same time, that timing is useful evidence but not proof that one whole-process-tree kill caused every exit. Orca should keep filing an otherwise-unexpected renderer exit and carry the nearby helper-exit breadcrumbs in the report so postmortem analysis can make the correlation without losing evidence.
What Changed
Why
Electron provides no deterministic causal identity or ordering guarantee across
child-process-goneandrender-process-gone. A timing gate could permanently suppress a genuine renderer report after an unrelated matching child exit; emitting the ambiguous report with its existing breadcrumbs preserves evidence and follows the safer failure mode.This replaces the earlier sibling-window implementation on this branch. The 250ms settle, 2s lookback, sibling-count classification, and deferred-report breadcrumb have all been removed.
Linked Issue
No tracked GitHub issue exists for this work; it originated from crash-report postmortem analysis.
Visual Proof
N/A— no UI or interaction change.Testing
process-gone-killed-one-ordering.test.ts: 5/5 passed on currentorigin/main.AI Disclosure
AI assistance was used for implementation and review.
Review
Checklist
Author
Completion verification
origin/main, which includes fix(crash-reporting): preserve coalesced repeat accounting #14666 and fix(crash-reporting): stop post-mortem process metrics crowning a survivor as the crasher #14662; all 19src/main/crash-reporting/test files passed individually (201/201 tests) with file parallelism disabled.