codetether-agent 4.7.0-a-002.2

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
//! Attempt-to-context-retention retry schedule.

const FORCE_KEEP_LAST_RETRIES: [usize; 3] = [6, 3, 1];

pub(super) fn keep_last_for_attempt(attempt: usize) -> Option<usize> {
    FORCE_KEEP_LAST_RETRIES
        .get(attempt.saturating_sub(1))
        .copied()
}