LabelBatch questions show only the check id and a cut message, not the criterion or the passage the flag is about

Aperta
#2,763 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
ai

Direzione di ricerca

Start in LIFEOS/TOOLS/LabelBatch.ts, especially pickFlags and the question line cited in the issue. Trace how batch items get their check data and whether the engine exposes a passage span; the issue suggests storing derived_from and probability, then showing a span or a marked best-match passage. Done means each question includes the criterion, relevant artifact passage, and probability.

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

Descrizione

What happens

A LabelBatch question shows only the artifact's basename, the check id and the first 200 characters of the finding message (LIFEOS/TOOLS/LabelBatch.ts, pickFlags: message: fd.message...slice(0, 200); the question line is `${i.n}. ${basename(i.artifact)}: flag "${i.check_id}" said: ${i.message}. Was this flag right? y/n`).

To answer y/n the principal has to open the artifact, find the sentence the flag is about, and, for a criterion judged against a source, find the passage of the source too. With ten questions per batch this is most of the work, and an answer given without that lookup is a weak label.

Expected

Each question carries what it takes to answer it: the criterion text, the passage of the artifact the flag is about, and the probability Glance gave.

Possible fix

Store the criterion text (derived_from) and the probability on the batch item, and show them in the question. When the engine can return the span it relied on, show that span; otherwise show the artifact passage around the best match of the criterion's key terms, marked as a guess.

🤖 Generated with Claude Code

Lingua principale
TypeScript
Stelle
19.9k
Fork
2.5k
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 danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.