Repository navigation
DOC: Say bit 3 is direct against indirect, and refuse an empty usage - #30
Merged
Merged
Conversation
Bit 3 of the flags byte was described as set when the Usage was derived from a consent string. The distinction it records is whether the caller stated the Usage or the issuer worked it out from some other signal, and a consent string is only the one such signal today. The field is restated that way and renamed "Usage is indirect" in every language. The bit has only ever been set when a consent string was decoded, so every identifier issued under the earlier wording is described correctly by this one. The meaning widens without moving, the Payload version stays 0, and the section says why that is not the redefinition the Version section warns against. Usage bits of 000 were a readable value, "None", documented as never issued. A reader now refuses such a Payload the way it refuses one it cannot read. Every usage the issuer accepts sets bit 0, so 000 means a damaged or forged identifier, the only safe answer to it is already what a refusal gives, and the Usage is left with exactly three values.
This was referenced Sep 16, 2026
jwrosewell
marked this pull request as ready for review
September 17, 2026 20:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes
Two rules in the 51Did layout, and the name that follows from one of them.
Bit 3 records direct against indirect. It was described as set when the
Usage was derived from a consent string. What it actually distinguishes is
whether the caller stated the Usage or the issuer worked it out from another
signal the caller sent. A consent string is the only such signal today, so
the bit is set only in that case today, but it is not what the field means.
The field is now called Usage is indirect.
An empty usage is refused. Usage bits
000were a readable value,None, documented as never issued. Every usage the issuer accepts sets bit 0and it writes no flags byte without one, so
000means a damaged or forgedidentifier. A reader now refuses such a Payload the way it refuses one it
cannot read, and the Usage has exactly three values.
000UsageFromConsent,isUsageFromConsent(),usageFromConsent,usage_from_consent,usage_from_consent()UsageIsIndirect,isUsageIndirect(),usageIsIndirect,usage_is_indirect,usage_is_indirect()Why the payload version does not move
The Version section says the version cannot protect the meaning of a field
that has not moved. This change does not give any existing identifier a
different answer. Bit 3 has only ever been set when a consent string was
decoded, so every identifier issued under the old wording is described
correctly by the new one. The meaning widens, the field stays put, and the
version stays 0. The Usage section now says so.
Checked against the bytes
A standard usage identifier requested from the issuer this morning decodes
as the layout says:
Non-marketing and personalized requests give usage
001and111, withTerms
00and01respectively, as the Terms table says.Not decided here
The patterns
010,100,101and110are never issued either. Underthe rule that a reader answers with the highest bit set,
100reads aspersonalized, which is the most permissive answer. This change refuses only
000and leaves the others as they are, and whether they should be refusedtoo is an open question.
Follow on
Every package changes its accessor name and refuses
000, in the samechange as this or immediately after it, so the packages and this page do not
disagree for longer than it takes to land them.
The .NET package change is
51Degrees/pipeline-dotnet#419,
which renames
FodId.UsageFromConsenttoFodId.UsageIsIndirect, removesUsage.Noneand refuses000at parse with a newFodIdParseStatus.NoUsage. The other five packages follow.Checks
The Nightly Pipeline was dispatched on this branch as a dry run, run
35270143213,
at commit
81d0692, which is the current head. Nothing merges in a dry run.Get Pull Requests, Configure, Build and Test on Ubuntu, and Complete all
passed, and the Build and Test log reports
UTM link lint: clean for campaign 'specifications', which is the checkthis repository has. The UTM link lint also ran on the pull request itself,
run 35097022070,
and passed. The branch is one commit ahead of
mainand none behind, and itdoes not conflict.
What refusing
000reachesRefusing at parse is not confined to a caller reading a field. The
51Degrees cloud service parses every identifier presented to its verify and
redeem endpoints through the same package reader, so once it takes a
package carrying this rule a payload with usage bits
000is reported asunreadable there rather than verified. That is the intended answer, and it
is named here because it is a change in what a live endpoint returns and
not only in what a package exposes.