fix: retain active reminders and human boundaries during compaction - #40
Merged
Merged
Conversation
Port the semantic request-retention delta from reviewed #2 candidate 42e3cff (implementation commits 482ea03, db63ff2, and 95de3a4). Original contribution credit: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com> Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Tested source bytes match the final-preflight3 guest per-file SHA-256 binding. Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
Generated with Amplifier Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
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.
What changed
context.request_retentionrequest-view capability so the current required persisted hook envelope and metadata-classified first/latest human messages survive compaction.The narrow tool-removal floor builds on public context work in 1f781cd; this PR does not import its broader assembly branch.
Why
Active reminder content and human request boundaries must remain available in compacted request views without changing message roles or the default behavior.
CI qualification and compatibility
The follow-up CI-only commit removes the development Git-main Core source mapping, locks development and CI to released
amplifier-core==1.6.1, and checks the requiredContextLengthErrorAPI before tests run. Runtime dependencies remain empty: Core is host-provided, and this module requires host Core>=1.6.1. No Core source or production implementation/test behavior changed.Verification
Limits
This is not a claim of a complete live-evaluation matrix, hard token ceiling, 1M-window behavior, or general-quality improvement. A live causal A/B remains unproven. Anthropic strict bare-JSON corroboration remains failing because otherwise-correct values were fenced.
Breaking changes
None. The capability is optional; existing request and canonical-history behavior remains unchanged. The supported host Core floor is
1.6.1.