overlord-cli 0.2611201138.0 → 0.2611211345.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/dist/connectors/AGENTS.md +4 -2
- package/dist/connectors/HARNESS-MATRIX.md +28 -27
- package/dist/connectors/README.md +23 -14
- package/dist/connectors/VERSION +1 -1
- package/dist/connectors/adapters/antigravity/CAPABILITIES.md +49 -26
- package/dist/connectors/adapters/antigravity/README.md +63 -15
- package/dist/connectors/adapters/antigravity/assets/logo.png +0 -0
- package/dist/connectors/adapters/antigravity/codec/antigravity.codec.yaml +66 -0
- package/dist/connectors/adapters/antigravity/codec/antigravity.decision-codec.yaml +26 -0
- package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +8 -4
- package/dist/connectors/adapters/antigravity/fixtures/decision-codec.json +51 -0
- package/dist/connectors/adapters/antigravity/fixtures/hooks-registration.json +15 -0
- package/dist/connectors/adapters/antigravity/fixtures/mutation-window-evidence.json +12 -7
- package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-failed.json +54 -0
- package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-shell.json +50 -0
- package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-write.json +58 -0
- package/dist/connectors/adapters/antigravity/fixtures/normalize-pre-invocation.json +37 -0
- package/dist/connectors/adapters/antigravity/fixtures/official-stop.json +32 -0
- package/dist/connectors/adapters/antigravity/fixtures/post-tool-use-hook.json +36 -0
- package/dist/connectors/adapters/antigravity/fixtures/post-tool-use-unbound.json +35 -0
- package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-hook.json +35 -0
- package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-inject.json +36 -0
- package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-unbound.json +29 -0
- package/dist/connectors/adapters/antigravity/fixtures/stop-delivery-reminder.json +37 -0
- package/dist/connectors/adapters/antigravity/fixtures/stop-hook-failure.json +37 -0
- package/dist/connectors/adapters/antigravity/fixtures/stop-inbox-inject.json +35 -0
- package/dist/connectors/adapters/antigravity/fixtures/unbound-session.json +27 -10
- package/dist/connectors/adapters/antigravity/harness-capabilities.yaml +133 -51
- package/dist/connectors/adapters/antigravity/hooks/overlord-pre-invocation.sh +30 -0
- package/dist/connectors/adapters/antigravity/hooks/overlord-stop.sh +37 -0
- package/dist/connectors/adapters/antigravity/hooks.json +31 -1
- package/dist/connectors/adapters/antigravity/mcp_config.json +1 -2
- package/dist/connectors/adapters/antigravity/plugin.json +9 -2
- package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +5 -8
- package/dist/connectors/adapters/claude/.mcp.json +8 -0
- package/dist/connectors/adapters/claude/CAPABILITIES.md +32 -20
- package/dist/connectors/adapters/claude/README.md +84 -15
- package/dist/connectors/adapters/claude/codec/claude.decision-codec.yaml +13 -5
- package/dist/connectors/adapters/claude/conformance-manifest.yaml +4 -6
- package/dist/connectors/adapters/claude/fixtures/decision-codec.json +8 -9
- package/dist/connectors/adapters/claude/fixtures/decision-hook-registration.json +17 -0
- package/dist/connectors/adapters/claude/fixtures/hook-capture-fail-open.json +60 -0
- package/dist/connectors/adapters/claude/fixtures/hook-decision-no-approval-on-failure.json +74 -0
- package/dist/connectors/adapters/claude/fixtures/hook-nested-session-gate.json +148 -0
- package/dist/connectors/adapters/claude/fixtures/hook-stop-fail-open.json +61 -0
- package/dist/connectors/adapters/claude/fixtures/hooks-fail-open-registration.json +32 -0
- package/dist/connectors/adapters/claude/fixtures/native-payload-shapes.json +206 -0
- package/dist/connectors/adapters/claude/fixtures/normalize-post-tool-use-shell.json +1 -7
- package/dist/connectors/adapters/claude/fixtures/normalize-post-tool-use-write.json +2 -10
- package/dist/connectors/adapters/claude/fixtures/normalize-session-start.json +1 -4
- package/dist/connectors/adapters/claude/fixtures/normalize-user-prompt-submit.json +1 -5
- package/dist/connectors/adapters/claude/fixtures/permission-request.json +14 -5
- package/dist/connectors/adapters/claude/fixtures/post-tool-use-capture.json +54 -13
- package/dist/connectors/adapters/claude/fixtures/post-tool-use-parity.json +6 -3
- package/dist/connectors/adapters/claude/fixtures/probe-decision-fail-closed.json +45 -0
- package/dist/connectors/adapters/claude/fixtures/probe-fail-open.json +48 -0
- package/dist/connectors/adapters/claude/fixtures/probe-stop-heartbeat.json +40 -0
- package/dist/connectors/adapters/claude/fixtures/status-line-opt-in.json +16 -0
- package/dist/connectors/adapters/claude/fixtures/status-line-payload.json +29 -0
- package/dist/connectors/adapters/claude/fixtures/status-line-side-effect-free.json +16 -0
- package/dist/connectors/adapters/claude/fixtures/subagent-identity.json +143 -0
- package/dist/connectors/adapters/claude/fixtures/subagent-stop-background.json +95 -0
- package/dist/connectors/adapters/claude/fixtures/unbound-session.json +134 -12
- package/dist/connectors/adapters/claude/harness-capabilities.yaml +151 -57
- package/dist/connectors/adapters/claude/hooks/hooks.json +33 -6
- package/dist/connectors/adapters/claude/skills/overlord-mission/SKILL.md +4 -4
- package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/codex/CAPABILITIES.md +24 -10
- package/dist/connectors/adapters/codex/README.md +31 -5
- package/dist/connectors/adapters/codex/codec/codex.codec.yaml +9 -0
- package/dist/connectors/adapters/codex/conformance-manifest.yaml +2 -2
- package/dist/connectors/adapters/codex/fixtures/control-plane-surface-guard.json +26 -0
- package/dist/connectors/adapters/codex/fixtures/control-plane-surface-prompt-guard.json +24 -0
- package/dist/connectors/adapters/codex/fixtures/decision-codec.json +13 -9
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-failed.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-rename.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-subagent.json +53 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-pre-tool-use.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-session-start.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/normalize-user-prompt.json +2 -0
- package/dist/connectors/adapters/codex/fixtures/permission-request.json +22 -7
- package/dist/connectors/adapters/codex/fixtures/shell-session-env.json +28 -0
- package/dist/connectors/adapters/codex/fixtures/status-line-opt-in.json +22 -0
- package/dist/connectors/adapters/codex/fixtures/status-line-provider.json +124 -0
- package/dist/connectors/adapters/codex/fixtures/status-line-state.json +90 -0
- package/dist/connectors/adapters/codex/fixtures/stop.json +28 -0
- package/dist/connectors/adapters/codex/harness-capabilities.yaml +118 -20
- package/dist/connectors/adapters/codex/scripts/permission-hook.sh +5 -0
- package/dist/connectors/adapters/codex/scripts/user-prompt-submit-hook.sh +5 -0
- package/dist/connectors/adapters/codex-app-server/CAPABILITIES.md +149 -0
- package/dist/connectors/adapters/codex-app-server/README.md +251 -0
- package/dist/connectors/adapters/codex-app-server/codec/codex-app-server.codec.yaml +150 -0
- package/dist/connectors/adapters/codex-app-server/conformance-manifest.yaml +24 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/human-answers-control-plane-cards.json +17 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/launch-mints-control-plane-channel.json +20 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/mutation-window-evidence.json +29 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-child-file-change.json +74 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-command-completed.json +67 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-command-started.json +61 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-completed.json +70 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-declined.json +71 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-started.json +64 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-fork-started.json +79 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-steer-message.json +50 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-subagent-started.json +51 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-thread-started.json +77 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-turn-interrupted.json +44 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/normalize-user-message.json +50 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/reasked-approval-occurrence.json +14 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-child-thread.json +692 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-command-approval.json +465 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-concurrent-answer.json +278 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-handshake.json +242 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-history-import.json +974 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-inject-steer.json +235 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-inject-turn-boundary.json +403 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-interrupt.json +199 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-patch-approval.json +266 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/replay-version-gate.json +84 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/server-socket-owner-only.json +24 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/status-line-provider.json +125 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/status-line-thread-index.json +15 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/supervisor-reaps-orphans.json +17 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/supervisor-watchdog.json +14 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/trust-entry-cleanup.json +13 -0
- package/dist/connectors/adapters/codex-app-server/fixtures/unbound-session.json +13 -0
- package/dist/connectors/adapters/codex-app-server/harness-capabilities.yaml +384 -0
- package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/cursor/CAPABILITIES.md +3 -3
- package/dist/connectors/adapters/cursor/conformance-manifest.yaml +2 -2
- package/dist/connectors/adapters/cursor/fixtures/claude-plugin-import-guard.json +17 -0
- package/dist/connectors/adapters/cursor/harness-capabilities.yaml +12 -7
- package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
- package/dist/connectors/core/scripts/agent-session-hook.sh +4 -0
- package/dist/connectors/core/scripts/capture-change-hook.sh +5 -0
- package/dist/connectors/core/scripts/overlord-mcp.mjs +668 -38
- package/dist/connectors/docs/05-connectors-and-agent-plugins.md +12 -4
- package/dist/connectors/docs/testing.md +12 -4
- package/dist/index.js +12809 -6328
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/dist/connectors/adapters/claude/fixtures/inject-async-rewake.json +0 -13
- package/dist/connectors/adapters/claude/fixtures/inject-stop-block.json +0 -9
- package/dist/connectors/adapters/claude/scripts/permission-hook.sh +0 -21
- package/dist/connectors/adapters/claude/scripts/stop-hook.sh +0 -81
- package/dist/connectors/adapters/claude/scripts/user-prompt-submit-hook.sh +0 -121
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
# Every capability Claude Code *can* do but Overlord has not built yet is `not-implemented`
|
|
7
7
|
# with a tracker, never `supported`. Phase 1 flipped the `observe.*` group to `supported` by
|
|
8
8
|
# adding executable fixtures that run the shipped codec, not by editing this file.
|
|
9
|
+
#
|
|
10
|
+
# Hook transport (coo:1323): every Overlord Claude hook is an `mcp_tool` hook that calls the
|
|
11
|
+
# plugin-bundled local server `plugin:overlord:overlord-hooks` (the rendered connector shim in
|
|
12
|
+
# `--hooks` mode). Each hook tool spawns the same `ovld` command the CLI fallback uses. The
|
|
13
|
+
# plugin's `hooks/hooks.json` holds UserPromptSubmit, PostToolUse and Stop, all fail-open; the
|
|
14
|
+
# fail-closed PermissionRequest hook is registered per launch by `ovld launch`
|
|
15
|
+
# (cli/src/claude-decision-hook.ts). No shell hook script ships.
|
|
9
16
|
schemaVersion: 1
|
|
10
17
|
adapter: claude
|
|
11
18
|
codec: claude
|
|
@@ -14,8 +21,11 @@ decisionCodecSpec: codec/claude.decision-codec.yaml
|
|
|
14
21
|
|
|
15
22
|
harness:
|
|
16
23
|
name: Claude Code
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
# Re-verified on 2.1.329 (coo:1323.2ewy): every fixture passes and the recorded hook inputs
|
|
25
|
+
# (fixtures/native-payload-shapes.json) carry every field the codecs and hook templates read.
|
|
26
|
+
verifiedVersion: '2.1.329'
|
|
27
|
+
# 2.1.328 added `onFailure: "block"` for `mcp_tool` hooks, which the decision path needs.
|
|
28
|
+
versionRange: '>=2.1.328'
|
|
19
29
|
versionScheme: semver
|
|
20
30
|
|
|
21
31
|
integrationShape: callback
|
|
@@ -32,6 +42,10 @@ binding:
|
|
|
32
42
|
credential, never from cwd and never from an unverified native id. `CLAUDE_CODE_SESSION_ID`
|
|
33
43
|
remains available in tool subprocesses and is used by `attach`, but the payload field is the
|
|
34
44
|
one the push path depends on because it is present on the path that actually needs it.
|
|
45
|
+
The `mcp_tool` hooks template it into the tool input as `${session_id}`. Recorded on
|
|
46
|
+
2.1.329 (fixtures/subagent-identity.json): hooks inside a subagent or fork carry the
|
|
47
|
+
parent's `session_id` plus `agent_id`/`agent_type`, so their work binds to the parent's
|
|
48
|
+
mission; compaction keeps the `session_id`; a nested `claude -p` gets its own id.
|
|
35
49
|
|
|
36
50
|
decisionHold:
|
|
37
51
|
status: supported
|
|
@@ -40,9 +54,10 @@ decisionHold:
|
|
|
40
54
|
maxTimeoutSeconds: null
|
|
41
55
|
fixture: fixtures/permission-request.json
|
|
42
56
|
notes: >-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
The hook's `timeout` (seconds, default 600 for mcp_tool) has no documented ceiling. Claude
|
|
58
|
+
sends no timeout in the payload, so the launch-registered decision hook passes
|
|
59
|
+
`hookTimeoutSeconds: 300` as a literal input and the tool answers `{}` 5 s before it.
|
|
60
|
+
Omitting `decision` from a PermissionRequest answer falls through to the native prompt.
|
|
46
61
|
|
|
47
62
|
mutationHooks:
|
|
48
63
|
classification: post-only
|
|
@@ -58,9 +73,13 @@ capabilities:
|
|
|
58
73
|
observe.prompt:
|
|
59
74
|
status: supported
|
|
60
75
|
native: UserPromptSubmit
|
|
61
|
-
fixtures:
|
|
76
|
+
fixtures:
|
|
77
|
+
- fixtures/normalize-user-prompt-submit.json
|
|
78
|
+
- fixtures/native-payload-shapes.json
|
|
62
79
|
notes: >-
|
|
63
|
-
The
|
|
80
|
+
The UserPromptSubmit `mcp_tool` hook calls `overlord_hook_user_prompt_submit`, which runs
|
|
81
|
+
`ovld protocol hook-event --hook-type UserPromptSubmit` and posts `user_follow_up` mission
|
|
82
|
+
events. It fails open (fixtures/hooks-fail-open-registration.json). There is no separate
|
|
64
83
|
mechanical agent-session event stream.
|
|
65
84
|
observe.toolCall:
|
|
66
85
|
status: not-implemented
|
|
@@ -86,9 +105,12 @@ capabilities:
|
|
|
86
105
|
- fixtures/normalize-post-tool-use-notebook.json
|
|
87
106
|
- fixtures/post-tool-use-parity.json
|
|
88
107
|
- fixtures/post-tool-use-capture.json
|
|
108
|
+
- fixtures/hook-capture-fail-open.json
|
|
109
|
+
- fixtures/native-payload-shapes.json
|
|
89
110
|
notes: >-
|
|
90
|
-
The
|
|
91
|
-
|
|
111
|
+
The PostToolUse `mcp_tool` hook calls `overlord_hook_post_tool_use`, which forwards the
|
|
112
|
+
rebuilt native payload to local `capture-change` only when `OVERLORD_OBJECTIVE_ID`
|
|
113
|
+
resolves an exact active-session binding, and always answers `{}` (fails open). A directly named
|
|
92
114
|
Write/Edit path normalized by the Claude codec as `file.edited` records non-exclusive
|
|
93
115
|
`declared_edit`/`direct` evidence. Codec-normalized read, search, and fetch callbacks are
|
|
94
116
|
silent no-ops; mutation-capable callbacks without a normalized edit path, plus shell,
|
|
@@ -120,7 +142,12 @@ capabilities:
|
|
|
120
142
|
native: PermissionRequest
|
|
121
143
|
trackedAs: latch-engine
|
|
122
144
|
notes: >-
|
|
123
|
-
The native Claude prompt owns approvals; Overlord exposes no remote decision control.
|
|
145
|
+
The native Claude prompt owns approvals; Overlord exposes no remote decision control yet.
|
|
146
|
+
The transport exists: `ovld launch` registers a PermissionRequest `mcp_tool` hook with
|
|
147
|
+
`onFailure: "block"` for channel-bound launches only (fixtures/decision-hook-registration.json).
|
|
148
|
+
A failure to reach the hooks server denies (fixtures/probe-decision-fail-closed.json); a
|
|
149
|
+
CLI or backend failure answers no decision and keeps the native prompt
|
|
150
|
+
(fixtures/hook-decision-no-approval-on-failure.json).
|
|
124
151
|
answer.structuredQuestion:
|
|
125
152
|
status: unverified
|
|
126
153
|
native: Elicitation
|
|
@@ -147,8 +174,13 @@ capabilities:
|
|
|
147
174
|
native: Stop
|
|
148
175
|
trackedAs: latch-engine
|
|
149
176
|
notes: >-
|
|
150
|
-
Turn-boundary injection moved off Overlord connectors. The
|
|
151
|
-
reminds the agent to deliver when needed
|
|
177
|
+
Turn-boundary injection moved off Overlord connectors. The Stop `mcp_tool` hook still
|
|
178
|
+
checks the channel inbox and reminds the agent to deliver when needed, at most once per
|
|
179
|
+
session and objective. It fails open (fixtures/hook-stop-fail-open.json). At a final
|
|
180
|
+
Stop (no running `background_tasks`) in a headless session (`CLAUDE_CODE_ENTRYPOINT`
|
|
181
|
+
`sdk-*`) the inbox step polls for up to 60 s so an instruction sent just after the run
|
|
182
|
+
finishes still reaches it; interactive sessions claim once and never wait. The plugin's
|
|
183
|
+
Stop hook timeout is 100 s (hazard `headless-stop-hold`).
|
|
152
184
|
inject.nextTurn:
|
|
153
185
|
status: not-implemented
|
|
154
186
|
native: Stop
|
|
@@ -163,71 +195,133 @@ capabilities:
|
|
|
163
195
|
way to answer remotely and the reason the terminal cannot participate.
|
|
164
196
|
evidenceRef: connector-harness-taxonomy.md#12-the-axis-that-actually-matters
|
|
165
197
|
terminal.statusSurface:
|
|
166
|
-
status:
|
|
167
|
-
native:
|
|
168
|
-
|
|
198
|
+
status: supported
|
|
199
|
+
native: statusLine
|
|
200
|
+
fixtures:
|
|
201
|
+
- fixtures/status-line-payload.json
|
|
202
|
+
- fixtures/status-line-opt-in.json
|
|
203
|
+
- fixtures/status-line-side-effect-free.json
|
|
169
204
|
notes: >-
|
|
170
|
-
`
|
|
171
|
-
|
|
172
|
-
|
|
205
|
+
Claude Code's `statusLine` command runs `ovld status-line --agent claude --payload-file -`,
|
|
206
|
+
which shows the bound mission and objective (display ids and titles) and whether the
|
|
207
|
+
session is awaiting an answer or approval, blocked on a question, or delivered. The
|
|
208
|
+
binding comes from the native-session index under the payload `session_id`, else the
|
|
209
|
+
launch environment; an unbound session prints nothing and makes no network call. The
|
|
210
|
+
command answers from an owner-only local snapshot and refreshes a stale one in a detached,
|
|
211
|
+
lock-guarded process. A plugin cannot ship a status line, so `ovld agent-setup claude
|
|
212
|
+
--status-line` (or a yes at its prompt) adds it to the user's settings and never replaces an
|
|
213
|
+
existing one. Verified live on 2.1.329. The hook `statusMessage` field is unrelated: it is
|
|
214
|
+
static spinner text with no session-binding predicate, and Overlord does not use it.
|
|
173
215
|
|
|
174
216
|
hazards:
|
|
175
217
|
- id: shipped-permission-hook-inert
|
|
176
218
|
severity: high
|
|
177
219
|
summary: >-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
220
|
+
Retired with the shell scripts (coo:1323). The old plugin shipped an unregistered
|
|
221
|
+
`scripts/permission-hook.sh` that called a nonexistent `ovld protocol permission-request`
|
|
222
|
+
and backgrounded the call, so it could never return a decision. The script is deleted.
|
|
223
|
+
The decision path is now a PermissionRequest `mcp_tool` hook that `ovld launch` registers
|
|
224
|
+
only for channel-bound sessions, with `onFailure: "block"`.
|
|
183
225
|
verification: verified
|
|
184
226
|
mitigation: implemented
|
|
185
|
-
fixture: fixtures/
|
|
227
|
+
fixture: fixtures/decision-hook-registration.json
|
|
186
228
|
- id: shipped-stop-hook-inert
|
|
187
229
|
severity: medium
|
|
188
230
|
summary: >-
|
|
189
|
-
The
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
231
|
+
Fixed in coo:1323. The old Stop script called `ovld protocol hook-event --hook-type Stop`,
|
|
232
|
+
which the CLI rejected, and gated on a `MISSION_ID` the pod did not set. The Stop hook is
|
|
233
|
+
now an `mcp_tool` call: it binds through the launch environment or the native-session
|
|
234
|
+
index that `attach` writes, `hook-event` accepts Stop and returns delivery status, and the
|
|
235
|
+
reminder blocks at most once per session and objective. Failures fail open.
|
|
236
|
+
verification: verified
|
|
237
|
+
mitigation: implemented
|
|
238
|
+
fixture: fixtures/hook-stop-fail-open.json
|
|
239
|
+
- id: hook-tool-unlisted-call
|
|
240
|
+
severity: medium
|
|
241
|
+
summary: >-
|
|
242
|
+
The hooks server omits its hook tools from `tools/list` so the model never sees them, and
|
|
243
|
+
Claude Code still calls them from `mcp_tool` hooks (verified on 2.1.329). That behavior is
|
|
244
|
+
undocumented. A release that validated hook tools against `tools/list` would break every
|
|
245
|
+
Overlord hook, and in channel-bound launches would deny every permission request. Doctor
|
|
246
|
+
warns when Claude Code is newer than `verifiedVersion`; the probe must be re-run on each
|
|
247
|
+
`verifiedVersion` bump.
|
|
196
248
|
verification: verified
|
|
197
249
|
mitigation: required
|
|
198
|
-
trackedAs:
|
|
250
|
+
trackedAs: coo:1323.2ewy
|
|
251
|
+
- id: hook-server-no-fallback
|
|
252
|
+
severity: medium
|
|
253
|
+
summary: >-
|
|
254
|
+
Claude Code has no fallback from a failed `mcp_tool` hook to another hook, so when the
|
|
255
|
+
hooks server is not connected (no `node` on PATH, server disabled in `/mcp`, plugin not
|
|
256
|
+
installed) follow-up capture, file capture and the Stop reminder silently stop while the
|
|
257
|
+
session keeps working. Mitigated: these hooks fail open (fixtures/probe-fail-open.json),
|
|
258
|
+
`ovld agent-setup claude` and `ovld doctor` report a missing or disconnected server with
|
|
259
|
+
the fix, and the overlord-mission skill tells the agent to use the `ovld protocol` CLI.
|
|
260
|
+
verification: verified
|
|
261
|
+
mitigation: implemented
|
|
262
|
+
fixture: fixtures/probe-fail-open.json
|
|
199
263
|
- id: fork-and-subagent-identity-unknown
|
|
200
264
|
severity: medium
|
|
201
265
|
summary: >-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
`
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
verification:
|
|
212
|
-
mitigation:
|
|
213
|
-
|
|
266
|
+
Resolved (coo:1323.n938). Recorded on 2.1.329: every hook fired inside a subagent,
|
|
267
|
+
including a `fork` subagent, carries the parent's `session_id` and adds `agent_id` and
|
|
268
|
+
`agent_type`; `${agent_id}`/`${agent_type}` template the same values into an `mcp_tool`
|
|
269
|
+
input and `""` in the main agent. PreCompact, PostCompact and the post-compaction
|
|
270
|
+
SessionStart keep the `session_id` (main-thread compaction carries no `agent_id`). Binding
|
|
271
|
+
by `session_id` therefore routes subagent and fork work to the parent's binding, which is
|
|
272
|
+
correct because they work on the parent's objective, and a binding survives compaction.
|
|
273
|
+
No Overlord hook needs `agent_id` today; it stays available if a decision card ever has to
|
|
274
|
+
name the subagent.
|
|
275
|
+
verification: verified
|
|
276
|
+
mitigation: implemented
|
|
277
|
+
fixture: fixtures/subagent-identity.json
|
|
214
278
|
- id: subagent-stop-unregistered
|
|
215
279
|
severity: medium
|
|
216
280
|
summary: >-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
nothing.
|
|
281
|
+
Resolved (coo:1323.n938); `SubagentStop` stays unregistered on purpose. Recorded on
|
|
282
|
+
2.1.329: the main `Stop` fires while background subagents still run and lists them in
|
|
283
|
+
`background_tasks`; each subagent's end fires `SubagentStop` (parent `session_id` plus
|
|
284
|
+
`agent_id`); Claude then wakes the main agent with a harness-written `<task-notification>`
|
|
285
|
+
prompt through UserPromptSubmit, and that turn ends in another main `Stop` with
|
|
286
|
+
`background_tasks` empty. So the main Stop does run after subagent work completes. A
|
|
287
|
+
subagent's stop is not the end of the objective, so a reminder or an inbox claim there
|
|
288
|
+
would be wrong. The Stop hook templates `background_tasks`; while one is running, the
|
|
289
|
+
delivery reminder and the headless inbox wait are deferred to the later Stop, and
|
|
290
|
+
`hook-event` never records a `<task-notification>` prompt as a user follow-up.
|
|
228
291
|
verification: verified
|
|
229
|
-
mitigation:
|
|
230
|
-
|
|
292
|
+
mitigation: implemented
|
|
293
|
+
fixture: fixtures/subagent-stop-background.json
|
|
294
|
+
- id: nested-session-inherits-launch-env
|
|
295
|
+
severity: medium
|
|
296
|
+
summary: >-
|
|
297
|
+
A `claude -p` started from a Bash tool of a launched session gets its own session id
|
|
298
|
+
(2.1.317+, and on 2.1.329 even with `CLAUDE_CODE_DISABLE_NESTED_SESSION_ID=1`), so it never
|
|
299
|
+
matches the native-session index. But it inherits the launch environment (mission,
|
|
300
|
+
objective, session channel), which bound it to the parent's mission: its prompt would be
|
|
301
|
+
recorded as the user's follow-up, its Stop could claim the parent's pending instruction or
|
|
302
|
+
be told to deliver the parent's objective. Mitigated: Claude Code exports `CLAUDE_PID` to
|
|
303
|
+
tool processes but not to MCP servers, so a hooks server that sees a `CLAUDE_PID` other
|
|
304
|
+
than its own parent belongs to a nested session. Its follow-up, Stop and decision hooks
|
|
305
|
+
then ignore the launch binding (it may still bind through the index under its own id if
|
|
306
|
+
its agent attaches); file capture keeps the launch objective because the nested process
|
|
307
|
+
edits the same checkout for the same objective. Limit: a session launched by an `ovld`
|
|
308
|
+
process that itself runs inside a Claude Code tool inherits that outer `CLAUDE_PID` and is
|
|
309
|
+
treated as nested.
|
|
310
|
+
verification: verified
|
|
311
|
+
mitigation: implemented
|
|
312
|
+
fixture: fixtures/hook-nested-session-gate.json
|
|
313
|
+
- id: headless-stop-hold
|
|
314
|
+
severity: low
|
|
315
|
+
summary: >-
|
|
316
|
+
A headless final Stop holds the inbox open for up to 60 s. Before 2.1.323 a host could
|
|
317
|
+
take a hook that long for a hung turn. Since 2.1.323 `claude -p` and SDK sessions emit a
|
|
318
|
+
progress heartbeat every 30 s while a hook runs (recorded on 2.1.329: `tool_progress`
|
|
319
|
+
with `heartbeat: true` at 30 s during a 45 s Stop hook). Interactive sessions never wait,
|
|
320
|
+
the wait is skipped while background subagents run, and the Stop hook timeout (100 s)
|
|
321
|
+
exceeds the wait plus the inbox (16 s) and reminder (10 s) budgets.
|
|
322
|
+
verification: verified
|
|
323
|
+
mitigation: implemented
|
|
324
|
+
fixture: fixtures/probe-stop-heartbeat.json
|
|
231
325
|
decisionShape:
|
|
232
326
|
codec: claude
|
|
233
327
|
allowFixture: fixtures/decision-codec.json
|
|
@@ -5,8 +5,16 @@
|
|
|
5
5
|
"matcher": ".*",
|
|
6
6
|
"hooks": [
|
|
7
7
|
{
|
|
8
|
-
"type": "
|
|
9
|
-
"
|
|
8
|
+
"type": "mcp_tool",
|
|
9
|
+
"server": "plugin:overlord:overlord-hooks",
|
|
10
|
+
"tool": "overlord_hook_user_prompt_submit",
|
|
11
|
+
"input": {
|
|
12
|
+
"hook_event_name": "${hook_event_name}",
|
|
13
|
+
"session_id": "${session_id}",
|
|
14
|
+
"cwd": "${cwd}",
|
|
15
|
+
"prompt": "${prompt}"
|
|
16
|
+
},
|
|
17
|
+
"timeout": 10
|
|
10
18
|
}
|
|
11
19
|
]
|
|
12
20
|
}
|
|
@@ -16,8 +24,18 @@
|
|
|
16
24
|
"matcher": "Edit|Write|MultiEdit|NotebookEdit|Bash",
|
|
17
25
|
"hooks": [
|
|
18
26
|
{
|
|
19
|
-
"type": "
|
|
20
|
-
"
|
|
27
|
+
"type": "mcp_tool",
|
|
28
|
+
"server": "plugin:overlord:overlord-hooks",
|
|
29
|
+
"tool": "overlord_hook_post_tool_use",
|
|
30
|
+
"input": {
|
|
31
|
+
"hook_event_name": "${hook_event_name}",
|
|
32
|
+
"session_id": "${session_id}",
|
|
33
|
+
"cwd": "${cwd}",
|
|
34
|
+
"tool_name": "${tool_name}",
|
|
35
|
+
"tool_use_id": "${tool_use_id}",
|
|
36
|
+
"tool_input": "${tool_input}"
|
|
37
|
+
},
|
|
38
|
+
"timeout": 15
|
|
21
39
|
}
|
|
22
40
|
]
|
|
23
41
|
}
|
|
@@ -27,8 +45,17 @@
|
|
|
27
45
|
"matcher": ".*",
|
|
28
46
|
"hooks": [
|
|
29
47
|
{
|
|
30
|
-
"type": "
|
|
31
|
-
"
|
|
48
|
+
"type": "mcp_tool",
|
|
49
|
+
"server": "plugin:overlord:overlord-hooks",
|
|
50
|
+
"tool": "overlord_hook_stop",
|
|
51
|
+
"input": {
|
|
52
|
+
"hook_event_name": "${hook_event_name}",
|
|
53
|
+
"session_id": "${session_id}",
|
|
54
|
+
"cwd": "${cwd}",
|
|
55
|
+
"stop_hook_active": "${stop_hook_active}",
|
|
56
|
+
"background_tasks": "${background_tasks}"
|
|
57
|
+
},
|
|
58
|
+
"timeout": 100
|
|
32
59
|
}
|
|
33
60
|
]
|
|
34
61
|
}
|
|
@@ -9,10 +9,10 @@ description: Use for chat-started Overlord work, when the user refers to an Over
|
|
|
9
9
|
|
|
10
10
|
- Agent identifier: `claude-code` for `ovld protocol create` and `ovld protocol prompt`.
|
|
11
11
|
- Native commands: `/overlord:attach`, `/overlord:connect`, `/overlord:load`, `/overlord:create`, `/overlord:prompt`, `/overlord:discuss-objective`, `/overlord:add-objectives`, `/overlord:record-work`.
|
|
12
|
-
-
|
|
13
|
-
- Permission
|
|
14
|
-
-
|
|
15
|
-
- Authentication:
|
|
12
|
+
- Hooks: the plugin's hooks are `mcp_tool` hooks served by its bundled `overlord-hooks` MCP server (Claude Code 2.1.328 or later). They record follow-up messages (`UserPromptSubmit`), capture changed files (`PostToolUse`) and remind you to deliver (`Stop`). Do not manually publish `user_follow_up` while they work. The Stop reminder does not deliver for you.
|
|
13
|
+
- Permission decisions: Overlord-launched sessions with a session channel also get a `PermissionRequest` hook. If the hooks server cannot be reached, Claude denies the request; do not work around that denial. Ask the user to run `ovld doctor`.
|
|
14
|
+
- CLI fallback: if Overlord MCP tools or hooks fail or are unavailable (for example `/mcp` shows `plugin:overlord:overlord-hooks` as failed, or a hook reports that its MCP server is not connected), use the equivalent `ovld protocol` command instead: `attach`, `update`, `ask`, `deliver`, `changes`. Declare the files you changed with `--paths` on `update` or `deliver`, because automatic capture is off. `ovld doctor` names the fix.
|
|
15
|
+
- Authentication: hooks and the CLI use shared `ovld auth` credentials, Overlord-launched environment variables, or `Overlord_USER_TOKEN` / `OVLD_USER_TOKEN`.
|
|
16
16
|
|
|
17
17
|
## Claude Command Mapping
|
|
18
18
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**Adapter** `codex` · **Codec** `codex` · **Integration shape** `callback` · **Capability tier** 1 (Observational)
|
|
6
6
|
|
|
7
|
-
**Harness version verified** `0.
|
|
7
|
+
**Harness version verified** `0.171.0` · **range** `>=0.124.0` · **scheme** `semver`
|
|
8
8
|
|
|
9
|
-
**Descriptor digest** `
|
|
9
|
+
**Descriptor digest** `689c59aa63597d90cf3ef64ac11fd339f543c9f381646f98e6c417c5c31bbc38`
|
|
10
10
|
|
|
11
11
|
> The tier is derived from passing fixtures, never authored. `unsupported` means the harness
|
|
12
12
|
> cannot do it — do not attempt it. `not-implemented` means it is buildable and unbuilt: that is
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
| Field | `session_id` |
|
|
23
23
|
| Evidence | fixtures: `fixtures/normalize-session-start.json` |
|
|
24
24
|
|
|
25
|
-
`
|
|
25
|
+
Shell tools see `CODEX_SESSION_ID` (the root session, which hooks send as `session_id`) and `CODEX_THREAD_ID`; in a root thread both equal the thread id (fixtures/shell-session-env.json). Binding stays on the payload field; attach run by a Codex agent indexes `CODEX_SESSION_ID` in the native-session index, so the payload id can find it. Inside a spawned subagent `session_id` is the root session's id (root-session inheritance, verified in the 0.170 source) and `agent_id` names the child thread, so a subagent's hook events bind to the session that spawned it and record the child as `subagentId`.
|
|
26
26
|
|
|
27
27
|
The native session id is a **correlation alias only**. Authorization and mission scope come
|
|
28
28
|
from the verified channel/session credential; neither the working directory nor an unverified
|
|
@@ -38,7 +38,7 @@ native id is a binding authority.
|
|
|
38
38
|
| Harness ceiling | none documented |
|
|
39
39
|
| Evidence | fixtures: `fixtures/permission-request.json` |
|
|
40
40
|
|
|
41
|
-
Per-hook timeouts in seconds; the documentation gives a 600-second default. The adapter must set `timeout` explicitly from the window policy and well below that default.
|
|
41
|
+
Per-hook timeouts in seconds; the documentation gives a 600-second default. The adapter must set `timeout` explicitly from the window policy and well below that default. The bound is the handler's `timeout` key in hooks.json: the PermissionRequest payload carries no timeout, request id or tool_use_id (0.170.0 live, 0.171.0 schema). Local `codex exec --approve-for-me` smoke tests on 0.147.0 and again on 0.170.0 still emitted PermissionRequest for an escalated shell command before automatic review decided it, so auto-review does not bypass the installed request hook. A 0.170.0 `codex exec -s read-only -c approval_policy="on-request"` run emitted PermissionRequest for the escalated shell command and honored both the allow and the deny bytes in decision-codec.json.
|
|
42
42
|
|
|
43
43
|
## Mutation-window evidence
|
|
44
44
|
|
|
@@ -59,7 +59,7 @@ path. Runtime file evidence is unavailable for this adapter.
|
|
|
59
59
|
| `observe.prompt` | ✅ supported | `UserPromptSubmit` | fixtures: `fixtures/normalize-user-prompt.json` |
|
|
60
60
|
| `observe.toolCall` | 🚧 not-implemented | `PreToolUse` | tracked as `latch-engine` |
|
|
61
61
|
| `observe.toolResult` | 🚧 not-implemented | `PostToolUse` | tracked as `latch-engine` |
|
|
62
|
-
| `observe.fileEdit` | ✅ supported | `PostToolUse` | fixtures: `fixtures/normalize-post-tool-use.json`, `fixtures/normalize-post-tool-use-failed.json`, `fixtures/normalize-post-tool-use-rename.json`, `fixtures/agent-session-hooks.json`, `fixtures/post-tool-use-hook.json`, `fixtures/post-tool-use-unbound.json` |
|
|
62
|
+
| `observe.fileEdit` | ✅ supported | `PostToolUse` | fixtures: `fixtures/normalize-post-tool-use.json`, `fixtures/normalize-post-tool-use-failed.json`, `fixtures/normalize-post-tool-use-rename.json`, `fixtures/normalize-post-tool-use-subagent.json`, `fixtures/agent-session-hooks.json`, `fixtures/post-tool-use-hook.json`, `fixtures/post-tool-use-unbound.json` |
|
|
63
63
|
| `observe.sessionLifecycle` | 🚧 not-implemented | `SessionStart` | tracked as `latch-engine` |
|
|
64
64
|
| `decide.shell` | 🚧 not-implemented | `PermissionRequest` | tracked as `latch-engine` |
|
|
65
65
|
| `decide.mcp` | 🚧 not-implemented | `PermissionRequest` | tracked as `latch-engine` |
|
|
@@ -72,29 +72,43 @@ path. Runtime file evidence is unavailable for this adapter.
|
|
|
72
72
|
| `inject.turnBoundary` | 🚧 not-implemented | `Stop` | tracked as `latch-engine` |
|
|
73
73
|
| `inject.nextTurn` | 🚧 not-implemented | `Stop` | tracked as `agent-session-phase-4` |
|
|
74
74
|
| `terminal.concurrentAnswer` | ⛔ unsupported | — | On the hook path the native prompt is drawn only after the callback returns, so the terminal cannot answer while Overlord holds the decision. (A future app-server integration could change this; it would be a different integrationShape.) (evidence: `connector-harness-taxonomy.md#12-the-axis-that-actually-matters`) |
|
|
75
|
-
| `terminal.statusSurface` |
|
|
75
|
+
| `terminal.statusSurface` | ✅ supported | `statusline MCP provider (tui_extensions_statusline)` | fixtures: `fixtures/status-line-state.json`, `fixtures/status-line-provider.json`, `fixtures/shell-session-env.json`, `fixtures/status-line-opt-in.json` |
|
|
76
76
|
|
|
77
77
|
### Capability notes
|
|
78
78
|
|
|
79
79
|
- **`observe.toolCall`** — There is no mechanical observation path until Overlord has a native Conversation Hub client.
|
|
80
|
-
- **`observe.fileEdit`** — The lifecycle PostToolUse registration forwards Codex's native payload to local `capture-change` only when `OVERLORD_OBJECTIVE_ID` resolves an exact active-session binding. Native paths and declared `apply_patch` headers normalized by the Codex codec as `file.edited` record non-exclusive `declared_edit`/`direct` evidence. Codec-normalized read, search, and fetch callbacks are silent no-ops; mutation-capable callbacks without a normalized edit path, plus shell, generic, unknown, and unmapped callbacks, record unavailable evidence health. It remains separate from mechanical agent-session observation.
|
|
80
|
+
- **`observe.fileEdit`** — The lifecycle PostToolUse registration forwards Codex's native payload to local `capture-change` only when `OVERLORD_OBJECTIVE_ID` resolves an exact active-session binding. Native paths and declared `apply_patch` headers normalized by the Codex codec as `file.edited` record non-exclusive `declared_edit`/`direct` evidence. Codec-normalized read, search, and fetch callbacks are silent no-ops; mutation-capable callbacks without a normalized edit path, plus shell, generic, unknown, and unmapped callbacks, record unavailable evidence health. It remains separate from mechanical agent-session observation. A subagent's edits run in the same Codex process and environment, so they are captured for the same objective.
|
|
81
81
|
- **`decide.universal`** — The native Codex prompt owns approvals; Overlord exposes no remote decision control.
|
|
82
82
|
- **`answer.structuredQuestion`** — `codex app-server` exposes ToolRequestUserInput with per-option label/description and an autoResolutionMs — an ACP-shaped structured question in everything but name. It is unreachable until the single-subscriber question is settled.
|
|
83
83
|
- **`inject.midTurn`** — ThreadInjectItems/TurnSteer exist on the experimental app-server surface only. The binary carries "expected exactly one client subscribed to the thread, found {}", so if the TUI is that one client Overlord cannot also subscribe and this path is closed.
|
|
84
|
+
- **`inject.turnBoundary`** — The recorded Stop payload is shape evidence only; the connector registers no Stop hook.
|
|
85
|
+
- **`terminal.statusSurface`** — Codex 0.171+ with the experimental feature `tui_extensions_statusline` (off by default) renders an MCP statusline provider in the TUI footer. The Overlord plugin's MCP server advertises one (`overlord_status_line`, resource `ui://overlord/status-line`); Codex reads it about once a second with the displayed thread's state, allows one second per read and stops polling after an error, so the shim always answers at once: the model, folder and context items it replaces, then the Overlord segment from `ovld status-line --agent codex --ui-tree --native-session-id <thread id>` (mission and objective, awaiting answer or approval, blocked, delivered), cached per thread for 10 s. Binding is the native-session index, written by attach from `CODEX_SESSION_ID` (equal to a root thread's id), else the launch environment; an unbound thread shows only the built-in items. In 0.171 the TUI reads through a shared app-server daemon that outlives the session, so the launch environment is only reliable for the session that started the daemon; the index is the binding that holds. Opt-in: `ovld agent-setup codex --status-line` turns the feature on when unset and selects the provider in user config only when none is selected. A child thread viewed in the TUI is not indexed and shows no segment. Verified live on 0.171.0.
|
|
84
86
|
|
|
85
87
|
## Hazards
|
|
86
88
|
|
|
87
89
|
| Hazard | Severity | Verification | Mitigation | Tracked as |
|
|
88
90
|
| --- | --- | --- | --- | --- |
|
|
89
91
|
| `two-integration-surfaces-could-disagree` | high | verified | implemented | fixture `fixtures/agent-session-hooks.json` |
|
|
92
|
+
| `plugin-hooks-fire-inside-app-server-threads` | high | verified | implemented | fixture `fixtures/control-plane-surface-guard.json` |
|
|
93
|
+
| `prompt-hook-inside-app-server-threads` | medium | verified | implemented | fixture `fixtures/control-plane-surface-prompt-guard.json` |
|
|
94
|
+
| `subagent-hooks-share-the-root-session` | medium | verified | implemented | fixture `fixtures/normalize-post-tool-use-subagent.json` |
|
|
90
95
|
| `prompt-and-agent-hook-handlers-inert` | low | verified | accepted | — |
|
|
91
96
|
| `hooks-version-and-platform-gate` | medium | verified | required | `agent-session-phase-4` |
|
|
97
|
+
| `plugin-hook-trust-pinned-to-bundle` | high | verified | accepted | — |
|
|
92
98
|
|
|
93
|
-
**`two-integration-surfaces-could-disagree`** — Hooks and `codex app-server` can both answer a permission. A session driven by both would race in a way no revision CAS can settle, so exactly one surface must be chosen and documented before either is built.
|
|
99
|
+
**`two-integration-surfaces-could-disagree`** — Hooks and `codex app-server` can both answer a permission. A session driven by both would race in a way no revision CAS can settle, so exactly one surface must be chosen and documented before either is built. Chosen per session: user-started Codex sessions use this hooks adapter, which claims no `decide.*`; Overlord-driven sessions use the separate `codex-app-server` adapter, whose server environment silences these hooks (`plugin-hooks-fire-inside-app-server-threads`).
|
|
94
100
|
|
|
95
|
-
**`
|
|
101
|
+
**`plugin-hooks-fire-inside-app-server-threads`** — The installed Overlord Codex plugin's hooks run inside `codex app-server` threads too (spike coo:1325.gqfy: hook/started for userPromptSubmit and postToolUse inside app-server turns). When the `codex-app-server` adapter drives a session, a hook that still reported would capture every edit twice and could attribute a thread to whatever objective started the server. The supervisor starts the server with an allowlisted environment (no objective, mission or channel scope) plus OVERLORD_CONTROL_PLANE_SURFACE, and every Overlord callback exits before any work when that marker is set. In app-server mode only the adapter observes and answers, which also keeps `two-integration-surfaces-could-disagree` closed by construction.
|
|
96
102
|
|
|
97
|
-
**`
|
|
103
|
+
**`prompt-hook-inside-app-server-threads`** — The plugin's UserPromptSubmit callback writes the native-session alias and spawns `ovld protocol hook-event`; inside an Overlord-driven app server it must do neither, for the same reason as the PostToolUse callback.
|
|
104
|
+
|
|
105
|
+
**`subagent-hooks-share-the-root-session`** — Codex runs the plugin's hooks inside spawned subagents too. In 0.170 every thread of a session tree shares the root's agent-control identity, so a subagent's hook payload carries the root session's `session_id` plus `agent_id` (the child thread) and `agent_type` (its role) — codex-rs `core/src/hook_runtime.rs` and `core/src/agent/control.rs`; the 0.168 `InheritedSessionId` extension does the same for host-started child threads. The codec records `agent_id` as `subagentId`, so a user-started session's subagent work correlates with the parent session instead of appearing as a separate one. Not covered: a 0.170 fork (`/fork`) gets a new session id and correlates as its own session; release notes say 0.171 makes forks inherit the root session id, which has not been run here. SubagentStart and SubagentStop hooks exist but are not registered; the parent's tool calls already show the spawn.
|
|
106
|
+
|
|
107
|
+
**`prompt-and-agent-hook-handlers-inert`** — Codex parses `prompt` and `agent` hook handlers and then skips them with a "not supported yet" warning (re-checked live on 0.170.0 and in the 0.171.0 hook discovery source), so a manifest that used either would install cleanly, list in `hooks`, and never execute. `command` runs, and since 0.148 an `mcp_tool` handler can call an MCP tool; the connector uses neither `mcp_tool` nor the inert types. The connector must keep emitting `command` handlers only, and must not read the presence of these variants in the schema as availability. `command` is a shell command line run through `$SHELL -lc` (`/bin/sh` when SHELL is unset) — it is not restricted to Bash and not restricted to shell scripting, since the command may invoke any interpreter.
|
|
108
|
+
|
|
109
|
+
**`hooks-version-and-platform-gate`** — Hooks were experimental behind `features.codex_hooks` before v0.124. The connector requires Codex >=0.124; installations outside that range must be treated as unavailable. Re-checked at 0.171.0: `hooks` is a stable feature and the hook schemas the connector reads are unchanged, but nothing yet enforces the lower bound at install or launch.
|
|
110
|
+
|
|
111
|
+
**`plugin-hook-trust-pinned-to-bundle`** — Codex runs a plugin hook only after the user approves it in `/hooks`, and from 0.164 the approval (`trusted_content_hash` in config.toml) pins a fingerprint of the whole installed plugin bundle. A fresh `ovld agent-setup codex`, and every connector update after it (each one bumps plugin.json), leaves the Overlord hooks unapproved. The interactive TUI asks for review; `codex exec` skips them silently, so prompt capture and change capture stop without an error. `ovld agent-setup codex` and `ovld doctor` reproduce the fingerprint and name the hooks that will not run. Overlord never writes hook trust: approving a hook stays the user's decision, and `--dangerously-bypass-hook-trust` is not used.
|
|
98
112
|
|
|
99
113
|
## Native decision shape
|
|
100
114
|
|
|
@@ -7,7 +7,10 @@ Codex plugin that exposes the Overlord local mission workflow to Codex chat sess
|
|
|
7
7
|
- [For Users](#for-users)
|
|
8
8
|
- [Requirements](#requirements)
|
|
9
9
|
- [Install](#install)
|
|
10
|
+
- [Approve the hooks](#approve-the-hooks)
|
|
11
|
+
- [Headless `codex exec`](#headless-codex-exec)
|
|
10
12
|
- [Permission warmup](#permission-warmup)
|
|
13
|
+
- [Status line (optional)](#status-line-optional)
|
|
11
14
|
- [Namespaced components](#namespaced-components)
|
|
12
15
|
- [For Developers](#for-developers)
|
|
13
16
|
- [Overlord layer map](#overlord-layer-map)
|
|
@@ -38,6 +41,16 @@ ovld agent-setup codex
|
|
|
38
41
|
ovld doctor
|
|
39
42
|
```
|
|
40
43
|
|
|
44
|
+
### Approve the hooks
|
|
45
|
+
|
|
46
|
+
Codex runs plugin hooks only after you approve them. Since Codex 0.164 the approval is tied to the exact plugin contents, so you approve the Overlord hooks after the first install and again after every connector update. Until then Codex skips them: the interactive terminal asks you to review them, but `codex exec` skips them without a message, and Overlord stops recording follow-up prompts and file changes.
|
|
47
|
+
|
|
48
|
+
After `ovld agent-setup codex`, open Codex, run `/hooks`, and approve the Overlord `UserPromptSubmit` and `PostToolUse` hooks. `ovld agent-setup codex` and `ovld doctor` tell you when they need approval. Overlord never approves hooks for you.
|
|
49
|
+
|
|
50
|
+
### Headless `codex exec`
|
|
51
|
+
|
|
52
|
+
Since Codex 0.169, `codex exec` keeps project configuration and MCP servers turned off in a directory you have not trusted, even with `--sandbox workspace-write`. If you run `codex exec` yourself in a new worktree, pass `--trust` (or trust the directory in an interactive session first). Overlord-launched sessions start the interactive Codex terminal, which asks you to trust the folder, so they are not affected.
|
|
53
|
+
|
|
41
54
|
### Permission warmup
|
|
42
55
|
|
|
43
56
|
Codex may still prompt once for `ovld protocol` approval on first use. Run this inside a Codex session and approve the prefix when prompted:
|
|
@@ -46,6 +59,18 @@ Codex may still prompt once for `ovld protocol` approval on first use. Run this
|
|
|
46
59
|
ovld protocol help
|
|
47
60
|
```
|
|
48
61
|
|
|
62
|
+
### Status line (optional)
|
|
63
|
+
|
|
64
|
+
Codex 0.171 and later can show the bound Overlord mission and objective in the footer, through the experimental custom status line. Turn it on at setup:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
ovld agent-setup codex --status-line
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
This sets `tui_extensions_statusline = true` under `[features]` and `status_line_provider = { server = "overlord", tool = "overlord_status_line" }` under `[tui]` in `~/.codex/config.toml`, only when you have not selected a provider and have not turned the feature off. Codex reads the selection only from user config. Restart Codex, then check `/statusline` → "Choose a status line provider" → "Overlord mission".
|
|
71
|
+
|
|
72
|
+
The provider replaces Codex's built-in footer, so it shows the model and effort, folder and context left, then `ovld <mission> <title> › <objective> <title>` and the state (awaiting answer or approval, blocked, delivered). A thread shows the mission once its agent ran `ovld protocol attach` (which records the Codex session id), or when Overlord runs it in app-server mode. Other threads show only the built-in items. The provider answers each read at once from a local cache and never fails a read, so Codex keeps polling. Choose another provider in `/statusline` to turn it off.
|
|
73
|
+
|
|
49
74
|
### Namespaced components
|
|
50
75
|
|
|
51
76
|
Inside Codex the plugin surfaces as:
|
|
@@ -79,7 +104,7 @@ This connector is intentionally reviewable against the four connector layers in
|
|
|
79
104
|
unknown, and unmapped callbacks, record unavailable evidence health. Mechanical harness
|
|
80
105
|
observation, permission, and injection are not live Overlord connector paths under Latch v2;
|
|
81
106
|
native Codex prompts retain control.
|
|
82
|
-
- `.mcp.json` + `scripts/overlord-mcp.mjs` — MCP bridge to common `ovld protocol` operations. The shim is **generated**: it is rendered from `connectors/core/scripts/overlord-mcp.mjs` at setup time with the adapter key substituted, and there is no copy in this directory to edit.
|
|
107
|
+
- `.mcp.json` + `scripts/overlord-mcp.mjs` — MCP bridge to common `ovld protocol` operations, and the Codex statusline provider (`overlord_status_line`, resource `ui://overlord/status-line`), which only the Codex rendering advertises. The shim is **generated**: it is rendered from `connectors/core/scripts/overlord-mcp.mjs` at setup time with the adapter key substituted, and there is no copy in this directory to edit.
|
|
83
108
|
- `assets/` — branded plugin assets for Codex install surfaces.
|
|
84
109
|
- `conformance-manifest.yaml` — connector conformance declaration for the Overlord contract.
|
|
85
110
|
- `prompt-wrapper.md` — Codex launch guidance.
|
|
@@ -89,9 +114,10 @@ The shared Connector Core source lives at `connectors/core/overlord-mission`. `o
|
|
|
89
114
|
### Omissions
|
|
90
115
|
|
|
91
116
|
- **No `commands/` directory.** Codex reaches protocol operations through the MCP bridge and the mission skill. This is unported rather than declined — no Codex constraint is recorded against slash commands — so treat it as open work with its own mission, not as a settled decision.
|
|
92
|
-
- **
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
117
|
+
- **App-server mode is a separate adapter.** Overlord-launched objectives can instead run
|
|
118
|
+
through a private Codex app server ([`../codex-app-server/`](../codex-app-server/README.md),
|
|
119
|
+
off unless chosen). The two never drive one session: the private server's environment silences
|
|
120
|
+
this connector's hooks, so two integration surfaces cannot race to decide the same permission.
|
|
121
|
+
Sessions you start yourself always use these hooks.
|
|
96
122
|
|
|
97
123
|
See the [adapter capability matrix](../../README.md#adapter-capability-matrix) for how this compares across adapters.
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
# This declarative dialect is compiled into the CLI. Codex hook payloads carry the event name
|
|
4
4
|
# and session id directly; they are correlation only. The scoped channel credential remains
|
|
5
5
|
# the sole authorization and mission-scope authority.
|
|
6
|
+
#
|
|
7
|
+
# Subagents: inside a spawned subagent Codex sends the *root* session's id as `session_id` (every
|
|
8
|
+
# thread of a session tree shares its agent-control identity; codex-rs 0.170
|
|
9
|
+
# `core/src/hook_runtime.rs`, `core/src/agent/control.rs`) and the child thread's id as
|
|
10
|
+
# `agent_id` (`agent_type` is its role). So a subagent's hook events correlate with the session
|
|
11
|
+
# that spawned it, and `agent_id` is recorded as the event's `subagentId`.
|
|
6
12
|
codecVersion: 1
|
|
7
13
|
adapter: codex
|
|
8
14
|
|
|
@@ -20,6 +26,7 @@ events:
|
|
|
20
26
|
inputPath: tool_input
|
|
21
27
|
callIdPath: tool_use_id
|
|
22
28
|
turnIdPath: turn_id
|
|
29
|
+
subagentIdPath: agent_id
|
|
23
30
|
|
|
24
31
|
- native: PostToolUse
|
|
25
32
|
kind: tool.completed
|
|
@@ -28,6 +35,7 @@ events:
|
|
|
28
35
|
inputPath: tool_input
|
|
29
36
|
callIdPath: tool_use_id
|
|
30
37
|
turnIdPath: turn_id
|
|
38
|
+
subagentIdPath: agent_id
|
|
31
39
|
# Codex runs PostToolUse after a handler returns a result, but apply_patch reports its own
|
|
32
40
|
# failure inside that result: `tool_response` is text whose first line is `Exit code: <n>`
|
|
33
41
|
# (upstream codex-rs hook test `post_tool_use_records_additional_context_for_apply_patch`
|
|
@@ -53,6 +61,7 @@ events:
|
|
|
53
61
|
origin: user
|
|
54
62
|
promptPath: prompt
|
|
55
63
|
turnIdPath: turn_id
|
|
64
|
+
subagentIdPath: agent_id
|
|
56
65
|
|
|
57
66
|
- native: SessionStart
|
|
58
67
|
kind: session.started
|