{
  "file": "F13-bash.md",
  "bullet": "Scope isolation (`F13.scoped-isolation`).",
  "ids": [
    "F13.scoped-isolation"
  ],
  "line": 635,
  "script": "control-agent-server ws start /sockets/bash-events --name f13-iso --duration 120 \\\n  --send '{\"command\": \"echo QA_F13_ISO_PROBE\"}'\ncontrol-agent-server ws read f13-iso --kinds BashOutput --contains QA_F13_ISO_PROBE --wait 15 --show 0\nMARK=QA_F13_ISO_$RANDOM\nISO_CMD=$(control-agent-server api POST \"<redacted:session-cookie>/$CID/bash/execute_bash_command\" \\\n  --json \"{\\\"command\\\": \\\"echo $MARK\\\"}\" --check exit_code eq 0 --field command_id)\nFLUSH_CMD=$(control-agent-server api POST /api/bash/execute_bash_command \\\n  --json '{\"command\": \"echo QA_F13_FLUSH\"}' --field command_id)\ncontrol-agent-server ws stop f13-iso --kinds BashOutput --contains \"$FLUSH_CMD\" --wait 15 --show 0 \\\n  --save F13.scoped-isolation/global-socket\ncontrol-agent-server ws read f13-iso --contains \"$MARK\" --expect-none --show 0\ncontrol-agent-server ws read f13-iso --contains \"$ISO_CMD\" --expect-none --show 0\ncontrol-agent-server api GET /api/bash/bash_events/search --query kind__eq=BashCommand \\\n  --query sort_order=TIMESTAMP_DESC --check items not-contains \"$MARK\" --save F13.scoped-isolation/global-search\ncontrol-agent-server api GET \"/api/bash/bash_events/$ISO_CMD\" --expect 404\ncontrol-agent-server api POST \"/api/bash/bash_commands/$ISO_CMD/stop\" --expect 404\ncontrol-agent-server api GET \"<redacted:session-cookie>/$CID2/bash/bash_events/search\" --check items len-eq 0 \\\n  --save F13.scoped-isolation/other-conversation\ncontrol-agent-server api GET \"<redacted:session-cookie>/$CID2/bash/bash_events/$ISO_CMD\" --expect 404\ncontrol-agent-server state ls \"bash_events/*_BashCommand_$ISO_CMD\" --conversation \"$CID\" --expect-count 1\ncontrol-agent-server state ls \"server/workspace/bash_events/*$ISO_CMD*\" --expect-count 0\n",
  "exit_code": 0,
  "elapsed_ms": 32850,
  "failed_line": null,
  "failed_command": null,
  "stdout": "{\n  \"ok\": true,\n  \"capture\": \"f13-iso\",\n  \"out\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/captures/f13-iso.jsonl\",\n  \"hint\": \"`control-agent-server ws stop f13-iso` (or `ws read f13-iso`) after triggering the action\"\n}\n{\n  \"ok\": true,\n  \"capture\": \"f13-iso\",\n  \"out\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/captures/f13-iso.jsonl\",\n  \"opened\": true,\n  \"stopped\": null,\n  \"frames\": 2,\n  \"kinds\": {\n    \"BashCommand\": 1,\n    \"BashOutput\": 1\n  },\n  \"close\": null,\n  \"matching\": 1,\n  \"matching_kinds\": [\n    \"BashOutput\"\n  ],\n  \"frames_shown\": []\n}\n{\n  \"ok\": true,\n  \"capture\": \"f13-iso\",\n  \"out\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/captures/f13-iso.jsonl\",\n  \"opened\": true,\n  \"stopped\": \"stopped\",\n  \"frames\": 4,\n  \"kinds\": {\n    \"BashCommand\": 2,\n    \"BashOutput\": 2\n  },\n  \"close\": null,\n  \"matching\": 1,\n  \"matching_kinds\": [\n    \"BashOutput\"\n  ],\n  \"frames_shown\": [],\n  \"saved\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/evidence/F13.scoped-isolation/global-socket.json\"\n}\n{\n  \"ok\": true,\n  \"capture\": \"f13-iso\",\n  \"out\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/captures/f13-iso.jsonl\",\n  \"opened\": true,\n  \"stopped\": \"stopped\",\n  \"frames\": 4,\n  \"kinds\": {\n    \"BashCommand\": 2,\n    \"BashOutput\": 2\n  },\n  \"close\": null,\n  \"matching\": 0,\n  \"matching_kinds\": [],\n  \"frames_shown\": []\n}\n{\n  \"ok\": true,\n  \"capture\": \"f13-iso\",\n  \"out\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/captures/f13-iso.jsonl\",\n  \"opened\": true,\n  \"stopped\": \"stopped\",\n  \"frames\": 4,\n  \"kinds\": {\n    \"BashCommand\": 2,\n    \"BashOutput\": 2\n  },\n  \"close\": null,\n  \"matching\": 0,\n  \"matching_kinds\": [],\n  \"frames_shown\": []\n}\n{\n  \"ok\": true,\n  \"status\": 200,\n  \"request\": {\n    \"method\": \"GET\",\n    \"path\": \"/api/bash/bash_events/search\",\n    \"query\": [\n      [\n        \"kind__eq\",\n        \"BashCommand\"\n      ],\n      [\n        \"sort_order\",\n        \"TIMESTAMP_DESC\"\n      ]\n    ],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 200,\n    \"headers\": {\n      \"content-length\": \"4320\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": {\n      \"items\": [\n        {\n          \"command\": \"echo QA_F13_FLUSH\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"84291e6e66214ab4b858b9694162d674\",\n          \"timestamp\": \"2026-10-13T02:20:54.474561Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_ISO_PROBE\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"7c8ad94417d64b5ba465f4fa406fcf4e\",\n          \"timestamp\": \"2026-10-13T02:20:46.781392Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"sleep 5; echo QA_F13_OTHER\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"8b6916d2f5ea4096aff57634ee2525e9\",\n          \"timestamp\": \"2026-10-13T02:19:26.258170Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"sleep 600.6366; echo QA_F13_NOT_REACHED\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"d95112d66bbf4d88bb89fa2acb3ce997\",\n          \"timestamp\": \"2026-10-13T02:19:24.566631Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_STARTED; sleep 30.20676; echo QA_F13_NOT_REACHED\",\n          \"cwd\": null,\n          \"timeout\": 2,\n          \"id\": \"13b9d981c44e40bab5688452010d5daa\",\n          \"timestamp\": \"2026-10-13T02:19:20.695774Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"yes a | head -c 1100000; echo QA_F13_TAIL\",\n          \"cwd\": null,\n          \"timeout\": 60,\n          \"id\": \"712d370dd62844a1a33ef6a64939e9e6\",\n          \"timestamp\": \"2026-10-13T02:19:19.338619Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"yes a | head -c 1100000; echo QA_F13_TAIL\",\n          \"cwd\": null,\n          \"timeout\": 60,\n          \"id\": \"ec808a559a7348dea4e8bc97283d1f7c\",\n          \"timestamp\": \"2026-10-13T02:19:13.899460Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"yes a | head -c 1100000; echo QA_F13_TAIL\",\n          \"cwd\": null,\n          \"timeout\": 60,\n          \"id\": \"4f6e2e2e2be54b01b5b0dada63d44561\",\n          \"timestamp\": \"2026-10-13T02:19:03.594583Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_TZ\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"bfc7832fd6024a4593fafbd00e6c799e\",\n          \"timestamp\": \"2026-10-13T02:19:01.682680Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_PAGE_3\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"d64f1fb89803495ea3eea0e95ec7d0bc\",\n          \"timestamp\": \"2026-10-13T02:18:47.495003Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_PAGE_2\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"7040d6a0305b4399a9cf557038429c85\",\n          \"timestamp\": \"2026-10-13T02:18:46.574676Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_PAGE_1\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"26ffe13c99d5450ea62dcccd8a09709a\",\n          \"timestamp\": \"2026-10-13T02:18:45.301604Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_CAP_AFTER\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"e1393dded254452eb92ce27f97a4c013\",\n          \"timestamp\": \"2026-10-13T02:18:34.749976Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_CAP_SLOT_0\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"2c8f9b78f59a4ddcbcedfd459449b5af\",\n          \"timestamp\": \"2026-10-13T02:18:31.231729Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_CAP_FULL\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"db67ba89d62747d8a9037161126bc6e5\",\n          \"timestamp\": \"2026-10-13T02:18:31.083855Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_NO_REPLAY\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"63619c229866443fb60e920d6ec6a132\",\n          \"timestamp\": \"2026-10-13T02:18:28.379933Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_WS_CMD\",\n          \"cwd\": null,\n          \"timeout\": 30,\n          \"id\": \"9c54f469dba94fc483f7e5e87953658b\",\n          \"timestamp\": \"2026-10-13T02:18:24.896056Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_LIVE\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"e81d9ba15d8f401ab20957b2f0f37e3b\",\n          \"timestamp\": \"2026-10-13T02:18:16.945923Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_WS_PROBE\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"c3695e6c411941429b002f8ec411df20\",\n          \"timestamp\": \"2026-10-13T02:18:15.493725Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"sleep 3; echo QA_F13_ASYNC\",\n          \"cwd\": null,\n          \"timeout\": 30,\n          \"id\": \"9e56d99008964c34a11d2aa09aa8d941\",\n          \"timestamp\": \"2026-10-13T02:18:08.788918Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo keys=${OH_SESSION_API_KEYS_0:-unset} legacy=${SESSION_API_KEY:-unset} secret=${OH_SECRET_KEY:-unset} agent=$AI_AGENT home=$HOME\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"ba757cf10b6f4174ba81901eb5cd06c9\",\n          \"timestamp\": \"2026-10-13T02:17:45.716715Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"pwd\",\n          \"cwd\": \"/nonexistent/qa-f13\",\n          \"timeout\": 300,\n          \"id\": \"bba839b9263b42c0b162068466cce5d4\",\n          \"timestamp\": \"2026-10-13T02:17:23.101319Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"pwd\",\n          \"cwd\": \"/tmp\",\n          \"timeout\": 300,\n          \"id\": \"502fe07d4f804b01ab5f4a2191caf8a0\",\n          \"timestamp\": \"2026-10-13T02:17:22.807938Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"pwd\",\n          \"cwd\": null,\n          \"timeout\": 300,\n          \"id\": \"ed145355bd744a28b6a87c76d6e179ce\",\n          \"timestamp\": \"2026-10-13T02:17:22.514296Z\",\n          \"kind\": \"BashCommand\"\n        },\n        {\n          \"command\": \"echo QA_F13_OUT; echo QA_F13_ERR >&2; exit 3\",\n          \"cwd\": null,\n          \"timeout\": 30,\n          \"id\": \"7116cdaadc284f8cb3c9c699b64ef1d9\",\n          \"timestamp\": \"2026-10-13T02:17:20.912976Z\",\n          \"kind\": \"BashCommand\"\n        }\n      ],\n      \"next_page_id\": null\n    },\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 74,\n  \"checks\": [\n    {\n      \"check\": \"items not-contains QA_F13_ISO_28806\",\n      \"ok\": true,\n      \"actual\": \"[{\\\"command\\\": \\\"echo QA_F13_FLUSH\\\", \\\"cwd\\\": null, \\\"timeout\\\": 300, \\\"id\\\": \\\"84291e6e66214ab4b858b9694162d674\\\", \\\"timestamp\\\": \\\"2026-10-13T02:20:54.474561Z\\\", \\\"kind\\\": \\\"BashCommand\\\"}, {\\\"command\\\": \\\"echo QA_F13_IS\\u2026\"\n    }\n  ],\n  \"saved\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/evidence/F13.scoped-isolation/global-search.json\"\n}\n{\n  \"ok\": true,\n  \"status\": 404,\n  \"request\": {\n    \"method\": \"GET\",\n    \"path\": \"/api/bash/bash_events/4ac2f1196d2942bca7b87302e9ea9a72\",\n    \"query\": [],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 404,\n    \"headers\": {\n      \"content-length\": \"22\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": {\n      \"detail\": \"Not Found\"\n    },\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 406\n}\n{\n  \"ok\": true,\n  \"status\": 404,\n  \"request\": {\n    \"method\": \"POST\",\n    \"path\": \"/api/bash/bash_commands/4ac2f1196d2942bca7b87302e9ea9a72/stop\",\n    \"query\": [],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 404,\n    \"headers\": {\n      \"content-length\": \"22\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": {\n      \"detail\": \"Not Found\"\n    },\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 582\n}\n{\n  \"ok\": true,\n  \"status\": 200,\n  \"request\": {\n    \"method\": \"GET\",\n    \"path\": \"<redacted:session-cookie>/a174b3ab-cf19-48e6-ba54-4b81caeb267e/bash/bash_events/search\",\n    \"query\": [],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 200,\n    \"headers\": {\n      \"content-length\": \"32\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": {\n      \"items\": [],\n      \"next_page_id\": null\n    },\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 817,\n  \"checks\": [\n    {\n      \"check\": \"items len-eq 0\",\n      \"ok\": true,\n      \"actual\": \"[]\"\n    }\n  ],\n  \"saved\": \"/workspace/verification-artifacts/runs/20261013-021707-182d-map-f13/evidence/F13.scoped-isolation/other-conversation.json\"\n}\n{\n  \"ok\": true,\n  \"status\": 404,\n  \"request\": {\n    \"method\": \"GET\",\n    \"path\": \"<redacted:session-cookie>/a174b3ab-cf19-48e6-ba54-4b81caeb267e/bash/bash_events/4ac2f1196d2942bca7b87302e9ea9a72\",\n    \"query\": [],\n    \"auth\": \"header\",\n    \"body\": null,\n    \"files\": []\n  },\n  \"response\": {\n    \"status\": 404,\n    \"headers\": {\n      \"content-length\": \"22\",\n      \"content-type\": \"application/json\"\n    },\n    \"body\": {\n      \"detail\": \"Not Found\"\n    },\n    \"truncated\": false\n  },\n  \"elapsed_ms\": 447\n}\n{\n  \"ok\": true,\n  \"pattern\": \"bash_events/*_BashCommand_4ac2f1196d2942bca7b87302e9ea9a72\",\n  \"count\": 1,\n  \"files\": [\n    {\n      \"path\": \"server/workspace/conversations/3c1b7548f8bb4a4d9bb21b88e7da357d/bash_events/20261013022051583460_BashCommand_4ac2f1196d2942bca7b87302e9ea9a72\",\n      \"bytes\": 287,\n      \"mode\": \"0o600\"\n    }\n  ]\n}\n{\n  \"ok\": true,\n  \"pattern\": \"server/workspace/bash_events/*4ac2f1196d2942bca7b87302e9ea9a72*\",\n  \"count\": 0,\n  \"files\": []\n}\n",
  "stderr": ""
}
