agent-embassy 1.8.2 → 1.9.2

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 (76) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +23 -3
  3. package/README.zh-CN.md +23 -3
  4. package/SECURITY.md +30 -6
  5. package/dist/src/gateway/cli-copy.en.d.ts +1 -1
  6. package/dist/src/gateway/cli-copy.en.js +8 -0
  7. package/dist/src/gateway/cli-copy.en.js.map +1 -1
  8. package/dist/src/gateway/cli-copy.zh-CN.d.ts +1 -1
  9. package/dist/src/gateway/cli-copy.zh-CN.js +8 -0
  10. package/dist/src/gateway/cli-copy.zh-CN.js.map +1 -1
  11. package/dist/src/gateway/cli.d.ts +8 -3
  12. package/dist/src/gateway/cli.js +191 -19
  13. package/dist/src/gateway/cli.js.map +1 -1
  14. package/dist/src/gateway/config.d.ts +2 -0
  15. package/dist/src/gateway/config.js +1 -1
  16. package/dist/src/gateway/config.js.map +1 -1
  17. package/dist/src/gateway/control.d.ts +79 -25
  18. package/dist/src/gateway/control.js +98 -18
  19. package/dist/src/gateway/control.js.map +1 -1
  20. package/dist/src/gateway/dashboard-copy.d.ts +1 -1
  21. package/dist/src/gateway/dashboard-copy.en.d.ts +2 -0
  22. package/dist/src/gateway/dashboard-copy.en.js +2 -0
  23. package/dist/src/gateway/dashboard-copy.en.js.map +1 -1
  24. package/dist/src/gateway/dashboard-copy.js +2 -0
  25. package/dist/src/gateway/dashboard-copy.js.map +1 -1
  26. package/dist/src/gateway/dashboard-copy.zh-CN.d.ts +2 -0
  27. package/dist/src/gateway/dashboard-copy.zh-CN.js +2 -0
  28. package/dist/src/gateway/dashboard-copy.zh-CN.js.map +1 -1
  29. package/dist/src/gateway/dashboard-model.d.ts +3 -0
  30. package/dist/src/gateway/dashboard-model.js +3 -0
  31. package/dist/src/gateway/dashboard-model.js.map +1 -1
  32. package/dist/src/gateway/federation-nodes.d.ts +18 -0
  33. package/dist/src/gateway/federation-nodes.js +142 -0
  34. package/dist/src/gateway/federation-nodes.js.map +1 -0
  35. package/dist/src/gateway/live-dashboard-app/app.js +5 -4
  36. package/dist/src/gateway/peer-client.d.ts +57 -0
  37. package/dist/src/gateway/peer-client.js +208 -0
  38. package/dist/src/gateway/peer-client.js.map +1 -0
  39. package/dist/src/gateway/peer-mailbox.d.ts +78 -0
  40. package/dist/src/gateway/peer-mailbox.js +168 -0
  41. package/dist/src/gateway/peer-mailbox.js.map +1 -0
  42. package/dist/src/gateway/peer-protocol.d.ts +107 -0
  43. package/dist/src/gateway/peer-protocol.js +72 -0
  44. package/dist/src/gateway/peer-protocol.js.map +1 -0
  45. package/dist/src/gateway/peer-stdio.d.ts +23 -0
  46. package/dist/src/gateway/peer-stdio.js +100 -0
  47. package/dist/src/gateway/peer-stdio.js.map +1 -0
  48. package/dist/src/gateway/provenance-envelope.js +6 -1
  49. package/dist/src/gateway/provenance-envelope.js.map +1 -1
  50. package/dist/src/gateway/providers.d.ts +5 -2
  51. package/dist/src/gateway/providers.js +10 -7
  52. package/dist/src/gateway/providers.js.map +1 -1
  53. package/dist/src/gateway/server.d.ts +4 -1
  54. package/dist/src/gateway/server.js +21 -8
  55. package/dist/src/gateway/server.js.map +1 -1
  56. package/dist/src/gateway/service.d.ts +19 -0
  57. package/dist/src/gateway/service.js +437 -37
  58. package/dist/src/gateway/service.js.map +1 -1
  59. package/dist/src/gateway/state-v2-to-v3.js +1 -0
  60. package/dist/src/gateway/state-v2-to-v3.js.map +1 -1
  61. package/dist/src/gateway/store.d.ts +9 -1
  62. package/dist/src/gateway/store.js +183 -43
  63. package/dist/src/gateway/store.js.map +1 -1
  64. package/dist/src/gateway/types.d.ts +7 -6
  65. package/dist/src/gateway/types.js +5 -10
  66. package/dist/src/gateway/types.js.map +1 -1
  67. package/docs/CONFIGURATION.md +23 -8
  68. package/docs/CONFIGURATION.zh-CN.md +12 -4
  69. package/docs/DASHBOARD.md +2 -2
  70. package/docs/DASHBOARD.zh-CN.md +2 -2
  71. package/docs/DELIVERY.md +3 -1
  72. package/docs/DELIVERY.zh-CN.md +3 -1
  73. package/docs/GATEWAY-ARCHITECTURE.md +6 -4
  74. package/package.json +1 -1
  75. package/skills/embassy-peer/SKILL.md +32 -4
  76. package/skills/embassy-peer/agents/openai.yaml +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/gateway/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAU,CAAC;AAEjF,MAAM,CAAC,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAkE,CAAC,CAAC;AACzM,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAU,CAAC;AAE/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAE/F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,SAAS,EAAE,UAAU,CAAU,CAAC;AAE1G,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,iBAAiB,EAAE,oBAAoB,CAAU,CAAC;AAIzF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAc,EAA4B,EAAE,CAC5E,OAAO,KAAK,KAAK,QAAQ,IAAK,gBAAsC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvF,MAAM,UAAU,WAAW,CAAC,cAA+B,EAAE,cAA+B;IAC1F,IAAI,cAAc,KAAK,cAAc,EAAE,CAAC;QACtC,MAAM,IAAI,UAAU,CAAC,yBAAyB,CAAC,CA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oBAAoB,GAAG,CAAC;gBACvC,CAAC,KAAK,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC;QAClD,IAAI,oBAAoB,KAAK,qBAAqB,EAAE,CAAC;YACnD,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACvC,CAAC;QACD,MAAM,QAAQ,GACZ,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnE,IAAI,QAAQ,KAAK,CAAC;YAAE,OAAO,QAAQ,CAAC;QACpC,OAAO,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC,aAAa,CACnD,GAAG,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,IAAI,EAAE,CACnC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAI,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;QACrF,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC;QAC5B,SAAS,CAAC,UAAU,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9C,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACrB,MAAM,IAAI,UAAU,CAAC,2CAA2C,CAAC,CAAC;AACpE,CAAC"}
@@ -1,10 +1,10 @@
1
1
  # Configuration and provider contracts
2
2
 
3
- Embassy is configured through environment variables read when each command
4
- starts. This document collects every variable, provider transport contracts,
5
- provider runtime rules, and
6
- the addressing model. There is no configuration file; all values are env vars
7
- or CLI flags.
3
+ Embassy is configured primarily through environment variables read when each
4
+ command starts. This document collects every variable, provider transport
5
+ contract, provider runtime rule, and the addressing model. Values are env vars
6
+ or CLI flags except for the private `nodes.json` federation inventory described
7
+ below.
8
8
 
9
9
  ---
10
10
 
@@ -18,7 +18,15 @@ or CLI flags.
18
18
  | `EMBASSY_DELIVERY_NOTICES` | `merged` | Claude sender notice policy: `merged` keeps stalls and folds terminal diagnostics into native status; `verbose` emits both; `quiet` emits no gateway user-frame notices |
19
19
  | `EMBASSY_TRACKING_ENABLED` | `1` | Global progress-watch kill switch; set exactly `0` to reject `--track`, `--idle-minutes`, and `TRACK:` open attempts. Active watches are memory-only and end with the broker process; they are never restored after restart. With no active watch, `DONE:` is inert and `untrack` is not specially rejected—it returns `NOT_FOUND`. Any value other than `1` or `0` is a configuration error |
20
20
  | `EMBASSY_LOCALE` | `en` | CLI output language, exactly `en` or `zh-CN`. The `--lang` flag overrides it for the invocation that carries it; an unset or empty value means `en`, and any other value is an argument error |
21
- | `EMBASSY_HOSTS` | `this-mac` | Comma-separated list of 1 through 32 unique lowercase host aliases. **The v1 launcher accepts only the single exact value `this-mac`**: any other list — including a longer one that contains `this-mac` fails `embassy serve` closed with `GATEWAY_REMOTE_PROVIDER_DISABLED`. The variable exists for the deferred remote-consulate work and has no useful setting today |
21
+ | `EMBASSY_HOSTS` | `this-mac` | Legacy host-list parser: the value must still be 1 through 32 unique lowercase aliases, but it is not federation authority. Without `nodes.json`, `serve` remains local-only as `this-mac` regardless of this value. When `nodes.json` is configured, explicitly setting this variable fails closed with `INVALID_GATEWAY_CONFIGURATION` |
22
+
23
+ Federation authority comes only from `nodes.json` in `EMBASSY_STATE_DIR`. It
24
+ must be a current-user-owned mode-0600 regular file whose exact object shape is
25
+ `{"version":1,"host":"<lowercase-host>","nodes":["<lowercase-ssh-alias>",...]}`.
26
+ `host` names this broker; `nodes` contains 1 through 31 unique OpenSSH aliases,
27
+ omits `host`, and keeps the federation at 32 total hosts or fewer. Each listed
28
+ node is the fixed SSH destination for `embassy peer-stdio`. A missing file keeps
29
+ the broker local-only as `this-mac`.
22
30
 
23
31
  ### Offline state upgrade
24
32
 
@@ -76,7 +84,7 @@ two hours.
76
84
 
77
85
  A CLI initiator receives the full `conv_` token in its result, and every routed recipient receives the same token in the inbound provenance envelope and reply hint. The token is a memory-only participant-scoped locator, not an authority credential: every `reply` rechecks caller identity, conversation membership, and the live route. The token no longer exists after a broker restart; it must likewise never be retried or reconstructed after route retirement or identity replacement.
78
86
 
79
- The public launcher accepts only host `this-mac`; remote connectors remain a future capability. `register-codex` therefore takes an optional `--host <id>`, but `this-mac` is the only value the broker will admit, and the alias must end in `@<id>` to match. `--host` is also mutually exclusive with `--succeeds`, which always inherits the succeeded alias's host.
87
+ The public launcher remains host-local. Under the implemented allowlisted SSH federation, each broker serves one local host identity and exchanges only bounded route catalogs and destination-owned handoffs with configured Embassy nodes. `register-codex` remains a local task registration: its optional `--host <id>` and alias suffix must name that broker's local host. `--host` is also mutually exclusive with `--succeeds`, which always inherits the succeeded alias's host.
80
88
 
81
89
  ## Claude Code's own setting: `crossSessionInbound`
82
90
 
@@ -97,7 +105,7 @@ the destination session before suspecting the route.
97
105
 
98
106
  ## Provider and runtime contract
99
107
 
100
- Embassy routes four providers: Claude over peer protocol 1, Codex over the managed App Server, and DeepSeek plus Grok Build over ACP v1. The release-owned [support matrix](../support/provider-support-matrix.json) records the exact artifacts, protocols, capabilities, stop fidelity, limitations, and test date exercised offline. Runtime never imports that file. A build or version fact can qualify the release's “tested with” claim, but it never grants or withholds routing authority.
108
+ Embassy routes five providers: Claude over peer protocol 1, Codex over the managed App Server, DeepSeek plus Grok Build over ACP v1, and universal shell peers over the private control socket. The release-owned [support matrix](../support/provider-support-matrix.json) records the exact artifacts, protocols, capabilities, stop fidelity, limitations, and test date exercised offline. Runtime never imports that file. A build or version fact can qualify the release's “tested with” claim, but it never grants or withholds routing authority.
101
109
 
102
110
  Runtime is best effort: an explicit consent edge plus the exact owned route/session identity authorizes an attempt. The current per-operation transport, strict consumed wire fields, and correlated operation determine the result. Interface drift or a missing optional provider becomes provider-local degraded/offline health and an exact safe code; it does not create a compatibility tier or block unrelated providers.
103
111
 
@@ -114,3 +122,10 @@ Claude sessions are addressed by their current `name@host` or by a user-supplied
114
122
  Names, old names, PIDs, registry paths, process generations, and socket generations never become alternate identity keys. Embassy refuses to guess when two live sessions share a current name.
115
123
 
116
124
  Codex routes use an explicit `codex-*` alias and the task's inherited thread identity. The private thread ID is never accepted as a command-line argument or printed. Registration performs no App Server operation. Every delivery opens and attests a fresh managed transport, initializes it, resumes the exact task with history excluded, and authorizes the body write once. App Server, Desktop, and broker restarts do not change logical route authority or require re-registration. A current unavailable or unobservable task reports an operation-local safe code while the registration and consent edge remain.
125
+
126
+ Shell routes use `peer-*` aliases and a `peer_` token minted at registration.
127
+ The broker persists only its UID/alias/token hash route handle, never the raw
128
+ token. Authenticated calls accept the token on the first stdin line with
129
+ `--token-stdin`; body-bearing calls use the remaining bytes as the body.
130
+ `--emit-env` remains optional for stable-shell harnesses. There is no PID
131
+ binding, token file, Keychain entry, daemon, or alternate persistence path.
@@ -1,6 +1,6 @@
1
1
  # 配置与提供方契约
2
2
 
3
- Embassy 通过各命令启动时读取的环境变量进行配置。本文档汇集所有变量、提供方传输契约、提供方运行时规则与寻址模型。没有配置文件;所有值均为环境变量或 CLI 标志。
3
+ Embassy 主要通过各命令启动时读取的环境变量进行配置。本文档汇集所有变量、提供方传输契约、提供方运行时规则与寻址模型。除下文所述的私有 `nodes.json` 联合清单外,所有值均为环境变量或 CLI 标志。
4
4
 
5
5
  ---
6
6
 
@@ -14,7 +14,9 @@ Embassy 通过各命令启动时读取的环境变量进行配置。本文档汇
14
14
  | `EMBASSY_DELIVERY_NOTICES` | `merged` | Claude 发送方通知策略:`merged` 保留停滞通知并把终局诊断合并到原生状态;`verbose` 同时发送两者;`quiet` 不发送任何网关用户帧通知 |
15
15
  | `EMBASSY_TRACKING_ENABLED` | `1` | 全局进度监视停用开关;精确设为 `0` 后,`--track`、`--idle-minutes` 与 `TRACK:` 开启请求会被拒绝。活跃监视只存在于内存中,并随代理进程结束;重启后绝不恢复。没有活跃监视时,`DONE:` 不产生作用;`untrack` 不会因开关而被特别拒绝,而是返回 `NOT_FOUND`。取值只能是 `1` 或 `0`,其他值均为配置错误 |
16
16
  | `EMBASSY_LOCALE` | `en` | CLI 输出语言,精确取值 `en` 或 `zh-CN`。`--lang` 标志会覆盖当次调用;未设置或为空表示 `en`,其他任何取值都是参数错误 |
17
- | `EMBASSY_HOSTS` | `this-mac` | 以逗号分隔的 1 到 32 个唯一小写主机别名。**v1 启动器只接受单个精确值 `this-mac`**:任何其他列表——包括包含 `this-mac` 的更长列表——都会让 `embassy serve` `GATEWAY_REMOTE_PROVIDER_DISABLED` 关闭失败。该变量是为推迟的远程领事馆功能预留的,目前没有可用的设置 |
17
+ | `EMBASSY_HOSTS` | `this-mac` | 保留的旧版主机列表解析器:取值仍必须是 1 到 32 个唯一小写别名,但不构成联合权限。没有 `nodes.json` 时,无论此值为何,`serve` 都保持仅本地的 `this-mac`。已配置 `nodes.json` 时,显式设置此变量会以 `INVALID_GATEWAY_CONFIGURATION` 关闭失败 |
18
+
19
+ 联合权限仅来自 `EMBASSY_STATE_DIR` 中的 `nodes.json`。它必须是当前用户所有的 mode-0600 普通文件,且对象形状必须精确为 `{"version":1,"host":"<lowercase-host>","nodes":["<lowercase-ssh-alias>",...]}`。`host` 指定当前代理;`nodes` 包含 1 到 31 个唯一的 OpenSSH 别名,不得包含 `host`,使联合总主机数不超过 32。每个列出的节点都是 `embassy peer-stdio` 的固定 SSH 目的地。文件缺失时,代理保持仅本地的 `this-mac`。
18
20
 
19
21
  ### 离线状态升级
20
22
 
@@ -56,7 +58,7 @@ embassy convert-state-v2-to-v3
56
58
 
57
59
  初始发送方从 CLI 结果获得完整 `conv_` 令牌,接收方则从入站消息的来源封装和回复提示中获得同一个令牌。令牌是内存中的参与方范围定位符,不是权限凭据:每次 `reply` 都会重新检查调用方身份、参与关系和实时路由。代理重启后令牌不再存在;路由失效或身份替换后,也不得重试或重构旧令牌。
58
60
 
59
- 公开发布的启动器仅接受主机 `this-mac`;远程连接器仍是未来功能。因此 `register-codex` 提供可选的 `--host <id>`,但代理只会接纳 `this-mac`,而且别名必须以 `@<id>` 结尾才能匹配。`--host` `--succeeds` 互斥,后者始终继承被接替别名的主机。
61
+ 公开发布的启动器仍绑定本地主机。在已实现的 SSH 许可清单联合模式下,每个代理只服务一个本地主机身份,并仅与已配置的 Embassy 节点交换有界路由目录和由目的地负责的交接。`register-codex` 仍是本地任务注册;其可选的 `--host <id>` 与别名后缀必须指向该代理的本地主机。`--host` 仍与 `--succeeds` 互斥,后者始终继承被接替别名的主机。
60
62
 
61
63
  ## Claude Code 自身的设置:`crossSessionInbound`
62
64
 
@@ -66,7 +68,7 @@ embassy convert-state-v2-to-v3
66
68
 
67
69
  ## 提供方与运行时契约
68
70
 
69
- Embassy 路由四种提供方:Claude 使用对等协议 1,Codex 使用托管 App Server,DeepSeek 与 Grok Build 使用 ACP v1。发布版自有的[支持矩阵](../support/provider-support-matrix.json)记录离线测试的精确构件、协议、能力、停止保真度、限制与测试日期;运行时从不导入它。构建或版本事实可以限定发布版“已测试”的说法,但绝不授予或撤销路由权限。
71
+ Embassy 路由五种提供方:Claude 使用对等协议 1,Codex 使用托管 App Server,DeepSeek 与 Grok Build 使用 ACP v1,通用 shell 对等方使用私有控制套接字。发布版自有的[支持矩阵](../support/provider-support-matrix.json)记录离线测试的精确构件、协议、能力、停止保真度、限制与测试日期;运行时从不导入它。构建或版本事实可以限定发布版“已测试”的说法,但绝不授予或撤销路由权限。
70
72
 
71
73
  运行时采用尽力而为模式:显式同意边加上精确自有路由/会话身份会授权一次尝试。当前逐操作传输、被消费协议字段的严格结构与相关操作决定结果。接口变化或可选提供方缺失会显示为提供方局部的降级/离线健康度与精确安全代码;它不会产生兼容性等级,也不会阻止其他提供方。
72
74
 
@@ -83,3 +85,9 @@ Claude 会话通过其当前的 `name@host` 或用户提供的原生会话 UUID
83
85
  名称、旧名称、PID、注册表路径、进程生成号和套接字生成号绝不会成为替代身份键。当两个在线会话共享同一当前名称时,Embassy 拒绝猜测。
84
86
 
85
87
  Codex 路由使用显式的 `codex-*` 别名和任务继承的线程标识。私有线程 ID 从不作为命令行参数接受,也从不打印。注册时不执行 App Server 操作。每次投递都会打开并验证新的托管传输,初始化后在不读取历史的前提下恢复精确任务,并仅授权一次正文写入。App Server、桌面应用或代理重启不会改变逻辑路由权限,也无需重新注册。当前任务不可用或不可观察时,尝试会报告操作级安全代码,而注册和同意边仍会保留。
88
+
89
+ Shell 路由使用 `peer-*` 别名与注册时铸造的 `peer_` 令牌。Broker 只持久化
90
+ 其 UID/别名/令牌哈希路由句柄,绝不持久化原始令牌。认证调用使用
91
+ `--token-stdin` 在标准输入第一行提供令牌;携带正文的调用将其余字节作为
92
+ 正文。`--emit-env` 仍可供稳定 shell harness 选择使用。这里没有 PID 绑定、
93
+ 令牌文件、Keychain 条目、守护进程或其他持久化路径。
package/docs/DASHBOARD.md CHANGED
@@ -9,7 +9,7 @@ tabs, request controls, bounded actions, and security caveat.
9
9
 
10
10
  ## Static dashboard
11
11
 
12
- Open `gateway-dashboard.html` inside the configured state directory. It gives a metadata-only view of all four provider rows (Claude, Codex, DeepSeek, and Grok Build), connector health, exact named routes and consent edges, recent delivery states, queue depth, latency, and last safe codes.
12
+ Open `gateway-dashboard.html` inside the configured state directory. It gives a metadata-only view of all five provider rows (Claude, Codex, DeepSeek, Grok Build, and shell peer), connector health, exact named routes and consent edges, recent delivery states, queue depth, latency, and last safe codes.
13
13
 
14
14
  Interpret queue and delivery by direction. Codex-bound ordinary work can wait
15
15
  for the task to become idle. Claude-bound work does not wait for Claude idle:
@@ -81,7 +81,7 @@ snapshot via same-origin `fetch`; after each bounded action it reads
81
81
  a fresh snapshot. A snapshot observation may settle already-due delivery
82
82
  deadlines before projecting state.
83
83
 
84
- App Server generations, re-anchors, and refreshes do not appear in Activity or grant route authority. The dashboard reports only best-effort runtime facts from the bounded public snapshot. That public snapshot remains schema version 2 even though the private native store is schema 3. Overview and Routes keep Claude, Codex, DeepSeek, and Grok Build visible even when a route or connector is absent; Deliveries filters by all four source and target providers; Diagnostics shows observed protocol/version metadata, current connector health, and the last safe code. Version metadata never changes route authority.
84
+ App Server generations, re-anchors, and refreshes do not appear in Activity or grant route authority. The dashboard reports only best-effort runtime facts from the bounded public snapshot. That public snapshot remains schema version 2 even though the private native store is schema 3. Overview and Routes dynamically enumerate Claude, Codex, DeepSeek, Grok Build, and shell peer even when a route or connector is absent; Deliveries filters by all five source and target providers; Diagnostics shows observed protocol/version metadata, current connector health, and the last safe code. Raw peer tokens and private mailbox receipts never enter the public model. Version metadata never changes route authority.
85
85
 
86
86
  The Diagnostics registry block mirrors optional bounded `registry` observations on the Claude connector row: `entriesScanned`, `parseableRecords`, monotonic `parseableRecordSeenSinceBoot`, bounded per-safe-code `rejected`, and `rejectedCodesOmitted`. It derives “Parseable required fields observed”, “Empty since broker start”, or “No parseable record since broker start”. The last warning says that no Claude registry record with parseable required fields has been observed since broker start and that, if Claude is running, its registry layout may have changed; that possible layout change therefore cannot look like a healthy empty peer list. The dashboard never exposes retained native IDs, operation-local endpoint evidence, raw registry records, or the release-owned offline support matrix, and a later attempt never replays an uncertain message body.
87
87
 
@@ -6,7 +6,7 @@ Embassy 提供两种仪表盘界面:一对仅包含元数据的静态文件,
6
6
 
7
7
  ## 静态仪表盘
8
8
 
9
- 在配置的状态目录下打开 `gateway-dashboard.html`。它提供一个纯元数据视图,包含四种提供方行(Claude、Codex、DeepSeek、Grok Build)、连接器健康度、精确具名路由与同意边、近期投递状态、队列深度、延迟和最近安全代码。
9
+ 在配置的状态目录下打开 `gateway-dashboard.html`。它提供一个纯元数据视图,包含五种提供方行(Claude、Codex、DeepSeek、Grok Build、Shell 对等方)、连接器健康度、精确具名路由与同意边、近期投递状态、队列深度、延迟和最近安全代码。
10
10
 
11
11
  请按方向理解队列与投递。朝向 Codex 的普通工作可以等待任务空闲;朝向 Claude 的工作不等待 Claude 空闲:通过路由与写前检查后,它会立即进入 Claude 的原生邮箱,而 `transport_written` 会把该方向结算为 `delivered`。这个邮箱边界不表示 Claude 已读取或消费正文。
12
12
 
@@ -38,7 +38,7 @@ embassy dashboard --live --port 41962
38
38
 
39
39
  每个请求都会检查精确的 Host 头。导航 GET 可以缺少 Origin,但每个 POST 都要求精确的 Origin 与 `X-Embassy-Request: 1`。服务器不接受 `OPTIONS`,也不发送 CORS 头。这些检查约束浏览器的跨来源请求,但不认证本地软件。没有通用控制或提供方路由、遥测或外部资源。唯一的变更路由只接受配对、取消配对、刷新发现结果和移除具名 Codex 注册四种精确操作;每次都要求页内明确说明后果并确认,正文上限为 1 KiB,并限制为每分钟六次。移除操作只携带公开的 `codex-*` 别名;代理会删除该注册的同意边,并按其持久化写入阶段结算活动工作。任务 ID 不会进入浏览器契约。浏览器客户端仅在 `localStorage` 中保存一个显示偏好键(当前选项卡与语言)。浏览器不能创建任务、发送、回复、审批、中断、更改设置,也不能调用任意代理或提供方方法。它通过同源 `fetch` 接收快照,并在每次有限操作后重新读取最新快照。一次快照观测可能会在投射状态之前结算已到期的投递截止时间。
40
40
 
41
- App Server 代际、重新锚定与刷新不会出现在“活动”中,也不会授予路由权限。仪表盘只报告有界公开快照中的尽力而为运行时事实。即使私有原生存储使用架构 3,公开快照仍保持架构版本 2。“总览”与“路由”会在路由或连接器缺失时仍显示 Claude、Codex、DeepSeek 与 Grok Build;“投递”可按四种发送方与接收方提供方筛选;“诊断”显示已观察协议/版本元数据、当前连接器健康度与最近安全代码。版本元数据绝不改变路由权限。
41
+ App Server 代际、重新锚定与刷新不会出现在“活动”中,也不会授予路由权限。仪表盘只报告有界公开快照中的尽力而为运行时事实。即使私有原生存储使用架构 3,公开快照仍保持架构版本 2。“总览”与“路由”会动态枚举 Claude、Codex、DeepSeek、Grok Build Shell 对等方,即使路由或连接器缺失也会显示;“投递”可按五种发送方与接收方提供方筛选;“诊断”显示已观察协议/版本元数据、当前连接器健康度与最近安全代码。原始 peer 令牌与私有邮箱回执绝不会进入公开模型。版本元数据绝不改变路由权限。
42
42
 
43
43
  “诊断”中的注册表区块会镜像 Claude 连接器行上可选的有界 `registry` 观测:`entriesScanned`、`parseableRecords`、单调的 `parseableRecordSeenSinceBoot`、按安全代码分组且有界的 `rejected`,以及 `rejectedCodesOmitted`。它会派生“已观察到可解析必需字段”、“自代理启动以来为空”或“自代理启动以来没有可解析记录”。最后一种警告会说明:自代理启动以来从未观察到带可解析必需字段的 Claude 注册表记录;如果 Claude 正在运行,它的注册表布局可能已更改。因此,这种变化不会伪装成健康的空对等列表。仪表盘绝不暴露保留的原生 ID、逐操作端点证据、原始注册表记录或发布版自有的离线支持矩阵;之后的尝试也绝不重放结果不确定的消息正文。
44
44
 
package/docs/DELIVERY.md CHANGED
@@ -13,6 +13,8 @@ Embassy.
13
13
 
14
14
  - **Acceptance is not completion.** Initial CLI acceptance returns a conversation token and a delivery token. For Claude-bound delivery, `transport_written` means the native mailbox write completed and is the terminal `delivered` boundary; Embassy does not wait for evidence that Claude later read or consumed the body. Toward Codex, `delivered` means the App Server accepted the turn. Neither boundary means a model read, understood, or completed the work.
15
15
 
16
+ - **Shell peers acknowledge stdout.** A `peer-*` delivery requires a live `embassy await` waiter. With none, dispatch defers cleanly as `PEER_NOT_AWAITING`. Embassy arms the exact prepared frame, hands it to the waiter, and settles `delivered` only after the CLI has flushed that complete frame to stdout and returned the private receipt. A lost receipt is `unconfirmed`; uncertainty after arming is `ambiguous`. One waiter is allowed per registration and 16 globally; waiter, receipt, and duplicate-ack tombstone state is memory-only.
17
+
16
18
  - **Recipients get provenance and a reply path.** Immediately before the provider write, Embassy puts every routed body inside one broker-owned `<cross-session-message>` textual frame. Its first element is an `<embassy-reply-hint>` with the full conversation token, the recipient's exact alias, and the corresponding `embassy reply` command. A recipient may continue with that exact token, but caller identity, conversation membership, and current route policy are rechecked at reply time.
17
19
 
18
20
  - **Evidence has three shapes.** `delivered` means the direction's terminal provider boundary was observed. A confirmed Claude mailbox write reaches that boundary immediately. `unconfirmed` means Embassy cannot prove the required terminal boundary despite partial dispatch evidence; it is not a later downgrade from a confirmed Claude mailbox write. `ambiguous` means the write outcome itself is unknown. All three are terminal, and neither `unconfirmed` nor `ambiguous` is a retry authorization — inspect the recipient instead, because a resend can duplicate the message.
@@ -26,7 +28,7 @@ Embassy.
26
28
 
27
29
  - **Progress watches are independent evidence.** An opt-in watch may outlive an opener that expired before delivery, so a worker can remain unaware of the original assignment even while thread activity keeps the watch healthy. Owners should check the opener's `delivery-status` separately before assuming the assignment text arrived.
28
30
 
29
- - **Restarts keep clean work only.** Queued and reserved bodies persist under bounded retention and may resume once against the same logical route and consent edge. Armed or accepted work at crash settles ambiguous or unconfirmed and is never replayed. Each retained message keeps its opaque delivery token and status in the private v3 state, so the sender can continue checking that exact attempt after restart. No pending reply or conversation capability survives.
31
+ - **Restarts keep clean work only.** Queued and reserved bodies persist under bounded retention and may resume once against the same logical route and consent edge. Armed or accepted work at crash settles ambiguous or unconfirmed and is never replayed. Each retained message keeps its opaque delivery token and status in the private v3 state, so the sender can continue checking that exact attempt after restart. No pending waiter, shell receipt, reply, or conversation capability survives.
30
32
 
31
33
  Accepted messages are tracked toward terminal delivery while the broker and provider connections remain healthy. The dashboard distinguishes acceptance, progress, delivery, expiry, failure, ambiguity, and abandonment.
32
34
 
@@ -8,6 +8,8 @@ Embassy 跟踪每条被接受的消息,从 CLI 接受到终态结算的全过
8
8
 
9
9
  - **接受不等于完成。** CLI 初始接受返回一个对话令牌和一个投递令牌。对于朝向 Claude 的投递,`transport_written` 表示原生邮箱写入完成,并且就是终局 `delivered` 边界;Embassy 不会等待 Claude 后续读取或消费正文的证据。朝向 Codex 时,`delivered` 表示 App Server 接受了该轮次。这两个边界都不表示模型已读取、理解或完成工作。
10
10
 
11
+ - **Shell 对等方确认 stdout。** `peer-*` 投递需要一个在线的 `embassy await` 等待者;没有等待者时,分派会以 `PEER_NOT_AWAITING` 干净推迟。Embassy 武装精确的预备帧,将其交给等待者,并且只在 CLI 把完整帧刷新到 stdout 且返回私有回执后结算为 `delivered`。回执丢失结算为 `unconfirmed`;武装后的不确定性结算为 `ambiguous`。每条注册路由允许一个等待者,全局最多 16 个;等待者、回执和重复确认墓碑状态都只存在于内存。
12
+
11
13
  - **接收方获得来源和回复能力。** 每条实际路由到提供方的消息都带有 Embassy 在写入边界生成的单一 `<cross-session-message>` 文本封装:已经验证的发送方别名,以及含完整 `conv_` 令牌、精确接收方别名和对应 `embassy reply` 命令的首个 `<embassy-reply-hint>` 元素。接收方可以只使用该提示继续对话;每次回复仍会重新检查调用方身份、对话参与关系和当前路由。
12
14
 
13
15
  - **证据有三种形态。** `delivered` 表示观测到了该方向的终端提供方边界;已经确认的 Claude 邮箱写入会立即到达这个边界。`unconfirmed` 表示虽有部分分派证据,Embassy 仍无法证明所需终端边界;它不是已确认 Claude 邮箱写入后的降级状态。`ambiguous` 表示写入结果本身未知。三者均为终态,`unconfirmed` 和 `ambiguous` 都不构成重试授权——请检查接收方,因为重发可能导致消息重复。
@@ -21,7 +23,7 @@ Embassy 跟踪每条被接受的消息,从 CLI 接受到终态结算的全过
21
23
 
22
24
  - **进度监视是独立证据。** 选择启用的监视可能比一条在投递前已过期的开启消息存续更久,因此即使线程活动让监视保持健康,工作方仍可能从未看到原始任务。所有者在假定任务文本已到达之前,应单独检查开启消息的 `delivery-status`。
23
25
 
24
- - **重启仅保留干净工作。** 排队或已保留的消息体按有界策略持久化,并可在同一逻辑路由和同意边上恢复一次。崩溃时已授权或已接受的工作结算为 ambiguous 或 unconfirmed,绝不重放。每条仍保留的消息会在私有 v3 状态中保存其不透明投递令牌和状态,因此发送方可在重启后继续检查这一次精确尝试。待处理的回复或对话能力均不保留。
26
+ - **重启仅保留干净工作。** 排队或已保留的消息体按有界策略持久化,并可在同一逻辑路由和同意边上恢复一次。崩溃时已授权或已接受的工作结算为 ambiguous 或 unconfirmed,绝不重放。每条仍保留的消息会在私有 v3 状态中保存其不透明投递令牌和状态,因此发送方可在重启后继续检查这一次精确尝试。待处理的等待者、shell 回执、回复或对话能力均不保留。
25
27
 
26
28
  已接受的消息在代理和提供方连接保持健康的情况下被跟踪至终态投递。仪表盘区分接受、进行中、已投递、过期、失败、不明确和废弃等状态。
27
29
 
@@ -1,8 +1,9 @@
1
1
  # Embassy Gateway Architecture
2
2
 
3
3
  Status: local bidirectional routing is implemented for Claude, Codex, DeepSeek,
4
- and Grok. Remote connectors remain deferred. The published package supports
5
- macOS, the only platform exercised end to end so far.
4
+ Grok, and universal shell peers. Configured Embassy nodes federate allowlisted
5
+ named routes over a fixed attach-only SSH transport. The published package
6
+ supports macOS, the only platform exercised end to end so far.
6
7
 
7
8
  This document uses four evidence labels:
8
9
 
@@ -177,7 +178,8 @@ The status below is intentionally narrower than the target architecture.
177
178
  | Claude current-user runtime roots | **Implemented**; derives the registry and callback roots from the verified OS user without inspecting a launcher or configuration file |
178
179
  | Stateless allowlisted Codex App Server transport with bounded busy behavior | **Implemented**; every operation opens and attests its own transport, and the conformance suite covers idle gating, exact `STEER:` behavior, clean retry, and ambiguous no-replay settlement |
179
180
  | Attach-only local Codex proxy transport and exact-owned cleanup | **Implemented**, five deterministic tests; no live App Server connection in routine tests |
180
- | Local provider adapters | **Implemented**, focused synthetic tests cover Claude discovery, exact Codex ownership, and lazy ACP-backed DeepSeek and Grok routes with provider-local degradation and cleanup; remote adapters remain disabled |
181
+ | Local provider adapters and Embassy-node federation | **Implemented**, focused synthetic tests cover Claude discovery, exact Codex ownership, lazy ACP-backed DeepSeek and Grok routes with provider-local degradation and cleanup, plus bounded catalog reconciliation and destination-owned handoff over the fixed attach-only SSH transport |
182
+ | Universal shell peer mailbox | **Implemented**, alias-plus-token same-UID attribution, hash-only durable ownership, bounded long polling, stdout-flush receipts, and restart uncertainty tests; no PID binding, token file, Keychain entry, or daemon |
181
183
  | Gateway service composition | **Implemented**, including private control-server startup, synthetic cross-provider selection/dispatch/reply correlation, metadata-only publication, and restart attempt-phase tests |
182
184
  | Delivery receipt/status lifecycle | **Implemented**, deterministic synthetic tests cover stable-UUID native receipt re-resolution, the merged/verbose/quiet Claude notice policy, one bounded stall notice with pending age where enabled, opaque private-v3 correlation handles, restart continuity, the closed status/terminal schema, and one-shot/bounded-wait CLI behavior |
183
185
  | Broker-owned cross-provider provenance framing | **Implemented**, deterministic tests cover exact Codex and Claude wire shapes, bounded long-alias attribution, recipient reply hints, reserved-tag neutralization, single wrapping across clean retries, and pre-write failure |
@@ -851,7 +853,7 @@ Each page assembles seven sections:
851
853
  - **Progress supervision** — active progress watches and their state.
852
854
  - **Operator activity** — the broker's bounded public journal of accepted
853
855
  operator actions.
854
- - **Sessions** — first-class Claude, Codex, DeepSeek, and Grok provider rows,
856
+ - **Sessions** — first-class Claude, Codex, DeepSeek, Grok, and shell-peer provider rows,
855
857
  aliases, host, route state, and queue depth.
856
858
  - **Diagnostics** — best-effort observed metadata, per-host connector health,
857
859
  last safe code, deadline-pressure buckets, accounting totals, and the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-embassy",
3
- "version": "1.8.2",
3
+ "version": "1.9.2",
4
4
  "description": "A local gateway for bidirectional messaging between Claude Code sessions and Codex tasks.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,19 +1,19 @@
1
1
  ---
2
2
  name: embassy-peer
3
- description: Operate Embassy through current name@host or Claude session-UUID selectors. Use when a Codex task needs to register for native inbound messaging, list available peers, refresh the operator's static dashboard, pair with and message a Claude session, or unregister without exposing provider credentials, socket paths, or message bodies.
3
+ description: Operate Embassy through current name@host or Claude session-UUID selectors and universal peer-* shell routes. Use when an agent needs to register for inbound messaging, await shell-peer mail, list available peers, refresh the operator's static dashboard, manage a Codex-attested pair, send or reply under its own principal, or unregister without exposing provider credentials, socket paths, or message bodies.
4
4
  ---
5
5
 
6
6
  # Embassy Peer Gateway
7
7
 
8
8
  Use only the installed `embassy` CLI. Treat it as the sole facade over the private, local Embassy control socket. Keep this skill repo-scoped; do not install, copy, or modify provider configuration.
9
9
 
10
- Provider-authorized mutations require exactly one inherited principal. Stop on missing or dual Codex/Claude identity; never choose one on the caller's behalf. Operator-only `serve`, health, status, refresh, select, and unselect commands do not infer a provider principal. `pair` and `unpair` carry the inherited `CODEX_THREAD_ID` as attestation when run inside a Codex task and otherwise fail closed; only the operator-facing live dashboard creates or removes an edge without that task attestation.
10
+ Provider-authorized operations require exactly one principal accepted by that command: inherited Codex identity, inherited Claude identity, or a shell-peer alias plus token. Stop on a missing or conflicting principal; never choose one on the caller's behalf. Operator-only `serve`, health, status, refresh, select, and unselect commands do not infer a provider principal. A shell-peer token authorizes only that peer's send, reply, await, receipt, and unregister operations; it never authorizes `pair` or `unpair`. Those commands carry the inherited `CODEX_THREAD_ID` as attestation when run inside a Codex task and otherwise fail closed; only the operator-facing live dashboard creates or removes an edge without that task attestation.
11
11
 
12
12
  If `CALLER_IDENTITY_CONFLICT` reports that both agent identities were inherited, explain that the Codex App Server daemon may have been started inside an agent session. Tell the operator to run `codex app-server daemon restart` from a normal terminal. Never inspect, print, clear, or copy either inherited value. Without the dual-identity hint, report only the generic fail-closed result; the caller may simply be the wrong principal.
13
13
 
14
14
  ## Select a peer
15
15
 
16
- Address a Claude session by its latest `name@host` or by a user-supplied native session UUID. The UUID is the stable identity; the name is only the current live index. The gateway stores no historical names, so an old name stops resolving immediately after a rename. The shipped launcher accepts only `this-mac`; remote connectors are deferred. Ask the user to choose a selector when it is ambiguous.
16
+ Address a Claude session by its latest `name@host` or by a user-supplied native session UUID. The UUID is the stable identity; the name is only the current live index. The gateway stores no historical names, so an old name stops resolving immediately after a rename. A broker without a federation inventory defaults to `this-mac`; configured allowlisted Embassy nodes exchange bounded public route catalogs and destination-owned handoffs over fixed attach-only SSH. Ask the user to choose a selector when it is ambiguous.
17
17
 
18
18
  Run `embassy status` to read the current snapshot. Run `embassy refresh-dashboard` when passive live discovery is authorized. Claude Code's native `ListAgents` includes genuine Claude sessions plus each explicitly advertised `codex-*` Embassy peer.
19
19
 
@@ -31,7 +31,7 @@ embassy health
31
31
 
32
32
  If Embassy is unavailable, stop and report that it must be started in a trusted local terminal with `embassy serve`. `GATEWAY_INSTANCE_IN_USE` means an Embassy or recognized legacy lock already owns this login account; stop that foreground process rather than changing `EMBASSY_STATE_DIR`. If no legacy process remains, the operator may remove only the exact stale legacy controller lock and retry. Do not launch a background copy, retry in a loop, discover sockets, or fall back to a provider CLI.
33
33
 
34
- Embassy presents Claude, Codex, DeepSeek, and Grok as first-class providers. Runtime status is best-effort: use observation freshness, connector health, observed metadata, and the last safe code to explain what is available now. Provider versions are diagnostic metadata, not routing authority; the release-owned offline support matrix is the record of tested artifacts, capabilities, limitations, and test dates. There is no agent or operator compatibility action. Report a degraded surface and stop rather than sending a test message or trying to override a failed operation.
34
+ Embassy presents Claude, Codex, DeepSeek, Grok, and shell peers as first-class providers. Runtime status is best-effort: use observation freshness, connector health, observed metadata, and the last safe code to explain what is available now. Provider versions are diagnostic metadata, not routing authority; the release-owned offline support matrix is the record of tested artifacts, capabilities, limitations, and test dates. There is no agent or operator compatibility action. Report a degraded surface and stop rather than sending a test message or trying to override a failed operation.
35
35
 
36
36
  List the public snapshot:
37
37
 
@@ -47,6 +47,34 @@ embassy refresh-dashboard
47
47
 
48
48
  Run that refresh only at the passive-discovery authorization stage. Treat the response as a normalized refresh result; it does not reveal the path. The operator-facing page is `gateway-dashboard.html` in the configured state directory, by default `~/.local/state/agent-embassy/`. Use the operator's configured location when it differs. Do not search for the file or scan controller-owned paths.
49
49
 
50
+ ## Register and await as a shell peer
51
+
52
+ Register a shell-fresh harness under a `peer-*` alias:
53
+
54
+ ```sh
55
+ embassy register-peer --alias peer-reviewer@this-mac
56
+ ```
57
+
58
+ The result prints the raw `peer_` token exactly once. Retain it only in the
59
+ agent's context. Do not put it in argv, a file, Keychain, logs, or prose. The
60
+ broker persists only the UID/alias/token hash route handle, never the token.
61
+ There is no PID binding or helper daemon.
62
+
63
+ For every later peer-authenticated command, use `--token-stdin`: the first
64
+ stdin line is the exact token, and any remaining bytes are the message body.
65
+ Do not combine it with an inherited Codex identity, Claude identity, or
66
+ `EMBASSY_PEER_TOKEN`. `register-peer --emit-env` is available only when a
67
+ harness genuinely retains one stable shell; stdin is the universal floor.
68
+
69
+ To receive one framed message, run `embassy await --alias
70
+ peer-reviewer@this-mac --token-stdin` with the token and trailing newline on
71
+ stdin. The CLI performs bounded 30-second long polls, writes the complete frame
72
+ to stdout, flushes it, then acknowledges its private receipt. Run at most one
73
+ waiter for that registration; the broker allows 16 globally. A missing receipt
74
+ is terminal `unconfirmed`, post-arm uncertainty is terminal `ambiguous`, and
75
+ neither may be retried automatically. Unregister with `unregister-peer` under
76
+ the same alias/token principal.
77
+
50
78
  ## Pair providers
51
79
 
52
80
  Create one explicit cross-provider edge by naming both ends. Each endpoint must be a user-chosen route from the current snapshot:
@@ -1,4 +1,4 @@
1
1
  interface:
2
2
  display_name: "Embassy Peer Gateway"
3
- short_description: "Message selected Claude and registered Codex peers"
4
- default_prompt: "Use $embassy-peer to register this task and message a selected name@host peer safely."
3
+ short_description: "Message Claude, Codex, ACP, and shell peers safely"
4
+ default_prompt: "Use $embassy-peer to register this task or shell peer, await inbound mail, and message a selected route safely."