Avoid duplicate intermediate source history

This commit is contained in:
2026-10-27 03:04:31 +00:00
parent 17216a40f3
commit 906ca34b6d
3 changed files with 56 additions and 1 deletions

View File

@@ -123,7 +123,13 @@ checks effective and historical redaction.
## 2. Intermediate Source Definitions Are Duplicated In Metadata History
Priority: P2. Status: open.
Priority: P2. Status: complete.
Completion: displaced definitions are omitted only when a preceding operation
already introduced that concrete path with the same represented origin.
`TestTierHistoryRecordsEachContributionOnce` failed before the fix and passes
for both differing and equal-valued tiers. The full ordinary suite and
`git diff --check` passed, including the existing shape-change regressions.
Relevant code: `observeSourceEvidence` in
[history_source.go](../../internal/engine/history_source.go), lines 82–117;