huskies: merge 951

This commit is contained in:
dave
2026-05-13 04:28:30 +00:00
parent c5abc44a63
commit 2f50e2198b
12 changed files with 178 additions and 218 deletions
@@ -274,10 +274,10 @@ max_turns = 10
let item = crate::crdt_state::read_item(story_id)
.expect("story must be in CRDT after watchdog termination");
assert_eq!(
item.stage().as_dir(),
item.stage().dir_name(),
"blocked",
"story stage must be 2_blocked after limit termination with max_retries=1 — got: {}",
item.stage().as_dir()
item.stage().dir_name()
);
// Sanity: the agent itself is also Failed with the right reason.
@@ -416,7 +416,7 @@ max_turns = 10
let item = crate::crdt_state::read_item(story_id)
.expect("story must be in CRDT after per-session overrun");
assert_eq!(
item.stage().as_dir(),
item.stage().dir_name(),
"blocked",
"story stage must be 2_blocked after per-session overrun with max_retries=1"
);
@@ -478,7 +478,7 @@ max_turns = 10
"after session 1, retry_count should be 1 in CRDT"
);
assert_ne!(
item.stage().as_dir(),
item.stage().dir_name(),
"blocked",
"story should NOT be blocked after session 1"
);
@@ -498,7 +498,7 @@ max_turns = 10
"after session 2, retry_count should be 2 in CRDT"
);
assert_ne!(
item.stage().as_dir(),
item.stage().dir_name(),
"blocked",
"story should NOT be blocked after session 2"
);
@@ -513,10 +513,10 @@ max_turns = 10
let item = crate::crdt_state::read_item(story_id).expect("story must be in CRDT");
assert_eq!(
item.stage().as_dir(),
item.stage().dir_name(),
"blocked",
"story must be blocked after session 3 (retry_count=3 >= max_retries=3) — got: {}",
item.stage().as_dir()
item.stage().dir_name()
);
// retry_count resets to 0 on stage transition (Bug 780) — the fact
// that the story reached 2_blocked proves the retry limit was hit.