{
  "artifact": "gcp_db_first_live_deploy_restart",
  "generated_at_utc": "2026-07-14T10:50:13Z",
  "status": "pass",
  "source": {
    "database_first_merge_commit": "08371bf2a0461536c112e1235a7229b52ed270cc",
    "database_first_pull_request": 144,
    "fail_closed_wrapper_commit": "8451c51",
    "repository": "living-ip/teleo-infrastructure"
  },
  "deployment": {
    "compute": "teleo-prod-1",
    "service": "leoclean-gcp-prod-parallel.service",
    "database": "teleo_canonical",
    "database_classification": "GCP staging; not promoted or cut over",
    "files": {
      "cloudsql_memory_tool.py": {
        "before_sha256": "f4396298405b1cbc92590e148b6272c66bb0e8461178edc3ffcfd02bfed69ab4",
        "after_sha256": "7d2074a0fc5f0d48fbf8f7905a72ead8f2696c86a041fa43e078fff5500baa51",
        "owner": "teleo:teleo",
        "mode": "0755"
      },
      "teleo-kb": {
        "before_sha256": "b988079ff2f23b962c40d4c6c9f20c0b85a7bdb0ee675ae146cf36f18ea6529a",
        "after_sha256": "63cf36cc5840f51a832e7728a4e818d981e106629e44a9f44b7fe8fed6f8a46c",
        "owner": "teleo:teleo",
        "mode": "0755"
      },
      "teleo-kb-bridge/SKILL.md": {
        "before_sha256": "523bf6975523c7ea94c043b9e60be3375b122860b951f78ad13dad10fe822de8",
        "after_sha256": "703fe9aa681ab3aa88dffa4b8c9cf2282329fe6c8f9414ad2d675fb0599679b2",
        "owner": "teleo:teleo",
        "mode": "0644"
      }
    }
  },
  "restart": {
    "before": {
      "ActiveState": "active",
      "SubState": "running",
      "MainPID": "148735",
      "NRestarts": "0",
      "ExecMainStartTimestamp": "Thu 2026-07-09 07:00:04 UTC"
    },
    "after": {
      "ActiveState": "active",
      "SubState": "running",
      "MainPID": "304036",
      "NRestarts": "0",
      "ExecMainStartTimestamp": "Tue 2026-07-14 10:40:17 UTC"
    },
    "controlled_restart_completed": true,
    "rollback_used": false
  },
  "integration_regression": {
    "detected_live": true,
    "symptom": "The old auto-mode wrapper used a full receipted status call as a 30-second health probe; the stronger read exceeded that bound and the wrapper fell through to a different local tool.",
    "repair": "Supported GCP knowledge commands now route directly to Cloud SQL and fail closed on errors instead of changing databases.",
    "regression_tests": 2,
    "full_repository_tests": {
      "passed": 1240,
      "failed": 0
    }
  },
  "post_restart_status": {
    "backend": "cloudsql:teleo-pgvector-standby/teleo_canonical/public+kb_stage primary; teleo_kb/teleo_restore fallback",
    "audit_fallback_available": true,
    "canonical_counts": {
      "claims": 1837,
      "sources": 4145,
      "claim_edges": 4916,
      "claim_evidence": 4670,
      "kb_proposals": 26
    },
    "retrieval_receipt": {
      "schema": "livingip.teleoKbRetrievalReceipt.v1",
      "semantic_context_sha256": "a428a88de299d9a20a11d614f1edf7b41cbbe78ec5bb7ff4455b6de525252641",
      "artifact_state_sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945",
      "read_consistency_status": "stable_content_across_wal_change_retry",
      "attempts": 2,
      "database": "teleo_canonical"
    }
  },
  "post_restart_search": {
    "query": "AI sandbagging M&A liability",
    "command": "search",
    "backend": "cloudsql:teleo-pgvector-standby/teleo_canonical/public+kb_stage",
    "expected_claim_found": "2a7ae257-d01d-46f4-b813-63f81bb9c7c7",
    "expected_sources": [
      {
        "id": "15740795-ecc6-40fa-9a01-3d6bc7c54f79",
        "hash": "341a7685cd2909ae821d8e464fe0d4fdfbb0cadccf546ccfd4ccaf037aa9f646"
      },
      {
        "id": "261c3532-fa32-47d8-a5b5-6cc45035c267",
        "hash": "9fcd40191449fe0843178e08120fb3c86fc2b35633594aee60e747ca3918cfa5"
      }
    ],
    "retrieval_receipt": {
      "schema": "livingip.teleoKbRetrievalReceipt.v1",
      "semantic_context_sha256": "9d2b81918c563a5703794e7e1c52bcafdfc3a4de917eb7f31f36f33f0538ef92",
      "artifact_state_sha256": "d473c2ab362021dcf0174a4ed4aedfcd95acd705e05b63eaa3f2ee4a9b53bde7",
      "read_consistency_status": "stable_content_across_wal_change_retry",
      "attempts": 2,
      "database": "teleo_canonical"
    }
  },
  "safety": {
    "telegram_message_sent": false,
    "canonical_database_write_attempted": false,
    "database_promoted_or_cut_over": false,
    "public_cloud_sql_access_enabled": false,
    "post_restart_model_turn_run": false
  },
  "claim_ceiling": {
    "proven": "Merged database-first helper and skill deployment, fail-closed Cloud SQL routing, controlled GCP service restart, and post-restart live status/search receipts.",
    "not_proven": [
      "post-restart model reasoning turn",
      "Telegram-visible delivery",
      "canonical proposal apply",
      "production promotion or cutover",
      "continuous VPS-to-GCP replication"
    ]
  }
}
