pub struct LedgerEntry {
pub lesson_id: String,
pub case_id: String,
pub failure_prompt: String,
pub module_path: String,
pub rule_id: String,
pub resolved_task: String,
pub modifier: String,
pub benchmark_suite: String,
pub benchmark_passed: usize,
pub reviewer: String,
}Expand description
One promoted lesson — the “approved learning record” issue #558 calls for.
It flattens the parts of a green, approved RepairCase a future lookup needs:
the failure it answers, the source it maps onto, the adopted rule, and the human
who approved it. Deterministic: every field comes from the case and approval.
Fields§
§lesson_id: StringStable content-addressed id of the promoted lesson.
case_id: StringThe originating repair-case id (provenance back to the reasoning loop).
failure_prompt: StringThe original input the system could not answer — the lookup key.
module_path: StringThe source module the failure maps onto.
rule_id: StringThe adopted learned rule id.
resolved_task: StringThe program-plan task the learned rule resolves the failure to.
modifier: StringThe modifier that triggers the learned rule.
benchmark_suite: StringThe benchmark suite that gated adoption.
benchmark_passed: usizePassing case count from the gate run that green-lit adoption.
reviewer: StringThe human who approved promotion.
Implementations§
Trait Implementations§
Source§impl Clone for LedgerEntry
impl Clone for LedgerEntry
Source§fn clone(&self) -> LedgerEntry
fn clone(&self) -> LedgerEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LedgerEntry
impl Debug for LedgerEntry
impl Eq for LedgerEntry
Source§impl PartialEq for LedgerEntry
impl PartialEq for LedgerEntry
impl StructuralPartialEq for LedgerEntry
Auto Trait Implementations§
impl Freeze for LedgerEntry
impl RefUnwindSafe for LedgerEntry
impl Send for LedgerEntry
impl Sync for LedgerEntry
impl Unpin for LedgerEntry
impl UnsafeUnpin for LedgerEntry
impl UnwindSafe for LedgerEntry
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,
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.