Skip to main content

ValidationWarning

Struct ValidationWarning 

pub struct ValidationWarning {
    pub code: String,
    pub message: String,
    pub path: String,
}
Expand description

One non-fatal validation issue surfaced after a successful save.

Stable codes (extend as new warnings are added):

  • codex_cli_extra_args_security_boundary: codex_cli.extra_args contains a known Codex CLI argument that can change sandbox, approval, policy, workspace, feature, trust, or executable-integration boundaries. The argument remains allowed.
  • memory_semantic_search_without_embedder: memory.search_mode requests vector search on sqlite memory, but no effective embedder is configured.
  • whatsapp_chat_policy_inert: a WhatsApp Web self_chat_mode is set but the transport only consults it under mode = "personal", so it currently has no effect. dm_policy and group_policy apply under both modes and are never reported under this code.
  • whatsapp_empty_group_list_serves_no_group: allowed_groups is empty and group_policy is "allowlist", so the channel answers no group where an empty list used to admit every group at the identity gate. A migration notice about lost capability, not a fail-open alarm. "all" admits every group before and after, and "ignore" rejects every group before and after under BOTH modes, so neither is reported.
  • memory_config_knob_inert: a [memory] knob is set to a non-default value but has no runtime consumer yet, so it currently has no effect (see validate_memory_semantics in schema.rs for the current list).
  • peer_group_channel_dangling: a peer_groups.<name>.channel dotted alias (<type>.<alias>) does not resolve to any configured [channels.<type>.<alias>] block — typically a typo that silently authorizes nobody. Config::validate() already hard-errors this exact condition (see classify_peer_group_channel_ref in schema.rs); this warning is the non-fatal surface for callers (channel doctor, config-load tracing) that need the diagnostic even when a config that failed validate() is still allowed to boot.
  • context_compression_unsupported: a runtime_profiles.<alias>.context_compression knob (enabled = true, or any other field set to a non-default value) has no runtime consumer — the context compressor was removed — so it currently has no effect. One warning per non-default field (see collect_context_compression_ignored_warnings in schema.rs).
  • proxy_conflicts_with_dns_pinned_tools: the configured proxy scope selects http_request and/or web_fetch, whose validated DNS answers require direct transport and therefore make the selected tool fail.
  • verifiable_intent_tool_withheld: verifiable_intent.enabled is set, but the vi_verify tool is withheld from the model-visible registry until a credential chain verifier exists, so enabling the section does not enable credential verification. The runtime also traces this at config load, and that trace has no sink under observability.log_persistence = "none"; this warning is the channel that survives, since zeroclaw doctor and the config API read the structured list rather than the log.

Fields§

§code: String

Stable machine-readable identifier for the warning class.

§message: String

Stable English fallback for logs and consumers without a localization catalog. User-facing surfaces should localize from code and use this only for unknown codes.

§path: String

Dotted property path the warning concerns (e.g. "agents.researcher.model_provider").

Implementations§

Source§

impl ValidationWarning

Source

pub fn new( code: impl Into<String>, message: impl Into<String>, path: impl Into<String>, ) -> Self

Trait Implementations§

Source§

impl Clone for ValidationWarning

Source§

fn clone(&self) -> ValidationWarning

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ValidationWarning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ValidationWarning

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ValidationWarning

Source§

impl JsonSchema for ValidationWarning

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for ValidationWarning

Source§

fn eq(&self, other: &ValidationWarning) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · §

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ValidationWarning

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ValidationWarning

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more