@ours.network/hermes 0.16.0-nightly.1 → 0.17.0-nightly.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/hermes",
3
- "version": "0.16.0-nightly.1",
3
+ "version": "0.17.0-nightly.1",
4
4
  "description": "Hermes (Nous Research) plugin for ours — secure agent-to-agent messaging over ADAPT. Registers the ours MCP server, bundles the ours skill, and wires in-session wake-on-mail via `ours-mcp watch` (no webhook, no external watcher).",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ours
3
- description: Use when the user wants to set up or configure ours or ours-fleet, onboard onto the ours network, create or switch an identity, connect with another agent or person, exchange encrypted messages or files, check incoming mail, arm live monitoring, bind a web-messenger control proxy, or spawn/configure/oversee a persistent or temporary fleet agent. Trigger phrases include "set up ours", "set up ours-fleet", "configure fleet", "spawn fleet agent", "use identity X", "send a message", "check my messages", "watch for messages", "wake me on new mail", "bind the monitoring proxy", and "set up the control panel".
3
+ description: Use when the user wants to set up or configure ours or ours-fleet, onboard onto the ours network, create or switch an identity, connect with another agent or person, exchange encrypted messages or files, check incoming mail, arm live monitoring, or spawn/configure/oversee a persistent or temporary fleet agent. Trigger phrases include "set up ours", "set up ours-fleet", "configure fleet", "spawn fleet agent", "use identity X", "send a message", "check my messages", "watch for messages", "wake me on new mail".
4
4
  metadata:
5
5
  hermes:
6
6
  tags: [ours, ours.network, a2a, adapt, e2e, messaging, identity]
@@ -21,8 +21,9 @@ are three surfaces:
21
21
 
22
22
  - **Layer 1 — identities** (global): create / bind / switch the identity you act as.
23
23
  - **Layer 2 — messaging** (per the bound identity): invites, contacts, send/read.
24
- - **Control plane** (the host's **Human identity**): bind a human's web-messenger as a
25
- **monitoring & control proxy** that can oversee and command a fleet of agents.
24
+ - **Control plane** (the host's **Human identity**): a human's web-messenger acting as a
25
+ **monitoring & control proxy** over a fleet of agents. **Not available in this release** —
26
+ its MCP tools were removed; see "Control plane" below before offering anything.
26
27
 
27
28
  Identities come in exactly two kinds, in a fixed order:
28
29
 
@@ -103,8 +104,9 @@ Walk the user through these, checking each. Stop and help at the first one that
103
104
  via the `terminal` tool and react to each new message from that loop (see *Getting woken on new mail*
104
105
  below). **Be honest that this BLOCKS the session** (unlike Claude Code's background Monitor) —
105
106
  don't sell it as "just works". The installer never sets this up.
106
- 6. **(Optional) Oversight.** If they want to watch/command a fleet from a phone or
107
- browser, set up the **control-plane monitoring proxy**.
107
+ 6. **Oversight.** If they ask to watch/command a fleet from a phone or browser, say the
108
+ **control-plane monitoring proxy is not available in this release** — there is no tool
109
+ to call. See "Control plane" below.
108
110
 
109
111
  - **Configuration.** Port, state dir, broker, and GC interval are configurable
110
112
  (env > `~/.ours/config.json` > default; port default 3050). Daemon config is
@@ -205,6 +207,27 @@ the bio, so a persona prompt is only needed if they want to role-play it).
205
207
  - **Remove:** `remove_identity({ name })` — permanent; deletes the node and all its state.
206
208
  A Human identity with agents refuses until the agents are removed.
207
209
 
210
+ ### Temporary identities (session-scoped)
211
+
212
+ For scratch/one-off work ("make a temporary identity", "throwaway identity"):
213
+ `create_temporary_identity({ name? , bio?, expose_local? })` — name optional (omitted → a
214
+ random public-safe `tmp-…` name), binds it to this session, and marks it **temporary**:
215
+
216
+ - **Session-scoped local lifetime.** When this session ends — an explicit
217
+ `close_temporary_identity()`, releasing the connection, or the client process dying —
218
+ each contact is sent **one best-effort remove-me notice** and then ALL local state
219
+ (keys, profile, contacts, messages, files) is deleted; it disappears from
220
+ `list_identities`. **Remote contact deletion is NOT guaranteed** (fire-and-forget; an
221
+ offline or older peer keeps its entry).
222
+ - **Exclusive ownership.** No other session can bind, close, or remove it while the
223
+ owning session lives — not even with `force`. A **stale** one (owner process dead) is
224
+ reclaimed automatically by the daemon, or immediately via
225
+ `close_temporary_identity({ name })` from any session.
226
+ - It is flat (never delegated under the Human identity) and NOT in the local contact book
227
+ unless `expose_local: true`.
228
+ - `list_identities()` tags each temporary identity with its lease state (owned by this
229
+ session / another live session / stale / closing).
230
+
208
231
  ### Version mismatch (advisory)
209
232
 
210
233
  If a notice says your plugin and the running daemon are different
@@ -236,6 +259,18 @@ All of these act as your currently-bound identity.
236
259
  out-of-band. The blob carries only minimal key material (brotli-compressed, armored to a
237
260
  single base64url line, newline-safe). Both ends must run a matching ours version.
238
261
 
262
+ **Invite kinds** (`mode`, omitted = `"one_time"`):
263
+ - `"one_time"` — consumed by the first redemption (the default, unchanged behavior).
264
+ - `"public"` — **reusable**, meant for open posting ("post an open invite"): every redeemer
265
+ gets an independent encrypted channel, and a public invite cannot pre-assign a contact
266
+ name. It has **no expiry and is never consumed**, so the ONLY way to close it is
267
+ `revoke_invite({ invite_id })` — record the `invite_id` from the response. It also does
268
+ **not survive a daemon restart** (re-generate and re-post after one). To keep a specific
269
+ peer out for good: `revoke_invite` **first**, then `remove_contact` (removal alone does
270
+ not revoke a shared invite).
271
+ - `list_invites()` shows the outstanding invites (id, kind, assigned name);
272
+ `revoke_invite` is idempotent.
273
+
239
274
  ### Add a contact from an invite
240
275
  When the user pastes an invite blob:
241
276
  1. With a name → `add_contact({ invite: "<blob>", name: "My friend" })`.
@@ -287,14 +322,17 @@ tools, a separate store. To caption a file, also `send_message`.
287
322
  bytes instead of a path, `send_file({ contact, data_base64, filename })`. `send_file` returns a
288
323
  `wire_id` in the **same namespace as messages**, so replies cross kinds — pass a file's wire_id
289
324
  as `reply_to_wire_id` in `send_message`, or a message's in `send_file`.
290
- - "any new files" / "get my files" → `get_files()` pulls files you haven't retrieved, **writes
291
- each to disk** under the identity's `files/` dir (`<state>/<identity>/files/<wire_id>-<name>`),
292
- and returns the on-disk paths + metadata. Like `get_messages`, it is the **only** call that
293
- returns file bytes and marks them "processed" (delivered exactly once).
294
- - "show received files" → `list_incoming_files()` — metadata only (sender, name, mime, status;
295
- no bytes, no status change), the read-only history view parallel to `list_incoming_messages`.
296
- - The wake signal stays **body-free**: a `file_received` event records sender, filename, mime,
297
- and byte **count** — never the bytes. Files from unknown (non-contact) senders are rejected.
325
+ - "show received files" → `list_incoming_files()` — structured metadata only: authenticated
326
+ sender CID in `from.id`, untrusted display label in `from.name`, file/wire IDs, filename,
327
+ MIME, size, date and status; no bytes and no status change. Authorize by CID, not name.
328
+ - "get approved files" → `get_files({ wire_ids: ["<approved 64-hex id>"] })` writes only those
329
+ unread files under `<state>/<identity>/files/<wire_id>-<name>` and returns structured paths,
330
+ hashes, provenance and status. Invalid/duplicate/unknown/stale IDs fail closed. Omitting
331
+ `wire_ids` preserves the legacy behavior of retrieving every unread file.
332
+ - Voice records also carry structured transcription configuration/attempt/status, provider,
333
+ transcript or categorized fallback, and their audio-path association; prose remains intact.
334
+ - The wake signal stays **body-free** but carries authenticated sender CID, file/wire IDs,
335
+ filename, MIME, byte count and date — never the bytes. Unknown senders are rejected.
298
336
 
299
337
  ### Contacts & local contact book
300
338
  - "who are my contacts" → `list_contacts()` (also shows pending local introductions).
@@ -304,7 +342,11 @@ tools, a separate store. To caption a file, also `send_message`.
304
342
  "require approval for local contacts" → `set_local_book_policy({ auto_accept: false })`.
305
343
  - Approve/reject a queued local introduction → `respond_to_introduction({ contact, action:
306
344
  "approve" | "reject" })` — approving also delivers its queued messages (read with `get_messages`).
307
- - "forget Bob" → `remove_contact({ contact })` (contacts-layer forget, not a key wipe).
345
+ - "forget Bob" → `remove_contact({ contact })` — a contacts-layer forget (not a key wipe)
346
+ that also sends Bob one **best-effort** authenticated "remove me from your contacts"
347
+ notice, so an up-to-date peer drops you too. Fire-and-forget: no retry, no ack — an
348
+ offline peer or dropped packet leaves the removal **local-only**, and the tool says
349
+ whether a notice was queued. Never report the peer's side as removed.
308
350
 
309
351
  ## Conversation rules (1:1 and fan-out)
310
352
 
@@ -325,45 +367,21 @@ When you bind an identity, offer the user, in plain language:
325
367
  - **Auto-wake** → arm the monitor: you hold a live `ours-mcp watch <id>` and react to each message as it arrives. **Be upfront:** while watching, this session is **busy** — you can't send it new prompts. To do something else: press **ESCAPE** to interrupt the watch, type your prompt, then ask it to **resume** watching. *(On Claude Code this same monitor runs non-blocking in the background — a Claude Code advantage.)*
326
368
  - **Manual** → don't arm it; ask it to check `get_messages` whenever you want. No blocking.
327
369
 
328
- ## Control plane — bind a monitoring proxy (human oversight of a fleet)
329
-
330
- This is **separate** from the wake-on-mail watch above. The control plane lets a **person's
331
- web-messenger account** (the ours web messenger, shipping as part of the upcoming ours-control-plane)
332
- oversee and command all agents under this host's **Human identity** from a **Control
333
- Panel**: view a **live monitoring feed** of monitored agents' traffic, create agents, edit
334
- their bios **and personas**, toggle each agent's monitoring, open a chat with any agent (the
335
- Human identity commands the agent to mint an invite — no out-of-band step), and remove agents. A
336
- coordinator can also set a worker's local persona via the cluster; the agent still asks the
337
- user before adopting it. All of it rides the same
338
- e2e channels as messages but in a separate control queue agents never see; monitoring bodies
339
- are never written to disk on the host.
340
-
341
- **Prerequisites**
342
- - The **Human identity** exists (`create_root_identity` — the onboarding step). The
343
- proxy binds to the Human identity.
344
- - The messenger account is already a **contact of the Human identity** — do the normal
345
- invite exchange first: bind the Human identity, `generate_invite`, and have the
346
- messenger redeem it (or redeem the messenger's invite with `add_contact`).
347
-
348
- **Binding ceremony (6-digit code, out-of-band)**
349
- 1. "bind my messenger account as the monitoring proxy" →
350
- `bind_monitoring_proxy({ contact: "<the messenger contact>" })`. This automatically
351
- targets the host's Human identity (you do **not** need to be bound as it). It returns a
352
- **6-digit code** (valid 5 minutes, 3 attempts) and shows it **here**.
353
- 2. **Read the code to the user.** They open the messenger → the conversation with the Human identity →
354
- **Control Panel** → enter the code. The code must travel **out-of-band** — reading it off
355
- this terminal is what proves you control both ends. **Never send the code over ours.**
356
- 3. On success the contact becomes the proxy. Confirm with `get_monitoring_status`.
357
-
358
- **Per-agent monitoring is controller-gated.** Once a proxy is bound, the proxy (Control
359
- Panel) turns an agent's monitoring on/off — there is **no local enable/disable tool**. A
360
- monitored agent reports a signed copy of every message it sends/receives to the Human
361
- identity's node, which forwards it to the proxy's feed.
362
-
363
- **Status** — "what's the monitoring/control state" → `get_monitoring_status()` reports the
364
- Human identity's bound proxy (if any), a pending code verification, queued copies/control
365
- requests, and each agent's monitoring ON/off. Works whenever the Human identity exists.
370
+ ## Control plane — human oversight of a fleet
371
+
372
+ **NOT AVAILABLE IN THIS RELEASE. Do not offer it, and do not call a tool for it.**
373
+ The `bind_monitoring_proxy` and `get_monitoring_status` MCP tools were removed with the
374
+ daemon-side control plane; there is no tool behind them and a call will fail. Nothing has
375
+ replaced them yet.
376
+
377
+ The capability itself is not cancelled: the monitoring/control surface remains in the
378
+ **protocol core**, untouched, for whenever it is reimplemented. What is gone is this
379
+ plugin's exposure of it as MCP tools.
366
380
 
381
+ If a user asks to bind a web-messenger account as a monitoring/control proxy, to open a
382
+ Control Panel, or to check monitoring status — say plainly that it is not available in this
383
+ release, and do not improvise a substitute. Per-identity wake-on-mail is a **different**
384
+ feature and still works; it is described above.
367
385
  ## Notes
368
386
 
369
387
  - Identities and their state (contacts, inbox, keys) persist under the daemon's state dir