Skip to content

P30: what-made leftover covering + lexical admit for first-person cause lines - #146

Merged
cursor[bot] merged 5 commits into
devfrom
pr/locomo-180-p30-1e9e
Aug 25, 2026
Merged

cursor[bot] merged 5 commits into
devfrom
pr/locomo-180-p30-1e9e

Conversation

@sdntsng

@sdntsng sdntsng commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

P30 is an isolated increment on frozen P28 (113/180). conv-48-q138 (What made being part of the running group easy for Deborah to stay motivated?) stores the gold first-person cause line (We help and push each other…) but hybrid restates enjoy/participate. Isolated leftover covering already prefers off-query evidence (push) when that line is in the packet.

Live miss was retrieval, not covering: FTS ANDs made/part/Deborah, ILIKE-OR recency overfetch is ~700 rows (gold at ~360 vs cap 120), and evidence-set covering then stuffed high-DF stay lines into top-30.

This PR (1) prefers off-query evidence on what-made leftover covering, (2) drops what-made structure tokens (made/part), the queried person, and short reason verbs (stay/easy) from lexical search, and (3) runs token-admit and evidence-set covering on that filtered token set so first-person cause lines can enter the packet. Generic English, not a LoCoMo-named product rule. Dest/main stay on P28 until a net-positive skip-ingest 180.

Changes

  • internal/memory/recall.go: looksWhatMadeQuery, leftover covering scores off-query evidence (push/remind) over enjoy/participate restatement; hybrid replace gate leftoverCoveringWhatMadeMissesEvidence.
  • internal/memory/service.go: searchLexicalQueryTokens drops made/part, capitalized person tokens, and short reason verbs on what-made queries; admit + covering use the filtered tokens.
  • Tests: TestLeftoverCoveringWhatMadePrefersOffQueryEvidence, TestSearchLexicalTokensDropsWhatMadeStructureAndPerson.

Test plan

  • go test ./internal/memory/
  • Live q138 /recall answers with push (not enjoy/participate restatement)
  • P28 holds 22/22 including paint Saturday, health-year 2021, destress pottery, Boston, renovate 2022, smartwatch enumerate reminder
  • Skip-ingest 180 --run-prefix locomo-s0-diag-mh-135-p30 vs P28 545e82; pin only if net-positive vs 113/180

Linear / tracking

  • ENG-176 (MH), parent ENG-168

Risk / follow-ups

  • Do not pin if 180 is net 0 or a dip. Do not revive P29 attended-echo ranking. Do not FF dest/main until net-positive.
  • Do not add made/part to global leftover-weak tokens. Do not switch FTS to OR-all-terms.
  • 113/180 is still 49 short of 162 (90%+). Full n=1540 stays 11.4% on 1b5ab3e. No LME-500 claim.
Open in Web Open in Cursor 

sdntsng and others added 2 commits August 25, 2026 07:31
Enjoy/participate paraphrases restated 'what made … easy/motivated'
questions. Score leftover lines that add off-query evidence plus a
reason token, and let that covering replace a restating hybrid.

Co-authored-by: aria <aria@engramhq.com>
Causal leftover lines are often first-person and omit the queried name.
AND/ILIKE on "made"/"part"/person floods recency overfetch so the cause
line never enters the recall packet for leftover covering.

Co-authored-by: aria <aria@engramhq.com>
@cursor cursor Bot changed the title P30: what-made leftover covering prefers off-query evidence P30: what-made leftover covering + lexical admit for first-person cause lines Aug 25, 2026
sdntsng and others added 3 commits August 25, 2026 07:49
Short reason verbs ILIKE-flood and evidence-set covering was stuffing
"stay connected" lines into top-k, crowding out first-person cause facts.
Admit and covering now use the filtered lexical token set.

Co-authored-by: aria <aria@engramhq.com>
Using the dropped lexical set for all queries stripped year from
which-year evidence covering and returned an attended-health echo
instead of 2021.

Co-authored-by: aria <aria@engramhq.com>
Skip-ingest 180 on frozen diag-mh-135 is 114/180 (+1 / -0 vs P28). SH 61→62.
Named recovery: first-person running-group cause line (push) on what-made.
P29 111/180 dip is not a pin.

Co-authored-by: aria <aria@engramhq.com>
@cursor
cursor Bot merged commit 0ffbd6f into dev Aug 25, 2026
@sdntsng
sdntsng deployed to dev - brainy-worker-staging August 25, 2026 08:07 — with Render Active
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