feat: add brief retrieval mode for wing/room overviews#174
feat: add brief retrieval mode for wing/room overviews#174mvanhorn wants to merge 3 commits intoMemPalace:mainfrom
Conversation
Add MemoryStack.brief() that returns a deduplicated, truncated overview of a wing/room's content. Uses L2 retrieval with deduplication (70% word overlap threshold) and a 2000-char cap. Also adds: - searcher.brief() wrapper function - `mempalace brief` CLI subcommand - Test in test_searcher.py Closes MemPalace#73.
PR Review: feat: add brief retrieval mode for wing/room overviewsExecutive Summary
Affected Areas: Business Impact: Adds a "catch me up" mode complementing Flow Changes: New code path only — no existing flows modified. Ratings
PR Health
High Priority Issues🐛 #1: Test uses non-existent
|
1 similar comment
PR Review: feat: add brief retrieval mode for wing/room overviewsExecutive Summary
Affected Areas: Business Impact: Adds a "catch me up" mode complementing Flow Changes: New code path only — no existing flows modified. Ratings
PR Health
High Priority Issues🐛 #1: Test uses non-existent
|
Adds guard for "Retrieval error" prefix alongside existing "No " check so L2 errors don't get parsed as content lines. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Thanks for the thorough review @bgauryy! On your findings: #1 (seeded_collection fixture): This fixture exists in #2 (integration marker): No tests in #3 (error path): Good catch. Fixed in f7e4cbd - added a guard for |
|
@mvanhorn - You're correct. Did another run, and fixed a context issue. Thanks for challenging the initial research. PR Review (Round 2): feat: add brief retrieval mode for wing/room overviews
Executive Summary
Affected Areas: Business Impact: Adds a "catch me up" mode complementing Flow Changes: New code path only — no existing flows modified. Ratings
PR Health
Author Response Verification (2026-04-09)PR author @mvanhorn responded to the original review in comment #4214506071. Each claim was verified against the codebase:
seeded_collection fixture |
| Finding | Original Status | Verified Status |
|---|---|---|
#1 seeded_collection fixture |
🔴 High Priority | ❌ Retracted — fixture exists, reviewer error |
#2 @pytest.mark.integration |
🔴 High Priority | ❌ Retracted — convention doesn't exist in project |
#3 Retrieval error guard |
🟡 Medium Priority | ✅ Fixed in f7e4cbd |
| #4 MCP tool not exposed | 🟡 Medium Priority | 💬 Open — follow-up suggestion |
| #5 "topics" label | 🟢 Low Priority | 💬 Open — cosmetic |
Updated recommendation: ✅ APPROVE — Both high-priority blockers were false positives. The one legitimate bug (#3) has been fixed. Remaining items (#4, #5) are non-blocking suggestions.
Created by Octocode MCP https://octocode.ai 🔍🐙
|
Thanks for the thorough re-review @bgauryy. Appreciate you verifying against the codebase. On the follow-ups:
@milla-jovovich anything else needed to merge this? |
|
Conflicts with main. Brief retrieval mode is an interesting feature — if you'd like to rebase against current main we'd review it. |
|
Rebased onto current main and resolved the conflicts (the dispatch table in Since this one was already closed I opened #601 with the rebased branch — happy to close that and reopen here instead if you'd prefer. Thanks @bensig! |
What does this PR do?
Adds a
brief()retrieval mode that returns a deduplicated, truncated overview of a wing or room's contents. Complements the existingrecall()(raw L2 retrieval) andsearch()(semantic L3 search) with a "catch me up" mode.How it works:
Available via:
MemoryStack.brief(wing=..., room=...)in Pythonsearcher.brief()wrappermempalace brief --wing X --room YCLI subcommandCloses #73.
How to test
Or run the test:
Checklist
python -m pytest tests/ -v)ruff check .)This contribution was developed with AI assistance (Codex).