Skip to content

fix(inject): rescore at prompt boundaries (#343c) - #361

Merged
abogartz merged 3 commits into
abogartz:mainfrom
WhollyMindless:fix/343-prompt-rescore
Nov 8, 2026
Merged

abogartz merged 3 commits into
abogartz:mainfrom
WhollyMindless:fix/343-prompt-rescore

Conversation

@WhollyMindless

Copy link
Copy Markdown
Contributor

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_reveal reason 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.

@abogartz
abogartz merged commit 719e3d0 into abogartz:main Nov 8, 2026
4 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.18.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants