Skip to content

Commit 85694c1

Browse files
Merge pull request #93 from open-coder-ai/w34/agentseam-d1-golden-fixtures
test: golden wire fixtures + replay test (D1)
2 parents 1bd4924 + 04f1d2b commit 85694c1

14 files changed

Lines changed: 5506 additions & 0 deletions
Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
{
2+
"agent": "antigravity",
3+
"events": {
4+
"post_tool": {
5+
"outcomes": {
6+
"allow": {
7+
"exit": 0,
8+
"stdout": "{}"
9+
},
10+
"ask": {
11+
"exit": 0,
12+
"stdout": "{}"
13+
},
14+
"deny": {
15+
"exit": 0,
16+
"stdout": "{}"
17+
},
18+
"rewrite": {
19+
"exit": 0,
20+
"stdout": "{}"
21+
},
22+
"rewrite-without-input": {
23+
"exit": 0,
24+
"stdout": "{}"
25+
},
26+
"vouch": {
27+
"exit": 0,
28+
"stdout": "{}"
29+
}
30+
},
31+
"payload": {
32+
"conversationId": "example",
33+
"error": "",
34+
"modelName": "gemini-3.6-flash-medium",
35+
"stepIdx": 5,
36+
"toolCall": {
37+
"args": {
38+
"CommandLine": "npm test"
39+
},
40+
"name": "run_command"
41+
},
42+
"workspacePaths": [
43+
"/repo"
44+
]
45+
}
46+
},
47+
"pre_tool": {
48+
"outcomes": {
49+
"allow": {
50+
"exit": 0,
51+
"stdout": "{\"decision\": \"allow\"}"
52+
},
53+
"ask": {
54+
"exit": 0,
55+
"stdout": "{\"decision\": \"ask\", \"reason\": \"confirm\"}"
56+
},
57+
"deny": {
58+
"exit": 0,
59+
"stdout": "{\"decision\": \"deny\", \"reason\": \"policy\"}"
60+
},
61+
"rewrite": {
62+
"exit": 0,
63+
"stdout": "{\"decision\": \"deny\", \"reason\": \"redacted (Antigravity cannot modify a tool call)\"}"
64+
},
65+
"rewrite-without-input": {
66+
"exit": 0,
67+
"stdout": "{\"decision\": \"deny\", \"reason\": \"needs change (Antigravity cannot modify a tool call)\"}"
68+
},
69+
"vouch": {
70+
"exit": 0,
71+
"stdout": "{\"decision\": \"allow\"}"
72+
}
73+
},
74+
"payload": {
75+
"conversationId": "example",
76+
"modelName": "gemini-3.6-flash-medium",
77+
"stepIdx": 3,
78+
"toolCall": {
79+
"args": {
80+
"CodeContent": "AWS_SECRET_ACCESS_KEY=EXAMPLE-PLACEHOLDER-NOT-A-KEY",
81+
"TargetFile": "AGENTS.md"
82+
},
83+
"name": "write_to_file"
84+
},
85+
"workspacePaths": [
86+
"/repo"
87+
]
88+
}
89+
},
90+
"stop": {
91+
"outcomes": {
92+
"allow": {
93+
"exit": 0,
94+
"stdout": "{\"decision\": \"stop\"}"
95+
},
96+
"ask": {
97+
"exit": 0,
98+
"stdout": "{\"decision\": \"continue\", \"reason\": \"confirm (Antigravity cannot prompt at Stop)\"}"
99+
},
100+
"deny": {
101+
"exit": 0,
102+
"stdout": "{\"decision\": \"continue\", \"reason\": \"policy\"}"
103+
},
104+
"rewrite": {
105+
"exit": 0,
106+
"stdout": "{\"decision\": \"continue\", \"reason\": \"redacted (Antigravity cannot modify a tool call)\"}"
107+
},
108+
"rewrite-without-input": {
109+
"exit": 0,
110+
"stdout": "{\"decision\": \"continue\", \"reason\": \"needs change (Antigravity cannot modify a tool call)\"}"
111+
},
112+
"vouch": {
113+
"exit": 0,
114+
"stdout": "{\"decision\": \"stop\"}"
115+
}
116+
},
117+
"payload": {
118+
"conversationId": "example",
119+
"error": "",
120+
"executionNum": 1,
121+
"fullyIdle": true,
122+
"modelName": "gemini-3.6-flash-medium",
123+
"terminationReason": "model_stop",
124+
"workspacePaths": [
125+
"/repo"
126+
]
127+
}
128+
}
129+
},
130+
"hook_config": {
131+
"command": "python3 guard.py",
132+
"events": [
133+
"post_tool",
134+
"pre_tool",
135+
"stop"
136+
],
137+
"no_matcher": {
138+
"agentseam": {
139+
"PostToolUse": [
140+
{
141+
"hooks": [
142+
{
143+
"command": "python3 guard.py",
144+
"type": "command"
145+
}
146+
]
147+
}
148+
],
149+
"PreToolUse": [
150+
{
151+
"hooks": [
152+
{
153+
"command": "python3 guard.py",
154+
"type": "command"
155+
}
156+
]
157+
}
158+
],
159+
"Stop": [
160+
{
161+
"hooks": [
162+
{
163+
"command": "python3 guard.py",
164+
"type": "command"
165+
}
166+
]
167+
}
168+
]
169+
}
170+
},
171+
"with_matcher": {
172+
"config": {
173+
"agentseam": {
174+
"PostToolUse": [
175+
{
176+
"hooks": [
177+
{
178+
"command": "python3 guard.py",
179+
"type": "command"
180+
}
181+
],
182+
"matcher": "Bash"
183+
}
184+
],
185+
"PreToolUse": [
186+
{
187+
"hooks": [
188+
{
189+
"command": "python3 guard.py",
190+
"type": "command"
191+
}
192+
],
193+
"matcher": "Bash"
194+
}
195+
],
196+
"Stop": [
197+
{
198+
"hooks": [
199+
{
200+
"command": "python3 guard.py",
201+
"type": "command"
202+
}
203+
],
204+
"matcher": "Bash"
205+
}
206+
]
207+
}
208+
},
209+
"matcher": "Bash"
210+
}
211+
}
212+
}

0 commit comments

Comments
 (0)