refactor(context_compressor): extract text-util leaves into context_compressor_text_utils - #80626
Open
andrexibiza wants to merge 1 commit into
Open
refactor(context_compressor): extract text-util leaves into context_compressor_text_utils#80626andrexibiza wants to merge 1 commit into
andrexibiza wants to merge 1 commit into
Conversation
…ll-prune Wave-2 dual REQUEST_CHANGES agreed LB2 skill-prune cannot extract first: it calls _redact_compaction_text and _content_text_for_contains (cycle). Move those two pure leaves into context_compressor_text_utils.py with is-identical re-export through the godfile. Golden bodies byte-exact. Part of NousResearch#78645 Part of NousResearch#78647 Signed-off-by: Andrex Ibiza <andrexibiza@users.noreply.github.com>
Contributor
Author
This was referenced Aug 6, 2026
Contributor
Author
|
Interlock completion for the context-compressor shard campaign:
The full related set is explicitly recorded in #81074, including the prior compressor shards, same-surface colliders/fixers, and their referenced issue nodes. The residual |
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.
Summary
Large-file decomposition feature package (tracker #78647):
agent/context_compressor.pyslice — extract the two pure text-util leaves (_redact_compaction_text,_content_text_for_contains) intoagent/context_compressor_text_utils.pywith anis-identical re-export seam.Why these two first
Wave-2 graph redraw (dual REQUEST_CHANGES, #78645): the skill-prune cluster (LB2) depends on both helpers — extracting them first breaks the import cycle and unblocks LB2 as a clean one-way dependency.
Slice
agent/context_compressor.py(6,883 lines @ pin6e9cae6ac4b)5591e8c923958085…/3f79a957ac93230a…— both byte-exact, verified by 5/5 blind reviewersagent/context_compressor_text_utils.py(imports onlytyping+agent.redact; no cycle)cc._redact is tu._redactverified at runtimeVerification
git diff --checkclean · LF-only · DCO signedPart of #78645
Part of #78647