Record result sources in app tool analytics - #42164
Merged
copyberry[bot] merged 1 commit intoSep 2, 2026
Merged
Conversation
## What changed - Add per-tool `analytics_result_source` requirements, with support for the `detailed_message_search_v1` format and normal configuration precedence. - Attach host-generated source IDs from accepted app tool results to recorded executed tool calls for both direct and Code Mode invocations. - Bound and deduplicate source metadata, reject caller-supplied values, and shed optional source data before dropping tool-call or completion metadata. - Preserve source updates across waits and retries while preventing stale or compacted records from overwriting accepted metadata. ## Testing Add coverage for requirement parsing and merging, trusted source snapshots, metadata budgets, retries, waits, and compaction. GitOrigin-RevId: 7d5e394219eb33e0ab7b6db3f039138a78569d17
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/7d5e394219eb33e0ab7b6db3f039138a78569d17
branch
from
September 2, 2026 01:07
678ae9d to
12ed76b
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/7d5e394219eb33e0ab7b6db3f039138a78569d17
branch
September 2, 2026 01:08
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Record result sources in app tool analytics
What changed
analytics_result_sourcerequirements, with support for thedetailed_message_search_v1format and normal configuration precedence.executed tool calls for both direct and Code Mode invocations.
shed optional source data before dropping tool-call or completion metadata.
compacted records from overwriting accepted metadata.
Testing
Add coverage for requirement parsing and merging, trusted source snapshots,
metadata budgets, retries, waits, and compaction.