a local override (via the injected readOverride) — wins unconditionally
the LangSmith hub (when enabled) → 3. the committed snapshot fallback
readOverride is injected so this stays pure (no filesystem) — the consuming
package supplies the fs read. Checking the override FIRST means local dev never
depends on LANGSMITH_PROMPTS: the override always wins locally, while deployed
envs (where there is no override) keep the hub-or-snapshot behavior.
Model config follows the same precedence (override → hub → committed.model).
Resolve a prompt with override-first precedence:
readOverride) — wins unconditionallyreadOverrideis injected so this stays pure (no filesystem) — the consuming package supplies the fs read. Checking the override FIRST means local dev never depends onLANGSMITH_PROMPTS: the override always wins locally, while deployed envs (where there is no override) keep the hub-or-snapshot behavior.Model config follows the same precedence (override → hub → committed.model).