fix(compaction): make overflow tuning configurable#80889
Conversation
|
Codex review: found issues before merge. Reviewed May 28, 2026, 12:55 AM ET / 04:55 UTC. Summary PR surface: Source +47, Tests +64. Total +111 across 11 files. Reproducibility: yes. for the source condition: current main still hardcodes max overflow attempts to 3 and the tool-result guard ratio to 0.9. I did not reproduce the reported long-running paid-provider overflow loop, but the missing config knobs are clear from source inspection. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land a rebased version only after maintainers accept the two new Do we have a high-confidence way to reproduce the issue? Yes for the source condition: current main still hardcodes max overflow attempts to 3 and the tool-result guard ratio to 0.9. I did not reproduce the reported long-running paid-provider overflow loop, but the missing config knobs are clear from source inspection. Is this the best way to solve the issue? Unclear until maintainers approve the new public config contract. The implementation shape is narrow and preserves defaults, but it must target the current embedded runner path and add public docs before it is the best merge path. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against f7c32fc8befd. Label changesLabel justifications:
Evidence reviewedPR surface: Source +47, Tests +64. Total +111 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper PR egg: ✨ hatched 🌱 uncommon Brave Diff Drake. Rarity: 🌱 uncommon. Trait: purrs at green checks. DetailsShare on X: post this hatch
About:
|
Summary
agents.defaults.compaction.preemptiveOverflowRatiofor Pi tool-loop preemptive overflow threshold tuningagents.defaults.compaction.maxOverflowAttemptsfor Pi overflow compaction retry tuning0.9ratio,3overflow retries) and document schema labels/help textFixes #80638
Fixes #80639
Real behavior proof
fix/80638-80639-compaction-knobs.0.72,1) are parsed and resolved at runtime; default behavior remains0.9and3when unset.Validation
node scripts/test-projects.mjs src/agents/pi-embedded-runner/compaction-runtime-config.test.ts src/config/config.compaction-settings.test.ts src/config/schema.help.quality.test.tspnpm -s config:schema:checkpnpm -s check:test-types