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.
Files changed (149) hide show
  1. package/README.md +61 -0
  2. package/dist/connectors/AGENTS.md +4 -2
  3. package/dist/connectors/HARNESS-MATRIX.md +28 -27
  4. package/dist/connectors/README.md +23 -14
  5. package/dist/connectors/VERSION +1 -1
  6. package/dist/connectors/adapters/antigravity/CAPABILITIES.md +49 -26
  7. package/dist/connectors/adapters/antigravity/README.md +63 -15
  8. package/dist/connectors/adapters/antigravity/assets/logo.png +0 -0
  9. package/dist/connectors/adapters/antigravity/codec/antigravity.codec.yaml +66 -0
  10. package/dist/connectors/adapters/antigravity/codec/antigravity.decision-codec.yaml +26 -0
  11. package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +8 -4
  12. package/dist/connectors/adapters/antigravity/fixtures/decision-codec.json +51 -0
  13. package/dist/connectors/adapters/antigravity/fixtures/hooks-registration.json +15 -0
  14. package/dist/connectors/adapters/antigravity/fixtures/mutation-window-evidence.json +12 -7
  15. package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-failed.json +54 -0
  16. package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-shell.json +50 -0
  17. package/dist/connectors/adapters/antigravity/fixtures/normalize-post-tool-use-write.json +58 -0
  18. package/dist/connectors/adapters/antigravity/fixtures/normalize-pre-invocation.json +37 -0
  19. package/dist/connectors/adapters/antigravity/fixtures/official-stop.json +32 -0
  20. package/dist/connectors/adapters/antigravity/fixtures/post-tool-use-hook.json +36 -0
  21. package/dist/connectors/adapters/antigravity/fixtures/post-tool-use-unbound.json +35 -0
  22. package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-hook.json +35 -0
  23. package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-inject.json +36 -0
  24. package/dist/connectors/adapters/antigravity/fixtures/pre-invocation-unbound.json +29 -0
  25. package/dist/connectors/adapters/antigravity/fixtures/stop-delivery-reminder.json +37 -0
  26. package/dist/connectors/adapters/antigravity/fixtures/stop-hook-failure.json +37 -0
  27. package/dist/connectors/adapters/antigravity/fixtures/stop-inbox-inject.json +35 -0
  28. package/dist/connectors/adapters/antigravity/fixtures/unbound-session.json +27 -10
  29. package/dist/connectors/adapters/antigravity/harness-capabilities.yaml +133 -51
  30. package/dist/connectors/adapters/antigravity/hooks/overlord-pre-invocation.sh +30 -0
  31. package/dist/connectors/adapters/antigravity/hooks/overlord-stop.sh +37 -0
  32. package/dist/connectors/adapters/antigravity/hooks.json +31 -1
  33. package/dist/connectors/adapters/antigravity/mcp_config.json +1 -2
  34. package/dist/connectors/adapters/antigravity/plugin.json +9 -2
  35. package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +5 -8
  36. package/dist/connectors/adapters/claude/.mcp.json +8 -0
  37. package/dist/connectors/adapters/claude/CAPABILITIES.md +32 -20
  38. package/dist/connectors/adapters/claude/README.md +84 -15
  39. package/dist/connectors/adapters/claude/codec/claude.decision-codec.yaml +13 -5
  40. package/dist/connectors/adapters/claude/conformance-manifest.yaml +4 -6
  41. package/dist/connectors/adapters/claude/fixtures/decision-codec.json +8 -9
  42. package/dist/connectors/adapters/claude/fixtures/decision-hook-registration.json +17 -0
  43. package/dist/connectors/adapters/claude/fixtures/hook-capture-fail-open.json +60 -0
  44. package/dist/connectors/adapters/claude/fixtures/hook-decision-no-approval-on-failure.json +74 -0
  45. package/dist/connectors/adapters/claude/fixtures/hook-nested-session-gate.json +148 -0
  46. package/dist/connectors/adapters/claude/fixtures/hook-stop-fail-open.json +61 -0
  47. package/dist/connectors/adapters/claude/fixtures/hooks-fail-open-registration.json +32 -0
  48. package/dist/connectors/adapters/claude/fixtures/native-payload-shapes.json +206 -0
  49. package/dist/connectors/adapters/claude/fixtures/normalize-post-tool-use-shell.json +1 -7
  50. package/dist/connectors/adapters/claude/fixtures/normalize-post-tool-use-write.json +2 -10
  51. package/dist/connectors/adapters/claude/fixtures/normalize-session-start.json +1 -4
  52. package/dist/connectors/adapters/claude/fixtures/normalize-user-prompt-submit.json +1 -5
  53. package/dist/connectors/adapters/claude/fixtures/permission-request.json +14 -5
  54. package/dist/connectors/adapters/claude/fixtures/post-tool-use-capture.json +54 -13
  55. package/dist/connectors/adapters/claude/fixtures/post-tool-use-parity.json +6 -3
  56. package/dist/connectors/adapters/claude/fixtures/probe-decision-fail-closed.json +45 -0
  57. package/dist/connectors/adapters/claude/fixtures/probe-fail-open.json +48 -0
  58. package/dist/connectors/adapters/claude/fixtures/probe-stop-heartbeat.json +40 -0
  59. package/dist/connectors/adapters/claude/fixtures/status-line-opt-in.json +16 -0
  60. package/dist/connectors/adapters/claude/fixtures/status-line-payload.json +29 -0
  61. package/dist/connectors/adapters/claude/fixtures/status-line-side-effect-free.json +16 -0
  62. package/dist/connectors/adapters/claude/fixtures/subagent-identity.json +143 -0
  63. package/dist/connectors/adapters/claude/fixtures/subagent-stop-background.json +95 -0
  64. package/dist/connectors/adapters/claude/fixtures/unbound-session.json +134 -12
  65. package/dist/connectors/adapters/claude/harness-capabilities.yaml +151 -57
  66. package/dist/connectors/adapters/claude/hooks/hooks.json +33 -6
  67. package/dist/connectors/adapters/claude/skills/overlord-mission/SKILL.md +4 -4
  68. package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
  69. package/dist/connectors/adapters/codex/CAPABILITIES.md +24 -10
  70. package/dist/connectors/adapters/codex/README.md +31 -5
  71. package/dist/connectors/adapters/codex/codec/codex.codec.yaml +9 -0
  72. package/dist/connectors/adapters/codex/conformance-manifest.yaml +2 -2
  73. package/dist/connectors/adapters/codex/fixtures/control-plane-surface-guard.json +26 -0
  74. package/dist/connectors/adapters/codex/fixtures/control-plane-surface-prompt-guard.json +24 -0
  75. package/dist/connectors/adapters/codex/fixtures/decision-codec.json +13 -9
  76. package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-failed.json +2 -0
  77. package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-rename.json +2 -0
  78. package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use-subagent.json +53 -0
  79. package/dist/connectors/adapters/codex/fixtures/normalize-post-tool-use.json +2 -0
  80. package/dist/connectors/adapters/codex/fixtures/normalize-pre-tool-use.json +2 -0
  81. package/dist/connectors/adapters/codex/fixtures/normalize-session-start.json +2 -0
  82. package/dist/connectors/adapters/codex/fixtures/normalize-user-prompt.json +2 -0
  83. package/dist/connectors/adapters/codex/fixtures/permission-request.json +22 -7
  84. package/dist/connectors/adapters/codex/fixtures/shell-session-env.json +28 -0
  85. package/dist/connectors/adapters/codex/fixtures/status-line-opt-in.json +22 -0
  86. package/dist/connectors/adapters/codex/fixtures/status-line-provider.json +124 -0
  87. package/dist/connectors/adapters/codex/fixtures/status-line-state.json +90 -0
  88. package/dist/connectors/adapters/codex/fixtures/stop.json +28 -0
  89. package/dist/connectors/adapters/codex/harness-capabilities.yaml +118 -20
  90. package/dist/connectors/adapters/codex/scripts/permission-hook.sh +5 -0
  91. package/dist/connectors/adapters/codex/scripts/user-prompt-submit-hook.sh +5 -0
  92. package/dist/connectors/adapters/codex-app-server/CAPABILITIES.md +149 -0
  93. package/dist/connectors/adapters/codex-app-server/README.md +251 -0
  94. package/dist/connectors/adapters/codex-app-server/codec/codex-app-server.codec.yaml +150 -0
  95. package/dist/connectors/adapters/codex-app-server/conformance-manifest.yaml +24 -0
  96. package/dist/connectors/adapters/codex-app-server/fixtures/human-answers-control-plane-cards.json +17 -0
  97. package/dist/connectors/adapters/codex-app-server/fixtures/launch-mints-control-plane-channel.json +20 -0
  98. package/dist/connectors/adapters/codex-app-server/fixtures/mutation-window-evidence.json +29 -0
  99. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-child-file-change.json +74 -0
  100. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-command-completed.json +67 -0
  101. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-command-started.json +61 -0
  102. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-completed.json +70 -0
  103. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-declined.json +71 -0
  104. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-file-change-started.json +64 -0
  105. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-fork-started.json +79 -0
  106. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-steer-message.json +50 -0
  107. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-subagent-started.json +51 -0
  108. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-thread-started.json +77 -0
  109. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-turn-interrupted.json +44 -0
  110. package/dist/connectors/adapters/codex-app-server/fixtures/normalize-user-message.json +50 -0
  111. package/dist/connectors/adapters/codex-app-server/fixtures/reasked-approval-occurrence.json +14 -0
  112. package/dist/connectors/adapters/codex-app-server/fixtures/replay-child-thread.json +692 -0
  113. package/dist/connectors/adapters/codex-app-server/fixtures/replay-command-approval.json +465 -0
  114. package/dist/connectors/adapters/codex-app-server/fixtures/replay-concurrent-answer.json +278 -0
  115. package/dist/connectors/adapters/codex-app-server/fixtures/replay-handshake.json +242 -0
  116. package/dist/connectors/adapters/codex-app-server/fixtures/replay-history-import.json +974 -0
  117. package/dist/connectors/adapters/codex-app-server/fixtures/replay-inject-steer.json +235 -0
  118. package/dist/connectors/adapters/codex-app-server/fixtures/replay-inject-turn-boundary.json +403 -0
  119. package/dist/connectors/adapters/codex-app-server/fixtures/replay-interrupt.json +199 -0
  120. package/dist/connectors/adapters/codex-app-server/fixtures/replay-patch-approval.json +266 -0
  121. package/dist/connectors/adapters/codex-app-server/fixtures/replay-version-gate.json +84 -0
  122. package/dist/connectors/adapters/codex-app-server/fixtures/server-socket-owner-only.json +24 -0
  123. package/dist/connectors/adapters/codex-app-server/fixtures/status-line-provider.json +125 -0
  124. package/dist/connectors/adapters/codex-app-server/fixtures/status-line-thread-index.json +15 -0
  125. package/dist/connectors/adapters/codex-app-server/fixtures/supervisor-reaps-orphans.json +17 -0
  126. package/dist/connectors/adapters/codex-app-server/fixtures/supervisor-watchdog.json +14 -0
  127. package/dist/connectors/adapters/codex-app-server/fixtures/trust-entry-cleanup.json +13 -0
  128. package/dist/connectors/adapters/codex-app-server/fixtures/unbound-session.json +13 -0
  129. package/dist/connectors/adapters/codex-app-server/harness-capabilities.yaml +384 -0
  130. package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
  131. package/dist/connectors/adapters/cursor/CAPABILITIES.md +3 -3
  132. package/dist/connectors/adapters/cursor/conformance-manifest.yaml +2 -2
  133. package/dist/connectors/adapters/cursor/fixtures/claude-plugin-import-guard.json +17 -0
  134. package/dist/connectors/adapters/cursor/harness-capabilities.yaml +12 -7
  135. package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
  136. package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
  137. package/dist/connectors/core/scripts/agent-session-hook.sh +4 -0
  138. package/dist/connectors/core/scripts/capture-change-hook.sh +5 -0
  139. package/dist/connectors/core/scripts/overlord-mcp.mjs +668 -38
  140. package/dist/connectors/docs/05-connectors-and-agent-plugins.md +12 -4
  141. package/dist/connectors/docs/testing.md +12 -4
  142. package/dist/index.js +12809 -6328
  143. package/dist/index.js.map +4 -4
  144. package/package.json +1 -1
  145. package/dist/connectors/adapters/claude/fixtures/inject-async-rewake.json +0 -13
  146. package/dist/connectors/adapters/claude/fixtures/inject-stop-block.json +0 -9
  147. package/dist/connectors/adapters/claude/scripts/permission-hook.sh +0 -21
  148. package/dist/connectors/adapters/claude/scripts/stop-hook.sh +0 -81
  149. package/dist/connectors/adapters/claude/scripts/user-prompt-submit-hook.sh +0 -121
@@ -0,0 +1,26 @@
1
+ # Antigravity — PreToolUse request/decision codec.
2
+ #
3
+ # Declares the native request paths and the exact response literals for Antigravity's
4
+ # PreToolUse `decision` (https://antigravity.google/docs/hooks#pretooluse). No hook registration
5
+ # uses it yet: `decide.*` stays not-implemented until a session channel exists at launch, and the
6
+ # connector registers no PreToolUse hook. The literals are pinned now so the decision path cannot
7
+ # drift from the documented dialect when it is wired.
8
+ #
9
+ # `allow` in Antigravity's own dialect means "proceed, deferring to the next hook or default
10
+ # policy", not an approval, so a remote allow is `auto_approve` (approve when the default policy
11
+ # would prompt, still honoring explicit user rules and admin review since agy 1.5.7). Defer is
12
+ # silence: no output leaves the native permission flow, which is the floor every failure path
13
+ # must return to. Nothing here may manufacture `allow`/`auto_approve` on failure.
14
+ codecVersion: 1
15
+ adapter: antigravity
16
+ eventNamePaths: [hookEventName]
17
+ projectRootPaths: [cwd, workspacePaths.0]
18
+ requests:
19
+ - native: PreToolUse
20
+ toolPath: toolCall.name
21
+ inputPath: toolCall.args
22
+ callIdPaths: [toolCall.id]
23
+ responses:
24
+ allow: { body: { decision: auto_approve } }
25
+ deny: { body: { decision: deny } }
26
+ ask: { defer: true }
@@ -1,4 +1,4 @@
1
- contractVersion: "179.0.1"
1
+ contractVersion: "181.0.0"
2
2
  componentType: connector
3
3
  componentKey: antigravity
4
4
  label: "Antigravity Connector"
@@ -10,19 +10,23 @@ connector:
10
10
  # Projected from connectors/adapters/antigravity/harness-capabilities.yaml by `yarn connectors:capabilities`.
11
11
  # The harness descriptor and its executable fixtures are the only capability source.
12
12
  integrationShape: callback
13
- capabilityTier: 0
13
+ capabilityTier: 1
14
14
  harnessCapabilities:
15
15
  path: connectors/adapters/antigravity/harness-capabilities.yaml
16
16
  schemaVersion: 1
17
- digest: "c5686f1ab4c02e6bb90adeef83c6acd61703f3238be12618fed1e2b833636b2a"
17
+ digest: "c99353d29093e78117e61a930e091a5bdba53952a29c578cad8c113b397a1474"
18
18
  # ── END GENERATED ────────────────────────────────────────────────────────────
19
- installPath: "~/.gemini/antigravity-cli/plugins/overlord"
19
+ installPath: "~/.gemini/config/plugins/overlord"
20
20
  managedFiles:
21
21
  - "harness-capabilities.yaml"
22
22
  - "CAPABILITIES.md"
23
23
  - "plugin.json"
24
+ - "assets/logo.png"
24
25
  - "mcp_config.json"
25
26
  - "hooks.json"
27
+ - "hooks/overlord-pre-invocation.sh"
28
+ - "hooks/overlord-post-tool-use.sh"
29
+ - "hooks/overlord-stop.sh"
26
30
  - "README.md"
27
31
  - "prompt-wrapper.md"
28
32
  - "scripts/overlord-mcp.mjs"
@@ -0,0 +1,51 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "decision-codec",
4
+ "description": "Antigravity PreToolUse request reduction and exact response bytes: a remote allow is auto_approve, deny is deny, and ask is silence so the native permission flow decides. No hook uses this codec yet.",
5
+ "codec": "codec/antigravity.decision-codec.yaml",
6
+ "payload": {
7
+ "hookEventName": "PreToolUse",
8
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
9
+ "cwd": "/workspace/project",
10
+ "workspacePaths": ["/workspace/project"],
11
+ "toolCall": {
12
+ "id": "toolu_cmd_9",
13
+ "name": "run_command",
14
+ "args": {
15
+ "CommandLine": "echo AKIAIOSFODNN7EXAMPLE",
16
+ "Cwd": "/workspace/project",
17
+ "WaitMsBeforeAsync": 5000
18
+ }
19
+ },
20
+ "stepIdx": 4,
21
+ "transcriptPath": "/Users/dev/.gemini/antigravity-cli/brain/x/transcript.jsonl"
22
+ },
23
+ "expect": {
24
+ "request": {
25
+ "kind": "permission",
26
+ "summary": "Run a shell command: echo [redacted] [secret-adjacent]",
27
+ "details": {
28
+ "tool": "shell",
29
+ "action": "Run a shell command",
30
+ "subject": "echo",
31
+ "detail": "echo [redacted]",
32
+ "riskMarkers": ["secret-adjacent"],
33
+ "formatterVersion": 1
34
+ },
35
+ "nativeRequestId": null,
36
+ "nativeCallId": "toolu_cmd_9",
37
+ "harnessTimeoutSeconds": null
38
+ },
39
+ "responses": {
40
+ "allow": "{\"decision\":\"auto_approve\"}\n",
41
+ "deny": "{\"decision\":\"deny\"}\n",
42
+ "ask": null
43
+ }
44
+ },
45
+ "mustNotContain": [
46
+ "AKIAIOSFODNN7EXAMPLE",
47
+ "transcript.jsonl",
48
+ "hookSpecificOutput",
49
+ "permissionDecision"
50
+ ]
51
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "source-guard",
4
+ "description": "The Antigravity plugin registers only the observational PostToolUse capture, the PreInvocation prompt hook and the Stop hook. It registers no PreToolUse decision hook: the remote decision path is not wired, and an unregistered hook leaves Antigravity's native permission flow as the floor.",
5
+ "path": "connectors/adapters/antigravity/hooks.json",
6
+ "assert": {
7
+ "mustContain": [
8
+ "./hooks/overlord-pre-invocation.sh",
9
+ "./hooks/overlord-post-tool-use.sh",
10
+ "./hooks/overlord-stop.sh",
11
+ "write_to_file|replace_file_content|multi_replace_file_content|run_command"
12
+ ],
13
+ "mustNotContain": ["PreToolUse", "PLUGIN_ROOT", "auto_approve"]
14
+ }
15
+ }
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "fixtureVersion": 1,
3
3
  "kind": "mutation-window",
4
- "description": "Antigravity has a first-party PreToolUse example but no recorded completion payload or runtime evidence.",
5
- "classification": "unsupported",
6
- "reason": "No recorded PostToolUse payload or empirical agy hook execution proves completion-side or paired evidence.",
7
- "preFixture": "fixtures/official-pre-tool-use.json",
4
+ "description": "Antigravity registers only a PostToolUse capture hook. Its recorded write_to_file completion carries the conversation, workspace, tool and an exact TargetFile that the codec normalizes to a single file.edited path, so evidence is post-only and direct. No PreToolUse hook is registered, so no paired window is claimed.",
5
+ "classification": "post-only",
6
+ "postFixture": "fixtures/normalize-post-tool-use-write.json",
8
7
  "proof": {
9
- "pre": {
8
+ "post": {
10
9
  "session": "conversationId",
11
- "workspace": "workspacePaths.0",
12
- "tool": "toolCall.name"
10
+ "call": "toolCall.id",
11
+ "workspace": "cwd",
12
+ "tool": "toolCall.name",
13
+ "directPath": "toolCall.args.TargetFile",
14
+ "completion": {
15
+ "path": "hookEventName",
16
+ "equals": "PostToolUse"
17
+ }
13
18
  }
14
19
  }
15
20
  }
@@ -0,0 +1,54 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "normalized-event",
4
+ "description": "Antigravity PostToolUse for a replace_file_content that failed. A non-empty `error` decodes to outcome error, so capture records outcome_partial and appends no path; the error text and the replaced content never appear.",
5
+ "codec": "codec/antigravity.codec.yaml",
6
+ "occurredAt": "2026-11-20T00:00:00.000Z",
7
+ "payload": {
8
+ "hookEventName": "PostToolUse",
9
+ "toolCall": {
10
+ "id": "toolu_edit_2",
11
+ "name": "replace_file_content",
12
+ "args": {
13
+ "TargetFile": "/workspace/project/src/config.ts",
14
+ "Instruction": "Rename the export",
15
+ "TargetContent": "export const token",
16
+ "ReplacementContent": "export const apiKey = 'hunter2-secret';",
17
+ "AllowMultiple": false
18
+ }
19
+ },
20
+ "stepIdx": 9,
21
+ "error": "target content not found in /workspace/project/src/config.ts",
22
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
23
+ "workspacePaths": ["/workspace/project"],
24
+ "transcriptPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587/.system_generated/logs/transcript.jsonl",
25
+ "artifactDirectoryPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587",
26
+ "modelName": "gemini-3.6-flash-medium",
27
+ "cwd": "/workspace/project"
28
+ },
29
+ "expect": {
30
+ "eventId": "ev_002004eb56748030ac1d512383db2feb",
31
+ "producerSequence": null,
32
+ "occurredAt": "2026-11-20T00:00:00.000Z",
33
+ "kind": "file.edited",
34
+ "severity": "info",
35
+ "nativeEvent": "PostToolUse",
36
+ "nativeTurnId": null,
37
+ "nativeCallId": "toolu_edit_2",
38
+ "subagentId": null,
39
+ "correlationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
40
+ "origin": "agent",
41
+ "summary": "Overwrite a file: src/config.ts: 39 bytes, replacing existing text [overwrites-existing]",
42
+ "payload": {
43
+ "tool": "edit",
44
+ "action": "Overwrite a file",
45
+ "subject": "src/config.ts",
46
+ "detail": "39 bytes, replacing existing text",
47
+ "riskMarkers": ["overwrites-existing"],
48
+ "paths": ["src/config.ts"],
49
+ "outcome": "error",
50
+ "formatterVersion": 1
51
+ }
52
+ },
53
+ "mustNotContain": ["hunter2-secret", "target content not found", "transcript.jsonl", "/Users/dev"]
54
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "normalized-event",
4
+ "description": "Antigravity PostToolUse for run_command, using the first-party PostToolUse example arguments and error. It is a tool.completed shell card with a decoded error outcome; the command output is not in the payload and the error text is not retained.",
5
+ "codec": "codec/antigravity.codec.yaml",
6
+ "occurredAt": "2026-11-20T00:00:00.000Z",
7
+ "payload": {
8
+ "hookEventName": "PostToolUse",
9
+ "toolCall": {
10
+ "id": "toolu_cmd_3",
11
+ "name": "run_command",
12
+ "args": {
13
+ "CommandLine": "npm test",
14
+ "Cwd": "/workspace/project",
15
+ "WaitMsBeforeAsync": 5000
16
+ }
17
+ },
18
+ "stepIdx": 19,
19
+ "error": "exit status 1",
20
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
21
+ "workspacePaths": ["/workspace/project"],
22
+ "transcriptPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587/.system_generated/logs/transcript.jsonl",
23
+ "artifactDirectoryPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587",
24
+ "modelName": "gemini-3.6-flash-medium",
25
+ "cwd": "/workspace/project"
26
+ },
27
+ "expect": {
28
+ "eventId": "ev_af50fe65f64c984d4b22f1ca95ea3ce1",
29
+ "producerSequence": null,
30
+ "occurredAt": "2026-11-20T00:00:00.000Z",
31
+ "kind": "tool.completed",
32
+ "severity": "info",
33
+ "nativeEvent": "PostToolUse",
34
+ "nativeTurnId": null,
35
+ "nativeCallId": "toolu_cmd_3",
36
+ "subagentId": null,
37
+ "correlationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
38
+ "origin": "agent",
39
+ "summary": "Run a shell command: npm test",
40
+ "payload": {
41
+ "tool": "shell",
42
+ "action": "Run a shell command",
43
+ "subject": "npm",
44
+ "detail": "npm test",
45
+ "outcome": "error",
46
+ "formatterVersion": 1
47
+ }
48
+ },
49
+ "mustNotContain": ["exit status 1", "transcript.jsonl", "/Users/dev"]
50
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "normalized-event",
4
+ "description": "Antigravity PostToolUse for a successful write_to_file in the documented camelCase shape (hooks doc PostToolUse input; hookEventName, cwd and toolCall.id from agy 1.5.4). `error` is omitted, which the doc defines as success, so the edit is file.edited with outcome ok and the exact workspace-relative TargetFile; the written content, transcript path and home directory never appear.",
5
+ "codec": "codec/antigravity.codec.yaml",
6
+ "occurredAt": "2026-11-20T00:00:00.000Z",
7
+ "payload": {
8
+ "hookEventName": "PostToolUse",
9
+ "toolCall": {
10
+ "id": "toolu_write_1",
11
+ "name": "write_to_file",
12
+ "args": {
13
+ "TargetFile": "/workspace/project/src/config.ts",
14
+ "Overwrite": false,
15
+ "CodeContent": "export const token = 'AKIAIOSFODNN7EXAMPLE';\n",
16
+ "Description": "Create the config module",
17
+ "IsArtifact": false
18
+ }
19
+ },
20
+ "stepIdx": 7,
21
+ "lastUserInput": "Add a config module",
22
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
23
+ "workspacePaths": ["/workspace/project"],
24
+ "transcriptPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587/.system_generated/logs/transcript.jsonl",
25
+ "artifactDirectoryPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587",
26
+ "modelName": "gemini-3.6-flash-medium",
27
+ "cwd": "/workspace/project"
28
+ },
29
+ "expect": {
30
+ "eventId": "ev_0781b172f93cc11b8111d341e105ad77",
31
+ "producerSequence": null,
32
+ "occurredAt": "2026-11-20T00:00:00.000Z",
33
+ "kind": "file.edited",
34
+ "severity": "info",
35
+ "nativeEvent": "PostToolUse",
36
+ "nativeTurnId": null,
37
+ "nativeCallId": "toolu_write_1",
38
+ "subagentId": null,
39
+ "correlationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
40
+ "origin": "agent",
41
+ "summary": "Write a file: src/config.ts: 45 bytes",
42
+ "payload": {
43
+ "tool": "write",
44
+ "action": "Write a file",
45
+ "subject": "src/config.ts",
46
+ "detail": "45 bytes",
47
+ "paths": ["src/config.ts"],
48
+ "outcome": "ok",
49
+ "formatterVersion": 1
50
+ }
51
+ },
52
+ "mustNotContain": [
53
+ "AKIAIOSFODNN7EXAMPLE",
54
+ "transcript.jsonl",
55
+ "/Users/dev",
56
+ "Create the config module"
57
+ ]
58
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "normalized-event",
4
+ "description": "Antigravity PreInvocation carries the latest user message as lastUserInput (common field since agy 1.4.7). The codec reads only that field into a prompt.submitted event, with secrets redacted; the transcript path is never read or retained.",
5
+ "codec": "codec/antigravity.codec.yaml",
6
+ "occurredAt": "2026-11-20T00:00:00.000Z",
7
+ "payload": {
8
+ "hookEventName": "PreInvocation",
9
+ "invocationNum": 0,
10
+ "initialNumSteps": 4,
11
+ "lastUserInput": "Also rotate the key ghp_abcdefghijklmnopqrstuvwxyz0123456789 and rerun the tests",
12
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
13
+ "workspacePaths": ["/workspace/project"],
14
+ "transcriptPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587/.system_generated/logs/transcript.jsonl",
15
+ "artifactDirectoryPath": "/Users/dev/.gemini/antigravity-cli/brain/ec33ebf9-0cba-4100-8142-c61503f6c587",
16
+ "modelName": "gemini-3.6-flash-medium",
17
+ "cwd": "/workspace/project"
18
+ },
19
+ "expect": {
20
+ "eventId": "ev_b9a1cc5b21e917f337ee26f64ff3968a",
21
+ "producerSequence": null,
22
+ "occurredAt": "2026-11-20T00:00:00.000Z",
23
+ "kind": "prompt.submitted",
24
+ "severity": "info",
25
+ "nativeEvent": "PreInvocation",
26
+ "nativeTurnId": null,
27
+ "nativeCallId": null,
28
+ "subagentId": null,
29
+ "correlationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
30
+ "origin": "user",
31
+ "summary": "Also rotate the key [redacted] and rerun the tests",
32
+ "payload": {
33
+ "promptText": "Also rotate the key [redacted] and rerun the tests"
34
+ }
35
+ },
36
+ "mustNotContain": ["ghp_abcdefghijklmnopqrstuvwxyz0123456789", "transcript.jsonl", "/Users/dev"]
37
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "native-payload",
4
+ "description": "Antigravity Stop input in the documented shape (hooks doc Stop input; continuation_active from agy 1.5.6). It carries the conversationId binding alias, fullyIdle and the continuation guard the delivery reminder reads.",
5
+ "payload": {
6
+ "hookEventName": "Stop",
7
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
8
+ "workspacePaths": ["/workspace/project"],
9
+ "cwd": "/workspace/project",
10
+ "executionNum": 3,
11
+ "terminationReason": "model_stop",
12
+ "fullyIdle": true,
13
+ "continuation_active": false,
14
+ "lastUserInput": "Ship it",
15
+ "modelName": "gemini-3.6-flash-medium"
16
+ },
17
+ "assert": {
18
+ "requiredPaths": [
19
+ "hookEventName",
20
+ "conversationId",
21
+ "executionNum",
22
+ "terminationReason",
23
+ "fullyIdle",
24
+ "continuation_active"
25
+ ],
26
+ "bindingField": "conversationId",
27
+ "equals": {
28
+ "hookEventName": "Stop",
29
+ "fullyIdle": true
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "The rendered core capture callback at the Antigravity PostToolUse path forwards the native payload to local capture-change with the antigravity codec and the explicit launch objective.",
5
+ "script": "connectors/core/scripts/capture-change-hook.sh",
6
+ "adapterKey": "antigravity",
7
+ "stdin": {
8
+ "hookEventName": "PostToolUse",
9
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
10
+ "workspacePaths": ["/workspace/project"],
11
+ "cwd": "/workspace/project",
12
+ "toolCall": {
13
+ "id": "toolu_write_1",
14
+ "name": "write_to_file",
15
+ "args": {
16
+ "TargetFile": "/workspace/project/src/config.ts",
17
+ "CodeContent": "export {};\n"
18
+ }
19
+ },
20
+ "stepIdx": 7
21
+ },
22
+ "env": {
23
+ "MISSION_ID": null,
24
+ "OVERLORD_MISSION_ID": null,
25
+ "OVERLORD_OBJECTIVE_ID": "coo:825.abcd",
26
+ "OVERLORD_SESSION_CHANNEL_ID": null
27
+ },
28
+ "expect": {
29
+ "exitCode": 0,
30
+ "stdout": "",
31
+ "stderr": "",
32
+ "cliInvocations": ["protocol capture-change --agent antigravity --objective-id coo:825.abcd"],
33
+ "stdinForwarded": true,
34
+ "sandboxWrites": []
35
+ }
36
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "The Antigravity PostToolUse capture callback exits before reading stdin, spawning the CLI, or writing when no objective is explicitly bound.",
5
+ "script": "connectors/core/scripts/capture-change-hook.sh",
6
+ "adapterKey": "antigravity",
7
+ "stdin": {
8
+ "hookEventName": "PostToolUse",
9
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
10
+ "workspacePaths": ["/workspace/project"],
11
+ "cwd": "/workspace/project",
12
+ "toolCall": {
13
+ "id": "toolu_write_1",
14
+ "name": "write_to_file",
15
+ "args": {
16
+ "TargetFile": "/workspace/project/src/config.ts",
17
+ "CodeContent": "export {};\n"
18
+ }
19
+ },
20
+ "stepIdx": 7
21
+ },
22
+ "env": {
23
+ "MISSION_ID": null,
24
+ "OVERLORD_MISSION_ID": null,
25
+ "OVERLORD_OBJECTIVE_ID": null,
26
+ "OVERLORD_SESSION_CHANNEL_ID": null
27
+ },
28
+ "expect": {
29
+ "exitCode": 0,
30
+ "stdout": "",
31
+ "stderr": "",
32
+ "cliInvocations": [],
33
+ "sandboxWrites": []
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "A launched Antigravity session's PreInvocation hook forwards the native payload to `ovld protocol hook-event` as a UserPromptSubmit, which records lastUserInput as a follow-up once per distinct prompt, and answers `{}` so the invocation proceeds unchanged.",
5
+ "script": "connectors/adapters/antigravity/hooks/overlord-pre-invocation.sh",
6
+ "stdin": {
7
+ "hookEventName": "PreInvocation",
8
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
9
+ "workspacePaths": ["/workspace/project"],
10
+ "cwd": "/workspace/project",
11
+ "invocationNum": 2,
12
+ "initialNumSteps": 11,
13
+ "lastUserInput": "Also update the changelog",
14
+ "modelName": "gemini-3.6-flash-medium"
15
+ },
16
+ "env": {
17
+ "MISSION_ID": "coo:825",
18
+ "OVERLORD_MISSION_ID": "coo:825",
19
+ "OVERLORD_OBJECTIVE_ID": "coo:825.abcd",
20
+ "OVERLORD_SESSION_CHANNEL_ID": null
21
+ },
22
+ "spy": {
23
+ "stdout": "{}\n"
24
+ },
25
+ "expect": {
26
+ "exitCode": 0,
27
+ "stdout": "{}\n",
28
+ "stderr": "",
29
+ "cliInvocations": [
30
+ "protocol hook-event --agent antigravity --hook-type UserPromptSubmit --hook-output --payload-file -"
31
+ ],
32
+ "stdinForwarded": true,
33
+ "sandboxWrites": []
34
+ }
35
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "With a session channel, the Antigravity PreInvocation hook records the prompt and then claims a pending Overlord instruction through `ovld agent-session inbox`, answering with the exact `injectSteps` userMessage the inbox emits.",
5
+ "script": "connectors/adapters/antigravity/hooks/overlord-pre-invocation.sh",
6
+ "stdin": {
7
+ "hookEventName": "PreInvocation",
8
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
9
+ "workspacePaths": ["/workspace/project"],
10
+ "cwd": "/workspace/project",
11
+ "invocationNum": 2,
12
+ "initialNumSteps": 11,
13
+ "lastUserInput": "Also update the changelog",
14
+ "modelName": "gemini-3.6-flash-medium"
15
+ },
16
+ "env": {
17
+ "MISSION_ID": "coo:825",
18
+ "OVERLORD_MISSION_ID": "coo:825",
19
+ "OVERLORD_OBJECTIVE_ID": "coo:825.abcd",
20
+ "OVERLORD_SESSION_CHANNEL_ID": "chan_1"
21
+ },
22
+ "spy": {
23
+ "stdout": "{\"injectSteps\":[{\"userMessage\":\"Also update the changelog\"}]}\n"
24
+ },
25
+ "expect": {
26
+ "exitCode": 0,
27
+ "stdout": "{\"injectSteps\":[{\"userMessage\":\"Also update the changelog\"}]}\n",
28
+ "stderr": "",
29
+ "cliInvocations": [
30
+ "protocol hook-event --agent antigravity --hook-type UserPromptSubmit --hook-output --payload-file -",
31
+ "agent-session inbox --agent antigravity --payload-file -"
32
+ ],
33
+ "cliStdin": "{\"hookEventName\":\"PreInvocation\",\"conversationId\":\"ec33ebf9-0cba-4100-8142-c61503f6c587\",\"workspacePaths\":[\"/workspace/project\"],\"cwd\":\"/workspace/project\",\"invocationNum\":2,\"initialNumSteps\":11,\"lastUserInput\":\"Also update the changelog\",\"modelName\":\"gemini-3.6-flash-medium\"}{\"hookEventName\":\"PreInvocation\",\"conversationId\":\"ec33ebf9-0cba-4100-8142-c61503f6c587\",\"workspacePaths\":[\"/workspace/project\"],\"cwd\":\"/workspace/project\",\"invocationNum\":2,\"initialNumSteps\":11,\"lastUserInput\":\"Also update the changelog\",\"modelName\":\"gemini-3.6-flash-medium\"}",
34
+ "sandboxWrites": []
35
+ }
36
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "The Antigravity PreInvocation hook is silent in an unbound session: no stdin read, no spawn, no write, no output.",
5
+ "script": "connectors/adapters/antigravity/hooks/overlord-pre-invocation.sh",
6
+ "stdin": {
7
+ "hookEventName": "PreInvocation",
8
+ "conversationId": "ec33ebf9-0cba-4100-8142-c61503f6c587",
9
+ "workspacePaths": ["/workspace/project"],
10
+ "cwd": "/workspace/project",
11
+ "invocationNum": 2,
12
+ "initialNumSteps": 11,
13
+ "lastUserInput": "Also update the changelog",
14
+ "modelName": "gemini-3.6-flash-medium"
15
+ },
16
+ "env": {
17
+ "MISSION_ID": null,
18
+ "OVERLORD_MISSION_ID": null,
19
+ "OVERLORD_OBJECTIVE_ID": null,
20
+ "OVERLORD_SESSION_CHANNEL_ID": null
21
+ },
22
+ "expect": {
23
+ "exitCode": 0,
24
+ "stdout": "",
25
+ "stderr": "",
26
+ "cliInvocations": [],
27
+ "sandboxWrites": []
28
+ }
29
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "A launched Antigravity session's Stop hook asks `ovld protocol hook-event --hook-output` for the delivery reminder and passes its exact Antigravity answer through: `decision: continue` with the reason keeps the agent working so it can deliver. Without a session channel the inbox is not consulted.",
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": null
23
+ },
24
+ "spy": {
25
+ "stdout": "{\"decision\":\"continue\",\"reason\":\"[Overlord] Objective coo:825.abcd is still executing and has not been delivered.\"}\n"
26
+ },
27
+ "expect": {
28
+ "exitCode": 0,
29
+ "stdout": "{\"decision\":\"continue\",\"reason\":\"[Overlord] Objective coo:825.abcd is still executing and has not been delivered.\"}\n",
30
+ "stderr": "",
31
+ "cliInvocations": [
32
+ "protocol hook-event --agent antigravity --hook-type Stop --hook-output --payload-file -"
33
+ ],
34
+ "stdinForwarded": true,
35
+ "sandboxWrites": []
36
+ }
37
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "fixtureVersion": 1,
3
+ "kind": "script-io",
4
+ "description": "When `ovld` fails, the Antigravity Stop hook still exits 0 and answers `{}`, which lets the stop happen. No failure path can keep the agent running.",
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": null
23
+ },
24
+ "spy": {
25
+ "exitCode": 1,
26
+ "stdout": "not json"
27
+ },
28
+ "expect": {
29
+ "exitCode": 0,
30
+ "stdout": "{}\n",
31
+ "stderr": "",
32
+ "cliInvocations": [
33
+ "protocol hook-event --agent antigravity --hook-type Stop --hook-output --payload-file -"
34
+ ],
35
+ "sandboxWrites": []
36
+ }
37
+ }