[
  {
    "file": "01-versions-atlas.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "atlas",
      "version"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:17:12Z"
  },
  {
    "file": "02-versions-ptah-compat.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "ptah-compat",
      "version"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:17:12Z"
  },
  {
    "file": "03-main-atlas-diff.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "diff",
      "probe",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL"
    ],
    "exit_code": 1,
    "observed_at": "2026-09-28T09:17:12Z"
  },
  {
    "file": "04-main-atlas-hash.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "hash",
      "--dir",
      "file://migrations"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:17:12Z"
  },
  {
    "file": "05-main-atlas-diff-after-hash.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "diff",
      "probe",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL"
    ],
    "exit_code": 1,
    "observed_at": "2026-09-28T09:17:12Z"
  },
  {
    "file": "06-replay-apply.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "apply",
      "--dir",
      "file://migrations",
      "--url",
      "postgres://wpmgr:[REDACTED]@127.0.0.1:55441/replay?sslmode=disable"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:17:14Z"
  },
  {
    "file": "07-replay-counts.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "docker",
      "--context",
      "remote-dev-container",
      "exec",
      "wpmgr-blog-pg16",
      "psql",
      "-U",
      "wpmgr",
      "-d",
      "replay",
      "-v",
      "ON_ERROR_STOP=1",
      "-tAc",
      "SELECT 'tables', count(*) FROM pg_tables WHERE schemaname = 'public' UNION ALL SELECT 'policies', count(*) FROM pg_policies WHERE schemaname = 'public';"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:10Z"
  },
  {
    "file": "08-main-schema-tables.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "grep",
      "-c",
      "-E",
      "^CREATE (UNLOGGED )?TABLE ",
      "db/schema.sql"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:11Z"
  },
  {
    "file": "09-main-schema-policies.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "grep",
      "-c",
      "-E",
      "^CREATE POLICY ",
      "db/schema.sql"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:11Z"
  },
  {
    "file": "10-adopted-schema-tables.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "grep",
      "-c",
      "-E",
      "^CREATE (UNLOGGED )?TABLE ",
      "db/schema.sql"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:11Z"
  },
  {
    "file": "11-adopted-schema-policies.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "grep",
      "-c",
      "-E",
      "^CREATE POLICY ",
      "db/schema.sql"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:11Z"
  },
  {
    "file": "12-main-query.txt",
    "cwd": "/wpmgr@2c471d2/apps/api",
    "argv": [
      "docker",
      "--context",
      "remote-dev-container",
      "exec",
      "wpmgr-blog-pg16",
      "psql",
      "-U",
      "wpmgr",
      "-d",
      "replay",
      "-v",
      "ON_ERROR_STOP=1",
      "-c",
      "PREPARE q AS -- name: GetBackupScheduleForSite :one\n\n\nSELECT id, tenant_id, site_id, cadence, kind, enabled, retention_days, monthly_archive_keep, run_hour, run_minute, day_of_week, day_of_month, frequency_hours, keep_last, incremental_enabled, base_window_days, notify_on_completion, notify_recipients, backup_components, exclude_paths, exclude_extensions, exclude_file_size_mb, include_core, next_run_at, last_run_at, created_at, updated_at FROM backup_schedules\nWHERE tenant_id = $1 AND site_id = $2\n;"
    ],
    "env": [],
    "exit_code": 1,
    "observed_at": "2026-09-28T09:19:11Z"
  },
  {
    "file": "13-adopted-query.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "docker",
      "--context",
      "remote-dev-container",
      "exec",
      "wpmgr-blog-pg16",
      "psql",
      "-U",
      "wpmgr",
      "-d",
      "replay",
      "-v",
      "ON_ERROR_STOP=1",
      "-c",
      "PREPARE q AS -- name: GetBackupScheduleForSite :one\n\n\nSELECT id, tenant_id, site_id, cadence, kind, enabled, retention_days, monthly_archive_keep, run_hour, run_minute, day_of_week, day_of_month, frequency_hours, keep_last, incremental_enabled, base_window_days, next_run_at, last_run_at, created_at, updated_at FROM backup_schedules\nWHERE tenant_id = $1 AND site_id = $2\n;"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:12Z"
  },
  {
    "file": "14-adopted-atlas-validate.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "validate",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:14Z"
  },
  {
    "file": "15-adopted-atlas-diff.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "diff",
      "probe",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:19:44Z"
  },
  {
    "file": "16-adopted-ptah-diff.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "ptah-compat",
      "migrate",
      "diff",
      "probe",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL",
      "PTAH_DEV_SERVER_DISPOSABLE"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:20:35Z"
  },
  {
    "file": "17-policy-atlas-diff.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "diff",
      "site_scope",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:22:55Z"
  },
  {
    "file": "18-policy-atlas-status.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "git",
      "status",
      "--porcelain",
      "--",
      "migrations"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:23:48Z"
  },
  {
    "file": "19-policy-ptah-diff.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "ptah-compat",
      "migrate",
      "diff",
      "site_scope",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL",
      "PTAH_DEV_SERVER_DISPOSABLE"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:23:49Z"
  },
  {
    "file": "20-policy-ptah-status.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "git",
      "status",
      "--porcelain",
      "--",
      "migrations"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:26:06Z"
  },
  {
    "file": "22-policy-ptah-diff-again.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "ptah-compat",
      "migrate",
      "diff",
      "site_scope_again",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL",
      "PTAH_DEV_SERVER_DISPOSABLE"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:26:06Z"
  },
  {
    "file": "23-policy-atlas-validate.txt",
    "cwd": "/wpmgr@8b81b3e/apps/api",
    "argv": [
      "atlas",
      "migrate",
      "validate",
      "--env",
      "local"
    ],
    "env": [
      "ATLAS_DEV_URL"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:28:22Z"
  },
  {
    "file": "24-guard-in-sync.txt",
    "cwd": "/wpmgr@bc7fc30",
    "argv": [
      "bash",
      "scripts/check-schema-drift.sh"
    ],
    "env": [
      "ATLAS_DEV_URL",
      "PTAH_DEV_SERVER_DISPOSABLE",
      "WPMGR_PTAH_COMPAT"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:28:52Z"
  },
  {
    "file": "25-guard-hash.txt",
    "cwd": "/wpmgr@bc7fc30/apps/api",
    "argv": [
      "ptah-compat",
      "migrate",
      "hash",
      "--dir",
      "file://migrations"
    ],
    "env": [],
    "exit_code": 0,
    "observed_at": "2026-09-28T09:31:10Z"
  },
  {
    "file": "26-guard-drift.txt",
    "cwd": "/wpmgr@bc7fc30",
    "argv": [
      "bash",
      "scripts/check-schema-drift.sh"
    ],
    "env": [
      "ATLAS_DEV_URL",
      "PTAH_DEV_SERVER_DISPOSABLE",
      "WPMGR_PTAH_COMPAT"
    ],
    "exit_code": 1,
    "observed_at": "2026-09-28T09:31:10Z"
  },
  {
    "file": "27-go-install.txt",
    "cwd": "/lab",
    "argv": [
      "go",
      "install",
      "ptah.run/cmd/ptah-compat@v0.10.0"
    ],
    "env": [
      "GOBIN"
    ],
    "exit_code": 0,
    "observed_at": "2026-09-28T10:02:10Z",
    "note": "Go 1.27.1; the version line is the installed binary's `ptah-compat version`"
  }
]
