Repository navigation
fix: keep service constants out of external references - #19
Merged
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #18
continue constant
konard
marked this pull request as ready for review
October 30, 2026 13:44
Member
Author
Working session summaryImplemented in PR #19, now ready for review.
Completed in about 11 minutes. This summary was automatically extracted from the AI working session output. |
Member
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (92.9K + 3.0M cached) input tokens, 16.5K output tokens, $1.225174 cost 🤖 Models used:
📎 Log file uploaded as Gist (547KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Member
Author
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Linked issues |
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.
LinksConstants::external()classifiedcontinueas an external reference because both usedMAX / 2. Start external references atMAX / 2 + 1, matching the C# behavior reported in the issue. Foru32, the external range is now2147483648..=4294967295;continueremains2147483647and is neither external nor a reference.external(),via_only_external(true), andvia_external(_, true)for every supported unsigned address type.full_newandvia_rangespanic when custom external ranges overlap the supplied internal range, including the six service values. Disjoint ranges in either order, absent external ranges, and empty external ranges remain supported. The new panic condition is documented.Cargo.lockwith the existing2.0.0manifest without changing dependency versions, and remove the PR placeholder.Validation:
Reproduce with
cargo test --test constants test_external_range_starts_after_continue_u32: the new assertion fails on the original implementation becauseis_external(continue)returnstrue.Before the fix, the constants suite had four failing regressions; after the fix, all 27 constants tests pass.
Regression coverage checks
u8,u16,u32,u64,u128, andusize; all six service values; null; both internal/external endpoints; all three external constructors; invalid custom overlaps; and preservation of valid custom ranges.Local checks passed:
cargo fmt --all -- --check,cargo clippy --locked --all-targets --all-features -- -D warnings,cargo test --locked --all-features --verbose(98 tests plus one doctest),cargo test --locked --doc --verbose,rust-script scripts/check-file-size.rs,cargo build --locked --release --verbose, andcargo package --locked --list --allow-dirty.Changelog and version policy scripts passed locally.
GitHub Actions passed for commit
d910933: tests on Linux, macOS, and Windows; lint/format; coverage; package build; and changelog/version checks.Fixes #18