{
  "source_sha": "cbfc94ade5b57e449d6b73bf1485b1c5b1647022",
  "started_at_utc": "2026-10-13T00:42:10.346817+00:00",
  "container_id": "720f1665d8caf8087d6032eec59141e1f0caeb5c78049d6aa5b8396452c8ee74",
  "container_image": "sha256:721873c34ceb9f8d8fc265984940dc982404c105f19ad51be9fdc5970a6080ea",
  "databases": {
    "source": "inside_orch_lab_cbfc94ade5b5_recovery_test",
    "target": "inside_orch_lab_cbfc94ade5b5_restored_test"
  },
  "working_directory": "/tmp/inside-orch-labs-cbfc94ade5b5/orch",
  "commands": [
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "psql",
        "-U",
        "postgres",
        "-d",
        "postgres",
        "-At",
        "-v",
        "ON_ERROR_STOP=1",
        "-c",
        "SELECT count(*) FROM pg_database WHERE datname='inside_orch_lab_cbfc94ade5b5_recovery_test'"
      ],
      "exit_code": 0,
      "stdout": "0\n",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "psql",
        "-U",
        "postgres",
        "-d",
        "postgres",
        "-At",
        "-v",
        "ON_ERROR_STOP=1",
        "-c",
        "CREATE DATABASE inside_orch_lab_cbfc94ade5b5_recovery_test"
      ],
      "exit_code": 0,
      "stdout": "CREATE DATABASE\n",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "psql",
        "-U",
        "postgres",
        "-d",
        "postgres",
        "-At",
        "-v",
        "ON_ERROR_STOP=1",
        "-c",
        "SELECT count(*) FROM pg_database WHERE datname='inside_orch_lab_cbfc94ade5b5_restored_test'"
      ],
      "exit_code": 0,
      "stdout": "0\n",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "psql",
        "-U",
        "postgres",
        "-d",
        "postgres",
        "-At",
        "-v",
        "ON_ERROR_STOP=1",
        "-c",
        "CREATE DATABASE inside_orch_lab_cbfc94ade5b5_restored_test"
      ],
      "exit_code": 0,
      "stdout": "CREATE DATABASE\n",
      "stderr": ""
    },
    {
      "argv": [
        "/tmp/inside-orch-gomod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/bin/go",
        "run",
        "./.book-labs/full-schema",
        "prepare"
      ],
      "exit_code": 0,
      "stdout": "{\n  \"canary_sha256\": \"3bf1f98b1b5101ff30dbba997ff1adaf53cc082b51878b6869d311f862b3ed51\",\n  \"captured_ids\": {\n    \"node\": \"31d1417b-8b97-4064-83b0-73f38499b294\",\n    \"service\": \"d0208d19-6266-43d7-a8d4-935f734492c0\",\n    \"task\": \"4c193423-737c-4dc5-baea-2c4059bcee30\"\n  },\n  \"claims\": {\n    \"conflicts\": 1,\n    \"winners\": 1\n  },\n  \"down_without_allow_rejected\": true,\n  \"finished_at_utc\": \"2026-10-13T00:42:11.110598612Z\",\n  \"leadership\": {\n    \"done_closed_after_cancel\": true,\n    \"lock_retained_after_cancel_and_release\": true,\n    \"other_pool_acquires_after_original_pool_close\": true,\n    \"other_pool_initially_blocked\": true,\n    \"scope\": \"package cancellation path with healthy pooled session, not running server HA\"\n  },\n  \"mode\": \"prepare\",\n  \"schema_after\": {\n    \"current\": \"000016\",\n    \"latest\": \"000016\",\n    \"pending\": null\n  },\n  \"schema_after_second_up\": {\n    \"current\": \"000016\",\n    \"latest\": \"000016\",\n    \"pending\": null\n  },\n  \"schema_before\": {\n    \"current\": \"\",\n    \"latest\": \"000016\",\n    \"pending\": [\n      \"000001\",\n      \"000002\",\n      \"000003\",\n      \"000004\",\n      \"000005\",\n      \"000006\",\n      \"000007\",\n      \"000008\",\n      \"000009\",\n      \"000010\",\n      \"000011\",\n      \"000012\",\n      \"000013\",\n      \"000014\",\n      \"000015\",\n      \"000016\"\n    ]\n  },\n  \"scope\": \"teaching extension against full-schema PostgreSQL package, not default server persistence\",\n  \"started_at_utc\": \"2026-10-13T00:42:10.947118841Z\",\n  \"status\": \"passed\"\n}\n",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "pg_dump",
        "-U",
        "postgres",
        "--format=custom",
        "--no-owner",
        "--no-privileges",
        "inside_orch_lab_cbfc94ade5b5_recovery_test"
      ],
      "exit_code": 0,
      "binary_stdout": "dump retained under validation; not embedded",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "-i",
        "inside-orch-book-pg-cbfc94ade5b5",
        "pg_restore",
        "-U",
        "postgres",
        "--no-owner",
        "--no-privileges",
        "--dbname",
        "inside_orch_lab_cbfc94ade5b5_restored_test"
      ],
      "exit_code": 0,
      "stdout": "",
      "stderr": ""
    },
    {
      "argv": [
        "/tmp/inside-orch-gomod/golang.org/toolchain@v0.0.1-go1.25.0.linux-amd64/bin/go",
        "run",
        "./.book-labs/full-schema",
        "verify"
      ],
      "exit_code": 0,
      "stdout": "{\n  \"canary_sha256\": \"3bf1f98b1b5101ff30dbba997ff1adaf53cc082b51878b6869d311f862b3ed51\",\n  \"finished_at_utc\": \"2026-10-13T00:42:11.506023149Z\",\n  \"mode\": \"verify\",\n  \"row_counts\": {\n    \"nodes\": 1,\n    \"services\": 1\n  },\n  \"schema\": {\n    \"current\": \"000016\",\n    \"latest\": \"000016\",\n    \"pending\": null\n  },\n  \"scope\": \"teaching extension against full-schema PostgreSQL package, not default server persistence\",\n  \"started_at_utc\": \"2026-10-13T00:42:11.495178035Z\",\n  \"status\": \"passed\",\n  \"wrong_key_rejected\": true\n}\n",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "psql",
        "-U",
        "postgres",
        "-d",
        "postgres",
        "-At",
        "-v",
        "ON_ERROR_STOP=1",
        "-c",
        "DROP DATABASE inside_orch_lab_cbfc94ade5b5_restored_test WITH (FORCE)"
      ],
      "exit_code": 0,
      "stdout": "DROP DATABASE\n",
      "stderr": ""
    },
    {
      "argv": [
        "docker",
        "exec",
        "inside-orch-book-pg-cbfc94ade5b5",
        "psql",
        "-U",
        "postgres",
        "-d",
        "postgres",
        "-At",
        "-v",
        "ON_ERROR_STOP=1",
        "-c",
        "DROP DATABASE inside_orch_lab_cbfc94ade5b5_recovery_test WITH (FORCE)"
      ],
      "exit_code": 0,
      "stdout": "DROP DATABASE\n",
      "stderr": ""
    }
  ],
  "status": "passed",
  "prepare": {
    "canary_sha256": "3bf1f98b1b5101ff30dbba997ff1adaf53cc082b51878b6869d311f862b3ed51",
    "captured_ids": {
      "node": "31d1417b-8b97-4064-83b0-73f38499b294",
      "service": "d0208d19-6266-43d7-a8d4-935f734492c0",
      "task": "4c193423-737c-4dc5-baea-2c4059bcee30"
    },
    "claims": {
      "conflicts": 1,
      "winners": 1
    },
    "down_without_allow_rejected": true,
    "finished_at_utc": "2026-10-13T00:42:11.110598612Z",
    "leadership": {
      "done_closed_after_cancel": true,
      "lock_retained_after_cancel_and_release": true,
      "other_pool_acquires_after_original_pool_close": true,
      "other_pool_initially_blocked": true,
      "scope": "package cancellation path with healthy pooled session, not running server HA"
    },
    "mode": "prepare",
    "schema_after": {
      "current": "000016",
      "latest": "000016",
      "pending": null
    },
    "schema_after_second_up": {
      "current": "000016",
      "latest": "000016",
      "pending": null
    },
    "schema_before": {
      "current": "",
      "latest": "000016",
      "pending": [
        "000001",
        "000002",
        "000003",
        "000004",
        "000005",
        "000006",
        "000007",
        "000008",
        "000009",
        "000010",
        "000011",
        "000012",
        "000013",
        "000014",
        "000015",
        "000016"
      ]
    },
    "scope": "teaching extension against full-schema PostgreSQL package, not default server persistence",
    "started_at_utc": "2026-10-13T00:42:10.947118841Z",
    "status": "passed"
  },
  "restored": {
    "canary_sha256": "3bf1f98b1b5101ff30dbba997ff1adaf53cc082b51878b6869d311f862b3ed51",
    "finished_at_utc": "2026-10-13T00:42:11.506023149Z",
    "mode": "verify",
    "row_counts": {
      "nodes": 1,
      "services": 1
    },
    "schema": {
      "current": "000016",
      "latest": "000016",
      "pending": null
    },
    "scope": "teaching extension against full-schema PostgreSQL package, not default server persistence",
    "started_at_utc": "2026-10-13T00:42:11.495178035Z",
    "status": "passed",
    "wrong_key_rejected": true
  },
  "backup": {
    "path": "validation/intake/full-schema-recovery-corrected.dump",
    "bytes": 53375,
    "sha256": "70f413480968ef3c541380f6eb724bb0b9bed25d6eed1de7e7f405cba154dc5f"
  },
  "boundaries": [
    "Only PostgreSQL package rows restored; default server MemoryService maps are separate",
    "No host production database was touched",
    "Source scripts inspected; pg_dump/pg_restore executed directly inside lab container"
  ],
  "cleanup": {
    "created_databases_removed": [
      "inside_orch_lab_cbfc94ade5b5_recovery_test",
      "inside_orch_lab_cbfc94ade5b5_restored_test"
    ]
  },
  "finished_at_utc": "2026-10-13T00:42:11.630745+00:00"
}
