From 6df2a684ef7a0818970aeffb75b9d1f689dcfff7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 10:20:39 +0200 Subject: [PATCH] one_persona_per_mind test: a planted row is unreadable on status and door alike Co-Authored-By: Claude Opus 5.5 --- crates/huginn-mind/src/persona.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/huginn-mind/src/persona.rs b/crates/huginn-mind/src/persona.rs index 9f92455..2742120 100644 --- a/crates/huginn-mind/src/persona.rs +++ b/crates/huginn-mind/src/persona.rs @@ -516,12 +516,13 @@ mod tests { // A store written before this type existed opens unchanged. assert!(Mind::open_with(planted(base()), &yggdrasil).is_ok()); - // One persona opens and reads back. + // One persona opens; a planted row has no writing receipt, so the door and the status both call it unreadable. let mut with_one = base(); with_one.push(entry(INSTANCE, persona(INSTANCE, T1))); let mind = Mind::open_with(planted(with_one.clone()), &yggdrasil).unwrap(); assert_eq!(mind.envelopes().len(), 3); - assert_eq!(persona_in_status(&mind), crate::wire::PersonaStatus::Stored { updated_at: T1.into() }); + assert_eq!(persona_in_status(&mind), crate::wire::PersonaStatus::Unreadable); + assert!(mind.persona().is_err()); // Two are no mind's. with_one.push(entry("second", persona(INSTANCE, T2)));