@avatarsd-llc/libtracer-client 0.9.0 → 0.10.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.
@@ -100,14 +100,18 @@ export interface TopologyEdge {
100
100
  * which **broadcasts to every peer**. One request then draws N replies, which
101
101
  * corrupts a client's reply correlation — so descending by name is not merely
102
102
  * imprecise, it is actively wrong.
103
- * - The directed hop is the **enumerated peer name** (the registry's peer fallback).
104
- * That works for a CAN bus, whose peers are named `n5`/`n7` — but a ws bus names its
105
- * peers `<ip>:<port>`, and both `:` and `.` are **reserved characters that may not
106
- * appear in a path segment** (reference/03). So a ws bus's peers are enumerable but
107
- * **not addressable** by the path grammar, from any conforming client.
103
+ * - Descending **per peer** is expressible — every shipped bus transport names its
104
+ * peers with legal path segments (`p<slot>`, `n<id>` — #426, #1145), so a directed
105
+ * hop through the enumerated peer name exists — but this walk deliberately does not
106
+ * take it, on **cost** grounds: a bus's peer count is unbounded, and a walk that
107
+ * descends N peers per bus multiplies its request volume by N at every bus it
108
+ * crosses. The buses in question are exactly the constrained links (a CAN segment,
109
+ * an embedded ws listener) least able to absorb that traffic.
108
110
  *
109
111
  * The peers are therefore reported here — the walk knows they exist and can name them
110
- * — but they are not nodes, because nothing behind them can be read.
112
+ * — but they are **not descended by policy** (#1147), not by impossibility. A future
113
+ * opt-in (descend-on-request for a named bus link) could lift this per call; it is
114
+ * not built.
111
115
  */
112
116
  export interface TopologyBusPeers {
113
117
  /** @brief The {@link TopologyNode.id} owning the bus connection. */
package/dist/topology.js CHANGED
@@ -7,8 +7,10 @@ const utf8 = new TextDecoder();
7
7
  /**
8
8
  * @brief Characters reference/03 forbids inside a path segment (mirrors `tlv.ts`).
9
9
  *
10
- * Used to decide whether a bus peer's name could even be addressed as a hop — a ws
11
- * bus names peers `<ip>:<port>`, which contains two of these.
10
+ * Used to decide whether a bus peer's name could even be addressed as a hop. Every
11
+ * shipped bus transport now emits legal-segment peer names (`p<slot>`, `n<id>` —
12
+ * #426, #1145), but a peer name arrives over the wire and a client validates what
13
+ * it is sent rather than trusting a naming convention.
12
14
  */
13
15
  const RESERVED_SEGMENT_CHARS = /[/:.[\]*?]/;
14
16
  /** @brief `["b","c"]` → `"/b/c"`; `[]` → `"/"` (the vantage). */
@@ -179,7 +181,7 @@ export async function walkTopology(client, opts = {}) {
179
181
  continue;
180
182
  // A bus link is a dead end: routing through its NAME broadcasts to every peer,
181
183
  // drawing N replies for one request. Record its peers and stop. (See
182
- // TopologyBusPeers for why the directed per-peer hop is not expressible either.)
184
+ // TopologyBusPeers for why the per-peer hop, though expressible, is not taken.)
183
185
  const peers = await peersOf(route, id, module, name);
184
186
  if (peers.length > 0) {
185
187
  const routable = peers.every((p) => !RESERVED_SEGMENT_CHARS.test(p));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avatarsd-llc/libtracer-client",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "EXPERIMENTAL libtracer client SDK (#56, ADR-0034/0035) — a path-addressed client over the cross-validated codec (@avatarsd-llc/libtracer) and an injected transport seam (e.g. @avatarsd-llc/libtracer-ws). Speaks the RFC-0004 remote operations over FWD: read / write / await / readField / subscribe, each a FWD frame whose source-routed FWD{REPLY} is decoded back. Pre-1.0 and experimental.",
5
5
  "author": "avatarsd LLC",
6
6
  "license": "Apache-2.0",
@@ -33,8 +33,8 @@
33
33
  "access": "public"
34
34
  },
35
35
  "peerDependencies": {
36
- "@avatarsd-llc/libtracer": ">=0.9.0 <0.10.0",
37
- "@avatarsd-llc/libtracer-ws": ">=0.9.0 <0.10.0"
36
+ "@avatarsd-llc/libtracer": ">=0.10.0 <0.11.0",
37
+ "@avatarsd-llc/libtracer-ws": ">=0.10.0 <0.11.0"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@avatarsd-llc/libtracer-ws": {