honcho/tests/crud
Rajat Ahuja b13e4f7745 fix(deriver): clear dangling session hint on pending dreams at session delete
A dream consolidates an entire (observer, observed) collection, not a
single session — its payload.session_name is a config/context hint set to
the session of the most recent explicit document (see
DreamScheduler._execute_dream). Dream queue items therefore carry
session_id=None and a work_unit_key with no session component, so neither
delete in delete_session reaches them.

That left pending dreams pointing at a deleted session, where run_dream's
config resolution raises ResourceNotFoundException and the task errors out
for no good reason. Strip the stale hint instead of dropping the dream, so
it runs workspace-scoped — a state the orchestrator already supports (the
manual dream route enqueues it whenever session_id is omitted).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-07 14:42:40 -04:00
..
test_document.py Session-purity invariant + card_refresh dream type (DEV-2000) (#883) 2026-07-23 14:22:07 -04:00
test_peer_card.py sdks: add set peer card function (#371) 2026-02-09 15:35:57 -05:00
test_representation_manager.py Fix: vector query top k zero (#970) 2026-08-03 12:31:03 -04:00
test_session.py fix(deriver): clear dangling session hint on pending dreams at session delete 2026-08-07 14:42:40 -04:00
test_workspace.py feat: implement async workspace deletion with active session checks (#378) 2026-02-12 18:48:00 -05:00