agent/php/tests/Feature
Snider 677d890308 feat(brain): make BrainService::remember() async via EmbedMemory job
remember() now writes the brain_memories row with indexed_at=null and
dispatches EmbedMemory::dispatch($memory->id) for async Qdrant + ES
indexing, instead of calling qdrantUpsert() synchronously. Response shape
matches the row state — caller gets the memory immediately, the Job
flips indexed_at once the Qdrant write succeeds.

Superseded rows still soft-delete synchronously (part of the remember
contract, not the indexing path).

php/tests/Feature/Services/BrainServiceRememberTest.php uses Queue::fake()
to assert EmbedMemory is dispatched and BrainService::qdrantUpsert() is
NOT called directly (subclass probe).

Co-authored-by: Codex <noreply@openai.com>

Closes tasks.lthn.sh/view.php?id=55
2026-04-23 13:29:30 +01:00
..
Console feat(brain): add brain:reindex artisan command 2026-04-23 13:29:18 +01:00
Jobs feat(brain): add DeleteFromIndex job 2026-04-23 12:55:45 +01:00
Livewire revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Services feat(brain): make BrainService::remember() async via EmbedMemory job 2026-04-23 13:29:30 +01:00
.gitkeep revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentApiKeyServiceTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentApiKeyTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgenticGenerateCommandTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentPhaseTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentPlanTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentSessionTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
ApiKeyManagerTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
BrainMemoryTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
BrainSeedMemoryCommandTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
BrainServiceTest.php feat(brain): add org filter to BrainService::buildQdrantFilter() 2026-04-23 12:32:58 +01:00
ContentServiceTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
CreatePlanFromIssueTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
FleetControllerTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
ForAgentsControllerTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
ForgeActionsTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
ForgejoServiceTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
IpRestrictionServiceTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
IssueTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PlanRetentionTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PlanTemplateServiceTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PromptVersionTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
ScanForWorkTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SecurityTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SessionControllerTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SessionReplayTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SprintTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
TaskCommandTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
TemplateVersionManagementTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
WorkspaceStateTest.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00