@t3foundry/tasra-sdk 0.3.1-next.1 → 0.4.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 (255) hide show
  1. package/CHANGELOG.md +1067 -28
  2. package/README.md +15 -0
  3. package/dist/app/approvals.d.ts +66 -4
  4. package/dist/app/approvals.js +153 -16
  5. package/dist/app/authorization.d.ts +1 -1
  6. package/dist/app/authorization.js +1 -1
  7. package/dist/app/browser.d.ts +63 -0
  8. package/dist/app/browser.js +242 -0
  9. package/dist/app/client.d.ts +114 -13
  10. package/dist/app/client.js +302 -76
  11. package/dist/app/identity.js +21 -9
  12. package/dist/app/index.d.ts +28 -3
  13. package/dist/app/index.js +16 -1
  14. package/dist/app/memory-store.d.ts +7 -0
  15. package/dist/app/memory-store.js +55 -0
  16. package/dist/app/node.d.ts +34 -6
  17. package/dist/app/node.js +387 -64
  18. package/dist/app/paid-allowance.d.ts +325 -0
  19. package/dist/app/paid-allowance.js +1290 -0
  20. package/dist/app/paid-approval.d.ts +122 -0
  21. package/dist/app/paid-approval.js +379 -0
  22. package/dist/app/paid-journal.d.ts +51 -0
  23. package/dist/app/paid-journal.js +117 -0
  24. package/dist/app/paid-keys.d.ts +12 -0
  25. package/dist/app/paid-keys.js +20 -0
  26. package/dist/app/paid-operation.d.ts +821 -0
  27. package/dist/app/paid-operation.js +1720 -0
  28. package/dist/app/paid-reservation.d.ts +157 -0
  29. package/dist/app/paid-reservation.js +323 -0
  30. package/dist/app/paid-session.d.ts +147 -0
  31. package/dist/app/paid-session.js +578 -0
  32. package/dist/app/payer-queue.d.ts +11 -0
  33. package/dist/app/payer-queue.js +27 -0
  34. package/dist/app/policy-bootstrap.d.ts +342 -0
  35. package/dist/app/policy-bootstrap.js +365 -0
  36. package/dist/app/policy-operation.d.ts +47 -0
  37. package/dist/app/policy-operation.js +101 -0
  38. package/dist/app/ready-slot.d.ts +12 -0
  39. package/dist/app/ready-slot.js +5 -2
  40. package/dist/app/rotation-lock.d.ts +38 -0
  41. package/dist/app/rotation-lock.js +42 -0
  42. package/dist/app/session-decrypt.d.ts +135 -0
  43. package/dist/app/session-decrypt.js +335 -0
  44. package/dist/app/session-grants.d.ts +349 -0
  45. package/dist/app/session-grants.js +811 -0
  46. package/dist/app/signing-intents.d.ts +78 -0
  47. package/dist/app/signing-intents.js +95 -0
  48. package/dist/app/store-commit.d.ts +63 -0
  49. package/dist/app/store-commit.js +126 -0
  50. package/dist/app/store-errors.d.ts +8 -0
  51. package/dist/app/store-errors.js +11 -0
  52. package/dist/app/tasra-client.d.ts +2 -0
  53. package/dist/app/tasra-client.js +1 -1
  54. package/dist/app/wallet.js +4 -1
  55. package/dist/auth/holderProof.d.ts +3 -0
  56. package/dist/auth/holderProof.js +8 -7
  57. package/dist/auth/verifier.d.ts +4 -2
  58. package/dist/auth/verifier.js +5 -2
  59. package/dist/chain/abis/index.d.ts +6178 -4101
  60. package/dist/chain/abis/index.js +3 -0
  61. package/dist/chain/abis/keyRegistry.d.ts +256 -0
  62. package/dist/chain/abis/keyRegistry.js +333 -0
  63. package/dist/chain/abis/prepaidFaultOracle.d.ts +321 -0
  64. package/dist/chain/abis/prepaidFaultOracle.js +413 -0
  65. package/dist/chain/abis/settlement.d.ts +2203 -703
  66. package/dist/chain/abis/settlement.js +2685 -764
  67. package/dist/chain/allowance.d.ts +358 -0
  68. package/dist/chain/allowance.js +800 -0
  69. package/dist/chain/billing.d.ts +85 -0
  70. package/dist/chain/billing.js +197 -0
  71. package/dist/chain/chainId.d.ts +13 -0
  72. package/dist/chain/chainId.js +26 -0
  73. package/dist/chain/client.d.ts +15 -1
  74. package/dist/chain/client.js +57 -1
  75. package/dist/chain/commitmentRecovery.d.ts +51 -0
  76. package/dist/chain/commitmentRecovery.js +38 -0
  77. package/dist/chain/committeeClient.d.ts +17 -10
  78. package/dist/chain/committeeClient.js +64 -16
  79. package/dist/chain/committeeDraw.d.ts +12 -0
  80. package/dist/chain/committeeDraw.js +56 -0
  81. package/dist/chain/custodyHealth.d.ts +212 -0
  82. package/dist/chain/custodyHealth.js +365 -0
  83. package/dist/chain/deployments.js +2 -0
  84. package/dist/chain/events.js +2 -0
  85. package/dist/chain/headFollower.d.ts +77 -0
  86. package/dist/chain/headFollower.js +219 -0
  87. package/dist/chain/headPrefetch.d.ts +23 -0
  88. package/dist/chain/headPrefetch.js +67 -0
  89. package/dist/chain/index.d.ts +50 -8
  90. package/dist/chain/index.js +28 -3
  91. package/dist/chain/keeperExecution.d.ts +44 -0
  92. package/dist/chain/keeperExecution.js +127 -0
  93. package/dist/chain/keeperRecovery.d.ts +78 -0
  94. package/dist/chain/keeperRecovery.js +91 -0
  95. package/dist/chain/node.d.ts +24 -1
  96. package/dist/chain/node.js +88 -43
  97. package/dist/chain/offchain.d.ts +2 -0
  98. package/dist/chain/paidAgentTransport.d.ts +38 -0
  99. package/dist/chain/paidAgentTransport.js +1 -0
  100. package/dist/chain/paidEpoch.d.ts +66 -0
  101. package/dist/chain/paidEpoch.js +139 -0
  102. package/dist/chain/paidPacing.d.ts +81 -0
  103. package/dist/chain/paidPacing.js +136 -0
  104. package/dist/chain/pinnedReads.d.ts +49 -0
  105. package/dist/chain/pinnedReads.js +218 -0
  106. package/dist/chain/prepaid.d.ts +383 -0
  107. package/dist/chain/prepaid.js +1046 -0
  108. package/dist/chain/prepaidEscape.d.ts +274 -0
  109. package/dist/chain/prepaidEscape.js +432 -0
  110. package/dist/chain/prepaidFault.d.ts +94 -0
  111. package/dist/chain/prepaidFault.js +148 -0
  112. package/dist/chain/receipt.d.ts +24 -0
  113. package/dist/chain/receipt.js +82 -0
  114. package/dist/chain/registeredAgent.d.ts +68 -3
  115. package/dist/chain/registeredAgent.js +143 -42
  116. package/dist/chain/registeredOperation.d.ts +10 -1
  117. package/dist/chain/registeredOperation.js +18 -3
  118. package/dist/chain/registeredPaidAgent.d.ts +254 -0
  119. package/dist/chain/registeredPaidAgent.js +889 -0
  120. package/dist/chain/registeredRelay.d.ts +31 -1
  121. package/dist/chain/registeredRelay.js +164 -43
  122. package/dist/chain/relayVoucher.d.ts +64 -0
  123. package/dist/chain/relayVoucher.js +69 -0
  124. package/dist/chain/reservation.d.ts +239 -0
  125. package/dist/chain/reservation.js +746 -0
  126. package/dist/chain/reshareRoster.d.ts +64 -0
  127. package/dist/chain/reshareRoster.js +85 -0
  128. package/dist/chain/revertReason.d.ts +8 -0
  129. package/dist/chain/revertReason.js +2 -1
  130. package/dist/chain/rotationLock.d.ts +130 -0
  131. package/dist/chain/rotationLock.js +168 -0
  132. package/dist/chain/serviceRequestPolicy.d.ts +47 -0
  133. package/dist/chain/serviceRequestPolicy.js +86 -0
  134. package/dist/chain/services.d.ts +7 -0
  135. package/dist/chain/services.js +44 -4
  136. package/dist/chain/slotClient.js +11 -2
  137. package/dist/chain/slotHandoff.d.ts +81 -0
  138. package/dist/chain/slotHandoff.js +166 -0
  139. package/dist/chain/slotSeed.d.ts +47 -5
  140. package/dist/chain/slotSeed.js +173 -42
  141. package/dist/chain/verifierSnapshot.d.ts +36 -0
  142. package/dist/chain/verifierSnapshot.js +197 -0
  143. package/dist/chain/write.d.ts +111 -21
  144. package/dist/chain/write.js +378 -146
  145. package/dist/committee/blsSharing.d.ts +53 -0
  146. package/dist/committee/blsSharing.js +90 -0
  147. package/dist/committee/client.d.ts +62 -23
  148. package/dist/committee/client.js +288 -72
  149. package/dist/committee/dual-operation.d.ts +165 -0
  150. package/dist/committee/dual-operation.js +229 -0
  151. package/dist/committee/dual-sign.d.ts +26 -1
  152. package/dist/committee/dual-sign.js +85 -7
  153. package/dist/committee/ecdsa.d.ts +38 -0
  154. package/dist/committee/ecdsa.js +87 -15
  155. package/dist/committee/evidence.d.ts +30 -0
  156. package/dist/committee/evidence.js +65 -0
  157. package/dist/committee/execution.d.ts +414 -0
  158. package/dist/committee/execution.js +446 -0
  159. package/dist/committee/extraction.js +33 -26
  160. package/dist/committee/index.d.ts +30 -7
  161. package/dist/committee/index.js +18 -6
  162. package/dist/committee/keeperExecution.d.ts +37 -0
  163. package/dist/committee/keeperExecution.js +141 -0
  164. package/dist/committee/oauth.d.ts +14 -4
  165. package/dist/committee/oauth.js +17 -5
  166. package/dist/committee/payment.d.ts +369 -0
  167. package/dist/committee/payment.js +339 -0
  168. package/dist/committee/recovery.d.ts +136 -0
  169. package/dist/committee/recovery.js +204 -0
  170. package/dist/committee/recoveryJson.d.ts +2 -0
  171. package/dist/committee/recoveryJson.js +87 -0
  172. package/dist/committee/request.d.ts +63 -27
  173. package/dist/committee/request.js +77 -66
  174. package/dist/committee/session-grant.d.ts +320 -0
  175. package/dist/committee/session-grant.js +397 -0
  176. package/dist/committee/status-refresh.d.ts +257 -0
  177. package/dist/committee/status-refresh.js +619 -0
  178. package/dist/committee/token.d.ts +163 -15
  179. package/dist/committee/token.js +247 -10
  180. package/dist/crypto/bn254.d.ts +70 -0
  181. package/dist/crypto/bn254.js +222 -0
  182. package/dist/crypto/ibe.d.ts +32 -0
  183. package/dist/crypto/ibe.js +56 -8
  184. package/dist/crypto/index.d.ts +1 -1
  185. package/dist/crypto/index.js +1 -1
  186. package/dist/crypto/kem.d.ts +31 -0
  187. package/dist/crypto/kem.js +113 -7
  188. package/dist/crypto/recipient.d.ts +75 -0
  189. package/dist/crypto/recipient.js +107 -0
  190. package/dist/decryption/client.d.ts +10 -16
  191. package/dist/decryption/client.js +8 -76
  192. package/dist/decryption/index.d.ts +2 -0
  193. package/dist/decryption/index.js +2 -0
  194. package/dist/decryption/sealed.d.ts +72 -0
  195. package/dist/decryption/sealed.js +147 -0
  196. package/dist/decryption/session.d.ts +115 -0
  197. package/dist/decryption/session.js +358 -0
  198. package/dist/errors.d.ts +406 -1
  199. package/dist/errors.js +400 -5
  200. package/dist/index.d.ts +9 -2
  201. package/dist/index.js +6 -1
  202. package/dist/internal/bounded.d.ts +66 -0
  203. package/dist/internal/bounded.js +126 -0
  204. package/dist/internal/network.d.ts +4 -0
  205. package/dist/internal/network.js +40 -0
  206. package/dist/internal/retryAfter.d.ts +8 -0
  207. package/dist/internal/retryAfter.js +28 -0
  208. package/dist/internal/sleep.d.ts +6 -0
  209. package/dist/internal/sleep.js +15 -0
  210. package/dist/internal/typedData.d.ts +13 -0
  211. package/dist/internal/typedData.js +77 -0
  212. package/dist/internal/viemErrors.d.ts +26 -0
  213. package/dist/internal/viemErrors.js +49 -0
  214. package/dist/oid4vp/binding.d.ts +27 -1
  215. package/dist/oid4vp/binding.js +36 -1
  216. package/dist/oid4vp/jose.d.ts +4 -2
  217. package/dist/oid4vp/jose.js +39 -7
  218. package/dist/oid4vp/request-object.d.ts +61 -4
  219. package/dist/oid4vp/request-object.js +140 -5
  220. package/dist/oid4vp/verifier-agent.d.ts +18 -8
  221. package/dist/oid4vp/verifier-agent.js +48 -6
  222. package/dist/oid4vp/wallet.d.ts +2 -4
  223. package/dist/oid4vp/wallet.js +1 -0
  224. package/dist/retry.d.ts +78 -0
  225. package/dist/retry.js +137 -0
  226. package/dist/signing/frost.d.ts +1 -1
  227. package/dist/verifier-agent/index.d.ts +41 -5
  228. package/dist/verifier-agent/index.js +124 -9
  229. package/dist/verifier-agent/payment.d.ts +7 -0
  230. package/dist/verifier-agent/payment.js +17 -0
  231. package/docs/api.md +8 -2
  232. package/docs/application-api.md +25 -2
  233. package/docs/chain.md +155 -9
  234. package/docs/consumer-migrations.md +61 -0
  235. package/docs/encrypted-notes.md +3 -2
  236. package/docs/encryption.md +4 -2
  237. package/docs/errors.md +14 -1
  238. package/docs/flows.md +2 -2
  239. package/docs/funding.md +902 -0
  240. package/docs/native-approvals.md +63 -0
  241. package/docs/reference/README.md +9 -8
  242. package/docs/reference/app-browser.md +232 -0
  243. package/docs/reference/app-node.md +38 -8
  244. package/docs/reference/app.md +4621 -805
  245. package/docs/reference/chain-node.md +74 -16
  246. package/docs/reference/chain.md +6740 -1592
  247. package/docs/reference/committee.md +5630 -987
  248. package/docs/reference/main.md +1439 -140
  249. package/docs/reference/oid4vp.md +297 -144
  250. package/docs/reference/verifier-agent.md +77 -35
  251. package/docs/signing.md +6 -0
  252. package/examples/encrypted-notes.ts +21 -6
  253. package/examples/getting-started.ts +2 -7
  254. package/examples/live-config.ts +24 -17
  255. package/package.json +17 -5
package/CHANGELOG.md CHANGED
@@ -9,6 +9,490 @@ never does.
9
9
 
10
10
  ### Added
11
11
 
12
+ - The rotation lock. `TasraWriteClient.lockKeyRotation` (relayed when a relay is configured) and
13
+ `lockKeyRotation(app, slotId, {wallet, store})` (`/app`, a durable named creator transaction)
14
+ lock a slot's key against every rotation, irreversibly; resharing still works. Set-once: an
15
+ already-locked slot resolves `already-locked` without sending, and so does every
16
+ threshold-ECDSA slot (`tecdsa`, `tecdsa-p256`), which the network locks by its mode. Refusals
17
+ before signing are a `RotationLockError` (`no-slot`, `cancelled`, `unsupported`,
18
+ `not-creator`; `not-confirmed` after a transaction that did not take). Readers
19
+ `readRotationLock` and `isRotationLocked`; decoders `decodeRotationLockRevert`
20
+ (`RotationLocked()`, `TecdsaReshareKeepsTooFew(staying, k)`) and
21
+ `decodeKeyRotationLockedLogs`; `ROTATION_LOCK_SELECTORS` and `ROTATION_LOCK_SENTINEL`. The
22
+ KeyRegistry ABI gains `lockKeyRotation`, `lastRotatedAt`, `KeyRotationLocked`,
23
+ `RotationLocked`, `RotationTooSoon` and `TecdsaReshareKeepsTooFew`, so `describeRevert`
24
+ names them.
25
+ - `checkTecdsaReshareRoster` and `ReshareRosterError`: a threshold-ECDSA reshare roster must keep
26
+ at least the current `k` members (only staying members re-deal the key), list `n` distinct
27
+ operators and keep `2 <= k <= n <= 50`. Checked before any vote is signed, on every registry.
28
+ - Custody health. `readCustodyHealth` polls every assigned keeper's custody-health reply and
29
+ counts a statement only when its signature verifies under the operator's key in NodeRegistry,
30
+ it names this chain, slot and operator, it is at most 900 s old, and the reply's unsigned
31
+ fields agree with it; anything else is listed in `refused` with a `CustodyHealthError`
32
+ (`unsigned`, `malformed`, `bad-signature`, `stale`, `mismatch`, `not-registered`,
33
+ `unreachable`). The committee's liveness, margin, health and rotation lock come from the SDK's
34
+ own chain reads. The signed `lastFailure` (the keeper's last failed reshare and the operator
35
+ it blamed) is decoded. Building blocks: `verifyCustodyHealthReply`, `parseCustodyStatement`,
36
+ `custodyStatementHash`, `verifyCustodyStatement`, `custodyStatementIsCurrent`,
37
+ `assessCustodyHealth`.
38
+ - Customer authorization bootstrap: a holder application runs paid operations on a slot whose
39
+ rule salt only the creator keeps. `issueSlotPolicyBootstrap` (creator side) signs an EIP-712
40
+ slot policy statement binding the chain, KeyRegistry, slot, rule version, salted commitment,
41
+ `keccak256` of the raw rule, the holder application key, allowed actions, lifetime and a
42
+ monotonic sequence, after checking the rule and salt against the slot; the salt is never in
43
+ it. `PaidOperationRequest.rule` also takes `{policy, audience}`: checked offline
44
+ (`verifySlotPolicyBootstrap`), then against the slot's creator, commitment and rule version at
45
+ the canonical discovery block, then against the store's sequence high-water mark, before
46
+ anything is signed or spent; the bootstrap is journaled, the salt is not. `paidPolicyOperation`
47
+ binds an application `operationKey` to the exact operation before anything is signed and
48
+ resumes the original journal entry on any later call with that key (`readPolicyOperation`
49
+ reads the binding). `createSlotPolicyRequest` / `verifySlotPolicyRequest` authenticate a
50
+ holder application's retrieval with its own key. New errors `SlotPolicyError`,
51
+ `PolicyOperationError` with stable codes.
52
+ - `slots.p256(slotId)`: a threshold P-256 slot adapter (`getPublicKey`, `signDigest`,
53
+ `signIntent`) with native approval bundles. `slots.ecdsa(slotId).signIntent` and
54
+ `signingIntentDigest` derive the digest from a transaction, EIP-712 typed data, a personal
55
+ message or (P-256) exact bytes; `requireIntentPayment` and `approveSigningIntent` bind the
56
+ payment and each approver to that intent.
57
+ - Paid OAuth+DPoP operations through the public paid-operation API: a
58
+ `{kind: 'oauth', credential}` holder for `paidOperation`, `resumePaidOperation` and
59
+ `drivePaidSession`. The OAuth mode is signed into the session and journaled with the operation
60
+ (a resume with a holder of the other family is refused; a holder that does not match the slot
61
+ rule's family is refused before anything is signed or reserved). The SDK verifies audience,
62
+ lifetime, `cnf.jkt`, nonce, `htm`, `htu`, `ath` and the proof signature locally, journals the
63
+ exact presentation before its one submission, never asks for a refreshed token on resume,
64
+ confirms a lost submission only by a read showing the agent holding exactly that presentation,
65
+ and repeats only a definite 429 with the identical bytes inside the proof's window (one that ran
66
+ out is journaled `unsent` and resent byte-identically on resume). New types `PaidOAuthContext`,
67
+ `PaidOAuthCredential`.
68
+ - Native two-person approvals on threshold ECDSA (secp256k1, P-256) and BLS slots, matching the
69
+ network's `dual_control` bundle: `setApprovalPolicy` installs on any ready FROST, BLS or tECDSA
70
+ slot; `readApprovalPolicy`; `prepareOperationApproval` (the statement for one final paid
71
+ operation, from the slot's own mode and epoch) and `assembleOperationApproval` (judged against
72
+ the on-chain quorum and approver set); `slots.ecdsa().signDigest` takes `dualControl`
73
+ (`EcdsaSignOptions`). `approveDualOperation`, `requireDualOperationProof` and the bundle types
74
+ are re-exported from `/app`.
75
+ - C24 session refusal codes. `SESSION_RETRYABLE_CODES` names the session-route refusals the same
76
+ request may pass later; the new `session_verifier_behind` (503: a verifier's chain view trails
77
+ the grant) is retried with the held grant, never ended on, pausing for its `Retry-After` or
78
+ `SESSION_VERIFIER_BEHIND_RETRY_MS` (2 s) when an older agent relays it without one. A keeper's
79
+ epoch-window refusal counts as stale (`isStaleSessionRefusal`) only when the grant is behind
80
+ the keeper's window or the keeper says `session-stale`; a keeper whose beacon lags the grant
81
+ (C24 `forbidden`, same text) is not a reason to refresh or pay again.
82
+ - Session grants follow the beacon across epoch boundaries.
83
+ `GrantedSession.observeBeacon`/`followBeacon` refresh a grant in the background once a CHAIN
84
+ observation (payment discovery, the optional `start()` beacon poll, a fresh
85
+ `readCurrentBeaconEpoch`) shows the beacon past the grant's epoch; a keeper's claimed epoch is
86
+ never an observation. `decryptInSession` pays a message on its grant's draw and, when every
87
+ keeper refuses it as stale before executing it, re-pays and re-sends it ONCE, and only when a
88
+ fresh chain read confirms the grant is two epochs behind (`latestBeaconEpoch`, default
89
+ `readCurrentBeaconEpoch`); while the chain says the grant is admissible the refusal is thrown
90
+ (`SessionMessageError`) and nothing is paid again. The first payment's debit stays in the
91
+ cumulative allowance voucher (it uses allowance headroom) and is refunded (paid = 0,
92
+ `prepaidRefunded` = cost) when the settlement worker settles it after the payment's expiry; that
93
+ close is blocked while an operator named on that debit is unreachable. Residual bound: a keeper
94
+ that computed its partial yet answered "stale" can earn from the first debit while the payer
95
+ pays the second, only when every other keeper also refused before execution and the chain shows
96
+ the retry was due: at most two debits per message. A message whose grant is one epoch behind
97
+ is sent at once (the follow stays in the background); only a grant two epochs behind waits for
98
+ the follow. While a caller waits in `followBeacon` its pauses keep the process alive (a
99
+ background follow never does), and `stop()` (also every session end) rejects a waiting follow
100
+ at once, so no waiter is left on an unreferenced or cleared timer.
101
+
102
+ - An allowance-funded operation no longer waits for a new verifier epoch's anchors when a
103
+ current allowance serves it. Its payment names the allowance's own draw, so while neither the
104
+ beacon's latest nor previous epoch has both snapshots anchored, discovery (new
105
+ `PaidContextOptions.undrawnDuringAnchorGap`, with `fundedByAllowance`) returns at once a context
106
+ marked `undrawn` (no verification fields at all, live keeper sharing); lane selection serves from it
107
+ without starting or waiting for a reservation, and only when no lane serves the operation is the
108
+ slot discovered again with the bounded anchor wait. Such a context never signs a per-operation
109
+ payment or reserves an allowance, and the type says so: `PaidOperationContext` is the union of
110
+ `DrawnPaidOperationContext` and `UndrawnPaidOperationContext` (whose `intentFields` is
111
+ `UndrawnPaymentFields`, which cannot complete a payment intent), and
112
+ `discoverPaidOperationContext` returns the drawn type unless `undrawnDuringAnchorGap` is set.
113
+ Session openings (a pinned draw) wait as before. At 110 ms
114
+ chain RPC the fleet's verifier-set anchor lands ~11 s after the seed (epochs 10 s apart), and
115
+ allowance-funded operations sat 1..6 s in these waits (C14 flow bench).
116
+
117
+ - `prepareAllowances` readiness judged by lane selection's own predicate: optional `actions`
118
+ (as `PaidOperationRequest.operation.action`; `sign` is paid as `eoa-sign` on a threshold-ECDSA
119
+ slot) and `operationTtlSecs` (default 600). Given, one fresh discovery judges every lane, and an
120
+ allowance counts only when selection would accept it for each action at any moment of
121
+ `minLifetimeSecs`: the action funded, the discovered keeper sharing, and an expiry beyond the
122
+ operation's payment lifetime plus the 30 s margin. A failing lane gets a fitting next reserved
123
+ ahead; a current one that cannot fund the next operation gives way to it, and a reserved-ahead
124
+ one that never can (a stale sharing) is replaced. `minLifetimeSecs + operationTtlSecs` must fit
125
+ the allowance lifetime minus 120 s. Without `actions` a lane whose allowance had 631..654 s of
126
+ life left reported `not-needed` for `minLifetimeSecs: 600` and then funded no 600 s payment.
127
+
128
+ - `prepareAllowances` readiness for sustained work: optional `minOperations` (each lane must fund
129
+ at least this many more operations at the per-operation cap from its current and reserved-ahead
130
+ allowance; only one outliving the horizon counts) and `minLifetimeSecs` (the current allowance
131
+ must outlive it). A lane that is confirmed but close to exhaustion or expiry for the work now has
132
+ its NEXT allowance reserved ahead (`reserved`) through the same journaled lane reservation,
133
+ instead of reporting `not-needed` and reserving inside an operation; a spent current one takes
134
+ its confirmed next over first. A lane still short while holding both reports `failed` with
135
+ `AllowanceCapacityError` (never a third allowance: at most 2 x lanes x amount locked). Unset,
136
+ the behaviour is unchanged.
137
+ - `prepareAllowances(config, {slot, lanes?, concurrency?, coordinator?, signal?})` (`tasra-sdk/app`):
138
+ open a slot's allowance lanes before its first paid operation, so no user operation
139
+ pays a lane's opening (reservation transactions and receipts) inside itself. Each lane goes
140
+ through the journaled lane reservation (fresh discovery per lane, dedicated payer, durable payer
141
+ claim) and reports `reserved`, `not-needed` (nothing read or sent: idempotent), `pending`,
142
+ `failed` or `cancelled`; one lane's failure never marks another. Additive; no existing
143
+ signature changes.
144
+ - Prepaid allowances behind `PaidOperationConfig.allowances` (default off): a pool
145
+ of allowance lanes reserved ahead (`reservePrepaidAllowance`), per-operation accountant
146
+ debit vouchers (`collectDebitVoucher`, BN254 partials verified and combined client side,
147
+ aggregate checked against `beacon.mpk()` at the quote block), a lane journal written before
148
+ every voucher request, background replacement below 25 % or 10 minutes, and fallback to the
149
+ per-operation reservation. `PaymentIntentWire` gains optional `allowance_id` /
150
+ `debit_voucher`; an allowance payment is the distinct `SlotAllowancePaymentIntent`. The
151
+ allowance digests are pinned against the shared conformance vectors. Every aggregated
152
+ voucher is pushed in the background to every accountant (`POST .../vouchers`, bounded,
153
+ never failing the operation), so members also learn a lane's last seq; a retiring lane or
154
+ an allowance near expiry re-pushes its last voucher once to members that did not
155
+ acknowledge it.
156
+ - Session-grant draw lanes: a session grant's messages pay its exact verifier draw, which moves
157
+ every beacon epoch. Two sets of draw lanes per slot (one per epoch parity) hold allowances
158
+ reserved on one draw each. A message on the previous epoch while the beacon is already at the
159
+ next reserves the next draw's lanes in the background, through a pinned, verified discovery;
160
+ a message whose draw has no lane yet waits (bounded) for its reservation instead of reserving
161
+ per operation. `PaidAllowanceOptions.drawAmount` and `maxDrawAllowances` (default
162
+ `4 x lanes`) bound the escrow draw lanes may hold; at the bound a message pays per operation.
163
+ - Two-step slot hand-offs on the write client: `proposeSlotTransfer`,
164
+ `acceptSlotTransfer` and `withdrawSlotTransfer` move the creator;
165
+ `proposeRuleAdminTransfer`, `acceptRuleAdminTransfer` and
166
+ `withdrawRuleAdminTransfer` move the rule admin. The roles move separately, the
167
+ guardian never moves, and the rule admin never goes to the guardian.
168
+ `proposeSlotTransfer` returns the roles that stay, whether the caller also holds
169
+ the rule admin, and the slot's prepaid credit when a Settlement is configured.
170
+ The previous creator's delegations and unused payment intents stop at acceptance.
171
+ `readSlotHandoff` reads the roles and pending offers. Refusals are a typed
172
+ `SlotHandoffError` raised before signing; a KeyRegistry without the hand-off
173
+ refuses `unsupported` (`tasra.fuji.v1` until its upgrade).
174
+ - `pollOid4vpSession` takes optional `{wait, signal, timeoutMs}` (`PollSessionOpts`): `wait`
175
+ asks the verifier-agent to hold the reply until the session moves (`?wait=1`), `signal`
176
+ cancels the request, and every request now has a timeout (default 30 s, covering the
177
+ server's 20 s hold) that ends in `unavailable`.
178
+
179
+ ### Changed
180
+
181
+ - `TasraWriteClient.rotateKey` refuses a slot whose rotation is locked before signing
182
+ (`RotationLockError`, code `locked`): a slot its creator locked, and every threshold-ECDSA
183
+ slot, also on a KeyRegistry without the lock, where such a rotation would remove the key.
184
+ `reshareKey` refuses a threshold-ECDSA roster that keeps fewer than the current `k` members
185
+ (`ReshareRosterError`). Both read the slot first.
186
+ - `slots.ecdsa().signDigest` (and the new P-256 adapter) refuse, before credential consent or
187
+ keeper work, a signature without a bundle on a slot with an installed approval policy, and a
188
+ bundle with fewer distinct verified approvals than the on-chain quorum, a duplicate approver or
189
+ a key outside a static approver set.
190
+ - `proposeSlotTransfer` refuses `self-custody` (a secp256k1 slot offered to its own threshold
191
+ account) and `contract-holder` (a contract recipient; an EIP-7702 delegated account is
192
+ accepted), and `acceptSlotTransfer` refuses `self-custody`. Keepers recover creator signatures
193
+ with `ecrecover` only, so either creator could never sign a paid operation of the slot.
194
+ `SlotHandoffStatus` gains `slotAccount`.
195
+ - `setApprovalPolicy` judges the set-once policy before sending: an identical installed policy
196
+ resolves `{phase: 'already-installed', slotId}` without a transaction, a different one is refused
197
+ before sending (it used to revert on chain). Its return type is now
198
+ `WalletTransactionJournal | ApprovalPolicyAlreadyInstalled`.
199
+ - `createSlotCommitReveal` creates slots ONLY through the accountant-seeded path and never waits
200
+ for a beacon epoch (one to two hours at the production cadence). Accountants are asked
201
+ concurrently (`slotSeedHedgeMs`, default 750 ms stagger; the first valid seed wins and cancels
202
+ the rest), "not yet" answers are retried with jittered backoff that honours `Retry-After` for at
203
+ most `slotSeedRetryMs` (default now 90 s), and a missing seed throws `SlotSeedUnavailableError`
204
+ (`detail.committed`: whether the commitment stands and must be resumed). No epoch-path
205
+ commitment is ever sent, no beacon is polled and no chain-time nudge is sent; a transient
206
+ failure of the reveal-path probe now fails the call instead of committing on the epoch path.
207
+ Resuming an older SDK's epoch-path commitment (`recovery.commitTx`) checks once and throws
208
+ `SlotRevealNotYetError` until its target epoch. **Breaking**: `maxWaitMs` and `onEpoch` are
209
+ removed, `slotSeed: false` is refused, `onSeed` is no longer called with `null`.
210
+ `requestSlotSeed` gains `hedgeMs` and `signal`, asks concurrently, and retries 429 and timeouts.
211
+
212
+ - One allowance-backed paid operation journals with 32 durable device flushes instead of 116
213
+ on `createFileStore` (macOS F_FULLFSYNC is device-wide and serialised across processes, so this
214
+ bounded a host's paid operations per second). Every crash ordering is kept: what guards a send
215
+ is durable before it, and every state a crash can leave resumes as before.
216
+ - A transition's writes are published together with its unlock: one data barrier, the renames,
217
+ one directory sync. A lock that guards a send becomes durable with the first write before it.
218
+ `withLock` no longer flushes the lock file's diagnostic content separately from its entry.
219
+ - Concurrent new operations of one process share one journal commit (record and index entry)
220
+ instead of queueing one by one on the per-process index lock.
221
+ - An allowance debit commits the voucher with the operation's `reserved` phase, then the lane
222
+ advance with the voucher's push journal; the journal lock is taken with the lane's. A lane
223
+ completes an interrupted advance from either copy of the voucher.
224
+ - The execution consent is committed with the session's creation. A first operator approval
225
+ commits its record, body and `in_flight(1)` in one step before the send (the first send needs
226
+ no claim; every resend still claims its generation). Approval and creation confirmations,
227
+ which a resume re-derives from the agent, ride on the session's next write.
228
+ - No stored format changed; stores other than the file store get the same calls as before.
229
+ - `createFileStore` queues `withLock` callers within one process in call order instead of
230
+ refusing all but the first, so concurrent paid operations in one process no longer fail
231
+ with `StoreLockedError`. A lock held by another process (or left by a crashed one) is
232
+ waited for up to the new `lockWaitMs` option (default 10 s, 0 refuses at once) and then
233
+ still refused with `StoreLockedError`; it is never removed or taken over. A nested lock on
234
+ a key the same call chain already holds is still refused at once.
235
+ - The paid operation index no longer rewrites one ever-growing list for every operation.
236
+ New operations go to bounded segments (`paid-op-index-0`, `-1`, …, 256 ids each); the
237
+ original `paid-op-index` list is still read first and is never dropped or rewritten
238
+ (except by the one-time `backfill`). `listPaidOperations` lists an id once. An older SDK
239
+ reading a store written by this one lists only the operations indexed before the upgrade;
240
+ their journals, and `paidOperationPhase`, are unaffected.
241
+ - `drivePaidSession` (and so `paidOperation`) no longer sleeps between approval rounds when
242
+ something else signals progress. After it approves the proposals a 425 asked for, it fetches
243
+ the request object again at once (that fetch dispatches them); after it sends a
244
+ continuation, it reads the session back at once. While committee work is in flight
245
+ (phase `verifying`) it holds one status poll (`?wait=1`) and continues on the agent's
246
+ answer; an agent that answers at once unchanged (no long-poll support) is paced as before,
247
+ and a held request that fails in transport is replaced by one plain poll. The
248
+ `pollIntervalMs` / `wait` pacing still applies while the drive waits for a wallet callback
249
+ or for proposals not yet listed. `RegisteredPaidAgentSession.poll` takes
250
+ `{wait: true}`; a session whose attempt budget is under 25 s never asks for a hold. The
251
+ paid transports accept `?wait=1` on the owner session status read only.
252
+ - `readClientExecutionPolicy` (run before the execution certificate, the session and every
253
+ verifier approval) makes ONE fresh canonical observation per decision instead of two: the
254
+ reservation, the policy reads and the drawn verifier's standing are read together at that
255
+ block, with one canonicality and freshness recheck after all of them (freshness is judged
256
+ again at the decision). The verifier's standing is read beside the rest at the
257
+ NodeRegistry the client last saw; the KeyRegistry pointer read at the observed block still
258
+ decides, and a moved pointer is read again at the registry it names. Nothing about the
259
+ answer is cached: the head, the reservation, the policy and every recheck are read for
260
+ each decision. Paid IBE and KEM approvals: about 9 sequential requests per decision become
261
+ 3 or 4.
262
+ - `readAssignmentEpoch` keeps the quote block's header and its beacon epoch per client
263
+ (bounded, 256): values at a block hash never change. Its by-number canonical recheck is
264
+ still read every time, and a failed or refused read keeps nothing.
265
+ - `discoverPaidOperationContext` reads the latest epoch's anchors beside the keeper
266
+ directory instead of after it, and returns the slot's `ruleCommitment` from the same
267
+ canonical slot read; `paidOperation` checks the rule against it instead of reading the
268
+ slot again by number (a context without it is still read again, as before).
269
+ - A reservation sends its pre-broadcast observations together (quote digest, prior cost,
270
+ slot, simulation and the four fee reads, formerly four sequential steps) and, after the
271
+ receipt, reads the mined transaction, the reservation and the mined block together.
272
+ Each answer is judged in the original order, so the same answer refuses with the same
273
+ error; the quote-block recheck before signing and the single broadcast are unchanged.
274
+ - Paid reservations and prepaid escapes see their transaction mined sooner, with fewer
275
+ requests: the receipt itself is asked for at once and then after 250 ms, growing by half
276
+ up to 1 s, instead of a head read every second followed by a transaction and receipt
277
+ read. The deadline, single broadcast and every check of the mined transaction are
278
+ unchanged. The write client's and the application wallet's receipt waits poll every
279
+ second instead of viem's 4 s default (the head-number cache keeps its 4 s).
280
+ - The chain ID of an HTTP or WebSocket client is asked once per client on the paid path
281
+ (paid reads, reservations, billing detection, service authentication, the app client's
282
+ chain check) instead of before every read; an injected wallet transport, which can switch
283
+ chains, is still asked every time, and a failed read is never kept. Every comparison with
284
+ the expected chain still runs on every use.
285
+ - Registered verifier-agent sessions (paid and unpaid) check the provider's registration
286
+ before every request with one `getService` call at the latest block, instead of a head
287
+ number read followed by a call at that number.
288
+ - `waitForSession` (and `awaitVerifierAgentResult`) see the wallet's result sooner. Each
289
+ request asks for a long poll (`?wait=1`). A reply whose phase moved forward is followed
290
+ by the next request at once, and so is an unchanged reply that took 15 s or more (the
291
+ server's hold ended). Any other unchanged reply waits for the usual backoff, so a
292
+ verifier-agent without long-poll support is polled on the same schedule as before. Any
293
+ phase change resets the backoff to `intervalMs`. An abort now also cancels a request
294
+ in flight, and no request runs past the overall deadline. Each request's timer and abort
295
+ listener are released when it settles. Re-polls after a server hold are spread by up to
296
+ 10 % of `intervalMs`, so waits that started together do not stay in lock-step.
297
+ - Paid keeper operations make fewer chain reads, and more of them run at the same time.
298
+ `resolvePaidKeeperTarget` reads the reservation and the keeper directory together at
299
+ one block and rechecks that block once, after all reads, instead of twice. The keeper
300
+ approvals of one operation share one canonical read while it is under 15 s old, instead
301
+ of one read per keeper. The app client's paid flow passes the read it makes after the
302
+ wallet step to those approvals. The app client also reads the chain ID and the slot
303
+ together, and rechecks the slot while it re-reads the paid target. A paid IBE decryption
304
+ with three keepers drops from 103 reads to 43. The checks and refusals are the same, and
305
+ each approval still requires a read from the last 30 s. Concurrent operations on one
306
+ chain client share identical in-flight registry reads pinned to the same block hash,
307
+ such as the keeper directory. Only pending reads are shared, never a settled or failed
308
+ one, a `latest` read or a reservation read, and at most 1024 per client. An approver
309
+ also recovers the payment's creator and hashes the payment once, not once per keeper.
310
+ - KEM decryption through `decryptWithCommitteePartials`, and strict IBE extraction
311
+ through `extractIdentityStrict`/`decryptIdentityStrict`, pairing-check each share once,
312
+ at collection, where a bad share is refused and named. The combine no longer repeats
313
+ that check, which halves the per-share pairings. The final AEAD check (KEM) and the check
314
+ of the combined key against the anchored group key (IBE) stay. `combineDecryptShares`
315
+ and `ibeCombineExtract` still verify any shares they are given. These paths also hash
316
+ the identity to G1 once per operation (it was hashed for every share and the group check),
317
+ and decode the ciphertext's U once rather than once per share. Decoded verifying shares
318
+ and group keys are kept in a bounded cache of 256 public points per curve group, so
319
+ repeated operations on a slot skip their subgroup-checked decoding.
320
+ - Paid decryption sends far fewer RPC requests. Block-pinned reads issued together at one
321
+ block go out as one Multicall3 `aggregate3` call, still pinned to that block hash with
322
+ `requireCanonical`. Multicall3 is used only where the code at its address matches the
323
+ canonical deployment's code hash (checked once per client, again a minute after a miss);
324
+ `multicall3: false` turns it off. A read that fails inside a batch is read again on its
325
+ own, so it fails with the same error as before. Concurrent operations on one client share
326
+ an in-flight `latest` head and slot read; an answered read is never reused. Registry
327
+ reads at a block the client has seen finalized (`eth_getBlockByNumber('finalized')`, read
328
+ at most once a second) are cached for up to 32 s, at most 4,096 per client. Errors,
329
+ `latest` reads, reservation reads and rechecks are never cached. With the mock RPC, one
330
+ paid IBE or KEM decryption with three keepers drops from 43 HTTP requests (43 calls) to
331
+ 11 (15 calls), and 100 concurrent decryptions on one client from 1,429 to 10 (28 calls).
332
+ - `createTasraChainClient` groups small concurrent requests (calls, chain ID, blocks, code,
333
+ nonces, receipts) into JSON-RPC batches of at most 32 by default, configurable with
334
+ `rpcBatch: {batchSize, wait}` or turned off with `rpcBatch: false`. Log queries and
335
+ transactions are never batched. If an RPC refuses a batch, that batch's requests are sent
336
+ one by one and every later request goes alone.
337
+
338
+ ### Fixed
339
+
340
+ - A paid reservation no longer fails when every accountant decides it one block behind the
341
+ client (2026-11-12, cert run 16: the previous epoch's verifier anchor landed in the block after
342
+ the beacon advanced, and every member, following the block before it, answered 503
343
+ `reservation assignments unavailable`). That 503 comes from the assignment check, before an
344
+ accountant records or approves anything; when EVERY member answers it to the unpinned prepare,
345
+ the prepare round is repeated once with the same signed intent, naming the client's fresh
346
+ `latest` block (the accountant still judges freshness and canonicity there). A transport
347
+ failure, another status or reason, a second refusal or a quote at another block is never
348
+ repeated; nothing is journaled or sent before the authorization, as before.
349
+ - A session grant no longer dies quietly, nor spends its holder's session quota re-signing an old
350
+ epoch (C20 fleet: 22/30 at 5 ms, 5/20 at 110 ms). A definite refresh refusal
351
+ (`session_context_changed`, `session_continuation`, `session_unknown`, `session_wrong_key`,
352
+ `session_key_not_bound`, `session_mismatch`, `session_invalid_request`, `session_lifetime`, new
353
+ `SESSION_REFUSAL_CODES`) ends the session like `session_expired`; before, it was retried as
354
+ transient and every later message failed until the grant's `exp`. A grant two epochs behind the
355
+ observed beacon ends at once (`local-stale`) with no refresh: the agent continues a session one
356
+ epoch at a time and the verifiers judge the continuation at their live beacon, so none could
357
+ pass. A transient refusal is a typed `SessionRefreshError` (status, code, `retryAfterMs`); the
358
+ beacon follow and the expiry refresh back off exponentially and never retry before a
359
+ `Retry-After`. New `readBeaconDrawState` reads the beacon's latest epoch and the epoch the agent
360
+ draws on (its verifier snapshot anchored) at one head; given as `beacon.drawState`, the session's
361
+ poll refreshes ONCE per epoch, at the anchor, instead of re-signing the grant on its old epoch
362
+ every second until the anchor lands (each such refresh spent the per-holder quota of 32 per
363
+ minute at every verifier: the 5 ms `session_rate_limited` storm). `decryptInSession` takes
364
+ `reopen`: a session that ended before the message was served is replaced through it once, and
365
+ the message is paid afresh on the new grant (no paid write is resent; still at most two debits
366
+ per message); `SessionMessageResult.session` is the session that served it.
367
+
368
+ - Under a fleet-wide 110 ms RPC delay the accountants anchor an epoch's verifier snapshot 4-10 s
369
+ after its beacon push, often after the next one: a grant then lives about one epoch, less than a
370
+ re-open (presentation) plus a message. `reopen` may return `{plaintext, session?}`: its opening
371
+ presentation (a paid KEM decrypt) decrypted the message in flight, which is then served whatever
372
+ happens to the new grant (`SessionMessageResult.presented`; `session` absent when no grant came
373
+ with it). A reservation the accountant refused as a stale draw (`PaidReservationStaleEpochError`,
374
+ nothing sent; the journaled intent is never re-sent and, unexecutable, is refunded if it lands) is
375
+ paid once more only when a fresh chain read confirms the grant left the window: the same
376
+ two-debit bound. That confirmation (and the stale-refusal one) now reads an RPC `latest` head
377
+ of its own (`readCurrentBeaconEpoch(..., {fresh: true})`): a followed tip lagging the keepers'
378
+ head by one beacon push let six messages fail at 5 ms.
379
+
380
+ - Session re-open review (C21): `decryptInSession`'s `reopen` now returns `{shares, requestIds,
381
+ session?}` (`SessionReopened`), never a bare session or a plaintext. Its presentation IS a paid
382
+ KEM decrypt, so it must decrypt the message in flight: the helper verifies the returned decrypt
383
+ shares against THIS message's ciphertext and the keepers' authenticated verifying shares and
384
+ combines them itself (the AEAD open under this message's identity), so another message's
385
+ plaintext can never be returned; the shares are zeroed after use. The presentation's request ids
386
+ join `SessionMessageResult.requestIds` and count as debits: `reopen` gets a `{debits}` budget
387
+ (1 when the message already paid once), a reply naming none or more is refused, and no payment
388
+ or re-open starts once a message holds `MAX_MESSAGE_DEBITS` (2; an allowance debit refused
389
+ before the per-operation fallback names an id but is no debit). Concurrent messages of one ended
390
+ session share ONE re-open: the others continue on its new session, each paying its own
391
+ decrypt (and re-open in turn only when it opened no grant). A refresh refused
392
+ `session_context_changed` while the client's own chain read (`beacon.latestEpoch`) shows the
393
+ grant still admissible (a verifier's beacon or anchor behind) is retried as transient for up to
394
+ `contextRetryMs` (default 15 s), and ends at once when the read confirms it two epochs behind.
395
+ A failing `beacon.drawState` no longer stops the follow: the poll falls back to `latestEpoch`
396
+ with one `console.warn` until it answers. The `reservation-stale` retry also requires
397
+ `code === 'reservation-refused'`.
398
+
399
+ - `decryptInSession`: a per-operation reservation that waited for its gas payer until the grant's
400
+ epoch was two behind the beacon is refused before anything is sent (no reservation prepared,
401
+ persisted or broadcast; its journal `failed`). `paidSessionDecrypt` throws it as the now
402
+ exported `NewerVerifierEpoch` (`code: 'newer-verifier-epoch'`, `beaconEpoch`: the client's own
403
+ chain read), and the message is paid ONCE more on the refreshed grant (`onRetry` reason
404
+ `newer-verifier-epoch`) instead of failing (1/20 messages at 110 ms RPC delay). It debits
405
+ nothing, so it does not count toward `MAX_MESSAGE_DEBITS`; it is retried at most once per
406
+ message, never once the message holds two debits, and a second one is thrown.
407
+
408
+ - A lane selection now also reserves ahead the replacement of a confirmed allowance that is within
409
+ 600 s of funding no operation like its own (its expiry minus 30 s minus the payment's), or on a
410
+ keeper sharing the slot no longer has, not only of a `low()` one. Between 630 and 600 s of life
411
+ (600 s payments) an allowance funded nothing and started no replacement: every operation on the
412
+ lane paid by a per-operation reservation.
413
+ - Head follower: a paid-operation read answered at the followed tip could refuse a state the
414
+ caller had already observed one block later (a key published, a reservation or allowance mined,
415
+ a reshare or hand-off). `discoverPaidOperationContext`, `readClientExecutionPolicy`,
416
+ `readPaidOperationReceipt` and `resolvePaidKeeperTarget` now decide such a refusal (slot
417
+ inactive or keyless, slot not activated or unfunded, missing reservation or allowance debit,
418
+ changed sharing, ineligible assigned keeper, changed creator, changed verifier context or
419
+ standing, a pinned grant epoch one ahead) once more at a fresh RPC `latest` newer than the tip
420
+ before refusing. A positive answer at the tip and every other refusal are unchanged; the happy
421
+ path reads nothing more, and a refusal that `latest` confirms costs exactly one extra head read.
422
+ - Allowance lanes: paid operations that selected a lane at the same time in one process
423
+ all took the SAME lane of their slot (every selection read one cursor and the same idle lanes;
424
+ a debit marks its lane pending only once its voucher round starts), so their voucher rounds,
425
+ each a full accountant round trip under that lane's lock, ran one after another. A selection
426
+ now claims its lane in-process at the moment it chooses it, and a lane that fits but already
427
+ carries claims or rounds is taken only when no idle lane fits (the least loaded first). The
428
+ claim is advisory, like the busy marker: nothing is refused on it, the lane lock and journal
429
+ are unchanged, and debits of one allowance stay strictly ordered (the protocol chains seq n + 1
430
+ on voucher n). Measured on the file store, 16 concurrent operations on 2 slots x 8 lanes with
431
+ a 100 ms round: 1269 ms -> 309 ms.
432
+
433
+ ## [0.4.0] — 2026-11-04
434
+
435
+ Everything since 0.3.0. `0.3.1` on npm (2026-10-28, `54e3b1b3`, `next` tag) was an untagged
436
+ snapshot inside this range; 0.4.0 is a minor bump because the API changed (below).
437
+
438
+ ### Changed
439
+
440
+ - Decryption uses recipient-bound, client-sealed contributions. Create the client
441
+ recipient before authorization; retain its private opening capability locally.
442
+ KEM authorization binds the complete ciphertext, nonce, identity, key epoch and
443
+ recipient. IBE authorization binds the identity, key epoch and recipient.
444
+ `createCommitteeSlotClient().decrypt` discovers assigned endpoints, checks the
445
+ chain and canonical epoch/quorum, and combines locally with authenticated public
446
+ shares. Legacy custody, unsealed contribution and raw-key export routes refuse
447
+ delivery. See [consumer migrations](docs/consumer-migrations.md).
448
+
449
+ ### Added
450
+
451
+ - Paid recovery can read an original assigned contributor's exact retained sealed
452
+ reply with `recover({transport, contributorKey})`. This read uses the original
453
+ journal and signed assignment and performs no HPKE opening or new keeper work.
454
+
455
+ ### Fixed
456
+
457
+ - Fresh paid-operation discovery draws its default coordinator uniformly from
458
+ eligible assigned keepers. Lower operator IDs no longer receive every default
459
+ coordination opportunity. Explicit choices and saved paid assignments stay pinned;
460
+ this provides equal chances over time, not guaranteed turn-taking.
461
+
462
+ - `fetchRequestObject` (and so `presentToRequestUri`) no longer fails when the
463
+ verifier-agent answers the `request_uri` GET with its explicit "paid verifier exchange in
464
+ progress" HTTP 503, or with its "capacity saturated" HTTP 503 (refused before anything was
465
+ sent or billed; the approval stands). It repeats the identical GET (same URL and headers;
466
+ nothing is posted, presented or paid again) until the Request Object is served. Only a 503
467
+ whose JSON `error` is exactly `REQUEST_OBJECT_IN_PROGRESS` or `REQUEST_OBJECT_AT_CAPACITY`,
468
+ served by the requested URL without a redirect, is repeated, in any mix under one budget;
469
+ 401/403, an uncertain paid outcome, any other 503 or status, a redirected reply and network
470
+ errors stay final. Each wait follows `Retry-After` (delta-seconds or HTTP-date,
471
+ 2 s when absent or malformed) clamped to 0.5–5 s. The budget defaults to 120 s, which covers
472
+ the agent's longest detached exchange (about 118 s), and 64 attempts; it ends earlier at
473
+ `inProgressRetry.notAfterMs` (pass the session's expiry when known). Every GET, including
474
+ the first and its body read, is bounded; an expired authority or zero budget sends nothing.
475
+ Custom transports that ignore cancellation cannot leave the caller waiting indefinitely.
476
+ The new `signal` option cancels the in-flight GET or the wait
477
+ at once. Limits are set with `inProgressRetry: {maxAttempts (1..256), maxTotalMs (0..300000),
478
+ notAfterMs, minDelayMs (100..5000), maxDelayMs (minDelayMs..10000)}`; `maxAttempts: 1`
479
+ restores the previous single GET. A successful reply is read and verified exactly as before.
480
+ `PresentOpts` exposes the same metadata retry and cancellation options; cancellation while
481
+ choosing a credential prevents the subsequent presentation POST.
482
+ New exports on `tasra-sdk/oid4vp`: `REQUEST_OBJECT_IN_PROGRESS`, `REQUEST_OBJECT_AT_CAPACITY`,
483
+ `FetchRequestObjectOpts`, `RequestObjectRetryPolicy`.
484
+
485
+ - Require Noble Curves 1.9.7 or a compatible later 1.x release, which exports the
486
+ `utils.js` entry point used by paid-operation modules. Older consumer lockfiles
487
+ could otherwise satisfy the declared range while failing to load those modules.
488
+
489
+ - Paid OAuth presentations now retain the original nested `oauth.session_id`, matching
490
+ the agent's retained callback and credential fanout. Missing or foreign nested session
491
+ IDs are refused before submitting, resuming or approving paid work. Applications should
492
+ retain the complete result of `prepareOAuthPresentation` unchanged.
493
+
494
+ ### Added
495
+
12
496
  - Rule amendment on `tasra-sdk/chain`. The write client gains `proposeRuleUpdate`,
13
497
  `endorseRuleUpdate`, `vetoRuleUpdate` and `activateRuleUpdate`; each refuses, before
14
498
  signing, what the contract would revert (missing or immutable slot, wrong signer, an
@@ -37,6 +521,586 @@ never does.
37
521
  module adds 965,157 bytes unpacked (about 328 KB compressed); applications that never
38
522
  call the engine do not load it. Third-party notices for the compiled engine are in
39
523
  `NOTICE`.
524
+ - Public sealed-evidence primitives on `tasra-sdk/committee`: `evidenceBindingMessage` (the
525
+ single implementation the SDK's own sealed-evidence path also uses) and
526
+ `verifyEvidenceBinding({tokenHash, evidenceHash, evidenceKeyId, signatures, set, drawn,
527
+ quorum})`, the mirror of the Rust check (strict, non-ZIP-215 Ed25519). `committeeSign`,
528
+ `committeeDecrypt` and `requestIbeExtractionPartials` keep forwarding `evidenceCt` only
529
+ after checking it against the token's binding.
530
+ - `createDpopKey().tokenRequestProof({htm, htu, nonce?})` for identity providers that
531
+ require a DPoP proof on the token request itself.
532
+ - `isValidSessionId`, `MAX_SESSION_ID_LEN`, `OAUTH_RESPONSE_PATH_PREFIX` and
533
+ `OAUTH_RESPONSE_PATH_SUFFIX` in `tasra-sdk/committee`. `OAUTH_RESPONSE_PATH` and
534
+ `legacyDpopHtu` stay exported for the pre-remediation session-independent target.
535
+
536
+ ### Changed
537
+
538
+ - `dpopHtu` throws a non-retryable `TasraError` (still naming `sessionId`) for a session id
539
+ that is not one plain path segment.
540
+ - `assertCompoundTokenWire` names a compound token that carries only some of the evidence
541
+ fields, and a poll reply whose `evidence_ct` is not base64url is refused as such before the
542
+ binding check.
543
+ - `submitOauthResponse` classifies failures as `VerifierAgentSessionError`: `refused` when the
544
+ agent reports the session failed, `unavailable` for other 502/503/504, `protocol` otherwise.
545
+ - `RecipientStore.satisfies` and `validateRule` refuse a `kk_oauth` policy envelope by
546
+ name: held credentials cannot satisfy it (`canAccess` returns `false`).
547
+ - Every tasra-releases and repository link (docs, skills, examples, issue templates and
548
+ the generated reference `[Source]` links) now points at the `t3foundry` organisation.
549
+ - The bring-your-own-identity-provider section of the API guide now shows the `kk_oauth`
550
+ policy envelope (`oauthPolicy`) an OAuth slot uses, and how to amend it.
551
+
552
+ ### Fixed
553
+
554
+ - The docs site resolves `http-cache-semantics` 4.3.0, which fixes GHSA-ch52-4w7c-c8xp; its
555
+ dated audit exception is removed.
556
+
557
+ - Paid sessions confirm callback HTTP 400 and 409 refusals through an authenticated
558
+ read of the original session. Expired credentials now produce the terminal session
559
+ refusal type; unrelated HTTP errors stay errors, and no paid write is repeated.
560
+
561
+ - Reservation collection tolerates unavailable accountants before broadcast while keeping
562
+ one creator intent and canonical quote. Another prepared coordinator may supply the
563
+ quorum authorization within the shared time budget. Credit/policy refusals, disagreement,
564
+ invalid responses and cancellation remain fatal; transaction submission is still once.
565
+
566
+ - Paid operations wait within their snapshot/lifetime budget when every approved
567
+ accountant has not yet published the original anchored verifier snapshot.
568
+ Only exact original snapshot reads are repeated; invalid artifacts still refuse,
569
+ and no reservation or session write is retried.
570
+
571
+ - Explicit paid-session resume recovers an uncertain original creation through
572
+ an authenticated, verified read of that same session. The creation POST is
573
+ never repeated; failed recovery and other uncertain writes stay blocked.
574
+
575
+ - Paid credential approvals cap the token lifetime by the earliest original
576
+ issuer-signed credential or OAuth access-token expiry, matching the agent and
577
+ verifiers. Fractional expiry is rounded down; substituted proposal lifetimes
578
+ still refuse before signing or delivery.
579
+
580
+ - Paid verifier-agent sessions accept typed payment contexts and operator bodies
581
+ when the original deployment addresses use checksum casing. The original
582
+ initialization JSON, payment hash and session identity stay unchanged, including
583
+ during recovery; substituted operation fields still refuse before signing.
584
+
585
+ ### Added
586
+
587
+ - Unpaid verifier-agent sessions expose a private JSON `unpaidRecovery` checkpoint.
588
+ `createRegisteredAgentClient(...).restoreUnpaidSession(checkpoint)` checks independent
589
+ approvals, live provider identity and the original session before returning it. It never
590
+ creates another session or switches providers. This supports durable relay sponsorship
591
+ callbacks; paid sessions continue to use their separate payment recovery protocol.
592
+
593
+ - Registered relay sponsorship via `sponsorship: {slotId, authorize}`. The SDK requests
594
+ a sponsor intent only from an authenticated approved relayer, checks exact chain,
595
+ slot and forward-request binding, obtains the wallet voucher through the application's
596
+ approved verifier-agent callback, and persists it before forwarding. Restart recovery
597
+ reuses the original signature and voucher; an unresolvable spent nonce refuses replacement.
598
+ Sponsorship requires durable `persistAttempt`. The relayer remains responsible for
599
+ committee signature, membership, standing and revocation checks.
600
+
601
+ - Status refresh for an already-issued committee grant (`keykeeper/committee-status-refresh/v1`):
602
+ a verifier re-attests credential status for the SAME token (new
603
+ `keykeeper/committee-status-attestation/v1` statement, token hash unchanged), with no new token,
604
+ session, payment or keeper stage. New in `tasra-sdk/committee`: `statusRefreshHash`
605
+ (`keccak256(domain || chain_id u64 || token_hash || payment_hash|zero32 || principal u8 ||
606
+ seq u64 || issued_at i64)`), `createStatusRefreshProof` (`client_execution`: Ed25519 under the
607
+ original execution key; `holder_key`: compact JWS `typ: keykeeper-status-refresh+jwt`, header
608
+ `jwk`, payload `{"refresh":"0x<hash>"}`), `statusRefreshHolderSigner`,
609
+ `refreshStatusDirect` (`POST /v1/committee/status-refresh` at the original signers),
610
+ `refreshStatusViaAgent` / `acceptStatusRefreshRelay` (`POST /v1/sessions/:id/status-refresh`,
611
+ success body `{token_hash, status_attestations}`), `parseStatusRefreshReply`,
612
+ `classifyStatusRefreshResponse`, `statusRefreshRequestBody`, `statusRefreshRelayBody` and the
613
+ constants. Every reply is verified under the ORIGINAL roster key of a signer that verified the
614
+ original token; anything else (unsigned, forged, another index or token, past `cap - 5 s`) is
615
+ dropped, the merge keeps the later deadline per verifier index, and the MERGED set must meet
616
+ the keeper rule (quorum-th largest `status_until` fresh). Never sent or retried automatically.
617
+ Response bodies are read with a real 64 KiB bound: an advertised `Content-Length` over it is
618
+ refused unread, and a body that streams past it (absent or lying length) is cancelled at the
619
+ chunk that crosses it; both are `status_refresh_invalid_response`, never `_unreachable`.
620
+ - `StatusRefreshError` (`isStatusRefreshError`, `StatusRefreshCode`, `StatusRefreshFailure`):
621
+ typed `status_refresh_unknown` (404), `_unavailable` / `_replayed` / `_context_changed` (409),
622
+ `_expired` (410), `_unauthenticated` / `_refused` (403), `_unavailable_status` /
623
+ `_quorum_unmet` (503), `_rate_limited` (429, `retryAfterMs`), plus client-side
624
+ `_invalid_response`, `_unreachable` and `_http`, with per-verifier `reasons`. Never evidence
625
+ about keeper work.
626
+ - `PaidOperation.refreshStatus(options?)`: explicit refresh of a paid grant while its journal is
627
+ `authorized` (nothing sent), through the original agent session (default) or directly
628
+ (`via: {verifiers}`), proving with the execution key (or `holder`). The next `seq` is journaled
629
+ before the proof is signed or sent and is never reused (crash-safe); on success the journaled
630
+ grant's `status_attestations` are replaced and the original list and every attempt are kept in
631
+ the journal's refresh history; `execute` and `compound_token` then use the refreshed grant.
632
+ After a send it is refused; `recoverPaidOperation(...).refreshStatus({explicitRecovery: true})`
633
+ refreshes an uncertain (`executing`) grant without changing its phase — a keeper 403 or a
634
+ recovery 404 never becomes "no work". Journals written before this release lack the agent
635
+ session id and refresh only directly.
636
+ - Status refresh classifies every verifier outcome BEFORE merging (same rule as the verifier-agent
637
+ relay and `tasra-cli`): ANY `status_refresh_refused` refuses the whole refresh, even beside a
638
+ fresh quorum or still-fresh original attestations; another typed negative outcome
639
+ (`withdrawsOriginal`: expired, unauthenticated, context changed, unavailable status, replayed)
640
+ keeps THAT verifier's original attestation out of the result (`StatusRefreshResult.ineligible`);
641
+ a relay's answer is taken as the whole set. Direct mode then merges the new attestations with the
642
+ still-eligible originals (each re-verified and inside the grant caps) and judges THAT set, so one
643
+ fresh reply beside a still-fresh eligible original can meet the quorum (no longer refused for
644
+ counting only the new replies); beside a withdrawn original it is `status_refresh_quorum_unmet`.
645
+ A paid operation journals the refusal
646
+ (`statusRefresh.refused`, grant unchanged) and `execute` then refuses with
647
+ `RevocationStatusPreflightError` code `revocation_status_refused` (nothing sent) until a later
648
+ refresh succeeds.
649
+
650
+ - Revocation-status freshness (`keykeeper/committee-status-attestation/v1`). Compound
651
+ tokens carry an optional `status_attestations` list (`{verifier_index, status_until,
652
+ signature}`) beside `signatures`, outside the signed bytes: token hashes and
653
+ `committee-token-vectors.json` are unchanged. The verifier-agent result validates it
654
+ strictly and forwards it to keepers unchanged; paid sessions check it exactly as a keeper
655
+ does. `gatherCommitteeToken` authenticates each verifier's `status_until` /
656
+ `status_signature` with the verifier's committee key (`pubkey` on the verifier entry) and
657
+ emits the list only when at least a quorum carry valid ones. New in
658
+ `tasra-sdk/committee`: `statusAttestationHash`, `verifyStatusAttestation`,
659
+ `verifyStatusAttestations`, `assertStatusAttestationsWire` and the bound constants.
660
+ - `RevocationStatusError` (`isRevocationStatusRefusal`): a keeper 403 with
661
+ `revocation_status_stale` or `revocation_status_missing` is a non-retryable "present the
662
+ credential again" refusal, not an `AuthDeniedError`; resending the same grant cannot succeed.
663
+ It is not proof that no keeper worked: a paid operation keeps its execution uncertain.
664
+ - `RevocationStatusPreflightError` (`isRevocationStatusPreflightRefusal`, code
665
+ `revocation_status_missing` | `revocation_status_stale` | `revocation_status_invalid`,
666
+ `sent: false`): a grant refused locally, before any keeper call, by the keeper's own rule.
667
+ New in `tasra-sdk/committee`: `requireStatusAttestations`, `signersThatVerify`,
668
+ `STATUS_INVALID_CODE`. `verifyStatusAttestations` and `assertStatusAttestationsWire` now throw
669
+ this class (messages unchanged; still an `Error`).
670
+ - Payer-side client for the Settlement prepaid timeout escape (Settlement version `"3"`), in
671
+ `tasra-sdk/chain`: `createPrepaidEscapeClient(publicClient, {chainId, settlement})` with
672
+ `escapableAt({slotId, requestIds})` (per request `notReserved` | `settled` (+`escapedAt`) |
673
+ `disabled` | `notOpen` (+`opensAt`) | `open`, all read at one canonical block),
674
+ `escapePrepaid({slotId, requestIds, signer, maxGas, maxGasPrice, persist})` (local preflight,
675
+ sequential calls of at most `MAX_ESCAPE_PER_CALL` = 64, simulation, durable `prepared` →
676
+ `submitted` → `confirmed` journal around one broadcast, confirmation from the
677
+ `PrepaidEscaped`/`PrepaidBatchEscaped` events) and `reconcileEscape({record, transactionHash})`
678
+ (reads `prepaidEscapedAt`, `prepaidSettled`, the receipt and the payer nonce; never resends).
679
+ Also `decodePrepaidEscapeRevert`, `decodePrepaidEscapeLogs`, `prepaidEscapeId`,
680
+ `MAX_ESCAPE_REQUESTS`. Typed errors (both entry points): `PrepaidEscapeError`
681
+ (`isPrepaidEscapeError`, `sent: false`, `local`, code `escape_disabled` | `escape_not_open`
682
+ (`opensAt`, the only retryable code) | `reservation_unavailable` | `invalid_escape_delay` |
683
+ `too_many_requests` | `empty_request` | `escape_unsupported`) and `PrepaidEscapeUncertainError`
684
+ (code `escape_uncertain`). The Settlement ABI gains the escape getters, constants, events and
685
+ errors from the contract build; the governance-only `setPrepaidEscapeDelay` is deliberately
686
+ not included.
687
+
688
+ ### Changed
689
+
690
+ - Billing detection accepts Settlement version `"3"` (the timeout escape) exactly like `"2"`:
691
+ `readBillingMode`, `createBillingModeDetector` and `requirePrepaidSlot` previously answered
692
+ `unknown` for `"3"`, which would have refused every paid flow after the upgrade. Any other
693
+ version is still `unknown`.
694
+
695
+ - **Paid operations REQUIRE revocation-status attestations.** A completed registered paid session
696
+ (`prepareRegisteredPaidSession(...).poll`) and `PaidOperation.execute` (before its `executing`
697
+ checkpoint) refuse a grant whose `status_attestations` are absent, `null` or empty
698
+ (`revocation_status_missing`, as a keeper reads them; `[]` was previously reported as stale),
699
+ stale for the quorum (`revocation_status_stale`) or malformed/forged
700
+ (`revocation_status_invalid`). Nothing is sent, so the journal stays `certified` or
701
+ `authorized`; `paidOperation`/`resumePaidOperation` rethrow the refusal with its `requestId`
702
+ instead of a `PaidOperationRecoveryError`. No new session or payment is started automatically,
703
+ and keeper refusals after a send remain uncertain execution evidence. For a deployment still
704
+ inside the keepers' documented migration window, `allowMissingStatusAttestations: true` (on
705
+ `PaidOperationConfig` or the `prepareRegisteredPaidSession` config; default false) accepts a
706
+ missing list with a `console.warn`; stale or invalid lists are always refused.
707
+
708
+ ### Fixed
709
+
710
+ - Preserve the original signer fence for registered relay attempts whose nonce was
711
+ consumed outside the bounded reconciliation window. Generic restart recovery no
712
+ longer signs a replacement, and `reconcile()` retains `pendingAttempt()` for both
713
+ sponsored and unsponsored calls until execution or unused-nonce expiry is proved.
714
+ This tightens the older release-on-`unresolvable` behavior; journals remain intact.
715
+
716
+ - A paid request is no longer lost to a definite HTTP 429/503 after its TASRA was reserved.
717
+ Clients behind one egress address share the verifier-agent's per-client limiter, and the SDK
718
+ used to turn its refusal into a fatal error (and, for an approval, a journal entry no resume
719
+ could finish). Now, mirroring `tasra-cli`:
720
+ - Waits honour `Retry-After` and the limiter's `x-ratelimit-after`, each parsed strictly as
721
+ integer seconds (at most six digits; the longer wins; anything else is ignored in favour of the
722
+ client's own backoff, 0.5 s doubling to 8 s). A valid hint is a floor and is never shortened;
723
+ a hint above 120 s, or a wait that plus one attempt's budget would reach the deadline, fails
724
+ with `PaidBackoffError` (`server_wait_too_long`, `deadline_exceeded`) without sleeping. The
725
+ deadline is re-read immediately before every send (`no_time_to_send`), at most 64 attempts
726
+ (`attempts_exhausted`). Signed expiries and deadlines are never extended.
727
+ - The paid session's repeatable reads (proposals, Request Object, presentations, session poll,
728
+ approval state) repeat on 429/503 inside the session's signed expiry; the continuation POST on
729
+ 429 only. Each attempt is cut off at its budget (`pacing.attemptBudgetMs`, default 60 s). Other
730
+ statuses and transport errors are never repeated.
731
+ - `drivePaidSession` (and so `paidOperation`/`resumePaidOperation`) signs each operator approval
732
+ once and retains its exact request body in the application store BEFORE the first send. It is
733
+ resent only byte-identically, never re-signed, under a durable generation-bound permit: every
734
+ send of generation g, the first included, first wins the store's exclusive claim
735
+ `<entry>.claim.<g>`, re-reads `permit(g)` and durably marks `in_flight(g)`; only a 429/503 to
736
+ that send writes `permit(g+1)`. A transport error, timeout, abort, crash or any other answer
737
+ leaves the approval unresolved and it is never resent; a resume confirms an approval the agent
738
+ already holds and resends only one it still shows `pending` under a permit. A lost claim, a
739
+ moved generation or a record written by an older SDK throws `PaidApprovalUnresolvedError`
740
+ (`approval_outcome_unresolved`; a paid operation reports `session-write-uncertain`).
741
+ - `reservePaidOperation`: an accountant `prepare` answered 429 with a valid hint (its
742
+ per-creator reservation quota, refused before anything is recorded) is repeated identically
743
+ within min(150 s, half the payment's remaining signed lifetime); a repeat needs 10 s left and
744
+ its HTTP timeout is cut to the time left. The single reservation transaction still runs once.
745
+ Other statuses, `authorize` answers and transport errors are unchanged. When waiting stops it
746
+ throws `PaidReservationQuotaError` (`reservation_quota`, `reason`, `retryAfterMs`).
747
+ - The Node and browser paid transports accept a 429/503 of any media type (the limiter answers
748
+ `text/plain`) and report the raw `retryAfter` / `rateLimitAfter` headers. Browser deployments
749
+ must expose `x-ratelimit-after` through CORS as well as `Retry-After`.
750
+ - New API: `ApplicationStore.claim?(key)`, an atomic, durable insert-if-absent implemented by
751
+ `createFileStore` (`O_CREAT | O_EXCL`, file and directory fsynced), `createIndexedDbStore` (a
752
+ Web Lock plus one strict-durability transaction whose `add` aborts on an existing key) and
753
+ `createMemoryStore`; a custom store without it keeps the previous behaviour (an approval is
754
+ sent once and never resent). `RegisteredPaidAgentSession` gains `pacing`,
755
+ `prepareRequestApproval`, `prepareCredentialApproval` (sign without sending),
756
+ `sendRetainedApproval` (one send of the exact retained bytes: `accepted` | `busy`) and
757
+ `approvalState`; `prepareRegisteredPaidSession` takes `pacing: {clock, attemptBudgetMs}` and
758
+ `reservePaidOperation` takes `clock`. New in `tasra-sdk/chain`: `paidServerWaitMs`,
759
+ `systemPacingClock`, `PaidPacingClock`, `PaidPacingOptions`, `RetainedPaidApproval`,
760
+ `PaidApprovalDelivery`. New errors (root and `tasra-sdk/chain`): `PaidBackoffError`
761
+ (`isPaidBackoffError`, `PaidBackoffCode`), `PaidApprovalUnresolvedError`
762
+ (`isPaidApprovalUnresolved`, `PaidApprovalUnresolvedReason`), `PaidReservationQuotaError`.
763
+ `PaidAgentHttpResponse` gains optional `retryAfter` and `rateLimitAfter`.
764
+ - Behaviour change: a busy owner read that cannot be waited out inside the session expiry now
765
+ throws `PaidBackoffError` (with the hint) instead of `PaidAgentControlError`.
766
+
767
+ - A paid operation is no longer refused because a beacon boundary passed between its quote and
768
+ its use (D8). `readClientExecutionPolicy` used to re-judge the payment's `verification_epoch`
769
+ against `{latest, latest - 1}` at its own later observation, so a payment quoted at block 354
770
+ (epoch 65, selecting 64) and mined at block 355 (epoch 66) failed with "payment verification
771
+ context differs from canonical chain policy". The epoch is now judged where the accountant
772
+ quorum judged it: at the reservation's stored quote block (`Settlement.prepaidAssignmentBlock`),
773
+ read by hash, with `beacon.epoch()` under the EIP-1898 `{blockHash, requireCanonical: true}`
774
+ parameter and a by-number canonical recheck; the payment must name that block's epoch or the
775
+ one before. The observation must not precede the quote block and may be at most
776
+ `MAX_ASSIGNMENT_AGE_SECS` (3632 s = intent lifetime 3600 + quote age 30 + clock skew 2, the
777
+ same named constants as Rust `keykeeper_eth::paid_epoch`) after it. Seed, snapshot root and
778
+ size, verifier policy, beacon pointers, slot liveness and the unsettled reservation stay
779
+ checked at the current observation. Failures are a `PaidEpochError` (extends `TasraError`, `name`
780
+ `PaidEpochError`, with a `code`; not yet a public export, so branch on `isRetryable(e)`):
781
+ an unknown quote block, pruned historical state or an unserved height is
782
+ `paid_epoch_unavailable` (retryable; never an admission and never a fallback to the head), a
783
+ reorganised or substituted quote block or an out-of-window epoch is `paid_epoch_refused`
784
+ (definite). A client therefore needs an RPC that serves canonical state up to 3632 s old. An
785
+ epoch the head would still admit but the quote block did not (n4: 66) is now refused. Unpaid
786
+ draws (`pinnedDraw`) keep the live window.
787
+ - Secret key bytes the SDK takes from a caller are now owned COPIES that cannot share memory
788
+ with the caller's buffer (D5). `Buffer#slice` is a view, so `createLocalExecutionSigner(seed)`
789
+ with a Node `Buffer` seed kept the caller's memory: a caller wiping its seed after construction
790
+ (the documented hygiene) zeroed the signer's secret while its `publicKey` still named the
791
+ original key, and every execution signature failed (`Invalid client execution signature`).
792
+ The same alias affected `createIdentity({seed})` (a wiped seed zeroed the identity; `destroy()`
793
+ zeroed the caller's buffer) and `exportPrivateKey()`, which returned a view of the identity's own
794
+ key, so a caller wiping the export (as `identityApprover` does after each signature) destroyed
795
+ the identity. `p256HolderKey`, `ed25519HolderKey` and `randomHolderKey` now copy their key
796
+ bytes too (they used to keep the caller's array by reference); `holder.privateKey` is a plain
797
+ `Uint8Array` the caller may still erase. `exportPrivateKey()` returns a plain `Uint8Array`
798
+ copy, never a `Buffer`. A store that returns a journaled paid-operation seed as a reused
799
+ `Buffer` view no longer invalidates the resumed signer.
800
+ - `resumePaidOperation` no longer makes a new reservation for a `reserving` operation
801
+ without proof that none was ever sent. It reconciles on chain by request ID and payer
802
+ nonce (`reconcileApplicationReservation`, `tasra-sdk/app`), reserves only when no
803
+ journal, payer claim or on-chain reservation exists, marks an operation `failed` once its
804
+ quote deadline passes unreserved, and otherwise throws with the gas payer kept locked.
805
+ A local gas payer's signed transaction hash is journaled before broadcast, so a crash
806
+ between broadcast and the `submitted` checkpoint still leaves it to reconcile; signing
807
+ failures now refuse before any preparation. New `reconcilePaidOperation` (and
808
+ `resumePaidOperation(..., {reconcileOnly: true})`) reports `{phase, reservation,
809
+ payerLocked, next}` and never reserves, drives a session or executes.
810
+
811
+ - Keeper discovery uses at most eight concurrent registry reads and fails if the
812
+ complete roster is unavailable within 15 seconds. Committee signing and
813
+ decryption bound approvals, HTTP and response decoding to one 15-second
814
+ deadline, honor caller cancellation and never repeat a timed-out write.
815
+ Omitted FROST signer sets leave participant selection to the keeper; paid
816
+ operations retain their assigned coordinator.
817
+
818
+ - Local Hovi-profile certification now uses confirmed TASRA funding, registered
819
+ paid sessions and original keeper approvals. P-256 credentials carry a status
820
+ list signed by their issuer, with a separate durable allocation ledger. Snapshot
821
+ readiness retries only absent-anchor reads; paid writes are never redelivered.
822
+
823
+ - OAuth DPoP proofs now bind the exact session response URL. `dpopHtu` requires
824
+ the session ID; the explicit `legacyDpopHtu` helper retains the old target for
825
+ pre-remediation integrations. Paid sessions refuse a legacy or different-session
826
+ target and include the original session ID in verifier credential approval.
827
+
828
+ - Identity extraction completes after the first distinct, verified quorum and
829
+ cancels unused requests. Invalid replies do not consume quorum capacity; failed
830
+ and late decoded shares are cleared. The fan-out has a configurable 10-second
831
+ default deadline and a 16 KiB response cap. Low-level collectors retain their
832
+ collect-all behavior unless `threshold` is supplied; one-call IBE clients expose
833
+ the same threshold, deadline, cancellation and keeper transport options.
834
+ - Update the root and documentation site locks to `source-map-js` 1.2.2 for
835
+ GHSA-68fv-2mgg-jv7q; retain the existing native platform dependency metadata.
836
+ - Payment context discovery requires an approved `accountantSet` address and selects
837
+ only a current or previous epoch with both verifier and accountant snapshots. This
838
+ avoids reservation failures while the two role anchors are being published. All
839
+ three registry beacon pointers must agree with the approved deployment.
840
+
841
+ ### Added
842
+
843
+ - `reservePaidOperation`, `reserveApplicationPayment` and `paidOperation`'s reservation step
844
+ take the caller's `signal`. An abort before the durable preparation refuses with the new
845
+ `PaidReservationAbortedError` (`code: 'aborted'`, `tasra-sdk/chain`; nothing journaled,
846
+ claimed or sent; `paidOperation` reports it as a resumable `aborted`). After it the broadcast
847
+ is never cancelled and every journal checkpoint completes; an abort only ends the receipt
848
+ wait as `PaidReservationUncertainError` (now carrying `code: 'reservation-uncertain'`) with
849
+ the payer still claimed.
850
+
851
+ - `createNodeKeeperRecoveryTransport({allowLocalHttp: true})` (`tasra-sdk/chain/node`)
852
+ reads local development keepers over plain HTTP, like the browser transport: only to
853
+ loopback names, private IP literals and `allowedPrivateHosts`, only when every DNS answer
854
+ is non-public, with the same route checks as HTTPS. Default off.
855
+
856
+ - `abandonPaidOperation(store, requestId, {reason})` (`tasra-sdk/app`) closes a paid
857
+ operation (phase `abandoned`) only when nothing can still land under it: an unsent
858
+ reservation, a `failed` or `executed` operation, or an unfinished one after payment
859
+ expiry; otherwise it throws `PaidOperationAbandonRefusedError`. Abandoned operations are
860
+ excluded from `listPaidOperations` unless `includeAbandoned`, refused by resume, and
861
+ reconcile reports `next: 'closed'`. `listPaidOperations({backfill: true})` once indexes
862
+ journals written before the index, using the new optional `ApplicationStore.list`
863
+ (implemented by the memory, file and IndexedDB stores).
864
+
865
+ - Paid operations journal their gas payer; `listPaidOperations` and
866
+ `reconcilePaidOperation` report it, reconciliation uses it, and resuming a reserving
867
+ operation with another payer is refused. `selectApplicationGasPayer(store, wallets,
868
+ {resume: requestId})` returns the recorded payer from the pool.
869
+
870
+ - `recoverPaidOperation(config, requestId)` opens the read-only `recover` /
871
+ `recoverIbePartials` of an `executing` or `executed` operation without a resume or holder.
872
+
873
+ - `createBrowserKeeperRecoveryTransport({allowLocalHttp: true})` permits plain HTTP to
874
+ loopback and private hosts for local development (default off).
875
+
876
+ - `PaidOperationRecoveryError` code `aborted`: a caller abort of a journaled step that sent
877
+ nothing uncertain is resumable (unless the payment expired); an uncertain step keeps its
878
+ own code. Aborts during the session previously rethrew the raw reason.
879
+
880
+ - `selectApplicationGasPayer(store, wallets)` (`tasra-sdk/app`) picks a dedicated gas payer
881
+ from a small pool: payers with an unresolved reservation claim are skipped, payers idle in
882
+ this process are preferred, and selection rotates round-robin for fairness.
883
+
884
+ - `PaidOperation.recoverIbePartials` recovers an uncertain `ibe-extract` fan-out: it reads
885
+ each assigned contributor's retained result (stage `contributor`) with bounded
886
+ concurrency until the payment's keeper threshold is met, decodes the partials for the
887
+ IBE combine helpers and reports the contributors that failed. Paid operation journals
888
+ now retain the assigned contributors.
889
+
890
+ - A local paid-session holder receives the session's `{requestUri, qrPayload}` as the second
891
+ argument of `makePresentation` and through an optional `present` hook
892
+ (`PaidSessionRequestLink`), so applications no longer rebuild
893
+ `${endpoint}/v1/request/${session}`.
894
+
895
+ - `paidOperation` accepts `onRequestId`, called with the reservation identity as soon as
896
+ it is derived (before witnesses or reservation). `listPaidOperations(store, {phase})`
897
+ (`tasra-sdk/app`) lists journaled operations by phase from a store index, without
898
+ depending on the store's key scheme.
899
+
900
+ - `PaidOperationRecoveryError` carries a stable `code` (`PaidOperationErrorCode`) and
901
+ `resumable`, so applications can tell a final refusal (committee or wallet refusal,
902
+ HTTP 403/410, a provably failed reservation, an expired payment) from an interruption
903
+ that `resumePaidOperation` can continue, without unwrapping causes. A reservation
904
+ failure with nothing journaled is `reservation-refused` (nothing was sent).
905
+
906
+ - Prepaid fault clients (`tasra-sdk/chain`): `submitPrepaidFaultClaim` and
907
+ `readPrepaidFaultStatus` for an accountant's fault witness, and
908
+ `encodePrepaidFaultContest`, `contestPrepaidFault` (simulate, then send once) and
909
+ `readPrepaidFaultResolution` for `PrepaidFaultOracle`. Local checks mirror the
910
+ oracle's preconditions; nothing is retried.
911
+
912
+ - `tasra-sdk/app/browser`: `createIndexedDbStore`, an `ApplicationStore` over IndexedDB
913
+ (strict-durability commits, plain-data values) with Web Locks shared across tabs and
914
+ extension service workers, and fetch transports `createBrowserPaidAgentTransport`,
915
+ `createBrowserKeeperRecoveryTransport` and `createBrowserRelayTransport`. The route,
916
+ method, bearer, bound and reply checks are now one shared policy used by the Node and
917
+ browser transports. `StoreLockedError` is also exported from the browser entry.
918
+
919
+ - `paidOperation` (`tasra-sdk/app`) runs one paid operation end to end: billing
920
+ guard, discovery, creator-signed operation and intent, verified drawn witnesses
921
+ (`fetchDrawnVerifierWitnesses`, `tasra-sdk/chain`), reservation with a caller gas
922
+ payer, execution certificate, registered session (`drivePaidSession`, local or
923
+ external wallet), verified grant and a once-only `execute` with keeper result
924
+ `recover`. Every billable step is journaled before sending; an uncertain one throws
925
+ `PaidOperationRecoveryError` and `resumePaidOperation` continues from the journal
926
+ (on-chain reconciliation, never a second reservation, session or execution).
927
+ `createMemoryStore` is an in-process store for tests. The fleet test driver now uses
928
+ these APIs.
929
+
930
+ - Detect a slot's billing from the chain: `readBillingMode`, the per-slot caching
931
+ `createBillingModeDetector` and `requirePrepaidSlot` (`tasra-sdk/chain`) read
932
+ `Settlement.version()` and, on version 2, `prepaidEnabled(slot)` and
933
+ `prepaidFromGenesis()` at one canonical block, answering `legacy`, `prepaid` or
934
+ `unknown` (never a guess). `discoverPaidOperationContext` refuses a legacy or
935
+ unreadable slot with `BillingModeError`, and an unfunded prepaid-from-genesis slot
936
+ with `UnderfundedSlotError`. `readSlotFunding` works against a version 1
937
+ Settlement (`settlementVersion: '1'`, no reservation). Legacy paths are unchanged.
938
+
939
+ - Honor `Retry-After`. `TasraHttpError.retryAfterMs` carries the parsed header;
940
+ 425 is retryable, and so is a 409/410/422 that sends the header. New
941
+ `retryIdempotent` waits the service-requested time plus bounded jitter (never
942
+ less), falls back to full-jitter backoff, and gives up when a wait exceeds the
943
+ per-wait or total budget. `fetchHolderNonce` and `createRenewal` wait out a
944
+ verifier capacity refusal (SP-11 429); renewal creation retries nothing else.
945
+ Paid agent and keeper recovery transports report `retryAfterMs` on their
946
+ refusals (`PaidAgentControlError.retryAfterMs`, `KeeperRecoveryError.retryAfterMs`)
947
+ without resending anything.
948
+ - The registered relay submitter treats the relayer's busy refusals (full lane,
949
+ full journal, unavailable shared budget: 422 `rejected` + `Retry-After`) as
950
+ "not now": it re-sends the identical signed request to the same provider, at
951
+ most `busyRetries` times (default 3, 10 s total wait). Nothing is re-signed, and
952
+ the forwarder nonce still makes a repeat unable to execute twice. Other
953
+ refusals, including the shared daily cap, are unchanged. `isRelayBusyReason`
954
+ classifies a reason; `RelayTransport.relayExchange` (optional, implemented by
955
+ the Node transport) reports status and `Retry-After`.
956
+
957
+ - Refresh the Settlement ABI from the current contract build: `initializePrepaid`,
958
+ `prepaidBatch`, `prepaidFromGenesis` and `ZeroBatchId()` are additive. Add the
959
+ `PrepaidFaultOracle` ABI (`prepaidFaultOracleAbi`, `CONTRACT_ABIS.PrepaidFaultOracle`)
960
+ with its `PrepaidFaultResolved` event in the `slashing` category, and resolve the
961
+ `PREPAID_FAULT_ORACLE` deployment key to it. Existing exports are unchanged.
962
+
963
+ - Expose the keeper's optional `NodeInfo.admin_auth` capability. `separate`
964
+ reports an independent administrative issuer; `unconfigured` reports that
965
+ administrative routes await operator configuration. An absent field is unknown.
966
+
967
+ - Add original-client keeper approvals to FROST, ECDSA, group decryption, IBE and
968
+ paid dual-control creation. Application methods require the original execution
969
+ certificate and signer; direct clients accept an independent chain approver.
970
+ Complete outgoing bodies and assigned stage signatures are checked before dispatch.
971
+ New source and genuine-signature regression cases await full SDK/native validation.
972
+ - Add completed keeper result recovery with a fresh signature by the original
973
+ creator-certified client. Canonical historical creator, reserved TASRA and keeper
974
+ roster checks precede signing; worker evidence and exact result commitments precede
975
+ disclosure. The guarded Node transport permits only evidence and recovery POSTs.
976
+ Reads neither start work nor submit a transaction, and never retry failed key work.
977
+ New source and regression cases await the complete SDK and native validation gates.
978
+ - Add a guarded paid verifier-agent control transport for initialization, approvals
979
+ and callback continuation, preserving consent/recovery HTTP statuses without
980
+ automatic POST retries. OAuth artifacts use their own scoped POST and owner header.
981
+ - `prepareRegisteredPaidSession` authenticates the approved provider, checks original
982
+ mined backing and canonical verifier policy, reconstructs complete client approval
983
+ bodies and verifies wallet requests and completed quorum tokens. A lost creation
984
+ reply is reconciled through an owner-authenticated read of the original context.
985
+ OAuth proof preparation and submission retain the same original artifacts through
986
+ uncertain outcomes. New source/regression coverage awaits full SDK/native gates.
987
+
988
+ - Client session initialization signatures bind the approved registered agent profile
989
+ and complete client-built creation body, including its locally generated owner
990
+ bearer. An identical request retains its session identity; initialization earns
991
+ no operator fee and never exposes the private execution key.
992
+
993
+ - Client-owned execution certificate and stage approval helpers in
994
+ `tasra-sdk/committee`. Creator consent binds a local Ed25519 public key to one
995
+ payment; stage approvals bind the complete client-built body and independently
996
+ authenticated operator. Private keys stay with the application. The helpers do
997
+ not automatically authorize agent proposals or dispatch operations.
998
+
999
+ - `UnderfundedSlotError` identifies an exhausted slot during payment discovery and
1000
+ an accountant's HTTP 402 reservation refusal. It carries the slot ID and any
1001
+ observed available TASRA, without implying another transaction is safe to submit.
1002
+
1003
+ - Native dual-sign status exposes `uncertain` when a keeper has retained an execution
1004
+ latch without a terminal result. Approval stops without another signature request;
1005
+ polling raises `OperationOutcomeUnknownError` with the original request ID.
1006
+ Credential approval checks request status before requesting paid verification work.
1007
+ - Payment intents support the distinct `dual-approve` billing action for credential
1008
+ approvals. It uses ordinal 6, preserving existing payment hashes, and cannot pay for
1009
+ a final keeper signature. Native dual-control clients carry a separate final Sign
1010
+ reservation, bind every approval to its commitment, and resume with the original
1011
+ reservation ID after an uncertain creation response. Application approval clients
1012
+ resolve the payment's assigned coordinator; credential approvals pay independently.
1013
+ - Paid committee-token hashing and creator payment-intent helpers in `tasra-sdk/committee`.
1014
+ Wallet and OAuth session clients can carry an already reserved payment and its fixed
1015
+ presentation random. Session results reject changed or missing payment commitments.
1016
+ These helpers do not submit reservations or settle fees.
1017
+ - `readSlotFunding`, `readPaidOperationReceipt` and `resolvePaidKeeperTarget` in
1018
+ `tasra-sdk/chain`: fresh canonical TASRA observations and discovery of the signed
1019
+ coordinator, including current sharing, registered identity and creator-signature checks.
1020
+ The bundled Settlement ABI now targets v2, including prepaid calls and the changed
1021
+ legacy settlement selectors with base cursors. Legacy v1 settlement writes require
1022
+ their version-specific ABI.
1023
+ - `reservePaidOperation` requests matching accountant quotes, checks creator consent and
1024
+ canonical contract simulation, then submits one gas-capped reservation with mandatory
1025
+ durable recovery checkpoints. Uncertain outcomes retain the request ID and any known
1026
+ transaction hash; the helper never automatically resubmits or changes payment identity.
1027
+ - Registered verifier-agent sessions preserve prepaid intent/random and reject changed
1028
+ audience, expiry, wallet nonce context or returned payment commitment. Paid discovery
1029
+ never falls back to another provider. Settled payments cannot route a new keeper operation.
1030
+ - Application ECDSA, FROST and IBE methods accept a reserved payment and fixed presentation
1031
+ random. They check canonical backing before and after authorization, preserve the payment
1032
+ commitment and route only to its selected coordinator or contributors. Returned signatures
1033
+ and IBE shares retain the existing cryptographic verification.
1034
+ - `createPaidReservationJournal` adapts a durable application store to reservation checkpoints,
1035
+ preserving creator intent, transaction and private session context. Exclusive preparation
1036
+ refuses duplicate attempts across processes; restart reads never authorize resubmission.
1037
+ - `discoverPaidOperationContext` reads the current keeper assignment and anchored verifier
1038
+ context before creator signing. It checks approved beacon pointers, explicit verifier
1039
+ defaults, eligible workers and positive TASRA funding at one fresh canonical block.
1040
+ Discovery, funding and receipt helpers snapshot caller inputs before asynchronous reads.
1041
+ - `reconcilePaidReservation` verifies a saved transaction after restart without resubmitting.
1042
+ It checks the complete transaction identity, historical creator consent, canonical inclusion,
1043
+ confirmation depth and exact reservation backing, including expired or already settled intents.
1044
+ Reverts report native gas separately and do not assert that no other reservation exists.
1045
+ - `reserveApplicationPayment` coordinates reservations through a durable lock per chain and
1046
+ gas payer. Uncertain submissions block further reservations across process restarts;
1047
+ `reconcileApplicationPayment` releases the payer only after verifying the original mined
1048
+ transaction. A retained nonce floor refuses stale RPC nonces. All callers must share one
1049
+ store and a dedicated payer; unrelated wallet transactions are outside this coordination.
1050
+
1051
+ ### Fixed
1052
+
1053
+ - Locally signed reservations are decoded and their signer, destination, calldata, chain,
1054
+ nonce, value and gas verified before broadcast. Gas-payer inputs are pinned before awaits;
1055
+ expiry is rechecked after signing. Lost or false RPC replies retain the computed hash in
1056
+ the uncertainty error, without retrying the transaction.
1057
+
1058
+ ## [0.3.0] — 2026-10-03
1059
+
1060
+ A minor bump: a public option is removed.
1061
+
1062
+ ### Removed
1063
+ - `clientSigner` on `requestCommitteeToken` / `committeeSignRequest` / `committeeDecryptRequest` /
1064
+ `ibeExtractRequest` and on `createCommitteeSlotClient`, with `ClientSigner` and
1065
+ `ed25519ClientSigner`. They put `client_pubkey` + `client_signature` into the keeper's
1066
+ `/v1/committee/sign`, `/v1/committee/decrypt` and `/v1/shards/ibe/extract` bodies - fields the
1067
+ keeper retired when request binding moved INTO the compound token (`request_hash` +
1068
+ `BindingStrength`, enforced by the keeper under `require_request_binding`). The keeper had been
1069
+ silently dropping them; since 2026-10-03 it refuses any undeclared field with a 422, so the
1070
+ option would now make every call fail. Nothing is lost: the holder binding the option claimed
1071
+ to provide is carried by the token on every call already. `clientBindingHash` (a pure
1072
+ function pinned by the conformance vectors) stays exported.
1073
+ - `credentials` on `verifyPresentation`'s body type: the verifier's `VerifyBody` declares only
1074
+ `dcql_rule` and `presentation` and refuses anything else.
1075
+
1076
+ ### Changed
1077
+ - The committee sign / decrypt / extract bodies are asserted to carry ONLY the keys the keeper
1078
+ declares (`test/committee.one-call.ts`, `test/committee.guards.ts`) - the SDK-side mirror of the
1079
+ keeper's strict-body test.
1080
+ - `verify:security` runs `scripts/audit.mjs`: `npm audit` at high/critical with EXPLICIT, dated,
1081
+ per-advisory exceptions in `security/audit-exceptions.json` (an expired or no-longer-matching
1082
+ exception fails the gate), instead of a lowered audit level. One exception is recorded:
1083
+ GHSA-ch52-4w7c-c8xp on `http-cache-semantics`, a build-time dependency of the docs site's
1084
+ `astro` with no patched release; it does not reach the published package.
1085
+
1086
+ ## [0.2.4] — 2026-10-01
1087
+
1088
+ ### Fixed
1089
+
1090
+ - Point npm package repository, issues, and homepage metadata to the publishing
1091
+ GitHub repository.
1092
+ - Make the funding tutorial resolve the EURC token from the verified BondingCurve
1093
+ when the Fuji release manifest omits a separate token entry; reject conflicting
1094
+ token addresses before writes.
1095
+ - Let the Fuji application examples proceed with 0.05 AVAX of creator gas and
1096
+ use a purchase amount that meets the documented 1 TSRA minimum.
1097
+ - Avoid failing a consumer's install when Git is unavailable.
1098
+ - Update the development Next.js dependency past the `next/og` security advisory.
1099
+
1100
+ ## [0.2.3] — 2026-09-30
1101
+
1102
+ ### Added
1103
+
40
1104
  - Additive `tasra-sdk/app` entry for typed slot operations, public EVM address lookup,
41
1105
  exact-operation authorization, a registered wallet adapter and viem accounts.
42
1106
  - Durable prepared creation journals with known-transaction recovery and explicit
@@ -46,49 +1110,21 @@ never does.
46
1110
  - Complete encrypted-notes, document-signing and native approval TypeScript examples,
47
1111
  application guides and migration notes.
48
1112
 
49
- Install `tasra-sdk@latest` from npm. Network operations require compatible contracts
50
- and services selected through a verified tasra-releases manifest.
51
-
52
1113
  - `committeeSignEoaDigest` in `tasra-sdk/committee` for request-bound threshold
53
1114
  Ethereum signing with verifier-agent compound tokens and membership proofs.
54
1115
  - SDK-only shared-account example that creates and provisions a tECDSA slot,
55
1116
  confirms Alice/Bob transactions, and verifies Mallory's server-side denial.
56
1117
  - Generated API reference and explicit SDK/deployment compatibility guidance.
57
- - Evidence pass-through on `tasra-sdk/committee`: `committeeSign`, `committeeDecrypt` and
58
- `requestIbeExtractionPartials` accept `evidenceCt` (the sealed presentation the verifier
59
- agent returns beside the compound token as `evidenceCt`) and forward it to keepers;
60
- `evidenceBindingMessage` and `verifyEvidenceBinding` check the token's evidence binding.
61
- - `createDpopKey().tokenRequestProof({htm, htu, nonce?})` for identity providers that
62
- require a DPoP proof on the token request itself.
63
- - `isValidSessionId`, `MAX_SESSION_ID_LEN`, `OAUTH_RESPONSE_PATH_PREFIX` and
64
- `OAUTH_RESPONSE_PATH_SUFFIX` in `tasra-sdk/committee`.
65
1118
 
66
1119
  ### Changed
67
1120
 
68
- - **Breaking** (`tasra-sdk/committee`): `dpopHtu(origin, sessionId)` now takes the session
69
- id and returns the per-session OAuth response URL
70
- (`/v1/sessions/<sessionId>/oauth-response`); the session id must be one plain path
71
- segment or the call throws.
72
- - `assertCompoundTokenWire` refuses a compound token that carries only some of the
73
- evidence fields.
74
- - `RecipientStore.satisfies` and `validateRule` refuse a `kk_oauth` policy envelope by
75
- name: held credentials cannot satisfy it (`canAccess` returns `false`).
76
1121
  - All 11 application-building skills lead with the current task workflow;
77
1122
  specialized and compatibility details are available in supporting references.
78
1123
  - The shared-account tutorial always demonstrates durable prepared creation.
79
1124
  - The slot-provisioning example uses the creator's signature instead of an admin JWT.
80
1125
 
81
- ### Removed
82
-
83
- - **Breaking** (`tasra-sdk/committee`): `OAUTH_RESPONSE_PATH`; the response path is now
84
- per session (`OAUTH_RESPONSE_PATH_PREFIX` + session id + `OAUTH_RESPONSE_PATH_SUFFIX`).
85
-
86
1126
  ### Fixed
87
1127
 
88
- - Every tasra-releases and repository link (docs, skills, examples, issue templates and
89
- the generated reference `[Source]` links) now points at the `t3foundry` organisation.
90
- - The bring-your-own-identity-provider section of the API guide now shows the `kk_oauth`
91
- policy envelope (`oauthPolicy`) an OAuth slot uses, and how to amend it.
92
1128
  - Point npm package repository, issues, and homepage metadata to the publishing
93
1129
  GitHub repository.
94
1130
  - Make the funding tutorial resolve the EURC token from the verified BondingCurve
@@ -107,6 +1143,9 @@ and services selected through a verified tasra-releases manifest.
107
1143
  - Narrow slot-creation results before reading the transaction hash in the skill's
108
1144
  direct/commit-reveal example.
109
1145
 
1146
+ Install `tasra-sdk@latest` from npm. Network operations require compatible contracts
1147
+ and services selected through a verified tasra-releases manifest.
1148
+
110
1149
  ## [0.2.2] — 2026-09-23
111
1150
 
112
1151
  ### Fixed