feat: add external task refs and opt-in flag#19047
Open
adrian-openai wants to merge 1 commit intodev/efrazer/agent-identity-env-jwtfrom
Open
feat: add external task refs and opt-in flag#19047adrian-openai wants to merge 1 commit intodev/efrazer/agent-identity-env-jwtfrom
adrian-openai wants to merge 1 commit intodev/efrazer/agent-identity-env-jwtfrom
Conversation
This was referenced Apr 22, 2026
c588673 to
c74a2f3
Compare
3254ce5 to
0324e8a
Compare
0324e8a to
2685c9e
Compare
2685c9e to
55dced3
Compare
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.
Stack
This is PR 1 of the HAI external-task-ref stack:
external_task_ref, and theuse_agent_identityexperimental flag.ThreadIdasexternal_task_refand use taskAgentAssertions.Summary
The new backend contract makes
task_idbackend-owned and opaque. Codex should send a stable logical reference for thread-scoped work and let HAI resolve or create the task. This PR adds the small crate-level primitives needed for that shape before core/model-provider code starts using them.What changed:
AgentTaskExternalReffor the optional task registrationexternal_task_reffieldexternal_task_refomitted by default so old registration requests remain validRegisteredAgentTask/AgentTaskKindas typed helpers around backend-owned task idsAgentAssertionwire shape:agent_runtime_id,task_id,timestamp, andsignatureuse_agent_identityexperimental flag available for the later ChatGPT opt-in pathTesting
cargo test -p codex-agent-identity