Avoid decoding unrelated profiles
This commit is contained in:
@@ -42,12 +42,14 @@ duplicate detection, and source containment:
|
||||
`internal/profile` loads and validates execution profiles from an
|
||||
operating-system filesystem or an `fs.FS`. A file contains exactly one YAML
|
||||
document and its trimmed YAML `id` is its only selection identity; filenames do
|
||||
not confer authority. Strict selected decoding recognizes the optional
|
||||
`backend` field, trims its value, and requires a model plus at least one
|
||||
non-blank backend or endpoint. File-backed `extra_params` values are validated
|
||||
and defensively copied through the shared bounded JSON-value owner before a
|
||||
profile is published. OpenAI-compatible reserved-field policy remains with the
|
||||
model-client and backend-registry owners.
|
||||
not confer authority. Each point lookup reads discovered files once for their
|
||||
metadata and reuses the selected file's bytes for strict decoding; unrelated
|
||||
profiles are not fully decoded. Strict selected decoding recognizes the
|
||||
optional `backend` field, trims its value, and requires a model plus at least
|
||||
one non-blank backend or endpoint. File-backed `extra_params` values are
|
||||
validated and defensively copied through the shared bounded JSON-value owner
|
||||
before a profile is published. OpenAI-compatible reserved-field policy remains
|
||||
with the model-client and backend-registry owners.
|
||||
|
||||
The overlay repository consults the next repository only when the
|
||||
higher-precedence repository reports that a profile is absent. A reliably
|
||||
|
||||
Reference in New Issue
Block a user