Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #280 +/- ##
==========================================
+ Coverage 94.76% 94.77% +0.01%
==========================================
Files 84 84
Lines 13168 13176 +8
Branches 805 805
==========================================
+ Hits 12479 12488 +9
+ Misses 623 622 -1
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Remove decimal padding and normalize signed zero before key construction. Keep validation and literal string handling unchanged.
lan17
force-pushed
the
fix/rust-canonical-bigint-keys
branch
from
November 13, 2026 07:26
a86f254 to
dd2ff4f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Cross-port testing found that Rust accepted decimal BigInt text such as
0001,-0001,-0and000but used that text unchanged in cache keys. TypeScript, Go and Python use1,-1,0and0for the same numeric values.This violates W02 and the canonical scalar equality confirmed in issue 14. It is separate from the malformed TypeScript ID validation tracked in issue 97.
Change
Type: Bug fix. No design record is needed: this restores the existing contract without changing the public API or accepted input syntax.
0.The existing Quint
normalizedIntegersRetainExactMagnitudeinvariant requires canonical signs and digits;signedBigintsPreserveEveryDecimalDigitTestand its generated vectors already cover the numeric rule. No new model or generator change is needed for this Rust decimal-text binding: the new shared vectors supply its alternate spellings to every port.Rolling upgrade and rollback: only noncanonical BigInt argument keys change. They can miss old entries or reuse the existing canonical entry; request/local cache identity, coalescing and cohort selection follow the canonical key. Old padded entries can remain until expiry. Entity watermark keys exclude arguments and remain unchanged. Literal strings and already-canonical BigInts keep their keys.
Ports
Validation
Head:
dd2ff4f5c25583fe6237ecf5f6ed2c6af6499cf0Before the fix,
cargo test --locked --all-features --test protocol_keysfromrust/at84b8b11c85738ad505d49519f7114e7fa1fc5033failed both new API regressions and both new shared vectors.make check-rust: passed on the head inputs, including formatting, clippy, native tests and conformance.corepack pnpm --dir typescript exec vitest run test/formal-protocol-vectors.test.ts --coverage.enabled=false: passed, 1,538 tests.make check-go: passed, including vet, formatting and native tests with race detection.python -m pytest python/tests/test_protocol_vectors.py: passed, 1,537 tests.python -m ruff check python: passed.make audit: passed.The initial hosted Go job stopped at formatting because the updated vector-count line lost its indentation. The base file passed formatting. This head restores that indentation; no Go implementation change was needed.
Hosted PR CI passed on this head: CI, Formal smoke, documentation, title and CodeQL.
Formal Mutations run 43386609323 on
dd2ff4f5c25583fe6237ecf5f6ed2c6af6499cf0: passed inmutationsmode. Corpus generation, all four port replay lanes, symbolic checks, all 25 mutation shards (6 TypeScript, 15 Go, 4 Rust), their report merges and theformal-fullaggregate passed.Not run: model checks, the model-fault campaign and optional fresh-seed exploration. These are not required for this port-only bug fix. Every lane required by the Mutations tier passed.
Follow-ups
None.