@ola-893/agentpay-cli 0.0.0-stage → 0.2.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/ui/index.html ADDED
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/agentpay.svg" />
6
+ <meta name="description" content="AgentPay on NEAR. Give AI agents a controlled budget, reuse prepaid API sessions, and recover unused funds with onchain payment guardrails." />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
11
+ <title>AgentPay — Controlled agent payments on NEAR</title>
12
+ <script type="module" crossorigin src="/assets/index-DBHTJ1PQ.js"></script>
13
+ <link rel="stylesheet" crossorigin href="/assets/index-D7tPv-yG.css">
14
+ </head>
15
+ <body>
16
+ <div id="root"></div>
17
+ </body>
18
+ </html>
@@ -0,0 +1,528 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
4
+ "recordedAt": "2026-10-30T14:18:11.142Z",
5
+ "network": "sandbox",
6
+ "agentMode": "model",
7
+ "vaultId": "vault.sandbox",
8
+ "ok": true,
9
+ "results": {
10
+ "basic": {
11
+ "decision": "COMPLETED",
12
+ "successfulRequests": 10,
13
+ "deposit": "10000",
14
+ "earned": "20",
15
+ "refundedToVault": "9980",
16
+ "providerPayment": "claimable",
17
+ "openHash": "C2e8cqYYYuCBC9yymCoMwp6awpsCmceWpZ7s34NcDoSm",
18
+ "closeHash": "BqQm62i1ZDz8hn1xYFBAXPjN7BYBBdHfp6qA6K2VxGdd",
19
+ "sessionId": "1a8e62f8-basic"
20
+ },
21
+ "premium": {
22
+ "decision": "DENY",
23
+ "reason": "RATE_LIMIT"
24
+ }
25
+ },
26
+ "events": [
27
+ {
28
+ "schemaVersion": 1,
29
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
30
+ "sequence": 1,
31
+ "at": "2026-10-30T14:17:54.065Z",
32
+ "type": "started",
33
+ "network": "sandbox",
34
+ "agentMode": "model",
35
+ "vaultId": "vault.sandbox",
36
+ "agentId": "agent.sandbox",
37
+ "recipientId": "provider.sandbox",
38
+ "previousHash": "0000000000000000000000000000000000000000000000000000000000000000",
39
+ "eventHash": "82362b592e03c2866f7058eaafe04642b6f4d81d3a9cad6917e198566d0f185a"
40
+ },
41
+ {
42
+ "schemaVersion": 1,
43
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
44
+ "sequence": 2,
45
+ "at": "2026-10-30T14:17:57.875Z",
46
+ "type": "model",
47
+ "provider": "qwen",
48
+ "model": "qwen3.5-plus",
49
+ "responseId": "resp_5477b910-b642-9610-9531-d82a929a1274",
50
+ "previousHash": "82362b592e03c2866f7058eaafe04642b6f4d81d3a9cad6917e198566d0f185a",
51
+ "eventHash": "a460c6d69e31362cb509f8555a0d1d1cd9505d4889ded32ca7e22af24226b394"
52
+ },
53
+ {
54
+ "schemaVersion": 1,
55
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
56
+ "sequence": 3,
57
+ "at": "2026-10-30T14:17:57.886Z",
58
+ "type": "proposal",
59
+ "tier": "basic",
60
+ "sessionId": "1a8e62f8-basic",
61
+ "previousHash": "a460c6d69e31362cb509f8555a0d1d1cd9505d4889ded32ca7e22af24226b394",
62
+ "eventHash": "eabda3edc30dc4073bf852a9434437f8d4f2b33ff823eea8a576f4154b906d6f"
63
+ },
64
+ {
65
+ "schemaVersion": 1,
66
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
67
+ "sequence": 4,
68
+ "at": "2026-10-30T14:17:57.948Z",
69
+ "type": "policy",
70
+ "tier": "basic",
71
+ "sessionId": "1a8e62f8-basic",
72
+ "decision": "OPEN",
73
+ "reason": "WITHIN_POLICY",
74
+ "quote": {
75
+ "version": 1,
76
+ "vault_id": "vault.sandbox",
77
+ "token_id": "token.sandbox",
78
+ "recipient_id": "provider.sandbox",
79
+ "tier": "basic",
80
+ "rate": "10",
81
+ "duration_seconds": 1000,
82
+ "expires_at": 1793370177
83
+ },
84
+ "prices": {
85
+ "decision": "ALLOW",
86
+ "reason": "SANDBOX_FIXTURE_NO_MARKET_PRICE",
87
+ "samples": []
88
+ },
89
+ "previousHash": "eabda3edc30dc4073bf852a9434437f8d4f2b33ff823eea8a576f4154b906d6f",
90
+ "eventHash": "c8673f98fb8cb99109bf3938ab848e34d7b7eacca61c0327f21f3957e5dd08b2"
91
+ },
92
+ {
93
+ "schemaVersion": 1,
94
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
95
+ "sequence": 5,
96
+ "at": "2026-10-30T14:17:58.613Z",
97
+ "type": "transaction",
98
+ "action": "OPEN",
99
+ "hash": "C2e8cqYYYuCBC9yymCoMwp6awpsCmceWpZ7s34NcDoSm",
100
+ "signerId": "agent.sandbox",
101
+ "receiverId": "vault.sandbox",
102
+ "value": {
103
+ "session_id": "1a8e62f8-basic",
104
+ "recipient_id": "provider.sandbox",
105
+ "quote_hash": "22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844",
106
+ "deposit": "10000",
107
+ "rate": "10",
108
+ "duration_seconds": 1000,
109
+ "started_at": "1793369878",
110
+ "closed_at": null,
111
+ "earned": "0",
112
+ "refunded": "0"
113
+ },
114
+ "receiptFailures": [],
115
+ "receiptIds": [
116
+ "GemZV4n3ocDVrwdfYrab2uur42eFbtVc92yLDUqRgwfv",
117
+ "EWa7jQB423dT6ZkLwxV8g6cbYapJX5iJub6p5ogiJCXq"
118
+ ],
119
+ "logs": [
120
+ "EVENT_JSON:{\"data\":[{\"closed_at\":null,\"deposit\":\"10000\",\"duration_seconds\":1000,\"earned\":\"0\",\"quote_hash\":\"22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844\",\"rate\":\"10\",\"recipient_id\":\"provider.sandbox\",\"refunded\":\"0\",\"session_id\":\"1a8e62f8-basic\",\"started_at\":\"1793369878\"}],\"event\":\"opened\",\"standard\":\"agentpay\",\"version\":\"1.0.0\"}"
121
+ ],
122
+ "previousHash": "c8673f98fb8cb99109bf3938ab848e34d7b7eacca61c0327f21f3957e5dd08b2",
123
+ "eventHash": "73466f5f1c2c5fb2be113b55036e7886c7c6c34c40fbc616c87f5b32f4104517"
124
+ },
125
+ {
126
+ "schemaVersion": 1,
127
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
128
+ "sequence": 6,
129
+ "at": "2026-10-30T14:17:58.629Z",
130
+ "type": "request",
131
+ "sessionId": "1a8e62f8-basic",
132
+ "count": 1,
133
+ "status": 200,
134
+ "previousHash": "73466f5f1c2c5fb2be113b55036e7886c7c6c34c40fbc616c87f5b32f4104517",
135
+ "eventHash": "d421f19f80b4566ccfd85bd489cdc5ab67da5f416d55daf198b60dffefbf8c41"
136
+ },
137
+ {
138
+ "schemaVersion": 1,
139
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
140
+ "sequence": 7,
141
+ "at": "2026-10-30T14:17:58.761Z",
142
+ "type": "request",
143
+ "sessionId": "1a8e62f8-basic",
144
+ "count": 2,
145
+ "status": 200,
146
+ "previousHash": "d421f19f80b4566ccfd85bd489cdc5ab67da5f416d55daf198b60dffefbf8c41",
147
+ "eventHash": "dc3be1d3e7d39a52a9d37e3ba1bbc2527f1ff48441e13a1870868722e5848041"
148
+ },
149
+ {
150
+ "schemaVersion": 1,
151
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
152
+ "sequence": 8,
153
+ "at": "2026-10-30T14:17:58.894Z",
154
+ "type": "request",
155
+ "sessionId": "1a8e62f8-basic",
156
+ "count": 3,
157
+ "status": 200,
158
+ "previousHash": "dc3be1d3e7d39a52a9d37e3ba1bbc2527f1ff48441e13a1870868722e5848041",
159
+ "eventHash": "9d37d2b5472ace372eb075a38d291d7a113a2c7f9e46ee650dd781e565fe8c81"
160
+ },
161
+ {
162
+ "schemaVersion": 1,
163
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
164
+ "sequence": 9,
165
+ "at": "2026-10-30T14:17:59.027Z",
166
+ "type": "request",
167
+ "sessionId": "1a8e62f8-basic",
168
+ "count": 4,
169
+ "status": 200,
170
+ "previousHash": "9d37d2b5472ace372eb075a38d291d7a113a2c7f9e46ee650dd781e565fe8c81",
171
+ "eventHash": "7ee3a4e348962ca6f1437f2a9177fc1a56ea0edd46bad7e8a3ffa9ad59ecdfe9"
172
+ },
173
+ {
174
+ "schemaVersion": 1,
175
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
176
+ "sequence": 10,
177
+ "at": "2026-10-30T14:17:59.162Z",
178
+ "type": "request",
179
+ "sessionId": "1a8e62f8-basic",
180
+ "count": 5,
181
+ "status": 200,
182
+ "previousHash": "7ee3a4e348962ca6f1437f2a9177fc1a56ea0edd46bad7e8a3ffa9ad59ecdfe9",
183
+ "eventHash": "5dbb8b419ea7fd906a66ec1d4bd96649eb09925dc2935e65af56927bb3f67cb8"
184
+ },
185
+ {
186
+ "schemaVersion": 1,
187
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
188
+ "sequence": 11,
189
+ "at": "2026-10-30T14:17:59.296Z",
190
+ "type": "request",
191
+ "sessionId": "1a8e62f8-basic",
192
+ "count": 6,
193
+ "status": 200,
194
+ "previousHash": "5dbb8b419ea7fd906a66ec1d4bd96649eb09925dc2935e65af56927bb3f67cb8",
195
+ "eventHash": "7b795f86744e0ac33d354651d0de2c5cf0ea5eeb65c0aae3baab8e2c86b4f729"
196
+ },
197
+ {
198
+ "schemaVersion": 1,
199
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
200
+ "sequence": 12,
201
+ "at": "2026-10-30T14:17:59.429Z",
202
+ "type": "request",
203
+ "sessionId": "1a8e62f8-basic",
204
+ "count": 7,
205
+ "status": 200,
206
+ "previousHash": "7b795f86744e0ac33d354651d0de2c5cf0ea5eeb65c0aae3baab8e2c86b4f729",
207
+ "eventHash": "74686f9c384ae66e2279923b996f99871726c0a63016919da8c6b867fbfb0a79"
208
+ },
209
+ {
210
+ "schemaVersion": 1,
211
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
212
+ "sequence": 13,
213
+ "at": "2026-10-30T14:17:59.564Z",
214
+ "type": "request",
215
+ "sessionId": "1a8e62f8-basic",
216
+ "count": 8,
217
+ "status": 200,
218
+ "previousHash": "74686f9c384ae66e2279923b996f99871726c0a63016919da8c6b867fbfb0a79",
219
+ "eventHash": "048f1b14514930fa6238c41151a743a524ca86d7502617cd169e2a0cf1f95958"
220
+ },
221
+ {
222
+ "schemaVersion": 1,
223
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
224
+ "sequence": 14,
225
+ "at": "2026-10-30T14:17:59.696Z",
226
+ "type": "request",
227
+ "sessionId": "1a8e62f8-basic",
228
+ "count": 9,
229
+ "status": 200,
230
+ "previousHash": "048f1b14514930fa6238c41151a743a524ca86d7502617cd169e2a0cf1f95958",
231
+ "eventHash": "40997548dbf055c60babeaa9d82b2cb741aad20a531a59c790421c3b7b883336"
232
+ },
233
+ {
234
+ "schemaVersion": 1,
235
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
236
+ "sequence": 15,
237
+ "at": "2026-10-30T14:17:59.828Z",
238
+ "type": "request",
239
+ "sessionId": "1a8e62f8-basic",
240
+ "count": 10,
241
+ "status": 200,
242
+ "previousHash": "40997548dbf055c60babeaa9d82b2cb741aad20a531a59c790421c3b7b883336",
243
+ "eventHash": "0e8fcbbe2ceeac825988618a6c81694cdebafb1f0859966862939ec0aba27f05"
244
+ },
245
+ {
246
+ "schemaVersion": 1,
247
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
248
+ "sequence": 16,
249
+ "at": "2026-10-30T14:17:59.956Z",
250
+ "type": "reuse_verified",
251
+ "sessionId": "1a8e62f8-basic",
252
+ "successfulRequests": 10,
253
+ "nonceBefore": "48000001",
254
+ "nonceAfter": "48000001",
255
+ "extraPaymentTransactions": 0,
256
+ "previousHash": "0e8fcbbe2ceeac825988618a6c81694cdebafb1f0859966862939ec0aba27f05",
257
+ "eventHash": "4578e7e5cafc23893fd89679c31f13e852f2ba6b76b5b552fe25b425ed3956a8"
258
+ },
259
+ {
260
+ "schemaVersion": 1,
261
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
262
+ "sequence": 17,
263
+ "at": "2026-10-30T14:17:59.972Z",
264
+ "type": "policy",
265
+ "sessionId": "1a8e62f8-basic",
266
+ "decision": "CONTINUE",
267
+ "reason": "SERVICE_HEALTHY",
268
+ "previousHash": "4578e7e5cafc23893fd89679c31f13e852f2ba6b76b5b552fe25b425ed3956a8",
269
+ "eventHash": "2aabdeda60e88d4e9f71cfd0f27f669461bc2b68da647df42e6f323d4b30e3ff"
270
+ },
271
+ {
272
+ "schemaVersion": 1,
273
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
274
+ "sequence": 18,
275
+ "at": "2026-10-30T14:17:59.976Z",
276
+ "type": "outage",
277
+ "sessionId": "1a8e62f8-basic",
278
+ "injected": true,
279
+ "previousHash": "2aabdeda60e88d4e9f71cfd0f27f669461bc2b68da647df42e6f323d4b30e3ff",
280
+ "eventHash": "3cc384d4afe1d613955349622a529bd54889947bbf9e3099bfa1a8720e356f71"
281
+ },
282
+ {
283
+ "schemaVersion": 1,
284
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
285
+ "sequence": 19,
286
+ "at": "2026-10-30T14:17:59.992Z",
287
+ "type": "policy",
288
+ "sessionId": "1a8e62f8-basic",
289
+ "decision": "CLOSE",
290
+ "reason": "SERVICE_UNAVAILABLE",
291
+ "previousHash": "3cc384d4afe1d613955349622a529bd54889947bbf9e3099bfa1a8720e356f71",
292
+ "eventHash": "2c6f03db52cf80a78446de4096d38946812a4903830991ee558634535a80c851"
293
+ },
294
+ {
295
+ "schemaVersion": 1,
296
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
297
+ "sequence": 20,
298
+ "at": "2026-10-30T14:18:00.749Z",
299
+ "type": "transaction",
300
+ "action": "CLOSE",
301
+ "hash": "BqQm62i1ZDz8hn1xYFBAXPjN7BYBBdHfp6qA6K2VxGdd",
302
+ "signerId": "agent.sandbox",
303
+ "receiverId": "vault.sandbox",
304
+ "value": {
305
+ "session_id": "1a8e62f8-basic",
306
+ "recipient_id": "provider.sandbox",
307
+ "quote_hash": "22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844",
308
+ "deposit": "10000",
309
+ "rate": "10",
310
+ "duration_seconds": 1000,
311
+ "started_at": "1793369878",
312
+ "closed_at": "1793369880",
313
+ "earned": "20",
314
+ "refunded": "9980"
315
+ },
316
+ "receiptFailures": [],
317
+ "receiptIds": [
318
+ "9QJGTohfgBumXykwKzrQPVUcRbXh7Pyw3rc7pkpPu7Y2",
319
+ "A5jf9uzdmvr3ao4pfZsggs4987Z3tHvVXD4Kai6zPkYY"
320
+ ],
321
+ "logs": [
322
+ "EVENT_JSON:{\"data\":[{\"closed_at\":\"1793369880\",\"deposit\":\"10000\",\"duration_seconds\":1000,\"earned\":\"20\",\"quote_hash\":\"22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844\",\"rate\":\"10\",\"recipient_id\":\"provider.sandbox\",\"refunded\":\"9980\",\"session_id\":\"1a8e62f8-basic\",\"started_at\":\"1793369878\"}],\"event\":\"closed\",\"standard\":\"agentpay\",\"version\":\"1.0.0\"}"
323
+ ],
324
+ "previousHash": "2c6f03db52cf80a78446de4096d38946812a4903830991ee558634535a80c851",
325
+ "eventHash": "142f85986a139eab76a2430d1f84d44a8f515cca4808520b8c040d1974d5261a"
326
+ },
327
+ {
328
+ "schemaVersion": 1,
329
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
330
+ "sequence": 21,
331
+ "at": "2026-10-30T14:18:00.758Z",
332
+ "type": "settled",
333
+ "stream": {
334
+ "session_id": "1a8e62f8-basic",
335
+ "recipient_id": "provider.sandbox",
336
+ "quote_hash": "22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844",
337
+ "deposit": "10000",
338
+ "rate": "10",
339
+ "duration_seconds": 1000,
340
+ "started_at": "1793369878",
341
+ "closed_at": "1793369880",
342
+ "earned": "20",
343
+ "refunded": "9980"
344
+ },
345
+ "previousHash": "142f85986a139eab76a2430d1f84d44a8f515cca4808520b8c040d1974d5261a",
346
+ "eventHash": "5c275483856bd8e4c960a5c5c5900083dd635b5bdb46877c14aa8e7f37737099"
347
+ },
348
+ {
349
+ "schemaVersion": 1,
350
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
351
+ "sequence": 22,
352
+ "at": "2026-10-30T14:18:02.164Z",
353
+ "type": "model",
354
+ "provider": "qwen",
355
+ "model": "qwen3.5-plus",
356
+ "responseId": "resp_08432f23-56c5-9032-ace6-172f22820637",
357
+ "previousHash": "5c275483856bd8e4c960a5c5c5900083dd635b5bdb46877c14aa8e7f37737099",
358
+ "eventHash": "25042ad1bf2da83828e322ba2f0f28eef57c687f6fa8c01e2d3ae22479930c4e"
359
+ },
360
+ {
361
+ "schemaVersion": 1,
362
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
363
+ "sequence": 23,
364
+ "at": "2026-10-30T14:18:02.171Z",
365
+ "type": "proposal",
366
+ "tier": "premium",
367
+ "sessionId": "1a8e62f8-premium",
368
+ "previousHash": "25042ad1bf2da83828e322ba2f0f28eef57c687f6fa8c01e2d3ae22479930c4e",
369
+ "eventHash": "34c9716acb46bdbefa47a3343c49f944ad6ac86cc093e5b38529e45cd31b030f"
370
+ },
371
+ {
372
+ "schemaVersion": 1,
373
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
374
+ "sequence": 24,
375
+ "at": "2026-10-30T14:18:02.183Z",
376
+ "type": "policy",
377
+ "tier": "premium",
378
+ "sessionId": "1a8e62f8-premium",
379
+ "decision": "DENY",
380
+ "reason": "RATE_LIMIT",
381
+ "quote": {
382
+ "version": 1,
383
+ "vault_id": "vault.sandbox",
384
+ "token_id": "token.sandbox",
385
+ "recipient_id": "provider.sandbox",
386
+ "tier": "premium",
387
+ "rate": "200",
388
+ "duration_seconds": 1000,
389
+ "expires_at": 1793370182
390
+ },
391
+ "previousHash": "34c9716acb46bdbefa47a3343c49f944ad6ac86cc093e5b38529e45cd31b030f",
392
+ "eventHash": "0b3b519d1c26dfee7578d96f26a73ae96695f30a836f5e02776646ef016c432a"
393
+ },
394
+ {
395
+ "schemaVersion": 1,
396
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
397
+ "sequence": 25,
398
+ "at": "2026-10-30T14:18:11.130Z",
399
+ "type": "model",
400
+ "provider": "qwen",
401
+ "model": "qwen3.5-plus",
402
+ "responseId": "resp_dd37dba1-8aef-9065-bd2a-e51c55df0246",
403
+ "previousHash": "0b3b519d1c26dfee7578d96f26a73ae96695f30a836f5e02776646ef016c432a",
404
+ "eventHash": "573f6a08a7e2a3773059623d9d2849847f8e497abb0c9f86bf047748415ef91e"
405
+ },
406
+ {
407
+ "schemaVersion": 1,
408
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
409
+ "sequence": 26,
410
+ "at": "2026-10-30T14:18:11.137Z",
411
+ "type": "summary",
412
+ "text": "### Transaction Analysis\n\n**1. Basic Tier Purchase (Success)**\n* **Payment & Escrow:** The transaction initiated a deposit of **10,000** units (representing the 0.01 test USDC basic deposit) into the native NEAR vault. This acts as an escrow, not a direct payment to the provider.\n* **Reuse & Execution:** The session (`sessionId: 1a8e62f8-basic`) successfully processed **10 requests**. This demonstrates the time-based stream reuse capability where multiple API calls are covered under a single deposit window.\n* **Refund & Earnings:** Upon the explicitly injected outage causing closure:\n * **Earned Tokens:** **20** units were marked as `claimable` for the provider based on actual usage.\n * **Refund:** The remaining **9,980** units were automatically returned to the vault (`refundedToVault`), ensuring no funds were lost due to the premature termination.\n* **Verification:**\n * Open Transaction: `C2e8cqYYYuCBC9yymCoMwp6awpsCmceWpZ7s34NcDoSm`\n * Close Transaction: `BqQm62i1ZDz8hn1xYFBAXPjN7BYBBdHfp6qA6K2VxGdd`\n\n**2. Premium Tier Attempt (Denial)**\n* **Result:** The request for the premium tier was **DENIED**.\n* **Reason:** The deterministic policy worker returned `RATE_LIMIT`. Despite the basic session completing, the system enforced a restriction preventing the upgrade or parallel execution of the premium tier, adhering to the requirement that \"Premium must be denied.\"\n\n**Summary of Observations**\nThe system correctly handled the lifecycle of a test token deposit: locking funds in escrow, tracking usage via a reusable stream, calculating provider earnings versus user refunds upon forced closure, and strictly enforcing access policies by denying the premium tier request. No production decentralization or Chainlink execution was claimed; all operations occurred within the defined NEAR test environment constraints.",
413
+ "previousHash": "573f6a08a7e2a3773059623d9d2849847f8e497abb0c9f86bf047748415ef91e",
414
+ "eventHash": "3c354461f60f8a59fc3e6e8220c9a4f03039ff48adcec7687f7742ea8555c933"
415
+ },
416
+ {
417
+ "schemaVersion": 1,
418
+ "runId": "1a8e62f8-420b-4999-aca5-8a2dfc870ff6",
419
+ "sequence": 27,
420
+ "at": "2026-10-30T14:18:11.144Z",
421
+ "type": "finished",
422
+ "ok": true,
423
+ "previousHash": "3c354461f60f8a59fc3e6e8220c9a4f03039ff48adcec7687f7742ea8555c933",
424
+ "eventHash": "dcf7a6d79c00b0baabcaa156f125fc24cca68b3798c90ae58b37cb9be56ae88e"
425
+ }
426
+ ],
427
+ "receipts": [
428
+ {
429
+ "action": "OPEN",
430
+ "hash": "C2e8cqYYYuCBC9yymCoMwp6awpsCmceWpZ7s34NcDoSm",
431
+ "signerId": "agent.sandbox",
432
+ "receiverId": "vault.sandbox",
433
+ "value": {
434
+ "session_id": "1a8e62f8-basic",
435
+ "recipient_id": "provider.sandbox",
436
+ "quote_hash": "22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844",
437
+ "deposit": "10000",
438
+ "rate": "10",
439
+ "duration_seconds": 1000,
440
+ "started_at": "1793369878",
441
+ "closed_at": null,
442
+ "earned": "0",
443
+ "refunded": "0"
444
+ },
445
+ "receiptFailures": [],
446
+ "receiptIds": [
447
+ "GemZV4n3ocDVrwdfYrab2uur42eFbtVc92yLDUqRgwfv",
448
+ "EWa7jQB423dT6ZkLwxV8g6cbYapJX5iJub6p5ogiJCXq"
449
+ ],
450
+ "logs": [
451
+ "EVENT_JSON:{\"data\":[{\"closed_at\":null,\"deposit\":\"10000\",\"duration_seconds\":1000,\"earned\":\"0\",\"quote_hash\":\"22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844\",\"rate\":\"10\",\"recipient_id\":\"provider.sandbox\",\"refunded\":\"0\",\"session_id\":\"1a8e62f8-basic\",\"started_at\":\"1793369878\"}],\"event\":\"opened\",\"standard\":\"agentpay\",\"version\":\"1.0.0\"}"
452
+ ]
453
+ },
454
+ {
455
+ "action": "CLOSE",
456
+ "hash": "BqQm62i1ZDz8hn1xYFBAXPjN7BYBBdHfp6qA6K2VxGdd",
457
+ "signerId": "agent.sandbox",
458
+ "receiverId": "vault.sandbox",
459
+ "value": {
460
+ "session_id": "1a8e62f8-basic",
461
+ "recipient_id": "provider.sandbox",
462
+ "quote_hash": "22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844",
463
+ "deposit": "10000",
464
+ "rate": "10",
465
+ "duration_seconds": 1000,
466
+ "started_at": "1793369878",
467
+ "closed_at": "1793369880",
468
+ "earned": "20",
469
+ "refunded": "9980"
470
+ },
471
+ "receiptFailures": [],
472
+ "receiptIds": [
473
+ "9QJGTohfgBumXykwKzrQPVUcRbXh7Pyw3rc7pkpPu7Y2",
474
+ "A5jf9uzdmvr3ao4pfZsggs4987Z3tHvVXD4Kai6zPkYY"
475
+ ],
476
+ "logs": [
477
+ "EVENT_JSON:{\"data\":[{\"closed_at\":\"1793369880\",\"deposit\":\"10000\",\"duration_seconds\":1000,\"earned\":\"20\",\"quote_hash\":\"22fa126d9016eb73d9d467ccc38e3d5bbae3bca5ea76ea2d90addd5a5d4f7844\",\"rate\":\"10\",\"recipient_id\":\"provider.sandbox\",\"refunded\":\"9980\",\"session_id\":\"1a8e62f8-basic\",\"started_at\":\"1793369878\"}],\"event\":\"closed\",\"standard\":\"agentpay\",\"version\":\"1.0.0\"}"
478
+ ]
479
+ }
480
+ ],
481
+ "finalVault": {
482
+ "version": "2.0.0",
483
+ "owner_id": "owner.sandbox",
484
+ "token_id": "token.sandbox",
485
+ "agent_id": "agent.sandbox",
486
+ "agent_key": "ed25519:BRZ4qvRBe7qJ4M1FT6pWVeW35MZcCjY68VxYrtRroNV",
487
+ "policy_key": "ed25519:AiZe9a7HoCxBgBrE2K97ucBAx6wpoVSkEZUtFFvY2HLn",
488
+ "policy": {
489
+ "budget": "100000",
490
+ "max_deposit": "10000",
491
+ "max_rate": "100",
492
+ "max_duration_seconds": 1000,
493
+ "recipients": [
494
+ "provider.sandbox",
495
+ "outsider.sandbox"
496
+ ]
497
+ },
498
+ "available": "999980",
499
+ "spent": "20",
500
+ "reserved": "0",
501
+ "claimable_total": "0",
502
+ "pending_total": "0",
503
+ "next_nonce": "2",
504
+ "active_session": null,
505
+ "paused": false,
506
+ "now": "1793369891"
507
+ },
508
+ "providerPayout": {
509
+ "hash": "AJr1qQUNtuUPNCfK9u3shv4k1TWS56qqPsYBfBP6SzM9",
510
+ "signerId": "provider.sandbox",
511
+ "receiverId": "vault.sandbox",
512
+ "value": true,
513
+ "receiptFailures": [],
514
+ "receiptIds": [
515
+ "3eYg7M8Kw6t65oNoxwEZCEybabSzVtEPDdoSFKKvMber",
516
+ "e6SiH1oLgssdx6BgitvvCM3vQB2KuofVzA31M8pYovt",
517
+ "A8AmGKcfMdnsm8CSNSbt3XMmPLD8FfRL4im4W4ALdtST",
518
+ "7URMvNoupSnXGNjWy4aNNVNvUXFywTPTEjnA3627MxvX",
519
+ "2JBdU2wFu4vjz7Z5RBXqEoviYggiQHxpi5nfMEUZfHxY",
520
+ "GDhwYDJtJ8NUJbo7WY2C2X48JjK29izC56PQ2BXxpoxh"
521
+ ],
522
+ "logs": [
523
+ "EVENT_JSON:{\"standard\":\"nep141\",\"version\":\"1.0.0\",\"event\":\"ft_transfer\",\"data\":[{\"old_owner_id\":\"vault.sandbox\",\"new_owner_id\":\"provider.sandbox\",\"amount\":\"20\",\"memo\":\"AgentPay payout\"}]}",
524
+ "EVENT_JSON:{\"data\":[{\"amount\":\"20\",\"payout_id\":\"0\",\"receiver_id\":\"provider.sandbox\",\"success\":true}],\"event\":\"payout\",\"standard\":\"agentpay\",\"version\":\"1.0.0\"}"
525
+ ]
526
+ },
527
+ "providerBalance": "20"
528
+ }