Skip to content

fix: retain active persisted reminders across requests and resume - #51

Merged
Brian Krabach (bkrabach) merged 3 commits into
mainfrom
lane/rr-loop-a7ec
Sep 15, 2026
Merged

Brian Krabach (bkrabach) merged 3 commits into
mainfrom
lane/rr-loop-a7ec

Conversation

@bkrabach

Copy link
Copy Markdown
Collaborator

What changed

  • Use the optional context.request_retention capability for normal, continuation, and bounded-finalization request assembly.
  • Deduplicate unchanged, complete canonical reminder bodies across resume.
  • Log a visible compatibility warning when an older context does not expose the optional capability.

Persist mode remains the default and message roles are unchanged. Explicit legacy tail mode is unchanged. Whole-body deduplication is not per-contributor deduplication. This PR uses the compatible Context capability implementation merged in microsoft/amplifier-module-context-simple#40.

Why

The active persisted reminder needs to survive request-view compaction and resume without repeatedly adding an unchanged full reminder body.

Verification

  • Production loop suite: 274 passed.
  • Composed coverage using released Core 1.6.1: context-simple 140 passed, 1 expected failure; provider-openai 951 passed, 2 live tests deselected.
  • Terra and Anthropic level-8 policy/human delivery and CLI resume were observed under separately pinned fixtures.

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 output used a Markdown fence.

Breaking changes

None. The retention capability is optional; older contexts retain legacy assembly with a warning.

Port reviewed request-retention assembly from candidate ea96aa6, adding canonical admission-metadata resume deduplication, compatibility warning fallback, and focused retention tests.

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>
Generated with Amplifier

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
@bkrabach
Brian Krabach (bkrabach) merged commit c417041 into main Sep 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants