GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(id): add currency gateway request envelope (#2319) by dezren39 · Pull Request #7650 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

  • Add domain-tagged canonical CBOR currency request bodies with closed, op-specific schemas.
  • Reuse the directory signed-request envelope and replay guard; verification goes through verify_strict only, and the pipeline resolves device → account before registry authorization.
  • Add typed verification/authorization errors, deterministic BLAKE3 idempotency IDs, and the design §9.3 decision to use the stable hash ID rather than durable monotonic counter state.
  • Add focused tests for round-trip, body tampering, stale timestamps, nonce replay, strict-verification forgery, non-minter rejection, canonical/closed decoding, and deterministic IDs.

Scope and remaining work

This PR delivers the transport-independent F3 envelope plus resolver and registry interfaces/fixtures. It does not implement the currency registry (#2317), account factory (#2318), or ledger submission and receipt path. Those integration pieces remain explicit follow-up scope on #2319; this PR intentionally does not close the issue.

Refs #2319

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 11:09
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3e8cd2aa-5a56-4c5e-b26b-5b0a1fab0b4d
Commits

Reviewing files that changed from the base of the PR and between 2ae3af9 and a7a8ab2.

Files selected for processing: 2

  • pkgs/id/src/currency.rs
  • pkgs/id/src/currency/gateway.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T16:43:09.990692Z
We couldn’t complete this review. Comment @codex review to try again.
a7a8ab2 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 8, 2026
id(currency): gateway request envelope — canonical encoding, verify_strict, nonce window, idempotency IDs (from #2062) #2319
Closed
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 8, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this comment.

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: abef5c07e7

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/currency/gateway.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pkgs/id/src/currency/gateway.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 9, 2026
id(currency): deterministic account factory + per-currency system accounts (from #2062) #2318
Closed
currency gateway: registration cap u128 lacks the fixed-width u128_bytes CBOR adapter (PR #7650 review finding) #8056
Closed
currency gateway: Balance/History reads rejected for frozen/sunset currencies (PR #7650 review finding) #8057
Closed
@dezren39

dezren39 commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · Codex finding disposition pointer — from triage task 14413 (lane code-x)

The unaddressed Codex finding on this PR (thread r4506000715, pkgs/id/src/currency/gateway.rs:692: read_check rejects Balance/History reads for frozen/sunset currencies) was triaged as issue #8057 / task 14413 and confirmed at this PR's current head abef5c07e7: read_check (line 692) resolves via active_currency, which rejects !record.active; write ops correctly keep the active requirement.

Per the fleet Codex gate, this finding must be dispositioned before PR #7650 merges: either fix read_check in-branch (resolve the registered currency without the active check; add read-after-freeze / read-after-sunset tests for holder and issuer) and reply on the thread, or leave it to the gated follow-up task 14418, which applies the same fix on main after this PR merges (verify-and-close if fixed in-branch).

Full triage evidence: issue #8057.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dezren39 pushed a commit that referenced this pull request Nov 10, 2026
repo-worker-code-k
fix(id): serialize RegisterCurrency cap with the u128_bytes CBOR adap…
9f9efc1
…ter (#8056)

The registration cap was the one u128 on the gateway request protocol without the fixed-width adapter every amount and client_request_id already use, so caps above u64::MAX could not round-trip (PR #7650 Codex finding, comment 4506000711). The round-trip test now also covers a RegisterCurrency cap at u128::MAX.
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 10, 2026
View reviewed changes

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

Copy link
Copy Markdown

There was a problem hiding this comment.

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: 9f9efc14b6

ℹ️ 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".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pkgs/id/src/currency/gateway.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 11, 2026
id(currency): PoC — registry + factory + gateway, single-currency issue→transfer (from #2062) #2321
Closed
@github-actions github-actions Bot assigned dezren39 Nov 12, 2026
dezren39 pushed a commit that referenced this pull request Nov 14, 2026
repo-worker-code-k
fix(id): serialize RegisterCurrency cap with the u128_bytes CBOR adap…
150d512
…ter (#8056)

The registration cap was the one u128 on the gateway request protocol without the fixed-width adapter every amount and client_request_id already use, so caps above u64::MAX could not round-trip (PR #7650 Codex finding, comment 4506000711). The round-trip test now also covers a RegisterCurrency cap at u128::MAX.
@dezren39
dezren39 force-pushed the queue/12607-2319-gateway-envelope branch from 9f9efc1 to 150d512 Compare November 14, 2026 13:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

repo-worker-code-k and others added 4 commits November 14, 2026 10:35
repo-worker-code-k
feat(id): add currency gateway request envelope
5dbc726
repo-worker-code-k
fix(id): serialize RegisterCurrency cap with the u128_bytes CBOR adap…
ffe9f76
…ter (#8056)

The registration cap was the one u128 on the gateway request protocol without the fixed-width adapter every amount and client_request_id already use, so caps above u64::MAX could not round-trip (PR #7650 Codex finding, comment 4506000711). The round-trip test now also covers a RegisterCurrency cap at u128::MAX.
@dezren39 repo-worker-tmp-code-b
fix(id): allow authorized reads on inactive currencies; add gateway p…
354fe4e
…roptests (#2319)
@dezren39
fix(id): adapt gateway sign_request to Result-returning directory_aut…
a7a8ab2
…h; fmt
@dezren39
dezren39 force-pushed the queue/12607-2319-gateway-envelope branch from 150d512 to a7a8ab2 Compare November 14, 2026 16:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit fa7412c into main Nov 14, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/12607-2319-gateway-envelope branch November 14, 2026 16:45
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
id(currency): gateway verification flow + revocation-set check for RateAuthorisation (Phase 2 of #2290) #3801
Closed
@dezren39 dezren39 added the audit:completed-later Gap completed by later merged PR label Nov 25, 2026
@dezren39

dezren39 commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

AUDIT-7 Lane 4 completed-later note (2026-11-25): PR #7650 states that the registry, account factory and ledger submission/receipt integration remain on #2319. That remainder was delivered later by PR #12960 (merged 2026-11-23), which composes F1/F2/F3 over the ledger seam and completes the signed issue→transfer PoC; the #2321 completion record confirms acceptance. #2320's report-only reconciliation follow-up landed separately in #13139 and #13166. The Lane 4 outcome for #7650 is therefore audit:completed-later.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 25, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
docs: AUDIT-7 batch 3 partial ledger (226 PRs, 4 invalid IDs) #14847
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

audit:completed-later Gap completed by later merged PR

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.