Skip to content

Measure deferred tool namespace fragments before and after truncation - #47873

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

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/26543585e2bea54bff6d63263faa9a6ca5dca379

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Measure deferred tool namespace fragments before and after truncation

What changed

Record codex.thread.tools.namespaces_total and codex.thread.tools.fragment_bytes histograms through session telemetry. Tag samples by stage (before or after the 4 KiB cap) and kind (snapshot or delta). Measure bytes after description normalization and XML escaping, including the wrapper, with explicit fragment-size buckets.

Delta counts include only changed entries, and unchanged state emits no samples.

Testing

Extend rendering tests to verify snapshot and delta metrics, omission counts, byte sizes with Unicode and XML escaping, and no samples for unchanged state.

…#47873)

## What changed

Record `codex.thread.tools.namespaces_total` and `codex.thread.tools.fragment_bytes` histograms through session telemetry. Tag samples by `stage` (`before` or `after` the 4 KiB cap) and `kind` (`snapshot` or `delta`). Measure bytes after description normalization and XML escaping, including the `` wrapper, with explicit fragment-size buckets.

Delta counts include only changed entries, and unchanged state emits no samples.

## Testing

Extend rendering tests to verify snapshot and delta metrics, omission counts, byte sizes with Unicode and XML escaping, and no samples for unchanged state.

GitOrigin-RevId: 26543585e2bea54bff6d63263faa9a6ca5dca379
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/26543585e2bea54bff6d63263faa9a6ca5dca379 branch from ba58775 to 4021746 Compare September 24, 2026 16:14
@copyberry
copyberry Bot merged commit 4021746 into main Sep 24, 2026
16 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/26543585e2bea54bff6d63263faa9a6ca5dca379 branch September 24, 2026 16:15
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2026
@DHarsy331
DHarsy331 deployed to issue-triage September 24, 2026 16:21 — with GitHub Actions Active
@DHarsy331
DHarsy331 deployed to issue-triage September 24, 2026 16:21 — with GitHub Actions Active
@DHarsy331
DHarsy331 deployed to issue-triage September 24, 2026 16:21 — with GitHub Actions Active
@jsoref
jsoref deployed to issue-triage September 24, 2026 16:25 — with GitHub Actions Active
@jsoref
jsoref deployed to issue-triage September 24, 2026 16:25 — with GitHub Actions Active
@jsoref
jsoref deployed to issue-triage September 24, 2026 16:25 — with GitHub Actions Active
@jsoref
jsoref deployed to issue-triage September 24, 2026 16:26 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 4021746a Deployed Sep 24, 2026 by MoneyKalle via Identify potential duplicates (all issues) #48038
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.

6 participants