[feat-024] Refetch review on job terminate + use passages over column-refusal

↗ view on GitHub · Nick Whitehouse · 2026-05-07 · 4f7e58ca

Two fixes for symptoms reported on prod:

1. After a tabular_generate job finishes, the poll loop's prev.map
   delta only updates cells that already exist in state - anything
   completed in the gap between the last delta poll and the
   terminal-status flip stays blank until the user hits refresh.
   Refetch the canonical review state once polling exits so the UI
   matches the DB without manual reload.

2. The TR chat system prompt framed the world entirely around
   columns ("call read_table_cells before answering"), so the LLM
   refused questions whose subject wasn't a column even when
   RETRIEVED PASSAGES contained the answer. Tighten the framing to
   tell the model both sources are valid grounding and to consult
   passages before declining.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Repository nwhitehouse/mike
Author Nick Whitehouse <nick.whitehouse@mccarthyfinch.com>
Authored
Parents c8bbffb8
Stats 2 files changed , +20 , -3
Part of RAG chat over tabular-review docs (pgvector embeddings)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-4f7e58ca.md from inside the repo you want the change in.

⬇ Download capture-commit-4f7e58ca.md