{
  "run_id": "1778124586772-pdf",
  "generated_at": "2026-05-07T03:35:08.762430+00:00",
  "overall_score": 86.7,
  "sub_scores": {
    "schema_completeness": 100.0,
    "entity_coverage": 100.0,
    "state_seed_coverage": 90.0,
    "rule_constraint_coverage": 100.0,
    "visual_fidelity": 75.0,
    "mantara_validation_pass": 68.0,
    "benchmark_format_compliance": 80.0
  },
  "details": {
    "schema_completeness": {
      "covered": 6,
      "expected": 6,
      "missing": []
    },
    "entity_coverage": {
      "covered": 17,
      "expected": 17,
      "missing": []
    },
    "state_seed_coverage": {
      "covered": 9.0,
      "expected": 10,
      "missing": [
        "cfg_asn_lifecycle_status/create (table exists, seed missing)",
        "cfg_asn_lifecycle_status/rcr (table exists, seed missing)"
      ]
    },
    "rule_constraint_coverage": {
      "covered": 6,
      "expected": 6,
      "missing": []
    },
    "visual_fidelity": {
      "covered": 3,
      "expected": 4,
      "missing": [
        "asn_line_item \u2192 advanced_shipment_notice"
      ]
    },
    "mantara_validation_pass": {
      "errors": 8,
      "step5_errors": 8,
      "upstream_errors": 0,
      "weighted_errors": 8.0,
      "is_valid": false,
      "sample_errors": [
        "Table 'asn_line_item_history'.quantity: missing CHECK constraint (e.g., CHECK (quantity >= 0))",
        "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.",
        "Menu 'Configuration' has 18 submenus \u2014 consider splitting into multiple menus (target 2-6 per menu)."
      ]
    },
    "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": 27,
        "cfg_tables": 8,
        "fk_to_cfg": 9,
        "index_count": 151,
        "fully_audited": 0,
        "check_count": 5,
        "comment_count": 37
      }
    }
  },
  "ai_metrics": {
    "extraction_completeness_pct": 100.0,
    "artifact_validity_pct": 100.0,
    "schema_validity_pct": 68.0,
    "qa_pass_rate_pct": 57.14,
    "retry_success_rate_pct": 0.0,
    "manual_intervention_rate_pct": 40.0,
    "step_compatibility_pct": 100.0,
    "confidence_score": 0.867
  },
  "mantara_status": "ok",
  "mantara_repair_attempts": 3,
  "mantara_cost_usd": 0.927261,
  "duration_seconds": 173.74
}