{
  "audit": "credit_default",
  "case_id": "credit-default-leaked-payment-event",
  "evidence_bundle": {
    "ablation_contrast": {
      "conclusion": "The legitimate feature has the larger ablation delta, yet Hindsight clears it.",
      "leaked_feature": 0.21,
      "safe_exceeds_leaked_by": 0.03,
      "safe_feature": 0.24
    },
    "audit_config": {
      "available_column": "available_at",
      "name": "credit_default",
      "post_outcome_table": "payment_events_after_decision",
      "prediction_column": "prediction_time",
      "remediation_sql": "examples/remediation.sql",
      "scenario": "scenarios/credit_default/scenario.json",
      "subject": "leaked",
      "synthetic": true,
      "target_urn": null,
      "transformation_sql": "examples/leaky_feature.sql"
    },
    "case_id": "credit-default-leaked-payment-event",
    "checks": {
      "no_catalog_mutation_without_approval": true,
      "point_in_time_confirmation_passed": true,
      "proposed_remediation_verifies_safe": true,
      "safe_control_cleared": true,
      "transformation_violation_proven": true
    },
    "confirmation_route": "point_in_time_collapse",
    "demo_disclosures": [
      "The deterministic example and point-in-time recording are independent confirmation routes for the same planted defect mechanism.",
      "The planted leak is total by construction, so observed AUC 1.000000 is expected; real-world leakage can be subtler.",
      "The 50% majority-loss threshold is a visible demo policy, not a universal scientific constant, and it cannot confirm leakage without directional post-outcome lineage plus an availability-time violation."
    ],
    "exit_code": 3,
    "point_in_time_verdict": "confirmed",
    "release_decision": "block",
    "remediation": {
      "path": "examples/remediation.sql",
      "sha256": "6069a18533a78f3514a7c279d6ad59a6b532bb946a9182f7155177f848df5ffc",
      "verification": {
        "available_column": "available_at",
        "cutoff_predicates": [
          "payment.available_at <= application.prediction_time"
        ],
        "exit_code": 0,
        "post_outcome_table": "payment_events_after_decision",
        "prediction_column": "prediction_time",
        "reason": "A directional availability cutoff protects the post-outcome source.",
        "referenced_tables": [
          "applications_at_decision_time",
          "payment_events_after_decision"
        ],
        "status": "safe"
      }
    },
    "schema_version": 1,
    "sql_verification": {
      "available_column": "available_at",
      "cutoff_predicates": [],
      "exit_code": 3,
      "post_outcome_table": "payment_events_after_decision",
      "prediction_column": "prediction_time",
      "reason": "The post-outcome source is referenced, but no directional available_at <= prediction_time cutoff was found. The transformation does not reference available_at.",
      "referenced_tables": [
        "applications_at_decision_time",
        "payment_events_after_decision"
      ],
      "status": "violation"
    },
    "trace": [
      {
        "reason": "The post-outcome source is referenced, but no directional available_at <= prediction_time cutoff was found. The transformation does not reference available_at.",
        "status": "violation",
        "step": "transformation_verification"
      },
      {
        "excluded_post_cutoff_records": 4000,
        "status": "passed",
        "step": "point_in_time_reconstruction"
      },
      {
        "reason": "The feature advantage collapsed under point-in-time reconstruction.",
        "status": "confirmed",
        "step": "deterministic_verdict"
      },
      {
        "ablation_delta": 0.226554,
        "status": "clear_for_release",
        "step": "safe_control"
      },
      {
        "status": "awaiting_human_approval",
        "step": "writeback"
      }
    ],
    "validation": {
      "checks": {
        "leaked_feature_advantage_collapsed": true,
        "post_cutoff_records_were_excluded": true,
        "safe_feature_advantage_persisted": true,
        "safe_feature_has_large_ablation_delta": true,
        "safe_feature_is_point_in_time_stable": true
      },
      "config_sha256": "65befe58cde01243899e3ed9c3993eeaf6049a13fb9b53244ac69d642a0c29b3",
      "evidence_context": {
        "decision_node": "applications_at_decision_time.prediction_time",
        "leakage_available_offset_days": 31,
        "leakage_case_id": "credit-default-leaked-payment-event",
        "leakage_feature_name": "days_since_last_payment",
        "leakage_feature_urn": "urn:li:schemaField:(hindsight.feature_pipeline_leaky,days_since_last_payment)",
        "leakage_lineage_path": [
          "payment_events_after_decision.payment_recorded_at",
          "feature_pipeline_leaky.days_since_last_payment"
        ],
        "leakage_model_urn": "urn:li:mlModel:(urn:li:dataPlatform:mlflow,hindsight.credit_default_v1_leaky,PROD)",
        "safe_available_offset_days": -1,
        "safe_case_id": "credit-default-prior-delinquencies-safe-control",
        "safe_feature_name": "prior_delinquencies",
        "safe_feature_urn": "urn:li:schemaField:(hindsight.customer_history_point_in_time,prior_delinquencies)",
        "safe_lineage_path": [
          "customer_history_point_in_time.prior_delinquencies",
          "feature_pipeline_safe.prior_delinquencies"
        ],
        "safe_model_urn": "urn:li:mlModel:(urn:li:dataPlatform:mlflow,hindsight.credit_default_v2_safe,PROD)"
      },
      "leakage_case": {
        "advantage_retained": 0.44858,
        "baseline_auc": 0.698288,
        "collapsed": true,
        "observed_advantage": 0.301712,
        "observed_auc": 1.0,
        "point_in_time_advantage": 0.135342,
        "point_in_time_auc": 0.83363
      },
      "reconstruction": {
        "cutoff_predicate": "available_at <= prediction_time",
        "engine": "duckdb",
        "excluded_post_cutoff_records": 4000,
        "input": {
          "adapter": "frozen_generator"
        }
      },
      "rows": 4000,
      "runtime_seconds": 0.443783,
      "safe_control": {
        "advantage_retained": 1.0,
        "baseline_auc": 0.698288,
        "collapsed": false,
        "observed_advantage": 0.226554,
        "observed_auc": 0.924842,
        "point_in_time_advantage": 0.226554,
        "point_in_time_auc": 0.924842
      },
      "scenario": "credit_default_at_origination",
      "schema_version": 1,
      "seed": 20260727,
      "status": "passed",
      "verdicts": {
        "leakage_case": {
          "case_id": "credit-default-leaked-payment-event",
          "evidence": {
            "ablation_delta": 0.301712,
            "deterministic_cutoff_proof": false,
            "lineage_path": [
              "payment_events_after_decision.payment_recorded_at",
              "feature_pipeline_leaky.days_since_last_payment"
            ],
            "point_in_time_advantage_collapsed": true,
            "prediction_time": "2026-01-10T09:00:00+00:00",
            "source_available_at": "2026-02-10T09:00:00+00:00",
            "source_kind": "post_outcome"
          },
          "exit_code": 3,
          "reasons": [
            "The feature advantage collapsed under point-in-time reconstruction."
          ],
          "verdict": "confirmed"
        },
        "safe_control": {
          "case_id": "credit-default-prior-delinquencies-safe-control",
          "evidence": {
            "ablation_delta": 0.226554,
            "deterministic_cutoff_proof": false,
            "lineage_path": [
              "customer_history_point_in_time.prior_delinquencies",
              "feature_pipeline_safe.prior_delinquencies"
            ],
            "point_in_time_advantage_collapsed": false,
            "prediction_time": "2026-01-10T09:00:00+00:00",
            "source_available_at": "2026-01-09T09:00:00+00:00",
            "source_kind": "pre_outcome"
          },
          "exit_code": 0,
          "reasons": [
            "No directional post-outcome availability violation was established."
          ],
          "verdict": "clear_for_release"
        }
      }
    },
    "verdict": "confirmed",
    "writeback": {
      "mutation_performed": false,
      "planned_types": [
        "field_tag",
        "structured_property",
        "audit_document",
        "active_incident"
      ],
      "status": "awaiting_human_approval"
    }
  },
  "evidence_sha256": "9443da3beb019eeb25d8e1ddfd652884463b838dd55b8260e68cc81be248f5b0",
  "exit_code": 3,
  "publication": null,
  "published": false,
  "release_decision": "block",
  "rows": 4000,
  "run_id": "20260729T050141-dc73ad",
  "runtime_seconds": 0.443783,
  "scenario": "credit_default",
  "schema_version": 2,
  "started_at": "2026-07-29T05:01:41.674709+00:00",
  "target_urn": null,
  "verdict": "confirmed"
}