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

Abierto
#2,763 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
ai

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
19.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de danielmiessler/LifeOS

Todos los issues de danielmiessler/LifeOS

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.