Skip to content

S2 list completeness: full typed sets without leftover hop dumps - #172

Merged
cursor[bot] merged 9 commits into
devfrom
pr/s2-list-completeness-1e9e
Aug 26, 2026
Merged

cursor[bot] merged 9 commits into
devfrom
pr/s2-list-completeness-1e9e

Conversation

@sdntsng

@sdntsng sdntsng commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

S2 enumerate was truncating typed lists to the latest memory_current_state row. This branch scans the bounded atom set for item/skill/place-set/done-activity questions so older class items (mountaineering past the current hike) are not recency-starved, without turning leftover point facts into place dumps.

Pinned P58: same-store skip-ingest 180 is 141/180 (MH 21/33, OD 4/11, SH 85/98, temporal 31/38) vs P54 140/180. Unique gain: John outdoor hiking and mountaineering (conv-41-q32). Unique losses: none. Covering leftover holds (graceful, snow-confused, soda and candy, yoga+running). Singular Tokyo location stays a point fact (Shinjuku).

This is not leftover covering. This is not 90% (162/180 on this sample; public LoCoMo is n=1540 / 11.4%). This is not a Mem0 same-pin. Do not replace README 11.4% / 70% 1×30.

Not-pins on this branch (not FF'd as pins): P55 122/180, P56b 135/180, P57 140/180 (Shinjuku regression).

Changes

  • Historical atom scan (cap 128) for what-items, names, plural locations, tricks, instruments, and activities + done.
  • Singular location is a point fact, not a place list (Shinjuku vs Shibuya).
  • Covering is not locked off by enumerate item-count. Hop dumps do not lock hybrid.
  • For-clause class-referent drop, outdoor/mountaineering family, workmates=colleagues, acquired cue.
  • Pin docs: P58 2026-08-26, README same-pin row, cycle-closeout.

Test plan

  • go test ./internal/memory/
  • P55–P57 180s measured and discarded (not pins)
  • Live hold Shinjuku + mountaineering + P54 counts
  • Skip-ingest 180 P58: 141/180, unique losses none vs P54
  • Pin docs committed (25314e8)

Linear / tracking

ENG-176 / ENG-168. S2 enumerate. Not leftover covering.

Risk / follow-ups

Open in Web Open in Cursor 

sdntsng and others added 5 commits August 26, 2026 05:32
List hops were short-circuiting on memory_current_state (one latest
possession/activity) and leftover covering was replacing multi-item
typed lists. Scan the atom set for enumerate/count (bounded 128),
drop for-clause class referents, keep typed lists unless a like-list
leftover is actually more complete, and treat workmates as colleagues.

Co-authored-by: aria <aria@engramhq.com>
P55 122/180 was hop dumps replacing leftover covering because
looksListQuery (dogs/activity/events) forced historical atom scans,
hybrid locks, and covering typedJoin. Gate those on wantsTypedSetScan
(what items / what kind / plural activities) so how/why leftover and
singular what-activity questions keep covering.

Co-authored-by: aria <aria@engramhq.com>
@cursor cursor Bot changed the title S2 list completeness: full typed set, not current-state row S2 list completeness: full typed sets without leftover hop dumps Aug 26, 2026
sdntsng and others added 4 commits August 26, 2026 07:26
P56b 135/180 lost five leftover items vs P54 140. Covering typedJoin
on enumerate+2 items blocked Nike/Gatorade, RPGs, soda and candy, and
yoga+running. Drop that lock. Restrict what-kind set scans to class
nouns (tricks/meals/snacks), not deals/games.

Co-authored-by: aria <aria@engramhq.com>
Activity leftover (helping/distracted, community yoga+running, snacks)
does not need a 128-atom historical scan; that ranking starved covering.
Keep historical scans for what-items, names, locations, tricks, and
activities X has done (mountaineering past the current-state hike).

Co-authored-by: aria <aria@engramhq.com>
P57 tied P54 at 140/180: John outdoor mountaineering held, but
Calvin's Shinjuku leftover became Shibuya because looksLocationListQuery
matched any \"location\" substring and enumerated Tokyo places. Only
plural locations and practice-at lists enumerate.

Co-authored-by: aria <aria@engramhq.com>
Same-store skip-ingest 180 is 141/180 (MH 21, OD 4, SH 85, temporal 31)
versus P54 140/180. Unique gain: John outdoor hiking and mountaineering.
Unique losses none. Not leftover covering. Not 90%. Not a Mem0 same-pin.

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