Skip to content

[logicaOS-autohealing] token_budget_daily PGRST205 + recall abort — 2026-07-05 #16

Description

@mariomkjr

Auto-Healing Report — LogicaOS QA (2026-07-05)

Este issue documenta 3 regressões detectadas automaticamente no ciclo de QA.


🔴 BUG #1 — token_budget_daily PGRST205 (565 erros, crítico)

Módulo: synapses/token-budget.jsc
Freq: ~1x/min contínuo

Causa: PostgREST com schema cache stale. A tabela existe (SDK confirma), mas o cliente REST retorna 404 PGRST205.

Fix imediato: NOTIFY pgrst, 'reload schema'; no Supabase SQL Editor
Fix estrutural: Adicionar retry/backoff em PGRST205 no wrapper synapses/token-budget.js


🟠 BUG #2 — logica-mind recall abort (152 ocorrências)

Módulo: logica-mind recall (provavelmente memory-hub.jsc)
Padrão: recall indisponível (This operation was aborted) — degradando para sem-memória

Causa: AbortController com timeout curto + instabilidade de rede Supabase (fetch failed em múltiplas tabelas no mesmo período).

Fix: Aumentar timeout AbortController para 15-20s; adicionar retry antes de degradar para sem-memória; circuit breaker com cache-only fallback.


🟡 BUG #3 — audit_log tabela ausente (1 ocorrência)

Módulo: audit-log writer
Padrão: insert(audit_log) falhou: 404 — table not found

Causa: Tabela audit_log não existe. Hint do PostgREST sugere audience_runs.

Fix: Criar migration com CREATE TABLE audit_log ou corrigir nome no código.


Detectado por: QA Auto-Healing — 2026-07-05T09:52:00Z
Sistema: LogicaOS v1.9.141

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions