iachat/enterprise/app/services/captain/contact_memories
Rodribm10 08a06c6528
Some checks failed
Build and Push to GHCR (multi-arch) / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Build and Push to GHCR (multi-arch) / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Build and Push to GHCR (multi-arch) / merge (push) Has been cancelled
fix(captain): memory allows 'Solicitou Pix ..., aguardando pagamento'
Previous commit made the extractor reject any reservation-shaped fact
without a literal payment confirmation in the conversation. That
killed the useful middle ground: a customer who requests a Pix and
hasn't paid yet is still a concrete signal worth remembering (for
follow-up, interest mapping, CRM). We were going from "hallucinated
reservation" to "nothing remembered".

Add the intermediate pattern:
- Payment confirmed → "Reservou X para Y em DD/MM/AAAA"
- Pix generated, no payment yet → "Solicitou Pix para X em DD/MM/AAAA, aguardando pagamento"
- Just a price quote → nothing

The "aguardando pagamento" suffix is required so the downstream recall
never confuses it with a closed reservation.
2026-04-22 05:01:24 -03:00
..
contradiction_checker_service.rb fix(captain-memory): temporal memory model + aggressive dedup 2026-04-19 08:30:42 -03:00
extraction_service.rb fix(captain): memory allows 'Solicitou Pix ..., aguardando pagamento' 2026-04-22 05:01:24 -03:00
prompt_injection_service.rb feat(captain-memory): add PromptInjectionService formatting memories as XML 2026-04-19 00:05:11 -03:00
recall_service.rb fix(captain-memory): raise RecallService timeout 0.5s -> 2.0s 2026-04-19 07:25:19 -03:00