mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-27 21:50:36 +00:00
Memory router kept its own bare drain wrapper (_run_memory_mutation, five call sites) after #6151 hoisted the superset into app.gateway.persistent_writes.run_drained_write - this is the remaining per-router fork called out in that review. Each call site passes the domain errors its handler already maps (NotImplementedError 501s, ValueError/KeyError 400/404/409 mappings, MemoryConflictError/MemoryCorruptionError, OSError 500s), so the helper stays silent on them exactly as the removed wrapper did; unexpected failures gain the type-only lost-failure log line per the AGENTS.md rule. Behavior is otherwise unchanged: same off-thread execution and cancel-drain semantics. The router test's drain stub moves to the shared name and pins the clear-memory error tuple. Signed-off-by: yetuge <2219677952@qq.com>