Hmbown/CodeWhale · error · anyhow::Error
memory edits require non-empty evidence
Error message
memory edits require non-empty evidence
What it means
Error "memory edits require non-empty evidence" thrown in Hmbown/CodeWhale.
Source
Thrown at crates/tui/src/native_memory.rs:876
several.len()
),
}
}
/// The note body of a Markdown bullet, if the line is one.
fn bullet_text(line: &str) -> Option<&str> {
let trimmed = line.trim();
trimmed
.strip_prefix("- ")
.or_else(|| trimmed.strip_prefix("* "))
.map(str::trim)
}
/// Evidence is required on every in-place edit and held to the same bounds
/// as a note. An unexplained rewrite of durable context is the thing the
/// journal exists to prevent.
fn normalize_evidence(evidence: &str) -> Result<String> {
normalize_note(evidence).map_err(|_| anyhow!("memory edits require non-empty evidence"))
}
fn normalize_note(note: &str) -> Result<String> {
let note = note.replace("\r\n", "\n").replace('\r', "\n");
let note = note
.lines()
.map(str::trim)
.filter(|line| !line.is_empty())
.collect::<Vec<_>>()
.join(" ");
if note.is_empty() {
bail!("memory note is empty");
}
if note.len() > MAX_NOTE_BYTES {
bail!("memory note exceeds {MAX_NOTE_BYTES} bytes");
}
Ok(note.trim_start_matches('-').trim().to_string())
}View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at crates/tui/src/native_memory.rs:876 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/15c06b542f9e17da.
Report an issue: GitHub.