Repository navigation
refactor(agents): simplify agent guidance, approvals, and overload retry - #365
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Trim AGENTS.md and qq-mode to outcome-first guidance; make size budgets advisory for releases; run workspace-local shell mutations without approval under auto; make approval timeouts explicit to the model; retry OpenAI/Codex overloaded stream errors.
lg2m
force-pushed
the
refactor/simplify-harness
branch
from
October 19, 2026 06:20
1e3b9e2 to
e947310
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Simplifies the harness around the core loop, based on an analysis of recent session data (Oct 15–18). Agents spent their time on our own gates and on approvals rather than on the task: about 75 h of shell approval waits, 123 runs of
cargo xtask check(4.7 h), and about 1.6 h ofsleep Npolling.Changes
docs/runbooks/release.md: a release needs green CI on main. Size and latency budgets are advisory, and an overrun goes in the bump PR. No separate preparation PR.auto. Shell commands whose only prompt reasons are workspace-local (git_mutation,redirect_into_workspace,in_place_edit,tee,symlink,change_mode) now run without approval. Push/fetch, downloads, deletions, installs, unlisted programs and dynamic words still ask. Fewer holds means fewer reviewer-model round trips. The reviewer default (ByMode) is unchanged, because it's protocol-visible (protocol 28) and needs its own bump.sleepto poll, budgets are reported, not blocking.slicedrops the ledger steps.babysitstops at green CI and answered threads, and a written "no major issues" counts (no waiting for emoji). "Can I merge?" gets yes or no first. The.agents/copies are kept identical.response.failed/error, and was classifiedResponse(not retryable).openai_error_kindnow mapsserver_is_overloaded/overloaded_error(and any message containing "overloaded") toUnavailable, andslow_downtoRateLimited. The same codes were added to chat-completions. The existingwith_restart/recoverable_turn_faultpath then retries; that path refuses a resend after visible output.messages.output, but that's by design: the snapshot path joinsmessage_chunks(transcript.rs:194-240). The leading client-side suspect iswarm_emptymarking a session as loaded-empty so it never refetches (qq-client/src/state.rs:495,qq-tui/src/app.rs:2026). That needs a reproduction against a real store before a fix.Verification
auto_mode_runs_edits_and_safe_shell_but_asks_for_dangerous_commands: commit, redirect andsed -i→ Execute; push, fetch, curl, commit+rm and unlisted → RequireApproval.surfaces_stream_errorsfor three overload payload shapes →Unavailable.git commitas their example of a held command now usegit push, which is still held. The legacy-sleep baseline line numbers were updated for the shifted lines; the sleep count is unchanged (73/73).cargo xtask check: fmt, lint and clippy are ok.goals::revision_notices_across_reactive_checkpoint_overflow_reopen_in_orderfails on main too (reproduced onorigin/main).goal_driver_soaktests timed out once while another worktree's--fullgate was loading the machine. They pass 3/3 in isolation on this branch.approvals::goal_parent_deadline_preserves_a_sponsored_childs_unanswered_approvalis intermittent on both main and this branch (main 1/11 failures).--no-verifybecause of the pre-existing failure above.Compatibility
No protocol, schema or config change. Behavior change: under
auto, workspace-local shell mutations no longer prompt.