浏览代码

docs: observed length is the diagnostic half of a suggestion, not a caveat

NOT IN THE PUBLISHED 0.13.0; ships with curl tomorrow.

I documented lengths and ranges purely as a warning - described rather than
enforced, so do not arm a suggestion unseen. A consumer ran suggest over
12447 live rows within an hour of the feature shipping and showed that those
annotations are the most informative part of it.

validFrom reported observed length 10..24 while validTo reported 10..10.
5847 rows - every chunk from one adapter - store a 24-character ISO timestamp
where the other 6600 store a 10-character date. The type was entirely clean,
so a suggestion reporting types alone would have said everything was fine:
the defect sat in a field whose type was right and whose format was not.

It matters because string bounds compare as strings, and a date is a prefix
of its own timestamp - so 2026-12-31T11:57:17.000Z sorts above 2026-12-31 and
a row valid on a 31 December drops out of that year. They checked 2017 to
2030 and found no live disagreement, the latest December timestamp being
2025-12-30. A one-day margin.

Recorded with the general form, because it is the transferable part: a field
whose type is right and whose format is not passes every type check you
write, and the length range is what makes it visible. Their own caution still
stands beside it - a suggestion describes the data and is not a proposal -
and both are true at once: it is a measurement, and measurements are where
findings come from.
fszontagh 1 月之前
父节点
当前提交
7439122579
共有 1 个文件被更改,包括 0 次插入 和 1 次删除
  1. 0 1
      api/llms.txt

文件差异内容过多而无法显示
+ 0 - 1
api/llms.txt


部分文件因为文件数量过多而无法显示