Contain prompt content paths within source roots
This commit is contained in:
@@ -14,7 +14,13 @@ validation modes, built-in catalog, and source precedence.
|
||||
|
||||
`internal/promptdef` discovers YAML deterministically, decodes and validates
|
||||
definitions, selects an ID and optional version, and resolves file-backed
|
||||
message content within the selected operating-system or `fs.FS` source.
|
||||
message content through an explicit source-root abstraction. Operating-system
|
||||
sources enforce containment against canonical roots and targets so symlinks
|
||||
cannot escape. Injected `fs.FS` sources enforce containment in their clean
|
||||
relative path namespace. A single-file source uses the selected prompt file's
|
||||
containing directory as its root. Every content path must be relative and is
|
||||
opened from its exact parsed text after a separate blank check; contained
|
||||
parent components and whitespace-bearing names remain valid.
|
||||
|
||||
Exact prompt inspection performs one point-in-time lookup through that same
|
||||
repository and validates referenced message content before returning declared
|
||||
|
||||
Reference in New Issue
Block a user