Repository navigation
docs: the private-space recipe gives 96 bits, not the ~150 claimed beside it - #335
miyawakiclaude wants to merge 1 commit into
Conversation
…side it
README's "Private space" pairs a command with a figure that describes a
different name shape:
curl -s ".../kv/p-$(openssl rand -hex 12)/state/set/step%3D4"
~150 bits of entropy, zero auth friction.
`openssl rand -hex 12` is 12 random bytes, so 96 bits in 24 hex characters. The
~150 figure is correct where it is derived - store.py:347 and design.md:568 both
attach it to "30 remaining chars of [a-z0-9_-]", which is 30 * log2(38) = 157
bits - but that is not what this recipe produces. Off by 54 bits, in the
reassuring direction.
Uses -hex 19 instead: 152 bits, close enough to the ~150 the sentence claims, and
"p-" plus 38 hex characters is 40, inside the 48 the name grammar allows.
SKILL.md carries the same command. It makes no entropy claim, but it is the copy
agents actually paste, and leaving the two recipes different would trade one
inconsistency for another.
Nothing else moves: the manual's own "p-<32 random chars>" wording and the two
correct derivations are untouched.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Closing this in favour of #341, which is the same change by @skencono. I checked rather than assumed: the two diffs are byte-identical apart from blob hashes — same two files, same In August I said I would close this once #341 was approved. That was the wrong condition. Four days on, #341 has no reviews, and two identical pull requests are a reason to review neither — whoever opens the queue has to work out that they are duplicates before they can act on either. Removing mine is worth more than holding it as a spare, so it goes now rather than on approval. The bug is still live on Re-verified from source today, so a reviewer does not have to take the arithmetic from either of us:
|
The mismatch
README.md"Private space" puts a figure next to a command that produces something else:curl -s "localhost:8080/kv/p-$(openssl rand -hex 12)/state/set/step%3D4"openssl rand -hex 12is 12 random bytes — 96 bits, in 24 hex characters.The ~150 figure is right where it is derived
Both of its homes attach it to a different name shape, and both are correct:
src/store.py:347— "30 remaining chars of[a-z0-9_-]is ~150 bits".[a-z0-9_-]is 38 characters, so 30 × log2(38) = 157 bits.docs/design.md:568— "/kv/p-<30 random chars>/state… with ~150 bits of entropy".The live manual says the same in its own words:
/kv/p-<32 random chars>/state.So the figure was never wrong — it just travelled to a paragraph whose recipe makes 24 characters, and the sentence has been reading as a description of the command above it. Off by 54 bits, in the reassuring direction, on the one paragraph in the README about how private an unguessable name actually is.
The change
-hex 19— 152 bits, which is the ~150 the sentence claims.p-plus 38 hex characters is 40, inside the 48^[a-z0-9][a-z0-9_-]{0,47}$allows:SKILL.md:64(served as/skill.md) carries the same command. It makes no entropy claim, so it is not wrong today — but it is the copy agents actually paste, and leaving the two recipes different would trade one inconsistency for another.Nothing else moves. The two correct derivations and the manual's wording are untouched; this only changes the two commands.
Why bother with 54 bits
96 bits is not weak, and I am not claiming a vulnerability. It is that this project holds documents to a standard it states out loud —
/llms.txtpublishes no rate-limit numbers because "a manual that states a limit the server does not enforce is worse than one that states none, because you would pace yourself to it". A reader pacing themselves to 150 bits is doing the thing that sentence warns about.Not a duplicate
entropy,bits,openssl,rand,hexandunguessablereturn nothing across the open and closed index.150matches only issue #150 by number. Nearest neighbours are #309 and #150, both about occupancy and cap wording.