Skip to main content

BrainReviewView

Trait BrainReviewView 

Source
pub trait BrainReviewView: Send + Sync {
    // Required methods
    fn all_decisions(&self) -> Vec<DecisionSummary>;
    fn review_queue(&self) -> Vec<ReviewItemSummary>;
}
Expand description

Read access to the Brain Review surface — the full decision log plus the review-queue projection. Separate trait from BrainView because:

  • The Brain Review screen is the only TUI consumer; the dashboard’s status bar only needs BrainView::recent_decisions(n).
  • all_decisions() returns the whole log (can be thousands of records); it’s a heavier surface than the lightweight BrainView methods and worth gating behind its own trait so callers don’t accidentally invoke it.

Required Methods§

Source

fn all_decisions(&self) -> Vec<DecisionSummary>

Every decision on disk, newest first. Used by the Brain Review screen to render the full history list.

Source

fn review_queue(&self) -> Vec<ReviewItemSummary>

Priority-ordered review queue. Built from all_decisions() plus the brain’s queue-building heuristics (counterfactual hits, Critical-tier safety cases, high-confidence misses).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§