Skip to content

Unify Guardian context section collection - #42076

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1d5d793ffbf166077411a66e85e039596907fb7e
Sep 1, 2026
Merged

Unify Guardian context section collection#42076
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1d5d793ffbf166077411a66e85e039596907fb7e

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026

Copy link
Copy Markdown

Unify Guardian context section collection

What changed

  • Add typed context sections for root-conversation evidence, trusted user answers, and conversation transcripts to codex-guardian-context.
  • Use the shared section registry when building core Guardian prompts and asynchronous Guardian V2 scoring context.
  • Preserve source-role labeling while delivering authorization evidence as user-role context, and fail closed when context collection fails.

Testing

  • Cover shared section ordering and role preservation for synchronous and asynchronous targets.
  • Verify trusted user answers appear exactly once as user-role input in Guardian V2 approval flows.

## What changed

- Add typed context sections for root-conversation evidence, trusted user answers, and conversation transcripts to `codex-guardian-context`.
- Use the shared section registry when building core Guardian prompts and asynchronous Guardian V2 scoring context.
- Preserve source-role labeling while delivering authorization evidence as user-role context, and fail closed when context collection fails.

## Testing

- Cover shared section ordering and role preservation for synchronous and asynchronous targets.
- Verify trusted user answers appear exactly once as user-role input in Guardian V2 approval flows.

GitOrigin-RevId: 1d5d793ffbf166077411a66e85e039596907fb7e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1d5d793ffbf166077411a66e85e039596907fb7e branch from 623a77d to 2350823 Compare September 1, 2026 15:23
@copyberry
copyberry Bot merged commit 2350823 into main Sep 1, 2026
55 of 79 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1d5d793ffbf166077411a66e85e039596907fb7e branch September 1, 2026 15:24
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026
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