{
  "schema": "router-step-facts-v1",
  "step": "STEP_050I10_RESEARCH_EXISTING_VM121_DB_CHECK_CONTRACT",
  "generated_at_utc": "20260711-143018",
  "assessment": {
    "all_ok": false,
    "decision": "STOP_STEP_050I10_RESEARCH_EXISTING_VM121_DB_CHECK_CONTRACT",
    "checks": {
      "previous_vm121_was_only_failed_check": true,
      "previous_vm101_core_passed": true,
      "previous_rollback_proven": true,
      "vm121_ssh_and_script_ok": false,
      "vm121_remote_completed": false,
      "vm121_remote_no_errors": false,
      "postgres_candidate_found": true,
      "postgres_container_identified": true,
      "database_ping": true,
      "required_tables_exist": false,
      "enabled_peers_five": false,
      "lease_rows_five": false,
      "pending_jobs_zero": false
    },
    "failed_checks": [
      "vm121_ssh_and_script_ok",
      "vm121_remote_completed",
      "vm121_remote_no_errors",
      "required_tables_exist",
      "enabled_peers_five",
      "lease_rows_five",
      "pending_jobs_zero"
    ],
    "classification": {
      "previous_vm121_failure": "DATABASE_SCHEMA_OR_OBJECT_FAILURE",
      "previous_vm121_stderr": "ERROR:  relation \"jobs\" does not exist\nLINE 1: SELECT count(*) FROM jobs WHERE status='pending';\n                             ^",
      "current_vm121_stderr": ""
    },
    "discovered_contract": {
      "postgres_container": "wgaccess-postgres",
      "postgres_user": "wg_access",
      "postgres_database": "wg_access",
      "enabled_peers": null,
      "lease_rows": null,
      "pending_jobs": null,
      "related_tool_count": null
    },
    "next_step": "STEP_050I11_REUSE_STEP050I9_VM101_ENABLE_COMMIT_WITH_PROVEN_VM121_CHECK"
  },
  "mode": "READ_ONLY_EXISTING_TOOL_RESEARCH",
  "safety": {
    "production_modified": false,
    "vm100_modified": false,
    "vm101_modified": false,
    "vm121_modified": false,
    "refresh_ran": false,
    "rebalance_apply_ran": false,
    "direct_failopen_enabled": false
  },
  "source": {
    "previous_step050i9": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-141947_step050i9_full_audit_minimal_enable_commit_dryrun/"
  },
  "artifacts": {
    "step_script": "step.sh",
    "vm121_script": "vm121.sh",
    "previous_analysis": "previous-step-analysis.json",
    "prior_methods": "prior-vm121-methods.txt"
  },
  "publish": {
    "trycf_report": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-143018_step050i10_research_existing_vm121_db_check_contract/",
    "report_txt": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-143018_step050i10_research_existing_vm121_db_check_contract/report.txt",
    "facts_json": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-143018_step050i10_research_existing_vm121_db_check_contract/facts.json",
    "architecture_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-143018_local_architecture_plan_hmn_egress_recovery_step050i10/",
    "xs_map": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-120734_xs_map_audit_repair_publish/",
    "global_project_plan": "https://helena-background-beam-harry.trycloudflare.com/r/e94a0859747d7b96f29c7fdafc2d0351ba603bb0a7e9e5a4/20260711-123348_global_project_plan_wg_paid/"
  }
}
