Repository navigation
feat(agents): make Action waits inspectable and guide parent handoffs - #509
Merged
lastobelus merged 3 commits intoOct 26, 2026
Merged
Conversation
Expose bounded latest-Action metadata and read-only settlement protection in thread reads. Derive current delivery status without treating historical pause intent or an accepted follow-up as completed work. Keep raw output scoped to the launching thread. Guide delegated children through final-response handoffs and explicit queued parent returns. Reuse the existing background-result repair; same-task Action ownership remains separate. Synchronize embedded provider instructions in recorded replay fixtures without re-recording their events. Carry-Group: incubator Carry-Fix: #482 Carry-Observation: Agent-facing inspection and mediation integrate Incubator app-owned read contracts, pause and settlement state; the contracts, injected guidance and replay evidence form one feature without changing core Action execution or the existing background-result repair.
Supply the new read service in the toolkit integration and core test layers. Carry-Group: incubator Carry-Fix: #482 Carry-Observation: The toolkit fixtures construct the agent-facing metadata service and need its existing Action inspection dependency; runtime behavior is unchanged.
Keep the child PR-watch condition intact when describing Action mediation. Reuse existing parent settlement protection once per workflow, restore only settings changed by that workflow, and describe the actual read surfaces. Carry-Group: incubator Carry-Fix: #482 Carry-Observation: These corrections preserve Phase 1 agent guidance without changing Action execution, task ownership, or PR-watch permission.
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. |
4 tasks
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Problem
A delegated child task that launches a resumable Action (dependency prep, CI, a build, a checkpoint wait) and ends its turn to wait can be treated as finished before the Action returns. The parent then has no reliable way to tell "child done" from "child waiting on an Action", and resumed child work may finish without delivering its final result to the parent. App-owned child tasks don't yet complete reliably across an Action wait; fixing that properly (same-task continuation) is Phase 3 of #482.
This PR is Phase 1. It doesn't fix the child's lifecycle. It makes the wait visible and gives parents one handoff procedure to use until Phase 3 lands.
What changed
t3_thread_readnow returns a bounded summary of the thread's latest Action and the read-onlyautoSettleDisabledAtsetting. The summary's status comes from the current pause and the matching follow-up run (for examplepending_delivery,follow_up_queued,follow_up_active,attention_required). Accepted delivery is never reported as completed work. Raw command output stays restricted to the launching thread throughinspect_action_run.taskIdreceipt.docs/internals/resumable-project-actions-setup.mdgains a "Parent-mediated Actions for delegated children" section: choosing the target, settlement protection, observing progress, and when the handoff ends.Not in this PR
Validation
428bca5ec9bfd3b4d4a7dfb62796df11c8203789on baseba9dfa98ef5e16536d689dca454486b01a66ea71.Still pending: installed acceptance and representative real use, after this merges and the current in-flight checkpoint finishes. No build, install, restart or checkpoint is started here.
Implemented with GPT-6.1 Sol through Codex, with Astra High and Claude Opus 5.5 High review and guidance writing.