Files
crewAI/tests
Devin AI 98227d29bb Add memory_guard parameter to Crew for validating memory writes
Implements #6043: Add write guards for multi-agent crews to prevent
cross-agent memory poisoning.

- Add memory_guard field to Crew (Optional[Callable[[str], bool]])
- Integrate guard check into Memory base class save()
- Add guard check to LongTermMemory.save() (bypasses super)
- Propagate guard from Crew to all memory instances on creation
- Log warnings when writes are blocked
- Add 19 tests covering all memory types and Crew integration

Co-Authored-By: João <joao@crewai.com>
2026-06-04 20:44:48 +00:00
..
2024-12-17 16:00:15 -05:00
2024-11-18 00:21:36 -03:00
2024-12-23 13:19:58 -05:00
2023-10-29 19:51:59 -03:00
2023-12-27 15:13:42 -05:00
2024-11-12 15:04:57 -03:00