Repository navigation
test(perf): distinguish Codex tool context and token accounting - #2416
Merged
Merged
Conversation
N0zoM1z0
marked this pull request as ready for review
October 13, 2026 00:33
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
34 tasks done
Keep default trials ephemeral and exclude account, authentication and ambient state. Capture failure still removes the temporary profile. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Record the committed capture pair and preserve its negative token result. Validate guidance prerequisites before profile acquisition. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Validate only known additional source row counts, keep incomplete answers and unknown final resource counters explicit, and preserve null context-window observations. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Both answers match actual JADX facts; guided total input is lower while uncached input and wall time increase. Keep guidance optional. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
N0zoM1z0
force-pushed
the
feat/model-context-receipts-20261012
branch
from
October 13, 2026 00:51
3719ecd to
42f02c6
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Raw MCP reply bytes and public MCP call counts do not describe actual client discovery, projection and model rounds. Add optional
--capture-tool-contextto retain owned client tool items and per-response usage. Add separate optional--guide-enabled-toolsto supply exact selected function names for narrowly scoped discovery experiments. Existing trials stay ephemeral and their default instructions remain unchanged; REA public APIs/providers/defaults do not change.Capture filters owned rollouts to tool calls/replies and numeric usage, preserving original IDs/caller values/digests. It excludes account/session metadata, world state, messages, encrypted reasoning, internal passthrough, auth/config and ambient environment. Missing/malformed/symlink records are unavailable/partial, explicit null context-window values remain unknown, and capture failure cannot bypass profile/credential cleanup. Validate guidance prerequisites before acquiring a profile and close the public-event reader explicitly.
Real findings are qualified rather than converted from bytes to tokens:
gpt-5.6-terrahigh, identical artifact/question/two selected tools/providers/capture mode. Both guided metadata outputs are 12,336 bytes without truncation versus 41,709 truncated bytes. All trials preserve source bytes, remove profiles and make two successful dependent MCP calls.Validation:
Starts from merged main
82cfcee19f18b0eeae9a330ba04e0411cdf85225in a new isolated worktree; guidance cohort checkpointe20bd0e2a905f06bc8c56fe04b0e61f3da88636a, current review head42f02c6f8d6c50265396a2ea99857329c3518d37. Curated findings:experiments/analysis-efficiency/model-context.md. Raw data/profiles/runtimes stay private. One CPU, unchanged 3 GiB early-stop/4 GiB hard memory, no swap and bounded tasks apply; no guard abort is observed, final counters remain unknown.Continues #2016. Keep draft until available live checks, exact-head CI and manual review complete. No release publication/deployment or plugin SDK.
Historical CI attribution: the old head's Linux shard 4 and Windows lane reproduced the same three Ghidra ELF64 fixture failures on independent main c462; original logs remain in the requested /tmp handoff. Another PR independently repaired those fixtures in main
37b7550ecc916acc8619fa72e5c05af45702733f. This PR is rebased onto that main without changing any of its seven own files (byte-identical comparison verified). Its six Python tests and full checked pre-push pass again. New exact-head CI is running; no historical failure is relabeled as a pass. Measured old runtime/source commits remain pinned and are not relabeled after rebase.