You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
difftest: record seven heal.gap append-state changes - #2803
Superseded by merged #2816: authoritative main 3168565c1c76fcd53feb66bbe02d649e149c81b3 removes crates/difftest, ordinary mismatch registries and the C++ comparison gate. The seven owned case IDs (gap_array_append, gen0017, gen0179, gen0289, gen0369, gen0389, gen0393) are all present in crates/goldens/expected/heal.gap.jsonl. This PR's old diagnostic accounting/status change no longer applies to the new gate, so closing it rather than resurrecting the removed schema or manufacturing a retrigger. The input-derived oracle, measured 742-pass/seven-known result and exact-base evidence remain preserved in this conversation, branch and verified archives. This is not a new CI-green delivery or a whole-unit coverage/parity certification. No source or branch history was discarded.
Serves main green, AGENTS.md §0(1), tangency-labs/solidcraft#13762. This is the measured seven-case follow-up requested on #2760, not another kernel change.
Scope
Units: heal.gap, diagnostic accounting only.
Add a finding naming all seven cases, their complete inputs, source IDs/seeds, input hash and every measured C++/Rust difference.
Set the unit's planned status to partial, preserving its historical notes. Ordinary known mismatches keep executing; a green-planned unit returning partial fails selection_gate. Partial units remain selected by --green.
Expected / actual edits: only plan/findings/heal.gap--default-append-state-changes.md, crates/difftest/known_mismatches/heal.gap.toml, and plan/units/heal.gap.toml.
No cpp_defect marker, parking, deferred case, blocked-unit exclusion, kernel/FFI/runner/fixture/generator/input change, tolerance/floor/seed concession, CI change or baseline waiver. Every comparison remains selected. A listed case that passes, disappears or defers must fail as stale rather than silently remain allowed.
Measured evidence
Official main run 41965907239, attempt 1, head 4b10d7d6e22382e37e8239b0f395c7326807e6c6, reports 749 cases: 742 pass, seven fail, zero deferred, with 16 seeds, relative tolerance 1e-9, no absolute floors. Artifact 13388006545 was size- and SHA-256-verified (8956146fd500301af25c57cdd292d65bd6ca1a41c67a8763a38318da31629966).
Pre-rebase main 3603e4aa's run 42024714156, attempt 1, has the byte-identicalheal.gap.json: SHA-256 0e7bd4c0f666e19951f1fbacdc12678fb6919bcb77854d8879ff7349c34acd54. Its verified sweep artifact 13413073257 has SHA-256 053c72d86b69f014b57949fb17ad0973f3aea5696db9ef1f11d50efedd0ad504.
Each case differs only in float outputs values.state[4] (cached maximum index) and [5] (length). Independent scans of the finite inputs reproduce both observations: old destination-only cache versus the correct maximum over destination B followed by appended A. All seven combined inputs have a unique maximum; the empty-destination case explains the old -1 / 0 cache. The index is serialized as a float, not an exact integer comparison.
These reports contain mismatch records, not complete engine outputs. No binary build-provenance manifest was present in the initial artifacts. That initial analysis did not claim a new C++ execution; the exact-head native run measured below is later CI evidence, not a local C++ run or a new defect-parking confirmation. Both runs failed; their artifacts are diagnostic evidence, never eligible successful baselines. The 742 passes above belong to those original runs, not a fabricated post-change sweep.
Local validation
Reviewed implementation after the explicitly approved rebase onto main 554443501: 4eacc1ec9b0e117bf765a06d1195b561fa6ce794. Original head e173d8192 and its evidence were archived and all 55 archive members readback-verified before rebasing. Both patches and all three owned file blobs are unchanged.
Temporary probe: initial compilation error retained, then corrected before tracked edits. The compiling pre-edit probe failed its intended assertion (zero records versus seven); the same probe passed after the edit using the real registry and plan selection.
Seven real Rust GapArray cases built independently from the report's inputs agree with the input oracle and measured Rust maxima. This is Rust-only runtime evidence, not native parity.
Rebased-head difftest known-mismatch tests: 8 passed; baseline tests: 18 passed; CLI selection-gate test: 1 passed. The registry/partial-plan probe and seven Rust cases were rerun successfully on this exact rebased head.
Independent exact-commit source/evidence review: GO, with no blocking issue; the rebased head received a separate GO after its patch/blob identities and fresh check results were inspected. This verifies the source record, not native or canonical CI success. To rerun the temporary registry probe after the runtime binary was added, specify --bin heal-gap-probe.
Operation
Implementation
Evidence
Remaining gap
Seven append-state diagnostic differences
Existing corrected kernel unchanged; seven ordinary records and partial metadata
Verified original/current-base artifacts, complete inputs and values, independent input oracle, seven Rust runtime cases, registry/plan probe, focused checks and independent review GO
Canonical exact-base gate and inherited main failures; owned native result measured below
Official head artifact 13431461251 was size/digest verified (ZIP SHA-256 c0034cc28413cd48ca327b1b51dba438bfdd9cb4843b03b9289c15f2a4ae1a49). Its heal.gap.json SHA-256 is 9060c97225142470d9d0a564d4641f756c07594764a35d4d3b55fc82c8104ae5. All 280 report and case inventories remain; only the seven named case outcomes move from fail to ordinary known mismatch, retaining all other case fields and comparison counts. Every other 279 unit report files and the kernel-rig table are byte-identical to exact base 554443501 / failed main run 42034211447. The five remaining red units are blend.fillet_executive_p3, geom.hash_table, primitive.primitive_creation_p2, topology.assert_valid and topology.brep_p9. Their fixes retain their separate owners. Both failed artifacts were compared diagnostically only, not substituted for an eligible baseline.
The seven owned array paths construct both engines' inputs independently; the pre-existing topology-import limitation elsewhere in the unit is unchanged. The automated first-pass approval's “CI green” wording is not the actual run result.
Coordination and status
Related: #2760, #2711, #2790 and tangency-labs/solidcraft#13762. #2792 owns the separate geom.hash_table follow-up; #2802 owns the separate outcome-gate redesign. Neither scope is duplicated here. Other red units and the whole-unit topology-input-independence follow-up remain separate.
Status / blockers / next step: ready for review, not ready to merge or eligible to count. Exact head 4eacc1ec9b0e117bf765a06d1195b561fa6ce794CI 42035863799, attempt 2 completed failure: 8 passed / 4 failed / 2 skipped. The owned native result is measured: 749 cases, 742 passes, seven ordinary known mismatches, zero failures/deferred. Every other 279 unit reports and the kernel-rig table are byte-identical to exact base 554443501; the five other red units and unsuccessful exact-base CI keep the shared gate red. The comparison job was skipped. This diagnostic attribution is not an eligible successful baseline or a canonical ratchet pass. Fresh main had advanced to d93a19bd4; no additional rebase/history rewrite, agent-triggered retry, source change or merge bypass is performed. No whole-unit input-independence, numerical-parity/unit-green, main-green or finished-delivery claim is made.
Available follow-ups: remaining main-red units, owner-led gate work and unrelated kernel work. Do not closetangency-labs/solidcraft#13762: this addresses one unit only. Existing urgent label requested from a maintainer; this credential previously could not apply repository labels.
The recorded historical validation shows 742 of 749 cases passing, with seven mismatches and none deferred. The related test area is marked partially passing.
Current-head native verification is still pending; these results do not represent a current run or confirm a defect.
No actionable comments were generated in the recent review.
Walkthrough
This PR documents seven heal.gap mismatches associated with the WR-90 default append change. It adds the cases to known mismatches and changes the unit status from green to partial.
Records historical CI results, provenance limits, and an independently derived oracle for append state.
Register mismatches and update unit status crates/difftest/known_mismatches/heal.gap.toml, plan/units/heal.gap.toml
Adds seven known mismatch records and changes the unit status to partial. The notes report the historical results and state that current-head native verification is pending.
The PR accurately records the seven known mismatches and avoids claiming unverified native-run success.
Architecture risk: Low · up to 4eacc
The change affects 2 systems.
Changed systems:plan, crates
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — plan (service) was modified; 2 changed files map to changed impact.
observed — crates (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
observed — Modified behavior in crates/difftest/known_mismatches/heal.gap.toml: Adds seven heal.gap mismatch records for the listed cases, each with a reason citing the WR-90 default fix and changed append maximum state.
observed — Modified behavior in plan/findings/heal.gap--default-append-state-changes.md: Adds a diagnostic document recording historical CI results, artifact and source provenance limits, and an independently derived append-state oracle with seven mismatching cases and their exact inputs. It distinguishes the old destination-cache behavior from sequential insertion, records finite-tie handling, and explicitly avoids claiming a current run, reproducible binary, confirmed reference defect, or changes to the test configuration.
observed — Modified behavior in plan/units/heal.gap.toml: The unit status changes from green to partial. The notes add the WR-90 append diagnostic, including seven compared mismatches, the earlier 749-case result, pending current-head native verification, and a findings link; the prior history remains.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "difftest: record seven heal.gap append-state changes" matches the main change. The PR records seven measured heal.gap append-state mismatches as known_mismatch entries and a finding, and ch…
Linked Issues check
Linked issue #2794 sets the rule for each red unit: fix the cause, or record each moved case in a finding that names it and gives its measured values (#2711 rule). The heal.gap row lists 7 failing cas…
Out of Scope Changes check
The whole-PR summary (merge base 5544435 to head 4eacc1e) lists exactly three changed files. I confirmed their diffs against the merge base. plan/units/heal.gap.toml changes status from green to pa…
Full details: Title check
Explanation
The title "difftest: record seven heal.gap append-state changes" matches the main change. The PR records seven measured heal.gap append-state mismatches as known_mismatch entries and a finding, and changes the unit status to partial. The title is specific and short, and it names the affected unit and the kind of change. It does not mention the WR-90 default fix or the diagnostic-only nature of the failed historical run, but the title does not need to cover every detail.
Full details: Linked Issues check
Explanation
Linked issue #2794 sets the rule for each red unit: fix the cause, or record each moved case in a finding that names it and gives its measured values (#2711 rule). The heal.gap row lists 7 failing cases since #2760. The PR takes the recording route. plan/findings/heal.gap--default-append-state-changes.md names all seven cases (gap_array_append, gen0017, gen0179, gen0289, gen0369, gen0389, gen0393). For each case it gives the C++ and Rust values of values.state[4] (cached index) and values.state[5] (length). I checked the table against the listed inputs. Each Rust index and value equals the maximum of destination B followed by appended A. Each C++ value equals the maximum of B alone, and gen0393 gives -1/0 for the empty destination. The known_mismatch file adds the same seven cases as ordinary entries. The unit status is set to partial, so the cases stay compared. The C++ and failed-run artifact values cannot be checked from this repository. The finding states this limit. The finding covers only heal.gap. Global main green (#2794 headline) is not shown by this PR, and the PR says other red units remain separate. Those units are not this PR's objectives.
Full details: Out of Scope Changes check
Explanation
The whole-PR summary (merge base 5544435 to head 4eacc1e) lists exactly three changed files. I confirmed their diffs against the merge base. plan/units/heal.gap.toml changes status from green to partial and adds a diagnostic note; prior notes are kept. crates/difftest/known_mismatches/heal.gap.toml adds seven [[mismatch]] entries for the heal.gap cases named in the finding. plan/findings/heal.gap--default-append-state-changes.md is a new diagnostic record. No kernel, FFI, runner, fixture, generator, tolerance, seed, CI, or baseline file is in the listed changes. Every change ties to the seven heal.gap cases in #2794. The PR description mentions a temporary probe and a '--bin heal-gap-probe' option. The summary does not list any tracked source or binary file for that probe, so I treat it as local tooling and not as part of this diff. No unrelated change is shown.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
All seven owned cases execute as ordinary known mismatches, retaining their original inputs, all 14 differing-component pairs and per-case comparison counts. No case was dropped, parked, deferred or counted as a pass. This clears the seven ordinary failures on the PR branch, truthfully as partial—not numerical parity or literal unit-green. The seven array paths construct both engines' inputs independently; the pre-existing topology-import limitation elsewhere in the unit is unchanged.
The official head sweep artifact 13431461251 was size/SHA-256 verified (c0034cc28413cd48ca327b1b51dba438bfdd9cb4843b03b9289c15f2a4ae1a49). Compared diagnostically against exact base 554443501 / main run 42034211447:
All 280 report inventories and all case names are retained; the only outcome changes are these seven fail → known_mismatch entries.
Every other 279 unit reports is byte-identical to the base. The remaining five red units are blend.fillet_executive_p3, geom.hash_table, primitive.primitive_creation_p2, topology.assert_valid and topology.brep_p9.
The kernel-rig table is also byte-identical to that base, including its failures and moved known-failing case.
Overall CI remains failure: 8 passed / 4 failed / 2 skipped. Formatting, CI scripts, Clippy, workspace tests, wasm, package dry-run and dependency checks pass. The inherited sweep/rig failures and failed exact-base gate keep the required difftest check red; CI's comparison job was skipped. Both downloaded report sets come from failed runs and were used only for diagnostic attribution, never as eligible successful baselines or a gate bypass.
#2803 remains ready for review, but not ready to merge or eligible to count. Main does not yet include this PR. No retry, new commit, source change, tolerance concession or workflow/merge bypass is proposed for these inherited failures. The automated first-pass approval's “CI green” wording is not the actual CI result.
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.
Held for maintainer review: an automated security pre-check flagged this revision (4eacc1e) for a closer look before it can enter the merge queue. Noted: Adds 7 knownmismatches entries and downgrades heal.gap from green to partial, which loosens the gate. Otherwise only docs and TOML, no code or side effects.. No action is needed; a maintainer will follow up.
Thanks @altvnk, deriving the expected maximum from the inputs, the first argmax of |B| then |A|, is exactly the kind of oracle we want: it doesn't trust either side's output. Good to merge once heal.gap reads partial, as the record says.
Thanks for this! #2816 has merged and replaced difftest with goldens. To land, this PR needs the steps in this comment. Its known_mismatches entries for heal.gap go away: bless the cases your change moves in crates/goldens/expected/, each with its old and new values and why the new ones are right. A result that is still wrong goes in known_failing.json with its issue. Here that means the seven append-state changes, each justified.
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
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.
Superseded by merged #2816: authoritative main
3168565c1c76fcd53feb66bbe02d649e149c81b3removescrates/difftest, ordinary mismatch registries and the C++ comparison gate. The seven owned case IDs (gap_array_append,gen0017,gen0179,gen0289,gen0369,gen0389,gen0393) are all present incrates/goldens/expected/heal.gap.jsonl. This PR's old diagnostic accounting/status change no longer applies to the new gate, so closing it rather than resurrecting the removed schema or manufacturing a retrigger. The input-derived oracle, measured 742-pass/seven-known result and exact-base evidence remain preserved in this conversation, branch and verified archives. This is not a new CI-green delivery or a whole-unit coverage/parity certification. No source or branch history was discarded.Serves main green, AGENTS.md §0(1), tangency-labs/solidcraft#13762. This is the measured seven-case follow-up requested on #2760, not another kernel change.
Scope
Units:
heal.gap, diagnostic accounting only.known_mismatchentries:gap_array_append,gen0017,gen0179,gen0289,gen0369,gen0389,gen0393.selection_gate. Partial units remain selected by--green.Expected / actual edits: only
plan/findings/heal.gap--default-append-state-changes.md,crates/difftest/known_mismatches/heal.gap.toml, andplan/units/heal.gap.toml.No
cpp_defectmarker, parking, deferred case, blocked-unit exclusion, kernel/FFI/runner/fixture/generator/input change, tolerance/floor/seed concession, CI change or baseline waiver. Every comparison remains selected. A listed case that passes, disappears or defers must fail as stale rather than silently remain allowed.Measured evidence
Official main run 41965907239, attempt 1, head
4b10d7d6e22382e37e8239b0f395c7326807e6c6, reports 749 cases: 742 pass, seven fail, zero deferred, with 16 seeds, relative tolerance1e-9, no absolute floors. Artifact13388006545was size- and SHA-256-verified (8956146fd500301af25c57cdd292d65bd6ca1a41c67a8763a38318da31629966).Pre-rebase main
3603e4aa's run 42024714156, attempt 1, has the byte-identicalheal.gap.json: SHA-2560e7bd4c0f666e19951f1fbacdc12678fb6919bcb77854d8879ff7349c34acd54. Its verified sweep artifact13413073257has SHA-256053c72d86b69f014b57949fb17ad0973f3aea5696db9ef1f11d50efedd0ad504.Each case differs only in float outputs
values.state[4](cached maximum index) and[5](length). Independent scans of the finite inputs reproduce both observations: old destination-only cache versus the correct maximum over destination B followed by appended A. All seven combined inputs have a unique maximum; the empty-destination case explains the old-1 / 0cache. The index is serialized as a float, not an exact integer comparison.These reports contain mismatch records, not complete engine outputs. No binary build-provenance manifest was present in the initial artifacts. That initial analysis did not claim a new C++ execution; the exact-head native run measured below is later CI evidence, not a local C++ run or a new defect-parking confirmation. Both runs failed; their artifacts are diagnostic evidence, never eligible successful baselines. The 742 passes above belong to those original runs, not a fabricated post-change sweep.
Local validation
Reviewed implementation after the explicitly approved rebase onto main
554443501:4eacc1ec9b0e117bf765a06d1195b561fa6ce794. Original heade173d8192and its evidence were archived and all 55 archive members readback-verified before rebasing. Both patches and all three owned file blobs are unchanged.GapArraycases built independently from the report's inputs agree with the input oracle and measured Rust maxima. This is Rust-only runtime evidence, not native parity.git diff --check: passed.--bin heal-gap-probe.Exact-head native CI result
Official head artifact
13431461251was size/digest verified (ZIP SHA-256c0034cc28413cd48ca327b1b51dba438bfdd9cb4843b03b9289c15f2a4ae1a49). Itsheal.gap.jsonSHA-256 is9060c97225142470d9d0a564d4641f756c07594764a35d4d3b55fc82c8104ae5. All 280 report and case inventories remain; only the seven named case outcomes move from fail to ordinary known mismatch, retaining all other case fields and comparison counts. Every other 279 unit report files and the kernel-rig table are byte-identical to exact base554443501/ failed main run42034211447. The five remaining red units areblend.fillet_executive_p3,geom.hash_table,primitive.primitive_creation_p2,topology.assert_validandtopology.brep_p9. Their fixes retain their separate owners. Both failed artifacts were compared diagnostically only, not substituted for an eligible baseline.The seven owned array paths construct both engines' inputs independently; the pre-existing topology-import limitation elsewhere in the unit is unchanged. The automated first-pass approval's “CI green” wording is not the actual run result.
Coordination and status
Related: #2760, #2711, #2790 and tangency-labs/solidcraft#13762. #2792 owns the separate
geom.hash_tablefollow-up; #2802 owns the separate outcome-gate redesign. Neither scope is duplicated here. Other red units and the whole-unit topology-input-independence follow-up remain separate.Status / blockers / next step: ready for review, not ready to merge or eligible to count. Exact head
4eacc1ec9b0e117bf765a06d1195b561fa6ce794CI 42035863799, attempt 2 completed failure: 8 passed / 4 failed / 2 skipped. The owned native result is measured: 749 cases, 742 passes, seven ordinary known mismatches, zero failures/deferred. Every other 279 unit reports and the kernel-rig table are byte-identical to exact base554443501; the five other red units and unsuccessful exact-base CI keep the shared gate red. The comparison job was skipped. This diagnostic attribution is not an eligible successful baseline or a canonical ratchet pass. Fresh main had advanced tod93a19bd4; no additional rebase/history rewrite, agent-triggered retry, source change or merge bypass is performed. No whole-unit input-independence, numerical-parity/unit-green, main-green or finished-delivery claim is made.Available follow-ups: remaining main-red units, owner-led gate work and unrelated kernel work. Do not close tangency-labs/solidcraft#13762: this addresses one unit only. Existing
urgentlabel requested from a maintainer; this credential previously could not apply repository labels.— OpenCode (GPT-6.1 Sol), on behalf of @altvnk
Summary by CodeRabbit