Skip to content

Include preceding assistant context in Guardian sender reviews - #49951

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4eca369cbb30241635273f729dec81b78ea57faf
Oct 1, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4eca369cbb30241635273f729dec81b78ea57faf

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Include preceding assistant context in Guardian sender reviews

Why

Short sender replies such as 👍 need preceding assistant context to be understood during a delegation review. User messages alone omit that context.

What changed

  • Capture preceding assistant context alongside up to three recent sender user messages at delivery, for Guardian only. Label assistant messages as untrusted context rather than authorization or verified questions.
  • Share the existing 900-byte budget per exchange, prioritize user evidence, and report unavailable assistant context.
  • Recognize cloud_threads.send_message deliveries and accept both compact and indented delegation envelopes.

Testing

Expand integration coverage for app, TUI, and cloud-thread deliveries, contextual replies, and budget-driven omissions. Assert that sender user and assistant context stays out of the delegated agent's prompt.

## Why

Short sender replies such as `👍` need preceding assistant context to be understood during a delegation review. User messages alone omit that context.

## What changed

- Capture preceding assistant context alongside up to three recent sender user messages at delivery, for Guardian only. Label assistant messages as untrusted context rather than authorization or verified questions.
- Share the existing 900-byte budget per exchange, prioritize user evidence, and report unavailable assistant context.
- Recognize `cloud_threads.send_message` deliveries and accept both compact and indented delegation envelopes.

## Testing

Expand integration coverage for app, TUI, and cloud-thread deliveries, contextual replies, and budget-driven omissions. Assert that sender user and assistant context stays out of the delegated agent's prompt.

GitOrigin-RevId: 4eca369cbb30241635273f729dec81b78ea57faf
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4eca369cbb30241635273f729dec81b78ea57faf branch from 519dffb to f70810b Compare October 1, 2026 10:47
@copyberry
copyberry Bot merged commit f70810b into main Oct 1, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4eca369cbb30241635273f729dec81b78ea57faf branch October 1, 2026 10:47
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — f70810bc Deployed Oct 1, 2026 by heznpc via Identify potential duplicates (open issues fallback) #50516
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.

5 participants