agent/php/tests
Snider b7bc526d50 test(agent/brain): regression coverage for filter field bounds (closes #1000)
#1000 was stale-fixed: BrainService::recall() validates filter input
via the shared validator at line 489, which already bounds org,
project, type, agent_id. forget() bounds id at line 499.

These tests pin the safety claim explicitly:
- project=129 chars rejected
- agent_id=65 chars rejected
- project="core" accepted (sanity)
- project=128 chars accepted (boundary)

Note: BrainList.php (separate MCP list path) still lacks explicit
max lengths for project + agent_id — file outside this lane's allow-
list. File a follow-up if that surface needs the same bounds.

Co-authored-by: Codex <noreply@openai.com>
Closes tasks.lthn.sh/view.php?id=1000
2026-04-25 19:23:41 +01:00
..
Feature test(agent/brain): regression coverage for filter field bounds (closes #1000) 2026-04-25 19:23:41 +01:00
Fixtures revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Unit fix(brain): wire Qdrant api-key header from BRAIN_QDRANT_API_KEY 2026-04-24 05:21:15 +01:00
UseCase revert fcb9c189e5 2026-04-23 12:32:57 +01:00
views revert fcb9c189e5 2026-04-23 12:32:57 +01:00
.DS_Store revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Pest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
TestCase.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00