From 5f3defb2dae043d6171ebdbb6b0f41a15a596915 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Thu, 3 Sep 2026 13:45:14 -0700 Subject: [PATCH] context test: derive the snapshot identity from the verb's own resolver Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Vau2X53xGTjjTCXWMVBoNY --- crates/context/src/critique_storage.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/context/src/critique_storage.rs b/crates/context/src/critique_storage.rs index c40b617f5..3b4bb4ea7 100644 --- a/crates/context/src/critique_storage.rs +++ b/crates/context/src/critique_storage.rs @@ -752,8 +752,9 @@ mod tests_660 { let dir = jsp::join(&[&cwd, ".impeccable", "critique"]); std::fs::create_dir_all(&dir).unwrap(); let name = "2026-05-12T18-30-00Z__app-tsx.md"; - // Joined the way the verb resolves it, so the separators match on Windows. - let identity = format!("file:{}", jsp::join(&[&cwd, "App.tsx"])); + // The identity exactly as the verb resolves it for this target from this + // cwd, so the test holds on every platform's path semantics. + let identity = resolve_target_identity("App.tsx", &cwd).unwrap(); let body = format!("---\ntarget_identity: \"{}\"\nslug: app-tsx\n---\n# Critique\n", identity); std::fs::write(jsp::join(&[&dir, name]), &body).unwrap();