Skip to content

difftest: geom.hash_table — record the WR-13 growth case - #2792

Merged
jyviko merged 3 commits into
tangency-labs:mainfrom
tdamsma:fix/hash-growth-cpp-defect-case
Nov 5, 2026
Merged

jyviko merged 3 commits into
tangency-labs:mainfrom
tdamsma:fix/hash-growth-cpp-defect-case

Conversation

@tdamsma

@tdamsma tdamsma commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Machine-generated by Codex (GPT-6), supervised by @tdamsma.

Main green (§0.1, tangency-labs/solidcraft#13762): classify the confirmed C++ record-loss case in hash-table diagnostics.

After all entries are removed, pinned C++ growth marks 60 records active while its counters imply two. Rust’s preservation fix already landed in #2763.

Add the measured growth_after_all_removed WR-13 record and its cpp_defect marker. The case stays in the inventory, parked rather than counted as a pass.

State after growth Total Removed Marked active
C++ 60 58 60
Rust 60 58 2

The two implementations ran in separate processes. All 712 floating outputs are finite and equal; 348 integer coordinates differ.

Validation:

  • Before: 621 cases, 620 passes, one failure. After: 620 genuine passes, one parked case, no failures or deferrals.
  • Complete native sweep: 280 units, 263 passing, 12 partial, five still failing. The other five units are tracked in Priority: main's difftest sweep goes green before any other work solidcraft#13762.
  • Exact-base diagnostic comparison against validated main 3603e4a (run 42024714156): 280 reports, zero unit regressions. Across 592,286 case names, the only outcome change is this failure becoming parked. This does not waive CI’s successful-base requirement.
  • Workspace/all-target Clippy and formatting pass. After the normal main merge, the unit and all 35 CI-script tests pass too.
  • Difftest library tests: 480 pass, four fail, 36 ignored. Each failure reproduces alone in unchanged base code; tracked in Four C++-feature difftest tests fail on current main #2798. The remaining CLI/integration groups pass 341 tests; documentation has zero tests.
  • --run-parked reproduces the 348 discrepancies as one C++ defect. Its CLI exits 1 on the existing diagnostic-only zero-passing-case value-share problem (difftest --run-parked fails the value-share gate with zero passing cases #2796). No waiver was added.

Completed PR CI (run 42031812677): formatting, Clippy, tests, WASM, dependency checks and publish dry-run pass. The sweep still reports the same five remaining failed units; the exact-base gate refuses unsuccessful base CI. The kernel rig is also red (11 failed, one listed case moved). Overall CI is not green. No unchanged check was rerun.

Units: geom.hash_table.
In scope / expected edits: one per-unit mismatch file and one new WR-13 addendum. Both are metadata; implementation, fixtures, generators, tolerances and unit status are unchanged.
Related: follows #2763 and #2200; #2790 owns CI scheduling.
Available follow-ups: coordinate remaining red-unit work through tangency-labs/solidcraft#13762; claims have since been published there.
Status: ready for review; main’s remaining red units still need resolution before the overall sweep is green.

Summary by CodeRabbit

  • Documentation
    • Documented a known output discrepancy in a geometric hash-table case after all items are removed and new items are added. The record captures the observed differences against the pinned C++ version and notes that the case remains parked for comparison.
    • No changes were made to library behavior or test execution status.

Co-Authored-By: Codex <noreply@openai.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

This change records the growth_after_all_removed mismatch as WR-13 in the known-mismatch inventory. An addendum documents the reproduced comparison, CI results, and parked status.

Changes: WR-13 mismatch

Layer / File(s) Summary
Record mismatch and measured evidence
crates/difftest/known_mismatches/geom.hash_table.toml, plan/upstream-issues/WR-13--addendum-2026-11-05-growth-after-all-removed-native.md
The inventory marks growth_after_all_removed as WR-13. The addendum records the observed output and state differences, test results, and parked classification.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related issues

Possibly related PRs

  • tangency-labs/solidcore#2763: This PR changes Rust hash-table growth behavior for the same WR-13 case; this change records the remaining C++ mismatch.
  • tangency-labs/solidcore#2711: This PR changes difftest evidence for confirming cpp_defect cases; this change uses that classification and an addendum.

Suggested reviewers: bherbruck, jyviko

Merge Risk: Minimal · up to 866b8

This PR records an already reproduced diagnostic mismatch without changing implementation behavior or test outcomes.

Architecture risk: Low · up to 866b8

The change affects 2 systems.

Changed systems: crates, plan

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — crates (service) was modified; 1 changed file maps to changed impact.
  • observed — plan (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in crates/difftest/known_mismatches/geom.hash_table.toml: Adds a mismatch record for growth_after_all_removed, labeled WR-13. Its description reports cpp=0 and rust=123456789 at ints[490], attributing the mismatch to C++ zeroing removed bucket records on growth and marking 60 records active while counts imply two, versus Rust preserving removed records and marking two active.
  • observed — Modified behavior in plan/upstream-issues/WR-13--addendum-2026-11-05-growth-after-all-removed-native.md: Adds a measured-case report for growth_after_all_removed, including the fixture sequence, first output mismatch, separate-process state comparison, CI and local test results, and the case’s parked WR-13 classification. It records that the preservation fix is unchanged and no other behavior or test-status changes accompany the marker.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "difftest: geom.hash_table — record the WR-13 growth case" matches the main change. The PR adds a known-mismatch entry for the growth_after_all_removed case, tagged WR-13 with a cpp_defect m…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "difftest: geom.hash_table — record the WR-13 growth case" matches the main change. The PR adds a known-mismatch entry for the growth_after_all_removed case, tagged WR-13 with a cpp_defect marker, plus a WR-13 addendum. The case stays in the inventory as parked, not counted as a pass. The title names the subsystem, the case, and the defect ID, so a reviewer scanning history can identify the change. No unrelated work is present in the summary.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3603e4a and 866b893.

Files selected for processing: 2

  • crates/difftest/known_mismatches/geom.hash_table.toml
  • plan/upstream-issues/WR-13--addendum-2026-11-05-growth-after-all-removed-native.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

tdamsma and others added 2 commits November 5, 2026 13:33
Measure the invalid C++ active-record count and classify only growth_after_all_removed as the existing verified defect. Preserve genuine passes and all other diagnostics.

Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@tdamsma
tdamsma marked this pull request as ready for review November 5, 2026 12:59

@bherbruck bherbruck left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by the automated first-pass review: CI green, mergeable, no CI/build/dependency file changes, no red-flag patterns in added code (process/network/env/unsafe outside FFI/blobs/hidden unicode), 0 known-mismatch entries added. Logic is gated by CI and the difftest merge queue.

@jyviko

jyviko commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Thanks @tdamsma: the separate-process state check settles it. The C++ marks all 60 records active against its own 58-removed count, and the Rust state agrees with the counts. Good to merge.

@jyviko
jyviko merged commit 55f172d into tangency-labs:main Nov 5, 2026
11 of 15 checks passed
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.

3 participants