Skip to content

fix(tempo): keep absent and empty KeyAuthorization limits distinct (0.x) - #507

Merged
jxom merged 3 commits into
0.xfrom
claude/tempo-key-authorization-limits-v0
Oct 8, 2026
Merged

jxom merged 3 commits into
0.xfrom
claude/tempo-key-authorization-limits-v0

Conversation

@jxom

@jxom jxom commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

No description provided.

`toTuple` encoded skipped `limits` as `[]` whenever call scopes followed,
which the node decodes as `Some([])` (deny-all), so an unlimited scoped key
became a deny-all key. `fromTuple` dropped an explicit `[]`, so a deny-all
key re-encoded as unlimited. Both now match the node: absent is `0x80`
(or omitted), explicit empty is `0xc0`. Adds node-encoded vectors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ox Ready Ready Preview Oct 8, 2026 12:12am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T00:07:31.356755Z fb1c2c3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/ox@507

commit: fb1c2c3

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc335a6c0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/tempo/KeyAuthorization.ts Resolved
claude added 2 commits October 7, 2026 23:56
Widened the limits and calls tuple slots to include the `'0x'` placeholder,
documented `undefined` (unlimited) versus `[]` (deny-all) on `limits`, and
moved the node-vector tests into their function suites.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn
The scope rejection tests built keys without `limits`, which previously
encoded as deny-all, so the node refused them for spending rather than
scope. Unlimited scoped keys now reach execution, where out-of-scope calls
revert. Assert the reverted receipt, and have the wrong-contract case call a
token the account can spend from, so the revert isolates the scope check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn

jxom commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Verify / Test Runtime (tempo, env: localnet, tag: edge) failed because of this change, the same as on #506. The four scope-rejection e2e tests built keys without limits, which the old encoding turned into deny-all keys, so the node refused them because of the spending limit. Now that the keys are correctly unlimited, the out-of-scope call is mined and reverts.

fb1c2c3 changes those tests to assert a reverted receipt, and has the wrong-contract case call a token the account can spend. As a control, removing the scopes makes all four transactions succeed. Locally against the edge node, all 26 e2e tests pass and tempo-unit passes (660 tests). This branch now carries the same changes as #506, except that Rpc.limits has no null here.


Generated by Claude Code

@jxom
jxom merged commit c0c5bd2 into 0.x Oct 8, 2026
14 checks passed
@jxom
jxom deleted the claude/tempo-key-authorization-limits-v0 branch October 8, 2026 00:20
@github-actions github-actions Bot mentioned this pull request Oct 8, 2026
jxom added a commit to wevm/viem that referenced this pull request Oct 8, 2026
Picks up the Tempo KeyAuthorization encoding fix (wevm/ox#507) that keeps
absent `limits` (unlimited) distinct from an empty list (deny-all), so
re-serialized envelopes match the bytes the node and signer committed to.


Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn

Co-authored-by: Claude <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — fb1c2c38 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants