Repository navigation
doc: investigation — token issuance in the ID graph (#2041) - #2806
Conversation
|
Warning Review limit reachedYou'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 35 minutes. View limit details
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b95a8d0113
ℹ️ 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".
| the service ID. The graph fold of issuance/transfer *intents* and the | ||
| ledger's executed transfers must agree up to the stamped `user_data_128` | ||
| links. A snapshot that disagrees with either side is provably false, and |
There was a problem hiding this comment.
Count only confirmed ledger executions in anchored graph folds
For an anchored currency, a valid signed intent need not execute: §4 signs the Issuance object before gateway submission, and the referenced control-plane design’s §4.3 explicitly allows abuse controls to reject a request before it reaches the ledger. An unforked, under-cap issuance therefore satisfies this document’s counting rule while producing no ledger balance change. Folding such intents would incorrectly classify a ledger-correct snapshot as false and overstate issued supply. Require anchored folds to include only confirmed ledger executions at the snapshot’s watermark, using the execution receipts or stamped ledger records.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in f56c766 — thank you, this was a real modelling error. A signed Issuance is now defined as an authorized intent (§2): for an anchored currency it counts toward issued supply only on confirmed ledger execution, and §5 now states that the fold a snapshot is checked against counts only graph objects with a confirmed ledger execution at or below the snapshot's ledger watermark. Unexecuted intents (gateway-rejected under #2062 §4.3 abuse controls, or in flight) are neither supply nor transfers; reconciliation reports them as pending/rejected, never as snapshot disagreements. §8's cross-check is qualified to executed issuance objects to match.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f56c7662bf
ℹ️ 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".
| app/service verifies, in order: signature valid; sender's chain | ||
| unforked; sender funded (ledger balance, or fold up to the app's | ||
| risk tier); currency identity is the full (issuer, definition) pair, |
There was a problem hiding this comment.
Verify payment execution instead of the remaining balance
For a posted anchored payment that spends the customer's full balance, the sender's ledger balance is already zero when this handler runs, so checking funding against that balance rejects a successfully settled payment and withholds the purchased effect. The API table explicitly allows notifications on posted transfers. Validate that the referenced transfer executed successfully, or that a confirmed pending reservation exists for hold-based acceptance, rather than requiring the sender to remain funded after payment.
Useful? React with 👍 / 👎.
Summary
Lands the wave-2 investigation/design document for #2041 — token issuance in the ID graph — which wave-1 (queue task 3352, 2026-10-29) verified and recorded on the issue but never wrote as a repo doc. Queue task 3922.
Doc:
doc/2026-10-30T19-18-00Z_investigation_token_issuance_id_graph/Covers the packet's acceptance criteria:
define_currency/issue/award/pay/accept_payment/convert/snapshot)currency_idvs ledger u32Follow-up issues filed from the investigation
pkgs/idcurrency client API (gated on the id: design: graph token object formats + snapshot anchoring spec (from #2041) #2251 spec)Existing follow-on #2251 (object-format spec) is the doc's direct spec successor and is not duplicated.
Closes #2041 on merge.
Need help on this PR? Tag
@codesmith-botwith what you need.