Repository navigation
Add a zkfetch guide, quota billing links, and default attestor trust (0.1.47) - #24
Merged
Merged
Conversation
Builder now adds billingUrl to its 402 and 429 quota problems. - Accept billingUrl in problem details and regenerate the API types. - Use the problem detail as the error message, like Boom, so logging the error shows what happened and where to fix it. - Stop treating a quota 429 as transient: retrying can't succeed until the period resets or the plan changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without attestorAddresses or attestorJwksUrl, verifyRequestProof failed with attestor-trust-required, although the rest of the client already trusts Builder by default. Now it reads Builder's JWKS. Passing only attestorAddresses still pins exactly those attestors and fetches nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
how_it_works({ topic: "zkfetch" }) covers proving a response the
developer's own server fetches: the org key, zkFetch in Builder mode,
verification with verifyRequestProof, quota and billing errors, and
performance. Builder-mode routing points server-side fetches to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reclaim PR Agent review · run 130446256882
Reviewed all 1 diff chunks. No blocking defects found. Ponytail: Lean already. Ship. |
A Builder API error's message is now its detail, so errorAsToolText
repeated it ("detail: detail"). Lead with the problem title when the
message is the detail; a hand-thrown Boom keeps its own message. Update
the refresh test to the more specific expired-sign-in message.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reclaim PR Agent review · run 130451109126
Reviewed all 1 diff chunks. No blocking defects found. Ponytail: Lean already. Ship. |
zk-fetch now runs in a TEE by default (reclaimprotocol/zk-fetch#41). Say when a request stays on the ZK path instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reclaim PR Agent review · run 130454677375
Reviewed all 1 diff chunks. No blocking defects found.
Full findings and Ponytail reviewPonytail suggestions:
net: -1 lines possible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
verifyRequestProoffailed withattestor-trust-requiredunless the caller passedattestorJwksUrlorattestorAddresses, unlike the rest of the client, which trusts Builder by default.Changes
billingUrl, use the problemdetailas the message, and a 429 withbillingUrlisn't transient. Regenerated API types for the newProblem.billingUrlfield (Builder PR below).verifyRequestProofdefaults to Builder's JWKS. OnlyattestorAddresses→ exactly those, no fetch.attestorJwksUrlstill overrides.zkfetchtopic inhow_it_works, plus routing inbuilder-mode.md.npm run version:bump.Testing
npm test --workspace=packages/client(134 pass),node --test packages/agent/tests/how-it-works.test.ts,npm run lint,npm run check.verifyRequestProofand Builder's JWKS.Merge order
Merge this first. The Builder PR (quota billing links) points its submodule here and moves to the merge commit before it merges.
🤖 Generated with Claude Code