targeted-mutation 0.2.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,188 +1,107 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1120 716" width="1120" height="716" role="img" aria-label="How targeted-mutation works">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 476" width="960" height="476" role="img" aria-label="How targeted-mutation works">
2
2
  <defs>
3
3
  <style>
4
- .title { font-family: 'Virgil', 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', cursive, sans-serif; font-size: 24px; font-weight: 700; }
5
- .subtitle { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 13.5px; }
6
- .heading { font-family: 'Virgil', 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', cursive, sans-serif; font-size: 16.5px; font-weight: 700; }
7
- .body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12.5px; }
8
- .code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace; font-size: 11.5px; }
9
- .edge-label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 11.5px; font-weight: 600; }
4
+ .heading { font-family: 'Virgil', 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', cursive, sans-serif; font-size: 15.5px; font-weight: 700; }
5
+ .label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; font-weight: 700; }
6
+ .body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 11.5px; }
7
+ .small { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 10.8px; }
8
+ .code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace; font-size: 11px; }
10
9
  </style>
10
+ <marker id="arrow-gray" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
11
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#64748b"/>
12
+ </marker>
13
+ <marker id="arrow-purple" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
14
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#6741d9"/>
15
+ </marker>
16
+ <marker id="arrow-teal" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
17
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#0ca678"/>
18
+ </marker>
19
+ <marker id="arrow-green" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
20
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#2f9e44"/>
21
+ </marker>
22
+ <marker id="arrow-red" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
23
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#e03131"/>
24
+ </marker>
25
+ <marker id="arrow-orange" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
26
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#d9480f"/>
27
+ </marker>
11
28
  </defs>
12
29
 
13
- <!-- Clean card background so the diagram is crisp in both GitHub light and dark themes -->
14
- <rect x="0" y="0" width="1120" height="716" rx="16" fill="#ffffff"/>
15
- <rect x="1" y="1" width="1118" height="714" rx="15" fill="none" stroke="#e9ecef" stroke-width="1.5"/>
16
-
17
- <!-- Header -->
18
- <text x="40" y="42" class="title" fill="#1e293b">How targeted-mutation works</text>
19
- <text x="40" y="64" class="subtitle" fill="#64748b">Watch real runtime values -&gt; synthesize the closest unpinned edits -&gt; report actionable test gaps</text>
20
-
21
- <!-- Step 0: Source + Test Suite -->
22
- <rect x="43.0" y="118.0" width="230.0" height="82.0" rx="12" fill="#000000" opacity="0.045"/>
23
- <rect x="39.5" y="114.7" width="230.0" height="82.0" rx="12" fill="#f8f9fa"/>
24
- <path d="M 52.3 114.4 Q 155.5 115.2 258.7 114.8 Q 271.0 114.3 271.2 126.8 Q 270.2 155.6 270.7 184.5 Q 271.1 196.5 258.7 197.0 Q 155.5 196.4 52.3 196.5 Q 40.2 196.2 39.6 184.5 Q 40.0 155.6 40.6 126.8 Q 40.3 115.0 52.3 114.3" fill="none" stroke="#495057" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
25
- <path d="M 52.8 112.8 Q 155.0 113.5 257.2 112.9 Q 269.2 113.7 269.6 125.1 Q 270.5 154.6 269.6 184.1 Q 269.1 196.1 257.2 196.4 Q 155.0 196.6 52.8 196.1 Q 41.4 195.6 40.7 184.1 Q 41.0 154.6 40.1 125.1 Q 41.2 113.5 52.8 113.8" fill="none" stroke="#495057" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
26
- <text x="155.0" y="144.0" text-anchor="middle" class="heading" fill="#212529">Source + Test Suite</text>
27
- <text x="155.0" y="168.0" text-anchor="middle" class="code" fill="#495057">src/*.ts + test/*.test.ts</text>
28
- <text x="155.0" y="185.0" text-anchor="middle" class="body" fill="#343a40">Vitest 4 or Playwright</text>
29
-
30
- <!-- Arrow: Source -> Baseline -->
31
- <path d="M 269.6 155.3 Q 303.0 155.1 335.5 154.5" fill="none" stroke="#495057" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
32
- <path d="M 269.8 154.9 Q 303.0 154.7 335.8 154.7" fill="none" stroke="#495057" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
33
- <path d="M 336.0 155.0 Q 331.7 157.5 327.4 160.0" fill="none" stroke="#495057" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
34
- <path d="M 336.0 155.0 Q 331.6 157.5 327.4 160.0" fill="none" stroke="#495057" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
35
- <path d="M 336.0 155.0 Q 331.8 152.5 327.4 150.0" fill="none" stroke="#495057" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
36
- <path d="M 336.0 155.0 Q 331.8 152.5 327.4 150.0" fill="none" stroke="#495057" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
37
-
38
- <!-- Step 1: Baseline Run with Value Probes -->
39
- <rect x="341.0" y="118.0" width="410.0" height="82.0" rx="12" fill="#000000" opacity="0.045"/>
40
- <rect x="337.3" y="113.4" width="410.0" height="82.0" rx="12" fill="#e7f5ff"/>
41
- <path d="M 350.0 115.1 Q 542.9 113.3 735.9 115.0 Q 748.2 113.9 748.0 126.4 Q 747.8 154.9 747.9 183.4 Q 748.2 194.9 735.9 194.9 Q 542.9 194.4 350.0 196.0 Q 338.2 195.4 338.4 183.4 Q 337.9 154.9 338.0 126.4 Q 338.4 114.3 350.0 114.6" fill="none" stroke="#1971c2" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
42
- <path d="M 350.7 114.3 Q 543.8 113.7 736.9 115.2 Q 748.6 114.5 748.4 126.8 Q 748.1 155.7 748.5 184.6 Q 748.4 196.2 736.9 197.0 Q 543.8 196.2 350.7 197.1 Q 338.5 196.0 338.5 184.6 Q 339.8 155.7 338.2 126.8 Q 338.8 115.0 350.7 114.3" fill="none" stroke="#1971c2" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
43
- <text x="543.0" y="142.0" text-anchor="middle" class="heading" fill="#1864ab">1. Baseline Run with Value Probes</text>
44
- <text x="543.0" y="165.0" text-anchor="middle" class="body" fill="#1c4f7a">Runs your passing suite once with probes enabled.</text>
45
- <text x="543.0" y="182.0" text-anchor="middle" class="body" fill="#1c4f7a">Records (lhs, rhs) operands &amp; per-test edit agreement.</text>
46
-
47
- <!-- Side Track: diff and sub-hunk undo (Top-Right) -->
48
- <rect x="803.0" y="118.0" width="280.0" height="128.0" rx="12" fill="#000000" opacity="0.045"/>
49
- <rect x="800.0" y="113.3" width="280.0" height="128.0" rx="12" fill="#f1f3f5"/>
50
- <path d="M 812.6 115.3 Q 940.0 114.3 1067.5 114.3 Q 1079.1 114.6 1079.8 126.9 Q 1079.5 178.7 1079.3 230.5 Q 1079.0 242.2 1067.5 241.9 Q 940.0 242.3 812.6 242.3 Q 800.1 242.2 801.2 230.5 Q 800.2 178.7 800.3 126.9 Q 800.3 114.9 812.6 114.3" fill="none" stroke="#495057" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95" stroke-dasharray="6 4"/>
51
- <path d="M 812.1 112.9 Q 940.4 113.5 1068.7 113.4 Q 1080.9 112.8 1080.0 125.3 Q 1080.2 177.3 1080.2 229.3 Q 1080.9 241.5 1068.7 241.6 Q 940.4 242.0 812.1 240.8 Q 800.1 241.3 800.6 229.3 Q 800.8 177.3 800.2 125.3 Q 800.2 113.8 812.1 113.1" fill="none" stroke="#495057" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55" stroke-dasharray="6 4"/>
52
- <text x="940.0" y="140.0" text-anchor="middle" class="heading" fill="#343a40">Optional: Diff &amp; Sub-Hunk Undo</text>
53
- <text x="940.0" y="160.0" text-anchor="middle" class="code" fill="#495057">--since REV --undo-changes</text>
54
- <text x="940.0" y="177.0" text-anchor="middle" class="body" fill="#343a40">Reverts each Git hunk &amp; AST sub-hunk</text>
55
- <text x="940.0" y="194.0" text-anchor="middle" class="body" fill="#343a40">(added &amp;&amp;/|| terms, added object props)</text>
56
- <text x="940.0" y="211.0" text-anchor="middle" class="code" fill="#c92a2a">-&gt; UNTESTED CHANGE</text>
57
- <path d="M 155.0 113.9 Q 154.9 101.9 155.0 90.1" fill="none" stroke="#868e96" stroke-width="1.9" stroke-linecap="round" opacity="1" stroke-dasharray="5 4"/>
58
- <path d="M 155.0 114.1 Q 155.1 102.3 154.9 89.9" fill="none" stroke="#868e96" stroke-width="1.6" stroke-linecap="round" opacity="0.65" stroke-dasharray="5 4"/>
59
- <path d="M 154.1 89.8 Q 548.9 90.4 940.6 90.5" fill="none" stroke="#868e96" stroke-width="1.9" stroke-linecap="round" opacity="1" stroke-dasharray="5 4"/>
60
- <path d="M 155.9 90.0 Q 548.1 90.6 939.1 90.5" fill="none" stroke="#868e96" stroke-width="1.6" stroke-linecap="round" opacity="0.65" stroke-dasharray="5 4"/>
61
- <path d="M 940.1 90.1 Q 939.9 101.3 939.9 112.0" fill="none" stroke="#868e96" stroke-width="1.9" stroke-linecap="round" opacity="1" stroke-dasharray="5 4"/>
62
- <path d="M 939.9 90.1 Q 939.9 100.9 940.1 112.0" fill="none" stroke="#868e96" stroke-width="1.6" stroke-linecap="round" opacity="0.65" stroke-dasharray="5 4"/>
63
- <path d="M 940.0 112.0 Q 937.5 107.6 935.0 103.3" fill="none" stroke="#868e96" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
64
- <path d="M 940.0 112.0 Q 937.5 107.6 935.0 103.3" fill="none" stroke="#868e96" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
65
- <path d="M 940.0 112.0 Q 942.5 107.7 945.0 103.3" fill="none" stroke="#868e96" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
66
- <path d="M 940.0 112.0 Q 942.4 107.7 945.0 103.3" fill="none" stroke="#868e96" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
67
- <rect x="492.6" y="82.0" width="110.8" height="17" rx="4" fill="#ffffff" opacity="0.92"/>
68
- <text x="548.0" y="94.0" text-anchor="middle" class="edge-label" fill="#868e96">git diff hunks</text>
69
-
70
- <!-- Arrows: Baseline -> Track A (Comparison / Lean) and Track B (20 Value-Aware Rules) -->
71
- <path d="M 440.7 196.3 Q 329.1 222.9 216.9 247.9" fill="none" stroke="#6741d9" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
72
- <path d="M 440.7 195.1 Q 329.3 221.7 217.6 248.5" fill="none" stroke="#6741d9" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
73
- <path d="M 217.0 248.0 Q 220.7 244.6 224.3 241.2" fill="none" stroke="#6741d9" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
74
- <path d="M 217.0 248.0 Q 220.6 244.6 224.3 241.2" fill="none" stroke="#6741d9" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
75
- <path d="M 217.0 248.0 Q 221.9 249.4 226.6 250.9" fill="none" stroke="#6741d9" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
76
- <path d="M 217.0 248.0 Q 221.8 249.4 226.6 250.9" fill="none" stroke="#6741d9" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
77
- <rect x="242.4" y="210.0" width="125.2" height="17" rx="4" fill="#ffffff" opacity="0.92"/>
78
- <text x="305.0" y="222.0" text-anchor="middle" class="edge-label" fill="#6741d9">comparison sites</text>
79
- <path d="M 620.3 195.8 Q 608.5 222.6 596.7 248.3" fill="none" stroke="#0ca678" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
80
- <path d="M 619.7 195.9 Q 608.6 222.6 596.9 248.3" fill="none" stroke="#0ca678" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
81
- <path d="M 597.0 248.0 Q 596.4 243.0 595.9 238.1" fill="none" stroke="#0ca678" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
82
- <path d="M 597.0 248.0 Q 596.5 243.0 596.0 238.1" fill="none" stroke="#0ca678" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
83
- <path d="M 597.0 248.0 Q 601.0 245.1 605.1 242.1" fill="none" stroke="#0ca678" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
84
- <path d="M 597.0 248.0 Q 601.0 245.0 605.1 242.1" fill="none" stroke="#0ca678" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
85
- <rect x="589.8" y="211.0" width="132.4" height="17" rx="4" fill="#ffffff" opacity="0.92"/>
86
- <text x="656.0" y="223.0" text-anchor="middle" class="edge-label" fill="#0ca678">20 semantic rules</text>
87
-
88
- <!-- Track A: Comparison Sites + Lean 4 -->
89
- <rect x="43.0" y="254.0" width="355.0" height="132.0" rx="12" fill="#000000" opacity="0.045"/>
90
- <rect x="39.8" y="249.9" width="355.0" height="132.0" rx="12" fill="#f3f0ff"/>
91
- <path d="M 52.9 249.8 Q 218.2 250.0 383.5 249.9 Q 395.5 249.8 396.0 262.0 Q 395.1 315.9 396.1 369.8 Q 395.2 382.0 383.5 382.1 Q 218.2 381.8 52.9 381.5 Q 40.6 382.2 40.6 369.8 Q 40.6 315.9 40.7 262.0 Q 41.1 249.6 52.9 250.3" fill="none" stroke="#6741d9" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
92
- <path d="M 52.6 250.7 Q 218.2 249.6 383.9 250.1 Q 396.4 249.8 396.3 262.4 Q 394.7 315.7 395.7 369.0 Q 396.3 381.2 383.9 380.9 Q 218.2 379.8 52.6 381.3 Q 40.4 381.4 41.3 369.0 Q 41.4 315.7 40.9 262.4 Q 40.8 250.6 52.6 250.0" fill="none" stroke="#6741d9" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
93
- <text x="217.0" y="277.0" text-anchor="middle" class="heading" fill="#5f3dc4">Lean 4 Solver (tmt-decide)</text>
94
- <text x="217.0" y="300.0" text-anchor="middle" class="body" fill="#3b2c68">Computes exact feasible [lo, hi] intervals for:</text>
95
- <text x="217.0" y="318.0" text-anchor="middle" class="code" fill="#5f3dc4">constant-RHS &amp; variable-RHS margins</text>
96
- <text x="217.0" y="336.0" text-anchor="middle" class="body" fill="#3b2c68">Synthesizes nearest open edit (age &gt;= 17, rhs - 1)</text>
97
- <text x="217.0" y="354.0" text-anchor="middle" class="body" fill="#3b2c68">With --deterministic: proves safe replay skips</text>
98
-
99
- <!-- Track B: 20 Value-Aware Rules -->
100
- <rect x="423.0" y="254.0" width="355.0" height="132.0" rx="12" fill="#000000" opacity="0.045"/>
101
- <rect x="420.5" y="250.5" width="355.0" height="132.0" rx="12" fill="#e6fcf5"/>
102
- <path d="M 431.1 250.1 Q 597.4 249.7 763.7 250.2 Q 776.2 249.7 775.4 261.9 Q 775.6 316.4 775.7 370.9 Q 775.7 382.8 763.7 383.6 Q 597.4 382.6 431.1 382.8 Q 418.6 382.4 418.9 370.9 Q 418.4 316.4 419.6 261.9 Q 418.8 250.0 431.1 250.1" fill="none" stroke="#0ca678" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
103
- <path d="M 431.5 249.5 Q 597.6 248.9 763.8 249.2 Q 776.0 249.9 775.6 261.5 Q 776.8 315.9 775.8 370.3 Q 775.4 382.1 763.8 382.5 Q 597.6 381.5 431.5 381.9 Q 419.6 381.7 418.9 370.3 Q 419.5 315.9 418.9 261.5 Q 419.2 249.8 431.5 250.1" fill="none" stroke="#0ca678" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
104
- <text x="597.0" y="277.0" text-anchor="middle" class="heading" fill="#087f5b">20 Value-Aware Targeted Rules</text>
105
- <text x="597.0" y="300.0" text-anchor="middle" class="body" fill="#125442">spread-property-drop, startsWith-&gt;includes, replaceAll</text>
106
- <text x="597.0" y="318.0" text-anchor="middle" class="body" fill="#125442">clamp-bound, literal-set-prune, merge-precedence,</text>
107
- <text x="597.0" y="336.0" text-anchor="middle" class="body" fill="#125442">??/||, ==/=== null, Math, sequence ends, finally cleanup</text>
108
- <text x="597.0" y="354.0" text-anchor="middle" class="code" fill="#087f5b">Records "agreed" vs "differed in T" per test</text>
109
-
110
- <!-- Arrows: Track A & Track B -> Vitest Worker Session -->
111
- <path d="M 216.8 381.4 Q 267.8 406.0 320.7 428.0" fill="none" stroke="#6741d9" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
112
- <path d="M 217.7 381.7 Q 269.0 403.7 320.6 427.2" fill="none" stroke="#6741d9" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
113
- <path d="M 320.0 428.0 Q 315.1 428.6 310.0 429.0" fill="none" stroke="#6741d9" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
114
- <path d="M 320.0 428.0 Q 315.1 428.6 310.0 429.0" fill="none" stroke="#6741d9" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
115
- <path d="M 320.0 428.0 Q 317.0 424.0 314.1 419.9" fill="none" stroke="#6741d9" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
116
- <path d="M 320.0 428.0 Q 317.0 423.9 314.1 419.9" fill="none" stroke="#6741d9" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
117
- <path d="M 596.4 382.5 Q 547.5 403.9 499.9 428.0" fill="none" stroke="#0ca678" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
118
- <path d="M 597.0 382.4 Q 549.9 405.3 500.0 427.3" fill="none" stroke="#0ca678" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
119
- <path d="M 500.0 428.0 Q 502.9 423.9 505.7 419.8" fill="none" stroke="#0ca678" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
120
- <path d="M 500.0 428.0 Q 502.8 423.9 505.7 419.8" fill="none" stroke="#0ca678" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
121
- <path d="M 500.0 428.0 Q 505.0 428.4 509.9 428.8" fill="none" stroke="#0ca678" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
122
- <path d="M 500.0 428.0 Q 505.0 428.3 509.9 428.8" fill="none" stroke="#0ca678" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
123
-
124
- <!-- Step 2: Vitest 4 Worker Session -->
125
- <rect x="138.0" y="434.0" width="550.0" height="82.0" rx="12" fill="#000000" opacity="0.045"/>
126
- <rect x="134.3" y="429.2" width="550.0" height="82.0" rx="12" fill="#fff9db"/>
127
- <path d="M 148.0 429.9 Q 410.8 429.6 673.7 430.6 Q 686.1 429.7 685.1 442.0 Q 685.5 470.7 685.2 499.4 Q 685.4 511.8 673.7 511.7 Q 410.8 510.2 148.0 511.9 Q 135.5 511.4 136.3 499.4 Q 135.8 470.7 136.1 442.0 Q 135.9 429.7 148.0 429.7" fill="none" stroke="#e67700" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
128
- <path d="M 147.7 430.1 Q 410.1 429.1 672.4 429.5 Q 684.9 429.9 684.6 441.5 Q 684.2 470.5 684.8 499.4 Q 684.1 510.9 672.4 511.1 Q 410.1 510.3 147.7 511.6 Q 135.6 511.6 136.2 499.4 Q 136.1 470.5 136.3 441.5 Q 135.2 429.7 147.7 428.9" fill="none" stroke="#e67700" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
129
- <text x="410.0" y="458.0" text-anchor="middle" class="heading" fill="#d9480f">2. Switched Vitest 4 Worker Session</text>
130
- <text x="410.0" y="480.0" text-anchor="middle" class="body" fill="#6c4200">Runs only tests that reach each edit via in-worker runtime switches.</text>
131
- <text x="410.0" y="497.0" text-anchor="middle" class="body" fill="#6c4200">Immediate post-trial control run catches state leaks (auto-fallback to fresh run).</text>
30
+ <!-- Clean card background for GitHub light & dark themes -->
31
+ <rect x="0" y="0" width="960" height="476" rx="14" fill="#ffffff"/>
32
+ <rect x="1" y="1" width="958" height="474" rx="13" fill="none" stroke="#e9ecef" stroke-width="1.5"/>
33
+
34
+ <!-- Row 1: Source -> Baseline -> Optional Diff Track -->
35
+ <rect x="28" y="34" width="196" height="62" rx="10" fill="#f8f9fa" stroke="#adb5bd" stroke-width="1.5"/>
36
+ <text x="126" y="59" text-anchor="middle" class="heading" fill="#212529">Source + Tests</text>
37
+ <text x="126" y="79" text-anchor="middle" class="small" fill="#495057">Vitest 4 or Playwright</text>
38
+
39
+ <line x1="224" y1="65" x2="270" y2="65" stroke="#64748b" stroke-width="1.6" marker-end="url(#arrow-gray)"/>
40
+
41
+ <rect x="276" y="34" width="380" height="62" rx="10" fill="#e7f5ff" stroke="#1971c2" stroke-width="1.6"/>
42
+ <text x="466" y="58" text-anchor="middle" class="heading" fill="#1864ab">1. Baseline Run + Value Probes</text>
43
+ <text x="466" y="79" text-anchor="middle" class="body" fill="#1c4f7a">Records (lhs, rhs) operands &amp; per-test agreement</text>
44
+
45
+ <!-- Optional side track -->
46
+ <path d="M 126 34 L 126 16 L 814 16 L 814 29" fill="none" stroke="#868e96" stroke-width="1.3" stroke-dasharray="4 3" marker-end="url(#arrow-gray)"/>
47
+ <rect x="440" y="8" width="96" height="15" rx="3" fill="#ffffff"/>
48
+ <text x="488" y="19" text-anchor="middle" class="small" fill="#868e96">git diff hunks</text>
49
+
50
+ <rect x="696" y="34" width="236" height="62" rx="10" fill="#f1f3f5" stroke="#868e96" stroke-width="1.4" stroke-dasharray="5 3"/>
51
+ <text x="814" y="54" text-anchor="middle" class="label" fill="#343a40">Optional: --undo-changes</text>
52
+ <text x="814" y="71" text-anchor="middle" class="small" fill="#495057">Reverts hunks &amp; AST sub-hunks</text>
53
+ <text x="814" y="87" text-anchor="middle" class="code" fill="#c92a2a">-&gt; UNTESTED CHANGE</text>
54
+
55
+ <!-- Arrows: Baseline -> Track A & Track B -->
56
+ <path d="M 380 96 L 236 134" fill="none" stroke="#6741d9" stroke-width="1.6" marker-end="url(#arrow-purple)"/>
57
+ <path d="M 552 96 L 616 134" fill="none" stroke="#0ca678" stroke-width="1.6" marker-end="url(#arrow-teal)"/>
58
+
59
+ <!-- Row 2: Two synthesis tracks -->
60
+ <rect x="28" y="140" width="404" height="84" rx="10" fill="#f3f0ff" stroke="#6741d9" stroke-width="1.6"/>
61
+ <text x="230" y="164" text-anchor="middle" class="heading" fill="#5f3dc4">2a. Lean 4 Solver (tmt-decide)</text>
62
+ <text x="230" y="185" text-anchor="middle" class="body" fill="#3b2c68">Feasible threshold &amp; margin intervals -&gt; nearest open edit</text>
63
+ <text x="230" y="205" text-anchor="middle" class="small" fill="#5f3dc4">--deterministic: proves zero-reexecution replay skips</text>
64
+
65
+ <rect x="456" y="140" width="476" height="84" rx="10" fill="#e6fcf5" stroke="#0ca678" stroke-width="1.6"/>
66
+ <text x="694" y="164" text-anchor="middle" class="heading" fill="#087f5b">2b. 20 Value-Aware Rules</text>
67
+ <text x="694" y="185" text-anchor="middle" class="body" fill="#125442">spread drop, startsWith-&gt;includes, replaceAll, clamp, ??/||, finally...</text>
68
+ <text x="694" y="205" text-anchor="middle" class="small" fill="#087f5b">Tracks "agreed" vs "differed in T" per test</text>
69
+
70
+ <!-- Arrows: Tracks -> Worker Session -->
71
+ <path d="M 230 224 L 356 260" fill="none" stroke="#6741d9" stroke-width="1.6" marker-end="url(#arrow-purple)"/>
72
+ <path d="M 694 224 L 568 260" fill="none" stroke="#0ca678" stroke-width="1.6" marker-end="url(#arrow-teal)"/>
73
+
74
+ <!-- Row 3: Switched Vitest 4 Workers -->
75
+ <rect x="210" y="264" width="540" height="60" rx="10" fill="#fff9db" stroke="#e67700" stroke-width="1.6"/>
76
+ <text x="480" y="289" text-anchor="middle" class="heading" fill="#d9480f">3. Switched Vitest 4 Worker Session</text>
77
+ <text x="480" y="309" text-anchor="middle" class="body" fill="#6c4200">In-worker runtime switches + post-trial control run (auto-fallback on state leak)</text>
132
78
 
133
79
  <!-- Arrows: Session -> 3 Outcomes -->
134
- <path d="M 239.9 511.8 Q 196.8 535.7 154.4 560.3" fill="none" stroke="#2f9e44" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
135
- <path d="M 240.1 512.6 Q 197.6 536.4 154.7 559.8" fill="none" stroke="#2f9e44" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
136
- <path d="M 155.0 560.0 Q 157.6 555.6 160.1 551.4" fill="none" stroke="#2f9e44" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
137
- <path d="M 155.0 560.0 Q 157.5 555.8 160.0 551.4" fill="none" stroke="#2f9e44" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
138
- <path d="M 155.0 560.0 Q 160.1 560.0 165.0 560.1" fill="none" stroke="#2f9e44" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
139
- <path d="M 155.0 560.0 Q 160.0 560.0 165.0 560.1" fill="none" stroke="#2f9e44" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
140
- <rect x="134.0" y="525.0" width="82.0" height="17" rx="4" fill="#ffffff" opacity="0.92"/>
141
- <text x="175.0" y="537.0" text-anchor="middle" class="edge-label" fill="#2f9e44">test fails</text>
142
- <path d="M 410.0 512.2 Q 441.1 535.4 472.5 559.7" fill="none" stroke="#e03131" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
143
- <path d="M 409.8 511.8 Q 440.6 535.5 471.9 559.9" fill="none" stroke="#e03131" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
144
- <path d="M 472.0 560.0 Q 467.1 559.3 462.1 558.6" fill="none" stroke="#e03131" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
145
- <path d="M 472.0 560.0 Q 467.1 559.3 462.1 558.7" fill="none" stroke="#e03131" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
146
- <path d="M 472.0 560.0 Q 470.1 555.4 468.2 550.7" fill="none" stroke="#e03131" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
147
- <path d="M 472.0 560.0 Q 470.0 555.3 468.2 550.8" fill="none" stroke="#e03131" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
148
- <rect x="333.8" y="525.0" width="132.4" height="17" rx="4" fill="#ffffff" opacity="0.92"/>
149
- <text x="400.0" y="537.0" text-anchor="middle" class="edge-label" fill="#e03131">all pass + agreed</text>
150
- <path d="M 579.8 512.3 Q 720.5 535.8 859.2 559.9" fill="none" stroke="#d9480f" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
151
- <path d="M 579.8 511.7 Q 720.5 535.6 860.2 560.0" fill="none" stroke="#d9480f" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
152
- <path d="M 860.0 560.0 Q 855.3 561.8 850.6 563.5" fill="none" stroke="#d9480f" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
153
- <path d="M 860.0 560.0 Q 855.4 561.7 850.6 563.5" fill="none" stroke="#d9480f" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
154
- <path d="M 860.0 560.0 Q 856.1 556.9 852.3 553.6" fill="none" stroke="#d9480f" stroke-width="1.9" stroke-linecap="round" opacity="1"/>
155
- <path d="M 860.0 560.0 Q 856.2 556.7 852.3 553.6" fill="none" stroke="#d9480f" stroke-width="1.6" stroke-linecap="round" opacity="0.65"/>
156
- <rect x="653.6" y="525.0" width="182.8" height="17" rx="4" fill="#ffffff" opacity="0.92"/>
157
- <text x="745.0" y="537.0" text-anchor="middle" class="edge-label" fill="#d9480f">all pass + differed in T</text>
158
-
159
- <!-- Outcome 1: killed -->
160
- <rect x="43.0" y="566.0" width="225.0" height="118.0" rx="12" fill="#000000" opacity="0.045"/>
161
- <rect x="40.3" y="562.0" width="225.0" height="118.0" rx="12" fill="#ebfbee"/>
162
- <path d="M 51.8 562.5 Q 152.3 562.5 252.9 562.0 Q 264.6 562.5 264.5 574.3 Q 264.4 621.2 264.9 668.1 Q 264.4 679.6 252.9 679.4 Q 152.3 679.1 51.8 680.6 Q 39.7 680.0 39.3 668.1 Q 39.3 621.2 40.0 574.3 Q 39.6 562.1 51.8 562.6" fill="none" stroke="#2f9e44" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
163
- <path d="M 51.1 563.1 Q 152.5 564.0 253.8 562.7 Q 266.4 563.4 265.8 574.9 Q 266.1 621.1 266.1 667.3 Q 265.8 679.3 253.8 678.6 Q 152.5 679.6 51.1 678.9 Q 38.6 678.9 39.7 667.3 Q 38.1 621.1 39.5 574.9 Q 39.2 563.3 51.1 562.7" fill="none" stroke="#2f9e44" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
164
- <text x="152.0" y="590.0" text-anchor="middle" class="heading" fill="#2b8a3e">killed</text>
165
- <text x="152.0" y="615.0" text-anchor="middle" class="body" fill="#21572c">At least one test failed.</text>
166
- <text x="152.0" y="633.0" text-anchor="middle" class="body" fill="#21572c">Your suite already</text>
167
- <text x="152.0" y="651.0" text-anchor="middle" class="body" fill="#21572c">distinguishes this edit.</text>
168
-
169
- <!-- Outcome 2: INPUT GAP -->
170
- <rect x="293.0" y="566.0" width="365.0" height="118.0" rx="12" fill="#000000" opacity="0.045"/>
171
- <rect x="290.4" y="562.2" width="365.0" height="118.0" rx="12" fill="#fff5f5"/>
172
- <path d="M 302.6 561.5 Q 473.3 560.5 644.0 561.7 Q 656.3 561.0 656.1 573.2 Q 656.2 620.6 655.5 668.0 Q 655.8 680.0 644.0 680.6 Q 473.3 679.0 302.6 680.0 Q 290.5 679.6 290.7 668.0 Q 289.8 620.6 290.0 573.2 Q 290.8 561.0 302.6 561.6" fill="none" stroke="#e03131" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
173
- <path d="M 301.8 561.8 Q 472.9 563.0 644.0 562.4 Q 655.6 561.5 656.1 573.7 Q 654.7 620.8 656.7 667.9 Q 655.7 680.5 644.0 679.5 Q 472.9 681.1 301.8 679.8 Q 289.7 679.7 290.4 667.9 Q 290.0 620.8 289.7 573.7 Q 290.3 562.2 301.8 561.0" fill="none" stroke="#e03131" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
174
- <text x="472.0" y="590.0" text-anchor="middle" class="heading" fill="#c92a2a">INPUT GAP (missing case)</text>
175
- <text x="472.0" y="613.0" text-anchor="middle" class="body" fill="#691b1b">Edit agreed on every observed evaluation.</text>
176
- <text x="472.0" y="631.0" text-anchor="middle" class="body" fill="#691b1b">Names the exact missing input or boundary:</text>
177
- <text x="472.0" y="649.0" text-anchor="middle" class="code" fill="#a61e4d">expect(isAdult(18)).toBe(true)</text>
178
-
179
- <!-- Outcome 3: ASSERTION GAP -->
180
- <rect x="683.0" y="566.0" width="400.0" height="118.0" rx="12" fill="#000000" opacity="0.045"/>
181
- <rect x="680.5" y="562.2" width="400.0" height="118.0" rx="12" fill="#fff4e6"/>
182
- <path d="M 691.9 561.7 Q 879.5 562.4 1067.1 562.7 Q 1079.5 561.6 1079.8 574.1 Q 1080.3 621.2 1079.8 668.4 Q 1078.7 680.4 1067.1 680.8 Q 879.5 679.6 691.9 680.0 Q 680.2 680.1 680.4 668.4 Q 680.5 621.2 679.6 574.1 Q 679.8 562.6 691.9 562.5" fill="none" stroke="#d9480f" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" opacity="0.95"/>
183
- <path d="M 691.4 561.8 Q 879.3 560.9 1067.2 560.8 Q 1079.6 561.4 1079.8 573.5 Q 1078.7 620.8 1078.9 668.2 Q 1079.5 679.9 1067.2 680.7 Q 879.3 678.8 691.4 680.7 Q 679.7 679.8 678.7 668.2 Q 678.2 620.8 679.4 573.5 Q 679.6 561.8 691.4 560.9" fill="none" stroke="#d9480f" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.55"/>
184
- <text x="880.0" y="590.0" text-anchor="middle" class="heading" fill="#d9480f">ASSERTION GAP (weak test)</text>
185
- <text x="880.0" y="613.0" text-anchor="middle" class="body" fill="#6e2b07">Edit produced a different value in test T, yet T passed.</text>
186
- <text x="880.0" y="631.0" text-anchor="middle" class="body" fill="#6e2b07">With --suggest-assertions, narrows to changed field:</text>
187
- <text x="880.0" y="649.0" text-anchor="middle" class="code" fill="#b53a08">expect(res.fee).toBe(600)</text>
80
+ <path d="M 330 324 L 154 366" fill="none" stroke="#2f9e44" stroke-width="1.6" marker-end="url(#arrow-green)"/>
81
+ <rect x="196" y="335" width="66" height="16" rx="4" fill="#ffffff"/>
82
+ <text x="229" y="347" text-anchor="middle" class="small" fill="#2f9e44" font-weight="700">test fails</text>
83
+
84
+ <line x1="480" y1="324" x2="480" y2="365" stroke="#e03131" stroke-width="1.6" marker-end="url(#arrow-red)"/>
85
+ <rect x="424" y="335" width="112" height="16" rx="4" fill="#ffffff"/>
86
+ <text x="480" y="347" text-anchor="middle" class="small" fill="#e03131" font-weight="700">all pass + agreed</text>
87
+
88
+ <path d="M 630 324 L 806 366" fill="none" stroke="#d9480f" stroke-width="1.6" marker-end="url(#arrow-orange)"/>
89
+ <rect x="668" y="335" width="132" height="16" rx="4" fill="#ffffff"/>
90
+ <text x="734" y="347" text-anchor="middle" class="small" fill="#d9480f" font-weight="700">all pass + differed</text>
91
+
92
+ <!-- Row 4: 3 Outcomes -->
93
+ <rect x="28" y="370" width="252" height="82" rx="10" fill="#ebfbee" stroke="#2f9e44" stroke-width="1.6"/>
94
+ <text x="154" y="396" text-anchor="middle" class="heading" fill="#2b8a3e">killed</text>
95
+ <text x="154" y="418" text-anchor="middle" class="body" fill="#21572c">Suite already distinguishes</text>
96
+ <text x="154" y="435" text-anchor="middle" class="body" fill="#21572c">this edit.</text>
97
+
98
+ <rect x="304" y="370" width="352" height="82" rx="10" fill="#fff5f5" stroke="#e03131" stroke-width="1.6"/>
99
+ <text x="480" y="396" text-anchor="middle" class="heading" fill="#c92a2a">INPUT GAP</text>
100
+ <text x="480" y="416" text-anchor="middle" class="small" fill="#691b1b">Names exact missing input or boundary:</text>
101
+ <text x="480" y="436" text-anchor="middle" class="code" fill="#a61e4d">expect(isAdult(18)).toBe(true)</text>
102
+
103
+ <rect x="680" y="370" width="252" height="82" rx="10" fill="#fff4e6" stroke="#d9480f" stroke-width="1.6"/>
104
+ <text x="806" y="396" text-anchor="middle" class="heading" fill="#d9480f">ASSERTION GAP</text>
105
+ <text x="806" y="416" text-anchor="middle" class="small" fill="#6e2b07">Names weak test T (+ --suggest-assertions):</text>
106
+ <text x="806" y="436" text-anchor="middle" class="code" fill="#b53a08">expect(res.fee).toBe(600)</text>
188
107
  </svg>
@@ -0,0 +1,117 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 448" width="960" height="448" role="img" aria-label="Value-space blind spot and RIPR diagnosis in Targeted Mutation Testing">
2
+ <defs>
3
+ <style>
4
+ .heading { font-family: 'Virgil', 'Segoe Print', 'Bradley Hand', 'Chalkboard SE', cursive, sans-serif; font-size: 16.5px; font-weight: 700; }
5
+ .label { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12.5px; font-weight: 700; }
6
+ .body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; }
7
+ .small { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 11px; }
8
+ .code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace; font-size: 12px; }
9
+ .code-sm { font-family: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace; font-size: 11px; }
10
+ </style>
11
+ <pattern id="hatch-red" width="8" height="8" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
12
+ <line x1="0" y1="0" x2="0" y2="8" stroke="#ffa8a8" stroke-width="2" />
13
+ </pattern>
14
+ <marker id="arrow-gray" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
15
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#64748b"/>
16
+ </marker>
17
+ <marker id="arrow-purple" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
18
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#6741d9"/>
19
+ </marker>
20
+ <marker id="arrow-red" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
21
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#e03131"/>
22
+ </marker>
23
+ <marker id="arrow-orange" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6.5" markerHeight="6.5" orient="auto-start-reverse">
24
+ <path d="M 0 1.5 L 8.5 5 L 0 8.5 z" fill="#d9480f"/>
25
+ </marker>
26
+ </defs>
27
+
28
+ <!-- Clean card background for GitHub light & dark themes -->
29
+ <rect x="0" y="0" width="960" height="448" rx="14" fill="#ffffff"/>
30
+ <rect x="1" y="1" width="958" height="446" rx="13" fill="none" stroke="#e9ecef" stroke-width="1.5"/>
31
+
32
+ <!-- ====================================================================== -->
33
+ <!-- PANEL 1: Value-space blind spot -->
34
+ <!-- ====================================================================== -->
35
+ <rect x="24" y="22" width="912" height="202" rx="12" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.5"/>
36
+ <text x="44" y="48" class="heading" fill="#1e293b">1. Value-space blind spot</text>
37
+ <text x="276" y="48" class="code" fill="#475569">yen &gt;= 5000</text>
38
+ <text x="372" y="48" class="small" fill="#64748b">(tests pass 4800 and 5000)</text>
39
+
40
+ <!-- Conventional row -->
41
+ <text x="44" y="88" class="label" fill="#495057">Conventional</text>
42
+ <rect x="164" y="68" width="286" height="32" rx="8" fill="#ebfbee" stroke="#2f9e44" stroke-width="1.4"/>
43
+ <text x="307" y="88" text-anchor="middle" class="code-sm" fill="#1b4332">&gt; 5000, &lt; 5000, true / false</text>
44
+ <line x1="450" y1="84" x2="488" y2="84" stroke="#64748b" stroke-width="1.5" marker-end="url(#arrow-gray)"/>
45
+ <rect x="494" y="68" width="128" height="32" rx="8" fill="#ebfbee" stroke="#2f9e44" stroke-width="1.4"/>
46
+ <text x="558" y="88" text-anchor="middle" class="label" fill="#2b8a3e">100% killed</text>
47
+ <text x="640" y="88" class="small" fill="#c92a2a" font-weight="700">misses yen &gt;= 4999</text>
48
+
49
+ <!-- Targeted row (number line) -->
50
+ <text x="44" y="160" class="label" fill="#5f3dc4">Targeted</text>
51
+ <rect x="164" y="114" width="748" height="94" rx="10" fill="#ffffff" stroke="#d0bfff" stroke-width="1.4"/>
52
+
53
+ <!-- Unpinned interval [4801..4999] -->
54
+ <rect x="278" y="148" width="388" height="22" rx="4" fill="#fff5f5" stroke="#ffa8a8" stroke-width="1.2"/>
55
+ <rect x="278" y="148" width="388" height="22" rx="4" fill="url(#hatch-red)" opacity="0.7"/>
56
+ <text x="472" y="139" text-anchor="middle" class="small" fill="#c92a2a" font-weight="700">unpinned thresholds [4801 .. 4999]</text>
57
+
58
+ <!-- Axis -->
59
+ <line x1="196" y1="159" x2="884" y2="159" stroke="#495057" stroke-width="1.8" marker-end="url(#arrow-gray)"/>
60
+
61
+ <!-- 4800 -->
62
+ <circle cx="258" cy="159" r="6" fill="#1971c2" stroke="#ffffff" stroke-width="2"/>
63
+ <text x="258" y="136" text-anchor="middle" class="small" fill="#1864ab">false</text>
64
+ <text x="258" y="185" text-anchor="middle" class="code" fill="#1864ab">4800</text>
65
+
66
+ <!-- 4999 -->
67
+ <polygon points="666,151 674,159 666,167 658,159" fill="#6741d9" stroke="#ffffff" stroke-width="1.5"/>
68
+ <text x="666" y="185" text-anchor="middle" class="code" fill="#5f3dc4" font-weight="700">4999</text>
69
+ <text x="666" y="200" text-anchor="middle" class="code-sm" fill="#5f3dc4">synthesizes yen &gt;= 4999 (1 witness closes 4801..4999)</text>
70
+
71
+ <!-- 5000 -->
72
+ <circle cx="766" cy="159" r="6" fill="#2f9e44" stroke="#ffffff" stroke-width="2"/>
73
+ <text x="766" y="136" text-anchor="middle" class="small" fill="#2b8a3e">true</text>
74
+ <text x="766" y="185" text-anchor="middle" class="code" fill="#2b8a3e">5000</text>
75
+
76
+ <!-- ====================================================================== -->
77
+ <!-- PANEL 2: RIPR diagnosis -->
78
+ <!-- ====================================================================== -->
79
+ <rect x="24" y="240" width="912" height="186" rx="12" fill="#f8fafc" stroke="#e2e8f0" stroke-width="1.5"/>
80
+ <text x="44" y="266" class="heading" fill="#1e293b">2. RIPR diagnosis</text>
81
+ <text x="202" y="266" class="small" fill="#64748b">why a mutant survived</text>
82
+
83
+ <!-- Conventional row -->
84
+ <text x="44" y="305" class="label" fill="#495057">Conventional</text>
85
+ <rect x="164" y="284" width="92" height="34" rx="8" fill="#ffffff" stroke="#adb5bd" stroke-width="1.4"/>
86
+ <text x="210" y="305" text-anchor="middle" class="body" fill="#495057">Reach</text>
87
+ <line x1="256" y1="301" x2="292" y2="301" stroke="#64748b" stroke-width="1.5" marker-end="url(#arrow-gray)"/>
88
+
89
+ <rect x="298" y="284" width="280" height="34" rx="8" fill="#f1f3f5" stroke="#868e96" stroke-width="1.4" stroke-dasharray="5 3"/>
90
+ <text x="438" y="305" text-anchor="middle" class="body" fill="#64748b">Infect -&gt; Propagate -&gt; Reveal (black box)</text>
91
+ <line x1="578" y1="301" x2="618" y2="301" stroke="#64748b" stroke-width="1.5" marker-end="url(#arrow-gray)"/>
92
+
93
+ <rect x="624" y="284" width="288" height="34" rx="8" fill="#f8f9fa" stroke="#868e96" stroke-width="1.5"/>
94
+ <text x="768" y="305" text-anchor="middle" class="code" fill="#495057"><tspan font-weight="700">survived</tspan> (manual triage)</text>
95
+
96
+ <!-- Targeted row -->
97
+ <text x="44" y="376" class="label" fill="#5f3dc4">Targeted</text>
98
+ <rect x="164" y="355" width="92" height="34" rx="8" fill="#e7f5ff" stroke="#1971c2" stroke-width="1.4"/>
99
+ <text x="210" y="376" text-anchor="middle" class="body" fill="#1864ab">Reach</text>
100
+ <line x1="256" y1="372" x2="292" y2="372" stroke="#6741d9" stroke-width="1.5" marker-end="url(#arrow-purple)"/>
101
+
102
+ <rect x="298" y="350" width="144" height="44" rx="8" fill="#f3f0ff" stroke="#6741d9" stroke-width="1.6"/>
103
+ <text x="370" y="369" text-anchor="middle" class="label" fill="#5f3dc4">Operand Probe</text>
104
+ <text x="370" y="385" text-anchor="middle" class="small" fill="#3b2c68">Infect observed?</text>
105
+
106
+ <!-- Upper branch: INPUT GAP -->
107
+ <path d="M 442 362 L 472 362 L 472 348 L 618 348" fill="none" stroke="#e03131" stroke-width="1.6" marker-end="url(#arrow-red)"/>
108
+ <text x="545" y="342" text-anchor="middle" class="small" fill="#c92a2a" font-weight="700">No (agreed)</text>
109
+ <rect x="624" y="331" width="288" height="34" rx="8" fill="#fff5f5" stroke="#e03131" stroke-width="1.5"/>
110
+ <text x="768" y="352" text-anchor="middle" class="body" fill="#691b1b"><tspan class="label" fill="#c92a2a">INPUT GAP</tspan> · exact missing input</text>
111
+
112
+ <!-- Lower branch: ASSERTION GAP -->
113
+ <path d="M 442 382 L 472 382 L 472 396 L 618 396" fill="none" stroke="#d9480f" stroke-width="1.6" marker-end="url(#arrow-orange)"/>
114
+ <text x="545" y="390" text-anchor="middle" class="small" fill="#d9480f" font-weight="700">Yes in T, passed</text>
115
+ <rect x="624" y="379" width="288" height="34" rx="8" fill="#fff4e6" stroke="#d9480f" stroke-width="1.5"/>
116
+ <text x="768" y="400" text-anchor="middle" class="body" fill="#6e2b07"><tspan class="label" fill="#d9480f">ASSERTION GAP</tspan> · weak test T</text>
117
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targeted-mutation",
3
- "version": "0.2.3",
3
+ "version": "0.4.0",
4
4
  "description": "Find the tests a JavaScript or TypeScript suite is missing by trying small, targeted source edits against it.",
5
5
  "keywords": [
6
6
  "mutation-testing",
@@ -43,9 +43,9 @@
43
43
  "NOTICE"
44
44
  ],
45
45
  "optionalDependencies": {
46
- "@targeted-mutation/tmt-darwin-arm64": "0.2.3",
47
- "@targeted-mutation/tmt-darwin-x64": "0.2.3",
48
- "@targeted-mutation/tmt-linux-arm64": "0.2.3",
49
- "@targeted-mutation/tmt-linux-x64": "0.2.3"
46
+ "@targeted-mutation/tmt-darwin-arm64": "0.4.0",
47
+ "@targeted-mutation/tmt-darwin-x64": "0.4.0",
48
+ "@targeted-mutation/tmt-linux-arm64": "0.4.0",
49
+ "@targeted-mutation/tmt-linux-x64": "0.4.0"
50
50
  }
51
51
  }