@@ -7,34 +7,39 @@ compatibility: The collector and summary scripts require Node.js 24 or a later v
77
88# Cursor-like Debug Mode
99
10- Run this evidence loop:
10+ Run this code-first evidence loop:
1111
1212``` text
13- frame -> hypothesize -> arm -> instrument -> reproduce -> prove -> fix -> verify -> clean
13+ analyze code -> hypothesize -> arm -> instrument -> reproduce -> prove -> fix -> verify -> clean
1414```
1515
16+ Work autonomously through instrumentation.
17+ The first planned user interaction is the Step 5 reproduction checkpoint.
1618Reproduction and verification are gates. Cross them only through the checkpoint protocol.
1719
18- ## 1. Frame the Bug
20+ ## 1. Analyze the Code Path
1921
20- Read the relevant code, reproduction details, existing logs, and recent changes.
21- Write a Bug Card with these fields:
22+ Start repository legwork from the reported symptom.
23+ Read relevant entry points, event handlers, state transitions, existing logs, and recent changes.
24+ Map candidate code paths from the user's trigger to the observed outcome.
25+ Write a provisional Bug Card from available evidence:
2226
23- - Symptom
24- - Expected behavior
25- - Exact trigger, route, command, input, or fixture
26- - Browser, operating system, runtime, branch, flags, account, and dataset
27- - Frequency: constant, intermittent, or unknown
28- - Relevant recent changes and existing evidence
27+ - Symptom and expected behavior
28+ - Known trigger, route, command, input, or fixture
29+ - Candidate runtime path and disputed boundaries
30+ - Relevant environment, frequency, recent changes, and evidence
2931- Observable acceptance criterion
3032
31- Reuse facts from the user's report. Ask only for missing facts that block targeted probes.
33+ Record unavailable facts as ` unknown ` .
34+ Resolve consequential unknowns through code reading or discriminating runtime probes.
3235
33- ** Complete when:** the manual trigger is exact , and the acceptance criterion is observable .
36+ ** Complete when:** one candidate path links trigger to symptom , and every disputed branch has a named probe boundary .
3437
3538## 2. Build the Hypothesis Matrix
3639
37- Write two to five ranked hypotheses before adding probes. Use this shape:
40+ Write two to five ranked hypotheses before adding probes.
41+ Anchor the first matrix in code analysis and available evidence.
42+ Use this shape:
3843
3944``` text
4045H1 <short cause>
0 commit comments