Akiragpu / modules /database_pg.py

Commit History

  1. fix(chat): anti-loop de saida (_collapse_repetition) + busca factual alargada + PG retry apos cooldown

    Isaac Quarenta
    08e22c7

  1. feat(zerogpu): free tier por defeito + anti-recursao graceful + circuit breaker PG⁠

    Isaac Quarenta
    89fb197

  1. fix(contexto): dedup de contexto, isolamento por conversa e placeholder de busca⁠

    Isaac Quarenta
    04bb7b4

  1. fix(contexto): histórico cruza workers — grava conversation_id, fallback PG/usuario, repõe depth JEV, criatividade proactiva

    Isaac Quarenta
    9c7bd35

  1. fix(memory): STM race idx_sm_user + pg_dump version mismatch suppress

    Isaac Quarenta
    23d9636

  1. fix: Cerebras context_history, kota ban, gender detection, gíria rules⁠

    Isaac Quarenta
    2f334ea

  1. fix: gírias angolanas no Postgres + diversity no prompt⁠

    Isaac Quarenta
    76b8b99

  1. fix: safe JSON deserialization for psycopg2 JSONB + str/int comparison guards⁠

    Isaac Quarenta
    7a9d786

  1. fix: critical Python backend bugs + Flask compat removal⁠

    Isaac Quarenta
    005585d

  1. fix: pool decrementa _created ao retornar; info_softedge safe JSON

    Isaac Quarenta
    dc0543b
  2. feat: session memory como agents - turnos reais, pool fix, lifecycle completo

    Isaac Quarenta
    24c55d8
  3. fix: protege __init__ contra métodos ausentes no deploy

    Isaac Quarenta
    eb254d1
  4. fix: use module-level _pool_return() to avoid method resolution issues⁠

    Isaac Quarenta
    0c2342b
  5. fix: adiciona return_connection na DatabasePG para delegate ao pool

    Isaac Quarenta
    8b70b5f
  6. fix: connection pool leak - return connections instead of closing them⁠

    Isaac Quarenta
    a01da14
  7. fix(memory): conversation_id em saves, fallback por numero, pool de conexoes PG

    Isaac Quarenta
    6e1619d
  8. fix: adiciona import threading faltante no database_pg.py

    Isaac Quarenta
    c850c45
  9. feat: otimizacoes de contexto, prompts no DB e connection pooling⁠

    Isaac Quarenta
    adcd7ae

  1. fix: _execute_simple creates own connection without RealDictCursor to bypass psycopg2 bug

    Isaac Quarenta
    83cd2ac
  2. fix: _execute_simple uses normal cursor to bypass psycopg2 RealDictCursor bug

    Isaac Quarenta
    e17c7f1
  3. fix: brand_identity uses image_data from HF + full traceback for SQL error diagnosis

    Isaac Quarenta
    d3a2b37
  4. fix: brand_identity returns media_response format for agent loop + SQL error shows query params

    Isaac Quarenta
    2ca844a

  1. fix: recuperar_resposta_por_id adds modelo_usado and created_at to PG SELECT (matches SQLite schema)

    Isaac Quarenta
    832e882

  1. feat: remove ALL dedup/anti-loop logic from Python⁠

    Isaac Quarenta
    7020ecf

  1. fix: create akira_timers table in _init_db - was missing causing 500 errors

    Antigravity Assistant
    ea9d17f
  2. fix: DORA training pipeline was broken - 3 critical bugs⁠

    Antigravity Assistant
    5f3cff2

  1. FIX: Listen Engine filtering, training pipeline, advisory lock, PersonaTracker⁠

    Antigravity Assistant
    246a71f

  1. fix: database_pg _init_db indentation + autocommit; treinamento_worker usa get_database()

    Antigravity Assistant
    c1b4fbc
  2. Fix PG transaction abort: isolate each DDL with explicit rollback⁠

    Antigravity Assistant
    8e092cf
  3. fix: 8 bugs encontrados na auditoria final — DB, embeddings, NameError, SQL injection⁠

    Antigravity Assistant
    427b7ed

  1. fix: inject mensagem_citada into ThinkingEngine historico_recente para contexto de reply⁠

    Antigravity Assistant
    17f77b4
  2. ThinkingEngine: incluir SUGESTAO_RESPOSTA + coaching imperativo (para de ignorar contexto)

    Antigravity Assistant
    62bac87
  3. fix: lock timeout 30s + training worker + PostgreSQL setup

    Antigravity Assistant
    51b711f