Repository navigation
feat(u32): add signed less-than comparison - #84
Conversation
|
Review recommendation: fix before merging. The signed comparison passes its targeted tests, but the newly added test uses September 11 local validation (unchanged PR head): Integration: rebase on current main, resolve any catalog/NR/OP ID collisions, and run the affected correctness tests and focused metric checks. Reviewed commit: |
ca6a35c to
7c23dc6
Compare
|
Addressed the review recommendation in commit
Validation:
|
|
Review of The fixed ChaCha20 seed and active signed-comparison metric address the earlier reproducibility gaps. Preserve the existing catalog configurations when rebasing, then rerun the signed comparison and named metric check plus KB validation. Current integration conflicts: Validation scope: source/diff and existing CI review; no new full-repository or field-arithmetic test run was requested. |
Integrate origin/main (e9d5a66) into feat/u32-signed-compare. The only conflict was knowledge/catalog.json in the arithmetic/u32 record: keep main's byte-plane test entries, security, and stack-contract text and append the PR's signed less-than test/metric references and sentences. All 101 records and 256 configurations from main and all 245 PR configurations are retained (257 merged, no duplicate ids). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The signed-lessthan configuration was attached to the arithmetic/u32-compressed-equal record, whose knowledge page, tests, and implementation do not describe it. Move it unchanged into the arithmetic/u32 record, which already lists the signed comparison test, metric check, security note, and stack contract. Configuration values and the record/configuration counts (101/257) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Addressed in
Validation on the committed HEAD with a clean tree:
No metrics changed. The fixture still measures:
These runs use compiler This head was subsequently integrated into |
Merges origin/main (3d1001f, which has since integrated solving-bitcoin#84 signed less-than, solving-bitcoin#45 fixed rotations/equality, solving-bitcoin#40 reverse-byte adapter, and 27 other PRs) into feat/u32-compressed-boundary, addressing Robin Linus's 2026-09-25 review. Conflicts resolved: - knowledge/catalog.json: kept the u32 record's "tests" entries from both sides (u32_compression_metrics_are_current and u32_reverse_byte_adapter_metrics_are_current), and merged the "security"/"stack_contract" prose so both sides' sentences survive. main ⊆ merged and PR ⊆ merged verified by record-id and (record, configuration)-id set comparison: 117 records / 285 configurations after merge, no duplicates, no ids outside the union of both sides. - knowledge/primitives/u32.md: concatenated both sides' bullets (signed compression boundary / unchecked decoder from the PR; reusable routing / byte-plane transpose / fixed-byte rotations / SHA-256 rotation from main). All 43 main bullets and 40 PR bullets verified present in the merged 45. - src/arithmetic/u4/mod.rs: union of both sides' `pub mod` lines, alphabetically sorted (main added several u4 modules the PR predates; no semantic content lost). - tests/primitive_metrics.rs: kept every #[test] fn from both sides (u32_compression_metrics_are_current from the PR; u32_reverse_byte_adapter_metrics_are_current, u32_equality_metrics_are_current, u32_fixed_rotation_metrics_are_current, u32_byte_planes_metrics_are_current from main). 207 fns after merge = union of main's 206 and the PR's 169 (168 shared). src/arithmetic/u32/README.md and src/arithmetic/u32/stack.rs merged without conflict. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Validation
cargo test --locked arithmetic::u32::cmp::tests -- --nocapturecargo test --locked --test primitive_metricspython3 tools/kb.py validategit diff --checkThe full repository test suite was intentionally not run.