Skip to content

Session recall: OR fallback, interactive-first scan, rewind leak fix, --resume @platform - #1

Open
gabmfranco-ds wants to merge 2 commits into
mainfrom
feat/session-recall-continuity
Open

gabmfranco-ds wants to merge 2 commits into
mainfrom
feat/session-recall-continuity

Conversation

@gabmfranco-ds

Copy link
Copy Markdown
Owner

PR interno (nosso fork). Resumo das mudanças do trilho A do roadmap:

  1. Busca: query multi-termo sem resultado é re-tentada com OR (recall 14/20 → 19/20 no harness de plans/recall/).
  2. Discover: sessões interativas têm prioridade sobre cron na janela de varredura.
  3. Fix: mensagens desfeitas por rewind não vazam mais nas janelas de contexto.
  4. CLI: hermes --resume @telegram retoma a sessão mais recente da plataforma no terminal.

Testes: 319 passed, 11 skipped nos suites afetados (Windows).

Quando quisermos levar ao upstream: o PR NousResearch#94783 foi fechado, dá para reabrir com 1 clique.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JUZHShW7jYpF4PxrjYLc4Q

… rewind leak fix, --resume @platform

Measured on a live corpus with a 20-question recall harness: hit@3 went
from 14/20 to 19/20. Four changes:

1. search_messages: a multi-term query that finds nothing under FTS5's
   implicit AND is retried with the same terms OR-joined (BM25 still
   ranks). Queries with explicit operators, phrases, prefix globs, or CJK
   are never rewritten.

2. session_search discover: two-pass scan — interactive sources first,
   demoted (cron) sources only top up the remaining window. Post-hoc
   demotion (NousResearch#19434) could not help when >_DISCOVER_SCAN_LIMIT cron rows
   filled the window before interactive hits were ever fetched.

3. get_messages_around / get_anchored_view: rewound rows (active=0,
   compacted=0) no longer surface through context windows and bookends.
   search_messages already hid them as hits, but the surrounding window
   leaked exactly the content the user's rewind removed. The anchor
   itself stays visible; compaction-archived rows (NousResearch#38763) stay visible.

4. CLI: --resume @telegram / @WhatsApp / @<platform> resumes that
   platform's most recent session in the terminal — the reverse direction
   of /handoff, following the --resume @claude/@codex precedent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JUZHShW7jYpF4PxrjYLc4Q
@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

૮ >ﻌ< ა ci review

ran on 17ac93f — feat(mcp): add Trello catalog entry

❌ Job failures

Check contributors / check-attribution · View job

Job Check contributors / check-attribution failed.


Review label gate / Review label gate · View job

Job Review label gate / Review label gate failed.


debug info

CI timings

CI timings · View report · View job

Wall time 1440m24s vs 1440m16s (+0.0%). 9 job(s) slower, 2 faster, 1 unchanged.

  • Check contributors / check-attribution: +52.0s
  • Check no committed infographics / check-no-committed-infographics: +13.0s
  • OSV scan / Emit review status: +11.0s
  • OS-specific tests / macOS-only tests: +8.0s
  • Detect affected areas: +8.0s

Stdio server (@delorenj/mcp-server-trello, pinned 1.8.1) exposing 57
tools for boards, lists, cards, checklists, comments, and labels.
Passes TRELLO_API_KEY/TRELLO_TOKEN through as ${VAR} env interpolation
since stdio subprocesses only inherit explicitly declared env vars.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADe8Vk2EPo8nbtVXHwvxHS

This branch has not been deployed

No deployments
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