{
  "generatedAt": "2026-05-17T03:04:43.810Z",
  "target": "scale_cow",
  "sourceRelation": "public.imladri_bench_customers",
  "concurrent": {
    "requested": 100,
    "succeeded": 100,
    "failed": 0,
    "deadlocks": 0,
    "createMs": {
      "min": 7.47,
      "p50": 10.58,
      "p95": 14.67,
      "max": 16.82
    },
    "createPhaseTimingsMs": {
      "branchDdlMs": {
        "min": 9.59,
        "p50": 10.65,
        "p95": 12.02,
        "max": 77.5
      },
      "cloneSchemaFresh": {
        "min": 1,
        "p50": 1,
        "p95": 1,
        "max": 1
      },
      "cloneTotalMs": {
        "min": 10.99,
        "p50": 12.16,
        "p95": 13.63,
        "max": 228.47
      },
      "cowMetadataMs": {
        "min": 0,
        "p50": 0,
        "p95": 0,
        "max": 0.01
      },
      "grantMs": {
        "min": 0,
        "p50": 0,
        "p95": 0.01,
        "max": 0.06
      },
      "preparedBranchAgeMs": {
        "min": 17,
        "p50": 634,
        "p95": 1240,
        "max": 1300
      },
      "preparedBranchPoolHit": {
        "min": 1,
        "p50": 1,
        "p95": 1,
        "max": 1
      },
      "schemaSetupMs": {
        "min": 0.36,
        "p50": 0.44,
        "p95": 0.57,
        "max": 4.19
      },
      "sourceMetadataCacheHits": {
        "min": 0,
        "p50": 1,
        "p95": 1,
        "max": 1
      },
      "sourceMetadataCacheMisses": {
        "min": 0,
        "p50": 0,
        "p95": 0,
        "max": 1
      },
      "sourceMetadataMs": {
        "min": 0.16,
        "p50": 0.2,
        "p95": 0.25,
        "max": 35.11
      },
      "storageBranchTotalMs": {
        "min": 6.62,
        "p50": 9.32,
        "p95": 12.81,
        "max": 13.99
      },
      "tableCount": {
        "min": 1,
        "p50": 1,
        "p95": 1,
        "max": 1
      }
    },
    "cleanupMs": {
      "min": 19.05,
      "p50": 88.28,
      "p95": 545.24,
      "max": 546.06
    },
    "sourceMutationCount": 0,
    "failures": []
  },
  "heavyWrites": [],
  "foreignKeys": {
    "tableCount": 10,
    "createMs": 49.38,
    "validWriteSucceeded": true,
    "orphanWriteRejected": true,
    "parentDeleteRestrictRejected": true,
    "parentUpdateRestrictRejected": true,
    "updateCascadeApplied": true,
    "deleteCascadeApplied": true,
    "setNullApplied": true,
    "setDefaultApplied": true,
    "compositeMatchFullApplied": true,
    "deferredConstraintApplied": true,
    "deferredViolationRejected": true,
    "selfReferenceApplied": true,
    "multiBranchIsolationApplied": true,
    "branchLocalReferentialIntegrity": true,
    "sourceMutationCount": 0,
    "cleanupMs": 2.46,
    "proofScore": "7/7",
    "notes": [
      "Branch-local foreign key checks covered orphan rejection, restrict, cascade, set-null, set-default, composite MATCH FULL, deferred repair/rejection, self-reference, and multi-branch isolation behavior."
    ]
  },
  "foreignKeyConcurrent": {
    "requested": 100,
    "succeeded": 100,
    "failed": 0,
    "deadlocks": 0,
    "createMs": {
      "min": 43.43,
      "p50": 49.4,
      "p95": 53.34,
      "max": 54.01
    },
    "createPhaseTimingsMs": {
      "branchDdlMs": {
        "min": 92.18,
        "p50": 101.56,
        "p95": 178.88,
        "max": 547.51
      },
      "cloneSchemaFresh": {
        "min": 1,
        "p50": 1,
        "p95": 1,
        "max": 1
      },
      "cloneTotalMs": {
        "min": 102.55,
        "p50": 115.49,
        "p95": 198.66,
        "max": 556.95
      },
      "cowMetadataMs": {
        "min": 6.05,
        "p50": 6.53,
        "p95": 7.67,
        "max": 10.17
      },
      "grantMs": {
        "min": 0,
        "p50": 0,
        "p95": 0,
        "max": 0.01
      },
      "preparedBranchAgeMs": {
        "min": 54,
        "p50": 6587,
        "p95": 12470,
        "max": 13029
      },
      "preparedBranchPoolHit": {
        "min": 1,
        "p50": 1,
        "p95": 1,
        "max": 1
      },
      "schemaSetupMs": {
        "min": 0.38,
        "p50": 0.47,
        "p95": 0.6,
        "max": 0.67
      },
      "sourceMetadataCacheHits": {
        "min": 10,
        "p50": 10,
        "p95": 10,
        "max": 10
      },
      "sourceMetadataCacheMisses": {
        "min": 0,
        "p50": 0,
        "p95": 0,
        "max": 0
      },
      "sourceMetadataMs": {
        "min": 1.08,
        "p50": 1.32,
        "p95": 1.65,
        "max": 2.66
      },
      "storageBranchTotalMs": {
        "min": 42.56,
        "p50": 48.17,
        "p95": 51.78,
        "max": 52.31
      },
      "tableCount": {
        "min": 10,
        "p50": 10,
        "p95": 10,
        "max": 10
      }
    },
    "validWriteMs": {
      "min": 382.09,
      "p50": 578.37,
      "p95": 1048.83,
      "max": 1229.96
    },
    "rejectedWriteMs": {
      "min": 215.26,
      "p50": 314.28,
      "p95": 411.16,
      "max": 440.34
    },
    "cascadeActionMs": {
      "min": 220.8,
      "p50": 370.68,
      "p95": 493.36,
      "max": 859.97
    },
    "cleanupMs": {
      "min": 1.6,
      "p50": 112.24,
      "p95": 249.34,
      "max": 321.45
    },
    "branchLocalReferentialIntegrity": true,
    "sourceMutationCount": 0,
    "failures": []
  },
  "bulkWriteFollowUp": {
    "generatedAt": "2026-05-17T19:51:11.035Z",
    "sourceRelation": "public.imladri_bench_customers",
    "fix": "Set-based lazy-COW bulk insert path resolves lazy branch metadata, validates uniqueness set-wise, and writes directly into the branch overlay instead of firing the COW view trigger once per row.",
    "heavyWrites": [
      {
        "rows": 1000000,
        "createMs": 13.04,
        "writeMs": 12877.31,
        "cleanupMs": 92.44,
        "overlayRows": 1000000,
        "overlayBytes": 197394432,
        "rowsPerSecond": 77656,
        "sourceMutationCount": 0,
        "proofScore": "7/7"
      },
      {
        "rows": 10000000,
        "createMs": 126.56,
        "writeMs": 138403.08,
        "cleanupMs": 39.61,
        "overlayRows": 10000000,
        "overlayBytes": 1973985280,
        "rowsPerSecond": 72253,
        "sourceMutationCount": 0,
        "proofScore": "7/7"
      }
    ],
    "branchProbe": {
      "requested": 1,
      "succeeded": 1,
      "deadlocks": 0,
      "createMs": {
        "min": 7.9,
        "p50": 7.9,
        "p95": 7.9,
        "max": 7.9
      },
      "sourceMutationCount": 0
    },
    "foreignKeyRegression": {
      "tableCount": 10,
      "proofScore": "7/7",
      "branchLocalReferentialIntegrity": true,
      "sourceMutationCount": 0
    },
    "verification": {
      "realPostgresHardening": "passed",
      "sourceMutations": 0,
      "scratchSchemasLeaked": 0
    }
  }
}
