Repository navigation
test(agents): replace broad overflow loop coverage - #118184
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 5:42 PM ET / 21:42 UTC. ClawSweeper reviewWhat this changesThis PR replaces a slow broad embedded-agent overflow-loop suite with focused tests for recovery, prompt persistence, normalization, timeout handling, and small runtime policies, while retaining a narrow dispatch-and-replay test. Merge readinessKeep this PR open for normal maintainer acceptance. The focused tests exercise the production owners that the loop delegates to, retain one dispatch/replay integration test, and current Priority: P3 Review scores
Verification
How this fits togetherThe embedded agent runner converts a prepared session prompt into model attempts, then applies overflow recovery, replay safety, delivery state, and terminal-result policies. This change moves tests from the expensive top-level loop to those production owner modules while preserving a small orchestration check. flowchart LR
A[Prepared session prompt] --> B[Embedded agent run loop]
B --> C[Attempt normalization]
B --> D[Overflow recovery]
C --> E[Replay and terminal resolution]
D --> E
E --> F[Delivery and session outcome]
G[Focused owner tests] --> C
G --> D
Decision needed
Why: The Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -139, Other -1. Total -140 across 7 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the direct owner-level suites plus the retained dispatch/replay spine, preserving the slow full-runner path only for behavior that cannot be proven at an extracted production owner. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes test structure and test cost, not a reported user-facing failure. The changed behavior is supported by an inspectable reviewed-head focused-suite transcript and exact-head CI evidence. Is this the best way to solve the issue? Yes. The split follows the scoped embedded-runner guidance: test production helper owners directly and retain full-runner coverage only for the caller-owned dispatch and replay facts that cross components. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9b6bda696eab. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Focused after-fix terminal proof on reviewed head The exact-head full CI matrix is also green; compact-large-1 finished successfully in run 30766797358. |
|
@clawsweeper re-review Inspectable reviewed-head terminal proof and the exact-head CI link are now attached and linked from the PR body. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* test(agents): replace broad overflow loop coverage * test(agents): satisfy overflow suite checks --------- Co-authored-by: Peter Steinberger <[email protected]>
Summary
runEmbeddedAgentoverflow loop harness with direct tests at the extracted owners for recovery, prompt persistence, normalization/replay state, timeout payloads, auth bookkeeping, and thinking policyNo production code, test configuration, worker count, or CI sharding changes.
Performance
Coverage
run.overflow-context-recovery.test.tsrun.session-prompt-state.test.tsrun.attempt-normalization.direct.test.tsrun.terminal-timeout.test.tsrun.overflow-compaction.misc-owners.test.tsProof
oxfmt,oxlint, max-lines ratchet, touched test types, andgit diff --checkpassedTest-only change; no changelog entry.