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
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
# Authoritative and fixture-backed. Validated against contract/harness-capabilities.schema.yaml.
|
|
4
4
|
# See connectors/AGENTS.md → "Harness capability descriptors" before writing any code here.
|
|
5
5
|
#
|
|
6
|
-
# The supported hook surface is proven by
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# The supported hook surface is proven by payload fixtures recorded live from codex-cli 0.170.0
|
|
7
|
+
# and checked against the published 0.171.0 hook schemas. An Overlord-launched objective in
|
|
8
|
+
# hooks mode was re-run live end to end on 0.171.0 (coo:1325.tg2w): attach, PostToolUse change
|
|
9
|
+
# capture of an apply_patch edit, delivery. Overlord-launched objectives may instead run through
|
|
10
|
+
# the separate `codex-app-server` adapter (app-server mode, ADR 0092); the two never drive one
|
|
11
|
+
# session, and this adapter claims no decide.* row, so no second authority races hook decisions.
|
|
9
12
|
schemaVersion: 1
|
|
10
13
|
adapter: codex
|
|
11
14
|
codec: codex
|
|
@@ -14,7 +17,7 @@ decisionCodecSpec: codec/codex.decision-codec.yaml
|
|
|
14
17
|
|
|
15
18
|
harness:
|
|
16
19
|
name: Codex CLI
|
|
17
|
-
verifiedVersion: '0.
|
|
20
|
+
verifiedVersion: '0.171.0'
|
|
18
21
|
versionRange: '>=0.124.0'
|
|
19
22
|
versionScheme: semver
|
|
20
23
|
|
|
@@ -26,10 +29,14 @@ binding:
|
|
|
26
29
|
status: supported
|
|
27
30
|
fixture: fixtures/normalize-session-start.json
|
|
28
31
|
notes: >-
|
|
29
|
-
`
|
|
30
|
-
`
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
Shell tools see `CODEX_SESSION_ID` (the root session, which hooks send as `session_id`)
|
|
33
|
+
and `CODEX_THREAD_ID`; in a root thread both equal the thread id
|
|
34
|
+
(fixtures/shell-session-env.json). Binding stays on the payload field; attach run by a
|
|
35
|
+
Codex agent indexes `CODEX_SESSION_ID` in the native-session index, so the payload id can
|
|
36
|
+
find it. Inside a spawned
|
|
37
|
+
subagent `session_id` is the root session's id (root-session inheritance, verified in the
|
|
38
|
+
0.170 source) and `agent_id` names the child thread, so a subagent's hook events bind to the
|
|
39
|
+
session that spawned it and record the child as `subagentId`.
|
|
33
40
|
|
|
34
41
|
decisionHold:
|
|
35
42
|
status: supported
|
|
@@ -41,10 +48,14 @@ decisionHold:
|
|
|
41
48
|
trackedAs: agent-session-phase-4
|
|
42
49
|
notes: >-
|
|
43
50
|
Per-hook timeouts in seconds; the documentation gives a 600-second default. The adapter
|
|
44
|
-
must set `timeout` explicitly from the window policy and well below that default.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
must set `timeout` explicitly from the window policy and well below that default. The bound
|
|
52
|
+
is the handler's `timeout` key in hooks.json: the PermissionRequest payload carries no
|
|
53
|
+
timeout, request id or tool_use_id (0.170.0 live, 0.171.0 schema). Local
|
|
54
|
+
`codex exec --approve-for-me` smoke tests on 0.147.0 and again on 0.170.0 still emitted
|
|
55
|
+
PermissionRequest for an escalated shell command before automatic review decided it, so
|
|
56
|
+
auto-review does not bypass the installed request hook. A 0.170.0 `codex exec -s read-only -c
|
|
57
|
+
approval_policy="on-request"` run emitted PermissionRequest for the escalated shell command
|
|
58
|
+
and honored both the allow and the deny bytes in decision-codec.json.
|
|
48
59
|
|
|
49
60
|
mutationHooks:
|
|
50
61
|
classification: post-only
|
|
@@ -77,6 +88,7 @@ capabilities:
|
|
|
77
88
|
- fixtures/normalize-post-tool-use.json
|
|
78
89
|
- fixtures/normalize-post-tool-use-failed.json
|
|
79
90
|
- fixtures/normalize-post-tool-use-rename.json
|
|
91
|
+
- fixtures/normalize-post-tool-use-subagent.json
|
|
80
92
|
- fixtures/agent-session-hooks.json
|
|
81
93
|
- fixtures/post-tool-use-hook.json
|
|
82
94
|
- fixtures/post-tool-use-unbound.json
|
|
@@ -88,7 +100,8 @@ capabilities:
|
|
|
88
100
|
read, search, and fetch callbacks are
|
|
89
101
|
silent no-ops; mutation-capable callbacks without a normalized edit path, plus shell,
|
|
90
102
|
generic, unknown, and unmapped callbacks, record unavailable evidence health. It remains
|
|
91
|
-
separate from mechanical agent-session observation.
|
|
103
|
+
separate from mechanical agent-session observation. A subagent's edits run in the same
|
|
104
|
+
Codex process and environment, so they are captured for the same objective.
|
|
92
105
|
observe.sessionLifecycle:
|
|
93
106
|
status: not-implemented
|
|
94
107
|
native: SessionStart
|
|
@@ -138,6 +151,9 @@ capabilities:
|
|
|
138
151
|
status: not-implemented
|
|
139
152
|
native: Stop
|
|
140
153
|
trackedAs: latch-engine
|
|
154
|
+
fixtures: [fixtures/stop.json]
|
|
155
|
+
notes: >-
|
|
156
|
+
The recorded Stop payload is shape evidence only; the connector registers no Stop hook.
|
|
141
157
|
inject.nextTurn:
|
|
142
158
|
status: not-implemented
|
|
143
159
|
native: Stop
|
|
@@ -150,8 +166,29 @@ capabilities:
|
|
|
150
166
|
integration could change this; it would be a different integrationShape.)
|
|
151
167
|
evidenceRef: connector-harness-taxonomy.md#12-the-axis-that-actually-matters
|
|
152
168
|
terminal.statusSurface:
|
|
153
|
-
status:
|
|
154
|
-
|
|
169
|
+
status: supported
|
|
170
|
+
native: statusline MCP provider (tui_extensions_statusline)
|
|
171
|
+
fixtures:
|
|
172
|
+
- fixtures/status-line-state.json
|
|
173
|
+
- fixtures/status-line-provider.json
|
|
174
|
+
- fixtures/shell-session-env.json
|
|
175
|
+
- fixtures/status-line-opt-in.json
|
|
176
|
+
notes: >-
|
|
177
|
+
Codex 0.171+ with the experimental feature `tui_extensions_statusline` (off by default)
|
|
178
|
+
renders an MCP statusline provider in the TUI footer. The Overlord plugin's MCP server
|
|
179
|
+
advertises one (`overlord_status_line`, resource `ui://overlord/status-line`); Codex reads
|
|
180
|
+
it about once a second with the displayed thread's state, allows one second per read and
|
|
181
|
+
stops polling after an error, so the shim always answers at once: the model, folder and
|
|
182
|
+
context items it replaces, then the Overlord segment from `ovld status-line --agent codex
|
|
183
|
+
--ui-tree --native-session-id <thread id>` (mission and objective, awaiting answer or
|
|
184
|
+
approval, blocked, delivered), cached per thread for 10 s. Binding is the native-session
|
|
185
|
+
index, written by attach from `CODEX_SESSION_ID` (equal to a root thread's id), else the
|
|
186
|
+
launch environment; an unbound thread shows only the built-in items. In 0.171 the TUI
|
|
187
|
+
reads through a shared app-server daemon that outlives the session, so the launch
|
|
188
|
+
environment is only reliable for the session that started the daemon; the index is the
|
|
189
|
+
binding that holds. Opt-in: `ovld agent-setup codex --status-line` turns the feature on
|
|
190
|
+
when unset and selects the provider in user config only when none is selected. A child
|
|
191
|
+
thread viewed in the TUI is not indexed and shows no segment. Verified live on 0.171.0.
|
|
155
192
|
|
|
156
193
|
hazards:
|
|
157
194
|
- id: two-integration-surfaces-could-disagree
|
|
@@ -159,17 +196,62 @@ hazards:
|
|
|
159
196
|
summary: >-
|
|
160
197
|
Hooks and `codex app-server` can both answer a permission. A session driven by both
|
|
161
198
|
would race in a way no revision CAS can settle, so exactly one surface must be chosen
|
|
162
|
-
and documented before either is built.
|
|
199
|
+
and documented before either is built. Chosen per session: user-started Codex sessions use
|
|
200
|
+
this hooks adapter, which claims no `decide.*`; Overlord-driven sessions use the separate
|
|
201
|
+
`codex-app-server` adapter, whose server environment silences these hooks
|
|
202
|
+
(`plugin-hooks-fire-inside-app-server-threads`).
|
|
163
203
|
verification: verified
|
|
164
204
|
mitigation: implemented
|
|
165
205
|
fixture: fixtures/agent-session-hooks.json
|
|
206
|
+
- id: plugin-hooks-fire-inside-app-server-threads
|
|
207
|
+
severity: high
|
|
208
|
+
summary: >-
|
|
209
|
+
The installed Overlord Codex plugin's hooks run inside `codex app-server` threads too
|
|
210
|
+
(spike coo:1325.gqfy: hook/started for userPromptSubmit and postToolUse inside app-server
|
|
211
|
+
turns). When the `codex-app-server` adapter drives a session, a hook that still reported
|
|
212
|
+
would capture every edit twice and could attribute a thread to whatever objective started
|
|
213
|
+
the server. The supervisor starts the server with an allowlisted environment (no
|
|
214
|
+
objective, mission or channel scope) plus OVERLORD_CONTROL_PLANE_SURFACE, and every
|
|
215
|
+
Overlord callback exits before any work when that marker is set. In app-server mode only
|
|
216
|
+
the adapter observes and answers, which also keeps `two-integration-surfaces-could-disagree`
|
|
217
|
+
closed by construction.
|
|
218
|
+
verification: verified
|
|
219
|
+
mitigation: implemented
|
|
220
|
+
fixture: fixtures/control-plane-surface-guard.json
|
|
221
|
+
- id: prompt-hook-inside-app-server-threads
|
|
222
|
+
severity: medium
|
|
223
|
+
summary: >-
|
|
224
|
+
The plugin's UserPromptSubmit callback writes the native-session alias and spawns
|
|
225
|
+
`ovld protocol hook-event`; inside an Overlord-driven app server it must do neither, for
|
|
226
|
+
the same reason as the PostToolUse callback.
|
|
227
|
+
verification: verified
|
|
228
|
+
mitigation: implemented
|
|
229
|
+
fixture: fixtures/control-plane-surface-prompt-guard.json
|
|
230
|
+
- id: subagent-hooks-share-the-root-session
|
|
231
|
+
severity: medium
|
|
232
|
+
summary: >-
|
|
233
|
+
Codex runs the plugin's hooks inside spawned subagents too. In 0.170 every thread of a
|
|
234
|
+
session tree shares the root's agent-control identity, so a subagent's hook payload carries
|
|
235
|
+
the root session's `session_id` plus `agent_id` (the child thread) and `agent_type` (its
|
|
236
|
+
role) — codex-rs `core/src/hook_runtime.rs` and `core/src/agent/control.rs`; the 0.168
|
|
237
|
+
`InheritedSessionId` extension does the same for host-started child threads. The codec
|
|
238
|
+
records `agent_id` as `subagentId`, so a user-started session's subagent work correlates
|
|
239
|
+
with the parent session instead of appearing as a separate one. Not covered: a 0.170 fork
|
|
240
|
+
(`/fork`) gets a new session id and correlates as its own session; release notes say 0.171
|
|
241
|
+
makes forks inherit the root session id, which has not been run here. SubagentStart and
|
|
242
|
+
SubagentStop hooks exist but are not registered; the parent's tool calls already show the
|
|
243
|
+
spawn.
|
|
244
|
+
verification: verified
|
|
245
|
+
mitigation: implemented
|
|
246
|
+
fixture: fixtures/normalize-post-tool-use-subagent.json
|
|
166
247
|
- id: prompt-and-agent-hook-handlers-inert
|
|
167
248
|
severity: low
|
|
168
249
|
summary: >-
|
|
169
|
-
Codex
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
250
|
+
Codex parses `prompt` and `agent` hook handlers and then skips them with a "not supported
|
|
251
|
+
yet" warning (re-checked live on 0.170.0 and in the 0.171.0 hook discovery source), so a
|
|
252
|
+
manifest that used either would install cleanly, list in `hooks`, and never execute.
|
|
253
|
+
`command` runs, and since 0.148 an `mcp_tool` handler can call an MCP tool; the connector
|
|
254
|
+
uses neither `mcp_tool` nor the inert types. The connector must keep emitting `command` handlers
|
|
173
255
|
only, and must not read the presence of these variants in the schema as availability.
|
|
174
256
|
`command` is a shell command line run through `$SHELL -lc` (`/bin/sh` when SHELL is
|
|
175
257
|
unset) — it is not restricted to Bash and not restricted to shell scripting, since the
|
|
@@ -181,9 +263,25 @@ hazards:
|
|
|
181
263
|
summary: >-
|
|
182
264
|
Hooks were experimental behind `features.codex_hooks` before v0.124. The connector
|
|
183
265
|
requires Codex >=0.124; installations outside that range must be treated as unavailable.
|
|
266
|
+
Re-checked at 0.171.0: `hooks` is a stable feature and the hook schemas the connector
|
|
267
|
+
reads are unchanged, but nothing yet enforces the lower bound at install or launch.
|
|
184
268
|
verification: verified
|
|
185
269
|
mitigation: required
|
|
186
270
|
trackedAs: agent-session-phase-4
|
|
271
|
+
- id: plugin-hook-trust-pinned-to-bundle
|
|
272
|
+
severity: high
|
|
273
|
+
summary: >-
|
|
274
|
+
Codex runs a plugin hook only after the user approves it in `/hooks`, and from 0.164 the
|
|
275
|
+
approval (`trusted_content_hash` in config.toml) pins a fingerprint of the whole installed
|
|
276
|
+
plugin bundle. A fresh `ovld agent-setup codex`, and every connector update after it
|
|
277
|
+
(each one bumps plugin.json), leaves the Overlord hooks unapproved. The interactive TUI
|
|
278
|
+
asks for review; `codex exec` skips them silently, so prompt capture and change
|
|
279
|
+
capture stop without an error. `ovld agent-setup codex` and `ovld doctor` reproduce the
|
|
280
|
+
fingerprint and name the hooks that will not run. Overlord never writes hook trust:
|
|
281
|
+
approving a hook stays the user's decision, and `--dangerously-bypass-hook-trust` is
|
|
282
|
+
not used.
|
|
283
|
+
verification: verified
|
|
284
|
+
mitigation: accepted
|
|
187
285
|
|
|
188
286
|
decisionShape:
|
|
189
287
|
codec: codex
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
# Uses the protocol CLI so the hook stays behind the Connector → Protocol
|
|
5
5
|
# boundary. Silently no-ops if the mission or CLI is unavailable — the hook must
|
|
6
6
|
# never block the user or leak errors into the Codex session.
|
|
7
|
+
# A harness process an Overlord control-plane supervisor drives (for example a private
|
|
8
|
+
# `codex app-server`) carries OVERLORD_CONTROL_PLANE_SURFACE. The supervisor observes, decides
|
|
9
|
+
# and captures for it, so this callback must not report a second time.
|
|
10
|
+
[ -z "${OVERLORD_CONTROL_PLANE_SURFACE:-}" ] || exit 0
|
|
11
|
+
|
|
7
12
|
BODY=$(cat -)
|
|
8
13
|
if [ -n "${MISSION_ID:-}" ] && command -v ovld >/dev/null 2>&1; then
|
|
9
14
|
(
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
# Codex exposes turn_number in the hook body; turn 0 is the initial injected
|
|
4
4
|
# mission/objective prompt, which `ovld protocol hook-event` skips.
|
|
5
5
|
|
|
6
|
+
# A harness process an Overlord control-plane supervisor drives (for example a private
|
|
7
|
+
# `codex app-server`) carries OVERLORD_CONTROL_PLANE_SURFACE. The supervisor observes, decides
|
|
8
|
+
# and captures for it, so this callback must not report a second time.
|
|
9
|
+
[ -z "${OVERLORD_CONTROL_PLANE_SURFACE:-}" ] || exit 0
|
|
10
|
+
|
|
6
11
|
BODY=$(cat -)
|
|
7
12
|
HOOK_NAME="codex"
|
|
8
13
|
LOG_DIR="${HOME:-}/.ovld/logs"
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
<!-- GENERATED FILE — DO NOT EDIT. Source: harness-capabilities.yaml. Regenerate with `yarn connectors:capabilities`. -->
|
|
2
|
+
|
|
3
|
+
# Codex app server — Overlord agent-session capabilities
|
|
4
|
+
|
|
5
|
+
**Adapter** `codex-app-server` · **Codec** `codex-app-server` · **Integration shape** `controlPlane` · **Capability tier** 3 (Conversational)
|
|
6
|
+
|
|
7
|
+
**Harness version verified** `0.171.0` · **range** `>=0.170.0` · **scheme** `semver`
|
|
8
|
+
|
|
9
|
+
**Descriptor digest** `62fe3dc93ee7f64f6fb52d48e88e10679c9a32a92abc6b16ace29571284fcbf2`
|
|
10
|
+
|
|
11
|
+
> The tier is derived from passing fixtures, never authored. `unsupported` means the harness
|
|
12
|
+
> cannot do it — do not attempt it. `not-implemented` means it is buildable and unbuilt: that is
|
|
13
|
+
> your work. `unverified` means find out first. `supported` without a passing fixture is a CI
|
|
14
|
+
> failure, not a claim.
|
|
15
|
+
|
|
16
|
+
## Session binding
|
|
17
|
+
|
|
18
|
+
| Field | Value |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| Status | ✅ supported |
|
|
21
|
+
| Source | `env` |
|
|
22
|
+
| Field | `OVERLORD_SESSION_CHANNEL_ID` |
|
|
23
|
+
| Evidence | fixtures: `fixtures/replay-handshake.json` |
|
|
24
|
+
|
|
25
|
+
The supervisor is started by Overlord with the channel bootstrap in its own environment, so it holds the authority before the thread exists. It starts (or resumes) one persistent thread and records the thread id as the channel's native session alias with its first heartbeat. The thread id is correlation only: Codex's own `sessionId`, `threadId` and the socket path confer nothing.
|
|
26
|
+
|
|
27
|
+
The native session id is a **correlation alias only**. Authorization and mission scope come
|
|
28
|
+
from the verified channel/session credential; neither the working directory nor an unverified
|
|
29
|
+
native id is a binding authority.
|
|
30
|
+
|
|
31
|
+
## Decision hold
|
|
32
|
+
|
|
33
|
+
| Field | Value |
|
|
34
|
+
| --- | --- |
|
|
35
|
+
| Status | ✅ supported |
|
|
36
|
+
| Harness ceiling | none documented |
|
|
37
|
+
| Evidence | fixtures: `fixtures/replay-command-approval.json` |
|
|
38
|
+
|
|
39
|
+
Codex holds an approval as a pending JSON-RPC request until some subscribed client answers it, with no harness timeout. The adapter therefore holds nothing: it renews a waiter lease on the channel request while a person decides, and if it dies the lease lapses and the Codex request simply stays open for the terminal.
|
|
40
|
+
|
|
41
|
+
## Mutation-window evidence
|
|
42
|
+
|
|
43
|
+
| Field | Value |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| Classification | `paired` |
|
|
46
|
+
| Executable fixture | `fixtures/mutation-window-evidence.json` |
|
|
47
|
+
|
|
48
|
+
`item/started` carries the fileChange item (paths and diff) before the patch approval and before anything is written; `item/completed` carries the same item id and path with the final status. The diff is used only for the approval card's line counts and never leaves the machine.
|
|
49
|
+
|
|
50
|
+
The fixture proves a matching native pre/post window. Runtime window evidence must retain
|
|
51
|
+
the same session, call, workspace, tool, outcome, and direct-path semantics.
|
|
52
|
+
|
|
53
|
+
## Capabilities
|
|
54
|
+
|
|
55
|
+
| Capability | Status | Native | Evidence |
|
|
56
|
+
| --- | --- | --- | --- |
|
|
57
|
+
| `observe.prompt` | ✅ supported | `item/completed:userMessage` | fixtures: `fixtures/normalize-user-message.json`, `fixtures/normalize-steer-message.json`, `fixtures/replay-history-import.json` |
|
|
58
|
+
| `observe.toolCall` | ✅ supported | `item/started:commandExecution` | fixtures: `fixtures/normalize-command-started.json`, `fixtures/normalize-file-change-started.json` |
|
|
59
|
+
| `observe.toolResult` | ✅ supported | `item/completed:commandExecution` | fixtures: `fixtures/normalize-command-completed.json` |
|
|
60
|
+
| `observe.fileEdit` | ✅ supported | `item/completed:fileChange` | fixtures: `fixtures/normalize-file-change-completed.json`, `fixtures/normalize-file-change-declined.json`, `fixtures/mutation-window-evidence.json`, `fixtures/normalize-child-file-change.json`, `fixtures/replay-child-thread.json` |
|
|
61
|
+
| `observe.sessionLifecycle` | ✅ supported | `thread/started` | fixtures: `fixtures/normalize-thread-started.json`, `fixtures/normalize-turn-interrupted.json`, `fixtures/normalize-subagent-started.json`, `fixtures/normalize-fork-started.json` |
|
|
62
|
+
| `decide.shell` | ✅ supported | `item/commandExecution/requestApproval` | fixtures: `fixtures/replay-command-approval.json`, `fixtures/human-answers-control-plane-cards.json` |
|
|
63
|
+
| `decide.mcp` | ❓ unverified | `mcpServer/elicitation/request` | tracked as `coo-1325-codex-mcp-elicitation-frames` |
|
|
64
|
+
| `decide.fileWrite` | ✅ supported | `item/fileChange/requestApproval` | fixtures: `fixtures/replay-patch-approval.json`, `fixtures/replay-child-thread.json` |
|
|
65
|
+
| `decide.anyTool` | ⛔ unsupported | `approvalPolicy` | Codex gates by sandbox and approval policy, not per tool: web search, dynamic tools and in-sandbox reads are never routed to a client for approval, so there is no request to answer for an arbitrary tool. (evidence: `planning/feature-plans/codex-app-server-control-plane.md#33-approvals-and-questions`) |
|
|
66
|
+
| `decide.universal` | ⛔ unsupported | `approvalPolicy` | The app server has no pre-tool callback that every tool passes through; that exists only on the hooks surface, which does not run in this mode. (evidence: `planning/feature-plans/codex-app-server-control-plane.md#54-capability-targets-per-matrix-row`) |
|
|
67
|
+
| `answer.structuredQuestion` | ❓ unverified | `item/tool/requestUserInput` | tracked as `coo-1325-codex-request-user-input-frames` |
|
|
68
|
+
| `answer.persistentAllow` | 🚧 not-implemented | `acceptForSession` | tracked as `agent-session-phase-2` |
|
|
69
|
+
| `inject.midTurn` | ✅ supported | `turn/steer` | fixtures: `fixtures/replay-inject-steer.json` |
|
|
70
|
+
| `inject.turnBoundary` | ✅ supported | `turn/start` | fixtures: `fixtures/replay-inject-turn-boundary.json` |
|
|
71
|
+
| `inject.nextTurn` | ✅ supported | `turn/start` | fixtures: `fixtures/replay-inject-turn-boundary.json` |
|
|
72
|
+
| `terminal.concurrentAnswer` | ✅ supported | `serverRequest/resolved` | fixtures: `fixtures/replay-concurrent-answer.json` |
|
|
73
|
+
| `terminal.statusSurface` | ✅ supported | `statusline MCP provider (tui_extensions_statusline)` | fixtures: `fixtures/status-line-provider.json`, `fixtures/status-line-thread-index.json` |
|
|
74
|
+
|
|
75
|
+
### Capability notes
|
|
76
|
+
|
|
77
|
+
- **`observe.prompt`** — Overlord's own steering input also arrives as a userMessage item, which is how an injected instruction is observed as received.
|
|
78
|
+
- **`observe.fileEdit`** — A subagent's file changes arrive on the same connection with the child thread id and are recorded for the parent session, with the child as `subagentId`, and reach change capture like the root thread's.
|
|
79
|
+
- **`observe.sessionLifecycle`** — Codex sends no thread/started for a spawned subagent; its parent's `subAgentActivity` item (started, completed, interrupted) is the child's lifecycle in the parent session. A fork reports thread/started with `forkedFromId`.
|
|
80
|
+
- **`decide.shell`** — The card is answered in Overlord (web, mobile, `ovld`) by the member who launched the session (ADR 0094), or in the attached TUI, whichever is first. Verified live on 0.171.0: four command approvals answered from the web app with the TUI attached.
|
|
81
|
+
- **`decide.mcp`** — MCP tool approvals arrive as MCP elicitations. None was raised against a live server, so the adapter refuses the request (fail closed) and the terminal decides.
|
|
82
|
+
- **`decide.fileWrite`** — A subagent's patch approval is answered the same way; its card names the subagent (`details.subagent`). Verified live on 0.171.0: a patch approval answered from the web app with the TUI attached.
|
|
83
|
+
- **`answer.structuredQuestion`** — The adapter routes a single, non-secret question to a channel request (code and unit tests), but no live server raised `item/tool/requestUserInput` in either probe — the model did not call the experimental tool when asked. Grade it supported only with a recorded frame.
|
|
84
|
+
- **`answer.persistentAllow`** — `acceptForSession` and execpolicy amendments exist and are never sent. Product policy hides standing grants from remote surfaces, as for OpenCode.
|
|
85
|
+
- **`terminal.concurrentAnswer`** — Codex fans an approval out to every subscriber and takes the first answer; a person at `codex --remote unix://… resume <thread>` can answer while Overlord holds a card, and the card closes as resolved elsewhere.
|
|
86
|
+
- **`terminal.statusSurface`** — The private app server loads the same user Codex config and plugins, so a terminal attached with `codex --remote unix://… resume <thread>` (Codex 0.171+, feature `tui_extensions_statusline`, selected by `ovld agent-setup codex --status-line`) shows the Codex hooks adapter's statusline provider. That provider runs inside the server's allowlisted environment, which carries no launch binding, so the sidecar indexes the session's thread under the `codex` agent when the thread is ready and removes the entry on exit. Verified live on 0.171.0 against a private server on a Unix socket.
|
|
87
|
+
|
|
88
|
+
## Hazards
|
|
89
|
+
|
|
90
|
+
| Hazard | Severity | Verification | Mitigation | Tracked as |
|
|
91
|
+
| --- | --- | --- | --- | --- |
|
|
92
|
+
| `experimental-surface-drift` | high | verified | implemented | fixture `fixtures/replay-version-gate.json` |
|
|
93
|
+
| `auto-review-would-bypass-overlord` | high | verified | implemented | fixture `fixtures/replay-handshake.json` |
|
|
94
|
+
| `control-socket-owns-the-session` | high | verified | implemented | fixture `fixtures/server-socket-owner-only.json` |
|
|
95
|
+
| `server-env-carries-scope` | high | verified | implemented | fixture `fixtures/server-socket-owner-only.json` |
|
|
96
|
+
| `stop-leaves-turn-running` | medium | verified | implemented | fixture `fixtures/replay-interrupt.json` |
|
|
97
|
+
| `launch-mints-no-channel` | high | verified | implemented | fixture `fixtures/launch-mints-control-plane-channel.json` |
|
|
98
|
+
| `human-session-controls-closed` | low | verified | required | `coo-1325-control-plane-human-controls` |
|
|
99
|
+
| `question-answer-double-delivery` | medium | verified | implemented | fixture `fixtures/human-answers-control-plane-cards.json` |
|
|
100
|
+
| `supervisor-killed-leaves-server` | medium | verified | implemented | fixture `fixtures/supervisor-watchdog.json` |
|
|
101
|
+
| `reasked-approval-inherits-answer` | medium | verified | implemented | fixture `fixtures/reasked-approval-occurrence.json` |
|
|
102
|
+
| `same-user-agent-reaches-credentials` | medium | verified | accepted | — |
|
|
103
|
+
| `child-threads-share-the-connection` | high | verified | implemented | fixture `fixtures/replay-child-thread.json` |
|
|
104
|
+
| `notifications-missed-while-disconnected` | medium | verified | implemented | fixture `fixtures/replay-history-import.json` |
|
|
105
|
+
| `fork-history-repeats-source-turns` | low | verified | implemented | fixture `fixtures/replay-history-import.json` |
|
|
106
|
+
| `implicit-folder-trust` | low | verified | implemented | fixture `fixtures/trust-entry-cleanup.json` |
|
|
107
|
+
|
|
108
|
+
**`experimental-surface-drift`** — `codex app-server` and its WebSocket transport are labelled experimental, and 0.168–0.171 each changed app-server behavior. The adapter speaks only a pinned method list, refuses a server whose initialize userAgent reports a version below the verified range, ignores unknown notifications and refuses unknown server requests.
|
|
109
|
+
|
|
110
|
+
**`auto-review-would-bypass-overlord`** — A user config with `approvals_reviewer = "auto_review"` makes a Codex subagent decide approvals the client never sees, and a thread started without an explicit reviewer inherits it (spike, LIVE). Every thread is started or resumed with `approvalsReviewer: "user"`.
|
|
111
|
+
|
|
112
|
+
**`control-socket-owns-the-session`** — Anything that can connect to the app server can drive the agent. The server listens only on `unix://` in an owner-only `~/.ovld/cx/` (Codex keeps the real 0600 socket in its own 0700 directory, and the supervisor connects only after checking that socket and directory belong to this user and are not group- or world-writable), never on TCP and never on the user's shared daemon socket; the supervisor starts no thread until the server reports remote control `disabled` right after `initialize`, and stops if it later reports anything else. A same-user local process can still connect, exactly as the TUI does (see `same-user-agent-reaches-credentials`).
|
|
113
|
+
|
|
114
|
+
**`server-env-carries-scope`** — Commands the agent runs inherit the app server's environment. The server is started with an allowlisted environment, so the user token, channel credentials and objective scope never reach it, and with OVERLORD_CONTROL_PLANE_SURFACE so the Codex plugin's own hooks stay silent inside it (see the codex adapter's `plugin-hooks-fire-inside-app-server-threads`).
|
|
115
|
+
|
|
116
|
+
**`stop-leaves-turn-running`** — Ending an Overlord session must not leave Codex working. When the channel stops honoring the credential, or the supervisor is signalled, it interrupts the running turn before closing the connection.
|
|
117
|
+
|
|
118
|
+
**`launch-mints-no-channel`** — The adapter needs a credentialed session channel, and launch minted none since contract 76 (ADR 0065). A Codex launch in app-server mode now mints one through POST /api/objectives/{id}/session-channels, stages it in the owner-only cache and starts the supervisor; every other launch still mints none (ADR 0092).
|
|
119
|
+
|
|
120
|
+
**`human-session-controls-closed`** — This adapter's approval, question and choice cards are answered from Overlord (delivery mode `control_plane`, ADR 0094); an approval only by the member who launched the session. Session inputs are still refused for every adapter (`POST /api/agent-session-inputs` answers 410), so a follow-up, steer or interrupt is typed in the attached TUI (`ovld agent-session attach`), not sent from web or mobile.
|
|
121
|
+
|
|
122
|
+
**`question-answer-double-delivery`** — A human answer to a question or choice request is delivered through Latch into the session's terminal (ADR 0065). For a codex-app-server session that would type the answer into an attached TUI as well as answering the JSON-RPC request. The resolve route now records an answer to a control-plane request without any Latch delivery, and the supervisor answers the JSON-RPC request from its waiter lease (ADR 0094).
|
|
123
|
+
|
|
124
|
+
**`supervisor-killed-leaves-server`** — The private server runs in its own process group so the supervisor can stop it, and it ignores SIGTERM while a turn runs (LIVE), so stop escalates to SIGKILL. A supervisor that is itself killed with SIGKILL would leave the server running its turn unsupervised, so a detached `sh` watchdog started with the server ends the server's group within about a second of the supervisor's pid disappearing. The next supervisor start and `ovld doctor` still reap any server left behind, after checking the pid belongs to a Codex app server.
|
|
125
|
+
|
|
126
|
+
**`reasked-approval-inherits-answer`** — Codex can ask twice about one item (a command that failed in the sandbox is asked again to run outside it, with the same item id), and the channel dedupes cards by native request id, returning the earlier card with its answer. The supervisor gives a later request for an already-settled item its own occurrence id (`<item>#2`), so an earlier allow is never applied to a new, possibly broader, approval; a replay of a still-open card keeps its id.
|
|
127
|
+
|
|
128
|
+
**`same-user-agent-reaches-credentials`** — Commands the agent runs execute as the person's own OS user, and Codex's workspace-write sandbox allows reading the whole filesystem. With network access (granted per command, or a sandbox that allows it) such a command could read the person's `ovld` login and the channel credential cache, or connect to this session's own socket, and answer the session's cards. The server's environment carries no credential and the channel credential cannot resolve a request, but the same-user boundary is the person's own account. Accepted and documented; a sandbox that denies reading `~/.ovld` is the stronger control where Codex supports it.
|
|
129
|
+
|
|
130
|
+
**`child-threads-share-the-connection`** — The app server attaches every connection to every thread it creates (LIVE 0.170, and `try_attach_thread_listener` in the 0.170 source), so a subagent's notifications and its approval requests reach the Overlord connection with the child's thread id, and so do those of a thread another client started from scratch. The supervisor keeps the session's thread tree: a child announced by a tree thread's `subAgentActivity` or `spawnAgent` item, a thread whose `thread/read` lineage (`parentThreadId`, `forkedFromId`, or the root's inherited `sessionId`) points into the tree, or a fork reported by thread/started, is the session's work and is attributed to it; any other thread is looked up once and then ignored — no event, no capture, no card, and its approvals are left to its own client.
|
|
131
|
+
|
|
132
|
+
**`notifications-missed-while-disconnected`** — Notifications are not replayed, so whatever a thread or its subagents did while the supervisor's socket was down (server crash and respawn, dropped connection, a supervisor started on an existing thread) would be missing from the session feed and the change ledger. After every resume the supervisor pages `thread/turns/list` for each thread in the tree (children found by `thread/list {parentThreadId}`) and replays completed items through the live path. Event ids are content-derived and equal the live ones, and the change ledger appends a path once, so nothing already captured is duplicated.
|
|
133
|
+
|
|
134
|
+
**`fork-history-repeats-source-turns`** — A fork's `thread/turns/list` begins with its source's turns, with the same turn and item ids (LIVE 0.170; 0.169 made paging work across fork segments). Importing them under the fork would credit the source's work to the fork. The import walks the tree root first and skips a turn it has already imported in the same pass. A fork is only known from its thread/started, so one made while Overlord was disconnected is not found by the import (`thread/list` has no fork filter); spawned subagents are.
|
|
135
|
+
|
|
136
|
+
**`implicit-folder-trust`** — `thread/start` in an untrusted git checkout with a writable sandbox writes `trust_level = "trusted"` for that path into the user's ~/.codex/config.toml (LIVE). The supervisor records the entry its thread added and removes exactly that table when the session ends, only while it holds nothing but that line (ADR 0092; LIVE on 0.170 and 0.171). A symlinked config is edited at its target, so the link survives.
|
|
137
|
+
|
|
138
|
+
## Native decision shape
|
|
139
|
+
|
|
140
|
+
- **Codec** `codex-app-server`
|
|
141
|
+
- **Never send** `hookSpecificOutput`, `permissionDecision`, `acceptForSession`, `acceptWithExecpolicyAmendment`
|
|
142
|
+
|
|
143
|
+
Decisions are JSON-RPC results to Codex's own request id: `{"decision": "accept"}`, `{"decision": "decline"}`, or `{"decision": "cancel"}` when Codex did not offer decline. Hook-dialect fields mean nothing here, and standing grants are never sent.
|
|
144
|
+
|
|
145
|
+
## Unbound-session negative test
|
|
146
|
+
|
|
147
|
+
Fixture: `fixtures/unbound-session.json` — proves what this adapter's registered
|
|
148
|
+
integrations do in a session with no Overlord binding, in an unrelated directory.
|
|
149
|
+
|