@flop-labs/sdk 0.7.2 → 0.8.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 +93 -0
- package/README.md +2 -2
- package/dist/bundle/index.esm.js +1 -1
- package/dist/bundle/index.esm.js.map +1 -1
- package/dist/bundle/index.umd.cjs +1 -1
- package/dist/bundle/index.umd.cjs.map +1 -1
- package/dist/compute-channel/capacity-reservation.d.ts +5 -3
- package/dist/compute-channel/capacity-reservation.d.ts.map +1 -1
- package/dist/compute-channel/capacity-reservation.js +7 -3
- package/dist/compute-channel/capacity-reservation.js.map +1 -1
- package/dist/compute-channel/deepseek-v41.d.ts +13 -6
- package/dist/compute-channel/deepseek-v41.d.ts.map +1 -1
- package/dist/compute-channel/deepseek-v41.js +19 -10
- package/dist/compute-channel/deepseek-v41.js.map +1 -1
- package/dist/compute-channel/flop-submitter.d.ts +53 -4
- package/dist/compute-channel/flop-submitter.d.ts.map +1 -1
- package/dist/compute-channel/flop-submitter.js +94 -4
- package/dist/compute-channel/flop-submitter.js.map +1 -1
- package/dist/compute-channel/forward-holdings.d.ts +32 -0
- package/dist/compute-channel/forward-holdings.d.ts.map +1 -0
- package/dist/compute-channel/forward-holdings.js +157 -0
- package/dist/compute-channel/forward-holdings.js.map +1 -0
- package/dist/compute-channel/index.d.ts +5 -0
- package/dist/compute-channel/index.d.ts.map +1 -1
- package/dist/compute-channel/index.js +5 -0
- package/dist/compute-channel/index.js.map +1 -1
- package/dist/compute-channel/long-session-chain.d.ts +16 -0
- package/dist/compute-channel/long-session-chain.d.ts.map +1 -0
- package/dist/compute-channel/long-session-chain.js +212 -0
- package/dist/compute-channel/long-session-chain.js.map +1 -0
- package/dist/compute-channel/long-session.d.ts +256 -0
- package/dist/compute-channel/long-session.d.ts.map +1 -0
- package/dist/compute-channel/long-session.js +623 -0
- package/dist/compute-channel/long-session.js.map +1 -0
- package/dist/compute-channel/miner-host.d.ts.map +1 -1
- package/dist/compute-channel/miner-host.js +5 -3
- package/dist/compute-channel/miner-host.js.map +1 -1
- package/dist/compute-channel/model-config.d.ts +16 -3
- package/dist/compute-channel/model-config.d.ts.map +1 -1
- package/dist/compute-channel/model-config.js +71 -2
- package/dist/compute-channel/model-config.js.map +1 -1
- package/dist/compute-channel/session-estimate.d.ts.map +1 -1
- package/dist/compute-channel/session-estimate.js +12 -1
- package/dist/compute-channel/session-estimate.js.map +1 -1
- package/dist/compute-channel/spend-journal.d.ts +172 -0
- package/dist/compute-channel/spend-journal.d.ts.map +1 -0
- package/dist/compute-channel/spend-journal.js +429 -0
- package/dist/compute-channel/spend-journal.js.map +1 -0
- package/dist/compute-channel/transcript.d.ts +3 -1
- package/dist/compute-channel/transcript.d.ts.map +1 -1
- package/dist/compute-channel/transcript.js +2 -0
- package/dist/compute-channel/transcript.js.map +1 -1
- package/dist/compute-channel/transport-http.d.ts +34 -1
- package/dist/compute-channel/transport-http.d.ts.map +1 -1
- package/dist/compute-channel/transport-http.js +66 -4
- package/dist/compute-channel/transport-http.js.map +1 -1
- package/dist/direct-swap/retained-runtime-releases.d.ts.map +1 -1
- package/dist/direct-swap/retained-runtime-releases.js +11 -1
- package/dist/direct-swap/retained-runtime-releases.js.map +1 -1
- package/dist/discovery/metered-pricing.d.ts.map +1 -1
- package/dist/discovery/metered-pricing.js +8 -1
- package/dist/discovery/metered-pricing.js.map +1 -1
- package/dist/faucet.d.ts +1 -1
- package/dist/faucet.js +1 -1
- package/dist/miner-admission.d.ts +1 -1
- package/dist/miner-admission.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Long paid sessions on a named miner: demand-driven purchase, top-up and rollover.
|
|
3
|
+
* @module sdk/typescript/compute-channel/long-session
|
|
4
|
+
*
|
|
5
|
+
* Design: docs/plans/AGENT_LAUNCH_LANES.md, "Direct lanes" and "Budget and journal" (seam 2).
|
|
6
|
+
* Money path; every check fails closed:
|
|
7
|
+
* - nothing is bought until a request needs it, and never with `force_open`;
|
|
8
|
+
* - the miner's signed info proof and its finalized registration, calibration and model identity
|
|
9
|
+
* are checked before any purchase;
|
|
10
|
+
* - every purchase is signed first, journaled with its hash and debited, then broadcast, and is
|
|
11
|
+
* resolved only by finalized evidence for that hash. An unknown outcome freezes all purchases;
|
|
12
|
+
* - each turn's tariff is checked against the escrow at finality and its verified prefix is
|
|
13
|
+
* durable before any ACK is sent;
|
|
14
|
+
* - a request id that already has a journaled result replays it and never buys again.
|
|
15
|
+
*/
|
|
16
|
+
import type { ApiPromise } from "@polkadot/api";
|
|
17
|
+
import { type MinerCapacity } from "./capacity-reservation.js";
|
|
18
|
+
import { SessionKey } from "./crypto.js";
|
|
19
|
+
import { type SpendingSubmitter } from "./flop-submitter.js";
|
|
20
|
+
import { type InferenceFeeProfile, type SignedSessionOffer } from "./offers.js";
|
|
21
|
+
import { type ChatTurnEnvelope, type TurnReceipt } from "./protocol.js";
|
|
22
|
+
import { type SessionTransport } from "./session.js";
|
|
23
|
+
import { type ChannelRecord, type SpendEntry, type SpendJournal, type SpendKind, type SpendResolution } from "./spend-journal.js";
|
|
24
|
+
import { type Hash, type VerifiedModelIdentity } from "./transcript.js";
|
|
25
|
+
import { type CooperativeCloseClaim, type MinerSessionInfo, type TurnStreamFrameWire } from "./transport-http.js";
|
|
26
|
+
/** Finalized view of one channel. */
|
|
27
|
+
export interface LongChannelSnapshot {
|
|
28
|
+
state: string;
|
|
29
|
+
miner: string;
|
|
30
|
+
agentKey: Uint8Array;
|
|
31
|
+
enclaveKey: Uint8Array;
|
|
32
|
+
modelHash: Hash;
|
|
33
|
+
measuredRoot: Hash;
|
|
34
|
+
/** Empty once the channel is closed. */
|
|
35
|
+
decodePolicyHash: Hash;
|
|
36
|
+
precision: number;
|
|
37
|
+
escrow: bigint;
|
|
38
|
+
openedAt: bigint;
|
|
39
|
+
maxDuration: bigint;
|
|
40
|
+
authoredOpenedAt: bigint;
|
|
41
|
+
snapshotCap: bigint | null;
|
|
42
|
+
currentCap: bigint | null;
|
|
43
|
+
}
|
|
44
|
+
/** Chain and miner ports. Every chain read is at the finalized head. */
|
|
45
|
+
export interface LongSessionRuntime {
|
|
46
|
+
genesisHash: Hash;
|
|
47
|
+
basePerTurn: bigint;
|
|
48
|
+
blockMs: bigint;
|
|
49
|
+
maxSettlementTurns: number;
|
|
50
|
+
/** `MaxUnconsentedSessionBlocks` and `UnconsentedReservationTariff`; null refuses a bare open. */
|
|
51
|
+
unconsented: {
|
|
52
|
+
maxBlocks: bigint;
|
|
53
|
+
tariff: bigint;
|
|
54
|
+
} | null;
|
|
55
|
+
finalizedBlock(): Promise<bigint>;
|
|
56
|
+
/** Throws unless the miner is registered, active and has a live calibrated cap. Returns the cap. */
|
|
57
|
+
assertMinerAdmitted(miner: string): Promise<bigint>;
|
|
58
|
+
/** Throws unless the model is Verified with this measured root, decode policy and precision. */
|
|
59
|
+
assertModelIdentity(identity: VerifiedModelIdentity): Promise<void>;
|
|
60
|
+
/** Undefined on a runtime without capacity reservations. */
|
|
61
|
+
capacity(miner: string): Promise<MinerCapacity | undefined>;
|
|
62
|
+
offerFeeProfile(): Promise<InferenceFeeProfile | undefined>;
|
|
63
|
+
/** Untrusted candidate offers; the session verifies every field and signature. */
|
|
64
|
+
offers(identity: VerifiedModelIdentity): Promise<SignedSessionOffer[]>;
|
|
65
|
+
offerNonceUsed(miner: string, nonce: bigint): Promise<boolean>;
|
|
66
|
+
/** The miner enclave's fresh signed info proof for exactly this identity and key. */
|
|
67
|
+
infoProof(enclaveKey: Uint8Array, identity: VerifiedModelIdentity): Promise<MinerSessionInfo>;
|
|
68
|
+
channel(channelId: Hash): Promise<{
|
|
69
|
+
block: bigint;
|
|
70
|
+
channel: LongChannelSnapshot | null;
|
|
71
|
+
}>;
|
|
72
|
+
/** Finalized evidence for the exact transaction of `entry`; `unknown` when there is none yet. */
|
|
73
|
+
txOutcome(entry: SpendEntry): Promise<SpendResolution | "unknown">;
|
|
74
|
+
/** Authenticate to the miner for this channel, announce it, and return its turn transport. */
|
|
75
|
+
connect(channelId: Hash, key: SessionKey, expected: MinerSessionInfo, onFrame: (frame: TurnStreamFrameWire) => void): Promise<SessionTransport>;
|
|
76
|
+
/** Hand the co-signed claim to the miner; throws when the miner cannot submit `settle`. */
|
|
77
|
+
closeCooperative(claim: CooperativeCloseClaim, key: SessionKey): Promise<void>;
|
|
78
|
+
pause(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The finalized reads journal reconciliation needs, and nothing else: no miner admission, model
|
|
82
|
+
* identity or endpoint, so a journal can be reconciled after the miner went inactive, its
|
|
83
|
+
* calibration lease expired or the model was withdrawn. {@link LongSessionRuntime} satisfies it.
|
|
84
|
+
*/
|
|
85
|
+
export interface JournalChainReader {
|
|
86
|
+
/** Finalized evidence for the exact transaction of `entry`; `unknown` when there is none yet. */
|
|
87
|
+
txOutcome(entry: SpendEntry): Promise<SpendResolution | "unknown">;
|
|
88
|
+
channel(channelId: Hash): Promise<{
|
|
89
|
+
block: bigint;
|
|
90
|
+
channel: Pick<LongChannelSnapshot, "state" | "openedAt" | "maxDuration"> | null;
|
|
91
|
+
}>;
|
|
92
|
+
}
|
|
93
|
+
export interface LongSessionConfig {
|
|
94
|
+
/** Live chain; required unless `runtime` is injected. */
|
|
95
|
+
api?: ApiPromise;
|
|
96
|
+
/** Must wait for finality; its `payer` funds every escrow. */
|
|
97
|
+
submitter: SpendingSubmitter;
|
|
98
|
+
journal: SpendJournal;
|
|
99
|
+
miner: string;
|
|
100
|
+
/** Miner session endpoint: HTTPS, or loopback HTTP. */
|
|
101
|
+
endpoint: string;
|
|
102
|
+
/** Exact identity the miner must prove and every receipt must carry. */
|
|
103
|
+
modelIdentity: VerifiedModelIdentity;
|
|
104
|
+
/** Requested channel window. */
|
|
105
|
+
windowSeconds: number;
|
|
106
|
+
/** Longest one channel may lock funds. */
|
|
107
|
+
maxLockSeconds: number;
|
|
108
|
+
/** One channel's escrow ceiling, including top-ups (FLOP atoms). */
|
|
109
|
+
maxChannelPlanck: bigint;
|
|
110
|
+
/** Top-up step (FLOP atoms). */
|
|
111
|
+
topUpPlanck: bigint;
|
|
112
|
+
/** Lifetime ceiling on escrow opened plus top-ups, across restarts (FLOP atoms). */
|
|
113
|
+
budgetPlanck: bigint;
|
|
114
|
+
/** SLA turn limit of a bare open (capped by the chain's settlement limit). */
|
|
115
|
+
maxTurns: number;
|
|
116
|
+
/** Worst-case tariff of one request (`BasePerTurn` plus its largest `G_n`), in FLOP atoms. */
|
|
117
|
+
worstCaseTurnPlanck: (envelope: ChatTurnEnvelope) => bigint;
|
|
118
|
+
/** Longest one turn may take; also the window margin and the wait for released capacity. */
|
|
119
|
+
turnTimeoutSeconds: number;
|
|
120
|
+
/** Enclave key pinned by the caller for a bare open. Otherwise it comes from a miner-signed offer. */
|
|
121
|
+
enclaveKey?: Uint8Array;
|
|
122
|
+
/** Session-offer listing service; without it only bare opens are considered. */
|
|
123
|
+
indexerUrl?: string;
|
|
124
|
+
runtime?: LongSessionRuntime;
|
|
125
|
+
/**
|
|
126
|
+
* Runs immediately before every open and top-up, before anything is journaled or signed; a
|
|
127
|
+
* throw refuses that spend (an agent key checks its session and forward holdings here).
|
|
128
|
+
*/
|
|
129
|
+
beforeSpend?: (kind: SpendKind) => Promise<void>;
|
|
130
|
+
}
|
|
131
|
+
export interface LongTurnOptions {
|
|
132
|
+
/** Provisional streamed text; the turn's result is final only once `turn` resolves. */
|
|
133
|
+
onText?: (text: string) => void;
|
|
134
|
+
/** Idempotency key: a request already answered replays its journaled result. */
|
|
135
|
+
requestId: string;
|
|
136
|
+
/**
|
|
137
|
+
* Runs on the miner's receipt after the tariff check and before the turn is acknowledged. A throw
|
|
138
|
+
* refuses the turn: nothing is acked or co-signed, and the channel is left for the timeout refund.
|
|
139
|
+
* Not called for a replayed request.
|
|
140
|
+
*/
|
|
141
|
+
acceptReceipt?: (receipt: TurnReceipt) => void | Promise<void>;
|
|
142
|
+
}
|
|
143
|
+
export interface LongTurnResult {
|
|
144
|
+
requestId: string;
|
|
145
|
+
channelId: string;
|
|
146
|
+
receipt: TurnReceipt;
|
|
147
|
+
replayed: boolean;
|
|
148
|
+
}
|
|
149
|
+
export interface LongSessionReport {
|
|
150
|
+
debited: bigint;
|
|
151
|
+
/** Transactions whose outcome finalized evidence has not resolved; purchases stay frozen. */
|
|
152
|
+
unresolved: string[];
|
|
153
|
+
channels: ChannelRecord[];
|
|
154
|
+
}
|
|
155
|
+
/** The turn's `/session/turn` body would exceed what the miner worker reads; nothing was bought or sent. */
|
|
156
|
+
export declare class TurnTooLargeError extends Error {
|
|
157
|
+
readonly bytes: number;
|
|
158
|
+
readonly limit: number;
|
|
159
|
+
readonly code = "TURN_TOO_LARGE";
|
|
160
|
+
constructor(bytes: number, limit?: number);
|
|
161
|
+
}
|
|
162
|
+
export declare class TariffExceedsEscrowError extends Error {
|
|
163
|
+
readonly payable: bigint;
|
|
164
|
+
readonly escrow: bigint;
|
|
165
|
+
readonly code = "TARIFF_EXCEEDS_ESCROW";
|
|
166
|
+
constructor(payable: bigint, escrow: bigint);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The miner's calibrated allowance cannot settle the work asked of a channel. The pallet settles
|
|
170
|
+
* at most `min(pinned reservation rate, current cap) x max_duration` G_n per channel
|
|
171
|
+
* (`validate_calibration_allowance`), so verified work past it can only end in a timeout refund.
|
|
172
|
+
* Raised before anything is bought or served.
|
|
173
|
+
*/
|
|
174
|
+
export declare class CalibratedAllowanceError extends Error {
|
|
175
|
+
readonly miner: string;
|
|
176
|
+
readonly rateGnPerSec: bigint;
|
|
177
|
+
readonly windowBlocks: bigint;
|
|
178
|
+
readonly allowanceGn: bigint;
|
|
179
|
+
readonly neededGn: bigint;
|
|
180
|
+
readonly code = "CALIBRATED_ALLOWANCE_TOO_SMALL";
|
|
181
|
+
constructor(miner: string, rateGnPerSec: bigint, windowBlocks: bigint, allowanceGn: bigint, neededGn: bigint);
|
|
182
|
+
}
|
|
183
|
+
/** What the pallet will let a channel settle at its end: `min(snapshot, current cap) x max_duration`. */
|
|
184
|
+
export declare function settleableAllowance(channel: Pick<LongChannelSnapshot, "snapshotCap" | "currentCap" | "maxDuration">): bigint;
|
|
185
|
+
export declare class LongSession {
|
|
186
|
+
private readonly cfg;
|
|
187
|
+
private readonly rt;
|
|
188
|
+
private readonly windowBlocks;
|
|
189
|
+
private readonly maxLockBlocks;
|
|
190
|
+
private live?;
|
|
191
|
+
private queue;
|
|
192
|
+
private closed;
|
|
193
|
+
private onText?;
|
|
194
|
+
private decoder;
|
|
195
|
+
/** Stream frames the miner sent for the running turn. */
|
|
196
|
+
private framesSeen;
|
|
197
|
+
private readonly journaled;
|
|
198
|
+
private readonly chain;
|
|
199
|
+
private constructor();
|
|
200
|
+
/** Verify the miner and model and take the journal lock. Buys nothing until a turn needs it. */
|
|
201
|
+
static open(cfg: LongSessionConfig): Promise<LongSession>;
|
|
202
|
+
/** Serve one request, buying, topping up or rolling over only as this request requires. */
|
|
203
|
+
turn(envelope: ChatTurnEnvelope, options: LongTurnOptions): Promise<LongTurnResult>;
|
|
204
|
+
/** Reconcile the journal against finalized chain state. Submits nothing. */
|
|
205
|
+
recover(): Promise<LongSessionReport>;
|
|
206
|
+
/** Stop new turns, settle the live channel cooperatively, reconcile, and release the lock. */
|
|
207
|
+
close(): Promise<LongSessionReport>;
|
|
208
|
+
private runTurn;
|
|
209
|
+
private frame;
|
|
210
|
+
/**
|
|
211
|
+
* The live channel if it can serve `worst` (`worstGn` of work), topped up if needed; otherwise
|
|
212
|
+
* roll over. A channel whose calibrated allowance cannot settle another worst-case turn is
|
|
213
|
+
* replaced only when a new channel could settle it; otherwise the request is refused and the
|
|
214
|
+
* channel kept for smaller requests.
|
|
215
|
+
*/
|
|
216
|
+
private servable;
|
|
217
|
+
/** The live channel's finalized allowance inputs; a channel no longer Open settles nothing more. */
|
|
218
|
+
private liveSnapshot;
|
|
219
|
+
/**
|
|
220
|
+
* The G_n/s a channel opened now would pin: the miner's reservation rate (the whole cap when
|
|
221
|
+
* unset, or on a runtime without reservations), never above the current cap.
|
|
222
|
+
*/
|
|
223
|
+
private reservedRate;
|
|
224
|
+
/** Refuse, before retiring anything, when even a new channel of the requested window could not settle the turn. */
|
|
225
|
+
private assertNewChannelCovers;
|
|
226
|
+
private topUpRoom;
|
|
227
|
+
private assertSpendable;
|
|
228
|
+
private topUp;
|
|
229
|
+
/** Signature-valid, unexpired, unused offers from this miner for this model and precision. */
|
|
230
|
+
private verifiedOffers;
|
|
231
|
+
/** Wait at finality until the miner can take one more reservation. */
|
|
232
|
+
private waitCapacity;
|
|
233
|
+
private buy;
|
|
234
|
+
/**
|
|
235
|
+
* Wait until the pallet's calibrated allowance covers the verified work. False past the window
|
|
236
|
+
* or after `turnTimeoutSeconds` pauses, so a request never waits on it for hours.
|
|
237
|
+
*/
|
|
238
|
+
private settleAllowed;
|
|
239
|
+
/** Wait at finality for the channel to close; false after `turnTimeoutSeconds` pauses. */
|
|
240
|
+
private closedAtFinality;
|
|
241
|
+
/**
|
|
242
|
+
* Drain is implicit (turns are serialized). Settle cooperatively, wait for the close at
|
|
243
|
+
* finality; anything uncertain is recorded and left for the permissionless timeout refund.
|
|
244
|
+
*/
|
|
245
|
+
private retire;
|
|
246
|
+
private reconcile;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Reconcile a locked journal against finalized chain state: resolve unresolved spends by finalized
|
|
250
|
+
* evidence for their exact hash, mark channels closed on chain (or never opened) as closed, and
|
|
251
|
+
* every other channel except `liveChannel` as orphaned for the timeout refund. Submits nothing and
|
|
252
|
+
* needs no admitted miner or listed model, so recovery, timeout refunds and drains are not blocked
|
|
253
|
+
* by them; purchases still check both.
|
|
254
|
+
*/
|
|
255
|
+
export declare function reconcileSpendJournal(journal: SpendJournal, reader: JournalChainReader, liveChannel?: string): Promise<LongSessionReport>;
|
|
256
|
+
//# sourceMappingURL=long-session.d.ts.map
|
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