Follow-ups on top of the cherry-picked #27748 mechanism: - move the cap constant to module level with full rationale comment (class attribute aliases it so subclasses/tests can override) - bound the iterative-update path too: the PREVIOUS SUMMARY block is passed through _bound_summary_input so a pathological rehydrated handoff cannot blow up the prompt (previous summary + new turns each capped) - extra regression tests: byte-identical small-input passthrough (identity), direct bound+marker unit check, bound-after-per-message- truncation shape (hundreds of under-_CONTENT_MAX turns), iterative path bounded, marker vs classify_summary_content non-collision - contributor email mapping for @robgfl45
2 lines
9 B
Plaintext
2 lines
9 B
Plaintext
robgfl45
|