{
  "schemaVersion": 1,
  "tool": {
    "name": "skewcheck",
    "version": "0.1.0"
  },
  "executionId": "example-E2-broken-migration",
  "project": "fixture/E2-broken-migration",
  "createdAt": "2026-10-24T18:29:59.968Z",
  "baselineRevision": "shop-v1",
  "candidateRevision": "E2-broken-migration",
  "database": {
    "serverVersion": "16.15 (Debian 16.15-1.pgdg12+2)"
  },
  "proposedMigrations": [
    "002_broken.sql"
  ],
  "experiment": [
    "control: old application (shop-v1) × baseline schema (1 migrations)",
    "candidate ×2: old application (shop-v1) × proposed schema (2 migrations)"
  ],
  "verdict": "INCONCLUSIVE",
  "blocking": true,
  "exitCode": 2,
  "summary": "The experiment could not produce a trustworthy result. This is not a pass.",
  "reasons": [
    "Proposed migration 002_broken.sql failed to apply (42P01 relation \"customer\" does not exist)."
  ],
  "recommendedAction": "Fix the infrastructure or baseline problem listed in the reasons and re-run. Do not merge on this result.",
  "complete": false,
  "findings": [
    {
      "kind": "infrastructure",
      "facts": [
        "Proposed migration 002_broken.sql failed to apply (42P01 relation \"customer\" does not exist)."
      ],
      "interpretation": "The experiment could not support a trustworthy determination."
    }
  ],
  "schemaChanges": [],
  "coverage": [],
  "coverageSummary": "The proposed migration produced no catalog-level schema changes.",
  "runs": [
    {
      "id": "ctl",
      "label": "control (old app × baseline schema)",
      "app": "baseline",
      "schema": "baseline",
      "database": "sc_ctl",
      "revision": "shop-v1",
      "completed": true,
      "migrations": [
        {
          "file": "001_init.sql",
          "ok": true
        }
      ],
      "tests": [
        {
          "test": "test/customers.test.js",
          "outcome": "pass",
          "exitCode": 0,
          "durationMs": 99,
          "outputTail": "TAP version 13\n# Subtest: signs up a customer and finds them by email\nok 1 - signs up a customer and finds them by email\n  ---\n  duration_ms: 10.218408\n  ...\n1..1\n# tests 1\n# suites 0\n# pass 1\n# fail 0\n# cancelled 0\n# skipped 0\n# todo 0\n# duration_ms 71.282671\n"
        },
        {
          "test": "test/orders.test.js",
          "outcome": "pass",
          "exitCode": 0,
          "durationMs": 100,
          "outputTail": "TAP version 13\n# Subtest: new orders start in status \"new\" and can be shipped\nok 1 - new orders start in status \"new\" and can be shipped\n  ---\n  duration_ms: 13.437122\n  ...\n1..1\n# tests 1\n# suites 0\n# pass 1\n# fail 0\n# cancelled 0\n# skipped 0\n# todo 0\n# duration_ms 72.590897\n"
        }
      ],
      "errors": [],
      "statements": 7
    },
    {
      "id": "cand1",
      "label": "candidate #1 (old app × proposed schema)",
      "app": "baseline",
      "schema": "candidate",
      "database": "sc_cand1",
      "revision": "shop-v1",
      "completed": false,
      "migrations": [
        {
          "file": "001_init.sql",
          "ok": true
        },
        {
          "file": "002_broken.sql",
          "ok": false,
          "error": "42P01 relation \"customer\" does not exist"
        }
      ],
      "tests": [],
      "errors": [],
      "statements": 0
    },
    {
      "id": "cand2",
      "label": "candidate #2 (old app × proposed schema)",
      "app": "baseline",
      "schema": "candidate",
      "database": "sc_cand2",
      "revision": "shop-v1",
      "completed": false,
      "migrations": [
        {
          "file": "001_init.sql",
          "ok": true
        },
        {
          "file": "002_broken.sql",
          "ok": false,
          "error": "42P01 relation \"customer\" does not exist"
        }
      ],
      "tests": [],
      "errors": [],
      "statements": 0
    }
  ],
  "skippedChecks": [
    "Current application × proposed schema (no current app configured).",
    "Differential analysis and coverage were not trusted because the experiment was incomplete.",
    "Performance / lock-time analysis (out of scope)."
  ],
  "limitations": [
    "Skewcheck only observes code paths that the old application's tests execute; untested paths are reported as coverage gaps, not as safe.",
    "Coverage is identifier-level: a statement \"touches\" a changed object when it names the table (and column, or uses *). It is not a SQL parser.",
    "Correlation between an error and a schema change uses a fixed set of deterministic rules (R1–R6). Anything else is reported as ADVISORY, never UNSAFE.",
    "Performance, locking and migration runtime on production-sized data are not evaluated.",
    "Test files of one run share a database and run sequentially; ordering effects are identical across runs but are not isolated.",
    "Data-only migration effects are detected only when a test asserts on the affected data."
  ],
  "policy": {
    "advisory": "warn",
    "noEvidence": "block",
    "inconclusive": "block",
    "candidateRepeats": 2,
    "testTimeoutMs": 60000,
    "maxBaselineFailureRatio": 0.5,
    "protectedPaths": [],
    "repairBranchPrefixes": [
      "skewcheck-repair/"
    ]
  }
}