fix(context): protect human anchors and recover current reminders - #39
Draft
Brian Krabach (bkrabach) wants to merge 1 commit into
Draft
Brian Krabach (bkrabach) wants to merge 1 commit into
Brian Krabach (bkrabach) wants to merge 1 commit into
Conversation
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.
Problem
Compaction treated persisted ephemeral reminders as ordinary user anchors. A reminder could therefore displace the actual first/last human request, and a reminder re-emitted for the current turn could be absent after compaction.
Change
userrole alone. The level-8 extreme-compaction fallback retains its established legacy behavior.pre_userortailplacement for that request only. Canonical history is not duplicated; unsafe placement or an insufficient budget fails visibly.This context PR independently fixes first-human protection. The overlay API is intentionally present for its companion loop consumer, which remains local and unpublished until this upstream context change is merged; this PR does not claim both changes have shipped.
Verification
146 passed, 1 expected xfailed; loop companion277 passed.SET_MESSAGESrestore/dedup (not full-click resume), and A→B→A supersession.Outstanding gates