Skip to content

docs(core): document root-minting authority as separate from delegationsRemaining - #106

Merged
Mearman merged 1 commit into
mainfrom
docs/root-mint-vs-delegation-depth
Sep 13, 2026
Merged

docs(core): document root-minting authority as separate from delegationsRemaining#106
Mearman merged 1 commit into
mainfrom
docs/root-mint-vs-delegation-depth

Conversation

@Mearman

@Mearman Mearman commented Sep 13, 2026

Copy link
Copy Markdown
Member

delegationsRemaining: 0 correctly forbids a token from being re-delegated (it cannot be used as a parent at all), but that has never bounded the issuer's own separate, ordinary authority to mint additional independent root-level grants (no parent named) for other bearers -- there was simply no comment saying so, which is exactly how ExaDev/agent-comms PR #72 arrived at the correct pattern (each room member's own grant minted as its own independent root-level token) as an implementation-time discovery rather than a documented, intentional design.

Adds a regression test locking in the pattern: a second, independent root-level grant for a different bearer succeeds even though an earlier root grant from the same issuer has delegationsRemaining: 0, since it names no parent and so has nothing to be checked against.

Closes #86.

…onsRemaining

delegationsRemaining: 0 correctly forbids a token from being re-delegated (it cannot be used as a parent at all), but that has never bounded the issuer's own separate, ordinary authority to mint additional independent root-level grants (no parent named) for other bearers -- there was simply no comment saying so, which is exactly how ExaDev/agent-comms PR #72 arrived at the correct pattern (each room member's own grant minted as its own independent root-level token) as an implementation-time discovery rather than a documented, intentional design.

Adds a regression test locking in the pattern: a second, independent root-level grant for a different bearer succeeds even though an earlier root grant from the same issuer has delegationsRemaining: 0, since it names no parent and so has nothing to be checked against.
@Mearman
Mearman marked this pull request as ready for review September 13, 2026 05:34
@Mearman
Mearman merged commit 8296f57 into main Sep 13, 2026
8 checks passed
@Mearman
Mearman deleted the docs/root-mint-vs-delegation-depth branch September 13, 2026 05:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 13, 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
🔒 Security Review Completed 2026-09-13T05:37:34.280920Z 4e05566 Draft marked ready
ℹ️ 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.

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.

core/tokens: separate delegation-depth-remaining from an issuer's own root-minting authority

1 participant