@cello-protocol/daemon 0.0.196 → 0.0.197

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 (39) hide show
  1. package/dist/held-content.d.ts +7 -3
  2. package/dist/held-content.d.ts.map +1 -1
  3. package/dist/held-content.js.map +1 -1
  4. package/dist/session-content-context.d.ts +144 -0
  5. package/dist/session-content-context.d.ts.map +1 -0
  6. package/dist/session-content-context.js +2 -0
  7. package/dist/session-content-context.js.map +1 -0
  8. package/dist/session-content-ingest.d.ts +208 -0
  9. package/dist/session-content-ingest.d.ts.map +1 -0
  10. package/dist/session-content-ingest.js +2216 -0
  11. package/dist/session-content-ingest.js.map +1 -0
  12. package/dist/session-content-send.d.ts +184 -0
  13. package/dist/session-content-send.d.ts.map +1 -0
  14. package/dist/session-content-send.js +1300 -0
  15. package/dist/session-content-send.js.map +1 -0
  16. package/dist/session-lifecycle.d.ts +303 -0
  17. package/dist/session-lifecycle.d.ts.map +1 -0
  18. package/dist/session-lifecycle.js +1643 -0
  19. package/dist/session-lifecycle.js.map +1 -0
  20. package/dist/session-node-manager.d.ts +67 -766
  21. package/dist/session-node-manager.d.ts.map +1 -1
  22. package/dist/session-node-manager.js +966 -7940
  23. package/dist/session-node-manager.js.map +1 -1
  24. package/dist/session-node-types.d.ts +22 -0
  25. package/dist/session-node-types.d.ts.map +1 -1
  26. package/dist/session-node-types.js.map +1 -1
  27. package/dist/session-relay.d.ts +361 -0
  28. package/dist/session-relay.d.ts.map +1 -0
  29. package/dist/session-relay.js +1471 -0
  30. package/dist/session-relay.js.map +1 -0
  31. package/dist/session-salts.d.ts +13 -0
  32. package/dist/session-salts.d.ts.map +1 -1
  33. package/dist/session-salts.js +13 -0
  34. package/dist/session-salts.js.map +1 -1
  35. package/dist/session-seal.d.ts +336 -0
  36. package/dist/session-seal.d.ts.map +1 -0
  37. package/dist/session-seal.js +948 -0
  38. package/dist/session-seal.js.map +1 -0
  39. package/package.json +5 -5
@@ -703,6 +703,28 @@ export interface SentAuthorship {
703
703
  senderPubkey: Uint8Array;
704
704
  senderSig: Uint8Array;
705
705
  }
706
+ /**
707
+ * One message that has been sent and is waiting for the counterparty's delivery acknowledgement.
708
+ *
709
+ * Named rather than inline because the map it lives in is now shared between the manager and the
710
+ * content pipeline, and a shared shape spelled out twice is a shape that stops agreeing.
711
+ *
712
+ * ⚠️ **EVERYTHING NEEDED TO RE-PARK THIS MESSAGE IS HERE, and that is why the entry is this fat.**
713
+ * When the acknowledgement never comes, the retry has to reproduce the message the peer would have
714
+ * refused — the same bytes, the same hash algorithm, the same signed Structure 1 and the same leaf
715
+ * kind. A retry that rebuilds any of those from what the session holds NOW answers "how would we
716
+ * send this today", which is a different message with a different hash, and the peer refuses it.
717
+ */
718
+ export interface AwaitingAckEntry {
719
+ timer: ReturnType<typeof setTimeout>;
720
+ content: Uint8Array;
721
+ correlationId?: string;
722
+ structure1Cbor?: Uint8Array;
723
+ structure2Cbor?: Uint8Array;
724
+ contentHashAlg?: string;
725
+ structure1Signature?: Uint8Array;
726
+ leafKind?: number;
727
+ }
706
728
  /**
707
729
  * `DOD-M15-AUTHORSHIP-ABSENT-1` — the answer to "did the sender prove they wrote this message?",
708
730
  * with the three NOT-YES cases kept apart because they are three different facts about the peer.
@@ -1 +1 @@
1
- {"version":3,"file":"session-node-types.d.ts","sourceRoot":"","sources":["../src/session-node-types.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;A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AAM,iBAAiB,GAAG,GAAG,CAAC;AAGrC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;;+DAE0B,CAAC;AAEhE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAAiE,CAAC"}
@@ -0,0 +1,361 @@
1
+ import type { Stream } from "@libp2p/interface";
2
+ import { NodeAutoNatService, type CelloNode } from "@cello-protocol/transport";
3
+ import { SessionConnectionGater } from "./session-connection-gater.js";
4
+ import { type QuarantineFrameMeta } from "./quarantine-framing.js";
5
+ import type { Logger } from "./types.js";
6
+ import type { DaemonDatabase } from "./sqlcipher-db.js";
7
+ import { RelayReceiptStore, type RelayReceipt } from "./relay-receipt-store.js";
8
+ import { SessionSealLeafStore } from "./session-seal-leaf-store.js";
9
+ import type { SessionOwnChainStore } from "./session-own-chain-store.js";
10
+ import type { SessionRecords } from "./session-records.js";
11
+ import type { SessionQueries } from "./session-queries.js";
12
+ import type { ParkRecovery } from "./park-recovery.js";
13
+ import type { InboundRefusals } from "./inbound-refusals.js";
14
+ import type { SessionLeafRecords } from "./session-leaf-records.js";
15
+ import type { StandingReceivers } from "./standing-receivers.js";
16
+ import type { WitnessAlerts } from "./witness-alerts.js";
17
+ import type { SessionContentIngest } from "./session-content-ingest.js";
18
+ import { AgentRelayClient, type RelayAuthRefusal } from "./session-relay-client.js";
19
+ import { type ActiveSessionEntry, type QuarantinedRecord, type RelayConnectParams } from "./session-node-types.js";
20
+ /** What the relay path needs from the manager. */
21
+ export interface SessionRelayContext {
22
+ readonly logger: Logger;
23
+ readonly records: SessionRecords;
24
+ readonly queries: SessionQueries;
25
+ readonly park: ParkRecovery;
26
+ readonly refusals: InboundRefusals;
27
+ readonly leafRecords: SessionLeafRecords;
28
+ readonly receivers: StandingReceivers;
29
+ readonly witness: WitnessAlerts;
30
+ readonly contentIn: SessionContentIngest;
31
+ /** A function: the manager opens its database after construction. Re-exposed below as `#db`. */
32
+ db(): DaemonDatabase | null;
33
+ readonly activeNodes: Map<string, ActiveSessionEntry>;
34
+ readonly relayClients: Map<string, AgentRelayClient>;
35
+ /** The same shape `standing-receivers.ts` declares — one map, two files naming it identically. */
36
+ readonly standingReceivers: Map<string, {
37
+ node: CelloNode;
38
+ gater: SessionConnectionGater;
39
+ autoNat: NodeAutoNatService;
40
+ seed: Uint8Array;
41
+ relayPeerIds: string[];
42
+ }>;
43
+ readonly agentsWantingReceiver: Set<string>;
44
+ readonly directoryRelayEndpoints: Map<string, Array<{
45
+ relayPeerId: string;
46
+ relayAddrs: string[];
47
+ }>>;
48
+ /** Agent → relay peer id → the moment the quarantine lifts. NESTED, one inner map per agent. */
49
+ readonly relayQuarantine: Map<string, Map<string, number>>;
50
+ /**
51
+ * ⚠️ NOT A TIMESTAMP — the retry STATE. It carries the attempt count and the correlation id as
52
+ * well as when to try next, because a retry that forgets which attempt it is on cannot back off
53
+ * and a retry that mints a fresh correlation id cannot be followed through the log.
54
+ */
55
+ readonly srReservationRetry: Map<string, {
56
+ attempts: number;
57
+ nextAt: number;
58
+ correlationId: string;
59
+ lastReason?: string;
60
+ }>;
61
+ readonly srLastRejectionReason: Map<string, string>;
62
+ readonly srLastRespreadAt: Map<string, number>;
63
+ /**
64
+ * ⚠️ THE REFUSAL OBJECT, not a reason string. It carries WHICH relay refused alongside why, and
65
+ * dropping the peer id would leave an operator with "a relay refused your key" and no way to know
66
+ * which of several to look at.
67
+ */
68
+ readonly srRelayRefusal: Map<string, RelayAuthRefusal & {
69
+ relayPeerId: string;
70
+ }>;
71
+ readonly shuttingDown: boolean;
72
+ readonly srReservationRetryMs: number;
73
+ readonly srWatchdogIntervalMs: number;
74
+ readonly ownChainStore: SessionOwnChainStore | null;
75
+ /**
76
+ * ⚠️ READ-WRITE, all three. The two stores are opened LAZILY — on first use, because they need a
77
+ * database that does not exist when the manager is constructed — and every side must end up
78
+ * holding the SAME instance, or a second store writes the same rows and the two agree only by
79
+ * luck. The watchdog handle is written when the timer is armed and read to avoid arming a second.
80
+ */
81
+ relayReceiptStore: RelayReceiptStore | null;
82
+ sealLeafStore: SessionSealLeafStore | null;
83
+ reservationWatchdog: ReturnType<typeof setInterval> | null;
84
+ readonly detachedRelayClientBuilder: ((agentName: string, relayPeerId: string, relayAddrs: string[], stores: {
85
+ receiptStore?: RelayReceiptStore;
86
+ sealLeafStore?: SessionSealLeafStore;
87
+ ownChainStore?: SessionOwnChainStore;
88
+ onlineToken: () => Uint8Array | undefined;
89
+ }) => AgentRelayClient | undefined) | null;
90
+ /** DOD-LOOP-1: (agentName, sessionId), never sessionId alone — see the manager's own note. */
91
+ sessionKey(agentName: string, sessionId: string): string;
92
+ requireAgentId(agentName: string): string;
93
+ getDirectoryOnlineToken(agentName: string): Uint8Array | undefined;
94
+ /**
95
+ * ⚠️ IT TAKES A REFUSAL AND RETURNS ONE — it is not a generic wrapper. It attributes a relay's
96
+ * refusal to the directory that named the relay, so the operator is pointed at the party that
97
+ * can actually fix it. A `<T>(reason, fn)` shape would have type-checked and lost that entirely.
98
+ */
99
+ withDirectoryCause(agentName: string, refusal: RelayAuthRefusal): RelayAuthRefusal;
100
+ /**
101
+ * ⚠️ `source` IS AN ENUM, NOT A FREE STRING, and it is written to the row an operator reads days
102
+ * later — labelling a key-authentication refusal as a stream close sends them to the relay fleet
103
+ * for a fault in the payload. And it answers `boolean`, not `void`: whether the row actually
104
+ * moved.
105
+ */
106
+ markInterruptedWithDetails(agentName: string, sessionId: string, messageCount: number, source: "relay_frame" | "stream_close" | "key_refused"): Promise<boolean>;
107
+ }
108
+ export declare class SessionRelay {
109
+ #private;
110
+ constructor(ctx: SessionRelayContext);
111
+ /**
112
+ * DOD-M15-RELAYAUTH-1: authenticate a fresh standing receiver to its reservation relay over the
113
+ * CELLO relay protocol — proof of K_local key possession, not a session. Reuses the SAME
114
+ * `#relayClients` cache `connectSessionRelay`/`#resolveSealTransport` read from, keyed
115
+ * identically (`${agentName}::${relayPeerId}`), so a session created moments later on this same
116
+ * relay finds an already-authenticated client instead of dialing and authenticating twice.
117
+ *
118
+ * The manager holds no K_local (M12-P15's own rationale for `#detachedRelayClientBuilder`) —
119
+ * without a builder wired (a narrow startup race, or a test harness that never wires one), this
120
+ * is a no-op and the relay's own grace-window revoke is the backstop, not a defect in this path.
121
+ */
122
+ authenticateStandingReceiver(agentName: string, node: CelloNode, relayPeerId: string, heldCircuitAddr: string, correlationId: string): Promise<void>;
123
+ /**
124
+ * RELAYSIG-1: the durably-stored, signature-verified relay ordering-record receipts for an agent
125
+ * (optionally a single session). Empty when no receipts have been recorded yet. Read-only.
126
+ */
127
+ getRelayReceipts(agentPubkeyHex: string, sessionIdHex?: string): RelayReceipt[];
128
+ /**
129
+ * DOD-M15-REFUSEDEVIDENCE-1 — retain a message refused OUTSIDE `ingestReceivedContent`
130
+ * (`session-content-ingest.ts`).
131
+ *
132
+ * Review F6. The park drain terminally-blocks a message that arrived for an already-committed
133
+ * session, then confirm-deletes the relay copy — the one other route in the tree that discarded
134
+ * refused content, and the highest-suspicion combination in the product: hostile bytes aimed at a
135
+ * conversation somebody has already sealed. Shipped guidance now tells every operator that
136
+ * refused messages are kept, so this is made true rather than the promise narrowed.
137
+ *
138
+ * A thin delegate, not a second implementation: the bound, the dedup, the sequence allocation and
139
+ * the logging are the ones every other refusal uses.
140
+ */
141
+ quarantineRefusedInbound(agentName: string, sessionId: string, reason: string, content: Uint8Array, contentHashHex: string, senderPubkeyHex: string | null, correlationId?: string): number | null;
142
+ /** The metadata half of a framed quarantine read — everything known ABOUT the message, none of it
143
+ * taken from the message. Split out so the framing module never touches the database. */
144
+ quarantineFrameMeta(agentName: string, sessionId: string, rec: QuarantinedRecord): QuarantineFrameMeta;
145
+ /**
146
+ * The current standing receiver node's session-transport coordinates (peer id +
147
+ * listen multiaddrs), or null if it is not ready. These are the addresses a local
148
+ * SessionNegotiator advertises as this node's counterparty endpoint so the initiator
149
+ * can dial it, and the value an inbound session_assignment carries in its
150
+ * counterparty_session_* fields. Read-only — does NOT consume the standing receiver
151
+ * (unlike acceptSession, which hands it off).
152
+ */
153
+ /**
154
+ * 032-RELAYSPREAD — would this receiver ADMIT an inbound dial from this relay?
155
+ *
156
+ * The gater's inbound carve-out is the security-sensitive half of the spread: only relays whose
157
+ * own reservation is confirmed held earn it, so a directory that merely NAMES a relay cannot dial
158
+ * in behind the gate. Nothing could observe that from outside the manager, and the review found
159
+ * the consequence: substituting the CANDIDATE list for the held list at the `setReservedRelayPeers`
160
+ * call kept every test in the unit green while shipping exactly that hole. A guard whose wiring
161
+ * cannot be observed is a guard nothing can test.
162
+ *
163
+ * Reads the live gater rather than a copy, so it cannot drift from what the gate actually does.
164
+ */
165
+ isRelayCarvedOutInbound(agentName: string, relayPeerId: string): boolean;
166
+ /**
167
+ * M7 DOD-SPINE-6 / MSG-001-3b: connect a session node to the relay witness and
168
+ * store the client on the active entry. Best-effort: a connect/auth failure logs
169
+ * and leaves relayClient undefined — the session is NOT destroyed and the direct
170
+ * content path keeps working (the relay-park/recovery path is MSG-001-3b's domain).
171
+ *
172
+ * ⚠️ THIS BLOCK SPENT TWO MILESTONES ABOVE THE WRONG METHOD. It sat stacked on top of
173
+ * `relayLeafHandler`'s own docblock, so the file showed two descriptions in a row and the first
174
+ * one described a method further down the page. The content split then carried it verbatim into
175
+ * `session-content-ingest.ts`, where `connectSessionRelay` does not exist at all and the
176
+ * misattribution could no longer be worked out from context. Returned to the method it describes.
177
+ */
178
+ connectSessionRelay(sessionId: string, node: CelloNode, agentName: string, relay: RelayConnectParams, correlationId: string): Promise<void>;
179
+ /**
180
+ * M7 DOD-SPINE-6 / MSG-001-3b: detach a session from its (agent, relay) client and
181
+ * close the client when it has no remaining sessions. Idempotent and identity-guarded:
182
+ * the map delete only fires if the map still holds THIS client (a racing teardown of a
183
+ * sibling session must not close a freshly-created replacement client for the same key).
184
+ */
185
+ detachSessionRelay(entry: ActiveSessionEntry): void;
186
+ /**
187
+ * DOD-M15-RELAYAUTH-1 review H1 — **THE GATE WAS DENYING THE LEGITIMATE DIAL, AND USUALLY.**
188
+ *
189
+ * With the gater installed, a relay refuses a circuit dial unless it already holds a
190
+ * directory-signed assignment naming both transport peer ids. Both parties get that assignment
191
+ * from the directory independently, and until this method existed, each only presented it to
192
+ * relays IT had chosen — so whether a dial was allowed came down to which of two independent
193
+ * network races finished first:
194
+ *
195
+ * 1. WE connect to the witness relay, then dial the counterparty's circuit address. ~2 RTT.
196
+ * 2. THEY connect to their witness relay, then — unawaited, on a fresh dial + auth + record —
197
+ * tell their RESERVATION relay about the session. ~3–4 RTT.
198
+ *
199
+ * Nothing sequenced (1) against (2), and (1) is shorter, so we usually arrived first and were
200
+ * refused. The session still opened and reported `transportMode: "relay"`, so the failure was
201
+ * invisible: every message for the life of that conversation quietly took the store-and-forward
202
+ * park path, and the only trace was a denial logged on a third machine nobody tails.
203
+ *
204
+ * The fix is to stop racing. Whoever is about to dial presents the assignment to the relay that
205
+ * will gate that dial, and WAITS for the relay to confirm it recorded it. The ordering becomes
206
+ * local to one thread of execution, so there is nothing left to lose.
207
+ *
208
+ * Safe by construction: we are a participant the assignment names, so the relay's own participant
209
+ * check passes; and the assignment is self-authenticating (a directory signature the relay
210
+ * verifies against its consortium set), so presenting it more widely grants nothing that forging
211
+ * it would not already require.
212
+ *
213
+ * Best-effort by design — a relay we cannot reach must not stop us from dialling. If the record
214
+ * fails we dial anyway: a dial that might be refused is strictly better than no dial.
215
+ */
216
+ authorizeCircuitDialsToCounterparty(agentName: string, sessionId: string, entry: ActiveSessionEntry, addrs: string[]): Promise<void>;
217
+ /**
218
+ * TEST-ONLY (M8C-INBOX-1 reviewer F1): buffer a received message + persist its transcript row,
219
+ * exactly as the real inbound path (appendVerifiedContent, in `session-content-ingest.ts`) does,
220
+ * WITHOUT standing up a session
221
+ * tree — so a test can drive a live cello_receive that advances the read watermark (the N3
222
+ * "delivery marks read" coupling). Only reachable via the CELLO_ENV=test IPC hook.
223
+ */
224
+ /** CELLO_ENV=test only: patch a relay client and session-id bytes onto an existing active node entry
225
+ * so submitSealLeaf succeeds without a real relay handshake (used by the oneshot relay-path test). */
226
+ patchRelayClientForTest(agentName: string, sessionId: string, relayClient: AgentRelayClient, relaySessionIdBytes: Uint8Array): void;
227
+ /**
228
+ * M7-SESSION-001 AC-004/AC-005: Register a relay stream for an active session.
229
+ * Starts a background reader that watches for session_interrupted frames and
230
+ * stream close events. Both detection paths call markInterruptedWithDetails().
231
+ *
232
+ * The reader runs for the lifetime of the relay stream. If the stream closes
233
+ * without delivering a session_interrupted frame (AC-005 / 'stream_close' path),
234
+ * the session is still marked interrupted.
235
+ *
236
+ * @param sessionId The hex session ID
237
+ * @param stream The relay stream to monitor
238
+ * @param messageCount Number of message leaves at the time of registration
239
+ * (used as the count at interruption — best effort since exact count at frame
240
+ * receipt may differ, but this is the value available at stream setup time)
241
+ */
242
+ registerRelayStream(agentName: string, sessionId: string, stream: Stream, messageCount?: number): void;
243
+ /**
244
+ * DOD-NAT-REACHABILITY-1 (Phase 2): accept the directory's relay-pool endpoints
245
+ * for an agent (arrives with signaling_auth_ok, i.e. on every connect AND every
246
+ * reconnect). If the agent's standing receiver is up but holds NO reservation —
247
+ * the agent-online ensure raced ahead of auth_ok, or every relay was down at
248
+ * create time — rebuild it now so the agent becomes dialable without waiting
249
+ * for a session handoff that (being unreachable) would never come.
250
+ */
251
+ setDirectoryRelayEndpoints(agentName: string, endpoints: Array<{
252
+ relayPeerId: string;
253
+ relayAddrs: string[];
254
+ }>): void;
255
+ /**
256
+ * Is this agent currently skipping this relay? The observable half of the failover decision — a
257
+ * test that asserts only on the classifier's boolean proves nothing about what the daemon does.
258
+ */
259
+ isRelayQuarantined(agentName: string, relayPeerId: string): boolean;
260
+ reservationCircuitAddrs(agentName: string): {
261
+ addrs: string[];
262
+ relayPeerIds: string[];
263
+ };
264
+ /** Start the reservation watchdog (idempotent). Stopped by gracefulShutdown. */
265
+ startReservationWatchdog(): void;
266
+ /**
267
+ * Start the standing receiver's libp2p node, holding a circuit-relay reservation
268
+ * if one can be had — and WITHOUT one if it cannot.
269
+ *
270
+ * THE INVARIANT, learned live: **standing-receiver creation must NEVER be gated on
271
+ * a relay.** libp2p's circuit listener awaits a live connection to its relay before
272
+ * start() resolves, and it does not time out. A relay that does not answer parks
273
+ * start() forever: no created event, no failure, no retry, no alarm — the agent
274
+ * simply has no receiver and is deaf to ALL inbound, including the direct path that
275
+ * worked before reservations existed. Strictly worse than the NAT defect this whole
276
+ * line exists to fix. So every attempt is raced against a deadline, and failure
277
+ * ALWAYS falls through to a plain TCP receiver.
278
+ *
279
+ * ONE relay, tried on the REAL node — not a probe.
280
+ *
281
+ * A relay reservation is a scarce resource: the relay holds it for its full TTL
282
+ * even after the client disconnects, and it has a finite number of slots. An
283
+ * earlier design probed each relay on a throwaway node and then reserved AGAIN on
284
+ * the receiver — burning TWO slots per agent to get one, and leaving the throwaway's
285
+ * slot pinned for hours. That is how a fleet exhausts a relay. Here the receiver
286
+ * itself makes the attempt: if the relay grants the reservation, we KEEP that node.
287
+ * One slot per agent, which is the true cost.
288
+ *
289
+ * Candidates are tried in order (directory pool first). The first that actually
290
+ * grants a reservation wins; the rest are never touched.
291
+ */
292
+ /**
293
+ * DOD-M15-RELAYSLOTS-1 — tell the relay this transport identity belongs to a registered agent, so
294
+ * the reservation it just refused is granted on the next attempt.
295
+ *
296
+ * Returns `"proven"` on success, or the shape of the failure so the candidate loop can act on it.
297
+ * It never throws: throwing would turn one unreachable relay into a failure to build a receiver
298
+ * at all.
299
+ *
300
+ * ─── Why this returns a verdict instead of a boolean ──────────────────────────────────────────
301
+ *
302
+ * Review HIGH-1/HIGH-2. Putting the reservation behind a proof MOVED THE FIRST REFUSAL onto this
303
+ * path. `authenticateStandingReceiver` does everything right with a refusal — records it where
304
+ * `cello_status` can read it, and quarantines a relay whose fault is its own — but it runs only
305
+ * on a receiver that ALREADY HAS a reservation, so under the new gate a total failure never
306
+ * reaches it. This method was logging `proven: false` and returning.
307
+ *
308
+ * What that cost the operator: an expired token, or an agent at its slot cap, refused by every
309
+ * relay in the pool. `cello_status` shows an agent that is online and reachable by nobody, with
310
+ * no cause anywhere the person will look — while the relay had computed the cause, the count, and
311
+ * the next step, and put them on the wire. And `slot_cap_exceeded` is classified
312
+ * `tryAnotherRelay: false` precisely so the client STOPS walking the fleet; without the verdict,
313
+ * the loop walked it anyway, turning one client-side fault into what reads as a fleet outage.
314
+ */
315
+ proveToRelay(agentName: string, circuitAddr: string, node: CelloNode, correlationId: string,
316
+ /**
317
+ * Whether this proof is the STANDING RECEIVER's, and may therefore write the surface
318
+ * `cello_status` reads as "your standing receiver was refused".
319
+ *
320
+ * A revival proves itself too, and its refusal is real — but it is not evidence about the
321
+ * receiver. A receiver that proved thirty seconds ago and holds a slot, plus a revival refused
322
+ * with `slot_cap_exceeded`, would otherwise have `cello_status` report a front door as refused
323
+ * while it is open. The refusal is still logged and still steers the candidate loop; what it
324
+ * does not do is claim to be about something it did not measure.
325
+ */
326
+ surfaceAsReceiverRefusal: boolean): Promise<"proven" | "refused_try_another_relay" | "refused_this_agent" | "unavailable">;
327
+ /**
328
+ * DOD-M12B-REVIVE-RELAY-1 — reconnect the session's relay WITNESS, which revival never did.
329
+ *
330
+ * THE FIRST-PRINCIPLES DEFECT, and the one that explains every symptom chased separately before
331
+ * it. Establishment does five things: build the node, register the content handler, wire liveness,
332
+ * **connect the relay**, and dial the counterparty. Revival did the first three. A revived session
333
+ * was therefore not a session — it looked live, reported `active`, and had no live inbound path at
334
+ * all.
335
+ *
336
+ * MEASURED 2026-08-18 with two real agents: a message on a reconnected session took **three
337
+ * minutes**, against seconds on a fresh one, because only the five-minute mailbox backstop ever
338
+ * found it. Doorbells stopped firing for the same reason — the relay stream is what rings them.
339
+ * And `#parkContent` refuses without `entry.relayClient`, so sends could not park either.
340
+ *
341
+ * NO ASSIGNMENT IS PRESENTED, and that is by design rather than omission: `RelayConnectParams`
342
+ * documents the reconnect mode itself — *"absent … on the restart/persisted reconnect path (the
343
+ * relay already recorded the session at first establishment) — the client then just reconnects
344
+ * without re-recording."* A revival is exactly that path.
345
+ *
346
+ * Best-effort and non-fatal: a session that comes back without its witness is still better than
347
+ * one that does not come back, and the failure is named rather than silent.
348
+ */
349
+ reconnectRevivedSessionRelay(agentName: string, sessionId: string, node: CelloNode, gater: SessionConnectionGater, correlationId: string, ep: {
350
+ relayPeerId: string;
351
+ relayAddrs: string[];
352
+ } | null): Promise<void>;
353
+ /** DOD-M12B-REVIVE-PARK-1 test seam: the relay the live entry will park to. Not otherwise
354
+ * observable — `#activeNodes` is private and the park's own refusal is silent about which of its
355
+ * four preconditions was missing. */
356
+ getSessionRelayForTest(agentName: string, sessionId: string): {
357
+ relayPeerId?: string;
358
+ relayAddrs?: string[];
359
+ } | null;
360
+ }
361
+ //# sourceMappingURL=session-relay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-relay.d.ts","sourceRoot":"","sources":["../src/session-relay.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAoB,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAA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