Skip to content

chart: ForestDiff reports a duplicate reachable NodeKey - #659

Merged
perigrin merged 2 commits into
pufrom
chart/w4-forestdiff-duplicate-key
Nov 26, 2026
Merged

perigrin merged 2 commits into
pufrom
chart/w4-forestdiff-duplicate-key

Conversation

@perigrin

Copy link
Copy Markdown
Owner

Summary

ForestDiff now reports a reachable NodeKey that appears twice on either side. Before, the second node silently overwrote the first. This is a follow-up to the forest-equality differential gate (F4).

  • reachableAlts returns the first duplicate key it finds. ForestDiff reports "node … is reachable twice in the candidate / in V1".
  • TestForestDiffDuplicateKey covers a duplicate on each side, and a clean forest that must report nothing.
  • README: one sentence in the forest-equality bullet, committed first.

Implements: 01a217d4-9769-7de1-8c71-7051564dde33

Gate

TIER_1, with alignment applied inline. PASS at 4f6b4043. The reviewer confirmed the test goes red with the guard disabled. The runner's 3 commands, the criteria plus make test, all exited 0.

Test plan

  • Both acceptance criteria pass.
  • T1_CORPUS=/opt/corpora/PerlOnJava/src/test/resources/unit make test passes.
  • Mutation check: with the guard disabled, the test fails on both sides.

Generated by Claude Code

Implements: 01a217d4-9769-7de1-8c71-7051564dde33
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDSkrXBzd3pd6nDkewof8N
…write it

Implements: 01a217d4-9769-7de1-8c71-7051564dde33
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDSkrXBzd3pd6nDkewof8N
@perigrin
perigrin merged commit ef02228 into pu Nov 26, 2026
6 of 7 checks passed
@perigrin
perigrin deleted the chart/w4-forestdiff-duplicate-key branch November 26, 2026 14:40
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.

2 participants