//! Provenance tagging for a resolved config value. Captures *which layer* of
//! the precedence stack produced each field so introspection (`--help`-style
//! diagnostics, telemetry) can explain why a value is what it is.
//!
//! Precedence — highest wins: `Mcp` > `Cli` > `Env` > `File` > `Default`.
use ;
/// Origin of a resolved config field. Internal-only — never appears in the
/// JSON Schema (`JsonSchema` deliberately not derived).
/// Dotted-path → source map. Keys look like `"documents.reranker.preset"`.
/// `BTreeMap` keeps iteration order deterministic for snapshot tests.
pub type ProvenanceMap = BTreeMap;