pub struct LedgerEntry {Show 17 fields
pub commit_sha: String,
pub verdict: Verdict,
pub disposition: Disposition,
pub claim: String,
pub evidence: Vec<String>,
pub reviewer: ReviewerConfig,
pub summary: String,
pub findings: Vec<String>,
pub structured_findings: Vec<StructuredFinding>,
pub next_steps: Vec<String>,
pub memory_skill_classification: MemorySkillClassification,
pub raw_reviewer_output: String,
pub resolution: Option<Resolution>,
pub petition_attempts: u32,
pub petition_for: Option<String>,
pub created_at_unix: u64,
pub updated_at_unix: u64,
}Fields§
§commit_sha: String§verdict: Verdict§disposition: Disposition§claim: String§evidence: Vec<String>§reviewer: ReviewerConfig§summary: String§findings: Vec<String>§structured_findings: Vec<StructuredFinding>§next_steps: Vec<String>§memory_skill_classification: MemorySkillClassification§raw_reviewer_output: String§resolution: Option<Resolution>§petition_attempts: u32Number of petition cycles spent attempting to resolve this rejection.
Incremented every time truth-mirror resolve --fixed-by runs, regardless of
outcome. Backward-compatible: records written before this field existed
deserialize as 0 via the #[serde(default)].
petition_for: Option<String>When set, this entry is a petition review for the listed original rejection
SHA, not the rejection itself. Petition reviews are normal verdicts; the
petition plumbing uses this to decide whether to transition the original
rejection to resolved/needs-human based on the verdict.
created_at_unix: u64§updated_at_unix: u64Implementations§
Source§impl LedgerEntry
impl LedgerEntry
pub fn new( commit_sha: impl Into<String>, verdict: Verdict, claim: impl Into<String>, evidence: Vec<String>, reviewer: ReviewerConfig, findings: Vec<String>, ) -> Self
pub fn new_at( commit_sha: impl Into<String>, verdict: Verdict, claim: impl Into<String>, evidence: Vec<String>, reviewer: ReviewerConfig, findings: Vec<String>, timestamp: u64, ) -> Self
pub fn with_structured_review( self, summary: impl Into<String>, structured_findings: Vec<StructuredFinding>, next_steps: Vec<String>, raw_reviewer_output: impl Into<String>, ) -> Self
pub fn with_memory_skill_classification( self, classification: MemorySkillClassification, ) -> Self
pub fn is_unresolved_rejection(&self) -> bool
Sourcepub fn is_open_flag(&self) -> bool
pub fn is_open_flag(&self) -> bool
Whether this entry is a Flag verdict that has been recorded but not yet
acted on. FLAGs accumulate silently in the ledger; the truth-mirror debt
subcommand lists them for the human. They never block reinject or push.
Sourcepub fn is_needs_human(&self) -> bool
pub fn is_needs_human(&self) -> bool
Whether this entry marks a rejection that escalated to needs-human
after exhausting the bounded petition attempts.
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 more