-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fix(prompt): give a delegated agent the memory write rule, and time the recap fold #6203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4b3af35
3a7a764
155eb17
089bb23
de8a417
f4aba52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,3 +59,28 @@ fn segment_membership_falls_back_to_episodic_id() { | |
| assert!(entry(None, Some(25), 101.0).is_in_segment(&segment)); | ||
| assert!(!entry(None, Some(26), 100.001).is_in_segment(&segment)); | ||
| } | ||
|
|
||
| /// The recap deadline clears two of `tinymemory`'s retry attempts. | ||
| /// | ||
| /// Not a behavioural test — an arithmetic one, and it exists because the two | ||
| /// numbers live in different repositories and nothing else would catch them | ||
| /// drifting apart. `tinymemory`'s retry stops starting further attempts once | ||
| /// ~20 s have elapsed, so its realistic worst case is two folds back to back. | ||
| /// A `RECAP_DEADLINE` under that would cut the chain before the second attempt | ||
| /// and silently turn the retry into dead code — the failure this pins. | ||
| #[test] | ||
| fn the_recap_deadline_leaves_room_for_the_drivers_retry() { | ||
| const TINYMEMORY_RETRY_CEILING: Duration = Duration::from_secs(20); | ||
|
|
||
| assert!( | ||
| RECAP_DEADLINE > TINYMEMORY_RETRY_CEILING * 2, | ||
| "RECAP_DEADLINE ({RECAP_DEADLINE:?}) must clear two attempts of the \ | ||
| driver's {TINYMEMORY_RETRY_CEILING:?} retry window, or the retry can \ | ||
| never fire a second attempt" | ||
| ); | ||
| assert!( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcode the constant reference in the upper-bound assertion The test uses [RULE] brittle-assertion · |
||
| RECAP_DEADLINE < Duration::from_secs(600), | ||
| "RECAP_DEADLINE must stay well under tinyinference's 600s request \ | ||
| default, which is the bound it exists to replace" | ||
| ); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.