interplane.Get Omega
Read in your language

spark-rsi-mv

Native Rust recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger

Brought by drakestapleton

branch main Branches Tags History

spark-rsi-mv / tests / fixtures / rsi_kv_cycle.evidence.json

605 lines · 16196 bytes Raw Blame History
1{
2 "format": "aien.explain.evidence-graph",
3 "version": 1,
4 "producer": "spark-rsi/explain",
5 "nodes": [
6 {
7 "id": "rsi:capability:kv_allocator",
8 "kind": 2,
9 "status": 1,
10 "statement": "'Unified LPDDR5x KV Allocator' (memory) has measured median latency 4200.0 us over 20 samples",
11 "source": {
12 "system": "spark-rsi",
13 "artifact": "CapabilityNode",
14 "reference": "kv_allocator"
15 },
16 "parents": [],
17 "measurements": [
18 {
19 "name": "latency_median_us",
20 "value": "4200.000",
21 "unit": "us"
22 },
23 {
24 "name": "sample_count",
25 "value": "20",
26 "unit": ""
27 },
28 {
29 "name": "error_rate_measured",
30 "value": "0.080000",
31 "unit": "fraction"
32 },
33 {
34 "name": "latency_p95_us_measured",
35 "value": "5100.000",
36 "unit": "us"
37 }
38 ],
39 "missing": [],
40 "notes": []
41 },
42 {
43 "id": "rsi:capability:mojo_kernel",
44 "kind": 2,
45 "status": 1,
46 "statement": "'Mojo Blackwell GEMM Kernel' (compute) has measured median latency 1800.0 us over 5 samples",
47 "source": {
48 "system": "spark-rsi",
49 "artifact": "CapabilityNode",
50 "reference": "mojo_kernel"
51 },
52 "parents": [],
53 "measurements": [
54 {
55 "name": "latency_median_us",
56 "value": "1800.000",
57 "unit": "us"
58 },
59 {
60 "name": "sample_count",
61 "value": "5",
62 "unit": ""
63 },
64 {
65 "name": "error_rate_measured",
66 "value": "0.010000",
67 "unit": "fraction"
68 }
69 ],
70 "missing": [
71 {
72 "expected": "measured p95 latency of stage 'Mojo Blackwell GEMM Kernel'",
73 "reason": "p95 is unavailable: too few valid compatible samples"
74 }
75 ],
76 "notes": []
77 },
78 {
79 "id": "rsi:capability:req_gateway",
80 "kind": 2,
81 "status": 1,
82 "statement": "'Request Gateway' (network) has measured median latency 120.0 us over 5 samples",
83 "source": {
84 "system": "spark-rsi",
85 "artifact": "CapabilityNode",
86 "reference": "req_gateway"
87 },
88 "parents": [],
89 "measurements": [
90 {
91 "name": "latency_median_us",
92 "value": "120.000",
93 "unit": "us"
94 },
95 {
96 "name": "sample_count",
97 "value": "5",
98 "unit": ""
99 },
100 {
101 "name": "error_rate_measured",
102 "value": "0.000000",
103 "unit": "fraction"
104 }
105 ],
106 "missing": [
107 {
108 "expected": "measured p95 latency of stage 'Request Gateway'",
109 "reason": "p95 is unavailable: too few valid compatible samples"
110 }
111 ],
112 "notes": []
113 },
114 {
115 "id": "rsi:capability:sampler",
116 "kind": 2,
117 "status": 1,
118 "statement": "'Greedy Token Sampler' (inference) has measured median latency 150.0 us over 5 samples",
119 "source": {
120 "system": "spark-rsi",
121 "artifact": "CapabilityNode",
122 "reference": "sampler"
123 },
124 "parents": [],
125 "measurements": [
126 {
127 "name": "latency_median_us",
128 "value": "150.000",
129 "unit": "us"
130 },
131 {
132 "name": "sample_count",
133 "value": "5",
134 "unit": ""
135 },
136 {
137 "name": "error_rate_measured",
138 "value": "0.000000",
139 "unit": "fraction"
140 }
141 ],
142 "missing": [
143 {
144 "expected": "measured p95 latency of stage 'Greedy Token Sampler'",
145 "reason": "p95 is unavailable: too few valid compatible samples"
146 }
147 ],
148 "notes": []
149 },
150 {
151 "id": "rsi:capability:scheduler",
152 "kind": 2,
153 "status": 1,
154 "statement": "'Batch Scheduler' (scheduling) has measured median latency 340.0 us over 5 samples",
155 "source": {
156 "system": "spark-rsi",
157 "artifact": "CapabilityNode",
158 "reference": "scheduler"
159 },
160 "parents": [],
161 "measurements": [
162 {
163 "name": "latency_median_us",
164 "value": "340.000",
165 "unit": "us"
166 },
167 {
168 "name": "sample_count",
169 "value": "5",
170 "unit": ""
171 },
172 {
173 "name": "error_rate_measured",
174 "value": "0.000000",
175 "unit": "fraction"
176 }
177 ],
178 "missing": [
179 {
180 "expected": "measured p95 latency of stage 'Batch Scheduler'",
181 "reason": "p95 is unavailable: too few valid compatible samples"
182 }
183 ],
184 "notes": []
185 },
186 {
187 "id": "rsi:bottleneck:cycle-kv-0001",
188 "kind": 3,
189 "status": 3,
190 "statement": "The capability graph ranks 'Unified LPDDR5x KV Allocator' (memory) as bottleneck #1 of 5 (Centrality=0.333, LatencyRatio=3.18x (median), ErrorRate=8.0%)",
191 "source": {
192 "system": "spark-rsi",
193 "artifact": "BottleneckRank",
194 "reference": "kv_allocator"
195 },
196 "parents": [
197 {
198 "to": "rsi:capability:kv_allocator",
199 "relation": 1
200 },
201 {
202 "to": "rsi:capability:mojo_kernel",
203 "relation": 1
204 },
205 {
206 "to": "rsi:capability:req_gateway",
207 "relation": 1
208 },
209 {
210 "to": "rsi:capability:sampler",
211 "relation": 1
212 },
213 {
214 "to": "rsi:capability:scheduler",
215 "relation": 1
216 }
217 ],
218 "measurements": [
219 {
220 "name": "bottleneck_score",
221 "value": "1.4841",
222 "unit": ""
223 },
224 {
225 "name": "centrality",
226 "value": "0.3333",
227 "unit": ""
228 },
229 {
230 "name": "ranking_basis",
231 "value": "measured",
232 "unit": ""
233 },
234 {
235 "name": "latency_median_us",
236 "value": "4200.000",
237 "unit": "us"
238 }
239 ],
240 "missing": [],
241 "notes": [
242 "ranking computed by CapabilityGraph::rank_bottlenecks"
243 ]
244 },
245 {
246 "id": "rsi:alternative:cycle-kv-0001:mojo_kernel",
247 "kind": 13,
248 "status": 3,
249 "statement": "Alternative bottleneck candidate #2: 'Mojo Blackwell GEMM Kernel' (compute), score 0.6546",
250 "source": {
251 "system": "spark-rsi",
252 "artifact": "BottleneckRank",
253 "reference": "mojo_kernel"
254 },
255 "parents": [
256 {
257 "to": "rsi:bottleneck:cycle-kv-0001",
258 "relation": 5
259 }
260 ],
261 "measurements": [
262 {
263 "name": "bottleneck_score",
264 "value": "0.6546",
265 "unit": ""
266 }
267 ],
268 "missing": [],
269 "notes": []
270 },
271 {
272 "id": "rsi:alternative:cycle-kv-0001:scheduler",
273 "kind": 13,
274 "status": 3,
275 "statement": "Alternative bottleneck candidate #3: 'Batch Scheduler' (scheduling), score 0.2029",
276 "source": {
277 "system": "spark-rsi",
278 "artifact": "BottleneckRank",
279 "reference": "scheduler"
280 },
281 "parents": [
282 {
283 "to": "rsi:bottleneck:cycle-kv-0001",
284 "relation": 5
285 }
286 ],
287 "measurements": [
288 {
289 "name": "bottleneck_score",
290 "value": "0.2029",
291 "unit": ""
292 }
293 ],
294 "missing": [],
295 "notes": []
296 },
297 {
298 "id": "rsi:alternative:cycle-kv-0001:sampler",
299 "kind": 13,
300 "status": 3,
301 "statement": "Alternative bottleneck candidate #4: 'Greedy Token Sampler' (inference), score 0.0454",
302 "source": {
303 "system": "spark-rsi",
304 "artifact": "BottleneckRank",
305 "reference": "sampler"
306 },
307 "parents": [
308 {
309 "to": "rsi:bottleneck:cycle-kv-0001",
310 "relation": 5
311 }
312 ],
313 "measurements": [
314 {
315 "name": "bottleneck_score",
316 "value": "0.0454",
317 "unit": ""
318 }
319 ],
320 "missing": [],
321 "notes": []
322 },
323 {
324 "id": "rsi:hypothesis:hypo-kv-0001",
325 "kind": 5,
326 "status": 4,
327 "statement": "Suspected root cause: High latency on 'Unified LPDDR5x KV Allocator': Centrality=0.333, LatencyRatio=3.18x (median), ErrorRate=8.0%. Observed problem: System throughput limited by bottleneck node 'Unified LPDDR5x KV Allocator' (centrality=0.3333)",
328 "source": {
329 "system": "spark-rsi",
330 "artifact": "HypothesisContract",
331 "reference": "hypo-kv-0001"
332 },
333 "confidence_permille": 850,
334 "confidence_basis": "declared in the HypothesisContract, not measured",
335 "parents": [
336 {
337 "to": "rsi:bottleneck:cycle-kv-0001",
338 "relation": 6
339 }
340 ],
341 "measurements": [],
342 "missing": [
343 {
344 "expected": "a recorded reference from the hypothesis to the bottleneck ranking",
345 "reason": "linked only because the hypothesis text names 'Unified LPDDR5x KV Allocator' and its baseline equals that bottleneck's p95 latency"
346 }
347 ],
348 "notes": []
349 },
350 {
351 "id": "rsi:hypothesis:hypo-kv-0001:prediction",
352 "kind": 6,
353 "status": 4,
354 "statement": "Predicts latency_median_us improves by 5.0% from baseline 4200.000",
355 "source": {
356 "system": "spark-rsi",
357 "artifact": "HypothesisContract",
358 "reference": "hypo-kv-0001"
359 },
360 "parents": [
361 {
362 "to": "rsi:hypothesis:hypo-kv-0001",
363 "relation": 3
364 }
365 ],
366 "measurements": [
367 {
368 "name": "target_metric",
369 "value": "latency_median_us",
370 "unit": ""
371 },
372 {
373 "name": "baseline_value",
374 "value": "4200.000",
375 "unit": ""
376 },
377 {
378 "name": "predicted_delta_pct",
379 "value": "5.000",
380 "unit": "%"
381 }
382 ],
383 "missing": [],
384 "notes": []
385 },
386 {
387 "id": "rsi:hypothesis:hypo-kv-0001:falsification",
388 "kind": 7,
389 "status": 4,
390 "statement": "Refuted if this check fails: assert!(receipt.passed_all_hard_invariants). Protected metrics: p95_latency may degrade at most 1.0%; p99_latency may degrade at most 1.0%; max_rss_kb may degrade at most 2.0%; correctness may degrade at most 0.0%",
391 "source": {
392 "system": "spark-rsi",
393 "artifact": "HypothesisContract",
394 "reference": "hypo-kv-0001"
395 },
396 "parents": [
397 {
398 "to": "rsi:hypothesis:hypo-kv-0001",
399 "relation": 3
400 }
401 ],
402 "measurements": [
403 {
404 "name": "protected.p95_latency.max_degradation_pct",
405 "value": "1.000",
406 "unit": "%"
407 },
408 {
409 "name": "protected.p99_latency.max_degradation_pct",
410 "value": "1.000",
411 "unit": "%"
412 },
413 {
414 "name": "protected.max_rss_kb.max_degradation_pct",
415 "value": "2.000",
416 "unit": "%"
417 },
418 {
419 "name": "protected.correctness.max_degradation_pct",
420 "value": "0.000",
421 "unit": "%"
422 }
423 ],
424 "missing": [],
425 "notes": []
426 },
427 {
428 "id": "rsi:diagnostic:cycle-kv-0001",
429 "kind": 4,
430 "status": 3,
431 "statement": "Diagnosis for src/kv_allocator.rs: primary defect PerformanceRegression; Bottleneck identified at Unified LPDDR5x KV Allocator",
432 "source": {
433 "system": "spark-rsi",
434 "artifact": "DiagnosticContext",
435 "reference": "cycle-kv-0001"
436 },
437 "parents": [
438 {
439 "to": "rsi:hypothesis:hypo-kv-0001",
440 "relation": 1
441 }
442 ],
443 "measurements": [],
444 "missing": [],
445 "notes": [
446 "1 recalled lesson(s) from the outside memory service were left out: they are free text, not evidence"
447 ]
448 },
449 {
450 "id": "rsi:receipt:cycle-kv-0001:cand-kv-0001",
451 "kind": 8,
452 "status": 2,
453 "statement": "Evaluation of candidate cand-kv-0001 (parent parent): admitted=true, 2 evaluation layer result(s)",
454 "source": {
455 "system": "spark-rsi",
456 "artifact": "EvaluationReceipt",
457 "reference": "cand-kv-0001",
458 "digest": "c0cae9f3e257ef2f7b46f5cd3770f9fe1c21f8b6dfb2ee2e2449714b0c7e99d0"
459 },
460 "parents": [],
461 "measurements": [
462 {
463 "name": "layer.Correctness.passed",
464 "value": "true",
465 "unit": ""
466 },
467 {
468 "name": "layer.Correctness.score",
469 "value": "1.0000",
470 "unit": ""
471 },
472 {
473 "name": "layer.Performance.passed",
474 "value": "true",
475 "unit": ""
476 },
477 {
478 "name": "layer.Performance.score",
479 "value": "0.8200",
480 "unit": ""
481 }
482 ],
483 "missing": [],
484 "notes": [
485 "receipt is unsigned"
486 ]
487 },
488 {
489 "id": "rsi:receipt:cycle-kv-0001:cand-kv-0001:summary",
490 "kind": 8,
491 "status": 0,
492 "statement": "The evaluator reports: hard invariants passed=true, statistical gates passed=true",
493 "source": {
494 "system": "spark-rsi",
495 "artifact": "EvaluationReceipt",
496 "reference": "cand-kv-0001"
497 },
498 "parents": [
499 {
500 "to": "rsi:receipt:cycle-kv-0001:cand-kv-0001",
501 "relation": 3
502 }
503 ],
504 "measurements": [
505 {
506 "name": "latency_delta_pct",
507 "value": "-17.500",
508 "unit": "%"
509 },
510 {
511 "name": "p_value",
512 "value": "0.004000",
513 "unit": ""
514 },
515 {
516 "name": "p95_ci_upper_degradation_pct",
517 "value": "-9.000",
518 "unit": "%"
519 },
520 {
521 "name": "p99_ci_upper_degradation_pct",
522 "value": "-4.000",
523 "unit": "%"
524 },
525 {
526 "name": "rss_growth_pct",
527 "value": "0.500",
528 "unit": "%"
529 }
530 ],
531 "missing": [],
532 "notes": [
533 "these fields are not covered by the receipt digest, so they are reported, not verified"
534 ]
535 },
536 {
537 "id": "rsi:ratification:cand-kv-0001",
538 "kind": 9,
539 "status": 1,
540 "statement": "Ratification record for proposal cand-kv-0001: status Ratified (test record)",
541 "source": {
542 "system": "spark-rsi",
543 "artifact": "RatificationRecord",
544 "reference": "cand-kv-0001"
545 },
546 "parents": [
547 {
548 "to": "rsi:receipt:cycle-kv-0001:cand-kv-0001",
549 "relation": 1
550 }
551 ],
552 "measurements": [],
553 "missing": [],
554 "notes": []
555 },
556 {
557 "id": "rsi:conclusion:cycle-kv-0001",
558 "kind": 12,
559 "status": 3,
560 "statement": "RSI proposes changing src/kv_allocator.rs to address PerformanceRegression (cycle cycle-kv-0001)",
561 "source": {
562 "system": "spark-rsi",
563 "artifact": "RsiCycle",
564 "reference": "cycle-kv-0001"
565 },
566 "parents": [
567 {
568 "to": "rsi:diagnostic:cycle-kv-0001",
569 "relation": 1
570 },
571 {
572 "to": "rsi:hypothesis:hypo-kv-0001:prediction",
573 "relation": 1
574 },
575 {
576 "to": "rsi:hypothesis:hypo-kv-0001:falsification",
577 "relation": 1
578 },
579 {
580 "to": "rsi:receipt:cycle-kv-0001:cand-kv-0001",
581 "relation": 1
582 },
583 {
584 "to": "rsi:receipt:cycle-kv-0001:cand-kv-0001:summary",
585 "relation": 1
586 },
587 {
588 "to": "rsi:ratification:cand-kv-0001",
589 "relation": 1
590 }
591 ],
592 "measurements": [],
593 "missing": [
594 {
595 "expected": "an artifact linking candidate cand-kv-0001 to hypothesis hypo-kv-0001",
596 "reason": "both belong to cycle cycle-kv-0001, but no RSI artifact records that the candidate was generated from this hypothesis, so the evaluation is not shown as testing it"
597 }
598 ],
599 "notes": [
600 "this explanation is observational; it does not authorize promotion or any change"
601 ]
602 }
603 ],
604 "truncated_at": []
605}