feat(agentic): configure proposer completion budget - #804
Conversation
|
PR template check (advisory, non-blocking) This PR body doesn't look like it covers everything
This isn't a required check -- it won't block merge. See the template's own "Notes for contributors" for which sections lighter-path PRs can skip. |
|
Nice fix — this closes the "no config knob" gap cleanly. One thing worth flagging before this merges, since the PR body already identifies raising the default as an open tradeoff without resolving it: The Both proposer paths share this exposure identically: Not asking for a change in this PR — the config knob standing alone is a legitimate, well-scoped fix. Just flagging that "raise it after measuring" (per your new comment) may be closer to "raise it as a follow-up default-value change" than an edge case, since the failure mode is silent (a rejected iteration, not an error naming truncation as the cause). Happy to pick up a small follow-up PR bumping the default once this lands, if useful — didn't want to submit a competing edit to the same lines while this is still open. Generated by Claude Code Generated by Claude Code |
bac9c2d to
d352d68
Compare
d352d68 to
11a8901
Compare
…ly stale Two more codex findings on the same section fixed in the prior commit: - The documented recovery (checkout main, fetch, hard-reset main) only helps when local main itself is what's stale. Run the quick-check from a feature branch that's simply behind (the common case for an agent branch cut before a later merge landed on main) and it reports REWRITE/DIVERGED, but resetting main does nothing for that branch -- switching back to it fails the same check and the pre-push gate still refuses it. Verified against this session's own history: PR #804/#809/#810 were in exactly this state (cut before #802 merged) and the fix was `git rebase origin/main` on each feature branch, not a main reset. - `git reset --hard origin/main` was presented unconditionally, with no check for unique local commits or uncommitted work it would discard. `git reset -h` confirms --hard resets HEAD, the index, and the working tree. CLAUDE.md's own Git Safety Protocol treats `reset --hard` as destructive and never to run without explicit confirmation; this doc contradicted that by presenting it as a bare recovery one-liner. Added the feature-branch rebase path as the primary recovery, and gated the main-reset path on `git status --short` being clean and `git log origin/main..main` being empty first. Co-Authored-By: CyClaw Agent <cyclaw-agent@users.noreply.github.com>
Summary
Makes the existing real-repo proposer completion budget configurable. Default remains 2048; no new agent framework is introduced.
Invariant / CG-Security Invariant Check (CyClaw)
Verification Steps before commit
Scope and risks
planner_max_tokensreaches only real-repo plan/coding calls; it does not alter the separate harness optimizer.