Repository navigation
Conversation
AlexStocks
approved these changes
Oct 15, 2026
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.
Which issue or RFC does this PR close?
Design proposal for #1989, with community feedback in Discussion #1971. The implementation issue remains open.
RFC 1990: English / Chinese.
Rationale for this change
Smaller prepared context does not recover tokens already spent generating memories. PowerContext should reduce repeated input at both boundaries it controls:
For example, snapshots
[m1],[m1,m2], and[m1,m2,m3]can share message bodies while preserving every complete snapshot, Source identity, timestamp, and occurrence. The extraction model still sees the context needed to interpretm3. After extraction, prepare can independently remove repeated field values, snippets, and table keys from delivery.What changes are included in this PR?
This PR contains only the English and Chinese RFC documents. Evaluation scripts, measurements, samples, and images remain outside this PR.
The RFC specifies:
off / shadow / activemodes and the existing caller workflow.Are there any user-facing changes?
This PR changes only design documentation. It does not implement the input gate or change production runtime behavior, dependencies, repository configuration, public contracts, or database schemas. The proposal adds no tables, columns, migrations, HTTP/MCP operations, or public request/response fields, and preserves original Sources and Artifacts.
PR #1991 separately covers prepare-side implementation; extraction input optimization remains proposed work.
Shadow executes the original path without a second extraction call. Active rules require complete-request savings and independent quality acceptance; unsupported or invalid plans fall back. The current MCP search/get surface and external agent history do not automatically receive prepare optimization.
How was this change tested?
git diff --check origin/master...HEAD: passed.This documentation PR does not establish runtime token savings. Implementation and real-model experiments are required to qualify savings and quality.
AI usage statement
OpenAI Codex (GPT-6) assisted with source analysis, design, bilingual documentation, independent review, and validation.