|
| 1 | +{ |
| 2 | + "task_id": "nlqa-debug-001", |
| 3 | + "description": "VS Code extension host crash isolation: why doesn't it kill the main window?", |
| 4 | + "weights": { |
| 5 | + "required_findings": 0.40, |
| 6 | + "file_references": 0.30, |
| 7 | + "causal_chain": 0.20, |
| 8 | + "negative_checks": 0.10 |
| 9 | + }, |
| 10 | + "required_findings": [ |
| 11 | + { |
| 12 | + "id": "f1", |
| 13 | + "description": "Identifies that extension host runs as an Electron utility process (separate OS process)", |
| 14 | + "patterns": ["utility.*process|utilityProcess|UtilityProcess|WindowUtilityProcess"], |
| 15 | + "weight": 0.15 |
| 16 | + }, |
| 17 | + { |
| 18 | + "id": "f2", |
| 19 | + "description": "Explains extension host has separate PID from main process", |
| 20 | + "patterns": ["separate.*PID|separate.*process.*ID|isolated.*process|OS.*process|child.*process"], |
| 21 | + "weight": 0.10 |
| 22 | + }, |
| 23 | + { |
| 24 | + "id": "f3", |
| 25 | + "description": "Identifies ExtensionHostManager or NativeExtensionService as the main-side lifecycle manager", |
| 26 | + "patterns": ["ExtensionHostManager|NativeExtensionService|AbstractExtensionService"], |
| 27 | + "weight": 0.15 |
| 28 | + }, |
| 29 | + { |
| 30 | + "id": "f4", |
| 31 | + "description": "Identifies ExtensionHostCrashTracker as the crash tracking component", |
| 32 | + "patterns": ["ExtensionHostCrashTracker|crash.*track|_localCrashTracker"], |
| 33 | + "weight": 0.15 |
| 34 | + }, |
| 35 | + { |
| 36 | + "id": "f5", |
| 37 | + "description": "Explains IPC via MessagePort, MessageChannelMain, or message passing protocol", |
| 38 | + "patterns": ["MessagePort|MessageChannel|message.*passing|IMessagePassingProtocol|RPCProtocol"], |
| 39 | + "weight": 0.15 |
| 40 | + }, |
| 41 | + { |
| 42 | + "id": "f6", |
| 43 | + "description": "Describes crash detection via onExit event listener", |
| 44 | + "patterns": ["onExit|on.*exit|exit.*event|process.*exit|terminated.*unexpectedly"], |
| 45 | + "weight": 0.10 |
| 46 | + }, |
| 47 | + { |
| 48 | + "id": "f7", |
| 49 | + "description": "Explains 5-minute / 3-crash auto-restart policy", |
| 50 | + "patterns": ["5.*minute|3.*crash|TIME_LIMIT|CRASH_LIMIT|shouldAutomaticallyRestart"], |
| 51 | + "weight": 0.10 |
| 52 | + }, |
| 53 | + { |
| 54 | + "id": "f8", |
| 55 | + "description": "Mentions detached process on Windows (or OS-specific isolation)", |
| 56 | + "patterns": ["detached|windows.*detach|orphan|process.*group"], |
| 57 | + "weight": 0.10 |
| 58 | + } |
| 59 | + ], |
| 60 | + "file_references": [ |
| 61 | + { |
| 62 | + "id": "r1", |
| 63 | + "description": "References nativeExtensionService.ts or abstractExtensionService.ts", |
| 64 | + "patterns": ["nativeExtensionService\\.ts|abstractExtensionService\\.ts|extensions/electron.*nativeExtensionService"], |
| 65 | + "weight": 0.25 |
| 66 | + }, |
| 67 | + { |
| 68 | + "id": "r2", |
| 69 | + "description": "References extensionHostManager.ts", |
| 70 | + "patterns": ["extensionHostManager\\.ts|extensions/common/extensionHostManager"], |
| 71 | + "weight": 0.20 |
| 72 | + }, |
| 73 | + { |
| 74 | + "id": "r3", |
| 75 | + "description": "References utilityProcess.ts or extensionHostStarter.ts", |
| 76 | + "patterns": ["utilityProcess\\.ts|extensionHostStarter\\.ts|platform/utilityProcess|platform/extensions.*extensionHostStarter"], |
| 77 | + "weight": 0.25 |
| 78 | + }, |
| 79 | + { |
| 80 | + "id": "r4", |
| 81 | + "description": "References localProcessExtensionHost.ts or extensionHostProcess.ts", |
| 82 | + "patterns": ["localProcessExtensionHost\\.ts|extensionHostProcess\\.ts|api/node/extensionHostProcess"], |
| 83 | + "weight": 0.20 |
| 84 | + }, |
| 85 | + { |
| 86 | + "id": "r5", |
| 87 | + "description": "References rpcProtocol.ts or ipc.js/ipc.net.js", |
| 88 | + "patterns": ["rpcProtocol\\.ts|ipc\\.js|ipc\\.net\\.js|base/parts/ipc"], |
| 89 | + "weight": 0.10 |
| 90 | + } |
| 91 | + ], |
| 92 | + "causal_chain": [ |
| 93 | + { |
| 94 | + "id": "c1", |
| 95 | + "description": "Full crash handling flow: extension host crashes → OS delivers exit event → ExtensionHostManager detects via onExit → CrashTracker records crash → decides auto-restart or user prompt → startExtensionHosts() if auto-restart", |
| 96 | + "patterns": [ |
| 97 | + "crash|fatal.*error|exception", |
| 98 | + "onExit|exit.*event|process.*terminat", |
| 99 | + "ExtensionHostManager|NativeExtensionService|detect", |
| 100 | + "CrashTracker|registerCrash|shouldAutomaticallyRestart", |
| 101 | + "startExtensionHosts|restart|relaunch" |
| 102 | + ], |
| 103 | + "ordered": true, |
| 104 | + "weight": 0.70 |
| 105 | + }, |
| 106 | + { |
| 107 | + "id": "c2", |
| 108 | + "description": "Process spawning: ExtensionHostStarter.createExtensionHost() → WindowUtilityProcess.start() → Electron utility process spawned with separate PID", |
| 109 | + "patterns": [ |
| 110 | + "createExtensionHost|ExtensionHostStarter", |
| 111 | + "WindowUtilityProcess|utilityProcess|start", |
| 112 | + "spawn|separate.*PID|isolated.*process" |
| 113 | + ], |
| 114 | + "ordered": true, |
| 115 | + "weight": 0.30 |
| 116 | + } |
| 117 | + ], |
| 118 | + "negative_checks": [ |
| 119 | + { |
| 120 | + "id": "n1", |
| 121 | + "description": "Does NOT claim the extension host runs in the same process as the main window (e.g., as a thread or web worker in the renderer)", |
| 122 | + "patterns": ["same.*process.*main|main.*window.*process.*extension.*host|renderer.*thread|single.*process"], |
| 123 | + "must_be_absent": true, |
| 124 | + "weight": 0.50 |
| 125 | + }, |
| 126 | + { |
| 127 | + "id": "n2", |
| 128 | + "description": "Does NOT claim crashes are caught via try/catch (they're detected via process exit events, not exception handlers)", |
| 129 | + "patterns": ["try.*catch.*crash|exception.*handler.*crash|catch.*fatal.*error"], |
| 130 | + "must_be_absent": true, |
| 131 | + "weight": 0.50 |
| 132 | + } |
| 133 | + ] |
| 134 | +} |
0 commit comments