huskies: merge 945

This commit is contained in:
dave
2026-05-13 06:05:01 +00:00
parent 3a8894ea8f
commit 9ce5a8df0c
53 changed files with 497 additions and 654 deletions
+1 -14
View File
@@ -183,9 +183,6 @@ pub(super) async fn tool_status(args: &Value, ctx: &AppContext) -> Result<String
if let Some(agent) = view.agent() {
front_matter.insert("agent".to_string(), json!(agent));
}
if view.blocked() {
front_matter.insert("blocked".to_string(), json!(true));
}
if let Some(qa) = view.qa_mode() {
front_matter.insert("qa".to_string(), json!(qa));
}
@@ -216,14 +213,6 @@ pub(super) async fn tool_status(args: &Value, ctx: &AppContext) -> Result<String
front_matter.insert("merge_failure".to_string(), json!(mf));
}
// review_hold is a typed CRDT register (story 932).
if crate::crdt_state::read_item(story_id)
.map(|v| v.review_hold())
.unwrap_or(false)
{
front_matter.insert("review_hold".to_string(), json!(true));
}
// --- AC checklist ---
let ac_items: Vec<Value> = parse_ac_items(&contents)
.into_iter()
@@ -357,7 +346,7 @@ mod tests {
}
#[tokio::test]
async fn tool_status_returns_blocked_retry_count_and_depends_on() {
async fn tool_status_returns_retry_count_and_depends_on() {
let tmp = tempdir().unwrap();
crate::crdt_state::init_for_test();
@@ -369,7 +358,6 @@ mod tests {
story_content,
crate::db::ItemMeta::named("Blocked Story"),
);
crate::crdt_state::set_blocked("9887_story_blocked_test", true);
crate::crdt_state::set_retry_count("9887_story_blocked_test", 3);
crate::crdt_state::set_depends_on("9887_story_blocked_test", &[100, 200]);
@@ -379,7 +367,6 @@ mod tests {
.unwrap();
let parsed: serde_json::Value = serde_json::from_str(&result).unwrap();
assert_eq!(parsed["front_matter"]["blocked"], true);
assert_eq!(parsed["front_matter"]["retry_count"], 3);
let depends_on = parsed["front_matter"]["depends_on"].as_array().unwrap();
assert_eq!(depends_on.len(), 2);