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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
contractVersion: "
|
|
1
|
+
contractVersion: "181.0.0"
|
|
2
2
|
componentType: connector
|
|
3
3
|
componentKey: codex
|
|
4
4
|
label: "Codex Connector"
|
|
@@ -14,7 +14,7 @@ connector:
|
|
|
14
14
|
harnessCapabilities:
|
|
15
15
|
path: connectors/adapters/codex/harness-capabilities.yaml
|
|
16
16
|
schemaVersion: 1
|
|
17
|
-
digest: "
|
|
17
|
+
digest: "689c59aa63597d90cf3ef64ac11fd339f543c9f381646f98e6c417c5c31bbc38"
|
|
18
18
|
# ── END GENERATED ────────────────────────────────────────────────────────────
|
|
19
19
|
installPath: "~/.codex/plugins/overlord"
|
|
20
20
|
managedFiles:
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "script-io",
|
|
4
|
+
"description": "Inside a private `codex app-server` that the Overlord codex-app-server supervisor drives, the server environment carries OVERLORD_CONTROL_PLANE_SURFACE. The installed Codex plugin's PostToolUse callback still fires there (spike: hook/started inside app-server turns), so it must exit before reading stdin or spawning the CLI even when an objective is in scope: the supervisor already captures the change, and a second capture would double-attribute it.",
|
|
5
|
+
"script": "connectors/core/scripts/capture-change-hook.sh",
|
|
6
|
+
"adapterKey": "codex",
|
|
7
|
+
"stdin": {
|
|
8
|
+
"session_id": "01a1faaf-cd91-7372-a780-f5a9c5b457a7",
|
|
9
|
+
"hook_event_name": "PostToolUse",
|
|
10
|
+
"cwd": "/repo",
|
|
11
|
+
"tool_name": "apply_patch",
|
|
12
|
+
"tool_input": { "command": "*** Begin Patch\n*** Add File: notes.md\n+hello\n*** End Patch" }
|
|
13
|
+
},
|
|
14
|
+
"env": {
|
|
15
|
+
"OVERLORD_CONTROL_PLANE_SURFACE": "codex-app-server",
|
|
16
|
+
"OVERLORD_OBJECTIVE_ID": "coo:1.abcd",
|
|
17
|
+
"MISSION_ID": "coo:1"
|
|
18
|
+
},
|
|
19
|
+
"expect": {
|
|
20
|
+
"exitCode": 0,
|
|
21
|
+
"stdout": "",
|
|
22
|
+
"stderr": "",
|
|
23
|
+
"cliInvocations": [],
|
|
24
|
+
"sandboxWrites": []
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "script-io",
|
|
4
|
+
"description": "The Codex plugin's UserPromptSubmit callback also stays silent inside an Overlord-driven app server (OVERLORD_CONTROL_PLANE_SURFACE set): no native-session write, no log, no `ovld protocol hook-event`, even with a mission in scope. The supervisor records prompts from the thread's userMessage items instead.",
|
|
5
|
+
"script": "connectors/adapters/codex/scripts/user-prompt-submit-hook.sh",
|
|
6
|
+
"stdin": {
|
|
7
|
+
"session_id": "01a1faaf-cd91-7372-a780-f5a9c5b457a7",
|
|
8
|
+
"hook_event_name": "UserPromptSubmit",
|
|
9
|
+
"turn_number": 2,
|
|
10
|
+
"prompt": "Also make notes.md end with a second line: bye"
|
|
11
|
+
},
|
|
12
|
+
"env": {
|
|
13
|
+
"OVERLORD_CONTROL_PLANE_SURFACE": "codex-app-server",
|
|
14
|
+
"MISSION_ID": "coo:1",
|
|
15
|
+
"CODEX_THREAD_ID": "01a1faaf-cd91-7372-a780-f5a9c5b457a7"
|
|
16
|
+
},
|
|
17
|
+
"expect": {
|
|
18
|
+
"exitCode": 0,
|
|
19
|
+
"stdout": "",
|
|
20
|
+
"stderr": "",
|
|
21
|
+
"cliInvocations": [],
|
|
22
|
+
"sandboxWrites": []
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixtureVersion": 1,
|
|
3
3
|
"kind": "decision-codec",
|
|
4
|
-
"description": "Codex request reduction and exact allow/deny/defer output.",
|
|
4
|
+
"description": "Codex request reduction and exact allow/deny/defer output. Payload shape recorded live from codex-cli 0.170.0 and checked against the 0.171.0 schemas: PermissionRequest carries no request id, tool_use_id or timeout, and tool_input.description echoes the command, so the secret appears in both.",
|
|
5
5
|
"codec": "codec/codex.decision-codec.yaml",
|
|
6
6
|
"payload": {
|
|
7
|
-
"hook_event_name": "PermissionRequest",
|
|
8
7
|
"session_id": "session-1",
|
|
8
|
+
"turn_id": "turn-1",
|
|
9
|
+
"transcript_path": null,
|
|
9
10
|
"cwd": "/repo",
|
|
11
|
+
"hook_event_name": "PermissionRequest",
|
|
12
|
+
"model": "gpt-6.2-astra",
|
|
13
|
+
"permission_mode": "default",
|
|
10
14
|
"tool_name": "Bash",
|
|
11
|
-
"tool_input": {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
"tool_input": {
|
|
16
|
+
"command": "echo AKIAIOSFODNN7EXAMPLE",
|
|
17
|
+
"description": "Allow echo AKIAIOSFODNN7EXAMPLE to run outside the sandbox?"
|
|
18
|
+
}
|
|
15
19
|
},
|
|
16
20
|
"expect": {
|
|
17
21
|
"request": {
|
|
@@ -25,9 +29,9 @@
|
|
|
25
29
|
"riskMarkers": ["secret-adjacent"],
|
|
26
30
|
"formatterVersion": 1
|
|
27
31
|
},
|
|
28
|
-
"nativeRequestId":
|
|
29
|
-
"nativeCallId":
|
|
30
|
-
"harnessTimeoutSeconds":
|
|
32
|
+
"nativeRequestId": null,
|
|
33
|
+
"nativeCallId": null,
|
|
34
|
+
"harnessTimeoutSeconds": null
|
|
31
35
|
},
|
|
32
36
|
"responses": {
|
|
33
37
|
"allow": "{\"hookSpecificOutput\":{\"hookEventName\":\"PermissionRequest\",\"decision\":{\"behavior\":\"allow\"}}}\n",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"transcript_path": "/Users/jake/.codex/sessions/secret.jsonl",
|
|
12
12
|
"cwd": "/repo",
|
|
13
13
|
"hook_event_name": "PostToolUse",
|
|
14
|
+
"model": "gpt-6.2-astra",
|
|
15
|
+
"permission_mode": "default",
|
|
14
16
|
"tool_name": "apply_patch",
|
|
15
17
|
"tool_input": {
|
|
16
18
|
"command": "*** Begin Patch\n*** Update File: /repo/src/attempted.ts\n@@\n-const a = 1;\n+const a = 'AKIAIOSFODNN7EXAMPLE';\n*** End Patch"
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"transcript_path": "/Users/jake/.codex/sessions/secret.jsonl",
|
|
12
12
|
"cwd": "/repo",
|
|
13
13
|
"hook_event_name": "PostToolUse",
|
|
14
|
+
"model": "gpt-6.2-astra",
|
|
15
|
+
"permission_mode": "default",
|
|
14
16
|
"tool_name": "apply_patch",
|
|
15
17
|
"tool_input": {
|
|
16
18
|
"command": "*** Begin Patch\n*** Update File: /repo/src/old-name.ts\n*** Move to: /repo/src/new-name.ts\n@@\n-export const key = 'AKIAIOSFODNN7EXAMPLE';\n+export const key = process.env.KEY;\n*** Delete File: /repo/src/removed.ts\n*** End Patch"
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "normalized-event",
|
|
4
|
+
"description": "Codex PostToolUse fired inside a spawned subagent, in the 0.170 hook shape: `session_id` is the root session (subagents share the session tree's agent-control identity) and `agent_id` is the child thread. The edit therefore correlates with the session that spawned the subagent and records the child as subagentId; the patch body, tool output, transcript path and model are not kept.",
|
|
5
|
+
"codec": "codec/codex.codec.yaml",
|
|
6
|
+
"occurredAt": "2026-08-01T00:00:00.000Z",
|
|
7
|
+
"payload": {
|
|
8
|
+
"session_id": "01a1faeb-d29d-77a2-91b0-89021afec101",
|
|
9
|
+
"turn_id": "01a1faeb-e98e-7f92-9764-6130255aed13",
|
|
10
|
+
"agent_id": "01a1faeb-e92a-7711-8210-2250b334ce2f",
|
|
11
|
+
"agent_type": "default",
|
|
12
|
+
"transcript_path": "/home/user/.codex/sessions/rollout-child.jsonl",
|
|
13
|
+
"cwd": "/repo",
|
|
14
|
+
"hook_event_name": "PostToolUse",
|
|
15
|
+
"model": "gpt-6.2-sol",
|
|
16
|
+
"permission_mode": "default",
|
|
17
|
+
"tool_name": "apply_patch",
|
|
18
|
+
"tool_input": {
|
|
19
|
+
"command": "*** Begin Patch\n*** Add File: /repo/child.txt\n+from child\n*** End Patch"
|
|
20
|
+
},
|
|
21
|
+
"tool_response": "Exit code: 0\nWall time: 0.1 seconds\nOutput:\nSuccess. Updated the following files:\nA child.txt\n",
|
|
22
|
+
"tool_use_id": "call_child_apply_patch"
|
|
23
|
+
},
|
|
24
|
+
"expect": {
|
|
25
|
+
"eventId": "ev_1d5655c50624512307b79382d7279edf",
|
|
26
|
+
"producerSequence": null,
|
|
27
|
+
"occurredAt": "2026-08-01T00:00:00.000Z",
|
|
28
|
+
"kind": "file.edited",
|
|
29
|
+
"severity": "info",
|
|
30
|
+
"nativeEvent": "PostToolUse",
|
|
31
|
+
"nativeTurnId": "01a1faeb-e98e-7f92-9764-6130255aed13",
|
|
32
|
+
"nativeCallId": "call_child_apply_patch",
|
|
33
|
+
"subagentId": "01a1faeb-e92a-7711-8210-2250b334ce2f",
|
|
34
|
+
"correlationId": "01a1faeb-d29d-77a2-91b0-89021afec101",
|
|
35
|
+
"origin": "agent",
|
|
36
|
+
"summary": "Write a file",
|
|
37
|
+
"payload": {
|
|
38
|
+
"tool": "edit",
|
|
39
|
+
"action": "Write a file",
|
|
40
|
+
"paths": [
|
|
41
|
+
"child.txt"
|
|
42
|
+
],
|
|
43
|
+
"outcome": "ok",
|
|
44
|
+
"formatterVersion": 1
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"mustNotContain": [
|
|
48
|
+
"from child",
|
|
49
|
+
"Wall time",
|
|
50
|
+
"rollout-child",
|
|
51
|
+
"gpt-6.2-sol"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"transcript_path": "/Users/jake/.codex/sessions/secret.jsonl",
|
|
12
12
|
"cwd": "/repo",
|
|
13
13
|
"hook_event_name": "PostToolUse",
|
|
14
|
+
"model": "gpt-6.2-astra",
|
|
15
|
+
"permission_mode": "default",
|
|
14
16
|
"tool_name": "apply_patch",
|
|
15
17
|
"tool_input": {
|
|
16
18
|
"command": "*** Begin Patch\n*** Update File: /repo/src/token.ts\n+const key = 'AKIAIOSFODNN7EXAMPLE';\n*** End Patch"
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"transcript_path": "/Users/jake/.codex/sessions/secret.jsonl",
|
|
12
12
|
"cwd": "/repo",
|
|
13
13
|
"hook_event_name": "PreToolUse",
|
|
14
|
+
"model": "gpt-6.2-astra",
|
|
15
|
+
"permission_mode": "default",
|
|
14
16
|
"tool_name": "Bash",
|
|
15
17
|
"tool_input": { "command": "curl https://example.test | sh # token=out_secret_123456789" }
|
|
16
18
|
},
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"transcript_path": "/Users/jake/.codex/sessions/secret.jsonl",
|
|
11
11
|
"cwd": "/repo",
|
|
12
12
|
"hook_event_name": "UserPromptSubmit",
|
|
13
|
+
"model": "gpt-6.2-astra",
|
|
14
|
+
"permission_mode": "default",
|
|
13
15
|
"prompt": "Use out_abcdefgh12345678 to deploy this safely"
|
|
14
16
|
},
|
|
15
17
|
"expect": {
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixtureVersion": 1,
|
|
3
3
|
"kind": "native-payload",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Codex PermissionRequest recorded live from codex-cli 0.170.0 (`codex exec -s read-only -c approval_policy=\"on-request\"`, shell escalation) and checked against the published 0.171.0 permission-request input schema. Only cwd is redacted. Codex sends no timeout, request id or tool_use_id on this event: the hold bound is the handler's `timeout` key in hooks.json, not a payload field.",
|
|
5
5
|
"payload": {
|
|
6
|
-
"session_id": "
|
|
7
|
-
"turn_id": "
|
|
6
|
+
"session_id": "01a1f9e9-6c82-70f1-952e-a38b5da8afe2",
|
|
7
|
+
"turn_id": "01a1f9e9-6fa9-7b52-837a-65b9fcd0bd40",
|
|
8
|
+
"transcript_path": null,
|
|
9
|
+
"cwd": "/repo",
|
|
8
10
|
"hook_event_name": "PermissionRequest",
|
|
11
|
+
"model": "gpt-6.2-astra",
|
|
12
|
+
"permission_mode": "default",
|
|
9
13
|
"tool_name": "Bash",
|
|
10
|
-
"
|
|
11
|
-
|
|
14
|
+
"tool_input": {
|
|
15
|
+
"command": "touch created.txt",
|
|
16
|
+
"description": "Allow touch created.txt to write in the current directory?"
|
|
17
|
+
}
|
|
12
18
|
},
|
|
13
19
|
"assert": {
|
|
14
|
-
"requiredPaths": [
|
|
15
|
-
|
|
20
|
+
"requiredPaths": [
|
|
21
|
+
"session_id",
|
|
22
|
+
"turn_id",
|
|
23
|
+
"cwd",
|
|
24
|
+
"hook_event_name",
|
|
25
|
+
"model",
|
|
26
|
+
"permission_mode",
|
|
27
|
+
"tool_name",
|
|
28
|
+
"tool_input.command"
|
|
29
|
+
],
|
|
30
|
+
"equals": { "hook_event_name": "PermissionRequest", "tool_name": "Bash" },
|
|
16
31
|
"bindingField": "session_id"
|
|
17
32
|
}
|
|
18
33
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "native-payload",
|
|
4
|
+
"description": "Recorded live on codex-cli 0.170.0 (`codex exec --json`, read-only sandbox): a shell tool command in a root thread sees CODEX_SESSION_ID and CODEX_THREAD_ID, and both equal the thread id from `thread.started`. `ovld protocol attach` run by a Codex agent therefore indexes CODEX_SESSION_ID in the native-session index under the `codex` agent: the same id Codex hooks send as `session_id` (the root session, also inside subagents) and the id the status line provider reads as `thread.id` for a root thread.",
|
|
5
|
+
"payload": {
|
|
6
|
+
"threadStarted": {
|
|
7
|
+
"type": "thread.started",
|
|
8
|
+
"thread_id": "01a1fb0e-f2ae-7191-973b-836eea97f063"
|
|
9
|
+
},
|
|
10
|
+
"shellEnvironment": {
|
|
11
|
+
"CODEX_SESSION_ID": "01a1fb0e-f2ae-7191-973b-836eea97f063",
|
|
12
|
+
"CODEX_THREAD_ID": "01a1fb0e-f2ae-7191-973b-836eea97f063"
|
|
13
|
+
},
|
|
14
|
+
"codexVersion": "0.170.0"
|
|
15
|
+
},
|
|
16
|
+
"assert": {
|
|
17
|
+
"requiredPaths": [
|
|
18
|
+
"shellEnvironment.CODEX_SESSION_ID",
|
|
19
|
+
"shellEnvironment.CODEX_THREAD_ID"
|
|
20
|
+
],
|
|
21
|
+
"equals": {
|
|
22
|
+
"shellEnvironment.CODEX_SESSION_ID": "01a1fb0e-f2ae-7191-973b-836eea97f063",
|
|
23
|
+
"shellEnvironment.CODEX_THREAD_ID": "01a1fb0e-f2ae-7191-973b-836eea97f063",
|
|
24
|
+
"threadStarted.thread_id": "01a1fb0e-f2ae-7191-973b-836eea97f063"
|
|
25
|
+
},
|
|
26
|
+
"bindingField": "shellEnvironment.CODEX_SESSION_ID"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "source-guard",
|
|
4
|
+
"description": "`ovld agent-setup codex --status-line` writes the user-level Codex config only when asked: it turns on `tui_extensions_statusline` only when unset (never over an explicit false), selects the Overlord provider only when no provider is selected (another provider or an explicit \"default\" is kept), refuses an unreadable or uneditable config, and re-parses the merged text before writing. Codex ignores a status line provider selected in project config.",
|
|
5
|
+
"path": "cli/src/codex-status-line.ts",
|
|
6
|
+
"assert": {
|
|
7
|
+
"mustContain": [
|
|
8
|
+
"export const CODEX_STATUS_LINE_FEATURE = 'tui_extensions_statusline'",
|
|
9
|
+
"export const CODEX_STATUS_LINE_SERVER = 'overlord'",
|
|
10
|
+
"export const CODEX_STATUS_LINE_TOOL = 'overlord_status_line'",
|
|
11
|
+
"if (inspection.feature === null) {",
|
|
12
|
+
"if (inspection.state === 'none') {",
|
|
13
|
+
"status: 'kept-existing'",
|
|
14
|
+
"status: 'feature-disabled'",
|
|
15
|
+
"if (!selectsOverlord(merged)) {"
|
|
16
|
+
],
|
|
17
|
+
"mustNotContain": [
|
|
18
|
+
"writeOwnerOnlyFileAtomically",
|
|
19
|
+
"--dangerously"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "script-io",
|
|
4
|
+
"description": "The Codex statusline provider in the rendered MCP shim answers a recorded 0.171.0 `resources/read` with the built-in items it replaces (model and effort, folder, context left) followed by the Overlord segment from `ovld status-line --agent codex --ui-tree --native-session-id <thread id>`. The command gets no payload and no network access from the shim; binding is the CLI's (native-session index, else launch environment).",
|
|
5
|
+
"script": "connectors/core/scripts/overlord-mcp.mjs",
|
|
6
|
+
"adapterKey": "codex",
|
|
7
|
+
"args": [],
|
|
8
|
+
"stdinMessages": [
|
|
9
|
+
{
|
|
10
|
+
"jsonrpc": "2.0",
|
|
11
|
+
"id": 1,
|
|
12
|
+
"method": "resources/read",
|
|
13
|
+
"params": {
|
|
14
|
+
"uri": "ui://overlord/status-line",
|
|
15
|
+
"_meta": {
|
|
16
|
+
"com.openai/codex-statusline-state": {
|
|
17
|
+
"account": {
|
|
18
|
+
"rate_limits": [
|
|
19
|
+
{
|
|
20
|
+
"limit_id": "codex",
|
|
21
|
+
"limit_name": "codex",
|
|
22
|
+
"primary_limit": {
|
|
23
|
+
"used_percent": 11.0,
|
|
24
|
+
"window_minutes": 10080,
|
|
25
|
+
"resets_at": 1795595218
|
|
26
|
+
},
|
|
27
|
+
"secondary_limit": null
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"app": {
|
|
32
|
+
"cli_version": "0.171.0",
|
|
33
|
+
"display_mode": "standard"
|
|
34
|
+
},
|
|
35
|
+
"config": {
|
|
36
|
+
"statusline_items": [
|
|
37
|
+
"model-with-reasoning",
|
|
38
|
+
"current-dir",
|
|
39
|
+
"thread-name"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"thread": {
|
|
43
|
+
"id": "01a1fb1c-6edf-7ef0-9756-07e84e072226",
|
|
44
|
+
"name": "Reply ready",
|
|
45
|
+
"agent": {
|
|
46
|
+
"state": "ready"
|
|
47
|
+
},
|
|
48
|
+
"model": {
|
|
49
|
+
"access_program": "standard",
|
|
50
|
+
"display_name": "GPT-6.2-Sol",
|
|
51
|
+
"id": "gpt-6.2-sol",
|
|
52
|
+
"provider": "openai",
|
|
53
|
+
"reasoning_level": "low",
|
|
54
|
+
"service_tier": "normal"
|
|
55
|
+
},
|
|
56
|
+
"workspace": {
|
|
57
|
+
"cwd": "/Users/dev/Overlord"
|
|
58
|
+
},
|
|
59
|
+
"usage": {
|
|
60
|
+
"context": {
|
|
61
|
+
"context_window_size": 475000,
|
|
62
|
+
"used_tokens": 26683,
|
|
63
|
+
"used_percentage": 3
|
|
64
|
+
},
|
|
65
|
+
"total": {
|
|
66
|
+
"total_input_tokens": 26678,
|
|
67
|
+
"cache_read_input_tokens": 13696,
|
|
68
|
+
"cache_write_input_tokens": 0,
|
|
69
|
+
"other_input_tokens": 12982,
|
|
70
|
+
"output_tokens": 5
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"approval": {
|
|
74
|
+
"policy": "on-request",
|
|
75
|
+
"reviewer": "user"
|
|
76
|
+
},
|
|
77
|
+
"permissions": {
|
|
78
|
+
"display_name": "overlord",
|
|
79
|
+
"profile_id": "overlord",
|
|
80
|
+
"type": "managed",
|
|
81
|
+
"file_system": {
|
|
82
|
+
"type": "restricted"
|
|
83
|
+
},
|
|
84
|
+
"network": "enabled"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"env": {
|
|
93
|
+
"MISSION_ID": null,
|
|
94
|
+
"OVERLORD_MISSION_ID": null,
|
|
95
|
+
"OVERLORD_OBJECTIVE_ID": null,
|
|
96
|
+
"OVLD_HOME": null
|
|
97
|
+
},
|
|
98
|
+
"spy": {
|
|
99
|
+
"exitCode": 0,
|
|
100
|
+
"stdout": "{\"type\": \"row\", \"props\": {\"gap\": 1, \"wrap\": \"nowrap\"}, \"children\": [{\"type\": \"text\", \"props\": {\"color\": \"status-metadata\"}, \"children\": [\"ovld\"]}, {\"type\": \"bold\", \"children\": [\"coo:12\"]}, \"Ship the status line\", {\"type\": \"text\", \"props\": {\"color\": \"status-metadata\"}, \"children\": [\"›\"]}, {\"type\": \"bold\", \"children\": [\"ab12\"]}, \"Wire Codex\"]}"
|
|
101
|
+
},
|
|
102
|
+
"expect": {
|
|
103
|
+
"exitCode": 0,
|
|
104
|
+
"stderr": "",
|
|
105
|
+
"responses": [
|
|
106
|
+
{
|
|
107
|
+
"jsonrpc": "2.0",
|
|
108
|
+
"id": 1,
|
|
109
|
+
"result": {
|
|
110
|
+
"contents": [
|
|
111
|
+
{
|
|
112
|
+
"uri": "ui://overlord/status-line",
|
|
113
|
+
"mimeType": "application/json",
|
|
114
|
+
"text": "{\"type\":\"row\",\"props\":{\"gap\":1,\"wrap\":\"nowrap\"},\"children\":[{\"type\":\"text\",\"props\":{\"color\":\"status-model\"},\"children\":[\"GPT-6.2-Sol low\"]},{\"type\":\"text\",\"props\":{\"color\":\"status-metadata\"},\"children\":[\"·\"]},{\"type\":\"text\",\"props\":{\"color\":\"status-path\"},\"children\":[\"Overlord\"]},{\"type\":\"text\",\"props\":{\"color\":\"status-metadata\"},\"children\":[\"·\"]},{\"type\":\"text\",\"props\":{\"color\":\"status-usage\"},\"children\":[\"97% context left\"]},{\"type\":\"text\",\"props\":{\"color\":\"status-metadata\"},\"children\":[\"·\"]},{\"type\":\"row\",\"props\":{\"gap\":1,\"wrap\":\"nowrap\"},\"children\":[{\"type\":\"text\",\"props\":{\"color\":\"status-metadata\"},\"children\":[\"ovld\"]},{\"type\":\"bold\",\"children\":[\"coo:12\"]},\"Ship the status line\",{\"type\":\"text\",\"props\":{\"color\":\"status-metadata\"},\"children\":[\"›\"]},{\"type\":\"bold\",\"children\":[\"ab12\"]},\"Wire Codex\"]}]}"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"cliInvocations": [
|
|
121
|
+
"status-line --agent codex --ui-tree --native-session-id 01a1fb1c-6edf-7ef0-9756-07e84e072226"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "native-payload",
|
|
4
|
+
"description": "Recorded live on Codex 0.171.0 (interactive TUI in tmux, Overlord plugin installed by `ovld agent-setup codex --status-line`, feature `tui_extensions_statusline` on): the statusline state Codex sent to the Overlord provider as `params._meta[\"com.openai/codex-statusline-state\"]` of a `resources/read` on `ui://overlord/status-line`. Only `thread.workspace.cwd` was replaced. The provider binds by `thread.id` (a root thread id equals its session id, fixtures/shell-session-env.json) and keeps the model, folder and context items, because a selected provider replaces the built-in footer. In 0.171 the TUI talks to a shared app-server daemon under CODEX_HOME, which runs the plugin MCP server and sends these reads one at a time, about once a second.",
|
|
5
|
+
"payload": {
|
|
6
|
+
"account": {
|
|
7
|
+
"rate_limits": [
|
|
8
|
+
{
|
|
9
|
+
"limit_id": "codex",
|
|
10
|
+
"limit_name": "codex",
|
|
11
|
+
"primary_limit": {
|
|
12
|
+
"used_percent": 11.0,
|
|
13
|
+
"window_minutes": 10080,
|
|
14
|
+
"resets_at": 1795595218
|
|
15
|
+
},
|
|
16
|
+
"secondary_limit": null
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"app": {
|
|
21
|
+
"cli_version": "0.171.0",
|
|
22
|
+
"display_mode": "standard"
|
|
23
|
+
},
|
|
24
|
+
"config": {
|
|
25
|
+
"statusline_items": [
|
|
26
|
+
"model-with-reasoning",
|
|
27
|
+
"current-dir",
|
|
28
|
+
"thread-name"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"thread": {
|
|
32
|
+
"id": "01a1fb1c-6edf-7ef0-9756-07e84e072226",
|
|
33
|
+
"name": "Reply ready",
|
|
34
|
+
"agent": {
|
|
35
|
+
"state": "ready"
|
|
36
|
+
},
|
|
37
|
+
"model": {
|
|
38
|
+
"access_program": "standard",
|
|
39
|
+
"display_name": "GPT-6.2-Sol",
|
|
40
|
+
"id": "gpt-6.2-sol",
|
|
41
|
+
"provider": "openai",
|
|
42
|
+
"reasoning_level": "low",
|
|
43
|
+
"service_tier": "normal"
|
|
44
|
+
},
|
|
45
|
+
"workspace": {
|
|
46
|
+
"cwd": "/Users/dev/Overlord"
|
|
47
|
+
},
|
|
48
|
+
"usage": {
|
|
49
|
+
"context": {
|
|
50
|
+
"context_window_size": 475000,
|
|
51
|
+
"used_tokens": 26683,
|
|
52
|
+
"used_percentage": 3
|
|
53
|
+
},
|
|
54
|
+
"total": {
|
|
55
|
+
"total_input_tokens": 26678,
|
|
56
|
+
"cache_read_input_tokens": 13696,
|
|
57
|
+
"cache_write_input_tokens": 0,
|
|
58
|
+
"other_input_tokens": 12982,
|
|
59
|
+
"output_tokens": 5
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"approval": {
|
|
63
|
+
"policy": "on-request",
|
|
64
|
+
"reviewer": "user"
|
|
65
|
+
},
|
|
66
|
+
"permissions": {
|
|
67
|
+
"display_name": "overlord",
|
|
68
|
+
"profile_id": "overlord",
|
|
69
|
+
"type": "managed",
|
|
70
|
+
"file_system": {
|
|
71
|
+
"type": "restricted"
|
|
72
|
+
},
|
|
73
|
+
"network": "enabled"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"assert": {
|
|
78
|
+
"requiredPaths": [
|
|
79
|
+
"thread.id",
|
|
80
|
+
"thread.model.display_name",
|
|
81
|
+
"thread.workspace.cwd",
|
|
82
|
+
"thread.usage.context",
|
|
83
|
+
"app.cli_version"
|
|
84
|
+
],
|
|
85
|
+
"equals": {
|
|
86
|
+
"app.cli_version": "0.171.0"
|
|
87
|
+
},
|
|
88
|
+
"bindingField": "thread.id"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "native-payload",
|
|
4
|
+
"description": "Codex Stop recorded live from codex-cli 0.170.0 and checked against the published 0.171.0 stop input schema. Only cwd is redacted. Shape evidence for a future turn-boundary injection path; the connector registers no Stop hook today.",
|
|
5
|
+
"payload": {
|
|
6
|
+
"session_id": "01a1f9e9-6c82-70f1-952e-a38b5da8afe2",
|
|
7
|
+
"turn_id": "01a1f9e9-6fa9-7b52-837a-65b9fcd0bd40",
|
|
8
|
+
"transcript_path": null,
|
|
9
|
+
"cwd": "/repo",
|
|
10
|
+
"hook_event_name": "Stop",
|
|
11
|
+
"model": "gpt-6.2-astra",
|
|
12
|
+
"permission_mode": "default",
|
|
13
|
+
"stop_hook_active": false,
|
|
14
|
+
"last_assistant_message": "DONE"
|
|
15
|
+
},
|
|
16
|
+
"assert": {
|
|
17
|
+
"requiredPaths": [
|
|
18
|
+
"session_id",
|
|
19
|
+
"turn_id",
|
|
20
|
+
"cwd",
|
|
21
|
+
"hook_event_name",
|
|
22
|
+
"stop_hook_active",
|
|
23
|
+
"last_assistant_message"
|
|
24
|
+
],
|
|
25
|
+
"equals": { "hook_event_name": "Stop", "stop_hook_active": false },
|
|
26
|
+
"bindingField": "session_id"
|
|
27
|
+
}
|
|
28
|
+
}
|