Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
4e888e7
fix(agent_loop): make truncated-empty recovery clock-aware, same-cap-…
sanil-23 Oct 8, 2026
7de3d4a
Merge main and resolve recovery clock conflict
senamakel Oct 8, 2026
be0bfd0
fix(agent_loop): allow clock-only nudge to halve the retry cap
senamakel Oct 8, 2026
99fe331
test(agent_loop): cover a third blank reply in the recovery pop case
senamakel Oct 8, 2026
15d4572
chore: files changed crates/tinyagents-harness/src/agent_loop/respons…
senamakel Oct 8, 2026
e27804c
test(agent-loop): cover nudge cap clamping against the clock budget
senamakel Oct 8, 2026
53ea7a1
style(agent_loop): reflow policy_nudge_fits expression
senamakel Oct 8, 2026
6825fd2
test(agent_loop): widen remaining time in nudge cap test
senamakel Oct 8, 2026
af82efd
test(agent_loop): retune truncated retry clock test
senamakel Oct 8, 2026
3515f3e
fix(agent_loop): correct nudge cap affordability check
senamakel Oct 8, 2026
ee3cd6b
test(agent_loop): set truncated_empty_nudges in wall clock test
senamakel Oct 8, 2026
81cfe8d
style(turn-recovery): reflow affordable token calculation
senamakel Oct 8, 2026
31416ff
fix(agent_loop): allow clock-bounded nudges for uncapped truncated calls
senamakel Oct 8, 2026
0623bd0
fix(agent_loop): cap empty nudges when retry was skipped for clock
senamakel Oct 8, 2026
a8c7289
fix(agent_loop): use fits_clock for truncated retry skip check
senamakel Oct 8, 2026
f3f0137
fix(agent_loop): scale retry clock estimate by candidate cap
senamakel Oct 8, 2026
0749cb9
fix(agent_loop): cap the truncated-empty nudge retry at the ceiling
senamakel Oct 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/tinyagents-harness/src/agent_loop/lifecycle_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ async fn a_recovery_pop_is_retracted_and_the_mirror_stays_exact() {
let model_script = vec![
truncated_empty(2048),
truncated_empty(4096),
truncated_empty(8192),
tool_turn(&["c1"]),
response(vec![], "done"),
];
Expand All @@ -358,7 +359,7 @@ async fn a_recovery_pop_is_retracted_and_the_mirror_stays_exact() {
.iter()
.filter(|e| matches!(e, AgentEvent::MessageRetracted { index: 1 }))
.count();
assert_eq!(retractions, 2, "both blank replies were dropped");
assert_eq!(retractions, 3, "all blank replies were dropped");
// The recovery nudge is announced as an ordinary append.
assert!(
events.iter().any(|e| matches!(
Expand Down
Loading
Loading