Check import opt-in before processing source headers

This commit is contained in:
2026-10-15 22:18:57 +00:00
parent e5a6df7af7
commit 0a2246bdbe
3 changed files with 47 additions and 4 deletions

View File

@@ -218,7 +218,13 @@ Required remediation:
### 4. Preserve import opt-in before stripping source directives (P2)
Status: open.
Status: complete. Directive opt-in is now checked on the original document
before source-version processing. The shared acquisition boundary covers main
and direct underlay sources. The public regression failed for both enabled
modes and roles before the fix and now verifies `import.disabled`, source-local
attribution, and no partial result. Focused source-version/directive/import
tests and the everyday check passed on `go1.26.9 linux/amd64`; existing enabled
import and selected-overlay tests remain green.
Affected: `assembleBaseInputTrackedForRole` in
[load_input.go](../../internal/engine/load_input.go), lines 54–87, and