Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

258 KB
Raw Blame
{
 "claude installIn: no file": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: no home folder": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: empty file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": ""
   }
  }
 },
 "claude installIn: whitespace only": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "  \n"
   }
  }
 },
 "claude installIn: malformed JSON": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{not-json"
   }
  }
 },
 "claude installIn: byte order mark": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{}"
   }
  }
 },
 "claude installIn: JSON null": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "null"
   }
  }
 },
 "claude installIn: JSON array": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "[]"
   }
  }
 },
 "claude installIn: JSON string": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "\"text\""
   }
  }
 },
 "claude installIn: JSON number": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "42"
   }
  }
 },
 "claude installIn: hooks is a string": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":\"nope\",\"keep\":1}"
   }
  }
 },
 "claude installIn: hooks is an array": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":[]}"
   }
  }
 },
 "claude installIn: hooks is null": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":null}"
   }
  }
 },
 "claude installIn: an event is not a list": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":{\"SessionStart\":{\"a\":1}}}"
   }
  }
 },
 "claude installIn: odd blocks": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":{\"SessionStart\":[null,\"text\",{\"hooks\":\"no\"},{\"hooks\":[null,{}]}]}}"
   }
  }
 },
 "claude installIn: a command that is not text": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":{\"SessionStart\":[{\"hooks\":[{\"type\":\"command\",\"command\":5}]}]}}"
   }
  }
 },
 "claude installIn: duplicate keys": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: foreign hooks only": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: our old hook": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: our old hook beside foreign hooks": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours current on some events, old or missing on others": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours current": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours current, minified": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours current before foreign hooks": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours current with another timeout": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours twice on an event": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours twice, the first old": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: our block led by a foreign hook": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          },\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          },\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          },\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          },\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          },\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: our block with another matcher": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ],\n        \"matcher\": \"other\"\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ],\n        \"matcher\": \"other\"\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ],\n        \"matcher\": \"other\"\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ],\n        \"matcher\": \"other\"\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ],\n        \"matcher\": \"other\"\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: our block missing its matcher": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: ours current for another port": {
  "runs": [
   {
    "logs": [
     "log [hooks] updated (path/port changed) → <script> --port 19473 in <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: a symlink to foreign settings": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "link",
    "target": "<root>/elsewhere/real.json"
   },
   "elsewhere/real.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: a symlink to current settings": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "link",
    "target": "<root>/elsewhere/real.json"
   },
   "elsewhere/real.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: a dangling symlink": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "link",
    "target": "<root>/elsewhere/missing.json"
   }
  }
 },
 "claude installIn: a symlink into a missing folder": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "link",
    "target": "<root>/elsewhere/gone/missing.json"
   }
  }
 },
 "claude installIn: a read-only file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "444",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: a read-only file, current": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed",
     "warn [hooks] Agent Messages' hook not installed in <root>/moved/claude-work/settings.json (messages reach its agents once they are idle): Hook preparation is waiting: the settings file is read-only"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed",
     "warn [hooks] Agent Messages' hook not installed in <root>/moved/claude-work/settings.json (messages reach its agents once they are idle): Hook preparation is waiting: the settings file is read-only"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "444",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: an unreadable file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: Error EACCES open <root>/moved/claude-work/settings.json"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: Error EACCES open <root>/moved/claude-work/settings.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "200",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: a read-only folder": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: Error EACCES access <root>/moved/claude-work"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: Error EACCES access <root>/moved/claude-work"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "555"
   }
  }
 },
 "claude installIn: a read-only folder holding a writable file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: Error EACCES access <root>/moved/claude-work"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: Error EACCES access <root>/moved/claude-work"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "555"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: a private file": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "600",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "claude installIn: the file is a folder": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "dir",
    "mode": "755"
   }
  }
 },
 "claude installIn: a temporary file left by this process": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/moved/claude-work/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/claude-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/claude-work/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   },
   "moved/claude-work/settings.json.<pid>.tmp": {
    "type": "file",
    "mode": "600",
    "text": "junk"
   }
  }
 },
 "claude install: no file": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/home/.claude/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "claude install: no home folder": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/home/.claude/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "claude install: malformed JSON": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write settings.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{not-json"
   }
  }
 },
 "claude install: foreign hooks only": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/home/.claude/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "claude install: our old hook": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/home/.claude/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "claude install: ours current": {
  "runs": [
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "claude install: a symlink to foreign settings": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Claude session + turn (Stop/StopFailure) hooks → <root>/home/.claude/settings.json",
     "log [hooks] (takes effect on the next claude session start)"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Claude session + turn (Stop/StopFailure) hooks already installed"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.claude": {
    "type": "dir",
    "mode": "755"
   },
   "home/.claude/settings.json": {
    "type": "link",
    "target": "<root>/elsewhere/real.json"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "elsewhere/real.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"SessionEnd\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"Stop\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"StopFailure\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command claude 19473>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  },\n  \"permissions\": {\n    \"allow\": [\n      \"Bash(harness --help)\",\n      \"Bash(harness -h)\",\n      \"Bash(<root>/home/.local/bin/harness --help)\",\n      \"Bash(harness whoami:*)\",\n      \"Bash(<root>/home/.local/bin/harness whoami:*)\",\n      \"mcp__harness__harness_whoami\",\n      \"mcp__plugin_harness_harness__harness_whoami\",\n      \"Bash(harness ps:*)\",\n      \"Bash(<root>/home/.local/bin/harness ps:*)\",\n      \"mcp__harness__harness_list\",\n      \"mcp__plugin_harness_harness__harness_list\",\n      \"Bash(harness search:*)\",\n      \"Bash(<root>/home/.local/bin/harness search:*)\",\n      \"mcp__harness__harness_search\",\n      \"mcp__plugin_harness_harness__harness_search\",\n      \"Bash(harness machines:*)\",\n      \"Bash(<root>/home/.local/bin/harness machines:*)\",\n      \"mcp__harness__harness_machines\",\n      \"mcp__plugin_harness_harness__harness_machines\",\n      \"Bash(harness show:*)\",\n      \"Bash(<root>/home/.local/bin/harness show:*)\",\n      \"mcp__harness__harness_read\",\n      \"mcp__plugin_harness_harness__harness_read\",\n      \"Bash(harness wait:*)\",\n      \"Bash(<root>/home/.local/bin/harness wait:*)\",\n      \"mcp__harness__harness_wait\",\n      \"mcp__plugin_harness_harness__harness_wait\",\n      \"Bash(harness new:*)\",\n      \"Bash(<root>/home/.local/bin/harness new:*)\",\n      \"mcp__harness__harness_start\",\n      \"mcp__plugin_harness_harness__harness_start\",\n      \"Bash(harness close:*)\",\n      \"Bash(<root>/home/.local/bin/harness close:*)\",\n      \"mcp__harness__harness_close\",\n      \"mcp__plugin_harness_harness__harness_close\",\n      \"Bash(harness send:*)\",\n      \"Bash(<root>/home/.local/bin/harness send:*)\",\n      \"mcp__harness__harness_send\",\n      \"mcp__plugin_harness_harness__harness_send\",\n      \"Bash(harness tell:*)\",\n      \"Bash(<root>/home/.local/bin/harness tell:*)\",\n      \"mcp__harness__harness_tell\",\n      \"mcp__plugin_harness_harness__harness_tell\"\n    ]\n  }\n}\n"
   }
  }
 },
 "codex installIn: no file": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: no home folder": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: empty file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": ""
   }
  }
 },
 "codex installIn: whitespace only": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "  \n"
   }
  }
 },
 "codex installIn: malformed JSON": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{not-json"
   }
  }
 },
 "codex installIn: byte order mark": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{}"
   }
  }
 },
 "codex installIn: JSON null": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "null"
   }
  }
 },
 "codex installIn: JSON array": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "[]"
   }
  }
 },
 "codex installIn: JSON string": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "\"text\""
   }
  }
 },
 "codex installIn: JSON number": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "42"
   }
  }
 },
 "codex installIn: hooks is a string": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":\"nope\",\"keep\":1}"
   }
  }
 },
 "codex installIn: hooks is an array": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":[]}"
   }
  }
 },
 "codex installIn: hooks is null": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":null}"
   }
  }
 },
 "codex installIn: an event is not a list": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":{\"SessionStart\":{\"a\":1}}}"
   }
  }
 },
 "codex installIn: odd blocks": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":{\"SessionStart\":[null,\"text\",{\"hooks\":\"no\"},{\"hooks\":[null,{}]}]}}"
   }
  }
 },
 "codex installIn: a command that is not text": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\"hooks\":{\"SessionStart\":[{\"hooks\":[{\"type\":\"command\",\"command\":5}]}]}}"
   }
  }
 },
 "codex installIn: duplicate keys": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: foreign hooks only": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: our old hook": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: our old hook beside foreign hooks": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:2:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:2:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours current on some events, old or missing on others": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours current": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours current, minified": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours current before foreign hooks": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-after\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours current with another timeout": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn timeout 30>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn timeout 30>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 30\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours twice on an event": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours twice, the first old": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: our block led by a foreign hook": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-first\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: our block with another matcher": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: our block missing its matcher": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: ours current for another port": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: a symlink to foreign settings": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "link",
    "target": "<root>/elsewhere/real.json"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "elsewhere/real.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "codex installIn: a symlink to current settings": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "link",
    "target": "<root>/elsewhere/real.json"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "elsewhere/real.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "codex installIn: a dangling symlink": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "link",
    "target": "<root>/elsewhere/missing.json"
   }
  }
 },
 "codex installIn: a symlink into a missing folder": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "link",
    "target": "<root>/elsewhere/gone/missing.json"
   }
  }
 },
 "codex installIn: a read-only file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "444",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "codex installIn: a read-only file, current": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "warn [hooks] Agent Messages' hook not installed in <root>/moved/codex-work/hooks.json (messages reach its agents once they are idle): Hook preparation is waiting: the settings file is read-only"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json",
     "warn [hooks] Agent Messages' hook not installed in <root>/moved/codex-work/hooks.json (messages reach its agents once they are idle): Hook preparation is waiting: the settings file is read-only"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "444",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: an unreadable file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: Error EACCES open <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: Error EACCES open <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "200",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "codex installIn: a read-only folder": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: Error EACCES access <root>/moved/codex-work"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: Error EACCES access <root>/moved/codex-work"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "555"
   }
  }
 },
 "codex installIn: a read-only folder holding a writable file": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: Error EACCES access <root>/moved/codex-work"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: Error EACCES access <root>/moved/codex-work"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "555"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 },
 "codex installIn: a private file": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "600",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex installIn: the file is a folder": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: HookPreparationHeld"
    ],
    "threw": null
   }
  ],
  "files": {
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/hooks.json": {
    "type": "dir",
    "mode": "755"
   }
  }
 },
 "codex installIn: a temporary file left by this process": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/moved/codex-work/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/moved/codex-work/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/moved/codex-work/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work": {
    "type": "dir",
    "mode": "755"
   },
   "moved/codex-work/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/moved/codex-work/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 installIn>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 installIn>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/moved/codex-work/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "moved/codex-work/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 installIn>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "moved/codex-work/hooks.json.<pid>.tmp": {
    "type": "file",
    "mode": "600",
    "text": "junk"
   },
   "moved/codex-work/rules": {
    "type": "dir",
    "mode": "700"
   },
   "moved/codex-work/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   }
  }
 },
 "codex install: no file": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/home/.codex/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/home/.codex/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 install>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 install>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "home/.codex/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "home/.codex/rules": {
    "type": "dir",
    "mode": "700"
   },
   "home/.codex/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "codex install: no home folder": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/home/.codex/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/home/.codex/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 install>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 install>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "home/.codex/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "home/.codex/rules": {
    "type": "dir",
    "mode": "700"
   },
   "home/.codex/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "codex install: malformed JSON": {
  "runs": [
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   },
   {
    "logs": [
     "error [hooks] failed to write Codex hooks.json: SyntaxError"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{not-json"
   }
  }
 },
 "codex install: foreign hooks only": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/home/.codex/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/home/.codex/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 install>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 install>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "home/.codex/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "home/.codex/rules": {
    "type": "dir",
    "mode": "700"
   },
   "home/.codex/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "codex install: our old hook": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/home/.codex/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/home/.codex/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 install>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 install>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "home/.codex/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"node '/opt/old/notify.mjs' --port 18473\",\n            \"timeout\": 5\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "home/.codex/rules": {
    "type": "dir",
    "mode": "700"
   },
   "home/.codex/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "codex install: ours current": {
  "runs": [
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/home/.codex/hooks.json:session_start:0:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 install>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:user_prompt_submit:0:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 install>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "home/.codex/hooks.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   },
   "home/.codex/rules": {
    "type": "dir",
    "mode": "700"
   },
   "home/.codex/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   }
  }
 },
 "codex install: a symlink to foreign settings": {
  "runs": [
   {
    "logs": [
     "log [hooks] installed Codex SessionStart/UserPromptSubmit hooks → <root>/home/.codex/hooks.json",
     "log [hooks] Codex asks to review hooks it has not seen; Harness records its own as reviewed",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml",
     "log [hooks] recorded Harness's own Codex hooks as reviewed → <root>/home/.codex/config.toml"
    ],
    "threw": null
   },
   {
    "logs": [
     "log [hooks] Codex SessionStart/UserPromptSubmit hooks already installed → <root>/home/.codex/hooks.json"
    ],
    "threw": null
   }
  ],
  "files": {
   "home/.codex": {
    "type": "dir",
    "mode": "755"
   },
   "home/.codex/config.toml": {
    "type": "file",
    "mode": "600",
    "text": "[hooks.state.\"<root>/home/.codex/hooks.json:session_start:1:0\"]\ntrusted_hash = \"<hash SessionStart command codex 19473 install>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:user_prompt_submit:1:0\"]\ntrusted_hash = \"<hash UserPromptSubmit command codex 19473 install>\"\n\n[hooks.state.\"/<session-flags>/config.toml:pre_tool_use:0:0\"]\ntrusted_hash = \"<hash shell guard>\"\n\n[hooks.state.\"<root>/home/.codex/hooks.json:post_tool_use:0:0\"]\ntrusted_hash = \"<hash PostToolUse messages>\"\n"
   },
   "home/.codex/hooks.json": {
    "type": "link",
    "target": "<root>/elsewhere/real.json"
   },
   "home/.codex/rules": {
    "type": "dir",
    "mode": "700"
   },
   "home/.codex/rules/harness.rules": {
    "type": "file",
    "mode": "600",
    "text": "# Written by Harness, which rewrites it: do not edit. Its agent commands (harness whoami, ps, search, machines, show, wait, new, close, send, tell)\n# need Harness's daemon, which Codex's sandbox cannot reach, so they run outside it without asking. What each\n# may do is for Harness to decide: Settings > Experimental, and an agent gives work to and closes only what it started.\nhost_executable(name=\"harness\", paths=[\"<root>/home/.local/bin/harness\"])\nprefix_rule(pattern=[\"harness\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\nprefix_rule(pattern=[\"<node>\", \"<root>/home/.harness/cli/cli.js\", [\"whoami\", \"ps\", \"search\", \"machines\", \"show\", \"wait\", \"new\", \"close\", \"send\", \"tell\"]], decision=\"allow\")\n"
   },
   "home/.harness": {
    "type": "dir",
    "mode": "700"
   },
   "elsewhere/real.json": {
    "type": "file",
    "mode": "644",
    "text": "{\n  \"model\": \"opus\",\n  \"nested\": {\n    \"list\": [\n      1,\n      2.5,\n      \"x\"\n    ],\n    \"none\": null\n  },\n  \"note\": \"café ✓ 🎉\",\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"resume\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-start\",\n            \"timeout\": 9\n          }\n        ]\n      },\n      {\n        \"matcher\": \"startup|resume|clear|compact\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"UserPromptSubmit\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-prompt\"\n          }\n        ]\n      },\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"<command codex 19473 install>\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ],\n    \"PreToolUse\": [\n      {\n        \"matcher\": \"Bash\",\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"foreign-tool\"\n          }\n        ]\n      }\n    ],\n    \"PostToolUse\": [\n      {\n        \"hooks\": [\n          {\n            \"type\": \"command\",\n            \"command\": \"p='<root>/home/.harness/agent-messages/inbox'/\\\"${TMUX_PANE#%}\\\"; [ -n \\\"${TMUX_PANE:-}\\\" ] && [ -d \\\"$p\\\" ] || exit 0; '<node>' '<root>/home/.harness/agent-messages/hook.mjs' --root '<root>/home/.harness/agent-messages'; exit 0 # harness-agent-messages\",\n            \"timeout\": 5\n          }\n        ]\n      }\n    ]\n  }\n}\n"
   }
  }
 }
}