Skip to content

fix(recall): cover they-were observation leftover on how-react - #156

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

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

Conversation

@sdntsng

@sdntsng sdntsng commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

P39 pinned product /recall at 123/180. The isolated ranking miss with gold in store was conv-44-q107 (How do Audrey's dogs react to snow?, gold Confused). Live P39 /recall returned the compiler restatement Audrey's dogs dislike snow. while the observational leftover they were confused sat in the same session.

This PR extends leftover covering with a generic English how-react path: observational leftover of the form they were/looked/seemed (so) ADJ beats dislike/hate restatement when the observation line itself covers a query object token (e.g. snowy covers snow). Session expand seeds from ranked FTS hits (not the candidate map) so the leftover session is not dropped from the 8-session budget. How-react questions also trip the generic list cue; the evidence-set cap re-inserts object-linked observation leftovers.

Skip-ingest 180 on frozen diag-mh-135 is 124/180 (0.689)net +1 vs P39, unique gain conv-44-q107, 0 losses. Pin: locomo-s0-diag-mh-135-p40-20260825.md. Product SHA 72f7d97; pin docs SHA on this branch. Goal remains 162/180. Do not merge #133. Do not replace README 11.4% / 70% 1×30.

Changes

  • looksHowReactQueryhow do/does/did + react* or respond* followed by to. Does not match how should I respond.
  • leftoverCoveringReactionObservationLine — last words they were/looked/seemed (so) ADJ; ADJ lowercase alphabetic len≥4, not stopword/weak/month; 6–24 words; not they-evaluative / chat / interrogative / caption.
  • Covering scores observation +4 / companion −3; fail-closed unless observation and the covering line covers an object token.
  • Search: drop react*/respond* only on how-react when tokens remain; floor 0.9; rank boost 0.75; keep leftover episodes; FTS-seeded session expand + evidence-set cap keep for object-linked observation.
  • Enumerate items sync to the covering line; hybrid skip when covering is object-linked observation.
  • leftoverCoverRareTokens minLen 4 on how-react so object tokens like snow/dogs are kept.
  • Pin docs: P40 124/180 row in docs/benchmarks/README.md, dated pin, summary JSON, failure ledger, cycle-closeout, handover unique Next = dog-owners group (conv-44-q117).
  • Holds: dated injury reported-speech, NYC first-person got, dancers they-evaluative still win over how-react observation.

Test plan

  • gofmt on touched files
  • unset BRAINY_DATABASE_URL && go vet ./internal/memory ./cmd/api
  • unset BRAINY_DATABASE_URL && go test ./internal/memory (pass)
  • Live /recall holds after restart: dogs/snow confused 12/12; Tim injury doctor-said; NYC It's got; dancers graceful; Joanna writing; turtle-care; electronic; dinner; Gina advice; veterans; push; smartwatch / P28 22/22
  • Skip-ingest 180 --run-prefix locomo-s0-diag-mh-135-p40 vs 123/180: 124/180, +1/−0, unique conv-44-q107

Linear / tracking

Risk / follow-ups

  • Isolated leftover covering is saturating. Remaining mass is SH PROOF 14 + RETRIEVAL 24 (SH RETRIEVAL 9→8). Next ranking miss with gold in store: conv-44-q117 joined a dog owners group.
  • Do not chase camping-peaceful (not stored). Do not steal Deborah for Jolene. Do not steal gym restatement for diet+walking. Do not special-case German vs Spanish.
  • Do not add a dog/snow or dog/group dictionary. Do not drop react globally. Do not drop turtles/care. Do not drop say/motivate/spread/advice. Do not revive P29.
  • Honest: 90% = 162/180. Full n=1540 product /recall is still 11.4% on SHA 1b5ab3e.
Open in Web Open in Cursor 

sdntsng and others added 5 commits August 25, 2026 14:41
How-react leftover covering admits observational leftover of the form
"they were/looked/seemed (so) ADJ" when another packet line covers the
object tokens. Dislike/hate restatements do not cover. Session expand
admits the observation leftover from the same session as the FTS seed.
Do not add a dog/snow dictionary. Do not steal dancers/NYC/injury.

Co-authored-by: aria <aria@engramhq.com>
They-were/looked leftover only covers how-react when the line itself
covers an object token (snow via snowy, dogs). Session-neighbor "they
looked so cute" leftover does not cover. Rank floor/boost and episode
keep use the same gate.

Co-authored-by: aria <aria@engramhq.com>
How-react queries match the generic list cue (content token "dogs") and
NeedsMultiHop, so selectEvidenceSetCovering can fill top-k with restatement
rows that already cover object tokens and drop they-were leftover. Re-insert
object-linked observation leftovers into the capped results.

Co-authored-by: aria <aria@engramhq.com>
List-corpus candidates span many sessions. Map iteration spent the
8-session fetch budget before the leftover session, so they-were
observation was admitted only some of the time. Seed from ranked FTS
hits instead.

Co-authored-by: aria <aria@engramhq.com>
Skip-ingest product /recall on diag-mh-135 is 124/180 (net +1 vs P39). Unique gain is conv-44-q107 dogs/snow they-were confused. Do not replace README 11.4% / 70% 1x30.

Co-authored-by: aria <aria@engramhq.com>
@sdntsng
sdntsng marked this pull request as ready for review August 25, 2026 15:23
@cursor
cursor Bot merged commit 04a2836 into dev Aug 25, 2026
2 checks passed
@sdntsng
sdntsng deployed to dev - brainy-worker-staging August 25, 2026 15:23 — 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