huskies: merge 517_story_remove_filesystem_shadow_fallback_paths_from_lifecycle_rs_finish_the_migration_to_crdt_only

This commit is contained in:
dave
2026-04-10 12:56:16 +00:00
parent fe405e81c6
commit 31388da609
12 changed files with 171 additions and 170 deletions
+11 -10
View File
@@ -708,7 +708,10 @@ stage = "coder"
"#,
)
.unwrap();
std::fs::write(backlog.join("story-3.md"), "---\nname: Story 3\n---\n").unwrap();
let story_content = "---\nname: Story 3\n---\n";
std::fs::write(backlog.join("story-3.md"), story_content).unwrap();
crate::db::ensure_content_store();
crate::db::write_content("story-3", story_content);
let pool = AgentPool::new_test(3001);
pool.inject_test_agent("story-1", "coder-1", AgentStatus::Running);
@@ -726,15 +729,13 @@ stage = "coder"
"expected story-to-current message, got: {err}"
);
let current_path = sk.join("work/2_current/story-3.md");
// The lifecycle function updates the content store (not the filesystem),
// so verify the move via the DB.
let content = crate::db::read_content("story-3")
.expect("story-3 should be in content store after move to current");
assert!(
current_path.exists(),
"story should be in 2_current/ after busy error, but was not"
);
let backlog_path = backlog.join("story-3.md");
assert!(
!backlog_path.exists(),
"story should no longer be in 1_backlog/"
content.contains("name: Story 3"),
"story-3 content should be preserved after move"
);
}
@@ -1542,7 +1543,7 @@ stage = "coder"
// left a stale entry for "368_story_test" in the global CRDT.
std::fs::write(current.join("368_story_test.md"), story_content).unwrap();
crate::db::ensure_content_store();
crate::db::write_item_with_content("368_story_test", "2_current", story_content);
crate::db::write_content("368_story_test", story_content);
let pool = AgentPool::new_test(3011);
// Preferred agent is busy — should NOT fall back to coder-sonnet.