Skip to content

XL-2 named Nat/Int decimal conversions (#13436 fixed, folded onto v1-closeout) - #13668

Merged
gunbai-bot[bot] merged 5 commits into
integration/v1-closeoutfrom
session/royal-lynx-855
Oct 10, 2026
Merged

gunbai-bot[bot] merged 5 commits into
integration/v1-closeoutfrom
session/royal-lynx-855

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Folds #13436 (origin/session/deep-newt-14-conv merged by name) onto integration/v1-closeout and fixes review 5477170528's blocking defect.

Defect: decimal_digit_of_reduced_units mapped every out-of-range Int to D9 (fail-open, DESIGN §5).
Fix (construction, not validation): the lookup and its default arm are deleted. decimal_digit_of_units now constructs the digit by walking the one std.nat decimal_digit_successor table (carry wraps to D0 = the units digit of ten); no Int-to-digit selection exists to be out of range. Because every Int now has a correct answer, there is no refusal arm: -1 -> D1, 10 -> D0, 99 -> D9 (units digit of magnitude), 9 -> D9.
Controls: decimal_digit_of_units_is_constructed_not_defaulted in peano_nat_structural_realization_test.dag (9, 0, -1, 10, 99, -10).
Mirror: src/v1/stage0/src/std_integer.rs taken from a remote required-regen candidate (BuildBuddy 60GB; srv1 not reachable from this session), not hand-merged. The required-regen reported drift only in std_integer.rs; CI build lane is the fixed-point check.

🤖 Generated with Claude Code

Brian Searls and others added 5 commits October 9, 2026 17:28
Integrate current main after #13388; keep named hole conversions on std.nat / std.integer.
…he spatial cast.

Merging main reintroduced one implicit stringify (Map Display in the canonical-order witness) and left the spatial_dimension `{o as String}` template as a v1 span mismatch. Named Int/Nat/Symbol routes stay; the Map hole is deleted rather than given a fourth renderer.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gunbai-bot

gunbai-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

Folded into #13641 (merge second parent = df9e66d).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants