Repository navigation
fix(plugin): keep collapsed-hit detail marker visible in #318-lite packing (#326) - #327
Merged
Merged
Conversation
Owner
Author
|
Post-fix dogfood evidence (truth-maintenance rerun) I reran the integrated recall-lane operator pass on the fixed branch build ( Result✅ PASS — collapsed-hit detail marker now survives under budget on long-primary packed entries. Concise evidence (long-primary edge case)Prompt:
Observed (
Snippet:
This confirms #326 fixes the transparency defect without widening scope (#320 remains held). |
This was referenced Mar 11, 2026
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 this does
Fixes the #318-lite transparency defect tracked in #326 by ensuring packed same-source entries retain the collapse-detail marker/tail even when the primary snippet is very long.
Problem / Context
Issue: #326
Dogfood showed this defect on
main:packed_hits > 1[collapsed ...]tail after truncationRoot cause:
collapseSameSourceHitsconcatenatedprimary + [collapsed ...: tail]maxPackedContentCharsHow it works
File:
plugin/recall.tscollapseSameSourceHits:minCollapsedTailChars) for the collapse marker/tailNo architecture changes. No storage changes. No #320 behavior.
Tests added
File:
plugin/recall.test.tsNew deterministic regression test:
buildRecallPlan keeps collapsed marker + secondary detail under long primary snippetpacked_hits === 2[collapsed 2 same-source hits:<= 520)Testing done
Exact commands run:
node --check plugin/index.tsnode --check plugin/recall.tsnode --test plugin/*.test.tsgo test ./...Integrated dogfood rerun (post-fix)
Reran integrated recall-lane operator pass on main-equivalent branch with the same prompt set (+ defect repro prompt).
Observed on defect repro prompt (
Q merged 323 then 324 then 325 next 318 lite):... [collapsed 2 same-source hits: - Mister told Q he wi...]Breaking changes / risks
Breaking changes: None.
Risk note:
packed_hits > 1paths.Out of scope (enforced)
Merge notes