harbor run -t openthoughts/tasktrove-exp-rpt-nemotron-cpp-nemotron-cpp-4555harbor download openthoughts/tasktrove-exp-rpt-nemotron-cpp-nemotron-cpp-4555Task: Implement a small, injectable pre-save message validation module
Goal Create a self-contained implementation under /app/ that provides:
What the function must do (behavior the tests rely on)
If the original_record is not empty, throw SkygearChatException.
If original_record is empty, validate that the message sender is part of the conversation.
If the required fields are missing or the conversation cannot be retrieved, you may throw SkygearChatException as a defensive default (tests focus on the two cases above).
Design requirements
Location: Place all code under /app/.
Provide a clean, header/source split:
Error type: Use the existing SkygearChatException for error signaling:
Dependencies:
Safety and compatibility:
What to deliver
Notes