Repository navigation
Conversation
richuV
force-pushed
the
codex/subagent-permission-hitl-2137
branch
from
July 13, 2026 12:56
5e81e3d to
a8fb5fb
Compare
This comment was marked as abuse.
This comment was marked as abuse.
This was referenced Jul 14, 2026
richuV
force-pushed
the
codex/subagent-permission-hitl-2137
branch
from
July 15, 2026 19:11
a8fb5fb to
d6c46af
Compare
Author
|
All required checks and the CLA are now green, and this PR is linked to #2137. Could a maintainer please review it when available? I'm happy to address any feedback or rebase onto the latest main if required. |
Collaborator
|
This PR currently conflicts with git fetch origin
git rebase origin/main
# resolve conflicts, then:
git push --force-with-leaseThis is a one-time reminder. Feel free to @mention me for a re-review after conflicts are resolved. Automated notification by github-manager-bot |
This was referenced Oct 14, 2026
Closed
This branch has not been deployed
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.
Summary
Closes #2137.
Why
An async
agent_spawnchild that returnedPERMISSION_ASKINGcould be collapsed into an empty completed result or remainRUNNINGafter approval. The task repository had no typed waiting state or durable resume identity, and reused children did not receive the complete current parent permission context.This made child HITL impossible to resume reliably without consumer-side polling, private registry access, or a second task/permission owner.
Design
PermissionContextStategains an atomic replacement operation with inherited-rule provenance.TaskStatus.WAITINGandTaskSuspensionrepresent a non-terminal permission pause.WorkspaceTaskRepositoryowns suspension persistence, lookup, resume, cancellation races, terminal transition, and delivery.AgentSpawnToolreturns typed task outcomes and delegates resume execution to the repository/Harness lifecycle.No consumer-specific code or polling store is introduced.
Verification
Focused Core/Harness contracts:
Full Core/Harness suite:
git diff --checkpasses.