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 lightweightBrainViewmethods and worth gating behind its own trait so callers don’t accidentally invoke it.
Required Methods§
Sourcefn all_decisions(&self) -> Vec<DecisionSummary>
fn all_decisions(&self) -> Vec<DecisionSummary>
Every decision on disk, newest first. Used by the Brain Review screen to render the full history list.
Sourcefn review_queue(&self) -> Vec<ReviewItemSummary>
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".