Skip to content

Treat goal objectives as untrusted context - #60342

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6f44f6d6c895bb4dc378c9cf84d6470ccc885c67
Nov 9, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6f44f6d6c895bb4dc378c9cf84d6470ccc885c67

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Treat goal objectives as untrusted context

What changed

  • Pass goal objectives as untrusted goal_objective context instead of embedding them in continuation instructions. Direct the model to use get_goal if the objective is missing or truncated.
  • Inject newly created objectives into their originating active turn without dropping unrelated client context. Render them as tool outputs when UntrustedAsToolOutput is enabled.
  • Queue additional context together with automatic turn input so both reach the first model request.

Testing

Extend app-server coverage to verify that model-written objectives appear as tool outputs at creation and continuation, without duplicating them in user messages. Update steering and Python SDK tests to check objective preservation and delivery alongside continuation instructions.

## What changed

- Pass goal objectives as untrusted `goal_objective` context instead of embedding them in continuation instructions. Direct the model to use `get_goal` if the objective is missing or truncated.
- Inject newly created objectives into their originating active turn without dropping unrelated client context. Render them as tool outputs when `UntrustedAsToolOutput` is enabled.
- Queue additional context together with automatic turn input so both reach the first model request.

## Testing

Extend app-server coverage to verify that model-written objectives appear as tool outputs at creation and continuation, without duplicating them in user messages. Update steering and Python SDK tests to check objective preservation and delivery alongside continuation instructions.

GitOrigin-RevId: 6f44f6d6c895bb4dc378c9cf84d6470ccc885c67
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6f44f6d6c895bb4dc378c9cf84d6470ccc885c67 branch from 1475faa to 8703d32 Compare November 9, 2026 03:58
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-09T03:58:27.270946Z 1475faa PR opened
ℹ️ 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.

@copyberry
copyberry Bot merged commit 8703d32 into main Nov 9, 2026
8 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6f44f6d6c895bb4dc378c9cf84d6470ccc885c67 branch November 9, 2026 03:58
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 8703d32b Deployed Nov 9, 2026 by Kushoof via Identify potential duplicates (all issues) #62395
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.