small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

test(model_loop): model the provider retry ladder in process

`retry_stream` is public and takes its backoff `sleep`, so a test can script each attempt's error, the salvage, and the retry notice, and record every effect. retry_stream_test compares the whole trace with a model of the documented ladder (eight attempts, waits doubling from 250 ms, one more go for an accepted timeout across salvage, resume on kept output, no sleep after a cancelled notice). Replaces these end-to-end cases, which waited out scaled socket timeouts and backoff: - provider_timeout_test.test_salvaging_a_broken_stream_keeps_the_accepted_timeout_budget (silent budget lost across salvage) - provider_timeout_test.test_a_provider_that_never_answers_gets_the_whole_retry_ladder (attempt count, waits) - requests_test.test_a_failing_gateway_is_retried_with_doubling_waits (503 retried, waits double) provider_timeout keeps the real-socket case that classifies silence after headers as accepted and records both rows.


Author aly.codes
Date Commit Parent 7f7a7250
+281 -85
4 changed files
+281 -85
4 changed files