@clear-capabilities/agentic-security-scanner 0.172.1 → 0.174.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.
Files changed (201) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/bin/agentic-security.js +37 -0
  3. package/dist/119.index.js +197 -0
  4. package/dist/128.index.js +129 -0
  5. package/dist/1293.index.js +5689 -0
  6. package/dist/1351.index.js +133 -0
  7. package/dist/1387.index.js +271 -0
  8. package/dist/1437.index.js +23 -0
  9. package/dist/1445.index.js +110 -0
  10. package/dist/1505.index.js +151 -0
  11. package/dist/1557.index.js +293 -0
  12. package/dist/1621.index.js +311 -0
  13. package/dist/1751.index.js +160 -0
  14. package/dist/1765.index.js +727 -0
  15. package/dist/1861.index.js +690 -0
  16. package/dist/1898.index.js +116 -0
  17. package/dist/1906.index.js +433 -0
  18. package/dist/1920.index.js +1 -291
  19. package/dist/208.index.js +1631 -0
  20. package/dist/2199.index.js +0 -239
  21. package/dist/2223.index.js +159 -0
  22. package/dist/2530.index.js +152 -0
  23. package/dist/2565.index.js +116 -0
  24. package/dist/2574.index.js +127 -0
  25. package/dist/2620.index.js +345 -0
  26. package/dist/2773.index.js +98 -0
  27. package/dist/2775.index.js +32 -0
  28. package/dist/2966.index.js +171 -0
  29. package/dist/2972.index.js +87 -0
  30. package/dist/2991.index.js +131 -0
  31. package/dist/3063.index.js +833 -0
  32. package/dist/3075.index.js +227 -0
  33. package/dist/3121.index.js +297 -0
  34. package/dist/3314.index.js +263 -0
  35. package/dist/3480.index.js +1822 -0
  36. package/dist/3481.index.js +24 -0
  37. package/dist/3506.index.js +268 -0
  38. package/dist/3533.index.js +591 -0
  39. package/dist/3653.index.js +450 -0
  40. package/dist/3822.index.js +131 -0
  41. package/dist/3868.index.js +292 -0
  42. package/dist/3917.index.js +152 -0
  43. package/dist/3918.index.js +192 -0
  44. package/dist/4090.index.js +288 -0
  45. package/dist/4121.index.js +1190 -0
  46. package/dist/4142.index.js +0 -239
  47. package/dist/4336.index.js +436 -0
  48. package/dist/4387.index.js +532 -0
  49. package/dist/4413.index.js +302 -0
  50. package/dist/4476.index.js +4510 -0
  51. package/dist/4491.index.js +133 -0
  52. package/dist/4538.index.js +185 -0
  53. package/dist/4684.index.js +319 -0
  54. package/dist/4740.index.js +165 -0
  55. package/dist/4780.index.js +209 -0
  56. package/dist/4802.index.js +225 -0
  57. package/dist/4812.index.js +379 -0
  58. package/dist/4835.index.js +126 -0
  59. package/dist/494.index.js +226 -0
  60. package/dist/4991.index.js +549 -0
  61. package/dist/5199.index.js +305 -0
  62. package/dist/5216.index.js +109 -0
  63. package/dist/5439.index.js +301 -0
  64. package/dist/5443.index.js +97 -0
  65. package/dist/5496.index.js +377 -0
  66. package/dist/550.index.js +2 -1
  67. package/dist/5801.index.js +588 -0
  68. package/dist/5858.index.js +223 -0
  69. package/dist/5933.index.js +143 -0
  70. package/dist/601.index.js +23 -0
  71. package/dist/6173.index.js +273 -0
  72. package/dist/6291.index.js +1871 -0
  73. package/dist/6312.index.js +666 -0
  74. package/dist/634.index.js +16182 -0
  75. package/dist/644.index.js +87 -0
  76. package/dist/6508.index.js +283 -0
  77. package/dist/6560.index.js +645 -0
  78. package/dist/6576.index.js +422 -0
  79. package/dist/6579.index.js +271 -0
  80. package/dist/6745.index.js +305 -0
  81. package/dist/6818.index.js +21642 -0
  82. package/dist/6972.index.js +167 -0
  83. package/dist/6995.index.js +163 -0
  84. package/dist/7249.index.js +191 -0
  85. package/dist/7372.index.js +1197 -0
  86. package/dist/7546.index.js +541 -0
  87. package/dist/76.index.js +448 -0
  88. package/dist/7879.index.js +163 -0
  89. package/dist/8025.index.js +130 -0
  90. package/dist/8054.index.js +248 -0
  91. package/dist/8097.index.js +201 -0
  92. package/dist/8126.index.js +191 -0
  93. package/dist/8178.index.js +78 -0
  94. package/dist/818.index.js +212 -0
  95. package/dist/8382.index.js +93 -0
  96. package/dist/8408.index.js +261 -0
  97. package/dist/8540.index.js +174 -0
  98. package/dist/8635.index.js +802 -0
  99. package/dist/8688.index.js +410 -0
  100. package/dist/8699.index.js +779 -0
  101. package/dist/8891.index.js +457 -0
  102. package/dist/8916.index.js +885 -0
  103. package/dist/9146.index.js +170 -0
  104. package/dist/9168.index.js +841 -0
  105. package/dist/9292.index.js +369 -0
  106. package/dist/9382.index.js +135 -11
  107. package/dist/9422.index.js +866 -0
  108. package/dist/9440.index.js +453 -0
  109. package/dist/9479.index.js +152 -0
  110. package/dist/9481.index.js +220 -0
  111. package/dist/9539.index.js +100 -0
  112. package/dist/9547.index.js +103 -0
  113. package/dist/9560.index.js +41 -61
  114. package/dist/9692.index.js +90 -0
  115. package/dist/9800.index.js +213 -1
  116. package/dist/9899.index.js +138 -0
  117. package/dist/9981.index.js +206 -0
  118. package/dist/999.index.js +117 -0
  119. package/dist/agentic-security.mjs +27 -27
  120. package/dist/agentic-security.mjs.sha256 +1 -1
  121. package/package.json +31 -6
  122. package/src/context-intelligence/candidates.js +2 -1
  123. package/src/context-intelligence/capabilities.js +2 -1
  124. package/src/context-intelligence/cli.js +2 -0
  125. package/src/context-intelligence/config.js +3 -1
  126. package/src/context-intelligence/controls.js +49 -1
  127. package/src/context-intelligence/counterexample.js +200 -0
  128. package/src/context-intelligence/cross-route.js +111 -0
  129. package/src/context-intelligence/findings.js +166 -0
  130. package/src/context-intelligence/invariants.js +197 -0
  131. package/src/context-intelligence/queue.js +6 -1
  132. package/src/context-intelligence/reachability.js +2 -2
  133. package/src/context-intelligence/review.js +68 -4
  134. package/src/dataflow/access-paths.js +11 -0
  135. package/src/dataflow/analysis-limits.js +66 -0
  136. package/src/dataflow/engine.js +282 -24
  137. package/src/dataflow/service-edges.js +174 -0
  138. package/src/dataflow/summaries.js +7 -1
  139. package/src/discovery/judge.js +2 -1
  140. package/src/engine.js +82 -14
  141. package/src/fix/apply-fix-service.js +55 -8
  142. package/src/fix/batch-journal.js +84 -0
  143. package/src/fix/exploit-replay.js +51 -0
  144. package/src/fix/footprint.js +65 -0
  145. package/src/fix/patch-policy.js +49 -0
  146. package/src/fix/secret-persistence.js +39 -0
  147. package/src/fix/test-commands.js +84 -0
  148. package/src/fix/verification-adapters.js +97 -0
  149. package/src/fix/verification-record.js +243 -0
  150. package/src/fix/verify-patch.js +89 -0
  151. package/src/ir/CLAUDE.md +5 -0
  152. package/src/ir/callgraph.js +23 -1
  153. package/src/ir/module-resolver.js +315 -0
  154. package/src/ir/parser-js.js +21 -2
  155. package/src/ir/semantic-graph.js +245 -0
  156. package/src/language/haskell-findings.js +2 -0
  157. package/src/language/haskell-guards.js +1 -1
  158. package/src/language/haskell-ir.js +3 -1
  159. package/src/language/haskell-models.js +94 -0
  160. package/src/language/haskell-security-rules.js +20 -0
  161. package/src/language/nixos-hardening.js +72 -0
  162. package/src/lineage/build-attested-correlation.js +63 -0
  163. package/src/lineage/deployment-identity.js +76 -0
  164. package/src/mcp/tools.js +13 -34
  165. package/src/pipeline/canonical-output.js +64 -0
  166. package/src/pipeline/detector-runner.js +7 -0
  167. package/src/pipeline/scan-health.js +14 -0
  168. package/src/pipeline/supervised-analyzers.js +125 -0
  169. package/src/pipeline/supervised-child.js +17 -0
  170. package/src/pipeline/telemetry.js +79 -0
  171. package/src/posture/accuracy-scorecard.js +98 -9
  172. package/src/posture/artifact-registry.js +5 -0
  173. package/src/posture/assurance/evidence-registry.js +215 -0
  174. package/src/posture/assurance/release-package-verify.js +135 -0
  175. package/src/posture/assurance/release-package.js +118 -0
  176. package/src/posture/assurance/release-verdict.js +94 -0
  177. package/src/posture/assurance/waiver.js +200 -0
  178. package/src/posture/compliance-truth.js +100 -0
  179. package/src/posture/evaluation/scan-child.js +3 -1
  180. package/src/posture/evaluation/why-missed.js +3 -1
  181. package/src/posture/exploitability-evidence.js +141 -0
  182. package/src/posture/fix-verify.js +4 -2
  183. package/src/posture/fleet/exposure-ranking.js +115 -0
  184. package/src/posture/fleet/service-chain-graph.js +150 -0
  185. package/src/posture/graph-reconciliation.js +154 -0
  186. package/src/posture/provenance/coverage.js +103 -0
  187. package/src/posture/provenance/git-evidence.js +84 -0
  188. package/src/posture/provenance/origin-resolver.js +7 -1
  189. package/src/posture/provenance/predicate-replay.js +14 -4
  190. package/src/posture/runtime-correlation.js +61 -15
  191. package/src/posture/runtime-explanation.js +116 -0
  192. package/src/posture/runtime-trace-ingest.js +194 -0
  193. package/src/posture/scan-checkpoint.js +38 -10
  194. package/src/posture/waf-ingest.js +7 -2
  195. package/src/report/index.js +4 -0
  196. package/src/report/oscal.js +38 -0
  197. package/src/report/perspectives.js +150 -0
  198. package/src/sast/_comment-strip.js +8 -1
  199. package/src/sast/ruby.js +26 -0
  200. package/src/sast/zip-slip.js +79 -0
  201. package/src/util/string-memo.js +38 -0
@@ -1,297 +1,7 @@
1
1
  export const id = 1920;
2
- export const ids = [1920,2238];
2
+ export const ids = [1920];
3
3
  export const modules = {
4
4
 
5
- /***/ 32238:
6
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7
-
8
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
- /* harmony export */ I3: () => (/* binding */ recordFixAttempt),
10
- /* harmony export */ fixDurationReport: () => (/* binding */ fixDurationReport),
11
- /* harmony export */ renderFixDurationSummary: () => (/* binding */ renderFixDurationSummary),
12
- /* harmony export */ sU: () => (/* binding */ loadFixAttempts)
13
- /* harmony export */ });
14
- /* unused harmony exports FIX_STAGES, bucketOf, summarizeFixDurations, _internals, summarizeFixAxes, renderFixAxes */
15
- /* harmony import */ var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73024);
16
- /* harmony import */ var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76760);
17
- /* harmony import */ var _state_dir_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31174);
18
- // Time-to-validated-fix (R5, the reporting half).
19
- //
20
- // `verifyFix` already RUNS the stages and `test-runner.js` already times the
21
- // slowest one. What did not exist was anything durable to read afterwards, so
22
- // "how long does a fix actually take to validate" had no answer from real runs
23
- // — only an estimate (`time-to-fix.js` guesses engineering hours from family
24
- // and patch shape, before anything runs). This module is the opposite: it
25
- // records what the pipeline observed and reports the distribution.
26
- //
27
- // THE HONESTY RULES, which are most of why this file is longer than a mean:
28
- //
29
- // 1. A failed attempt is NOT a data point about how long a fix takes. Fixes
30
- // that fail verification fail fast (a re-scan that still sees the finding
31
- // never reaches the test suite), so blending them into one average makes
32
- // the pipeline look faster the worse it performs. Validated and failed
33
- // attempts are summarised separately and never merged.
34
- //
35
- // 2. "Tests skipped" is not "tests passed". A project with no detectable
36
- // suite can reach `ok:true` having run only the re-scan and the linter.
37
- // That is a weaker claim than a fix whose suite executed, and it is also
38
- // much faster, so counting the two together would quietly deflate the
39
- // headline. They get their own bucket: `validated` means the suite ran and
40
- // passed, `validatedWithoutTests` means there was no suite to run.
41
- //
42
- // 3. Every figure carries its `n`, and a percentile computed from too few
43
- // samples is labelled unreliable rather than omitted or silently reported.
44
- // Same precedent as the accuracy scorecard's `{n, d}` rates: a number
45
- // without its denominator is not a measurement.
46
- //
47
- // Storage is append-only JSONL at `<scanRoot>/.agentic-security/fix-metrics.jsonl`,
48
- // one record per verification attempt. Nothing here throws (posture
49
- // convention) — an unwritable or corrupt log degrades to "no metrics", never
50
- // to a failed verification.
51
-
52
-
53
-
54
-
55
-
56
- const LOG_FILE = 'fix-metrics.jsonl';
57
-
58
- // Below this many samples a percentile is an artifact of the sample, not a
59
- // property of the pipeline. Reported anyway (hiding it invites re-deriving it
60
- // wrong downstream) but flagged, so a caller cannot quote it as settled.
61
- const RELIABLE_N = 10;
62
-
63
- // The stages verifyFix runs, in execution order. Kept here so the recorder and
64
- // the summariser cannot drift apart on stage naming.
65
- const FIX_STAGES = Object.freeze(['rescan', 'lint', 'tests', 'honesty', 'poc']);
66
-
67
- function _logPath(scanRoot) {
68
- return (0,_state_dir_js__WEBPACK_IMPORTED_MODULE_2__.statePath)(scanRoot, LOG_FILE);
69
- }
70
-
71
- /**
72
- * Append one verification attempt. Best-effort and silent on failure: metrics
73
- * must never be able to fail a fix that otherwise verified.
74
- *
75
- * @returns {boolean} whether the record was written (for tests, not callers).
76
- */
77
- function recordFixAttempt(scanRoot, record) {
78
- if (!scanRoot || !record || typeof record !== 'object') return false;
79
- try {
80
- const dir = (0,_state_dir_js__WEBPACK_IMPORTED_MODULE_2__/* .stateDir */ .Pn)(scanRoot);
81
- if (!(0,_state_dir_js__WEBPACK_IMPORTED_MODULE_2__.isSafeStateDir)(dir)) return false;
82
- if (!(0,_state_dir_js__WEBPACK_IMPORTED_MODULE_2__.stateWritesEnabled)()) return false;
83
- node_fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(dir, { recursive: true });
84
- // One writeSync of one newline-terminated line: a concurrent reader sees
85
- // whole records or nothing, and a torn tail is dropped on read.
86
- node_fs__WEBPACK_IMPORTED_MODULE_0__.appendFileSync(_logPath(scanRoot), JSON.stringify(record) + '\n', 'utf8');
87
- return true;
88
- } catch { return false; }
89
- }
90
-
91
- /**
92
- * Read every well-formed attempt. A line that does not parse is skipped, not
93
- * fatal — the last line of an interrupted write is the expected case.
94
- */
95
- function loadFixAttempts(scanRoot) {
96
- try {
97
- const raw = node_fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(_logPath(scanRoot), 'utf8');
98
- const out = [];
99
- for (const line of raw.split('\n')) {
100
- if (!line.trim()) continue;
101
- try {
102
- const rec = JSON.parse(line);
103
- if (rec && typeof rec === 'object' && typeof rec.totalMs === 'number') out.push(rec);
104
- } catch { /* torn or hand-edited line — drop it, keep the rest */ }
105
- }
106
- return out;
107
- } catch { return []; }
108
- }
109
-
110
- // Nearest-rank percentile over an ascending array. Nearest-rank rather than
111
- // interpolated because these are observed durations, and an interpolated p50
112
- // reports a duration that no run actually took.
113
- function _pct(sorted, p) {
114
- if (!sorted.length) return null;
115
- const rank = Math.ceil((p / 100) * sorted.length);
116
- return sorted[Math.min(sorted.length - 1, Math.max(0, rank - 1))];
117
- }
118
-
119
- function _dist(values) {
120
- const v = values.filter(x => typeof x === 'number' && Number.isFinite(x) && x >= 0).sort((a, b) => a - b);
121
- if (!v.length) return { n: 0, minMs: null, p50Ms: null, p90Ms: null, maxMs: null, meanMs: null, reliable: false };
122
- const sum = v.reduce((a, b) => a + b, 0);
123
- return {
124
- n: v.length,
125
- minMs: v[0],
126
- p50Ms: _pct(v, 50),
127
- p90Ms: _pct(v, 90),
128
- maxMs: v[v.length - 1],
129
- meanMs: Math.round(sum / v.length),
130
- // Says whether the percentiles above may be quoted, not whether the count
131
- // is real. n and min/max/mean are exact at any sample size.
132
- reliable: v.length >= RELIABLE_N,
133
- };
134
- }
135
-
136
- // Which bucket an attempt belongs to. Deliberately total: every attempt lands
137
- // in exactly one, so the bucket counts always sum to the attempt count and a
138
- // mis-shaped record cannot silently vanish from the denominator.
139
- function bucketOf(a) {
140
- if (!a?.ok) return 'failed';
141
- return a.testsRan ? 'validated' : 'validatedWithoutTests';
142
- }
143
-
144
- /**
145
- * Summarise a set of attempts into the reported distribution.
146
- *
147
- * `validated` is the headline: attempts that verified AND whose test suite
148
- * actually ran and passed. The other two buckets exist so that headline cannot
149
- * be inflated by counting weaker or faster outcomes inside it.
150
- */
151
- function summarizeFixDurations(attempts) {
152
- const all = Array.isArray(attempts) ? attempts : [];
153
- const buckets = { validated: [], validatedWithoutTests: [], failed: [] };
154
- for (const a of all) buckets[bucketOf(a)].push(a);
155
-
156
- const byStage = {};
157
- for (const stage of FIX_STAGES) {
158
- // Per-stage timings come from validated runs only. A stage's duration in a
159
- // failed run is truncated by the failure (the pipeline stops), so mixing
160
- // them in would understate every stage after the first failure point.
161
- byStage[stage] = _dist(buckets.validated.map(a => a?.stages?.[stage]));
162
- }
163
-
164
- return {
165
- attempts: all.length,
166
- counts: {
167
- validated: buckets.validated.length,
168
- validatedWithoutTests: buckets.validatedWithoutTests.length,
169
- failed: buckets.failed.length,
170
- },
171
- timeToValidatedFix: _dist(buckets.validated.map(a => a.totalMs)),
172
- timeToValidatedFixWithoutTests: _dist(buckets.validatedWithoutTests.map(a => a.totalMs)),
173
- timeToFailure: _dist(buckets.failed.map(a => a.totalMs)),
174
- byStage,
175
- reliableAtOrAbove: RELIABLE_N,
176
- };
177
- }
178
-
179
- /** Read + summarise in one step. */
180
- function fixDurationReport(scanRoot) {
181
- return summarizeFixDurations(loadFixAttempts(scanRoot));
182
- }
183
-
184
- function _ms(v) {
185
- if (v == null) return '—';
186
- return v >= 1000 ? `${(v / 1000).toFixed(1)}s` : `${v}ms`;
187
- }
188
-
189
- /**
190
- * One-paragraph human summary. Returns null when there is nothing measured —
191
- * callers print nothing rather than printing an empty table.
192
- */
193
- function renderFixDurationSummary(sum) {
194
- if (!sum || !sum.attempts) return null;
195
- const d = sum.timeToValidatedFix;
196
- const parts = [];
197
- if (d.n) {
198
- parts.push(
199
- `time-to-validated-fix: median ${_ms(d.p50Ms)}, p90 ${_ms(d.p90Ms)} `
200
- + `(n=${d.n}${d.reliable ? '' : `, below ${sum.reliableAtOrAbove} — percentiles not yet reliable`})`,
201
- );
202
- } else {
203
- parts.push('time-to-validated-fix: no fix has both verified and had its test suite run yet');
204
- }
205
- if (sum.counts.validatedWithoutTests) {
206
- parts.push(`${sum.counts.validatedWithoutTests} verified with no detectable test suite (excluded from the median above)`);
207
- }
208
- if (sum.counts.failed) {
209
- parts.push(`${sum.counts.failed} failed verification, median ${_ms(sum.timeToFailure.p50Ms)} (counted separately)`);
210
- }
211
- return parts.join('; ') + '.';
212
- }
213
-
214
- const _internals = { _dist, _pct, RELIABLE_N };
215
-
216
-
217
- // ── PRD F6.1 — score fixes on THREE AXES, not one ──────────────────────────
218
- //
219
- // The three axes the PRD names:
220
- // (a) does the finding disappear — the rescan leg
221
- // (b) does the project's own suite pass — the tests leg
222
- // (c) does an independent verifier agree — the PoC re-check leg
223
- //
224
- // All three were already computed by verifyFixCore and then collapsed into one
225
- // boolean, which is the problem: **(a) alone is satisfiable by deleting code.**
226
- // A patch that removes the vulnerable function passes the rescan, has nothing
227
- // left to fail, and — on a project with no detectable test suite — reaches
228
- // ok:true having proven only that the detector went quiet.
229
- //
230
- // Reporting the axes separately makes that visible. `aOnly` is the number that
231
- // matters most and the one nobody was publishing: attempts that satisfied ONLY
232
- // the disappearance axis. A high aOnly with a high headline is the shape of a
233
- // remediation feature that is deleting code and calling it a fix.
234
- function summarizeFixAxes(attempts) {
235
- const list = Array.isArray(attempts) ? attempts.filter(Boolean) : [];
236
- const d = list.length;
237
-
238
- const rate = (pred) => ({ n: list.filter(pred).length, d });
239
-
240
- // Each axis is judged INDEPENDENTLY of the overall verdict, so a leg that
241
- // passed inside a failed attempt still counts for its own axis. Reading them
242
- // off `ok` would make the three axes three copies of the same number.
243
- const findingDisappeared = rate((a) => a.rescanOk === true || (a.ok === true && a.rescanOk !== false));
244
- const testsStillPass = rate((a) => a.testsRan === true && a.testsOk !== false);
245
- const verifierAgrees = rate((a) => a.pocOk === true);
246
-
247
- const satisfiesAll = rate((a) =>
248
- (a.rescanOk === true || (a.ok === true && a.rescanOk !== false))
249
- && a.testsRan === true && a.testsOk !== false
250
- && a.pocOk === true);
251
-
252
- // The honesty number: disappearance WITHOUT either corroborating axis.
253
- const aOnly = rate((a) => {
254
- const disappeared = a.rescanOk === true || (a.ok === true && a.rescanOk !== false);
255
- const corroborated = (a.testsRan === true && a.testsOk !== false) || a.pocOk === true;
256
- return disappeared && !corroborated;
257
- });
258
-
259
- return {
260
- total: d,
261
- findingDisappeared,
262
- testsStillPass,
263
- verifierAgrees,
264
- satisfiesAll,
265
- aOnly,
266
- meaning:
267
- 'findingDisappeared = the detector went quiet; testsStillPass = the project suite ran AND passed; '
268
- + 'verifierAgrees = an independent PoC re-check confirmed the hole is shut. '
269
- + 'aOnly counts attempts that satisfied ONLY disappearance — the shape a code-deleting "fix" produces.',
270
- caveat: d === 0
271
- ? 'no attempts recorded; every rate is 0/0 and means nothing'
272
- : 'rates carry {n,d}; a small d is indicative, not settled',
273
- };
274
- }
275
-
276
- /** Markdown for a report. Denominators always attached. */
277
- function renderFixAxes(sum) {
278
- if (!sum || !sum.total) return '_No fix attempts recorded._\n';
279
- const row = (label, r, note) => `| ${label} | ${r.n}/${r.d} | ${note} |`;
280
- return [
281
- '| Axis | Rate | Meaning |',
282
- '|---|---|---|',
283
- row('(a) finding disappeared', sum.findingDisappeared, 'the detector went quiet'),
284
- row('(b) project tests pass', sum.testsStillPass, 'the suite RAN and passed'),
285
- row('(c) verifier agrees', sum.verifierAgrees, 'an independent PoC re-check confirmed it'),
286
- row('all three', sum.satisfiesAll, 'the only row that means "fixed"'),
287
- row('(a) ALONE', sum.aOnly, 'satisfiable by deleting code — watch this number'),
288
- '',
289
- ].join('\n');
290
- }
291
-
292
-
293
- /***/ }),
294
-
295
5
  /***/ 61920:
296
6
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
297
7