agents-can-communicate 0.2.0 → 0.3.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 +17 -7
- package/bin/acc-bootstrap.mjs +56 -0
- package/bin/acc-claude-channel.mjs +177 -0
- package/bin/acc.mjs +7 -2
- package/docs/ADAPTER_AUTHORING.md +34 -2
- package/docs/CAPABILITIES.md +25 -10
- package/docs/CLI.md +10 -3
- package/docs/CONFIGURATION.md +4 -0
- package/docs/HOW_IT_WORKS.md +277 -0
- package/docs/PROTOCOL.md +1 -1
- package/docs/RELEASING.md +7 -1
- package/docs/TROUBLESHOOTING.md +7 -1
- package/docs/index.md +3 -1
- package/node_modules/@agents-can-communicate/adapter-claude-code/certification.json +196 -46
- package/node_modules/@agents-can-communicate/adapter-claude-code/fixtures/certification-provenance.json +237 -45
- package/node_modules/@agents-can-communicate/adapter-claude-code/fixtures/delivery/claude-code-2.1.252.json +3 -1
- package/node_modules/@agents-can-communicate/adapter-claude-code/fixtures/delivery/claude-code-2.1.258.json +23 -0
- package/node_modules/@agents-can-communicate/adapter-claude-code/fixtures/delivery/claude-code-2.1.260.json +23 -0
- package/node_modules/@agents-can-communicate/adapter-claude-code/package.json +5 -2
- package/node_modules/@agents-can-communicate/adapter-claude-code/plugin/.mcp.json +8 -0
- package/node_modules/@agents-can-communicate/adapter-claude-code/plugin/skills/acc/SKILL.md +4 -2
- package/node_modules/@agents-can-communicate/adapter-claude-code/src/adapter.mjs +34 -2
- package/node_modules/@agents-can-communicate/adapter-claude-code/src/channel.mjs +377 -0
- package/node_modules/@agents-can-communicate/adapter-claude-code/src/install.mjs +27 -7
- package/node_modules/@agents-can-communicate/adapter-claude-code/src/native-delivery.mjs +229 -0
- package/node_modules/@agents-can-communicate/adapter-codex/certification.json +38 -5
- package/node_modules/@agents-can-communicate/adapter-codex/fixtures/certification-provenance.json +171 -38
- package/node_modules/@agents-can-communicate/adapter-codex/fixtures/delivery/codex-cli-0.152.0.json +3 -1
- package/node_modules/@agents-can-communicate/adapter-codex/fixtures/delivery/codex-cli-0.152.1-remote-workspace.json +25 -0
- package/node_modules/@agents-can-communicate/adapter-codex/package.json +4 -2
- package/node_modules/@agents-can-communicate/adapter-codex/plugin/skills/acc/SKILL.md +4 -2
- package/node_modules/@agents-can-communicate/adapter-codex/src/adapter.mjs +42 -7
- package/node_modules/@agents-can-communicate/adapter-codex/src/app-server-client.mjs +121 -0
- package/node_modules/@agents-can-communicate/adapter-codex/src/native-delivery.mjs +151 -0
- package/node_modules/@agents-can-communicate/adapter-codex/src/ws-json-rpc.mjs +192 -0
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/certification.json +44 -28
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/extension/gemini-extension.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/extension/skills/acc/SKILL.md +4 -2
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/fixtures/{BeforeAgent.json → BeforeAgent-0.57.0.json} +2 -2
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/fixtures/{BeforeTool.json → BeforeTool-0.57.0.json} +2 -2
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/fixtures/{BeforeTool-shell.json → BeforeTool-shell-0.57.0.json} +2 -2
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/fixtures/{SessionEnd.json → SessionEnd-0.57.0.json} +2 -2
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/fixtures/{SessionStart.json → SessionStart-0.57.0.json} +2 -2
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/fixtures/certification-provenance.json +266 -39
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/package.json +6 -6
- package/node_modules/@agents-can-communicate/adapter-gemini-cli/src/adapter.mjs +25 -11
- package/node_modules/@agents-can-communicate/adapter-grok/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-grok/plugin/skills/acc/SKILL.md +4 -2
- package/node_modules/@agents-can-communicate/adapter-grok/src/adapter.mjs +3 -1
- package/node_modules/@agents-can-communicate/adapter-kimi/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-kimi/plugin/skills/acc/SKILL.md +4 -2
- package/node_modules/@agents-can-communicate/adapter-sdk/package.json +1 -1
- package/node_modules/@agents-can-communicate/adapter-sdk/src/capabilities.mjs +18 -0
- package/node_modules/@agents-can-communicate/adapter-sdk/src/hook-shim.mjs +2 -0
- package/node_modules/@agents-can-communicate/adapter-sdk/src/index.mjs +6 -2
- package/node_modules/@agents-can-communicate/adapter-sdk/src/native-activation.mjs +76 -0
- package/node_modules/@agents-can-communicate/adapter-sdk/src/native-delivery.mjs +202 -0
- package/node_modules/@agents-can-communicate/adapter-sdk/src/native-vocabulary.mjs +101 -0
- package/node_modules/@agents-can-communicate/adapter-sdk/src/session-binding.mjs +17 -2
- package/node_modules/@agents-can-communicate/cli/package.json +1 -1
- package/node_modules/@agents-can-communicate/cli/src/args.mjs +2 -2
- package/node_modules/@agents-can-communicate/cli/src/doctor-command.mjs +67 -5
- package/node_modules/@agents-can-communicate/cli/src/install-command.mjs +103 -11
- package/node_modules/@agents-can-communicate/core/package.json +1 -1
- package/node_modules/@agents-can-communicate/core/src/delivery-bindings.mjs +52 -2
- package/node_modules/@agents-can-communicate/core/src/service.mjs +10 -0
- package/node_modules/@agents-can-communicate/delivery-router/package.json +1 -1
- package/node_modules/@agents-can-communicate/delivery-router/src/router.mjs +26 -12
- package/node_modules/@agents-can-communicate/hook-runner/package.json +4 -2
- package/node_modules/@agents-can-communicate/hook-runner/src/native-binding.mjs +90 -0
- package/node_modules/@agents-can-communicate/hook-runner/src/runner.mjs +123 -90
- package/node_modules/@agents-can-communicate/installer/package.json +1 -1
- package/node_modules/@agents-can-communicate/installer/src/apply.mjs +48 -4
- package/node_modules/@agents-can-communicate/installer/src/bootstrap-runtime.mjs +144 -0
- package/node_modules/@agents-can-communicate/installer/src/detect.mjs +72 -3
- package/node_modules/@agents-can-communicate/installer/src/index.mjs +7 -0
- package/node_modules/@agents-can-communicate/installer/src/native-activation.mjs +161 -0
- package/node_modules/@agents-can-communicate/installer/src/ownership.mjs +6 -2
- package/node_modules/@agents-can-communicate/installer/src/plan.mjs +41 -6
- package/node_modules/@agents-can-communicate/installer/src/shell-bootstrap.mjs +210 -0
- package/node_modules/@agents-can-communicate/mcp-server/package.json +1 -1
- package/node_modules/@agents-can-communicate/protocol/package.json +1 -1
- package/node_modules/@agents-can-communicate/protocol/src/fields.mjs +17 -0
- package/node_modules/@agents-can-communicate/protocol/src/schema.mjs +18 -3
- package/node_modules/@agents-can-communicate/storage-filesystem/package.json +1 -1
- package/package.json +2 -1
|
@@ -2,75 +2,267 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"captures": [
|
|
4
4
|
{
|
|
5
|
-
"id": "session-start",
|
|
6
|
-
"
|
|
5
|
+
"id": "session-start",
|
|
6
|
+
"client": "claude-code",
|
|
7
|
+
"version": "2.1.233",
|
|
8
|
+
"platform": "darwin-arm64",
|
|
9
|
+
"observedAt": "2026-08-16",
|
|
7
10
|
"fixture": "fixtures/SessionStart.json",
|
|
8
11
|
"sha256": "f63baff4ba14b1490c1d66ccae1b5e355ca8185128e82639a22313c3c3a06fdc",
|
|
9
|
-
"event": "SessionStart",
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
12
|
+
"event": "SessionStart",
|
|
13
|
+
"tool": null,
|
|
14
|
+
"claims": [
|
|
15
|
+
{
|
|
16
|
+
"capability": "lifecycle.sessionStart",
|
|
17
|
+
"result": "pass",
|
|
18
|
+
"outcome": {
|
|
19
|
+
"kind": "event-observed",
|
|
20
|
+
"idle": "fires when a session starts",
|
|
21
|
+
"busy": "fires before the first model turn",
|
|
22
|
+
"authority": "advisory",
|
|
23
|
+
"limitations": [
|
|
24
|
+
"capture used a one-session --plugin-dir"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
14
29
|
},
|
|
15
30
|
{
|
|
16
|
-
"id": "session-end",
|
|
17
|
-
"
|
|
31
|
+
"id": "session-end",
|
|
32
|
+
"client": "claude-code",
|
|
33
|
+
"version": "2.1.233",
|
|
34
|
+
"platform": "darwin-arm64",
|
|
35
|
+
"observedAt": "2026-08-16",
|
|
18
36
|
"fixture": "fixtures/SessionEnd.json",
|
|
19
37
|
"sha256": "165b89ab0c8398580c59c8a95febfeae6c833954767993f559b1d13867fc5ec9",
|
|
20
|
-
"event": "SessionEnd",
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
38
|
+
"event": "SessionEnd",
|
|
39
|
+
"tool": null,
|
|
40
|
+
"claims": [
|
|
41
|
+
{
|
|
42
|
+
"capability": "lifecycle.sessionEnd",
|
|
43
|
+
"result": "pass",
|
|
44
|
+
"outcome": {
|
|
45
|
+
"kind": "event-observed",
|
|
46
|
+
"idle": "fires when a session exits",
|
|
47
|
+
"busy": "does not run until the session exits",
|
|
48
|
+
"authority": "advisory",
|
|
49
|
+
"limitations": [
|
|
50
|
+
"cannot write a handoff after the model has stopped"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
25
55
|
},
|
|
26
56
|
{
|
|
27
|
-
"id": "user-prompt-submit",
|
|
28
|
-
"
|
|
57
|
+
"id": "user-prompt-submit",
|
|
58
|
+
"client": "claude-code",
|
|
59
|
+
"version": "2.1.233",
|
|
60
|
+
"platform": "darwin-arm64",
|
|
61
|
+
"observedAt": "2026-08-16",
|
|
29
62
|
"fixture": "fixtures/UserPromptSubmit.json",
|
|
30
63
|
"sha256": "8d9edbc92de1b3c1601cfb36ddc341e45d1299df1803f0d5756890ecfbfd4a04",
|
|
31
|
-
"event": "UserPromptSubmit",
|
|
64
|
+
"event": "UserPromptSubmit",
|
|
65
|
+
"tool": null,
|
|
32
66
|
"claims": [
|
|
33
|
-
{
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"busy": "does not interrupt an in-progress turn",
|
|
40
|
-
"
|
|
67
|
+
{
|
|
68
|
+
"capability": "context.beforeTurnInjection",
|
|
69
|
+
"result": "pass",
|
|
70
|
+
"outcome": {
|
|
71
|
+
"kind": "model-context-observed",
|
|
72
|
+
"idle": "waits for the next user prompt",
|
|
73
|
+
"busy": "does not interrupt an in-progress turn",
|
|
74
|
+
"authority": "context",
|
|
75
|
+
"limitations": [
|
|
76
|
+
"requires the hookSpecificOutput additionalContext envelope"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"capability": "delivery.nextTurn",
|
|
82
|
+
"result": "pass",
|
|
83
|
+
"outcome": {
|
|
84
|
+
"kind": "model-context-observed",
|
|
85
|
+
"idle": "offers complete peer messages at the next prompt",
|
|
86
|
+
"busy": "does not interrupt an in-progress turn",
|
|
87
|
+
"authority": "context",
|
|
88
|
+
"limitations": [
|
|
89
|
+
"delivery requires the next normal user turn"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
41
93
|
]
|
|
42
94
|
},
|
|
43
95
|
{
|
|
44
|
-
"id": "pre-tool-use-edit",
|
|
45
|
-
"
|
|
96
|
+
"id": "pre-tool-use-edit",
|
|
97
|
+
"client": "claude-code",
|
|
98
|
+
"version": "2.1.233",
|
|
99
|
+
"platform": "darwin-arm64",
|
|
100
|
+
"observedAt": "2026-08-16",
|
|
46
101
|
"fixture": "fixtures/PreToolUse-Edit.json",
|
|
47
102
|
"sha256": "8768062d89190644cffb137572dfd0517473b83717a1e1b5c23aaa98e1501b36",
|
|
48
|
-
"event": "PreToolUse",
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
103
|
+
"event": "PreToolUse",
|
|
104
|
+
"tool": "Edit",
|
|
105
|
+
"claims": [
|
|
106
|
+
{
|
|
107
|
+
"capability": "guards.beforeWrite",
|
|
108
|
+
"result": "pass",
|
|
109
|
+
"outcome": {
|
|
110
|
+
"kind": "tool-denied-before-mutation",
|
|
111
|
+
"idle": "no write exists to guard",
|
|
112
|
+
"busy": "denies a file edit before disk mutation",
|
|
113
|
+
"authority": "blocking",
|
|
114
|
+
"limitations": [
|
|
115
|
+
"runtime writes are outside the hook boundary"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
53
120
|
},
|
|
54
121
|
{
|
|
55
|
-
"id": "pre-tool-use-bash",
|
|
56
|
-
"
|
|
122
|
+
"id": "pre-tool-use-bash",
|
|
123
|
+
"client": "claude-code",
|
|
124
|
+
"version": "2.1.233",
|
|
125
|
+
"platform": "darwin-arm64",
|
|
126
|
+
"observedAt": "2026-08-16",
|
|
57
127
|
"fixture": "fixtures/PreToolUse.json",
|
|
58
128
|
"sha256": "fecdf3b8183e3c95da1535ca09bac4f571986c0e8c54b442b6423d5382d4a574",
|
|
59
|
-
"event": "PreToolUse",
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
129
|
+
"event": "PreToolUse",
|
|
130
|
+
"tool": "Bash",
|
|
131
|
+
"claims": [
|
|
132
|
+
{
|
|
133
|
+
"capability": "guards.beforeShell",
|
|
134
|
+
"result": "pass",
|
|
135
|
+
"outcome": {
|
|
136
|
+
"kind": "tool-denied-before-execution",
|
|
137
|
+
"idle": "no shell call exists to guard",
|
|
138
|
+
"busy": "denies a Bash call before execution",
|
|
139
|
+
"authority": "blocking",
|
|
140
|
+
"limitations": [
|
|
141
|
+
"only tool calls reaching PreToolUse are guarded"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
64
146
|
},
|
|
65
147
|
{
|
|
66
|
-
"id": "native-delivery-2-1-252",
|
|
67
|
-
"
|
|
148
|
+
"id": "native-delivery-2-1-252",
|
|
149
|
+
"client": "claude-code",
|
|
150
|
+
"version": "2.1.252",
|
|
151
|
+
"platform": "darwin-arm64",
|
|
152
|
+
"observedAt": "2026-09-01T16:17:06Z",
|
|
68
153
|
"fixture": "fixtures/delivery/claude-code-2.1.252.json",
|
|
69
|
-
"sha256": "
|
|
70
|
-
"event": null,
|
|
154
|
+
"sha256": "04ca2d59abc4d397167ba05a7dc6f9ec28f71158f340da27aa847109ef601617",
|
|
155
|
+
"event": null,
|
|
156
|
+
"tool": null,
|
|
157
|
+
"claims": [
|
|
158
|
+
{
|
|
159
|
+
"capability": "delivery.livePush",
|
|
160
|
+
"result": "fail",
|
|
161
|
+
"outcome": {
|
|
162
|
+
"kind": "native-capture-failed"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"capability": "delivery.replyRoute",
|
|
167
|
+
"result": "fail",
|
|
168
|
+
"outcome": {
|
|
169
|
+
"kind": "native-capture-failed"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "native-delivery-2-1-258",
|
|
176
|
+
"client": "claude-code",
|
|
177
|
+
"version": "2.1.258",
|
|
178
|
+
"platform": "darwin-arm64",
|
|
179
|
+
"observedAt": "2026-09-02T21:20:11.676Z",
|
|
180
|
+
"fixture": "fixtures/delivery/claude-code-2.1.258.json",
|
|
181
|
+
"sha256": "c68e84989c02fa0657d0a8669a774ab1e301088d8c7856346cc9739d0fbad228",
|
|
182
|
+
"event": null,
|
|
183
|
+
"tool": null,
|
|
184
|
+
"claims": [
|
|
185
|
+
{
|
|
186
|
+
"capability": "delivery.livePush",
|
|
187
|
+
"result": "pass",
|
|
188
|
+
"outcome": {
|
|
189
|
+
"kind": "native-delivery-observed",
|
|
190
|
+
"idle": "offered",
|
|
191
|
+
"busy": "queued_after_turn",
|
|
192
|
+
"authority": "experimental",
|
|
193
|
+
"limitations": [
|
|
194
|
+
"captured on darwin-arm64 only; Linux and Windows remain uncaptured",
|
|
195
|
+
"the vendor development-channel warning stayed visible and was accepted by the operator by hand",
|
|
196
|
+
"the plugin .mcp.json must live in the marketplace source copy; the plugin cache copy alone is not read",
|
|
197
|
+
"acc_reply routed through the spike's explicit tool call; the spike created no durable ACC answer record",
|
|
198
|
+
"presentation after the busy turn was observed by the operator; the channel log records the write at 21:18:45Z and the explicit reply at 21:19:21Z"
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"capability": "delivery.replyRoute",
|
|
204
|
+
"result": "pass",
|
|
205
|
+
"outcome": {
|
|
206
|
+
"kind": "native-delivery-observed",
|
|
207
|
+
"idle": "offered",
|
|
208
|
+
"busy": "queued_after_turn",
|
|
209
|
+
"authority": "experimental",
|
|
210
|
+
"limitations": [
|
|
211
|
+
"captured on darwin-arm64 only; Linux and Windows remain uncaptured",
|
|
212
|
+
"the vendor development-channel warning stayed visible and was accepted by the operator by hand",
|
|
213
|
+
"the plugin .mcp.json must live in the marketplace source copy; the plugin cache copy alone is not read",
|
|
214
|
+
"acc_reply routed through the spike's explicit tool call; the spike created no durable ACC answer record",
|
|
215
|
+
"presentation after the busy turn was observed by the operator; the channel log records the write at 21:18:45Z and the explicit reply at 21:19:21Z"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "native-delivery-2-1-260",
|
|
223
|
+
"client": "claude-code",
|
|
224
|
+
"version": "2.1.260",
|
|
225
|
+
"platform": "darwin-arm64",
|
|
226
|
+
"observedAt": "2026-09-04T03:41:29.688Z",
|
|
227
|
+
"fixture": "fixtures/delivery/claude-code-2.1.260.json",
|
|
228
|
+
"sha256": "7513d13b6dc1c6b485d899550f43ae3577cd99fca108f06691f7ad07daf06f03",
|
|
229
|
+
"event": null,
|
|
230
|
+
"tool": null,
|
|
71
231
|
"claims": [
|
|
72
|
-
{
|
|
73
|
-
|
|
232
|
+
{
|
|
233
|
+
"capability": "delivery.livePush",
|
|
234
|
+
"result": "pass",
|
|
235
|
+
"outcome": {
|
|
236
|
+
"kind": "native-delivery-observed",
|
|
237
|
+
"idle": "offered",
|
|
238
|
+
"busy": "queued_after_turn",
|
|
239
|
+
"authority": "experimental",
|
|
240
|
+
"limitations": [
|
|
241
|
+
"captured on darwin-arm64 only; Linux and Windows remain uncaptured",
|
|
242
|
+
"the vendor development-channel warning stayed visible and was accepted by the operator by hand",
|
|
243
|
+
"two ordinary sessions in one workspace, each bound to its own client process; the earlier 2.1.259 attempt is what exposed the channel binding another session identity, and this run is the verification of that fix",
|
|
244
|
+
"duplicate was observed as one logical message id and one native offer: the repeated send took the durable path, so the channel was never asked to notify twice, and exactly one answer was recorded",
|
|
245
|
+
"busy was observed by the operator: the running turn completed before the channel presented the message, and the session named that order in its own answer"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"capability": "delivery.replyRoute",
|
|
251
|
+
"result": "pass",
|
|
252
|
+
"outcome": {
|
|
253
|
+
"kind": "native-delivery-observed",
|
|
254
|
+
"idle": "offered",
|
|
255
|
+
"busy": "queued_after_turn",
|
|
256
|
+
"authority": "experimental",
|
|
257
|
+
"limitations": [
|
|
258
|
+
"captured on darwin-arm64 only; Linux and Windows remain uncaptured",
|
|
259
|
+
"the vendor development-channel warning stayed visible and was accepted by the operator by hand",
|
|
260
|
+
"two ordinary sessions in one workspace, each bound to its own client process; the earlier 2.1.259 attempt is what exposed the channel binding another session identity, and this run is the verification of that fix",
|
|
261
|
+
"duplicate was observed as one logical message id and one native offer: the repeated send took the durable path, so the channel was never asked to notify twice, and exactly one answer was recorded",
|
|
262
|
+
"busy was observed by the operator: the running turn completed before the channel presented the message, and the session named that order in its own answer"
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
}
|
|
74
266
|
]
|
|
75
267
|
}
|
|
76
268
|
]
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
"version": "2.1.252",
|
|
4
4
|
"platform": "darwin-arm64",
|
|
5
5
|
"observedAt": "2026-09-01T16:17:06Z",
|
|
6
|
-
"capability": "
|
|
6
|
+
"capability": "native_delivery",
|
|
7
7
|
"result": "fail",
|
|
8
8
|
"fixture": "claude-code-2.1.252-channel",
|
|
9
|
+
"launchMode": "manual-vendor-invocation",
|
|
10
|
+
"protocolContract": "claude-code-channel-mcp-v1",
|
|
9
11
|
"idle": "unobserved",
|
|
10
12
|
"busy": "unobserved",
|
|
11
13
|
"reply": "unobserved",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"client": "claude-code",
|
|
3
|
+
"version": "2.1.258",
|
|
4
|
+
"platform": "darwin-arm64",
|
|
5
|
+
"observedAt": "2026-09-02T21:20:11.676Z",
|
|
6
|
+
"capability": "native_delivery",
|
|
7
|
+
"result": "pass",
|
|
8
|
+
"fixture": "claude-code-2.1.258-channel",
|
|
9
|
+
"launchMode": "ordinary-command-with-install-time-bootstrap",
|
|
10
|
+
"protocolContract": "claude-code-channel-mcp-v1",
|
|
11
|
+
"idle": "offered",
|
|
12
|
+
"busy": "queued_after_turn",
|
|
13
|
+
"reply": "routed",
|
|
14
|
+
"duplicate": "same_message_id",
|
|
15
|
+
"fallback": "queued",
|
|
16
|
+
"limitations": [
|
|
17
|
+
"captured on darwin-arm64 only; Linux and Windows remain uncaptured",
|
|
18
|
+
"the vendor development-channel warning stayed visible and was accepted by the operator by hand",
|
|
19
|
+
"the plugin .mcp.json must live in the marketplace source copy; the plugin cache copy alone is not read",
|
|
20
|
+
"acc_reply routed through the spike's explicit tool call; the spike created no durable ACC answer record",
|
|
21
|
+
"presentation after the busy turn was observed by the operator; the channel log records the write at 21:18:45Z and the explicit reply at 21:19:21Z"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"client": "claude-code",
|
|
3
|
+
"version": "2.1.260",
|
|
4
|
+
"platform": "darwin-arm64",
|
|
5
|
+
"observedAt": "2026-09-04T03:41:29.688Z",
|
|
6
|
+
"capability": "native_delivery",
|
|
7
|
+
"result": "pass",
|
|
8
|
+
"fixture": "claude-code-2.1.260-channel",
|
|
9
|
+
"launchMode": "ordinary-command-with-install-time-bootstrap",
|
|
10
|
+
"protocolContract": "claude-code-channel-mcp-v1",
|
|
11
|
+
"idle": "offered",
|
|
12
|
+
"busy": "queued_after_turn",
|
|
13
|
+
"reply": "routed",
|
|
14
|
+
"duplicate": "same_message_id",
|
|
15
|
+
"fallback": "queued",
|
|
16
|
+
"limitations": [
|
|
17
|
+
"captured on darwin-arm64 only; Linux and Windows remain uncaptured",
|
|
18
|
+
"the vendor development-channel warning stayed visible and was accepted by the operator by hand",
|
|
19
|
+
"two ordinary sessions in one workspace, each bound to its own client process; the earlier 2.1.259 attempt is what exposed the channel binding another session identity, and this run is the verification of that fix",
|
|
20
|
+
"duplicate was observed as one logical message id and one native offer: the repeated send took the durable path, so the channel was never asked to notify twice, and exactly one answer was recorded",
|
|
21
|
+
"busy was observed by the operator: the running turn completed before the channel presented the message, and the session named that order in its own answer"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agents-can-communicate/adapter-claude-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".": "./src/adapter.mjs"
|
|
7
|
+
".": "./src/adapter.mjs",
|
|
8
|
+
"./channel": "./src/channel.mjs"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"certification.json",
|
|
@@ -15,6 +16,8 @@
|
|
|
15
16
|
"fixtures/PreToolUse-Edit.json",
|
|
16
17
|
"fixtures/PreToolUse.json",
|
|
17
18
|
"fixtures/delivery/claude-code-2.1.252.json",
|
|
19
|
+
"fixtures/delivery/claude-code-2.1.258.json",
|
|
20
|
+
"fixtures/delivery/claude-code-2.1.260.json",
|
|
18
21
|
"src/",
|
|
19
22
|
"plugin/"
|
|
20
23
|
]
|
|
@@ -70,8 +70,10 @@ Participant names come from `{{ACC}} status --json`. A request is not an order.
|
|
|
70
70
|
## Treat delivery as evidence
|
|
71
71
|
|
|
72
72
|
Every send records durably before delivery is attempted. A queued diagnostic means
|
|
73
|
-
the message is safe in the recipient's inbox.
|
|
74
|
-
|
|
73
|
+
the message is safe in the recipient's inbox. It may then be offered at the next
|
|
74
|
+
normal turn, or, on a client with native delivery enabled, pushed into the running
|
|
75
|
+
session. Delivery is behaviour, not a promise: a queued message is safe; an offered
|
|
76
|
+
message reached a transport but is not proof the model read it.
|
|
75
77
|
|
|
76
78
|
`offered` is not read, `retrieved` is not model attention, and a reply resolves
|
|
77
79
|
the communication obligation rather than proving the requested action is complete.
|
|
@@ -2,10 +2,14 @@ import { defineAdapter, projectContext, projectContextResult }
|
|
|
2
2
|
from "@agents-can-communicate/adapter-sdk";
|
|
3
3
|
import certification from "../certification.json" with { type: "json" };
|
|
4
4
|
|
|
5
|
+
import { PROTOCOL_CONTRACT } from "./channel.mjs";
|
|
5
6
|
import { denyOutcome, injectOutcome, normalizeClaudeHook } from "./hooks.mjs";
|
|
6
7
|
import { planClaudeInstall, detectClaude, installClaudePlugin, uninstallClaudePlugin } from "./install.mjs";
|
|
8
|
+
import { bindNativeSession, offerMessage, planNativeActivation, probeNativeDelivery, routeReply }
|
|
9
|
+
from "./native-delivery.mjs";
|
|
7
10
|
|
|
8
11
|
export const CLAUDE_CODE_VERSION = "2.1.233";
|
|
12
|
+
export const CLAUDE_CHANNEL_MINIMUM = "2.1.258";
|
|
9
13
|
export const CLAUDE_DELIVERY_FALLBACK = Object.freeze({
|
|
10
14
|
diagnostic: "Claude Code native delivery is off: the 2.1.252 capture stopped at the "
|
|
11
15
|
+ "development-channel security warning before the ACC MCP child started; messages "
|
|
@@ -40,7 +44,28 @@ export function createClaudeCodeAdapter() {
|
|
|
40
44
|
context: { beforeTurnInjection: true },
|
|
41
45
|
// PreToolUse denied both a Write and a Bash call; neither ran.
|
|
42
46
|
guards: { beforeWrite: true, beforeShell: true },
|
|
43
|
-
|
|
47
|
+
// nextTurn is the certified 2.1.233 hook projection; livePush and
|
|
48
|
+
// replyRoute rest on the 2.1.258 Channel capture and the native contract
|
|
49
|
+
// below. effectiveCapabilities() still gates every row on an exact
|
|
50
|
+
// certified version; the native contract is the separate live rule.
|
|
51
|
+
delivery: { nextTurn: true, livePush: true, replyRoute: true },
|
|
52
|
+
},
|
|
53
|
+
// The first passing capture is the shipped minimum; the research lower
|
|
54
|
+
// bound (2.1.80) is documented but not admitted without its own capture.
|
|
55
|
+
//
|
|
56
|
+
// The 2.1.260 release capture is passing evidence beside this, deliberately
|
|
57
|
+
// not a second anchor: an anchor is the minimum's proof, one per platform,
|
|
58
|
+
// and this contract has no maximum precisely so a newer stable client is
|
|
59
|
+
// admitted by probe and a generation-bound handshake instead of by another
|
|
60
|
+
// anchor. That capture is what exercised the rule - every branch observed
|
|
61
|
+
// on 2.1.260 while the minimum stayed here. Two minor versions of drift,
|
|
62
|
+
// served without a capture at either of them, is the rule working.
|
|
63
|
+
nativeDelivery: {
|
|
64
|
+
minimumByPlatform: { "darwin-arm64": CLAUDE_CHANNEL_MINIMUM },
|
|
65
|
+
anchors: [{ platform: "darwin-arm64", version: CLAUDE_CHANNEL_MINIMUM,
|
|
66
|
+
protocolContract: PROTOCOL_CONTRACT }],
|
|
67
|
+
knownBad: [],
|
|
68
|
+
activationKinds: ["shell-bootstrap", "native-config"],
|
|
44
69
|
},
|
|
45
70
|
|
|
46
71
|
startSession: async () => ({ ok: true, changes: [], diagnostics: [] }),
|
|
@@ -50,7 +75,8 @@ export function createClaudeCodeAdapter() {
|
|
|
50
75
|
|
|
51
76
|
planInstall: context => planClaudeInstall(context),
|
|
52
77
|
detect: context => detectClaude(context),
|
|
53
|
-
install: context => installClaudePlugin(context
|
|
78
|
+
install: context => installClaudePlugin({ ...context,
|
|
79
|
+
livePolicy: context.livePolicy ?? "off" }),
|
|
54
80
|
uninstall: context => uninstallClaudePlugin(context),
|
|
55
81
|
|
|
56
82
|
doctor: async context => {
|
|
@@ -65,6 +91,12 @@ export function createClaudeCodeAdapter() {
|
|
|
65
91
|
] };
|
|
66
92
|
},
|
|
67
93
|
|
|
94
|
+
probeNativeDelivery,
|
|
95
|
+
planNativeActivation,
|
|
96
|
+
bindNativeSession,
|
|
97
|
+
offerMessage,
|
|
98
|
+
routeReply,
|
|
99
|
+
|
|
68
100
|
denyOutcome,
|
|
69
101
|
injectOutcome,
|
|
70
102
|
normalizeHook: payload => normalizeClaudeHook(payload),
|