Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/powercontext/builtin/artifacts/memory/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,10 @@ async def _validated_entries(self, memory: Memory) -> tuple[MemoryEntryVersion,
if version.memory_artifact_id != memory.artifact_id or version.entry_id != item.entry_id:
raise InvalidMemoryCitationError("cross-identity")
material = self._material_from_version(version)
if material.content_hash != item.entry_content_hash:
if (
material.content_hash != item.entry_content_hash
or version.entry_content_hash != item.entry_content_hash
):
raise InvalidMemoryCitationError("hash-mismatch")
ordered.append(version)
return tuple(ordered)
Expand Down
Loading
Loading