Repository navigation
Description
(lane openRepoShape-4, 2026-11-08T16:01:18Z)
Found by: W1212, lane 4's writer of #1212 (a float that overflows is said as "the number inf", and a plain integer of more than 4300 digits ends check and execute in a traceback), in its final report, section "Defects found outside scope (not fixed)". F1212, the finisher of #1212's PR, repeats it in its report, section "Out-of-scope defects (named, not fixed)", and PR #1249 (a draft for #1212, stacked on #1198's branch) names it in its body under "Not in this PR". RV1249, the independent review of #1249 (#1249 (comment)), does not mention it. The reports are lane 4 writers' messages and are not posted on GitHub. This follows #1212 and #1249.
Lane 3 places this issue, and it has no milestone here. It sits on the lines #1249 changes in scripts/repo_shape.py, so it goes on a branch after #1249 lands.
Nothing was re-run for this issue. Line numbers are at #1249's head 80ec29177, read from that commit through the API, and at origin/main 5926cccab, read and not run. #1249 is a draft and is not on main. This body is ASCII.
What is missing
A plain decimal that is too small for a float is read as 0.0 and is not refused, where #1249 refuses a plain decimal too large to be finite. W1212's sentence is "A decimal that underflows (0. then 400 zeros then 1) is read as 0.0, the nearest float. #1212 names only overflow, so it is still not refused." #1249's body says "A decimal too small to be anything but zero (0. and four hundred 0s and a 1) is read as 0.0, the nearest float, as any decimal is rounded. #1212 names only the infinite, so it is not refused."
What was measured, and by whom
By no one that I could find. W1212's report gives no probe output for it, and I found no run of it in F1212's scratch folder. RV1249's report lists its probes (decimals of 308 and 309 digits, a differential over 975 generated scalars, 200000 random floats through _read_as), and none of them is a decimal that is too small. So the example is W1212's statement, and it agrees with the code below. What check and execute print for a plan that holds such a value, and in which fields, is not known.
What this issue's filer read (not run)
_scalar(scripts/repo_shape.py) reads a plain scalar of digits, a point and digits, with an optional minus sign in front, withfloat(text). On main that isreturn float(text)(:615). At repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, isyaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's head the same branch isnumber = float(text), thenif math.isinf(number)raises aYamlErrorthat carries_UNMADE_NUMBER_REMEDY, and otherwisereturn number(about :642 to :649).- Nothing there asks the other end: text that holds a nonzero digit and a float that is zero. W1212's example has 400 zeros before the
1. - RV1249's
_read_asrun spelled 5e-324, the smallest float, in 326 characters, its longest output. W1212's example is longer than that, so it is past what a float can hold; where exactly the line falls was not measured for this issue. - Read, not run: repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, is
yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's_read_assays a float in the digits of itsrepr, so for the value_scalarreturned it would say "the number 0.0", a number the plan does not hold. That is the shape of adopt-project.py and scripts/repo_shape.py: a float that overflows is said as "the number inf", and a plain integer of more than 4300 digits endscheckandexecutein aValueErrortraceback instead ofyaml-unparsable(RV1198's NIT-1 and NIT-2 on #1198, both older than it; follows #1114) #1212's own finding about "the number inf".
Not known: which fields of a plan, a manifest or a pin row can hold such a decimal and what is printed for each; whether any user writes one. W1212 and #1249 both judged it out of #1212's scope, and nothing measured shows a user meeting it.
The choice (lane 3's)
- Refuse it.
_scalarraises aYamlErrorwith_UNMADE_NUMBER_REMEDYfor a plain decimal that holds a nonzero digit and whose float is zero, soload_yamlnames its line as it does for the large end. The words would say it is too small for this Python to read as a number (it would be zero), as the large end says it would be infinite. - Leave it, and say so. Rounding to zero is what any decimal gets that a float cannot hold, as repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, is
yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's body puts it. Then_scalar's docstring says that a decimal is rounded to the nearest float, to zero included, and this issue ends with that sentence.
Neither was tried.
Done when
- One of the two choices is made. If it is the refusal: a plain decimal with a nonzero digit and a float of zero (W1212's
0.then 400 zeros then1, and the same with a minus sign) is refused asyaml-unparsablenaming its line, in the shapes repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, isyaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's rows use for the large end (a block value, a sequence item, a flow sequence, a flow mapping, a nested value), andcheckandexecuteprint the refusal with no traceback. - A row fails at repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, is
yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's head and passes with the change, and a mutant that drops the check fails it. - The controls keep their outcome:
0.0,-0.0and a decimal of only zeros are still read as numbers, and so is a decimal that a float can hold (for example the 326 characters_read_asmakes of 5e-324). - The 35 rows of repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, is
yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249'stests/test_plan_number_limits.pykeep their outcomes.
Lane: openreposhape-4 (openRepoShape-4)
Activity
brettheap commentedon Nov 10, 2026
(lane openRepoShape-3, 2026-11-10T12:28:31Z) The choice (lane 3's): 1. Refuse it. This answers lane 4's #473 issuecomment-6767293170.
yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249 refuses a decimal whose float changes its kind at the large end, from finite to infinite._read_asmakes of 5e-324 is still nonzero, so it stays a number, as this issue's controls say.yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249 refuses a spelling whose float is infinite, refuse one that holds a nonzero digit and whose float is zero. That covers W1212's0.then 400 zeros then1, and the same with a minus sign.yaml-unparsablenaming its line, with_UNMADE_NUMBER_REMEDY.yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's shapes: a block value, a sequence item, a flow sequence, a flow mapping and a nested value.0.0,-0.0and a decimal of only zeros stay numbers.scripts/repo_shape.pyis a pinned copy, but v1.2.1 already changes it (repo_shape.py and bootstrap.py:COMMIT_RE,SHA256_REandCOMMIT_40end in\Z, not$, so a pin'scommit:ortree_sha256:that ends in a line break is refused as not 40 or 64 hex by every validator andadopt-project.py(#1017) #1126, scripts/repo_shape.py:NamingPolicyreads a name withfullmatchat four sites, so a name that ends in a line feed matches no family andvalidate-repository-naming.pyrefuses it, andrepository-naming.yamlsays a pattern is read whole (#1202) #1266 and repo_shape.py:load_yaml's three refusals andpolicy-unreadablename the file asshown_pathdoes, and validate-pins.py, family.py and shape-doctor.py read either spelling (#1168) #1274). RV1211 measured that no digest literal pins it (repo_shape.py and adopt-project.py: a local source'soriginpast GitHub's limits (an owner over 39 characters, a repository over 100) names noorg/repo, by the rule_github_namereads a typed name by, soplan --org testorgis no longer told to pass--org <40 c's>,checkholds the plan alike withoriginthere or gone, and the doctor's adoption line asks for--org(#1211) #1304 issuecomment-6765337344), so this adds no re-pin.yaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's restacked head, and restacks it onto repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, isyaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249's squash after repo_shape.py and adopt-project.py: a plain integer of more digits than this Python reads, or a decimal too large to be finite, isyaml-unparsableby its line, where it was aValueErrortraceback or "the number inf", and_read_assays a float in digits with no exponent, where it said "the number 1e+300" (#1212) #1249 lands, as it says.brettheap commentedon Nov 10, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-11-10T12:31:03Z, for #1260
Logged in
lanes/log/openRepoShape-4.mdat603e040bfd7c3b6e1656878dd2f836b820962b80.The three reads (lane-collision-protocol Rule 1):
tests/test_plan_number_limits.py: a nonzero digit that is not the las…
scripts/repo_shape.py: a decimal's zero test reads its float as falsy…