Commit 89e7d18
v0.8.1 — per-agent chat author attribution for confirmations
@Petrus chose option 2 from the 'why are confirmations all from
@claudemb?' question: per-agent API key map + from_handle override
on POST /intent.
Changes:
- createIntent({fromHandle}) — new optional originator handle param,
passed through composeAnnouncers to the announcer.
- makeGroupmindAnnouncer({apiKey, apiKeys}) — apiKeys map of
'@handle' → API key. When fromHandle matches a key in the map,
the chat post is authored as that agent rather than the daemon
owner. Falls back to default apiKey on no match.
- POST /intent body — accepts from_handle field; forwarding daemons
(claudemm mini, Codex mini) include it so chat posts show the
originating agent.
- Daemon config: mcp.confirmations.api_keys = {'@CodexMB':'...', ...}
to enable cross-agent attribution.
When mini's daemon becomes the central registry (next step), the
daemon owner just configures api_keys with each forwarding agent's
GroupMind key and the chat headers become accurate.
Tests: 76/76 pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b3d0883 commit 89e7d18
3 files changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | | - | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
| |||
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
387 | | - | |
388 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
389 | 400 | | |
| 401 | + | |
| 402 | + | |
390 | 403 | | |
391 | 404 | | |
392 | 405 | | |
| |||
409 | 422 | | |
410 | 423 | | |
411 | 424 | | |
412 | | - | |
| 425 | + | |
413 | 426 | | |
414 | 427 | | |
415 | 428 | | |
| |||
0 commit comments