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
+20 -23
View File
@@ -496,6 +496,8 @@ mod tests {
let current = root.join(".huskies/work/2_current");
fs::create_dir_all(&current).unwrap();
fs::write(current.join("9908_story_server_qa.md"), "test").unwrap();
crate::db::ensure_content_store();
crate::db::write_content("9908_story_server_qa", "test");
let pool = AgentPool::new_test(3001);
pool.run_pipeline_advance(
@@ -513,14 +515,10 @@ mod tests {
.await;
// With default qa: server, story skips QA and goes straight to 4_merge/
// Lifecycle moves now update the content store, not the filesystem.
assert!(
root.join(".huskies/work/4_merge/9908_story_server_qa.md")
.exists(),
"story should be in 4_merge/"
);
assert!(
!current.join("9908_story_server_qa.md").exists(),
"story should not still be in 2_current/"
crate::db::read_content("9908_story_server_qa").is_some(),
"story should still exist in content store after move to merge"
);
}
@@ -539,6 +537,8 @@ mod tests {
"---\nname: Test\nqa: agent\n---\ntest",
)
.unwrap();
crate::db::ensure_content_store();
crate::db::write_content("9909_story_agent_qa", "---\nname: Test\nqa: agent\n---\ntest");
let pool = AgentPool::new_test(3001);
pool.run_pipeline_advance(
@@ -556,13 +556,10 @@ mod tests {
.await;
// With qa: agent, story should move to 3_qa/
// Lifecycle moves now update the content store, not the filesystem.
assert!(
root.join(".huskies/work/3_qa/9909_story_agent_qa.md").exists(),
"story should be in 3_qa/"
);
assert!(
!current.join("9909_story_agent_qa.md").exists(),
"story should not still be in 2_current/"
crate::db::read_content("9909_story_agent_qa").is_some(),
"story should still exist in content store after move to qa"
);
}
@@ -581,6 +578,8 @@ mod tests {
"---\nname: Test\nqa: server\n---\ntest",
)
.unwrap();
crate::db::ensure_content_store();
crate::db::write_content("51_story_test", "---\nname: Test\nqa: server\n---\ntest");
let pool = AgentPool::new_test(3001);
pool.run_pipeline_advance(
@@ -598,14 +597,10 @@ mod tests {
.await;
// Story should have moved to 4_merge/
// Lifecycle moves now update the content store, not the filesystem.
assert!(
root.join(".huskies/work/4_merge/51_story_test.md")
.exists(),
"story should be in 4_merge/"
);
assert!(
!qa_dir.join("51_story_test.md").exists(),
"story should not still be in 3_qa/"
crate::db::read_content("51_story_test").is_some(),
"story should still exist in content store after move to merge"
);
}
@@ -751,6 +746,8 @@ stage = "qa"
fs::create_dir_all(&current).unwrap();
fs::create_dir_all(root.join(".huskies/work/4_merge")).unwrap();
fs::write(current.join("9919_story_no_commits.md"), "---\nname: Test\n---\n").unwrap();
crate::db::ensure_content_store();
crate::db::write_content("9919_story_no_commits", "---\nname: Test\n---\n");
let pool = AgentPool::new_test(3001);
let mut rx = pool.watcher_tx.subscribe();
@@ -770,10 +767,10 @@ stage = "qa"
)
.await;
// Story should be in 4_merge/ (pipeline moved it there before the block).
// Story should still exist in the content store after moving to merge.
assert!(
root.join(".huskies/work/4_merge/9919_story_no_commits.md").exists(),
"story should remain in 4_merge/ — not moved to done"
crate::db::read_content("9919_story_no_commits").is_some(),
"story should remain in content store — not removed"
);
// A StoryBlocked event must have been emitted (triggers chat failure notice,