{
  "schema_version": 1,
  "measured_at": "2026-10-17T18:42:19.288768+00:00",
  "kind": "local-functional-verification-and-sequential-http-observation",
  "environment": {
    "host": "Windows with Docker Desktop / Linux containers on WSL2",
    "not_a_vps": true,
    "not_n1_actual_environment": true,
    "versions": {
      "wordpress": "7.1.3",
      "php": "8.3.35",
      "mariadb": "mariadb from 12.3.3-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using  EditLine wrapper",
      "docker_engine": "29.8.2",
      "docker_compose": "5.5.1",
      "mariadb_server": "12.3.3-MariaDB-ubu2404",
      "wp_cli": "2.12.0"
    },
    "images": [
      {
        "tag_at_acquisition": "mariadb:lts",
        "id": "sha256:99c125f103f5d081ebbc9ffe064e63daf7f688ac33a5f7f29af2d7260a96debf",
        "repo_digests": [
          "mariadb@sha256:99c125f103f5d081ebbc9ffe064e63daf7f688ac33a5f7f29af2d7260a96debf"
        ]
      },
      {
        "tag_at_acquisition": "wordpress:latest",
        "id": "sha256:81a34254acaa6ff3b9a67268c2745e9a041c4094cbe5ccd35b75ed3bbdc033b5",
        "repo_digests": [
          "wordpress@sha256:81a34254acaa6ff3b9a67268c2745e9a041c4094cbe5ccd35b75ed3bbdc033b5"
        ]
      },
      {
        "tag_at_acquisition": "wordpress:cli",
        "id": "sha256:36243da432a0f0a3b56dc3240ecee9b159108d71305e7c064d987a20a465bfde",
        "repo_digests": [
          "wordpress@sha256:36243da432a0f0a3b56dc3240ecee9b159108d71305e7c064d987a20a465bfde"
        ]
      }
    ],
    "memory_limit_mib": {
      "wordpress": 384,
      "db": 384
    },
    "database_and_file_storage": "source and target DB and WordPress files use four separate named volumes; same Docker host",
    "database_config": [
      "image defaults"
    ],
    "external_network": "Docker bridge network; published ports are loopback-only; synthetic .invalid emails; cron disabled; no external service integration",
    "container_images_verified_after_tests": [
      {
        "service": "wp_source",
        "image_id": "sha256:81a34254acaa6ff3b9a67268c2745e9a041c4094cbe5ccd35b75ed3bbdc033b5"
      },
      {
        "service": "wp_target",
        "image_id": "sha256:81a34254acaa6ff3b9a67268c2745e9a041c4094cbe5ccd35b75ed3bbdc033b5"
      },
      {
        "service": "db_source",
        "image_id": "sha256:99c125f103f5d081ebbc9ffe064e63daf7f688ac33a5f7f29af2d7260a96debf"
      },
      {
        "service": "db_target",
        "image_id": "sha256:99c125f103f5d081ebbc9ffe064e63daf7f688ac33a5f7f29af2d7260a96debf"
      }
    ]
  },
  "fixture": {
    "seed": "20261018-small-functional-v1",
    "posts": 100,
    "published": 80,
    "draft": 20,
    "original_images": 12,
    "image_size": "64x48 PNG",
    "planned_large_fixture_used": false,
    "reason": "Functional subset, not the original 1000-image performance fixture"
  },
  "tests": [
    {
      "id": "db-only",
      "label": "DBだけでは画像の実体が戻らない",
      "trial": 1,
      "expected": "投稿100件、画像の実体は復元されない",
      "observed": "投稿100件、画像ファイル0枚、画像URLはHTTP200・text/html; charset=UTF-8",
      "passed": true
    },
    {
      "id": "full-restore",
      "label": "DBとwp-contentを別保存先へ復元",
      "trial": 1,
      "expected": "投稿・状態・本文・GUID・画像・役割・設定が保存点と一致",
      "observed": "独立DBと別ボリュームで全照合が一致",
      "passed": true
    },
    {
      "id": "url-dry-run",
      "label": "URL置換の試行でDBを変えない",
      "trial": 1,
      "expected": "試行前後の照合値が一致",
      "observed": "試行後も元の値が一致",
      "passed": true
    },
    {
      "id": "url-change",
      "label": "シリアライズ値と画像URLを置換しGUIDは維持",
      "trial": 1,
      "expected": "新URL、GUID不変、画像ハッシュ一致",
      "observed": "設定と本文のURLを変更、GUIDと画像を維持",
      "passed": true
    },
    {
      "id": "http-restore",
      "label": "復元後の閲覧と元画像取得",
      "trial": 1,
      "expected": "本文の目印と画像を取得",
      "observed": "トップHTTP200、画像HTTP200・PNGハッシュ一致",
      "passed": true
    },
    {
      "id": "recreate",
      "label": "同じ永続ボリュームを使ってコンテナを再作成",
      "trial": 1,
      "expected": "データ照合が再作成前と一致",
      "observed": "再作成後も投稿・画像・設定が一致",
      "passed": true
    },
    {
      "id": "write-after-restore",
      "label": "復元先で下書きを保存し読み戻す",
      "trial": 1,
      "expected": "保存した内容が一致",
      "observed": "管理CLIの書込みと読戻しが一致",
      "passed": true
    },
    {
      "id": "full-restore",
      "label": "DBとwp-contentを別保存先へ復元",
      "trial": 2,
      "expected": "投稿・状態・本文・GUID・画像・役割・設定が保存点と一致",
      "observed": "独立DBと別ボリュームで全照合が一致",
      "passed": true
    },
    {
      "id": "url-dry-run",
      "label": "URL置換の試行でDBを変えない",
      "trial": 2,
      "expected": "試行前後の照合値が一致",
      "observed": "試行後も元の値が一致",
      "passed": true
    },
    {
      "id": "url-change",
      "label": "シリアライズ値と画像URLを置換しGUIDは維持",
      "trial": 2,
      "expected": "新URL、GUID不変、画像ハッシュ一致",
      "observed": "設定と本文のURLを変更、GUIDと画像を維持",
      "passed": true
    },
    {
      "id": "http-restore",
      "label": "復元後の閲覧と元画像取得",
      "trial": 2,
      "expected": "本文の目印と画像を取得",
      "observed": "トップHTTP200、画像HTTP200・PNGハッシュ一致",
      "passed": true
    },
    {
      "id": "recreate",
      "label": "同じ永続ボリュームを使ってコンテナを再作成",
      "trial": 2,
      "expected": "データ照合が再作成前と一致",
      "observed": "再作成後も投稿・画像・設定が一致",
      "passed": true
    },
    {
      "id": "write-after-restore",
      "label": "復元先で下書きを保存し読み戻す",
      "trial": 2,
      "expected": "保存した内容が一致",
      "observed": "管理CLIの書込みと読戻しが一致",
      "passed": true
    },
    {
      "id": "full-restore",
      "label": "DBとwp-contentを別保存先へ復元",
      "trial": 3,
      "expected": "投稿・状態・本文・GUID・画像・役割・設定が保存点と一致",
      "observed": "独立DBと別ボリュームで全照合が一致",
      "passed": true
    },
    {
      "id": "url-dry-run",
      "label": "URL置換の試行でDBを変えない",
      "trial": 3,
      "expected": "試行前後の照合値が一致",
      "observed": "試行後も元の値が一致",
      "passed": true
    },
    {
      "id": "url-change",
      "label": "シリアライズ値と画像URLを置換しGUIDは維持",
      "trial": 3,
      "expected": "新URL、GUID不変、画像ハッシュ一致",
      "observed": "設定と本文のURLを変更、GUIDと画像を維持",
      "passed": true
    },
    {
      "id": "http-restore",
      "label": "復元後の閲覧と元画像取得",
      "trial": 3,
      "expected": "本文の目印と画像を取得",
      "observed": "トップHTTP200、画像HTTP200・PNGハッシュ一致",
      "passed": true
    },
    {
      "id": "recreate",
      "label": "同じ永続ボリュームを使ってコンテナを再作成",
      "trial": 3,
      "expected": "データ照合が再作成前と一致",
      "observed": "再作成後も投稿・画像・設定が一致",
      "passed": true
    },
    {
      "id": "write-after-restore",
      "label": "復元先で下書きを保存し読み戻す",
      "trial": 3,
      "expected": "保存した内容が一致",
      "observed": "管理CLIの書込みと読戻しが一致",
      "passed": true
    },
    {
      "id": "db-outage",
      "label": "DB停止時のHTTPとWebコンテナ状態を分ける",
      "trial": 1,
      "expected": "Webコンテナが稼働していても表示は失敗",
      "observed": "HTTP500、Web稼働=True、OOMKilled=False",
      "passed": true
    }
  ],
  "http_observations": [
    {
      "case": "home",
      "trial": 1,
      "attempts": 30,
      "failures": 0,
      "median_ms": 37.867,
      "p95_ms": 66.814,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "home",
      "trial": 2,
      "attempts": 30,
      "failures": 0,
      "median_ms": 43.621,
      "p95_ms": 71.269,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "home",
      "trial": 3,
      "attempts": 30,
      "failures": 0,
      "median_ms": 46.168,
      "p95_ms": 62.706,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "search",
      "trial": 1,
      "attempts": 30,
      "failures": 0,
      "median_ms": 56.796,
      "p95_ms": 117.475,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "search",
      "trial": 2,
      "attempts": 30,
      "failures": 0,
      "median_ms": 59.41,
      "p95_ms": 365.041,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "search",
      "trial": 3,
      "attempts": 30,
      "failures": 0,
      "median_ms": 42.884,
      "p95_ms": 126.126,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "login",
      "trial": 1,
      "attempts": 30,
      "failures": 0,
      "median_ms": 12.189,
      "p95_ms": 62.38,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "login",
      "trial": 2,
      "attempts": 30,
      "failures": 0,
      "median_ms": 17.259,
      "p95_ms": 84.535,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    },
    {
      "case": "login",
      "trial": 3,
      "attempts": 30,
      "failures": 0,
      "median_ms": 12.383,
      "p95_ms": 34.601,
      "method": "sequential urllib; fresh urlopen per request; no concurrent clients"
    }
  ],
  "limits": [
    "One physical host; not independent VPS hosts",
    "Docker Desktop storage and local loopback differ from VPS disk and public network; do not use HTTP values for provider or storage performance claims",
    "No DNS propagation or public certificate issuance",
    "No cross-version OS/PHP/DB upgrade",
    "No authenticated browser performance or plugin/cache comparison",
    "No peak-memory requirement or 1GiB/10GiB transfer experiment",
    "Stopping the source services on the same host does not simulate losing the host, remote backup access, or a VPS reboot",
    "Browser login and cookie-authenticated REST draft/upload are functional checks; block-editor UI and authenticated performance were not tested",
    "Other work on the same PC was not excluded; local HTTP observations are not a controlled hardware or provider comparison"
  ],
  "passed": true,
  "extra_tests": [
    {
      "id": "serialized-length",
      "label": "長さの違うURLをシリアライズ値へ置換",
      "trial": 1,
      "expected": "配列と日本語を維持して新URLを読める",
      "observed": {
        "url": "http://127.0.0.1:18082/rehearsal-long-path/",
        "label": "日本語🌱"
      },
      "passed": true
    },
    {
      "id": "serialized-length",
      "label": "長さの違うURLをシリアライズ値へ置換",
      "trial": 2,
      "expected": "配列と日本語を維持して新URLを読める",
      "observed": {
        "url": "http://127.0.0.1:18082/rehearsal-long-path/",
        "label": "日本語🌱"
      },
      "passed": true
    },
    {
      "id": "serialized-length",
      "label": "長さの違うURLをシリアライズ値へ置換",
      "trial": 3,
      "expected": "配列と日本語を維持して新URLを読める",
      "observed": {
        "url": "http://127.0.0.1:18082/rehearsal-long-path/",
        "label": "日本語🌱"
      },
      "passed": true
    },
    {
      "id": "hash-detects-corruption",
      "label": "同じ件数・HTTP200でも画像の変更を検出",
      "trial": 1,
      "expected": "件数不変、HTTP200、ハッシュ不一致",
      "observed": {
        "same_count": true,
        "http": 200,
        "hash_differs": true
      },
      "passed": true
    },
    {
      "id": "after-backup-write",
      "label": "保存点の後に作った下書きは古いDBの復元で失う",
      "trial": 1,
      "expected": "保存時点の100件が戻り、後の下書きはない",
      "observed": {
        "fixture_posts": 100,
        "later_draft_count": 0
      },
      "passed": true
    },
    {
      "id": "source-offline",
      "label": "元のWebとDBを止めて保存物から復元",
      "trial": 1,
      "expected": "元のサービスは停止、復元先の投稿と画像が読める",
      "observed": {
        "source_web_running": false,
        "source_db_running": false,
        "http": 200,
        "image_http": 200,
        "same_files": true
      },
      "passed": true
    },
    {
      "id": "stack-restart",
      "label": "WebとDBを停止後に再開して照合",
      "trial": 1,
      "expected": "同じ永続保存先でデータ一致",
      "observed": "投稿・画像・設定・役割が一致",
      "passed": true
    }
  ],
  "completed_at": "2026-10-17T18:45:18.855Z",
  "browser_tests": [
    {
      "id": "browser-login",
      "label": "復元先でブラウザーから管理画面へログイン",
      "trial": 1,
      "expected": "管理画面を表示",
      "observed": "新しいブラウザーセッションで管理画面へ到達",
      "passed": true
    },
    {
      "id": "cookie-rest-draft",
      "label": "ログインCookieでREST APIの下書きを保存・読戻し",
      "trial": 1,
      "expected": "日本語を含む保存内容と状態が一致",
      "observed": "認証後のREST APIで下書き作成・読戻しが一致",
      "passed": true
    },
    {
      "id": "cookie-rest-upload",
      "label": "認証後のREST APIで画像を追加し取得して照合",
      "trial": 1,
      "expected": "元PNGのSHA-256が一致",
      "observed": "画像追加後のHTTP取得と元画像のハッシュが一致",
      "passed": true
    }
  ],
  "db_only_http": {
    "status": 200,
    "elapsed_ms": 986.018,
    "bytes": 85648,
    "content_type": "text/html; charset=UTF-8",
    "final_url": "http://127.0.0.1:18082/wp-content/uploads/2026/10/fixture-01.png/",
    "sha256": "8aa669523e5b42034f784bf063a520a04ecc524410fccc7f0b863606b31cd993"
  },
  "preparation_notes": [
    "Retained DB volumes had system tables but WordPress database/users had not been initialized; initialized isolated lab credentials before tests.",
    "Docker internal network did not expose published ports in this environment; recreated only this project network as bridge with loopback-only published ports.",
    "The initial expected HTTP404 for a missing image was incorrect: WordPress redirected to HTML with HTTP200. Recorded file absence, response type, and hash instead.",
    "An unsupported WP-CLI JSON output option was removed before completing the three repeat sequences. Partial preparation runs are not included as completed sequences.",
    "After DB restart, the original 30-second wait expired before the server was ready. HTTP200 was verified after readiness and the observation stage resumed; recovery time was not benchmarked.",
    "Browser login passed on the first attempt; nonce renewal initially used POST and returned400. Switched the instrumentation to GET, then completed the login, REST draft, and upload sequence."
  ]
}
