Skip to content

test(core): make terminal idle unload observation deterministic - #685

Closed
GraciousGazelles wants to merge 5 commits into
mainfrom
fix/terminal-agent-idle-unload-successor-20260830
Closed

GraciousGazelles wants to merge 5 commits into
mainfrom
fix/terminal-agent-idle-unload-successor-20260830

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Aug 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • exercise a spawned V2 child through the queue-only communication path, avoiding an empty initial user-input turn in the idle-unload fixture
  • synchronize the paused-clock watcher before the pre-deadline assertion
  • retry unload observation across at most two bounded virtual idle intervals, without wall-clock sleeps
  • include the spawned-child regression in the focused multi-agent orchestration validation lane

This is test and validation coverage only; production residency and teardown behavior are unchanged.

Validation

Exact candidate: 556bb5485dc45d165138a923d5d34c1fa61c16fe.

  • Manual hosted heavy-test runs 33311152022 and 33311160673: success.
  • Automatic PR heavy-test run 33311682883: success; the focused codex.core-multi-agent-orchestration-targeted lane executed spawned_v2_terminal_child_unloads_at_terminal_idle_deadline and the core batch passed 15/15.
  • Blocking CI run 33311683153, attempt 2: success across required CI, Bazel, Linux GNU/musl, macOS, Windows, Clippy, Rust, SDK, and repository gates. Attempt 1 had one BuildBuddy BEP upload timeout on Intel macOS; the unchanged-head rerun passed.
  • git diff --check: passed.
  • cargo fmt --all --manifest-path codex-rs/Cargo.toml -- --check: completed with the repository stable-channel imports_granularity warnings.
  • Final bounded exact-delta review: clean. It found no timeout inflation, wall-clock masking, production residency change, or missing focused-lane execution.

The original flaky failure on unrelated PRs is tracked by Ops item w8797; landing this deterministic regression unblocks exact validation of those candidates.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the spawned_v2_terminal_child_unloads_at_terminal_idle_deadline test in residency_tests.rs to use spawn_agent_with_communication and introduces settle_terminal_idle_watcher() calls to ensure the idle watcher polls its sleep future before advancing paused time. It also replaces wall-clock sleeps with bounded idle interval assertions to make the test more deterministic. Additionally, the test is added to the targeted test suite in the justfile. There are no review comments, so I have no feedback to provide.

@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Superseded by #686, which landed the same terminal-idle test objective with an explicit completion notification instead of bounded paused-time retry intervals. No unique change from this branch remains to land.

auto-merge was automatically disabled August 31, 2026 13:37

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant