[Bug] Triage is never asked about facts with no candidate observation, so new-topic chatter and one-off execution records reach consolidation

Aperta
#7,219 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start with triage_facts in triage.py and trace how its candidate list determines which facts enter triage. Read the existing tests for candidate-free facts and bank missions, then check how triage decisions affect consolidation. Done means candidate-free facts can be evaluated for promotion and the reported chatter and one-off execution cases are covered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

core

正文

Version

1.3.0-slim (also reproduced against main, triage.py unchanged as of 2026-12-03).

Problem

triage_facts filters the work list:

pending = [(m, c[:MAX_CANDIDATES]) for m, c in zip(memories, candidates_per_fact) if c]

The docstring states the intent: "A fact with no existing observation to compare against is not asked about: there is nothing it could restate, and whether it is worth keeping is the LLM's call."

The consequence is the opposite of the intent. A chatter fact on a new topic has no candidate observation, so it skips triage entirely and goes to consolidation, where the prompt asks for "short sentences, one facet each". A one-off execution record ("ran a 12-instance probe, 40 minutes") becomes a permanent observation that is never removed, because dedup only compares paraphrases.

Two related behaviours:

  • Under a bank mission, chatter is skipped even when it is detected: if mission and relation == "chatter": continue.
  • Batches within a scope are serial, so this cannot be fixed by parallelism.
Evidence

Long-lived self-hosted bank (~68k facts, ~47k observations), 1.3.0, consolidation on a large model:

  • Over 72 hours of consolidation logs, chatter=0 on every call, including batches that contained obvious chatter ("I just restarted the eval container, health check returned 200").
  • Controlled test, fresh bank, same model, four one-off execution records: 4/4 promoted to observations, 9 new observations total.
  • Same test with a custom observations_mission asking to keep execution records as facts: still 4/4 promoted (8 new observations). The mission only removed the chatter drop path.
  • The default bank has 1.79 new observations per consolidated fact (2,527 for 1,411 facts).
Proposed

Ask triage about facts without candidates, even with a shorter question ("worth keeping as a standing observation? yes/no"). At ~1k input tokens and ~50 ms per call on a small decision model, the cost is bounded by the number of new-topic facts, which is exactly the population that currently produces noise.

If this is a deliberate cost trade-off, a trigger/bank flag (e.g. triage_without_candidates: false default, true opt-in) would keep current behaviour while letting long-lived banks clean up the promotion path.

Scope note

Not asking for a new model or a prompt rewrite — just the gate. Observation granularity is tracked separately (#7021).

Lingua principale
Python
Stelle
45.2k
Fork
5.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vectorize-io/hindsight

Tutte le issue di vectorize-io/hindsight

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.