{
  "run_id": "1778061515406-pdf",
  "generated_at": "2026-05-06T10:04:23.775999+00:00",
  "overall_score": 79.23,
  "sub_scores": {
    "schema_completeness": 100.0,
    "entity_coverage": 100.0,
    "state_seed_coverage": 58.33,
    "rule_constraint_coverage": 100.0,
    "visual_fidelity": 50.0,
    "mantara_validation_pass": 56.0,
    "benchmark_format_compliance": 80.0
  },
  "details": {
    "schema_completeness": {
      "covered": 7,
      "expected": 7,
      "missing": []
    },
    "entity_coverage": {
      "covered": 16,
      "expected": 16,
      "missing": []
    },
    "state_seed_coverage": {
      "covered": 3.5,
      "expected": 6,
      "missing": [
        "cfg_asn_lifecycle_status/rcr (table exists, seed missing)",
        "cfg_asn_lifecycle_status/at_door (table exists, seed missing)",
        "cfg_asn_lifecycle_status/reserved (table exists, seed missing)",
        "cfg_asn_lifecycle_status/unreserved (table exists, seed missing)",
        "cfg_asn_lifecycle_status/create (table exists, seed missing)"
      ]
    },
    "rule_constraint_coverage": {
      "covered": 6,
      "expected": 6,
      "missing": []
    },
    "visual_fidelity": {
      "covered": 1,
      "expected": 2,
      "missing": [
        "advanced_shipment_notice \u2192 supplier"
      ]
    },
    "mantara_validation_pass": {
      "errors": 11,
      "step5_errors": 11,
      "upstream_errors": 0,
      "weighted_errors": 11.0,
      "is_valid": false,
      "sample_errors": [
        "Table 'asn_line_item'.quantity: missing CHECK constraint (e.g., CHECK (quantity >= 0))",
        "Table 'vendor_history'.change_type: uses VARCHAR(30) for an enumerable field. v8 requires renaming to 'change_type_id INT' with FK to a 'cfg_change_type' lookup table.",
        "Table 'users_history'.change_type: uses VARCHAR(30) for an enumerable field. v8 requires renaming to 'change_type_id INT' with FK to a 'cfg_change_type' lookup table.",
        "Table 'roles_history'.change_type: uses VARCHAR(30) for an enumerable field. v8 requires renaming to 'change_type_id INT' with FK to a 'cfg_change_type' lookup table.",
        "Table 'permissions_history'.change_type: uses VARCHAR(30) for an enumerable field. v8 requires renaming to 'change_type_id INT' with FK to a 'cfg_change_type' lookup table."
      ]
    },
    "benchmark_format_compliance": {
      "fk_density_score": 100.0,
      "idx_score": 100.0,
      "audit_score": 0.0,
      "check_score": 100.0,
      "comment_score": 100.0,
      "raw": {
        "business_tables": 18,
        "cfg_tables": 5,
        "fk_to_cfg": 5,
        "index_count": 106,
        "fully_audited": 0,
        "check_count": 5,
        "comment_count": 25
      }
    }
  },
  "ai_metrics": {
    "extraction_completeness_pct": 100.0,
    "artifact_validity_pct": 100.0,
    "schema_validity_pct": 56.0,
    "qa_pass_rate_pct": 42.86,
    "retry_success_rate_pct": 0.0,
    "manual_intervention_rate_pct": 35.0,
    "step_compatibility_pct": 100.0,
    "confidence_score": 0.7923
  },
  "mantara_status": "ok",
  "mantara_repair_attempts": 3,
  "mantara_cost_usd": 0.865365,
  "duration_seconds": 169.52
}