GeezerVison is showing github.com — feat(id): deterministic account factory + transfer-code table (#2318) by dezren39 · Pull Request #10667 · developing-today/code
Conversation
dezren39
commented
Nov 16, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Slice F2 of the #2062 currency control-plane design (issue #2318), in the id-currency-registry crate F1 created (#2317, PR #10658):
- Deterministic account IDs (design §3.1):
BLAKE3(domain_sep ‖ ledger u32 LE ‖ kind u8 ‖ len-prefixed owner ‖ len-prefixed salt)[0..16], domain separator id-currency/account/v1 versioned. Any component derives the id with no registry round-trip.
- Creation-fixed flags (§3.2): issuer/liquidity unconstrained; fee/burn
debits_must_not_exceed_credits; holder constrained + history.
- Factory API (§3.3):
ensure_account / ensure_currency_accounts over an AccountCluster seam (the gateway's TigerBeetle client is the production binding, §4); a duplicate create returns Exists, treated as success — no read-modify-write, no lock.
- Reserved transfer-code table (§4.4): ranges +
classify for issuance / holder transfer / conversion leg / fee / correction / pending-hold redemption.
Verification
cargo test -p id-currency-registry — 17/17 pass (11 F1 + 6 new). Each new test names its oracle: §3.1's formula rebuilt independently in the test, the issue's acceptance lines, §3.2's flag table, §4.4's range boundaries.
cargo fmt applied.
- Clippy not run: the laptop's clippy-driver is rustc 1.99.1 against a 1.99.0 rustc and fails E0514 on any external dependency — a pre-existing environment mismatch (F1 had no deps, so it never surfaced); CI clippy still applies.
Closes #2318.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Slice F2 of the #2062 currency control-plane design (design §3 + §4.4), following F1 (#2317, PR #10658) in the id-currency-registry crate: BLAKE3 account-id derivation (versioned domain sep, ledger u32 LE, kind u8, length-prefixed owner/salt), creation-fixed flags per §3.2 (holder/fee/burn debits_must_not_exceed_credits, holder +history, issuer/liquidity unconstrained), ensure_account/ensure_currency_accounts over an AccountCluster seam (duplicate create = Exists = success), and the reserved transfer-code ranges of §4.4. Acceptance tests name their oracles (issue #2318 acceptance + §3.1 formula rebuilt independently). cargo test -p id-currency-registry: 17/17 pass. Clippy not run: laptop clippy-driver is rustc 1.99.1 against a 1.99.0 rustc (E0514 on any external dep) — pre-existing environment mismatch.
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 17 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:
4e1f120e-bb1e-4d63-8d0b-6e537a6e1451
Commits
-
Reviewing files that changed from the base of the PR and between 963cd23 and efbd6f2.
Files ignored due to path filters: 1
-
pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 4
-
pkgs/id/crates/id-currency-registry/Cargo.toml
pkgs/id/crates/id-currency-registry/src/factory.rs
pkgs/id/crates/id-currency-registry/src/lib.rs
pkgs/id/crates/id-currency-registry/tests/factory_acceptance.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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-16T09:47:28.214571Z We couldn’t complete this review. Comment @codex review to try again. |
efbd6f2 |
PR opened |
ℹ️ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|