Skip to content

doc: investigation — token issuance in the ID graph (#2041) - #2806

Merged
dezren39 merged 2 commits into
mainfrom
queue/3922-2041-token-issuance-id-graph
Oct 30, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/3922-2041-token-issuance-id-graph

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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:

Follow-up issues filed from the investigation

Existing follow-on #2251 (object-format spec) is the doc's direct spec successor and is not duplicated.

Closes #2041 on merge.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 19:23
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

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 35 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: caa3ca03-6efb-4c25-8a01-7b885cc9e12a
Commits

Reviewing files that changed from the base of the PR and between c90fcbc and f56c766.

Files selected for processing: 1
  • doc/2026-10-30T19-18-00Z_investigation_token_issuance_id_graph/2026-10-30T19-18-00Z_investigation_token_issuance_id_graph.md
  • 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

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T19:32:04.111116Z f56c766 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.

@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: 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".

Comment on lines +207 to +209
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

@dezren39
dezren39 merged commit a092a95 into main Oct 30, 2026
1 check passed
@dezren39
dezren39 deleted the queue/3922-2041-token-issuance-id-graph branch October 30, 2026 19:31

@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: 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".

Comment on lines +305 to +307
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,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

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.

id: investigate: token issuance in the ID graph — per-ID issuance, issuer snapshots, authorized conversion rates

1 participant