mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-07 06:42:39 +02:00
1.6 KiB
1.6 KiB
After Work Fixes
Middleware Risk Flags (new_chat)
These are known "policy/routing via middleware" risks to review later.
FileIntentMiddleware
- Risk:
file_writeclassification can forcewrite_file/edit_fileand override deliverable or connector tool selection. - Example failure: user asks for video/report artifact, agent writes into
/documents/*instead.
KnowledgePriorityMiddleware
- Risk: KB planner and injected priority hints can over-anchor turns to KB reads when connector action is the better path.
KnowledgeTreeMiddleware
- Risk: injected workspace tree can bias behavior toward file navigation/writes by default.
SurfSenseFilesystemMiddleware+KnowledgeBasePersistenceMiddleware
- Risk: mistaken
write_fileactions become persisted NOTE documents in KB, making wrong-path behavior durable.
PermissionMiddleware
- Risk: deny/ask rules can hide or block the correct tool, appearing as "model chose wrong tool" when it never had access.
- Subagent middleware parity (
chat_deepagent.py)
- Risk: parent vs subagent stack differences can produce inconsistent behavior across similar tasks.
SpillingContextEditingMiddleware+ compaction
- Risk: context trimming can remove critical tool evidence and cause wrong retries/tool choices.
ToolCallNameRepairMiddleware
- Risk: malformed calls may be auto-repaired to unintended tools in edge cases.
DedupHITLToolCallsMiddleware/DoomLoopMiddleware
- Risk: legitimate repeated calls can be suppressed or stopped early.
MemoryInjectionMiddleware
- Risk: injected memory may bias tool choice away from fresh connector/KB evidence.