Separate directory entry admission from traversal

This commit is contained in:
2026-10-25 13:25:37 +00:00
parent 2c3eb3308b
commit d314a269d5
2 changed files with 100 additions and 63 deletions

View File

@@ -1,6 +1,6 @@
# Consolidation Implementation Plan
Status: in progress. Stages 1 through 11 are complete; follow Stage 12 through Stage 20 in order.
Status: in progress. Stages 1 through 12 are complete; follow Stage 13 through Stage 20 in order.
The target executor is a Luna coding agent working through one end-to-end sprint.
## Authority, Baseline, And Execution
@@ -508,7 +508,7 @@ The declaration parser retains its validation ordering, authored member sites,
and nil-versus-empty presence behavior. Import-focused tests and
`./scripts/check.sh` passed.
## Stage 12 — Extract Directory Entry Admission And Descent
## Stage 12 — Extract Directory Entry Admission And Descent (Complete)
**Owner:** engine `import_selection.go`, using existing directory/link helpers.
@@ -529,6 +529,11 @@ and nil-versus-empty presence behavior. Import-focused tests and
**Finish:** substantial entry/descent policy is separated from stack orchestration
without changing the selection algorithm or adding repeated root walks.
Progress notes (2026-10-25): extracted entry inspection and file/directory
admission into a result-returning helper. The selector retains root handling,
stack and active-path mutation, candidate union, sorting, exclusions, and the
required-empty decision. Directory-focused tests and `./scripts/check.sh` passed.
## Stage 13 — Extract Imported-Source Admission From Recursion
**Owner:** engine `import_acquisition.go` after Stage 10.