Skip to content

Track source attribution for individual context parts - #52195

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/24e56005f5bdb98bf82f2b3943f29c4c81f3d587
Oct 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/24e56005f5bdb98bf82f2b3943f29c4c81f3d587

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Track source attribution for individual context parts

What changed

  • Add ContentItemMetadata to distinguish user input, developer instructions, AGENTS.md, skills, harness context, and tool-supplied context independently of message role and content classification.
  • Keep attribution attached to content through prompt assembly, history processing, and hook-output spilling. Distinguish command hooks from MCP hooks and retain tool namespaces when known.
  • Treat missing historical attribution as unknown and send per-content metadata only to Responses Lite.

Testing

Update request and history assertions to cover attribution persistence and Responses Lite metadata handling.

## What changed

- Add `ContentItemMetadata` to distinguish user input, developer instructions, `AGENTS.md`, skills, harness context, and tool-supplied context independently of message role and content classification.
- Keep attribution attached to content through prompt assembly, history processing, and hook-output spilling. Distinguish command hooks from MCP hooks and retain tool namespaces when known.
- Treat missing historical attribution as unknown and send per-content metadata only to Responses Lite.

## Testing

Update request and history assertions to cover attribution persistence and Responses Lite metadata handling.

GitOrigin-RevId: 24e56005f5bdb98bf82f2b3943f29c4c81f3d587
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Note

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/24e56005f5bdb98bf82f2b3943f29c4c81f3d587 branch from 3c0e437 to ad54b75 Compare October 8, 2026 17:57
@copyberry
copyberry Bot merged commit ad54b75 into main Oct 8, 2026
1 check failed
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/24e56005f5bdb98bf82f2b3943f29c4c81f3d587 branch October 8, 2026 17:57
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026
@chemamiranda
chemamiranda deployed to issue-triage October 8, 2026 18:00 — with Image GitHub Actions Active
@chemamiranda
chemamiranda deployed to issue-triage October 8, 2026 18:00 — with Image GitHub Actions Active
@chemamiranda
chemamiranda deployed to issue-triage October 8, 2026 18:00 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:04 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:04 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:04 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:05 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:06 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:06 — with Image GitHub Actions Active
@joshskyhi
joshskyhi deployed to issue-triage October 8, 2026 18:06 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — ad54b755 Deployed Oct 8, 2026 by joshskyhi via Translate non-English issue #18507
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.

4 participants