agent-embassy 2.0.1 → 3.1.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/CHANGELOG.md +77 -0
- package/CONTRIBUTING.md +23 -36
- package/README.md +123 -222
- package/SECURITY.md +72 -93
- package/dist/src/errors.d.ts +10 -1
- package/dist/src/errors.js +3 -1
- package/dist/src/errors.js.map +1 -1
- package/dist/src/gateway/claude-helper-protocol.d.ts +8 -11
- package/dist/src/gateway/claude-helper-protocol.js +12 -11
- package/dist/src/gateway/claude-helper-protocol.js.map +1 -1
- package/dist/src/gateway/claude-helper-supervisor.d.ts +1 -5
- package/dist/src/gateway/claude-helper-supervisor.js +45 -17
- package/dist/src/gateway/claude-helper-supervisor.js.map +1 -1
- package/dist/src/gateway/claude-helper.js +6 -6
- package/dist/src/gateway/claude-helper.js.map +1 -1
- package/dist/src/gateway/claude-peer.d.ts +0 -3
- package/dist/src/gateway/claude-peer.js +7 -19
- package/dist/src/gateway/claude-peer.js.map +1 -1
- package/dist/src/gateway/cli.d.ts +17 -7
- package/dist/src/gateway/cli.js +945 -265
- package/dist/src/gateway/cli.js.map +1 -1
- package/dist/src/gateway/codex-socket-holder.d.ts +26 -0
- package/dist/src/gateway/codex-socket-holder.js +76 -0
- package/dist/src/gateway/codex-socket-holder.js.map +1 -0
- package/dist/src/gateway/codex-stateless-transport.js +1 -1
- package/dist/src/gateway/codex-stateless-transport.js.map +1 -1
- package/dist/src/gateway/config.d.ts +1 -10
- package/dist/src/gateway/config.js +4 -10
- package/dist/src/gateway/config.js.map +1 -1
- package/dist/src/gateway/control.d.ts +66 -80
- package/dist/src/gateway/control.js +92 -147
- package/dist/src/gateway/control.js.map +1 -1
- package/dist/src/gateway/federation-nodes.d.ts +29 -2
- package/dist/src/gateway/federation-nodes.js +177 -7
- package/dist/src/gateway/federation-nodes.js.map +1 -1
- package/dist/src/gateway/peer-client.d.ts +4 -3
- package/dist/src/gateway/peer-client.js +22 -13
- package/dist/src/gateway/peer-client.js.map +1 -1
- package/dist/src/gateway/peer-protocol.d.ts +13 -11
- package/dist/src/gateway/peer-protocol.js +14 -12
- package/dist/src/gateway/peer-protocol.js.map +1 -1
- package/dist/src/gateway/provenance-envelope.d.ts +0 -1
- package/dist/src/gateway/provenance-envelope.js +4 -19
- package/dist/src/gateway/provenance-envelope.js.map +1 -1
- package/dist/src/gateway/providers.d.ts +11 -7
- package/dist/src/gateway/providers.js +49 -50
- package/dist/src/gateway/providers.js.map +1 -1
- package/dist/src/gateway/server.d.ts +4 -14
- package/dist/src/gateway/server.js +32 -54
- package/dist/src/gateway/server.js.map +1 -1
- package/dist/src/gateway/service-agent.d.ts +187 -0
- package/dist/src/gateway/service-agent.js +758 -0
- package/dist/src/gateway/service-agent.js.map +1 -0
- package/dist/src/gateway/service.d.ts +119 -38
- package/dist/src/gateway/service.js +754 -798
- package/dist/src/gateway/service.js.map +1 -1
- package/dist/src/gateway/status-view.d.ts +119 -0
- package/dist/src/gateway/status-view.js +484 -0
- package/dist/src/gateway/status-view.js.map +1 -0
- package/dist/src/gateway/store.d.ts +106 -21
- package/dist/src/gateway/store.js +463 -537
- package/dist/src/gateway/store.js.map +1 -1
- package/dist/src/gateway/types.d.ts +64 -102
- package/dist/src/gateway/types.js +40 -86
- package/dist/src/gateway/types.js.map +1 -1
- package/docs/CONFIGURATION.md +174 -45
- package/docs/DELIVERY.md +11 -11
- package/docs/GATEWAY-ARCHITECTURE.md +292 -384
- package/package.json +4 -12
- package/skills/embassy-peer/SKILL.md +69 -92
- package/skills/embassy-peer/agents/openai.yaml +1 -1
- package/README.zh-CN.md +0 -275
- package/assets/live-dashboard/app.css +0 -1619
- package/assets/vendor/react/LICENSE +0 -21
- package/assets/vendor/react/react-dom.production.min.js +0 -267
- package/assets/vendor/react/react.production.min.js +0 -31
- package/dist/src/gateway/acp-client.d.ts +0 -110
- package/dist/src/gateway/acp-client.js +0 -407
- package/dist/src/gateway/acp-client.js.map +0 -1
- package/dist/src/gateway/acp-provider.d.ts +0 -66
- package/dist/src/gateway/acp-provider.js +0 -275
- package/dist/src/gateway/acp-provider.js.map +0 -1
- package/dist/src/gateway/claude-helper-client.d.ts +0 -2
- package/dist/src/gateway/claude-helper-client.js +0 -2
- package/dist/src/gateway/claude-helper-client.js.map +0 -1
- package/dist/src/gateway/cli-copy.d.ts +0 -8
- package/dist/src/gateway/cli-copy.en.d.ts +0 -22
- package/dist/src/gateway/cli-copy.en.js +0 -62
- package/dist/src/gateway/cli-copy.en.js.map +0 -1
- package/dist/src/gateway/cli-copy.js +0 -27
- package/dist/src/gateway/cli-copy.js.map +0 -1
- package/dist/src/gateway/cli-copy.zh-CN.d.ts +0 -22
- package/dist/src/gateway/cli-copy.zh-CN.js +0 -62
- package/dist/src/gateway/cli-copy.zh-CN.js.map +0 -1
- package/dist/src/gateway/codex-doctor.d.ts +0 -36
- package/dist/src/gateway/codex-doctor.js +0 -127
- package/dist/src/gateway/codex-doctor.js.map +0 -1
- package/dist/src/gateway/dashboard-copy.d.ts +0 -7
- package/dist/src/gateway/dashboard-copy.en.d.ts +0 -504
- package/dist/src/gateway/dashboard-copy.en.js +0 -505
- package/dist/src/gateway/dashboard-copy.en.js.map +0 -1
- package/dist/src/gateway/dashboard-copy.js +0 -514
- package/dist/src/gateway/dashboard-copy.js.map +0 -1
- package/dist/src/gateway/dashboard-copy.zh-CN.d.ts +0 -504
- package/dist/src/gateway/dashboard-copy.zh-CN.js +0 -505
- package/dist/src/gateway/dashboard-copy.zh-CN.js.map +0 -1
- package/dist/src/gateway/dashboard-model.d.ts +0 -343
- package/dist/src/gateway/dashboard-model.js +0 -1061
- package/dist/src/gateway/dashboard-model.js.map +0 -1
- package/dist/src/gateway/dashboard.d.ts +0 -20
- package/dist/src/gateway/dashboard.js +0 -874
- package/dist/src/gateway/dashboard.js.map +0 -1
- package/dist/src/gateway/deepseek-detect.d.ts +0 -14
- package/dist/src/gateway/deepseek-detect.js +0 -41
- package/dist/src/gateway/deepseek-detect.js.map +0 -1
- package/dist/src/gateway/live-dashboard-app/app.js +0 -2385
- package/dist/src/gateway/live-dashboard-assets.d.ts +0 -10
- package/dist/src/gateway/live-dashboard-assets.js +0 -74
- package/dist/src/gateway/live-dashboard-assets.js.map +0 -1
- package/dist/src/gateway/live-dashboard-command.d.ts +0 -60
- package/dist/src/gateway/live-dashboard-command.js +0 -334
- package/dist/src/gateway/live-dashboard-command.js.map +0 -1
- package/dist/src/gateway/live-dashboard-http.d.ts +0 -39
- package/dist/src/gateway/live-dashboard-http.js +0 -383
- package/dist/src/gateway/live-dashboard-http.js.map +0 -1
- package/dist/src/gateway/live-dashboard-protocol.d.ts +0 -34
- package/dist/src/gateway/live-dashboard-protocol.js +0 -114
- package/dist/src/gateway/live-dashboard-protocol.js.map +0 -1
- package/dist/src/gateway/live-dashboard-server.d.ts +0 -33
- package/dist/src/gateway/live-dashboard-server.js +0 -144
- package/dist/src/gateway/live-dashboard-server.js.map +0 -1
- package/dist/src/gateway/live-dashboard-stream.d.ts +0 -46
- package/dist/src/gateway/live-dashboard-stream.js +0 -234
- package/dist/src/gateway/live-dashboard-stream.js.map +0 -1
- package/dist/src/gateway/live-dashboard.d.ts +0 -28
- package/dist/src/gateway/live-dashboard.js +0 -154
- package/dist/src/gateway/live-dashboard.js.map +0 -1
- package/dist/src/gateway/locale.d.ts +0 -4
- package/dist/src/gateway/locale.js +0 -10
- package/dist/src/gateway/locale.js.map +0 -1
- package/dist/src/gateway/progress-watch-machine.d.ts +0 -45
- package/dist/src/gateway/progress-watch-machine.js +0 -70
- package/dist/src/gateway/progress-watch-machine.js.map +0 -1
- package/docs/CONFIGURATION.zh-CN.md +0 -97
- package/docs/DASHBOARD.md +0 -98
- package/docs/DASHBOARD.zh-CN.md +0 -49
- package/docs/DELIVERY.zh-CN.md +0 -55
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/gateway/types.ts"],"names":[],"mappings":"AAAA,MAAM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AO,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"}
|
package/docs/CONFIGURATION.md
CHANGED
|
@@ -12,53 +12,185 @@ below.
|
|
|
12
12
|
|
|
13
13
|
| Variable | Default | Purpose |
|
|
14
14
|
| --- | --- | --- |
|
|
15
|
-
| `EMBASSY_STATE_DIR` | `$XDG_STATE_HOME/agent-embassy`, or `$HOME/.local/state/agent-embassy` when `XDG_STATE_HOME` is unset | Private state
|
|
16
|
-
| `DSH_HOME` | `$HOME/.dsh` | DeepSeek Harness checkout root; when its owned directory and `package.json` are present, Embassy launches `pnpm --dir <home> run demo:acp` lazily on first dispatch |
|
|
15
|
+
| `EMBASSY_STATE_DIR` | `$XDG_STATE_HOME/agent-embassy`, or `$HOME/.local/state/agent-embassy` when `XDG_STATE_HOME` is unset | Private state and control socket; an override must be absolute and does not relocate the fixed host-wide lease |
|
|
17
16
|
| `EMBASSY_STEERING_ENABLED` | `1` | Global Claude-to-Codex `STEER:` kill switch; set exactly `0` to treat every Claude-to-Codex body as an ordinary Codex-bound queued message; Claude-bound mailbox timing is unchanged |
|
|
18
17
|
| `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
|
-
| `
|
|
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 |
|
|
18
|
+
| `NO_COLOR` | unset | Not an Embassy setting — the [conventional one](https://no-color.org). Set it to any non-empty value and `embassy status`, `watch`, and `check` print no escape sequences. Colour is emphasis only: stripping it never removes information, and a non-terminal stdout is never coloured whatever this says |
|
|
21
19
|
|
|
22
20
|
Before any Embassy client call that talks to the broker, the CLI reads the state
|
|
23
21
|
directory and `nodes.json`, then connects to the control socket; grant a sandboxed
|
|
24
22
|
Codex task that directory as a writable root, or approve equivalent local access,
|
|
25
23
|
and do not relocate state or start a second broker to work around a denial.
|
|
26
24
|
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
`nodes.json` in `EMBASSY_STATE_DIR` is optional — needed only for federation
|
|
26
|
+
across machines. When it is absent at broker boot, Embassy writes it itself,
|
|
27
|
+
once: mode 0600, naming this host by its own hostname (the first label before
|
|
28
|
+
any dot, lower-cased; `localhost` if that name is not a valid host token),
|
|
29
|
+
with an empty peer list. From that point on the file — not the hostname — is
|
|
30
|
+
this broker's durable identity: a later hostname change (for example a
|
|
31
|
+
network-triggered rename) does not rename it. Federation authority comes only from
|
|
32
|
+
this file: it must be a current-user-owned mode-0600 regular file whose exact
|
|
33
|
+
object shape is
|
|
29
34
|
`{"version":1,"host":"<lowercase-host>","nodes":["<lowercase-ssh-alias>",...]}`.
|
|
30
35
|
`host` names this broker; `nodes` contains 0 through 31 unique OpenSSH aliases,
|
|
31
36
|
omits `host`, and keeps the federation at 32 total hosts or fewer. Each listed
|
|
32
|
-
node is the fixed SSH destination for `embassy peer-stdio`.
|
|
33
|
-
|
|
37
|
+
node is the fixed SSH destination for `embassy peer-stdio`. To adopt
|
|
38
|
+
federation later, edit the existing file and add peers to `nodes` — keep
|
|
39
|
+
`host` exactly as it already reads; every durable record (routes and
|
|
40
|
+
retained bodies) is keyed by that value, so renaming `host` requires
|
|
41
|
+
the [private state reset](#private-state-reset) below, the same as any other
|
|
42
|
+
identity change.
|
|
34
43
|
Removing a peer does not remove its durable mirrors; reset private state before restarting with that peer absent.
|
|
35
44
|
|
|
45
|
+
Examples throughout this documentation write aliases as `name@your-host`;
|
|
46
|
+
substitute your own host — the `hostId` on the broker's ready line — wherever
|
|
47
|
+
`your-host` appears. The commands that name a route this machine owns —
|
|
48
|
+
`register-codex` (including `--succeeds`), `unregister-codex`, `register-peer`,
|
|
49
|
+
`unregister-peer`, `await` and `retire` — refuse an alias naming any other host, and say
|
|
50
|
+
which host this machine uses and the file that came from. `send` is not
|
|
51
|
+
restricted this way: its `--to` and `--from` may name a federated peer on
|
|
52
|
+
another host.
|
|
53
|
+
|
|
36
54
|
### Private state reset
|
|
37
55
|
|
|
38
|
-
Version
|
|
39
|
-
rewrite older state. Before the reset, use the old running broker's `status`
|
|
56
|
+
Version 3 accepts only fresh schema-5 private state; it does not convert or
|
|
57
|
+
rewrite older state; the 2.x line's state is refused the same way. Before the reset, use the old running broker's `status`
|
|
40
58
|
and delivery lookups to verify that no queued, armed, or accepted work remains
|
|
41
59
|
and every delivery has settled. Then:
|
|
42
60
|
|
|
43
61
|
1. Stop the broker.
|
|
44
62
|
2. Move `gateway-state.json` aside so the old ledger remains recoverable.
|
|
45
|
-
3.
|
|
46
|
-
4. Start the version-
|
|
47
|
-
5. Re-register
|
|
63
|
+
3. `nodes.json`, if you use federation, is untouched.
|
|
64
|
+
4. Start the version-3 broker to create fresh state.
|
|
65
|
+
5. Re-register Codex tasks. Claude routes reinstall themselves on first use.
|
|
48
66
|
|
|
49
67
|
An old or unknown schema refuses with `GATEWAY_STATE_SCHEMA_UNSUPPORTED` and
|
|
50
68
|
does not mutate the state file. There is no conversion command or automatic
|
|
51
69
|
recovery path.
|
|
52
70
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
71
|
+
A schema-5 file that still carries a key this line removed — `consentEdges`,
|
|
72
|
+
retired along with the permission records it held — refuses with `CORRUPT_GATEWAY_STATE`
|
|
73
|
+
instead, because the loader accepts an exact key set rather than ignoring what
|
|
74
|
+
it does not recognize. On this upgrade that refusal is expected, not damage:
|
|
75
|
+
the file on disk is intact and the same five steps above are the whole
|
|
76
|
+
recovery. The state file is never rewritten in place to make it loadable.
|
|
77
|
+
|
|
78
|
+
A running broker holds `.gateway-controller.lock` in the state directory,
|
|
79
|
+
recording its pid and the machine name at the time it started. What a later
|
|
80
|
+
start does with a lock it finds depends only on that pid:
|
|
81
|
+
|
|
82
|
+
| Lock found | What the next start does |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| Records a **live pid** | Refuses with `GATEWAY_STATE_IN_USE`, and prints the recorded host and pid. Embassy cannot tell a running broker from an unrelated process that inherited the pid number, and that is equally true of a lock written under this machine's earlier name, so it never assumes |
|
|
85
|
+
| Records a **dead pid** | Recovers it automatically, whatever machine name the lock records — renaming a machine cannot wedge its own state directory |
|
|
86
|
+
| Is **empty**, from a crash between creating the file and writing it | Recovers it automatically; it names no owner to check |
|
|
87
|
+
| **Parses, but names no process** (no pid, or one that is not a positive integer) | Refuses with `GATEWAY_STATE_LOCK_UNVERIFIED` and leaves it alone — there is nothing to probe, so nothing may be claimed about it |
|
|
88
|
+
| Is **neither empty nor a readable record** | Refuses with `GATEWAY_STATE_LOCK_UNVERIFIED` and leaves it alone |
|
|
89
|
+
|
|
90
|
+
Both refusals print a hint naming the lock file: once you have confirmed no
|
|
91
|
+
broker is running anywhere, remove `.gateway-controller.lock` and start again.
|
|
92
|
+
A recovered lock is renamed to `.gateway-controller.lock.stale-<recovered-at>-<uuid>`
|
|
93
|
+
rather than deleted, so a crash stays diagnosable; the timestamp in that name
|
|
94
|
+
is when Embassy recovered it, and a later start removes it once that is more
|
|
95
|
+
than seven days ago. (The file's own timestamps are the crashed broker's and
|
|
96
|
+
can be arbitrarily old, so they are not used.) Never delete a lock while a
|
|
97
|
+
broker is running.
|
|
98
|
+
|
|
99
|
+
## Service
|
|
100
|
+
|
|
101
|
+
`embassy service install` registers the broker as a per-user macOS launchd
|
|
102
|
+
agent instead of a foreground process kept alive by hand:
|
|
103
|
+
|
|
104
|
+
- **Agent**: label `com.agent-embassy.broker`, written to
|
|
105
|
+
`~/Library/LaunchAgents/com.agent-embassy.broker.plist` (mode 0644).
|
|
106
|
+
`RunAtLoad` starts it at login. `KeepAlive` is `{ Crashed: true }`, which
|
|
107
|
+
per `launchd.plist(5)` relaunches the job **only** when it died from a
|
|
108
|
+
signal typically associated with a crash — `SIGSEGV`, `SIGBUS`, `SIGILL`,
|
|
109
|
+
`SIGABRT` — throttled to at most once every 5 seconds. Nothing else brings
|
|
110
|
+
it back: not a clean exit, not a non-zero exit, not a plain `kill`
|
|
111
|
+
(`SIGTERM`), and not one of the broker's deliberate boot refusals (an
|
|
112
|
+
unsupported state schema, another instance holding the lease). That is on
|
|
113
|
+
purpose. A refusal exits once and stays down: run `embassy service status`
|
|
114
|
+
and read the log rather than waiting for a relaunch that will not come.
|
|
115
|
+
- **Logs**: stdout and stderr are both captured to
|
|
116
|
+
`~/Library/Logs/agent-embassy/broker.log` (the log directory is created
|
|
117
|
+
mode 0700). **There is no rotation** — Embassy never truncates or rolls this
|
|
118
|
+
file, so a long-lived agent's log is yours to prune. Uninstalling leaves it
|
|
119
|
+
in place.
|
|
120
|
+
- **Environment**: every `EMBASSY_*` variable set in the installing shell,
|
|
121
|
+
plus `XDG_STATE_HOME`, is captured into the plist at install time, and the
|
|
122
|
+
install prints the captured key names. These are configuration, not
|
|
123
|
+
secrets; nothing else — no API key, no token, no `PATH` — is copied.
|
|
124
|
+
`EMBASSY_STATE_DIR` and `XDG_STATE_HOME` must be absolute. The agent runs
|
|
125
|
+
with exactly those captured values for its whole life: changing them in
|
|
126
|
+
your shell afterwards has no effect, and the only way to change what the
|
|
127
|
+
agent runs with is to run `embassy service install` again.
|
|
128
|
+
- **Stop it**: `embassy service uninstall` boots the agent out of launchd and
|
|
129
|
+
then waits — polling `launchctl print` every 250 ms for up to 10 seconds —
|
|
130
|
+
until launchctl answers that the label is *not found*; only then does it
|
|
131
|
+
remove the plist. launchd unloads asynchronously, so `bootout` returning 0
|
|
132
|
+
is not proof. Any other answer leaves the plist in place. If launchctl
|
|
133
|
+
reported an error, its stderr is quoted. If `bootout` returned 0 and the
|
|
134
|
+
label is still there at the end of the wait, there is nothing of
|
|
135
|
+
launchctl's to quote — `print` succeeded, and its stdout is never quoted —
|
|
136
|
+
so the message says how long it waited instead.
|
|
137
|
+
- **Check it**: `embassy service status` reports `loaded`, `not loaded`, or
|
|
138
|
+
`unknown`. `unknown` — launchctl could not run, or printed something this
|
|
139
|
+
version does not recognize — is reported as such with launchctl's *stderr*
|
|
140
|
+
quoted, and exits non-zero; it is never rendered as "not loaded". Status
|
|
141
|
+
also reports whether the plist exists and whether the program the plist
|
|
142
|
+
points at is still on disk (a Node binary under a version manager can be
|
|
143
|
+
removed out from under an installed agent). `service` is the one command
|
|
144
|
+
that reports local paths — its plist, its log, a missing program — because
|
|
145
|
+
managing those files is what it does; launchctl's *stdout* is never quoted
|
|
146
|
+
anywhere, since a `print` dump contains the agent's environment values.
|
|
147
|
+
|
|
148
|
+
Install replaces its own loaded agent: it boots the existing
|
|
149
|
+
`com.agent-embassy.broker` out, waits for launchctl to confirm the label is
|
|
150
|
+
gone, and only then probes the host-wide instance lease. So re-running
|
|
151
|
+
`embassy service install` over a running launchd agent is the supported way to
|
|
152
|
+
change its configuration.
|
|
153
|
+
|
|
154
|
+
If the lease still cannot be taken after that, install refuses and quotes the
|
|
155
|
+
lease's own message verbatim (bounded, like every quoted string on this
|
|
156
|
+
path, at 512 bytes). That message is worth reading: `instance-lease`
|
|
157
|
+
reports the same condition for about ten situations, most of which are not
|
|
158
|
+
another broker at all — a symlinked path component under `~/.local/state`, a
|
|
159
|
+
non-empty lease root with no ownership marker, a lock file whose mode or owner
|
|
160
|
+
drifted. A holder's pid is named only when the recorded pid is verifiably
|
|
161
|
+
alive, because the lock record keeps the *last* holder and is routinely stale.
|
|
162
|
+
Nothing has been written to disk at this point.
|
|
163
|
+
|
|
164
|
+
**Rollback.** A failure after `launchctl bootstrap` — a non-zero `bootstrap`,
|
|
165
|
+
a `print` that cannot confirm the agent, a failing `kickstart` — is rolled
|
|
166
|
+
back, and the error says exactly what the rollback achieved:
|
|
167
|
+
|
|
168
|
+
- the new agent is booted out and confirmed gone; then
|
|
169
|
+
- if a readable plist was already there, its previous bytes are written back,
|
|
170
|
+
and it is re-bootstrapped **only if that agent was loaded when install
|
|
171
|
+
started** — the restart is then confirmed by `launchctl print`, not by an
|
|
172
|
+
exit code. A plist that was merely sitting on disk, unloaded, is restored
|
|
173
|
+
and left unloaded: a failed install must not start a broker you did not
|
|
174
|
+
have running, which would take the host lease behind your back;
|
|
175
|
+
- if there was no previous plist, the one this install wrote is removed;
|
|
176
|
+
- if the previous plist could not be read (it was oversized, or unreadable),
|
|
177
|
+
it is **left in place rather than deleted** — deleting it would be a silent
|
|
178
|
+
uninstall — and the error says the plist on disk is the one this install
|
|
179
|
+
wrote;
|
|
180
|
+
- if the new agent cannot be confirmed unloaded, the plist is **left alone**
|
|
181
|
+
and the error says so — a half-installed agent is reported, never hidden.
|
|
182
|
+
|
|
183
|
+
The post-install health check is *not* one of those failures. By then the
|
|
184
|
+
agent is installed and loaded, and it stays that way: a broker that does not
|
|
185
|
+
answer is reported, and the command exits non-zero, but nothing is undone.
|
|
186
|
+
|
|
187
|
+
Install waits up to 10 seconds of wall clock for that health check, capping
|
|
188
|
+
each attempt at 1 second. If the broker never answers, the command exits
|
|
189
|
+
non-zero, names the log file, and reports the last code it observed. If that
|
|
190
|
+
last code is a decisive refusal rather than silence — `CONTROL_STATE_UNSAFE`,
|
|
191
|
+
`CONTROL_SOCKET_UNSAFE`, `CONTROL_CONNECT_DENIED`, `CONTROL_VERSION_MISMATCH`
|
|
192
|
+
— it exits with that code's own class and points at `embassy health`, which
|
|
193
|
+
explains it.
|
|
62
194
|
|
|
63
195
|
## Advanced bounds
|
|
64
196
|
|
|
@@ -67,8 +199,6 @@ These variables retain conservative defaults:
|
|
|
67
199
|
| Variable | Default |
|
|
68
200
|
| --- | ---: |
|
|
69
201
|
| `EMBASSY_MAX_ROUTES` | `128` |
|
|
70
|
-
| `EMBASSY_MAX_PAIRS` | `128` |
|
|
71
|
-
| `EMBASSY_MAX_WATCHES` | `32` |
|
|
72
202
|
| `EMBASSY_EVENT_CAPACITY` / `EMBASSY_EVENT_TTL_MS` | `500` / `86400000` |
|
|
73
203
|
| `EMBASSY_DEDUPE_CAPACITY` / `EMBASSY_DEDUPE_TTL_MS` | `2000` / `300000` |
|
|
74
204
|
| `EMBASSY_MAX_QUEUE_MESSAGES` / `EMBASSY_MAX_QUEUE_PER_ROUTE` | `100` / `20` |
|
|
@@ -77,10 +207,8 @@ These variables retain conservative defaults:
|
|
|
77
207
|
| `EMBASSY_MESSAGE_DEADLINE_MS` | `14400000` |
|
|
78
208
|
| `EMBASSY_RATE_LIMIT` / `EMBASSY_RATE_WINDOW_MS` | `30` / `60000` |
|
|
79
209
|
|
|
80
|
-
`
|
|
81
|
-
|
|
82
|
-
and is capped at 256. `EMBASSY_MAX_ROUTES` accepts 2 through 256. Every value in
|
|
83
|
-
this table is validated at startup, and an out-of-range or non-integer setting
|
|
210
|
+
`EMBASSY_MAX_ROUTES` accepts 2 through 128 and also sets the tracked advertisement-helper cap.
|
|
211
|
+
Every value in this table is validated at startup, and an out-of-range or non-integer setting
|
|
84
212
|
fails closed with `INVALID_GATEWAY_CONFIGURATION` rather than being clamped.
|
|
85
213
|
|
|
86
214
|
The stall notice is not separately configurable. It fires at
|
|
@@ -88,7 +216,7 @@ The stall notice is not separately configurable. It fires at
|
|
|
88
216
|
default four-hour deadline a pending delivery is reported at two minutes, not
|
|
89
217
|
two hours.
|
|
90
218
|
|
|
91
|
-
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 `
|
|
219
|
+
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 conversation-addressed `send` 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.
|
|
92
220
|
|
|
93
221
|
The public launcher remains host-local. Under allowlisted SSH federation, each broker serves the exact host identity attested by `nodes.json`. `register-codex` infers that host; the alias (and any `--succeeds` alias) must use the same suffix.
|
|
94
222
|
|
|
@@ -96,38 +224,39 @@ The public launcher remains host-local. Under allowlisted SSH federation, each b
|
|
|
96
224
|
|
|
97
225
|
`crossSessionInbound` is Claude Code's native setting for cross-session
|
|
98
226
|
messaging: it decides whether a Claude session accepts, holds, or refuses
|
|
99
|
-
messages arriving from another session. Embassy needs it enabled on
|
|
100
|
-
session
|
|
227
|
+
messages arriving from another session. Embassy needs it enabled on any
|
|
228
|
+
session used as a Codex-to-Claude destination, and it cannot override
|
|
101
229
|
that decision. Configure it in Claude Code, not in Embassy.
|
|
102
230
|
|
|
103
231
|
This is the one prerequisite you must actively toggle, and it is the most
|
|
104
|
-
common first-run failure — because it fails *late*.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
the destination session before suspecting the route.
|
|
232
|
+
common first-run failure — because it fails *late*. A send to a discovered
|
|
233
|
+
session is accepted and installs its route without consulting Claude's native
|
|
234
|
+
inbound policy; the refusal appears only when the delivery reaches the Claude
|
|
235
|
+
end. If the session appears in `embassy status` and the send was accepted but
|
|
236
|
+
nothing arrives, check `crossSessionInbound` on the destination session before
|
|
237
|
+
suspecting the route.
|
|
111
238
|
|
|
112
239
|
## Provider and runtime contract
|
|
113
240
|
|
|
114
|
-
Embassy routes
|
|
241
|
+
Embassy routes three providers: Claude over peer protocol 1, Codex over the managed App Server, and universal shell peers over the private control socket. A build or version fact never grants or withholds routing authority.
|
|
115
242
|
|
|
116
|
-
Runtime is best effort:
|
|
243
|
+
Runtime is best effort: the OS boundary 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.
|
|
117
244
|
|
|
118
245
|
Only unsafe OS evidence for Embassy-owned or executed artifacts and Embassy callback, control, or state paths—such as an unsafe lease or state, swapped binary, ownership/path/symlink mismatch, or invalid generation—refuses broker startup. The Claude-owned external sessions registry root is read-side identity evidence: an unsafe UID or mode degrades only Claude with a loud observation while the broker and other providers remain available. Claude still requires native `peerProtocol: 1` per session record: a record that declares any other value is rejected in isolation and included in bounded rejection evidence without stopping the broker or hiding other usable sessions.
|
|
119
246
|
|
|
120
|
-
Runtime parsing remains strict on every known registry field, frame, and response; unknown top-level Claude registry fields are ignored because Embassy never consumes them. The Claude connector row in public status carries optional bounded `registry` observations: `entriesScanned`, `parseableRecords`, monotonic `parseableRecordSeenSinceBoot`, bounded per-safe-code `rejected`, and `rejectedCodesOmitted`.
|
|
247
|
+
Runtime parsing remains strict on every known registry field, frame, and response; unknown top-level Claude registry fields are ignored because Embassy never consumes them. The Claude connector row in public status carries optional bounded `registry` observations: `entriesScanned`, `parseableRecords`, monotonic `parseableRecordSeenSinceBoot`, bounded per-safe-code `rejected`, and `rejectedCodesOmitted`. `embassy status` reports the same evidence: if Claude is running but no record with parseable required fields has been observed since broker start, its registry layout may have changed.
|
|
121
248
|
|
|
122
|
-
The managed Codex installation is resolved by exact verified path; a `codex` elsewhere on `PATH` is neither used nor modified. Claude registry and callback roots are derived from the verified current OS user; no Claude launcher or configuration file is read.
|
|
249
|
+
The managed Codex installation is resolved by exact verified path; a `codex` elsewhere on `PATH` is neither used nor modified. Claude registry and callback roots are derived from the verified current OS user; no Claude launcher or configuration file is read. Version strings, when present, are bounded diagnostic metadata only.
|
|
123
250
|
|
|
124
251
|
## Addressing
|
|
125
252
|
|
|
126
|
-
Claude sessions are addressed by their current `name@host` or by a user-supplied native session UUID. The UUID is the stable logical identity; the current name is a live lookup alias. After a rename, the old name stops resolving immediately while
|
|
253
|
+
Claude sessions are addressed by their current `name@host` or by a user-supplied native session UUID. The UUID is the stable logical identity; the current name is a live lookup alias. After a rename, the old name stops resolving immediately while an installed UUID-bound route continues to work under the new name. A rename becomes visible at the session's next status transition — typically its next turn boundary — because Claude Code rewrites the session's registry record on those transitions, not at the moment of the rename; Embassy reflects the record, never the rename itself.
|
|
254
|
+
|
|
255
|
+
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: the shared *name* is refused with `PEER_ALIAS_COLLISION`, while each session stays reachable by its own UUID.
|
|
127
256
|
|
|
128
|
-
|
|
257
|
+
Across a federated link, reachability is narrower than it is locally. A peer node addresses only the routes its neighbour published in its catalog, and a Claude session appears there only once it has a local route — that is, once it has sent a message or been sent one on its own host. The destination never installs a route on a handoff: an unmirrored sender or an unrouted target is refused, not created. To make a Claude session addressable from a peer node, use it locally once first.
|
|
129
258
|
|
|
130
|
-
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
|
|
259
|
+
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 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 remains.
|
|
131
260
|
|
|
132
261
|
Shell routes use `peer-*` aliases and a `peer_` token minted at registration.
|
|
133
262
|
The broker persists only its UID/alias/token hash route handle, never the raw
|
package/docs/DELIVERY.md
CHANGED
|
@@ -15,22 +15,21 @@ Embassy.
|
|
|
15
15
|
|
|
16
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
17
|
|
|
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
|
|
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 send --conversation` command. A recipient may continue with that exact token, but caller identity, conversation membership, and current route policy are rechecked at reply time.
|
|
19
19
|
|
|
20
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.
|
|
21
21
|
|
|
22
|
-
- **Native failures.** A Claude-originated route or delivery failure settles as native `expired`; its native acknowledgement always retains the normalized safe code in the reason field. The default `merged` notice mode keeps the early stall frame but suppresses the duplicate terminal `<gateway-delivery-diagnostic>` user frame. `verbose` restores that readable diagnostic frame; `quiet` suppresses all gateway-authored user-frame notices, including stalls, while native status
|
|
23
|
-
- **Native held is attempt-then-ack.** For Claude→Codex ingress, Embassy first attempts the exact immediate dispatch. A terminal result observed before the one-second prompt boundary produces only its terminal acknowledgement. Native `held` is sent only when the body actually remains queued (including a busy route or clean provider deferral) or dispatch is still nonterminal at that boundary; the terminal acknowledgement follows later. Claude's rendered “approved and released” notice means only that the
|
|
22
|
+
- **Native failures.** A Claude-originated route or delivery failure settles as native `expired`; its native acknowledgement always retains the normalized safe code in the reason field. The default `merged` notice mode keeps the early stall frame but suppresses the duplicate terminal `<gateway-delivery-diagnostic>` user frame. `verbose` restores that readable diagnostic frame; `quiet` suppresses all gateway-authored user-frame notices, including stalls, while native status remains truthful. No notice contains a path, native identifier, exception, or message body. `denied` is reserved for a real user or policy refusal and is not authored by Embassy. `held` and transport-written are progress, never success.
|
|
23
|
+
- **Native held is attempt-then-ack.** For Claude→Codex ingress, Embassy first attempts the exact immediate dispatch. A terminal result observed before the one-second prompt boundary produces only its terminal acknowledgement. Native `held` is sent only when the body actually remains queued (including a busy route or clean provider deferral) or dispatch is still nonterminal at that boundary; the terminal acknowledgement follows later. Claude's rendered “approved and released” notice means only that the gateway accepted and released the body to the recipient queue. It does not mean a model read it, and it does not imply human approval.
|
|
24
24
|
|
|
25
25
|
- **Retries are conservative.** Undispatched Codex-bound messages remain queued while the task is busy or temporarily unavailable. Each attempt opens a fresh App Server transport; registration and connector observation never certify reachability. A clean pre-write deferral may return reserved work to the queue. Once the body write is armed, uncertainty is terminal and never replayed. A Claude-bound body may remain queued only for a pre-write route failure or temporary unavailability, never merely because Claude is observed busy. A confirmed delivery failure settles; an ambiguous write is never retried automatically.
|
|
26
26
|
|
|
27
27
|
- **Bounded by design.** Bodies, queues, rate windows, deduplication tables, deadlines, and transient conversations all have fixed limits.
|
|
28
28
|
|
|
29
|
-
- **
|
|
29
|
+
- **A displaced route's work settles `cancelled` with `ENDPOINT_RETIRED`.** A Claude session's route is installed on first use and belongs to one (host, session UUID) identity. When a different session claims a name that a route already holds, the broker retires the displaced route: its queued and reserved work settles `cancelled` with the safe code `ENDPOINT_RETIRED`, armed work settles `ambiguous`, and provider-accepted work settles `unconfirmed`. Nothing is replayed against the new session, and the retirement is journaled so `embassy status` shows it.
|
|
30
|
+
- **Restarts keep clean work only.** Queued and reserved bodies persist under bounded retention and may resume once against the same logical route. 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 v5 state, so the sender can continue checking that exact attempt after restart. No pending waiter, shell receipt, reply, or conversation capability survives.
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
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
|
+
Accepted messages are tracked toward terminal delivery while the broker and provider connections remain healthy. `embassy status` distinguishes acceptance, progress, delivery, expiry, failure, ambiguity, and abandonment.
|
|
34
33
|
|
|
35
34
|
## Provenance framing and recipient replies
|
|
36
35
|
|
|
@@ -61,7 +60,8 @@ This is Claude-compatible textual framing, not general XML, a cryptographic
|
|
|
61
60
|
signature, or proof that the body is safe. Embassy composes the genuine outer
|
|
62
61
|
frame and hint from validated broker metadata. In the untrusted raw body only,
|
|
63
62
|
it case-insensitively neutralizes boundary-shaped opening or closing occurrences
|
|
64
|
-
of `cross-session-message
|
|
63
|
+
of all three reserved tags — `cross-session-message`, `embassy-reply-hint`, and
|
|
64
|
+
`embassy-queued-ahead` — by inserting `\` immediately
|
|
65
65
|
after their leading `<`. The rest of the body remains byte-for-byte text.
|
|
66
66
|
Native Claude wrappers received inside a body are therefore untrusted nested
|
|
67
67
|
text beneath Embassy's single authoritative outer frame.
|
|
@@ -69,14 +69,14 @@ text beneath Embassy's single authoritative outer frame.
|
|
|
69
69
|
The full conversation token travels only in the accepted control result and
|
|
70
70
|
transient provider payload; the composed envelope itself is payload-only.
|
|
71
71
|
Aliases retain their existing sanitized public-metadata behavior. The full
|
|
72
|
-
token is never persisted, journaled, logged, snapshotted, placed in a
|
|
73
|
-
|
|
72
|
+
token is never persisted, journaled, logged, snapshotted, or placed in a
|
|
73
|
+
receipt. A framing, metadata, or size failure happens
|
|
74
74
|
before the provider write and settles as a clean failure; it is never
|
|
75
75
|
classified as an ambiguous write or replayed.
|
|
76
76
|
|
|
77
77
|
## Delivery tokens
|
|
78
78
|
|
|
79
|
-
Every accepted `send
|
|
79
|
+
Every accepted `send`, whether addressed by route or by conversation, returns a delivery token: `dlv_` followed by exactly 24 base64url characters. It addresses one bounded private v5 message/status row and is not a provider receipt handle. The token is persisted only in the mode-0600 broker state; it never enters a public snapshot, normal log, or provider receipt.
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
82
|
embassy delivery-status --token dlv_<token>
|