Commit 0ea5f9d
docs(cli): state the measured platform-id width at four citation sites (#16414)
* docs(cli): state the measured platform-id width at four citation sites
All four sites cited driver-sql's `case 'lookup': case 'user':` arm BY NAME
for "a platform id is 26 characters", two of them spelling out a ULID
literal. #15522 corrected that origin sentence, so the citation chain pointed
at text that no longer exists -- the arm now carries an explicit "do not
restore the number this sentence used to carry" guard naming the same four
copies.
Measured on this branch by driving the real SqlDriver against SQLite rather
than reading its constants:
- the driver mints a 16-character nanoid when the caller supplies no id
(12 samples, exactly one distinct width; the alphabet carries `-` and
lowercase, so a Crockford-base32 ULID check over them returns false);
- a SUPPLIED id is stored verbatim at whatever width the caller chose --
10, 17, 18, 26, 40 and 200 all landed and read back unaltered, with a
non-vacuity control: a query for an id never written returned 0 rows
while the table held 6, so the filter really filters;
- width is driver-owned, not a platform constant: driver-sql, mongodb and
turso each spell DEFAULT_ID_LENGTH = 16, while driver-memory mints
objectName-timestamp-counter, a variable-width shape.
So the replacement does not swap 26 for 16. An id's width is not a fixed
number at all, and each site now says which half it states -- what the driver
MINTS versus what a supplied id is stored at -- because naming a new fixed
number would only re-arm the same trap.
Every site's conclusion is unchanged: a reference column takes
`table.string(...)` / VARCHAR(255) rather than `table.uuid`, because Postgres
refuses a platform id in a `uuid` column with 22P02 -- it refuses a
16-character nanoid exactly as it refused a ULID.
Comment and failure-message text only: no behaviour, no asserted value and no
minted width changes. The two CHANGELOG copies stay untouched as historical
records. A fifth live-source site carrying the same sentence in its strongest
"minted" form, in packages/platform-objects, is filed as #16410 rather than
edited here -- a different package, a different verification surface.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
* docs(cli): reflow an orphaned line left by the previous commit
Commit f933d1e ("docs(cli): state the measured platform-id width at four
citation sites") left the aligned doc-comment block in `generate.ts` reading:
* Postgres refuses either in a `uuid` column with `22P02`. The
* width half
* is the same rule for the whole REFERENCE_VALUE_TYPES class:
"width half" was stranded on a line of its own -- an artifact of where that
commit's replacement text ended, not something the surrounding block ever
said. Rewrapped to close the orphan; the sentence is unchanged word for word.
Presentation only, and no line is being bought: nothing is added here, the
same words occupy one line fewer, and the paragraph's content is identical.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 60ff091 commit 0ea5f9d
3 files changed
Lines changed: 20 additions & 11 deletions
File tree
- packages/cli/src/commands
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
| |||
1886 | 1889 | | |
1887 | 1890 | | |
1888 | 1891 | | |
1889 | | - | |
1890 | | - | |
1891 | | - | |
1892 | | - | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
1893 | 1898 | | |
1894 | 1899 | | |
1895 | 1900 | | |
| |||
0 commit comments