Skip to content

fix(recall): recover community participation sets from joined activities - #175

Merged
cursor[bot] merged 3 commits into
devfrom
pr/s2-community-participation-sets-1e9e
Aug 26, 2026
Merged

cursor[bot] merged 3 commits into
devfrom
pr/s2-community-participation-sets-1e9e

Conversation

@sdntsng

@sdntsng sdntsng commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Skip-ingest 180 leftover conv-26-q39 (“In what ways is Caroline participating in the LGBTQ community?”) currently answers with a transition-courage leftover even though the frozen store already has joined/attended/organizing/mentorship facts (activist group, pride parade, art show, mentorship program). This is an S2 enumerate miss, not a WRITE gap.

This change recovers those objects from listed memories for in what ways / ways + community questions, locks enumerate to the activity hop, and keeps the typed join against leftover covering. Cues are generic (joined / organizing / host / article participating in / mentorship program, then attended) — not an LGBTQ/activist/parade gold dictionary. Bare participates in hiking, attended back, and contacted her mentor for adoption advice do not extract. Joined/organizing/host slots are ranked ahead of attended compiler junk so the activity-hop cap cannot drop the art-show object.

P61 pin remains 144/180. This PR is a candidate for ≥145/180 only after a live probe and the same skip-ingest 180. Do not treat 144/180 as 90% or as beating Mem0.

Changes

  • internal/memory/hop_executor.go: looksParticipationSetQuery, two-pass recoverParticipationSlots (primary joined/organizing/host/participating-in-article, then attended), thin-stop for back / not-so-great, tails for scheduled / featuring / in.
  • internal/memory/recall.go: historical scan + enumerate lock to activity; skip dual-entity join; keep typed participation joins vs leftover covering (≤400 runes); named-community token filter still runs.
  • internal/memory/recall_test.go: Caroline-like set vs nurse/hiking/courage/adoption/attended-junk leftovers; detector/object unit tests; leftover-covering keep case.

Test plan

  • gofmt on touched files
  • unset BRAINY_DATABASE_URL; go test ./internal/memory/ (ok after ranking fix)
  • Live probe on :18100 after rebuild: conv-26-q39 is activist/pride/art/mentor, not courage; P61 holds (q22 shelter/homeless/hospital, food q18, soda/candy, Audrey collars, James tricks, Maria dogs, Jolene snakes)
  • Skip-ingest 180 (--fail-closed --tenant-prefix diag-mh-135 --stratified 180 --seed 1 --conversations 10) pin only if ≥145/180 vs P61 144/180 and no unique leftover losses
  • go vet ./... before merge

Linear / tracking

ENG-176 (MH lists / S2), parent ENG-168.

Risk / follow-ups

Open in Web Open in Cursor 

sdntsng and others added 3 commits August 26, 2026 13:28
Enumerate joined/attended/organizing/mentorship objects for "in what
ways … community" questions so leftover courage slogans cannot crowd
out the typed participation list.

Co-authored-by: aria <aria@engramhq.com>
Compiler 'attended back' / 'attended not-so-great' rows were filling the
activity-hop cap before organizing/host art-show objects. Primary cues
now win the first slots; article-only participating-in still extracts
'show' lists without hobby 'participates in hiking'.

Co-authored-by: aria <aria@engramhq.com>
Same skip-ingest 180 as P61. Unique +1/-0: conv-26-q39 leftover
courage slogan to joined/organizing/mentorship/pride set.

Co-authored-by: aria <aria@engramhq.com>
@cursor
cursor Bot merged commit cc96d17 into dev Aug 26, 2026
2 checks passed
@sdntsng
sdntsng deployed to dev - brainy-worker-staging August 26, 2026 13:53 — 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