pub enum FeedbackVerdict {
Useful,
Noisy,
Missing,
WrongLayer,
AlreadyCovered,
DiagnosticOnly,
}Expand description
Verdict an agent or user assigns to a search result.
Variants§
Useful
This result was relevant and useful for the query.
Noisy
This result appeared but was unrelated to the query intent.
Missing
This symbol was missing from results but should have appeared.
WrongLayer
This symbol appeared in the wrong architectural layer context.
AlreadyCovered
Plan C t-005: this symbol’s behavior is already covered by another
symbol. Acts as suppression like Noisy; callers should also write
a Mapping ledger entry pointing at the covering symbol so future
queries see the connection durably.
DiagnosticOnly
Plan C t-005: this symbol is a diagnostic/instrumentation test, not
production validation. Acts as suppression like Noisy; callers
should also write a Classification (role = diagnostic-test)
ledger entry so the t-003 decisions-as-constraints pipeline can
demote it on future queries.
Implementations§
Source§impl FeedbackVerdict
impl FeedbackVerdict
pub fn as_str(self) -> &'static str
Sourcepub fn from_str(s: &str) -> Option<Self>
pub fn from_str(s: &str) -> Option<Self>
Parse from the string produced by [as_str]. Returns None on
unrecognized values so callers can decide on a fallback. Accepts
underscores too (already_covered / diagnostic_only) for
forgiveness when agents type from memory.
Sourcepub fn is_suppression(self) -> bool
pub fn is_suppression(self) -> bool
Plan C t-005: returns true when this verdict should suppress the
symbol from ranked results — used by apply_feedback_adjustments
to fold AlreadyCovered + DiagnosticOnly into the existing
NEG_INFINITY suppression path.
Trait Implementations§
Source§impl Clone for FeedbackVerdict
impl Clone for FeedbackVerdict
impl Copy for FeedbackVerdict
Source§impl Debug for FeedbackVerdict
impl Debug for FeedbackVerdict
Source§impl<'de> Deserialize<'de> for FeedbackVerdict
impl<'de> Deserialize<'de> for FeedbackVerdict
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for FeedbackVerdict
Source§impl PartialEq for FeedbackVerdict
impl PartialEq for FeedbackVerdict
Source§impl Serialize for FeedbackVerdict
impl Serialize for FeedbackVerdict
impl StructuralPartialEq for FeedbackVerdict
Auto Trait Implementations§
impl Freeze for FeedbackVerdict
impl RefUnwindSafe for FeedbackVerdict
impl Send for FeedbackVerdict
impl Sync for FeedbackVerdict
impl Unpin for FeedbackVerdict
impl UnsafeUnpin for FeedbackVerdict
impl UnwindSafe for FeedbackVerdict
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.