Skip to content

test(crash-reporting): keep ambiguous whole-tree kills reportable - #14667

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/crash-false-report-sibling-correlation
Aug 17, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/crash-false-report-sibling-correlation

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​30 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​25
Prod 0 0 0 0

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

  • No production behavior changes.
  • Strengthens the existing killed/1 ordering regression to require immediate renderer-report persistence even after matching GPU and Network Service exits.
  • Requires both child-exit breadcrumbs to be present in the persisted renderer report.
  • Keeps suppression limited to authoritative teardown intent already owned by Orca.

Why

Electron provides no deterministic causal identity or ordering guarantee across child-process-gone and render-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 current origin/main.
  • Manually tested — not applicable; this is a test-only policy regression.
  • Automated test updated.

AI Disclosure

AI assistance was used for implementation and review.

Review

  • Security: no production or input-surface change.
  • Cross-platform: pins platform-neutral Electron process-gone semantics without exit-code heuristics.
  • Remote SSH / folder workspaces / mobile: unaffected.
  • Backwards compatibility: no runtime or wire change.
  • Performance: no production cost.

Checklist

  • Small and focused.
  • Change and rationale documented.
  • Visual proof marked N/A.
  • Self-reviewed for correctness, security, and performance.
  • Cross-platform and remote impact considered.
  • Full lint, test, typecheck, and build left to CI; the focused file passed locally.

Author

  • X / Twitter: @BrennanKB5

Completion verification

@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The 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 process_gone_suppressed breadcrumbs and that exactly one renderer crash report is filed.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description explains the change, rationale, testing, and impact, but it does not provide the required linked GitHub issue. Add a valid linked issue under “Linked Issue”; also complete the Agent skill upstream boundary section if applicable.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the test change that keeps ambiguous whole-tree kills reportable.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/crash-false-report-sibling-correlation branch from 710fbfb to bd687de Compare August 15, 2026 05:44

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/main/crash-reporting/process-gone-recorder.ts (1)

154-163: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Isolate failures in the settle timer callback.

A synchronous failure in siblingProcessTreeKillCount, recordSuppressedProcessGone, or persistProcessGoneCrash reaches the main-process uncaughtException handler, which rethrows it on the next tick. Wrap the callback in try/catch and record crash_report_persist_failed with persistFailureData and recordDurableCrashBreadcrumb.


ℹ️ 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.ts
  • src/main/crash-reporting/process-gone-classification.test.ts
  • src/main/crash-reporting/process-gone-classification.ts
  • src/main/crash-reporting/process-gone-killed-one-ordering.test.ts
  • src/main/crash-reporting/process-gone-recorder.test.ts
  • src/main/crash-reporting/process-gone-recorder.ts
  • src/main/crash-reporting/process-tree-kill-window.test.ts
  • src/main/crash-reporting/process-tree-kill-window.ts

@brennanb2025
brennanb2025 force-pushed the brennanb2025/crash-false-report-sibling-correlation branch 3 times, most recently from 7b7894b to 71146b1 Compare August 15, 2026 06:29
@brennanb2025
brennanb2025 force-pushed the brennanb2025/crash-false-report-sibling-correlation branch from 71146b1 to 1f2ed8c Compare August 16, 2026 08:03
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

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.

@brennanb2025 brennanb2025 changed the title fix(crash-reporting): stop filing external whole-tree kills as renderer crashes test(crash-reporting): keep ambiguous whole-tree kills reportable Aug 16, 2026
@brennanb2025
brennanb2025 force-pushed the brennanb2025/crash-false-report-sibling-correlation branch from 1f2ed8c to 66f716a Compare August 16, 2026 22:43
@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between d5ef633 and 66f716a.

📒 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.

Comment on lines +88 to +93
recordProcessGoneCrash(
{ record, attachDetails } as never,
rendererKill,
dedupe,
noMinidump
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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}' || true

Repository: 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' || true

Repository: 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' || true

Repository: 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.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/crash-false-report-sibling-correlation branch from 66f716a to 486b2a0 Compare August 16, 2026 23:24
@brennanb2025
brennanb2025 force-pushed the brennanb2025/crash-false-report-sibling-correlation branch from 486b2a0 to ff53261 Compare August 17, 2026 02:24
@brennanb2025
brennanb2025 merged commit 80b0ab1 into main Aug 17, 2026
45 checks passed
brennanb2025 added a commit that referenced this pull request Aug 17, 2026
…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.
nwparker added a commit that referenced this pull request Aug 18, 2026
…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.
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 21, 2026
…ablyai#14667)

* test(crash-reporting): keep ambiguous tree kills reportable

* test(crash-reporting): drop the stale sibling-settle deferral comment
nwparker added a commit that referenced this pull request Aug 25, 2026
…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
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 25, 2026
…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)
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
…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
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ablyai#14667)

* test(crash-reporting): keep ambiguous tree kills reportable

* test(crash-reporting): drop the stale sibling-settle deferral comment
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant