Enumerate prompt input and variable dependencies

This commit is contained in:
2026-10-08 20:25:17 +00:00
parent bf472dad8a
commit cc0b6183bf
6 changed files with 758 additions and 3 deletions

View File

@@ -57,6 +57,15 @@ captured presence state. Runtime rendering still checks request variables and
input helpers. The [prompt adapter tests](../../internal/configuration/prompts_test.go)
cover resource origins, context containment, capture, and selection.
The `internal/prompt` requirement walker uses the captured parse trees and
declaration metadata without executing templates or reading artifacts. It
collects literal `input` names, direct root caller keys, and literal-key
`index` lookups. Branch-body references are conservatively conditional until
condition analysis is applied; invoked named templates are scanned
conservatively, and dependency-bearing range scopes make discovery incomplete.
Uncalled definitions and bypassed session templates are not traversed. This
internal walker does not change rendering behavior.
## Profiles And Built-Ins
`internal/catalog` selects the released keyed OpenRouter and Rakestrawhome