fix: harden palace security checks

Agent-Logs-Url: https://github.com/MemPalace/mempalace/sessions/775f2fc4-3051-462e-8586-6d694b55da0d

Co-authored-by: igorls <4753812+igorls@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-12 22:21:42 +00:00
committed by Igor Lins e Silva
parent bb577bb41f
commit c478dfa173
8 changed files with 238 additions and 15 deletions
+3
View File
@@ -123,6 +123,9 @@ class TestTailTruncation:
class TestLengthGuards:
"""Verify output length constraints."""
def test_max_query_length_reduced(self):
assert MAX_QUERY_LENGTH == 250
def test_output_never_exceeds_max(self):
# Very long question sentence
long_question = "a" * 1000 + "?"