fix: raise BotTurnTracker hard cap to 1000#855
Conversation
OpenAB PR ScreeningThis is auto-generated by the OpenAB project-screening flow for context collection and reviewer handoff.
Screening reportscreened PR #855 and moved project item `PVTI_lADOEFbZWM4BUUALzgtKgBM` from `Incoming` to `PR-Screening`.GitHub comment: #855 (comment) IntentPR #855 fixes a mismatch between documented bot-turn limits and runtime enforcement. FeatFix. Raises Who It ServesDiscord and Slack users running high-turn bot-to-bot conversations; also deployers and maintainers. Rewritten PromptUpdate OpenAB’s shared Merge PitchLow-risk correctness fix with a tiny diff. Main concern is runaway bot loops, but the documented hard cap remains bounded at 1000. Best-Practice ComparisonOpenClaw/Hermes scheduling patterns do not apply. This is about keeping docs, config, and runtime enforcement aligned. Implementation OptionsConservative: merge as written. Comparison Table
RecommendationBalanced path if boundary coverage is easy; otherwise conservative merge is acceptable. |
|
LGTM ✅ — One-line fix aligning Review Details1. What problem does it solve?PR #741 raised the documented hard cap to 1000 and updated 2. How does it solve it?Single constant change: 3. What was considered?
4. Is this the best approach?Yes. Minimal, correct, well-tested. The regression test Traffic Light🟢 INFO — Clean one-liner with a focused regression test. Issue #843 confirmed by maintainer (CHC-Agent). No risk. |
chaodu-agent
left a comment
There was a problem hiding this comment.
Approved — trivial fix aligning constant with documented intent. Regression test included.
What problem does this solve?
Closes #843
max_bot_turnsis documented as a soft limit with a compiled-in hard cap of 1000, but the sharedBotTurnTrackerstill enforcedHARD_BOT_TURN_LIMIT = 100. As a result, bot-to-bot conversations configured withmax_bot_turns = 1000still stopped at 100 turns.Discord Discussion URL: https://discord.com/channels/1491295327620169908/1491365158868619404/1506223007792627723 — issue #843 contains the reproduction and maintainer confirmation.
At a Glance
Prior Art & Industry Research
Not applicable — trivial bug fix aligning the shared enforcement constant with existing documentation and PR #741 intent.
Proposed Solution
HARD_BOT_TURN_LIMITinsrc/bot_turns.rsfrom100to1000.Why this approach?
The docs already state that the compiled-in hard cap is 1000. Updating the shared tracker constant fixes the runtime behavior at the actual enforcement point while keeping the existing soft-limit behavior unchanged.
Alternatives Considered
Validation
Rust changes:
cargo checkpassescargo testpasses (including new tests)cargo clippyclean