Skip to content

Core goal-aware V2 child handback eligibility - #813

Merged
GraciousGazelles merged 10 commits into
mainfrom
repair/w13167-goal-aware-notifications-20260907
Sep 7, 2026
Merged

GraciousGazelles merged 10 commits into
mainfrom
repair/w13167-goal-aware-notifications-20260907

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • add a typed, exact-bound goal notification projection for V2 child handback;
  • suppress only opted-in, error-free intermediate TurnComplete events while a goal remains continuation-pending;
  • preserve legacy/action-required/error/abort behavior and fence stale generations, bindings, store incarnations, and source turns;
  • serialize goal API/tool lifecycle invalidation and automatic continuation binding around the existing goal-state permit.

Validation

  • Exact candidate: ef0a7d4cc4b52ad344832175f0f0ac1b7a66f4c2 (tree 3c1bbe371e60e800fc2e08ea52f0dcdb3f1f2c26).
  • Luna/high causal semantic review: clean on the exact candidate; the Clippy-only let-chain repair preserved the reviewed behavior.
  • Local validation was intentionally limited to rustfmt and git diff --check; this coordination host is not permitted for builds/tests.
  • Hosted exact-head proof: argument-comment lint 34140858270, v8-canary 34140858269, runner-label-policy 34140858276, and CodeQL 34140858930 succeeded; heavy tests 34140858815 were skipped by policy; blocking-ci 34140859308 succeeded after the single authorized rerun (attempt 2), including Windows release-build job 101821967227, Bazel required gate 101823345000, and CI required gate 101823371621.
  • This PR does not claim durable crash/reconnect delivery or the shared mailbox/UI consumer cutline; those remain separately coordinated.

Refs: w13167 / openai#58194

@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 introduces a goal-aware child turn notification projection system to manage and potentially defer child thread completion notifications based on active goal states. Feedback on these changes highlights two critical issues: first, the TurnComplete input is never actually published to the store, which prevents the projection from transitioning to the ResultReady phase; second, suppressing TurnComplete events can lead to parent threads hanging indefinitely if a goal is completed or blocked externally while the child thread is idle, as the suppressed completion is never forwarded.

Comment thread codex-rs/core/src/session/mod.rs Resolved
@GraciousGazelles
GraciousGazelles marked this pull request as ready for review September 7, 2026 17:30
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-07T17:37:49.632382Z ef0a7d4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit 5a50097 Sep 7, 2026
126 of 129 checks passed
@GraciousGazelles
GraciousGazelles deleted the repair/w13167-goal-aware-notifications-20260907 branch September 7, 2026 17:52
sedna-release-publisher Bot pushed a commit that referenced this pull request Sep 15, 2026
* feat(core): project goal-aware child notifications

* feat(core): gate v2 handback on goal projection

* fix(goal): import notification goal status

* fix(goal): satisfy hosted lint and formatting

* Fix deferred goal completion delivery

* Keep active goal edits quiet

* Borrow goal turn token for publication

* Satisfy goal finalizer clippy
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