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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fixtureVersion": 1,
|
|
3
|
+
"kind": "script-io",
|
|
4
|
+
"description": "With a session channel, the Antigravity Stop hook first claims a pending Overlord instruction through `ovld agent-session inbox`; a claimed instruction is answered as Antigravity's Stop `decision: continue` and the delivery reminder is not requested.",
|
|
5
|
+
"script": "connectors/adapters/antigravity/hooks/overlord-stop.sh",
|
|
6
|
+
"stdin": {
|
|
7
|
+
"hookEventName": "Stop",
|
|
8
|
+
"conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
|
|
9
|
+
"workspacePaths": ["/workspace/project"],
|
|
10
|
+
"cwd": "/workspace/project",
|
|
11
|
+
"executionNum": 3,
|
|
12
|
+
"terminationReason": "model_stop",
|
|
13
|
+
"fullyIdle": true,
|
|
14
|
+
"continuation_active": false,
|
|
15
|
+
"lastUserInput": "Ship it",
|
|
16
|
+
"modelName": "gemini-3.6-flash-medium"
|
|
17
|
+
},
|
|
18
|
+
"env": {
|
|
19
|
+
"MISSION_ID": "coo:825",
|
|
20
|
+
"OVERLORD_MISSION_ID": "coo:825",
|
|
21
|
+
"OVERLORD_OBJECTIVE_ID": "coo:825.abcd",
|
|
22
|
+
"OVERLORD_SESSION_CHANNEL_ID": "chan_1"
|
|
23
|
+
},
|
|
24
|
+
"spy": {
|
|
25
|
+
"stdout": "{\"decision\":\"continue\",\"reason\":\"Also update the changelog\"}\n"
|
|
26
|
+
},
|
|
27
|
+
"expect": {
|
|
28
|
+
"exitCode": 0,
|
|
29
|
+
"stdout": "{\"decision\":\"continue\",\"reason\":\"Also update the changelog\"}\n",
|
|
30
|
+
"stderr": "",
|
|
31
|
+
"cliInvocations": ["agent-session inbox --agent antigravity --payload-file -"],
|
|
32
|
+
"stdinForwarded": true,
|
|
33
|
+
"sandboxWrites": []
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,14 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fixtureVersion": 1,
|
|
3
|
-
"kind": "
|
|
4
|
-
"description": "Mandatory negative test:
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
"kind": "script-io",
|
|
4
|
+
"description": "Mandatory negative test: in a session Overlord did not launch (no mission or objective in the environment), the Antigravity Stop hook exits before reading stdin or spawning anything, writes nothing and prints nothing.",
|
|
5
|
+
"script": "connectors/adapters/antigravity/hooks/overlord-stop.sh",
|
|
6
|
+
"stdin": {
|
|
7
|
+
"hookEventName": "Stop",
|
|
8
|
+
"conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
|
|
9
|
+
"workspacePaths": ["/workspace/project"],
|
|
10
|
+
"cwd": "/workspace/project",
|
|
11
|
+
"executionNum": 3,
|
|
12
|
+
"terminationReason": "model_stop",
|
|
13
|
+
"fullyIdle": true,
|
|
14
|
+
"continuation_active": false,
|
|
15
|
+
"lastUserInput": "Ship it",
|
|
16
|
+
"modelName": "gemini-3.6-flash-medium"
|
|
17
|
+
},
|
|
18
|
+
"env": {
|
|
19
|
+
"MISSION_ID": null,
|
|
20
|
+
"OVERLORD_MISSION_ID": null,
|
|
21
|
+
"OVERLORD_OBJECTIVE_ID": null,
|
|
22
|
+
"OVERLORD_SESSION_CHANNEL_ID": null
|
|
23
|
+
},
|
|
24
|
+
"expect": {
|
|
25
|
+
"exitCode": 0,
|
|
26
|
+
"stdout": "",
|
|
27
|
+
"stderr": "",
|
|
28
|
+
"cliInvocations": [],
|
|
29
|
+
"sandboxWrites": []
|
|
13
30
|
}
|
|
14
31
|
}
|
|
@@ -3,19 +3,24 @@
|
|
|
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
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
6
|
+
# Sources: the first-party hook contract (https://antigravity.google/docs/hooks), the plugin
|
|
7
|
+
# build guide (https://antigravity.google/docs/build-plugins), and the agy release notes
|
|
8
|
+
# (`agy changelog`). The plugin ships three fail-open command hooks in its `hooks.json`:
|
|
9
|
+
# PreInvocation (prompt capture, next-invocation inject), PostToolUse (file capture), and Stop
|
|
10
|
+
# (delivery reminder, turn-boundary inject). It registers no PreToolUse decision hook.
|
|
11
11
|
schemaVersion: 1
|
|
12
12
|
adapter: antigravity
|
|
13
13
|
codec: antigravity
|
|
14
|
+
codecSpec: codec/antigravity.codec.yaml
|
|
15
|
+
decisionCodecSpec: codec/antigravity.decision-codec.yaml
|
|
14
16
|
|
|
15
17
|
harness:
|
|
16
18
|
name: Antigravity CLI
|
|
17
|
-
verifiedVersion: 'docs
|
|
18
|
-
|
|
19
|
+
verifiedVersion: 'docs + agy changelog 1.5.13'
|
|
20
|
+
# `hookEventName`, `cwd` and `toolCall.id` reach hook input in 1.5.4; the codec names events by
|
|
21
|
+
# `hookEventName`, so an older agy produces no normalized events (its hooks stay harmless).
|
|
22
|
+
versionRange: '>=1.5.4'
|
|
23
|
+
versionScheme: semver
|
|
19
24
|
|
|
20
25
|
integrationShape: callback
|
|
21
26
|
|
|
@@ -23,77 +28,126 @@ binding:
|
|
|
23
28
|
source: payload
|
|
24
29
|
field: conversationId
|
|
25
30
|
status: supported
|
|
26
|
-
fixture: fixtures/
|
|
31
|
+
fixture: fixtures/normalize-pre-invocation.json
|
|
27
32
|
notes: >-
|
|
28
|
-
The first-party hook contract defines `conversationId` as the
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
The first-party hook contract defines `conversationId` as the UUID of the active
|
|
34
|
+
conversation and includes it in every hook payload; the codec reads it as the native session
|
|
35
|
+
id and `hook-event` persists it as the session's external id. It remains a correlation
|
|
36
|
+
alias: the launch environment (or a verified channel credential) is the authorization and
|
|
37
|
+
mission scope. Antigravity exports no conversation id to tool processes, so a chat-started
|
|
38
|
+
attach cannot index itself and its hooks stay unbound.
|
|
33
39
|
|
|
34
40
|
decisionHold:
|
|
35
41
|
status: unverified
|
|
36
|
-
trackedAs:
|
|
42
|
+
trackedAs: latch-engine
|
|
43
|
+
timeoutField: timeout
|
|
44
|
+
timeoutUnit: seconds
|
|
45
|
+
defaultTimeoutSeconds: 30
|
|
46
|
+
maxTimeoutSeconds: null
|
|
37
47
|
notes: >-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
Hook `timeout` is in seconds with a 30-second default; no maximum is documented. The build
|
|
49
|
+
guide states that a non-zero exit is logged and ignored ("failing open"), and agy 1.4.3 made a
|
|
50
|
+
failing PostToolUse hook (missing command, error exit, timeout, invalid JSON) leave the tool
|
|
51
|
+
result unchanged. Whether a PreToolUse hook held past its timeout falls back to the native
|
|
52
|
+
permission prompt has not been exercised, and no decision hook is registered, so the hold
|
|
53
|
+
stays unverified.
|
|
42
54
|
|
|
43
55
|
mutationHooks:
|
|
44
|
-
classification:
|
|
56
|
+
classification: post-only
|
|
45
57
|
fixture: fixtures/mutation-window-evidence.json
|
|
46
|
-
|
|
58
|
+
notes: >-
|
|
59
|
+
Only PostToolUse is registered, so evidence is post-only. A `write_to_file`,
|
|
60
|
+
`replace_file_content` or `multi_replace_file_content` completion names its destination in
|
|
61
|
+
`TargetFile`; the codec normalizes it to `file.edited` and decodes the outcome from `error`
|
|
62
|
+
(empty or absent is success per the hook contract). Only an `ok` edit records
|
|
63
|
+
objective-bound, non-exclusive `declared_edit`/`direct` evidence; a failed edit records
|
|
64
|
+
`outcome_partial`, and `run_command` records `shell_activity_unverified`.
|
|
47
65
|
|
|
48
66
|
capabilities:
|
|
49
67
|
observe.prompt:
|
|
50
|
-
status:
|
|
68
|
+
status: supported
|
|
51
69
|
native: PreInvocation
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
70
|
+
fixtures:
|
|
71
|
+
- fixtures/normalize-pre-invocation.json
|
|
72
|
+
- fixtures/pre-invocation-hook.json
|
|
73
|
+
- fixtures/pre-invocation-unbound.json
|
|
74
|
+
notes: >-
|
|
75
|
+
PreInvocation carries the latest user message as `lastUserInput` (a common hook field since
|
|
76
|
+
agy 1.4.7, documented in the hook contract). It fires before every model invocation, so
|
|
77
|
+
`hook-event` records a prompt only when it differs from the last one recorded for the
|
|
78
|
+
conversation, and the launch prompt (turn 0) is skipped as for other adapters. The
|
|
79
|
+
transcript is never read.
|
|
56
80
|
observe.toolCall:
|
|
57
81
|
status: not-implemented
|
|
58
82
|
native: PreToolUse
|
|
59
|
-
trackedAs:
|
|
83
|
+
trackedAs: latch-engine
|
|
84
|
+
fixtures: [fixtures/official-pre-tool-use.json]
|
|
85
|
+
notes: >-
|
|
86
|
+
The codec normalizes PreToolUse, but no PreToolUse hook is registered: the observation has
|
|
87
|
+
no live path until Overlord has a native Conversation Hub client.
|
|
60
88
|
observe.toolResult:
|
|
61
|
-
status:
|
|
89
|
+
status: supported
|
|
62
90
|
native: PostToolUse
|
|
63
|
-
|
|
91
|
+
fixtures:
|
|
92
|
+
- fixtures/normalize-post-tool-use-shell.json
|
|
93
|
+
- fixtures/normalize-post-tool-use-failed.json
|
|
94
|
+
notes: >-
|
|
95
|
+
PostToolUse carries the call and any `error`, never the tool output (build guide). The
|
|
96
|
+
codec reduces it to a tool card with a decoded `ok`/`error` outcome; the error text is not
|
|
97
|
+
retained.
|
|
64
98
|
observe.fileEdit:
|
|
65
|
-
status:
|
|
99
|
+
status: supported
|
|
66
100
|
native: PostToolUse
|
|
67
|
-
|
|
101
|
+
fixtures:
|
|
102
|
+
- fixtures/normalize-post-tool-use-write.json
|
|
103
|
+
- fixtures/normalize-post-tool-use-failed.json
|
|
104
|
+
- fixtures/post-tool-use-hook.json
|
|
105
|
+
- fixtures/post-tool-use-unbound.json
|
|
106
|
+
notes: >-
|
|
107
|
+
The PostToolUse hook (matcher `write_to_file|replace_file_content|
|
|
108
|
+
multi_replace_file_content|run_command`) runs the rendered core capture callback, which
|
|
109
|
+
forwards the payload to local `capture-change --agent antigravity` only when
|
|
110
|
+
`OVERLORD_OBJECTIVE_ID` is in the launch environment.
|
|
68
111
|
observe.sessionLifecycle:
|
|
69
112
|
status: not-implemented
|
|
70
|
-
native:
|
|
71
|
-
trackedAs:
|
|
113
|
+
native: SessionStart
|
|
114
|
+
trackedAs: latch-engine
|
|
72
115
|
decide.shell:
|
|
73
116
|
status: not-implemented
|
|
74
117
|
native: PreToolUse
|
|
75
|
-
trackedAs:
|
|
118
|
+
trackedAs: latch-engine
|
|
119
|
+
notes: >-
|
|
120
|
+
PreToolUse returns `decision` for `run_command`. The decision codec pins the exact bytes
|
|
121
|
+
(fixtures/decision-codec.json), but no launch creates a session channel and no PreToolUse
|
|
122
|
+
hook is registered, so Antigravity's native permission flow stays the only authority.
|
|
76
123
|
decide.mcp:
|
|
77
124
|
status: unverified
|
|
78
125
|
trackedAs: agent-session-verify-antigravity
|
|
126
|
+
notes: >-
|
|
127
|
+
The name a plugin MCP tool has in PreToolUse is not documented: the plugin docs namespace
|
|
128
|
+
tools as `<plugin>_<server>` while the build guide's matcher example is `mcp_.*`.
|
|
79
129
|
decide.fileWrite:
|
|
80
130
|
status: not-implemented
|
|
81
131
|
native: PreToolUse
|
|
82
|
-
trackedAs:
|
|
132
|
+
trackedAs: latch-engine
|
|
83
133
|
decide.anyTool:
|
|
84
134
|
status: not-implemented
|
|
85
135
|
native: PreToolUse
|
|
86
|
-
trackedAs:
|
|
136
|
+
trackedAs: latch-engine
|
|
87
137
|
decide.universal:
|
|
88
138
|
status: unverified
|
|
89
139
|
trackedAs: agent-session-verify-antigravity
|
|
140
|
+
notes: >-
|
|
141
|
+
PreToolUse sees every tool call, but whether every approval Antigravity would prompt for
|
|
142
|
+
(sandbox escapes, admin review) is decided through it is not documented; agy 1.5.7 made
|
|
143
|
+
admin-enforced review ignore `auto_approve`.
|
|
90
144
|
answer.structuredQuestion:
|
|
91
145
|
status: unverified
|
|
92
146
|
trackedAs: agent-session-verify-antigravity
|
|
93
147
|
answer.persistentAllow:
|
|
94
148
|
status: not-implemented
|
|
95
149
|
native: PreToolUse.permissionOverrides
|
|
96
|
-
trackedAs:
|
|
150
|
+
trackedAs: latch-engine
|
|
97
151
|
inject.midTurn:
|
|
98
152
|
status: unsupported
|
|
99
153
|
reason: >-
|
|
@@ -101,13 +155,27 @@ capabilities:
|
|
|
101
155
|
surface has no path to deliver input while a model or tool call is actively running.
|
|
102
156
|
evidenceRef: https://antigravity.google/docs/hooks#preinvocation
|
|
103
157
|
inject.turnBoundary:
|
|
104
|
-
status:
|
|
158
|
+
status: supported
|
|
105
159
|
native: Stop
|
|
106
|
-
|
|
160
|
+
fixtures:
|
|
161
|
+
- fixtures/stop-delivery-reminder.json
|
|
162
|
+
- fixtures/stop-inbox-inject.json
|
|
163
|
+
- fixtures/stop-hook-failure.json
|
|
164
|
+
- fixtures/official-stop.json
|
|
165
|
+
notes: >-
|
|
166
|
+
Stop `decision: "continue"` keeps the agent from stopping and injects `reason` as a system
|
|
167
|
+
message. The live path is the once-per-objective delivery reminder from `hook-event`; it is
|
|
168
|
+
skipped while `continuation_active` is true or `fullyIdle` is false. With a session channel
|
|
169
|
+
the inbox instruction takes precedence, which is not a live path today.
|
|
107
170
|
inject.nextTurn:
|
|
108
171
|
status: not-implemented
|
|
109
172
|
native: PreInvocation.injectSteps.userMessage
|
|
110
|
-
trackedAs:
|
|
173
|
+
trackedAs: latch-engine
|
|
174
|
+
fixtures: [fixtures/pre-invocation-inject.json]
|
|
175
|
+
notes: >-
|
|
176
|
+
The PreInvocation hook and the inbox encoder emit `injectSteps: [{ userMessage }]` before the
|
|
177
|
+
next model call, proven by the fixture, but only for a session channel, which no launch
|
|
178
|
+
creates today.
|
|
111
179
|
terminal.concurrentAnswer:
|
|
112
180
|
status: unverified
|
|
113
181
|
trackedAs: agent-session-verify-antigravity
|
|
@@ -119,20 +187,34 @@ hazards:
|
|
|
119
187
|
- id: outside-verification-survey
|
|
120
188
|
severity: medium
|
|
121
189
|
summary: >-
|
|
122
|
-
Antigravity was not part of the original harness verification survey.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
190
|
+
Antigravity was not part of the original harness verification survey. Its hook names,
|
|
191
|
+
payload fields, response shapes and failure behavior are now established by the first-party
|
|
192
|
+
hook contract, the build guide ("any non-zero exit code is logged ... and ignored (failing
|
|
193
|
+
open)") and the agy release notes, and every graded capability is fixture-proven against
|
|
194
|
+
that contract. The connector registers only fail-open observational, reminder and inject
|
|
195
|
+
hooks; it registers no decision hook, so no hook failure can block or approve a tool call.
|
|
196
|
+
No live agy session at the 1.5.4 floor has been recorded (the local agy was 1.0.4).
|
|
197
|
+
verification: verified
|
|
198
|
+
mitigation: implemented
|
|
199
|
+
fixture: fixtures/hooks-registration.json
|
|
200
|
+
- id: per-invocation-hook-spawn
|
|
201
|
+
severity: low
|
|
202
|
+
summary: >-
|
|
203
|
+
PreInvocation runs before every model call, so a launched session spawns `ovld` once per
|
|
204
|
+
invocation to record a prompt that usually has not changed. Repeats are dropped locally
|
|
205
|
+
before any backend call; unlaunched sessions spawn nothing.
|
|
206
|
+
verification: verified
|
|
207
|
+
mitigation: accepted
|
|
129
208
|
decisionShape:
|
|
130
209
|
codec: antigravity
|
|
131
|
-
|
|
210
|
+
allowFixture: fixtures/decision-codec.json
|
|
211
|
+
denyFixture: fixtures/decision-codec.json
|
|
212
|
+
deferFixture: fixtures/decision-codec.json
|
|
213
|
+
neverSend: [allow_tool, hookSpecificOutput, permissionDecision, permission, overwrite]
|
|
132
214
|
notes: >-
|
|
133
|
-
The
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
215
|
+
The PreToolUse response is `{ decision, reason?, overwrite?, permissionOverrides? }`.
|
|
216
|
+
Antigravity's `allow` only defers to the next hook or default policy, so a remote approval is
|
|
217
|
+
`auto_approve`; deny is `deny`; ask is silence, leaving the native permission flow. The
|
|
218
|
+
connector never emits `overwrite`, which would rewrite tool arguments a person approved.
|
|
137
219
|
|
|
138
220
|
unboundSessionFixture: fixtures/unbound-session.json
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Overlord Antigravity PreInvocation hook. Managed file — do not edit.
|
|
3
|
+
#
|
|
4
|
+
# PreInvocation runs before every model call and carries the latest user message as
|
|
5
|
+
# `lastUserInput`. `ovld protocol hook-event` records it as a mission follow-up once per distinct
|
|
6
|
+
# prompt (the same prompt repeats on every invocation of a turn) and skips the launch prompt.
|
|
7
|
+
# With a session channel, a pending Overlord instruction is then injected as a `userMessage`
|
|
8
|
+
# step before the model call.
|
|
9
|
+
#
|
|
10
|
+
# Scope gate first: a session Overlord did not launch exits silently before reading stdin or
|
|
11
|
+
# spawning anything. The answer is always a JSON object; `{}` proceeds unchanged. Nothing here
|
|
12
|
+
# can terminate the invocation.
|
|
13
|
+
if [ -z "${OVERLORD_MISSION_ID:-}${MISSION_ID:-}${OVERLORD_OBJECTIVE_ID:-}" ]; then
|
|
14
|
+
exit 0
|
|
15
|
+
fi
|
|
16
|
+
command -v ovld >/dev/null 2>&1 || exit 0
|
|
17
|
+
|
|
18
|
+
PAYLOAD=$(cat)
|
|
19
|
+
|
|
20
|
+
printf '%s' "$PAYLOAD" | ovld protocol hook-event --agent antigravity --hook-type UserPromptSubmit --hook-output --payload-file - >/dev/null 2>&1
|
|
21
|
+
|
|
22
|
+
if [ -n "${OVERLORD_SESSION_CHANNEL_ID:-}" ]; then
|
|
23
|
+
INJECTED=$(printf '%s' "$PAYLOAD" | ovld agent-session inbox --agent antigravity --payload-file - 2>/dev/null)
|
|
24
|
+
case "$INJECTED" in
|
|
25
|
+
\{*\}) printf '%s\n' "$INJECTED"; exit 0 ;;
|
|
26
|
+
esac
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
printf '{}\n'
|
|
30
|
+
exit 0
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Overlord Antigravity Stop hook. Managed file — do not edit.
|
|
3
|
+
#
|
|
4
|
+
# Antigravity runs plugin hooks with the plugin folder as the working directory and the session's
|
|
5
|
+
# environment. The payload is camelCase JSON on stdin; the answer is one JSON object on stdout,
|
|
6
|
+
# where `{"decision":"continue","reason":…}` keeps the agent going with `reason` as a system
|
|
7
|
+
# message and anything else lets it stop.
|
|
8
|
+
#
|
|
9
|
+
# Order mirrors the Claude Stop hook:
|
|
10
|
+
# 1. With a session channel, a pending Overlord instruction continues the turn with it.
|
|
11
|
+
# 2. Otherwise the once-per-objective delivery reminder, decided by `ovld protocol hook-event`
|
|
12
|
+
# (it skips a stop that already follows a continuation and one with background work running).
|
|
13
|
+
#
|
|
14
|
+
# Scope gate first: a session Overlord did not launch exits silently before reading stdin or
|
|
15
|
+
# spawning anything. Every failure prints `{}`, which lets the stop happen: the harness's own
|
|
16
|
+
# behavior is the floor.
|
|
17
|
+
if [ -z "${OVERLORD_MISSION_ID:-}${MISSION_ID:-}${OVERLORD_OBJECTIVE_ID:-}" ]; then
|
|
18
|
+
exit 0
|
|
19
|
+
fi
|
|
20
|
+
command -v ovld >/dev/null 2>&1 || exit 0
|
|
21
|
+
|
|
22
|
+
PAYLOAD=$(cat)
|
|
23
|
+
|
|
24
|
+
if [ -n "${OVERLORD_SESSION_CHANNEL_ID:-}" ]; then
|
|
25
|
+
INJECTED=$(printf '%s' "$PAYLOAD" | ovld agent-session inbox --agent antigravity --payload-file - 2>/dev/null)
|
|
26
|
+
if [ -n "$INJECTED" ]; then
|
|
27
|
+
printf '%s\n' "$INJECTED"
|
|
28
|
+
exit 0
|
|
29
|
+
fi
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
ANSWER=$(printf '%s' "$PAYLOAD" | ovld protocol hook-event --agent antigravity --hook-type Stop --hook-output --payload-file - 2>/dev/null)
|
|
33
|
+
case "$ANSWER" in
|
|
34
|
+
\{*\}) printf '%s\n' "$ANSWER" ;;
|
|
35
|
+
*) printf '{}\n' ;;
|
|
36
|
+
esac
|
|
37
|
+
exit 0
|
|
@@ -1 +1,31 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"overlord": {
|
|
3
|
+
"enabled": true,
|
|
4
|
+
"PreInvocation": [
|
|
5
|
+
{
|
|
6
|
+
"type": "command",
|
|
7
|
+
"command": "./hooks/overlord-pre-invocation.sh",
|
|
8
|
+
"timeout": 15
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"PostToolUse": [
|
|
12
|
+
{
|
|
13
|
+
"matcher": "write_to_file|replace_file_content|multi_replace_file_content|run_command",
|
|
14
|
+
"hooks": [
|
|
15
|
+
{
|
|
16
|
+
"type": "command",
|
|
17
|
+
"command": "./hooks/overlord-post-tool-use.sh",
|
|
18
|
+
"timeout": 15
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"Stop": [
|
|
24
|
+
{
|
|
25
|
+
"type": "command",
|
|
26
|
+
"command": "./hooks/overlord-stop.sh",
|
|
27
|
+
"timeout": 30
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
"mcpServers": {
|
|
3
3
|
"overlord": {
|
|
4
4
|
"command": "node",
|
|
5
|
-
"args": ["./scripts/overlord-mcp.mjs"]
|
|
6
|
-
"note": "Local MCP bridge for the Overlord `ovld protocol` CLI. Requires `ovld` on PATH plus valid auth credentials when talking to a live server."
|
|
5
|
+
"args": ["./scripts/overlord-mcp.mjs"]
|
|
7
6
|
}
|
|
8
7
|
}
|
|
9
8
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "overlord",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"displayName": "Overlord",
|
|
5
|
+
"version": "0.3.84",
|
|
6
|
+
"description": "Run Overlord missions from Antigravity: attach to an objective, post progress, ask blocking questions, and deliver through skills and MCP.",
|
|
7
|
+
"logo": "assets/logo.png",
|
|
8
|
+
"suggestedPrompts": [
|
|
9
|
+
"Attach to my Overlord mission and start the current objective",
|
|
10
|
+
"Create an Overlord mission from this conversation",
|
|
11
|
+
"Record the work I just finished in Overlord"
|
|
12
|
+
],
|
|
6
13
|
"author": {
|
|
7
14
|
"name": "Cooperativ",
|
|
8
15
|
"url": "https://github.com/cooperativ-labs"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "overlord",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Overlord mission protocol workflow for Claude Code — attach/update/ask/deliver, slash commands, and hook
|
|
3
|
+
"version": "0.3.84",
|
|
4
|
+
"description": "Overlord mission protocol workflow for Claude Code — attach/update/ask/deliver, slash commands, and mcp_tool hook activity capture.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cooperativ",
|
|
7
7
|
"url": "https://github.com/cooperativ-labs"
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"homepage": "https://www.ovld.ai",
|
|
10
10
|
"repository": "https://github.com/cooperativ-labs/overlord",
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
|
+
"engines": {
|
|
13
|
+
"claude-code": ">=2.1.328"
|
|
14
|
+
},
|
|
12
15
|
"keywords": [
|
|
13
16
|
"overlord",
|
|
14
17
|
"ticket",
|
|
@@ -24,12 +27,6 @@
|
|
|
24
27
|
"title": "Overlord URL",
|
|
25
28
|
"description": "Overlord platform URL (e.g. https://www.ovld.ai or http://localhost:3000).",
|
|
26
29
|
"sensitive": false
|
|
27
|
-
},
|
|
28
|
-
"user_token": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"title": "User token",
|
|
31
|
-
"description": "Overlord USER_TOKEN for non-interactive CLI authentication. Create one with `ovld user-token create`; the raw `out_...` secret is shown once. The connector passes this value to `ovld protocol` as Overlord_USER_TOKEN.",
|
|
32
|
-
"sensitive": true
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
32
|
}
|