Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 26, 2026, 12:51 AM ET / 04:51 UTC. Summary PR surface: Source +10, Tests +84, Docs +5. Total +99 across 12 files. Reproducibility: yes. at source level: current main and 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Preserve the shipped implicit-floor behavior by default unless maintainers explicitly approve the semantic change; if approved, add runtime proof that prints the effective reserve and reconcile the overlapping compaction PRs before merge. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main and Is this the best way to solve the issue? No, not yet: the implementation is plausible and covers sibling paths, but the existing documented solution is Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 751a6c23f098. Label changesLabel justifications:
Evidence reviewedPR surface: Source +10, Tests +84, Docs +5. Total +99 across 12 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
|
e01778c to
a508b20
Compare
a508b20 to
0be3fbd
Compare
|
Follow-up for the latest ClawSweeper finding: the Codex native startup binding path has now been aligned too. Latest head: Changes added after the previous review:
Re-run verification on this head: All of the above passed locally. |
0be3fbd to
286494f
Compare
|
Stale label cleanup note:
Current head: Observed checks on this head:
I attempted to remove Please remove the stale |
|
Maintainer decision: preserve the shipped implicit When #100621 landed the actual small-context fix as The supported alternative is to set Thank you @nblue1-ui for the careful cross-surface implementation and tests. |
Summary
agents.defaults.compaction.reserveTokenswhenreserveTokensFlooris omitted.reserveTokensFlooras a lower bound only when it is explicitly configured.Real behavior proof
reserveTokens: 8192configured, but hidden defaultreserveTokensFloor: 20000behavior could still be applied in runtime and Codex budget paths. That made the configured reserve misleading and could shrink usable prompt budget unexpectedly.[email protected], with equivalent dist patches applied before preparing this source PR. Source branch head for this PR proof:286494ff8278da50f5669c50fb23043177fbfd3c.node -p "require('/home/nblue/.npm-global/lib/node_modules/openclaw/package.json').version",jq '.agents.defaults.compaction | {reserveTokens, reserveTokensFloor}' /home/nblue/.openclaw/openclaw.json, andrg -n "DEFAULT_RESERVE_TOKENS|resolveCompactionSettings|reserveTokensFloor" /home/nblue/.npm-global/lib/node_modules/openclaw/dist/agent-settings-*.js /home/nblue/.npm-global/lib/node_modules/openclaw/dist/agent-runner.runtime-*.js /home/nblue/.npm-global/lib/node_modules/openclaw/dist/extensions/memory-core/index.js /home/nblue/.npm-global/lib/node_modules/openclaw/dist/thread-lifecycle-*.js.reserveTokens: 8192with no configured floor is no longer forced through the hidden20000floor in the patched runtime paths. The source PR now also covers the Codex native startup binding path that ClawSweeper flagged after the first pass.max(reserveTokens, default reserveTokensFloor)in several paths, soreserveTokens: 8192could become an effective 20000 reserve when the floor was omitted.Tests and validation
Focused commands run locally in
/home/nblue/.openclaw/workspace/openclaw-upstream:Regression coverage added or updated:
reserveTokensno longer gets raised by the implicit default floor.reserveTokensFloorstill acts as a lower bound.reserveTokensbefore20000.Risk checklist
Did user-visible behavior change?
YesDid config, environment, or migration behavior change?
Yes