Memoize completed native link dependencies

This commit is contained in:
2026-10-25 21:43:26 +00:00
parent 8aba43da38
commit 7bf2f0c687
3 changed files with 235 additions and 51 deletions

View File

@@ -263,6 +263,12 @@ Finding: native part of **C02**.
Owners: `internal/engine/filesystem_links.go`, `filesystem_links_test.go`,
`directory_links_test.go`, and glob link tests.
Status: **complete** (native C02). Prior completed commits: `2736ddf`,
`deb9aa5`, `ae3408a`, `ea27f17`, `08a8c25`, `877c497`, `8aba43d`.
Validation passed: `env GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine -run 'Link|Directories|Glob' -count=1`,
`env GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine -count=1`,
and `git diff --check`.
1. Extract the existing portable frame evaluator into one private resolution
operation with `active` and `completed` maps. A small set of operation-local
functions supplies `Lstat`, link reading, and validated target normalization.