Keep complete paths in missing version evidence
This commit is contained in:
@@ -265,7 +265,15 @@ Required remediation:
|
||||
|
||||
### 5. Retain the complete requested path for absent declaration evidence (P2)
|
||||
|
||||
Status: open.
|
||||
Status: complete. Lookup now clones the full requested path and refines only
|
||||
segments whose container shape was actually observed. Unresolved suffixes remain
|
||||
intact, and nearest source locations remain independent of the header path.
|
||||
Engine regressions protect segment intent and caller ownership; public
|
||||
regressions cover missing early members, scalar obstruction, and unavailable
|
||||
intermediate indices through optional final/callback evidence and required-load
|
||||
failure evidence. Both regressions failed before the fix and pass afterward.
|
||||
Focused source-version/path/source-record tests and the everyday check passed
|
||||
on `go1.26.9 linux/amd64`. The configuration contract clarifies absence evidence.
|
||||
|
||||
Affected: `resolveSourceVersionPath` and `sourceVersionCheckForEvidence` in
|
||||
[source_version.go](../../internal/engine/source_version.go), especially lines
|
||||
|
||||
Reference in New Issue
Block a user