dsfb-database 0.1.1

DSFB-Database: deterministic, read-only structural observer for residual trajectories in SQL database telemetry. Empirical prior-art demonstration on Snowset, SQLShare, CEB, JOB, and TPC-DS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
{
  "_type": "https://in-toto.io/Statement/v1",
  "predicate": {
    "crate": {
      "artifactsInspected": 107,
      "filesScanned": 83,
      "name": "dsfb-database",
      "pathInVcs": "crates/dsfb-database",
      "root": "/home/one/dsfb/crates/dsfb-gray/target/scan-sources/dsfb-database-0.1.0",
      "sourceSha256": "12215cce94b8d8f588214407389121c8542028045665f74ef1e07b6dd9322be0",
      "vcsCommit": "3cbe6312134dc0ad1ef2f6adb3db1588cd0eecc6",
      "version": "0.1.0"
    },
    "generatedAtUtc": "2026-04-20T01:47:50.690251509Z",
    "guidanceSemantics": {
      "codeQualityGoal": true,
      "nonCertificationStatement": "DSFB findings may support internal review against standards-oriented expectations, but DSFB does not certify compliance with IEC, ISO, RTCA, MIL, NIST, or other standards.",
      "reviewReadinessGoal": true
    },
    "sarif": {
      "mediaType": "application/sarif+json",
      "resultCount": 21,
      "sha256": "ee45eb7dbffd316b1037608a9918d319bea676a3d6aab42ea03a0ae94da4210e"
    },
    "scanner": {
      "auditMode": "canonical-broad-audit",
      "name": "dsfb-gray",
      "recipe": [
        "heuristics-bank-default",
        "constrained-runtime-audit",
        "unsafe-panic-ffi-audit",
        "verification-audit",
        "lifecycle-audit",
        "nasa-power-of-ten-audit",
        "advanced-structural-audit"
      ],
      "recipeVersion": 1,
      "version": "0.1.0"
    },
    "summary": {
      "advancedStructural": {
        "clear": 15,
        "elevated": 8,
        "indeterminate": 0
      },
      "advisorySubscores": [
        {
          "basis": "Derived from safety surface, correctness-critical Power-of-Ten rules, and correctness-oriented structural checks.",
          "id": "correctness",
          "percent": 53.3,
          "title": "Correctness"
        },
        {
          "basis": "Derived from lifecycle/governance evidence, reviewability-oriented Power-of-Ten rules, and maintainability-heavy structural checks.",
          "id": "maintainability",
          "percent": 53.8,
          "title": "Maintainability"
        },
        {
          "basis": "Derived from async/concurrency structural checks and bounded-control-flow review signals.",
          "id": "concurrency_async",
          "percent": 50.0,
          "title": "Concurrency / Async"
        },
        {
          "basis": "Derived from runtime-allocation proxies, resource-lifecycle checks, and bounded-allocation / bounded-loop review rules.",
          "id": "resource_discipline",
          "percent": 36.7,
          "title": "Resource Discipline"
        },
        {
          "basis": "Derived from verification signals, build/tooling complexity, and analyzability-oriented Power-of-Ten rules.",
          "id": "verification_reviewability",
          "percent": 62.8,
          "title": "Verification / Reviewability"
        },
        {
          "basis": "Derived from the full locked rubric as a broad readiness-oriented advisory synthesis.",
          "id": "assurance_provenance",
          "percent": 63.9,
          "title": "Assurance / Provenance"
        }
      ],
      "auditScore": {
        "band": "mixed assurance posture",
        "earnedWeightedPoints": 58.9,
        "guideline": [
          "Method: weighted checkpoint scoring across Safety (15%), Verification (15%), Build/Tooling (10%), Lifecycle/Governance (10%), NASA/JPL Power of Ten (25%), and Advanced Structural Checks (25%).",
          "Checkpoint credit: pass/clear/applied = 1.0, indeterminate/partial = 0.5, elevated/not applied = 0.0.",
          "Fairness rule: raw motif counts do not linearly reduce the score; each checkpoint contributes once so large crates are not punished simply for having more code.",
          "Informational-only signals such as DSFB heuristic motif matches, hotspot counts, and capability flags like no_std/no_alloc are reported but excluded from the score denominator.",
          "Interpretation: this is a broad improvement and review-readiness score for source-visible controls and evidence, not a certification and not a measure of runtime correctness."
        ],
        "method": "dsfb-assurance-score-v1",
        "overallPercent": 58.9,
        "possibleWeightedPoints": 100.0,
        "sections": [
          {
            "checkpointCount": 5,
            "earnedCheckpoints": 3.0,
            "id": "safety",
            "sectionPercent": 60.0,
            "title": "Safety Surface",
            "weightPercent": 15.0,
            "weightedPoints": 9.0
          },
          {
            "checkpointCount": 5,
            "earnedCheckpoints": 4.0,
            "id": "verification",
            "sectionPercent": 80.0,
            "title": "Verification Evidence",
            "weightPercent": 15.0,
            "weightedPoints": 12.0
          },
          {
            "checkpointCount": 6,
            "earnedCheckpoints": 5.5,
            "id": "build",
            "sectionPercent": 91.7,
            "title": "Build / Tooling Complexity",
            "weightPercent": 10.0,
            "weightedPoints": 9.2
          },
          {
            "checkpointCount": 13,
            "earnedCheckpoints": 8.0,
            "id": "lifecycle",
            "sectionPercent": 61.5,
            "title": "Lifecycle / Governance",
            "weightPercent": 10.0,
            "weightedPoints": 6.2
          },
          {
            "checkpointCount": 10,
            "earnedCheckpoints": 2.5,
            "id": "nasa_power_of_ten",
            "sectionPercent": 25.0,
            "title": "NASA/JPL Power of Ten",
            "weightPercent": 25.0,
            "weightedPoints": 6.3
          },
          {
            "checkpointCount": 23,
            "earnedCheckpoints": 15.0,
            "id": "advanced_structural",
            "sectionPercent": 65.2,
            "title": "Advanced Structural Checks",
            "weightPercent": 25.0,
            "weightedPoints": 16.3
          }
        ]
      },
      "conclusionLenses": {
        "certificationPreparation": "For certification-oriented preparation, treat ITER-UNB, JPL-R9, NASA-CC, SAFE-STATE, TIME-WAIT as pre-review cleanup targets and evidence-organizing prompts rather than certification outcomes.",
        "complianceReadiness": "7 finding(s) directly affect analyzability, reproducibility, or review traceability. DSFB may support internal review against standards-oriented expectations, but it does not certify compliance.",
        "distributedOperational": "Operational pressure is most visible in ITER-UNB, P10-5, H-ALLOC-01, H-SERDE-01, H-THRU-01. These findings are the most likely to matter later in runtime replay, backpressure review, or production-style load investigation.",
        "rustMaintainer": "Use the 58.9% overall score as a broad code-improvement target, not a compliance or certification badge. The highest-value maintainer work is concentrated in JPL-R9, NASA-CC, SAFE-STATE, TIME-WAIT, JPL-R0."
      },
      "criticalityHotspots": [
        {
          "estimatedComplexity": 25,
          "function": "plot_live_real_pg",
          "line": 276,
          "path": "src/report/plots_live.rs",
          "riskScore": 36,
          "signals": [
            "complexity>15",
            "long-function"
          ]
        },
        {
          "estimatedComplexity": 16,
          "function": "load_generic_csv",
          "line": 79,
          "path": "src/adapters/generic_csv.rs",
          "riskScore": 33,
          "signals": [
            "complexity>15",
            "long-function",
            "unwrap"
          ]
        },
        {
          "estimatedComplexity": 18,
          "function": "load_otel_db_spans",
          "line": 94,
          "path": "src/adapters/otel.rs",
          "riskScore": 29,
          "signals": [
            "complexity>15",
            "long-function"
          ]
        },
        {
          "estimatedComplexity": 15,
          "function": "run_stress_sweep",
          "line": 638,
          "path": "src/main.rs",
          "riskScore": 26,
          "signals": [
            "long-function",
            "iter-unbounded"
          ]
        },
        {
          "estimatedComplexity": 8,
          "function": "live_loop_async",
          "line": 1443,
          "path": "src/main.rs",
          "riskScore": 25,
          "signals": [
            "long-function",
            "unwrap",
            "hard-coded-wait"
          ]
        },
        {
          "estimatedComplexity": 15,
          "function": "detect",
          "line": 72,
          "path": "src/baselines/bocpd.rs",
          "riskScore": 23,
          "signals": [
            "long-function"
          ]
        },
        {
          "estimatedComplexity": 15,
          "function": "plot_episode_summary_table",
          "line": 1028,
          "path": "src/report/plots.rs",
          "riskScore": 23,
          "signals": [
            "long-function"
          ]
        },
        {
          "estimatedComplexity": 12,
          "function": "discover_tapes",
          "line": 129,
          "path": "src/bin/baseline_tune.rs",
          "riskScore": 23,
          "signals": [
            "long-function",
            "iter-unbounded"
          ]
        }
      ],
      "findings": [
        {
          "category": "advanced-structural",
          "classification": "context-needed",
          "confidence": "high",
          "evidenceIds": [
            "ITER-UNB-01-ablation-sweep-59",
            "ITER-UNB-02-ablation-sweep-219",
            "ITER-UNB-03-baseline-bake-off-54",
            "ITER-UNB-04-baseline-tune-163"
          ],
          "id": "ITER-UNB",
          "impactKind": "resource discipline",
          "remediation": "Add `.take(...)`, explicit bounds, or documented finite-source guarantees on terminal iterator consumption.",
          "status": "elevated",
          "title": "Unbounded iterator terminal-consumption audit",
          "verificationSuggestion": "Add a bound, trusted finite-source proof, or regression test that demonstrates the iterator cannot grow without limit."
        },
        {
          "category": "advanced-structural",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "JPL-R9-01-generic-csv-154",
            "JPL-R9-02-baseline-bake-off-89",
            "JPL-R9-03-null-trace-235",
            "JPL-R9-04-null-trace-278"
          ],
          "id": "JPL-R9",
          "impactKind": "maintainability",
          "remediation": "Review the finding against the emitted evidence and either tighten the local structure or document the local invariant.",
          "status": "elevated",
          "title": "Unchecked extraction / dereference safety audit",
          "verificationSuggestion": "Use the evidence block to write the smallest targeted regression or review note that proves the intended invariant."
        },
        {
          "category": "advanced-structural",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "NASA-CC-01-plots-live-276",
            "NASA-CC-02-otel-94",
            "NASA-CC-03-generic-csv-79",
            "NASA-CC-04-main-638"
          ],
          "id": "NASA-CC",
          "impactKind": "maintainability",
          "remediation": "Review the finding against the emitted evidence and either tighten the local structure or document the local invariant.",
          "status": "elevated",
          "title": "Cyclomatic complexity hotspot audit (NASA SWE-220 proxy)",
          "verificationSuggestion": "Use the evidence block to write the smallest targeted regression or review note that proves the intended invariant."
        },
        {
          "category": "advanced-structural",
          "classification": "defect-candidate",
          "confidence": "high",
          "evidenceIds": [
            "SAFE-STATE-01-ablation-sweep-102",
            "SAFE-STATE-02-ablation-sweep-126",
            "SAFE-STATE-03-ablation-sweep-137",
            "SAFE-STATE-04-inject-over-real-154"
          ],
          "id": "SAFE-STATE",
          "impactKind": "correctness",
          "remediation": "Make fallback states explicit and document what the safe-state behavior is for the affected control path.",
          "status": "elevated",
          "title": "Catch-all state handling / safe-state fallback audit",
          "verificationSuggestion": "Add tests that drive the fallback path explicitly and confirm the intended safe-state behavior is named, not implied."
        },
        {
          "category": "advanced-structural",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "TIME-WAIT-01-scraper-54",
            "TIME-WAIT-02-scraper-55",
            "TIME-WAIT-03-main-1422",
            "TIME-WAIT-04-main-1477"
          ],
          "id": "TIME-WAIT",
          "impactKind": "maintainability",
          "remediation": "Review the finding against the emitted evidence and either tighten the local structure or document the local invariant.",
          "status": "elevated",
          "title": "Hard-coded timing assumption audit",
          "verificationSuggestion": "Use the evidence block to write the smallest targeted regression or review note that proves the intended invariant."
        },
        {
          "category": "advanced-structural",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "JPL-R0-01-bocpd-217",
            "JPL-R0-02-main-1375"
          ],
          "id": "JPL-R0",
          "impactKind": "maintainability",
          "remediation": "Review the finding against the emitted evidence and either tighten the local structure or document the local invariant.",
          "status": "elevated",
          "title": "Recursion and cyclic call graph audit",
          "verificationSuggestion": "Use the evidence block to write the smallest targeted regression or review note that proves the intended invariant."
        },
        {
          "category": "advanced-structural",
          "classification": "review-readiness",
          "confidence": "high",
          "evidenceIds": [
            "PLUGIN-LOAD-01-cargo-665",
            "PLUGIN-LOAD-02-cargo-1324"
          ],
          "id": "PLUGIN-LOAD",
          "impactKind": "assurance/provenance",
          "remediation": "Constrain dynamic loading behind verification, sandboxing, or explicit operator review.",
          "status": "elevated",
          "title": "Dynamic loading / plugin sandbox audit",
          "verificationSuggestion": "Add review notes or CI checks that prove the dynamic-loading boundary is verified, sandboxed, or intentionally excluded from trusted paths."
        },
        {
          "category": "advanced-structural",
          "classification": "defect-candidate",
          "confidence": "medium",
          "evidenceIds": [
            "SHORT-WRITE-01-tape-73"
          ],
          "id": "SHORT-WRITE",
          "impactKind": "correctness",
          "remediation": "Use `write_all`, retry `Interrupted`, or document why partial writes are already handled by the caller.",
          "status": "elevated",
          "title": "Partial-write / Interrupted handling audit",
          "verificationSuggestion": "Add IO-path tests that inject Interrupted or partial writes and prove the caller handles them correctly."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "P10-3-01-postgres-ingest-50",
            "P10-3-02-ceb-51",
            "P10-3-03-ceb-59",
            "P10-3-04-ceb-65"
          ],
          "id": "P10-3",
          "impactKind": "correctness",
          "remediation": "Move dynamic allocation to initialization paths or document and bound the steady-state allocation sites.",
          "status": "not applied",
          "title": "No dynamic allocation after initialization",
          "verificationSuggestion": "Profile the flagged path under steady-state load and confirm no avoidable heap growth remains after initialization."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "P10-4-01-plots-live-276",
            "P10-4-02-plots-1536",
            "P10-4-03-plots-live-38",
            "P10-4-04-plots-live-528"
          ],
          "id": "P10-4",
          "impactKind": "maintainability",
          "remediation": "Split large functions into reviewable units with clearer local invariants and narrower responsibilities.",
          "status": "not applied",
          "title": "Functions stay within a single-sheet size budget (~60 LOC)",
          "verificationSuggestion": "Split the function and add narrower tests that name the local invariants introduced by the refactor."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "defect-candidate",
          "confidence": "high",
          "evidenceIds": [
            "P10-5-01-plots-live-276",
            "P10-5-02-plots-1536",
            "P10-5-03-plots-live-528",
            "P10-5-04-live-pulsed-scrape-figure-76"
          ],
          "id": "P10-5",
          "impactKind": "concurrency/async",
          "remediation": "Replace catch-all control flow with explicit state handling or document the fallback state as intentional.",
          "status": "not applied",
          "title": "Assertion density averages at least two per function",
          "verificationSuggestion": "Add state-transition tests that cover the previously catch-all path explicitly."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "defect-candidate",
          "confidence": "high",
          "evidenceIds": [
            "P10-7-01-baseline-tune-145",
            "P10-7-02-generic-csv-154",
            "P10-7-03-baseline-bake-off-89",
            "P10-7-04-null-trace-235"
          ],
          "id": "P10-7",
          "impactKind": "correctness",
          "remediation": "Propagate errors explicitly rather than unwrapping, or document the invariant that justifies the unwrap/expect.",
          "status": "not applied",
          "title": "Return values are checked and parameters are validated",
          "verificationSuggestion": "Replace unwrap/expect with explicit handling or add an invariant test that proves the extraction precondition."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "review-readiness",
          "confidence": "high",
          "evidenceIds": [
            "P10-8-01-mod-30",
            "P10-8-02-lib-34",
            "P10-8-03-mod-45",
            "P10-8-04-mod-50"
          ],
          "id": "P10-8",
          "impactKind": "verification/reviewability",
          "remediation": "Reduce conditional-compilation forks or document why each feature/macro path remains auditable.",
          "status": "not applied",
          "title": "Conditional compilation and metaprogramming stay minimal",
          "verificationSuggestion": "Review feature/macro-expanded paths and add CI coverage for the meaningful forks."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "P10-1-01-bocpd-217",
            "P10-1-02-main-1375"
          ],
          "id": "P10-1",
          "impactKind": "correctness",
          "remediation": "Remove recursion where possible, or isolate the pattern behind a bounded proof and explicit review note.",
          "status": "not applied",
          "title": "Simple control flow; no recursion or equivalent escapes",
          "verificationSuggestion": "Add a focused test or review note that proves the remaining recursion is bounded, or refactor it into an explicit loop/work queue."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "design-review",
          "confidence": "medium",
          "evidenceIds": [
            "P10-2-01-main-1481"
          ],
          "id": "P10-2",
          "impactKind": "correctness",
          "remediation": "Add explicit upper bounds, timeout guards, or fixed-step limits so loop behavior is reviewable.",
          "status": "not applied",
          "title": "All loops have a fixed upper bound",
          "verificationSuggestion": "Add a regression test that demonstrates a visible loop bound, timeout, or cancellation path on the flagged logic."
        },
        {
          "category": "heuristic",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "H-ALLOC-01-01-postgres-234",
            "H-ALLOC-01-02-bocpd-92",
            "H-ALLOC-01-03-pelt-82",
            "H-ALLOC-01-04-baseline-tune-108",
            "H-ALLOC-01-05-baseline-tune-266",
            "H-ALLOC-01-06-bootstrap-coverage-169"
          ],
          "id": "H-ALLOC-01",
          "impactKind": "resource discipline",
          "remediation": "Audit hot-loop allocation sites and prefer bounded or reserved growth on steady-state paths.",
          "status": "matched",
          "title": "Monotonic increase in allocation latency with step-change at capacity doubling",
          "verificationSuggestion": "Benchmark the flagged path under steady load and inspect allocation counts before and after preallocation changes."
        },
        {
          "category": "heuristic",
          "classification": "design-review",
          "confidence": "high",
          "evidenceIds": [
            "H-SERDE-01-01-cargo-77",
            "H-SERDE-01-02-cargo-77",
            "H-SERDE-01-03-cargo-80",
            "H-SERDE-01-04-cargo-80",
            "H-SERDE-01-05-cargo-309",
            "H-SERDE-01-06-cargo-313"
          ],
          "id": "H-SERDE-01",
          "impactKind": "resource discipline",
          "remediation": "Review payload growth, eager allocation, and schema-boundary handling on the serialization path.",
          "status": "matched",
          "title": "Serialization latency increasing with step-change at schema boundary",
          "verificationSuggestion": "Review the emitted evidence and add a targeted regression or replay check on the affected path."
        },
        {
          "category": "nasa-power-of-ten",
          "classification": "review-readiness",
          "confidence": "medium",
          "evidenceIds": [
            "P10-10-01-cargo-toml-124",
            "P10-10-02-motifs-93",
            "P10-10-03-motifs-162",
            "P10-10-04-motifs-223"
          ],
          "id": "P10-10",
          "impactKind": "verification/reviewability",
          "remediation": "Keep warnings and analyzer gates active in CI so the audit surface stays reviewable over time.",
          "status": "indeterminate",
          "title": "Pedantic warnings and static analyzers are enforced",
          "verificationSuggestion": "Keep analyzer and warnings-as-errors gates in CI and record the expected toolchain surface in the repo docs."
        },
        {
          "category": "heuristic",
          "classification": "context-needed",
          "confidence": "high",
          "evidenceIds": [
            "H-CLOCK-01-01-snowset-87",
            "H-CLOCK-01-02-ingest-throughput-126",
            "H-CLOCK-01-03-ingest-throughput-138",
            "H-CLOCK-01-04-scraper-174",
            "H-CLOCK-01-05-scraper-278",
            "H-CLOCK-01-06-main-572"
          ],
          "id": "H-CLOCK-01",
          "impactKind": "correctness",
          "remediation": "Prefer monotonic clocks for control logic and isolate wall-clock use to presentation or external protocol boundaries.",
          "status": "matched",
          "title": "Monotonic drift in timestamp-derived residuals between nodes",
          "verificationSuggestion": "Add a regression test that isolates monotonic timing logic from wall-clock presentation or protocol boundaries."
        },
        {
          "category": "heuristic",
          "classification": "context-needed",
          "confidence": "high",
          "evidenceIds": [
            "H-THRU-01-01-cargo-120",
            "H-THRU-01-02-cargo-121",
            "H-THRU-01-03-ingest-throughput-135",
            "H-THRU-01-04-ingest-throughput-141",
            "H-THRU-01-05-ingest-throughput-159",
            "H-THRU-01-06-ingest-throughput-160"
          ],
          "id": "H-THRU-01",
          "impactKind": "resource discipline",
          "remediation": "Inspect hot paths for hidden copies, queue growth, or retry behavior that can erode throughput before alarms fire.",
          "status": "matched",
          "title": "Persistent throughput decline not attributable to workload reduction",
          "verificationSuggestion": "Review the emitted evidence and add a targeted regression or replay check on the affected path."
        },
        {
          "category": "heuristic",
          "classification": "context-needed",
          "confidence": "high",
          "evidenceIds": [
            "H-TCP-01-01-readonly-conn-45",
            "H-TCP-01-02-readonly-conn-46",
            "H-TCP-01-03-readonly-conn-48",
            "H-TCP-01-04-readonly-conn-123",
            "H-TCP-01-05-readonly-conn-125",
            "H-TCP-01-06-main-1456"
          ],
          "id": "H-TCP-01",
          "impactKind": "correctness",
          "remediation": "Review partial-write handling, retry damping, timeout paths, and whether network assumptions are made explicit.",
          "status": "matched",
          "title": "Burst of retransmits followed by drift in RTT variance",
          "verificationSuggestion": "Review the emitted evidence and add a targeted regression or replay check on the affected path."
        }
      ],
      "matchedHeuristics": [
        {
          "id": "H-SERDE-01",
          "matchedPatterns": [
            "deserialize",
            "serde",
            "serde_json",
            "serialize"
          ],
          "reasonCode": "SerializationDrift",
          "structuralPrior": {
            "confidence": 0.95,
            "driftScale": 0.7625,
            "slewScale": 0.7150000000000001
          },
          "totalHits": 140
        },
        {
          "id": "H-ALLOC-01",
          "matchedPatterns": [
            "vec::with_capacity"
          ],
          "reasonCode": "MemoryPressureEscalation",
          "structuralPrior": {
            "confidence": 0.7838735539822874,
            "driftScale": 0.8040316115044281,
            "slewScale": 0.7648379338053137
          },
          "totalHits": 22
        },
        {
          "id": "H-CLOCK-01",
          "matchedPatterns": [
            "instant::now()",
            "systemtime::now()",
            "timestamp"
          ],
          "reasonCode": "ClockDriftDivergence",
          "structuralPrior": {
            "confidence": 0.6412373393653842,
            "driftScale": 0.839690665158654,
            "slewScale": 1.0
          },
          "totalHits": 12
        },
        {
          "id": "H-THRU-01",
          "matchedPatterns": [
            "throughput"
          ],
          "reasonCode": "ThroughputDegradation",
          "structuralPrior": {
            "confidence": 0.6412373393653842,
            "driftScale": 0.839690665158654,
            "slewScale": 1.0
          },
          "totalHits": 12
        },
        {
          "id": "H-TCP-01",
          "matchedPatterns": [
            "connect("
          ],
          "reasonCode": "PartialPartitionSignature",
          "structuralPrior": {
            "confidence": 0.4864775372638283,
            "driftScale": 0.8783806156840429,
            "slewScale": 0.8540567388208515
          },
          "totalHits": 6
        }
      ],
      "powerOfTen": {
        "applied": 2,
        "indeterminate": 1,
        "notApplied": 7
      }
    }
  },
  "predicateType": "https://github.com/infinityabundance/dsfb-gray/attestations/crate-scan/v1",
  "subject": [
    {
      "digest": {
        "sha256": "12215cce94b8d8f588214407389121c8542028045665f74ef1e07b6dd9322be0"
      },
      "name": "pkg:cargo/dsfb-database@0.1.0"
    }
  ]
}