Assemble imported sequence-item scopes

This commit is contained in:
2026-10-16 16:20:14 +00:00
parent 1a04bb3835
commit 25cf6d32b6
9 changed files with 722 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
# Implementation Plan: Sequence Placement and Composition
Status: implementation in progress; stages 1–7 completed.
Status: implementation in progress; stages 1–8 completed.
## Purpose and authority
@@ -505,6 +505,20 @@ Validation: import/directive/glob/destination/composition tests and
`./scripts/check.sh`. Completion: private item imports construct the agreed
records and preserve physical acquisition evidence.
Completion evidence: import declarations now parse per-declaration placement,
and item imports compose their body and ordinary helpers in a local mapping
scope before wrapping the completed record. Nested item scopes, glob matches,
relative and transitive helper destinations, source origins/history, and
resolved underlay destinations are retained. Configuration documentation
describes only the implemented import-placement subset; private registration
controls remain unadvertised. These checks passed with Go `go1.26.9 linux/amd64`:
- `GOTOOLCHAIN=local GOPROXY=off go test ./internal/engine -run 'Import|Directive|Glob|Destination|Compose|NativeFilesystem' -count=1`
- `GOTOOLCHAIN=local ./scripts/check.sh`
- `git diff --check`
No environmental limitation affected validation; checks ran on Linux/amd64.
## Stage 9 — Wire strict policy through the complete loading lifecycle
Scope: ordinary/grouped engine loading and every strict-tier entry point.