Schema

Core Pydantic models in schema.py:

  • MemoryError - Universal error (id, tool, bug_type, severity, stack, location, allocation_info, free_info, bytes_leaked)

  • AIAnalysis - 4-pass result (root_cause, explanation, impact, cwe_ids, fixes, best_practices)

  • CodeFix - Generated patch (description, diff, find_text, replace_text, confidence)

  • ScanResult - Complete scan (config, errors, analyses, scan_id, timestamp)

  • MMSummary - MemHint function (name, role, target, validated, confidence)

  • HardeningReport - Security audit (mitigations, score, grade, correlations)

  • TaintFlowReport - Taint analysis (sources, paths, reachable/isolated, data_flow_edges)

  • HeaptrackReport - Heap profile (peak, allocations, timeline, top_sites, flamegraph)