agent-comms 2.11.0 → 2.13.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.
Files changed (36) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +1 -1
  4. package/dist/core/identity-store.d.ts +10 -0
  5. package/dist/core/identity-store.d.ts.map +1 -1
  6. package/dist/core/identity-store.js +54 -6
  7. package/dist/core/identity-store.js.map +1 -1
  8. package/dist/core/mesh-store.d.ts +23 -4
  9. package/dist/core/mesh-store.d.ts.map +1 -1
  10. package/dist/core/mesh-store.js +155 -12
  11. package/dist/core/mesh-store.js.map +1 -1
  12. package/dist/core/transport.d.ts +9 -1
  13. package/dist/core/transport.d.ts.map +1 -1
  14. package/dist/core/wire-mesh-transport.d.ts +5 -2
  15. package/dist/core/wire-mesh-transport.d.ts.map +1 -1
  16. package/dist/core/wire-mesh-transport.js +13 -1
  17. package/dist/core/wire-mesh-transport.js.map +1 -1
  18. package/dist/test/become-coordinator-actual-port.integration.test.js +1 -0
  19. package/dist/test/become-coordinator-actual-port.integration.test.js.map +1 -1
  20. package/dist/test/listener-policy.integration.test.js +1 -0
  21. package/dist/test/listener-policy.integration.test.js.map +1 -1
  22. package/dist/test/room-join-admission.test.js +1 -0
  23. package/dist/test/room-join-admission.test.js.map +1 -1
  24. package/dist/test/room-kick-revocation.integration.test.d.ts +7 -0
  25. package/dist/test/room-kick-revocation.integration.test.d.ts.map +1 -0
  26. package/dist/test/room-kick-revocation.integration.test.js +79 -0
  27. package/dist/test/room-kick-revocation.integration.test.js.map +1 -0
  28. package/dist/test/room-router.test.js +1 -0
  29. package/dist/test/room-router.test.js.map +1 -1
  30. package/dist/test/room-send-retry-queue.test.js +1 -0
  31. package/dist/test/room-send-retry-queue.test.js.map +1 -1
  32. package/dist/test/room-state-sync.integration.test.d.ts +5 -0
  33. package/dist/test/room-state-sync.integration.test.d.ts.map +1 -0
  34. package/dist/test/room-state-sync.integration.test.js +106 -0
  35. package/dist/test/room-state-sync.integration.test.js.map +1 -0
  36. package/package.json +1 -1
@@ -15,7 +15,7 @@
15
15
  "url": "https://github.com/ExaDev/agent-comms.git"
16
16
  },
17
17
  "description": "Cross-harness LLM agent communication mesh — rooms, DMs, and presence",
18
- "version": "2.11.0"
18
+ "version": "2.13.0"
19
19
  }
20
20
  ]
21
21
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agent-comms",
3
3
  "description": "Cross-harness LLM agent communication mesh — rooms, DMs, and presence",
4
- "version": "2.11.0",
4
+ "version": "2.13.0",
5
5
  "author": {
6
6
  "name": "ExaDev"
7
7
  },
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![GitHub](https://img.shields.io/badge/GitHub-181717?logo=github&logoColor=white)](https://github.com/ExaDev/agent-comms)
4
4
  [![npm](https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white)](https://www.npmjs.com/package/agent-comms)
5
- [![version](https://img.shields.io/badge/version-2.11.0-blue)](https://github.com/ExaDev/agent-comms/releases/tag/v2.11.0)
5
+ [![version](https://img.shields.io/badge/version-2.13.0-blue)](https://github.com/ExaDev/agent-comms/releases/tag/v2.13.0)
6
6
  [![CI](https://img.shields.io/github/actions/workflow/status/ExaDev/agent-comms/ci.yml?branch=main)](https://github.com/ExaDev/agent-comms/actions)
7
7
 
8
8
  Cross-harness communication mesh for LLM agents: rooms, DMs, presence, and visibility over TCP with zero filesystem dependencies.
@@ -32,4 +32,14 @@ export declare function loadRoomTokens(slot: IdentitySlot): Record<string, Capab
32
32
  export declare function saveRoomToken(slot: IdentitySlot, roomPath: string, token: CapabilityToken): void;
33
33
  /** Removes the persisted token for one room path, if any. A no-op if none was saved for that path. */
34
34
  export declare function deleteRoomToken(slot: IdentitySlot, roomPath: string): void;
35
+ /**
36
+ * The token-id this identity itself minted for the given member's room:member grant, or undefined if none is on record (the slot has never admitted this member, or the record predates this bookkeeping). A room owner consults this to revoke a specific member's own grant later -- a token-id, unlike the token itself, is never presented on the wire and so is never obtainable except from this identity's own memory of having minted it.
37
+ */
38
+ export declare function loadIssuedRoomGrant(slot: IdentitySlot, roomPath: string, memberDeviceHex: string): Uint8Array<ArrayBuffer> | undefined;
39
+ /**
40
+ * Records the token-id of a room:member grant this identity has just minted for memberDeviceHex in roomPath, surviving a restart the same way roomTokens does. Overwrites any earlier record for the same (roomPath, member) pair -- a fresh join/invite always supersedes the grant it replaces, so only the current token-id is ever worth revoking.
41
+ */
42
+ export declare function saveIssuedRoomGrant(slot: IdentitySlot, roomPath: string, memberDeviceHex: string, tokenId: Uint8Array): void;
43
+ /** Removes the recorded token-id for one (roomPath, member) grant, if any -- called once a kick has revoked it, so a later re-join mints and records a genuinely fresh one rather than leaving a stale entry alongside it. A no-op if none was recorded. */
44
+ export declare function deleteIssuedRoomGrant(slot: IdentitySlot, roomPath: string, memberDeviceHex: string): void;
35
45
  //# sourceMappingURL=identity-store.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"identity-store.d.ts","sourceRoot":"","sources":["../../src/core/identity-store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAOzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,4EAA4E;AAC5E,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAuJD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,CAgBrE;AAsCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,CAK5D;AAuBD;;GAEG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,GACjB,MAAM,CAAC,MAAM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CAAC,WAAW,CAAC,GAAG,SAAS,CAQrC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,UAAU,GAClB,IAAI,CAcN;AAED,4PAA4P;AAC5P,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,IAAI,CASN"}
@@ -37,12 +37,21 @@ function isStoredIdentity(value) {
37
37
  typeof value.certificate !== "string" ||
38
38
  typeof value.expiresAt !== "string")
39
39
  return false;
40
- if (!("roomTokens" in value))
41
- return true;
42
- const { roomTokens } = value;
43
- if (typeof roomTokens !== "object" || roomTokens === null)
44
- return false;
45
- return Object.values(roomTokens).every(isSerializedCapabilityToken);
40
+ if ("roomTokens" in value) {
41
+ const { roomTokens } = value;
42
+ if (typeof roomTokens !== "object" || roomTokens === null)
43
+ return false;
44
+ if (!Object.values(roomTokens).every(isSerializedCapabilityToken))
45
+ return false;
46
+ }
47
+ if ("issuedGrants" in value) {
48
+ const { issuedGrants } = value;
49
+ if (typeof issuedGrants !== "object" || issuedGrants === null)
50
+ return false;
51
+ if (!Object.values(issuedGrants).every((v) => typeof v === "string"))
52
+ return false;
53
+ }
54
+ return true;
46
55
  }
47
56
  function serializeToken(token) {
48
57
  const [protectedHeader, unprotectedHeader, payload, signature] = token;
@@ -239,4 +248,43 @@ export function deleteRoomToken(slot, roomPath) {
239
248
  const roomTokens = Object.fromEntries(Object.entries(stored.roomTokens).filter(([path]) => path !== roomPath));
240
249
  writeStoredIdentity(identityFile, { ...stored, roomTokens });
241
250
  }
251
+ function issuedGrantKey(roomPath, memberDeviceHex) {
252
+ return `${roomPath}::${memberDeviceHex}`;
253
+ }
254
+ /**
255
+ * The token-id this identity itself minted for the given member's room:member grant, or undefined if none is on record (the slot has never admitted this member, or the record predates this bookkeeping). A room owner consults this to revoke a specific member's own grant later -- a token-id, unlike the token itself, is never presented on the wire and so is never obtainable except from this identity's own memory of having minted it.
256
+ */
257
+ export function loadIssuedRoomGrant(slot, roomPath, memberDeviceHex) {
258
+ const { identityFile } = slotPaths(slot);
259
+ const stored = readStoredIdentity(identityFile);
260
+ const encoded = stored?.issuedGrants?.[issuedGrantKey(roomPath, memberDeviceHex)];
261
+ return encoded === undefined
262
+ ? undefined
263
+ : Uint8Array.from(Buffer.from(encoded, "base64"));
264
+ }
265
+ /**
266
+ * Records the token-id of a room:member grant this identity has just minted for memberDeviceHex in roomPath, surviving a restart the same way roomTokens does. Overwrites any earlier record for the same (roomPath, member) pair -- a fresh join/invite always supersedes the grant it replaces, so only the current token-id is ever worth revoking.
267
+ */
268
+ export function saveIssuedRoomGrant(slot, roomPath, memberDeviceHex, tokenId) {
269
+ const { identityFile } = slotPaths(slot);
270
+ const stored = readStoredIdentity(identityFile);
271
+ if (stored === undefined) {
272
+ throw new Error(`no identity persisted for this slot yet -- call loadOrCreateIdentity first (${identityFile})`);
273
+ }
274
+ const issuedGrants = {
275
+ ...stored.issuedGrants,
276
+ [issuedGrantKey(roomPath, memberDeviceHex)]: Buffer.from(tokenId).toString("base64"),
277
+ };
278
+ writeStoredIdentity(identityFile, { ...stored, issuedGrants });
279
+ }
280
+ /** Removes the recorded token-id for one (roomPath, member) grant, if any -- called once a kick has revoked it, so a later re-join mints and records a genuinely fresh one rather than leaving a stale entry alongside it. A no-op if none was recorded. */
281
+ export function deleteIssuedRoomGrant(slot, roomPath, memberDeviceHex) {
282
+ const { identityFile } = slotPaths(slot);
283
+ const stored = readStoredIdentity(identityFile);
284
+ if (stored?.issuedGrants === undefined)
285
+ return;
286
+ const key = issuedGrantKey(roomPath, memberDeviceHex);
287
+ const issuedGrants = Object.fromEntries(Object.entries(stored.issuedGrants).filter(([k]) => k !== key));
288
+ writeStoredIdentity(identityFile, { ...stored, issuedGrants });
289
+ }
242
290
  //# sourceMappingURL=identity-store.js.map
@@ -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AAC,YAAY;QACtB,CAAC,cAAc,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,EACzC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;KAC1C,CAAC;IACF,mBAAmB,CAAC,YAAY,EAAE,EAAE,GAAG,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;AACjE,CAAC;AAED,4PAA4P;AAC5P,MAAM,UAAU,qBAAqB,CACnC,IAAkB,EAClB,QAAgB,EAChB,eAAuB;IAEvB,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAChD,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS;QAAE,OAAO;IAC/C,MAAM,GAAG,GAAG,cAAc,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IACtD,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CACrC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAC/D,CAAC;IACF,mBAAmB,CAAC,YAAY,EAAE,EAAE,GAAG,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;AACjE,CAAC"}
@@ -17,7 +17,7 @@ import type { SerialisedState } from "./wire-protocol.js";
17
17
  import { DiscoveryManager } from "./discovery.js";
18
18
  import { FederationManager } from "./federation.js";
19
19
  import type { FedLink } from "./federation.js";
20
- import type { RevocationCheck } from "wire-mesh-core/domain/tokens";
20
+ import type { RevocationView } from "wire-mesh-core/domain/revocation-view";
21
21
  import type { IdentityPort } from "wire-mesh-core/ports/identity";
22
22
  import type { Clock } from "wire-mesh-core/ports/clock";
23
23
  import type { RoomVerbHandler } from "./room-router.js";
@@ -25,15 +25,15 @@ import type { IdentitySlot } from "./identity-store.js";
25
25
  import type { MeshStatePatch } from "./wire-protocol.js";
26
26
  import type { MeshTransport, TransportEvents } from "./transport.js";
27
27
  import type { CommsStore } from "./comms-store.js";
28
- import { StreamingBehavior } from "./types.js";
29
- import type { AgentIdentity, DeliveryEvent, DmMessage, MeshVisibility, NetworkInterface, Room, RoomMessage, RoomType, Visibility } from "./types.js";
28
+ import { RoomType, StreamingBehavior } from "./types.js";
29
+ import type { AgentIdentity, DeliveryEvent, DmMessage, MeshVisibility, NetworkInterface, Room, RoomMessage, Visibility } from "./types.js";
30
30
  import type { ListenerInfo } from "./transport.js";
31
31
  /** The identity/clock/persistence collaborators MeshStore mints and persists room-membership grants against. Set via setIdentity(), mirroring the transport's own setTransport() contract. */
32
32
  export interface MeshStoreIdentity {
33
33
  identity: IdentityPort;
34
34
  clock: Clock;
35
35
  slot: IdentitySlot;
36
- revocation: RevocationCheck;
36
+ revocation: RevocationView;
37
37
  }
38
38
  export declare class MeshStore implements CommsStore {
39
39
  peerId: string;
@@ -120,6 +120,8 @@ export declare class MeshStore implements CommsStore {
120
120
  startDataServerOnly(): Promise<void>;
121
121
  /** Returns the TransportEvents object that bridges should pass to the transport constructor. */
122
122
  get events(): TransportEvents;
123
+ /** Verifies a gossiped revocation-entry and, if it verifies, records it in this store's own RevocationView -- future verifyRoomToken calls against this token's (token-id, issuer) pair fail with "revoked" from this point on. A failing entry is dropped silently: the same "hostile input produces a verdict, never a throw" contract verifyRevocationEntry itself already guarantees, so there is nothing further for a caller to react to. */
124
+ private handleRevocationAnnounce;
123
125
  /** Append to a target agent's delivery queue, bounded oldest-first (#28). */
124
126
  private queueDelivery;
125
127
  /**
@@ -204,6 +206,10 @@ export declare class MeshStore implements CommsStore {
204
206
  * Receiving side of a directed room.read (P3.5): verifies the presented token the same way handleRoomSend does, then for each read message-id in the batch, updates this store's own local copy of that message's readBy (this store holds one because it's the message's own author -- the reason it's the one being notified) and fires a delivery_status event locally, replacing what markRead used to broadcast via the legacy message_read patch. Read receipts stay voluntary and best-effort by design: a message-id this store doesn't recognise (already expired from history, or simply never this store's own) is silently skipped rather than treated as an error.
205
207
  */
206
208
  private handleRoomRead;
209
+ /**
210
+ * Receiving side of room.members (P3.6): a plain membership + room-state refresh for an already-admitted member, verified the same way handleRoomSend/handleRoomRead are -- room.members grants nothing new, it just answers "who's here, and what's this room called" on demand, the same information room.join's own response already carries at admission time. A DM path has no Room record (this.rooms never holds one for a dm-shaped path) and no name/description/type to report, so its own members list is derived directly from the path's own two participants instead.
211
+ */
212
+ private handleRoomMembers;
207
213
  /**
208
214
  * Sends one directed room.send to a single member's own session, attaching this store's own persisted room:member token for the given room path -- the primitive P3.5's own directed fan-out (deliverToRoom) will loop over per member once it replaces the legacy broadcastPatch path this store still uses for message delivery today. Throws if this store holds no token for the room: never a member, or a token that expired or was revoked with nothing fresh persisted in its place.
209
215
  */
@@ -222,6 +228,12 @@ export declare class MeshStore implements CommsStore {
222
228
  private handleRoomJoin;
223
229
  /** Shared admission continuation for both room.join branches above: waits for a human decision (unless auto-approved), then mints and returns the requester's own independent, parent-less room:member grant. */
224
230
  private admitRoomJoin;
231
+ /**
232
+ * Room metadata (name/description/type) riding room-join-ok/room-members-ok's own open extension tail (P3.6), agent-comms' own convention for the "namespaced room-state extension" the design names -- core/room itself has no concept of a display name or description, so this is application data, not a wire-level field. Absent entirely for a DM path (room is undefined there; a DM has no name/description/type to report) rather than a hollow placeholder.
233
+ */
234
+ private static roomStateExtension;
235
+ /** The receiving-side counterpart of roomStateExtension: narrows an incoming response's own "room-state" field (an unknown, since it rides the wire schema's open catchall tail) to the shape this store's own convention actually sends, or undefined for a peer running without it (an older version, or a DM's own room-join-ok, which never carries one). */
236
+ private static parseRoomStateExtension;
225
237
  /** Every room.join request currently held open awaiting this store's own accept/reject decision. */
226
238
  listPendingRoomJoins(): {
227
239
  roomPath: string;
@@ -244,6 +256,10 @@ export declare class MeshStore implements CommsStore {
244
256
  * The remote-join path: roomPath names an owner-named room this store has never seen replicated, so joining it means sending a real wire-level room.join request to the room's own owner and persisting whatever grant comes back, rather than mutating already-known local state. Only ever called for this store's own local agent (one bridge is one agent is one device, per the design's own organising fact) -- there is no wire mechanism by which this node could join a room on a different local agent's behalf.
245
257
  */
246
258
  private joinRemoteRoom;
259
+ /**
260
+ * Refreshes this store's own local copy of a named room's membership and room-state via a real room.members request (P3.6): the same information room.join's own response carries at admission time, available on demand for a member whose local copy may have drifted (a kick, an invite, a rename since it joined). Sent to the room's own owner, the authoritative source for that room's real state. Named rooms only, matching joinRemoteRoom's own restriction -- a DM's "membership" is already fully known from the path itself (the sorted pair of exactly two participants), and this codebase has no Room-object representation for a DM to refresh into (DM state lives in this.dms, keyed by message history, not this.rooms). Throws if this store holds no room:member token for roomPath -- refreshing membership presupposes already being a member, the same NOT_A_MEMBER contract sendRoomMessageDirected already uses.
261
+ */
262
+ refreshRoomMembers(roomPath: string): Promise<Room>;
247
263
  /**
248
264
  * The requester's own half of section 6's two-round DM consent flow: sends an ungated room.join scoped to dmRoomPath(this, counterpart) directly to the counterpart, records having initiated it so the counterpart's own reciprocal room.join back auto-approves rather than surfacing as a fresh, unsolicited request, and persists whatever grant comes back. Deliberately outside the CommsStore interface, like connection approval, since it is a wire-mesh-specific concern FileStore has no equivalent for. Safe to call again for the same counterpart later (e.g. after an earlier request expired or was rejected) -- it always sends a fresh request rather than checking for an existing token first.
249
265
  */
@@ -255,6 +271,9 @@ export declare class MeshStore implements CommsStore {
255
271
  leaveRoom(roomId: string, agentId: string): Promise<void>;
256
272
  inviteToRoom(roomId: string, targetId: string, inviterId: string): Promise<void>;
257
273
  declineInvite(roomId: string, agentId: string, reason: string): Promise<void>;
274
+ /**
275
+ * Kicks targetId from roomId. Beyond the legacy CRDT membership removal (retired in P3.8 along with every other non-message broadcastPatch caller), this revokes the member's own room:member grant for real: mints a revocation-entry for the token-id this identity recorded when it admitted them (admitRoomJoin's own saveIssuedRoomGrant), records it in this store's own RevocationView immediately (so this identity's own future verifications see the kick without waiting on its own gossip), and announces it to every connected peer so each one's independent verification of the target's token -- not just this room's owner -- also starts failing as "revoked" from here on. Silently skips the revocation step (kick still happens; only the token-side enforcement doesn't) when no issued-grant record exists for this member, e.g. a grant predating this bookkeeping.
276
+ */
258
277
  kickFromRoom(roomId: string, targetId: string, kickerId: string): Promise<void>;
259
278
  destroyRoom(roomId: string, agentId: string): Promise<void>;
260
279
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mesh-store.d.ts","sourceRoot":"","sources":["../../src/core/mesh-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAS/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAcxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAMxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAe,cAAc,EAAY,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAEV,aAAa,EACb,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EACV,aAAa,EAEb,aAAa,EAEb,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,UAAU,EACX,MAAM,YAAY,CAA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@@ -24,12 +24,12 @@ import { TailscaleDiscoveryBackend } from "./discovery-tailscale.js";
24
24
  import { FederationManager } from "./federation.js";
25
25
  import { getCertificateFingerprint } from "./identity.js";
26
26
  import { bytesFromHex, bytesToHex, deviceIdFromHex, deviceIdToHex, } from "wire-mesh-core/domain/device-id";
27
- import { mintCapabilityToken } from "wire-mesh-core/domain/tokens";
28
- import { roomJoinOkSchema, roomReadSchema, roomSendSchema, } from "wire-mesh-core/generated/protocol";
27
+ import { mintCapabilityToken, mintRevocationEntry, } from "wire-mesh-core/domain/tokens";
28
+ import { roomJoinOkSchema, roomMembersOkSchema, roomReadSchema, roomSendSchema, } from "wire-mesh-core/generated/protocol";
29
29
  import { ROOM_MEMBER_CAPABILITY, verifyRoomToken, } from "./room-token-verification.js";
30
- import { loadRoomTokens, saveRoomToken } from "./identity-store.js";
30
+ import { deleteIssuedRoomGrant, loadIssuedRoomGrant, loadRoomTokens, saveIssuedRoomGrant, saveRoomToken, } from "./identity-store.js";
31
31
  import { randomId } from "./random-id.js";
32
- import { StreamingBehavior } from "./types.js";
32
+ import { RoomType, StreamingBehavior } from "./types.js";
33
33
  // ---------------------------------------------------------------------------
34
34
  // Constants
35
35
  // ---------------------------------------------------------------------------
@@ -474,8 +474,16 @@ export class MeshStore {
474
474
  onError: (error) => {
475
475
  this.onError?.(error);
476
476
  },
477
+ onRevocationAnnounce: (entry) => {
478
+ void this.handleRevocationAnnounce(entry);
479
+ },
477
480
  };
478
481
  }
482
+ /** Verifies a gossiped revocation-entry and, if it verifies, records it in this store's own RevocationView -- future verifyRoomToken calls against this token's (token-id, issuer) pair fail with "revoked" from this point on. A failing entry is dropped silently: the same "hostile input produces a verdict, never a throw" contract verifyRevocationEntry itself already guarantees, so there is nothing further for a caller to react to. */
483
+ async handleRevocationAnnounce(entry) {
484
+ const { identity, revocation } = this.requireIdentity();
485
+ await revocation.record(entry, { identity });
486
+ }
479
487
  /** Append to a target agent's delivery queue, bounded oldest-first (#28). */
480
488
  queueDelivery(agentId, event) {
481
489
  const arr = this.deliveryQueues.get(agentId) ?? [];
@@ -960,6 +968,7 @@ export class MeshStore {
960
968
  "room.join": (request, handle) => this.handleRoomJoin(request, handle),
961
969
  "room.send": (request, handle) => this.handleRoomSend(request, handle),
962
970
  "room.read": (request, handle) => this.handleRoomRead(request, handle),
971
+ "room.members": (request, handle) => this.handleRoomMembers(request, handle),
963
972
  };
964
973
  }
965
974
  /** Reads the "reply" message-ref out of a room.send's own params (if any) and returns the hex id it names -- room.send's replyTo carries a single parent message, so the first reply-relation ref is the one that matters; any further refs are a future relation this handler doesn't yet act on. */
@@ -1094,6 +1103,43 @@ export class MeshStore {
1094
1103
  }
1095
1104
  return { result: "ok" };
1096
1105
  }
1106
+ /**
1107
+ * Receiving side of room.members (P3.6): a plain membership + room-state refresh for an already-admitted member, verified the same way handleRoomSend/handleRoomRead are -- room.members grants nothing new, it just answers "who's here, and what's this room called" on demand, the same information room.join's own response already carries at admission time. A DM path has no Room record (this.rooms never holds one for a dm-shaped path) and no name/description/type to report, so its own members list is derived directly from the path's own two participants instead.
1108
+ */
1109
+ async handleRoomMembers(request, handle) {
1110
+ const roomPath = request.scope.path;
1111
+ if (roomPath === undefined) {
1112
+ return { result: "error", code: "missing_scope_path" };
1113
+ }
1114
+ if (request.token === undefined) {
1115
+ return { result: "error", code: "unauthorized" };
1116
+ }
1117
+ const { identity, clock, revocation } = this.requireIdentity();
1118
+ const verdict = await verifyRoomToken(request.token, {
1119
+ identity,
1120
+ clock,
1121
+ revocation,
1122
+ expectedBearer: deviceIdFromHex(handle.id),
1123
+ roomPath,
1124
+ });
1125
+ if (!verdict.ok) {
1126
+ return { result: "error", code: "unauthorized" };
1127
+ }
1128
+ const parsedPath = parseRoomPath(roomPath);
1129
+ const room = this.rooms.get(roomPath);
1130
+ const members = parsedPath.kind === "dm"
1131
+ ? parsedPath.participants.map((device) => ({
1132
+ device: deviceIdFromHex(device),
1133
+ }))
1134
+ : (room?.members ?? []).map((memberId) => ({
1135
+ device: deviceIdFromHex(memberId),
1136
+ }));
1137
+ return {
1138
+ result: "ok",
1139
+ members,
1140
+ ...MeshStore.roomStateExtension(room),
1141
+ };
1142
+ }
1097
1143
  /**
1098
1144
  * Sends one directed room.send to a single member's own session, attaching this store's own persisted room:member token for the given room path -- the primitive P3.5's own directed fan-out (deliverToRoom) will loop over per member once it replaces the legacy broadcastPatch path this store still uses for message delivery today. Throws if this store holds no token for the room: never a member, or a token that expired or was revoked with nothing fresh persisted in its place.
1099
1145
  */
@@ -1198,12 +1244,13 @@ export class MeshStore {
1198
1244
  ...(decision.reason !== undefined ? { message: decision.reason } : {}),
1199
1245
  };
1200
1246
  }
1201
- // Only identity/clock are needed here: the granted token belongs to the requester's own node, which persists it itself once it receives this response, not this store's own identity slot.
1202
- const { identity, clock } = this.requireIdentity();
1247
+ // The granted token itself belongs to the requester's own node, which persists it itself once it receives this response -- but this identity slot must also remember the token-id it just issued (saveIssuedRoomGrant below), since revoking a specific member's grant later (kickFromRoom) has no other way to name which token-id to revoke: a token-id is never presented back on the wire, so a room owner's own memory of having minted it is the only record.
1248
+ const { identity, clock, slot } = this.requireIdentity();
1249
+ const tokenId = randomId();
1203
1250
  const verdict = await mintCapabilityToken({
1204
1251
  identity,
1205
1252
  clock,
1206
- tokenId: randomId(),
1253
+ tokenId,
1207
1254
  bearer: deviceIdFromHex(handle.id),
1208
1255
  capability: "room:member",
1209
1256
  scope: { kind: "room", path: roomPath },
@@ -1213,6 +1260,7 @@ export class MeshStore {
1213
1260
  if (!verdict.ok) {
1214
1261
  return { result: "error", code: "mint_failed" };
1215
1262
  }
1263
+ saveIssuedRoomGrant(slot, roomPath, handle.id, tokenId);
1216
1264
  const room = this.rooms.get(roomPath);
1217
1265
  if (room !== undefined) {
1218
1266
  this.bump(room);
@@ -1221,7 +1269,43 @@ export class MeshStore {
1221
1269
  this.rooms.set(roomPath, room);
1222
1270
  }
1223
1271
  const members = (room?.members ?? [this.peerId, handle.id]).map((memberId) => ({ device: deviceIdFromHex(memberId) }));
1224
- return { result: "ok", "granted-token": verdict.token, members };
1272
+ return {
1273
+ result: "ok",
1274
+ "granted-token": verdict.token,
1275
+ members,
1276
+ ...MeshStore.roomStateExtension(room),
1277
+ };
1278
+ }
1279
+ /**
1280
+ * Room metadata (name/description/type) riding room-join-ok/room-members-ok's own open extension tail (P3.6), agent-comms' own convention for the "namespaced room-state extension" the design names -- core/room itself has no concept of a display name or description, so this is application data, not a wire-level field. Absent entirely for a DM path (room is undefined there; a DM has no name/description/type to report) rather than a hollow placeholder.
1281
+ */
1282
+ static roomStateExtension(room) {
1283
+ if (room === undefined)
1284
+ return {};
1285
+ return {
1286
+ "room-state": {
1287
+ name: room.name,
1288
+ description: room.description,
1289
+ type: room.type,
1290
+ },
1291
+ };
1292
+ }
1293
+ /** The receiving-side counterpart of roomStateExtension: narrows an incoming response's own "room-state" field (an unknown, since it rides the wire schema's open catchall tail) to the shape this store's own convention actually sends, or undefined for a peer running without it (an older version, or a DM's own room-join-ok, which never carries one). */
1294
+ static parseRoomStateExtension(value) {
1295
+ if (typeof value !== "object" || value === null)
1296
+ return undefined;
1297
+ if (!("name" in value) || !("description" in value) || !("type" in value))
1298
+ return undefined;
1299
+ if (typeof value.name !== "string" || typeof value.description !== "string")
1300
+ return undefined;
1301
+ const parsedType = RoomType.safeParse(value.type);
1302
+ if (!parsedType.success)
1303
+ return undefined;
1304
+ return {
1305
+ name: value.name,
1306
+ description: value.description,
1307
+ type: parsedType.data,
1308
+ };
1225
1309
  }
1226
1310
  /** Every room.join request currently held open awaiting this store's own accept/reject decision. */
1227
1311
  listPendingRoomJoins() {
@@ -1315,15 +1399,16 @@ export class MeshStore {
1315
1399
  const { slot } = this.requireIdentity();
1316
1400
  saveRoomToken(slot, roomPath, grantedToken);
1317
1401
  const members = memberList.map((member) => deviceIdToHex(member.device));
1402
+ const roomState = MeshStore.parseRoomStateExtension(parsedOutcome.data["room-state"]);
1318
1403
  const room = {
1319
1404
  id: roomPath,
1320
1405
  version: 1,
1321
- name: parsed.localName,
1322
- // The wire-level room.join response carries no room type or description -- that metadata is P3.6's own job (the room.members response's namespaced room-state extension). "public" is inert here rather than a real classification: the one place type is read (listRooms' secret-room filter) never hides a room from its own member, and this joiner is always in `members` by construction.
1323
- type: "public",
1406
+ name: roomState?.name ?? parsed.localName,
1407
+ // Falls back to "public" only against a peer running without the room-state extension (an older version); this joiner is always in `members` by construction regardless, so a stale "public" classification here never hides the room from its own member -- the one place type is read (listRooms' secret-room filter).
1408
+ type: roomState?.type ?? "public",
1324
1409
  owner: parsed.owner,
1325
1410
  createdAt: new Date().toISOString(),
1326
- description: "",
1411
+ description: roomState?.description ?? "",
1327
1412
  members,
1328
1413
  invited: [],
1329
1414
  memberJoins: Object.fromEntries(members.map((member) => [member, 1])),
@@ -1336,6 +1421,49 @@ export class MeshStore {
1336
1421
  this.messages.set(roomPath, []);
1337
1422
  return room;
1338
1423
  }
1424
+ /**
1425
+ * Refreshes this store's own local copy of a named room's membership and room-state via a real room.members request (P3.6): the same information room.join's own response carries at admission time, available on demand for a member whose local copy may have drifted (a kick, an invite, a rename since it joined). Sent to the room's own owner, the authoritative source for that room's real state. Named rooms only, matching joinRemoteRoom's own restriction -- a DM's "membership" is already fully known from the path itself (the sorted pair of exactly two participants), and this codebase has no Room-object representation for a DM to refresh into (DM state lives in this.dms, keyed by message history, not this.rooms). Throws if this store holds no room:member token for roomPath -- refreshing membership presupposes already being a member, the same NOT_A_MEMBER contract sendRoomMessageDirected already uses.
1426
+ */
1427
+ async refreshRoomMembers(roomPath) {
1428
+ const parsed = parseRoomPath(roomPath);
1429
+ if (parsed.kind !== "owner-named") {
1430
+ throw new CommsError(`Room ${roomPath} not found`, "ROOM_NOT_FOUND");
1431
+ }
1432
+ const { slot } = this.requireIdentity();
1433
+ const token = loadRoomTokens(slot)[roomPath];
1434
+ if (token === undefined) {
1435
+ throw new CommsError(`No room:member token for ${roomPath}`, "NOT_MEMBER");
1436
+ }
1437
+ const outcome = await this.requireTransport().sendRoomRequest(parsed.owner, { verb: ROOM_MEMBER_CAPABILITY, params: { verb: "room.members" } }, { kind: "room", path: roomPath }, token);
1438
+ if (outcome.result !== "ok") {
1439
+ throw new CommsError(`room.members refresh for ${roomPath} failed (${outcome.code})`, "REFRESH_FAILED");
1440
+ }
1441
+ const parsedOutcome = roomMembersOkSchema.safeParse(outcome);
1442
+ if (!parsedOutcome.success) {
1443
+ throw new CommsError(`room.members response for ${roomPath} was malformed`, "MALFORMED_RESPONSE");
1444
+ }
1445
+ const members = parsedOutcome.data.members.map((member) => deviceIdToHex(member.device));
1446
+ const roomState = MeshStore.parseRoomStateExtension(parsedOutcome.data["room-state"]);
1447
+ const existing = this.rooms.get(roomPath);
1448
+ const room = {
1449
+ id: roomPath,
1450
+ version: (existing?.version ?? 0) + 1,
1451
+ name: roomState?.name ?? existing?.name ?? parsed.localName,
1452
+ type: roomState?.type ?? existing?.type ?? "public",
1453
+ owner: parsed.owner,
1454
+ createdAt: existing?.createdAt ?? new Date().toISOString(),
1455
+ description: roomState?.description ?? existing?.description ?? "",
1456
+ members,
1457
+ invited: existing?.invited ?? [],
1458
+ memberJoins: Object.fromEntries(members.map((member) => [member, 1])),
1459
+ memberLeaves: {},
1460
+ invitedJoins: existing?.invitedJoins ?? {},
1461
+ invitedLeaves: existing?.invitedLeaves ?? {},
1462
+ federated: existing?.federated ?? false,
1463
+ };
1464
+ this.rooms.set(roomPath, room);
1465
+ return room;
1466
+ }
1339
1467
  /**
1340
1468
  * The requester's own half of section 6's two-round DM consent flow: sends an ungated room.join scoped to dmRoomPath(this, counterpart) directly to the counterpart, records having initiated it so the counterpart's own reciprocal room.join back auto-approves rather than surfacing as a fresh, unsolicited request, and persists whatever grant comes back. Deliberately outside the CommsStore interface, like connection approval, since it is a wire-mesh-specific concern FileStore has no equivalent for. Safe to call again for the same counterpart later (e.g. after an earlier request expired or was rejected) -- it always sends a fresh request rather than checking for an existing token first.
1341
1469
  */
@@ -1489,12 +1617,27 @@ export class MeshStore {
1489
1617
  reason,
1490
1618
  });
1491
1619
  }
1620
+ /**
1621
+ * Kicks targetId from roomId. Beyond the legacy CRDT membership removal (retired in P3.8 along with every other non-message broadcastPatch caller), this revokes the member's own room:member grant for real: mints a revocation-entry for the token-id this identity recorded when it admitted them (admitRoomJoin's own saveIssuedRoomGrant), records it in this store's own RevocationView immediately (so this identity's own future verifications see the kick without waiting on its own gossip), and announces it to every connected peer so each one's independent verification of the target's token -- not just this room's owner -- also starts failing as "revoked" from here on. Silently skips the revocation step (kick still happens; only the token-side enforcement doesn't) when no issued-grant record exists for this member, e.g. a grant predating this bookkeeping.
1622
+ */
1492
1623
  async kickFromRoom(roomId, targetId, kickerId) {
1493
1624
  const room = this.rooms.get(roomId);
1494
1625
  if (!room)
1495
1626
  throw new CommsError(`Room ${roomId} not found`, "ROOM_NOT_FOUND");
1496
1627
  if (room.owner !== kickerId)
1497
1628
  throw new CommsError("Only the room owner can kick", "NOT_OWNER");
1629
+ const { identity, clock, slot, revocation } = this.requireIdentity();
1630
+ const tokenId = loadIssuedRoomGrant(slot, roomId, targetId);
1631
+ if (tokenId !== undefined) {
1632
+ const entry = await mintRevocationEntry({
1633
+ identity,
1634
+ tokenId,
1635
+ revokedAt: clock.now(),
1636
+ });
1637
+ await revocation.record(entry, { identity });
1638
+ await this.requireTransport().broadcastRevocation([entry]);
1639
+ deleteIssuedRoomGrant(slot, roomId, targetId);
1640
+ }
1498
1641
  this.bump(room);
1499
1642
  this.recordMemberOp(room, "member", "leave", targetId);
1500
1643
  this.recordMemberOp(room, "invited", "leave", targetId);