Correct diff masking for historical descendants
This commit is contained in:
@@ -14,9 +14,16 @@ gates.
|
||||
|
||||
## 1. Restrict complete-region fallback to incompatible present shapes (P2)
|
||||
|
||||
Status: open.
|
||||
Status: complete. The scalar/default descendant fallback is removed. The two
|
||||
stronger-policy tests now require visible public content, and a separate
|
||||
historical-only descendant case verifies that actual incompatible present kinds
|
||||
still trigger complete-region masking. Public-load regressions cover the
|
||||
unchanged scalar inside an atomic sequence and both addition/removal directions
|
||||
across historical absence; they failed before the fix and pass afterward.
|
||||
Historical sensitivity remains available to existing explanation rendering.
|
||||
Focused diff tests, `./scripts/check.sh`, and `go test -race ./...` passed.
|
||||
|
||||
Affected: [diff_snapshot.go](../../internal/engine/diff_snapshot.go),
|
||||
Affected at the reviewed commit: [diff_snapshot.go](../../internal/engine/diff_snapshot.go),
|
||||
`preparePairedDiffNodes`, lines 63–66; and
|
||||
[diff_snapshot_test.go](../../internal/engine/diff_snapshot_test.go),
|
||||
`TestPreparePairedDiffSnapshotUsesHistoricalDescendantClassification`
|
||||
|
||||
Reference in New Issue
Block a user