From 4668d5d7f9ce80cc29b028612dcf2be2921a7167 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sat, 5 Dec 2026 21:55:55 +0000 Subject: [PATCH] Clarify which native imports inspect symlink targets --- docs/config.md | 12 +++++++----- docs/roadmap/remediation.md | 7 ++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/config.md b/docs/config.md index 7f47cc3..9ccd1b7 100644 --- a/docs/config.md +++ b/docs/config.md @@ -2023,11 +2023,13 @@ distinct sources. Unbounded host access uses ordinary OS operations; explicit containment uses a library-owned root handle. Host links may reach external locations under unbounded access; explicit Root still bounds their canonical targets. Discovered-link follow controls remain independent of containment. -Native filesystems use slash-path operations and fs.ReadLinkFS when supplied; -otherwise they follow their ordinary fs.FS capabilities. YAML leading-slash -selector rewriting does not apply to native symlink targets: native absolute -link targets retain their existing rejection. These facilities provide no -additional sandbox or concurrent-filesystem mutation guarantee. +Native named-file imports delegate access to the supplied fs.FS. Directory and +glob traversal use fs.ReadLinkFS to inspect links when that capability is supplied; +otherwise they follow the filesystem's ordinary capabilities. ConfigKit's native +link-target inspection rejects absolute symlink targets. YAML leading-slash +selector rewriting applies only to selectors, not to filesystem symlink targets. +These facilities provide no additional sandbox or concurrent-filesystem mutation +guarantee. Import widening does not widen selected-overlay lookup or configured secrets bootstrap. Those continue using the legacy anchor and their own contracts. diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md index 298dfc9..94472a2 100644 --- a/docs/roadmap/remediation.md +++ b/docs/roadmap/remediation.md @@ -69,7 +69,12 @@ between the two forms, with the host behavior retained. ## 2. Limit the native absolute-link rejection statement to inspected links -Priority: P2. Status: open. +Priority: P2. Status: complete. + +Completed: the import contract distinguishes delegated named-file access from +explicit link inspection in directory/glob traversal. Absolute-target rejection +is scoped to that inspection; no runtime restrictions were added. The edited +paragraph and its existing section links were reviewed, and whitespace passes. Relevant documentation: the native-link paragraph at lines 2026–2029 of [the import contract](../config.md#explicit-imports).