Skip to content

fix: ContextEvidence vs ProofChain — stop hop packet replacement - #102

Merged
cursor[bot] merged 1 commit into
devfrom
pr/context-proof-split-a6c7
Aug 13, 2026
Merged

fix: ContextEvidence vs ProofChain — stop hop packet replacement#102
cursor[bot] merged 1 commit into
devfrom
pr/context-proof-split-a6c7

Conversation

@sdntsng

@sdntsng sdntsng commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Wave D showed LME-20 0/20 with mean 24.45 search hits: hops and hybrid reading starve the reader of broad search context. bindPacketFromHopResults currently replaces pkt.Items / Contents / MemoryIDs, so the hybrid reader only sees hop-narrowed text.

This is PR5 (context vs proof). Coverage / hop_join_proven still uses the hop proof chain. Reader/context assembly keeps SearchOpt hits.

Changes

  • EvidencePacket gains ContextEvidence and ProofChain.
  • bindPacketFromHopResults snapshots search contents as context, appends hop items as proof, and does not wipe existing contents.
  • formatHybridMemoryLines leads with context, then the hop chain.
  • Tests: hop bind keeps weather/context lines; hybrid lines lead with NY before Austin hop proof.

Test plan

  • go test ./internal/memory/
  • OpMem 13/13 after merge (non-reg; this PR is retrieval packet shape only)
  • Do not treat this as a LoCoMo/LME quality lift until a dedicated pin

Linear / tracking

Wave D decision gate after #100: PR5 first.

Risk / follow-ups

  • PR3 (IncludeHistorical + temporal_score) and PR4 (fixed-token budgets / episode penalty) are separate branches.
  • No SOTA / beats-Mem0 language.
  • dev only; do not merge to main.
Open in Web Open in Cursor 

bindPacketFromHopResults no longer replaces packet Contents/Items.
ContextEvidence stays the broad search hits; hops become ProofChain
for hop_join_proven. Hybrid reader leads with context.

Co-authored-by: Siddhant Singh <sdntsng@users.noreply.github.com>
@sdntsng
sdntsng marked this pull request as ready for review August 13, 2026 12:48
@cursor
cursor Bot merged commit ecf9c14 into dev Aug 13, 2026
2 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.

1 participant