Repository navigation
fix(inject): rescore at prompt boundaries (#343c) - #361
Merged
Merged
Conversation
This was referenced Nov 8, 2026
abogartz
approved these changes
Nov 8, 2026
|
🎉 This PR is included in version 0.18.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Split (c) of #343: a new user prompt re-scores relevance against the current topic instead of retaining the first topic's rows for the session. The epoch moves only when rendered bytes change; repeat prompts/model-loop requests and a new prompt selecting the same rows keep the prefix unchanged. Preserve self-write suppression by rebuilding its comparison with the frozen prompt.
This PR contains the cache-policy change and its rewritten epoch/status tests. It does not add the hint channel, guided capture, capture dedup or contradiction checks. The
prompt_revealreason is recorded separately from store changes; neither reason estimates provider cache cost.Validation: full native Windows suite 1043 pass, 32 skip, 0 fail;12743 assertions; typecheck and lint/format pass. The focused epoch/status/accounting suites pass70 tests/405assertions, including unrelated-prompt abstention, repeated-byte stability, self-writes, corrections and removals. Refs #343, #340, #349. Authored implementation, not an independent approval.