Code comments that no longer describe the code (llm, agent, mapper, bench)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- developer-experience
Línea de trabajo
Start by comparing the comments at the listed locations in internal/llm/anthropic.go, internal/agent/fixer.go and reviewer.go, internal/agent/tools/tools.go, internal/mapper/mapper.go, internal/bench/run.go and results.go, internal/report/json.go, internal/seed/external.go, and internal/cli/flags.go with the code and tests they describe. Resolve each checklist item, deciding whether Correlate and failed-fixture rows need wording or code changes. Run make test-short and make lint; done means all listed comments are accurate and the checks pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
A checklist of comments that would mislead the next reader. Each was read against the code it sits on.
Where
internal/llm/anthropic.go:128internal/agent/fixer.go:176internal/agent/reviewer.go:124internal/agent/tools/tools.go:279internal/mapper/mapper.go:389internal/bench/run.go:37,internal/bench/results.go:73internal/report/json.go:17internal/seed/external.go:315internal/cli/flags.go:63
Details
-
internal/llm/anthropic.go:128-130: "tool results are user turns, so merge them into a preceding user turn if there is one", followed by a plain append. Nothing is merged. -
internal/agent/fixer.go:176-184: the doc comment ofhideKnownSecretssits directly above the doc comment ofhideAllKnownSecrets, so both attach to the latter andhideKnownSecretshas none. -
internal/agent/reviewer.go:124-126:Correlate"asks the model which confirmed findings combine". It takes every finding with status open, which includes leads nobody investigated; only the first 60 rows are sent while ids beyond them are still accepted from the reply. Either filter to investigated findings or say "open findings" and build the id index from the rows sent. -
internal/agent/tools/tools.go:279: "computed once per Registry". It is computed once per shared cache, and in a scan not at all (the mapper's listing is preloaded). -
internal/mapper/mapper.go:389-390: a doc comment forisTestFile, which no longer exists, is attached totype linePattern. -
internal/bench/run.go:37-38: "its truth entries count as false negatives". The totals leave failed fixtures out of every figure, asTotals.FailedFixturessays. The fixture row still carriesfalse_negativesandmissed, so per-fixture rows of a results file do not add up to its totals; either zero them on a failed fixture or say so. -
internal/report/json.go:17-33: the list of keys "always in this order" omitsrejected. -
internal/seed/external.go:315: "Note returns what the last Run dropped"; it also returns the configured Semgrep rules before any run and the honored ignore files. -
internal/cli/flags.go:63: the comment on the budget flag group omits--allow-unpriced.
Impact
Maintenance cost only. The Correlate wording also shapes what a reader believes a kill chain in a report is built from, and the bench comment leaves an inconsistency in committed results files.
Suggested fix
Correct the comments; for Correlate and the bench rows decide between changing the code and changing the words.
Acceptance criteria
- Each checklist item is resolved
-
go vetand the linters stay clean
Related: #61
Getting started
- Relevant files: internal/agent/fixer.go, internal/agent/reviewer.go, internal/agent/tools/tools.go, internal/bench/run.go, internal/cli/flags.go, internal/llm/anthropic.go, internal/mapper/mapper.go, internal/report/json.go, internal/seed/external.go
- How to run tests:
make test-short(Unix) or.\make.ps1 test-short(Windows PowerShell);make lintbefore you call it done - Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 50e92ec. Severity: low. Effort: S. audit-key: documentation|internal/llm/anthropic.go|stale-comments-2
- Lenguaje dominante
- Go
- Estrellas
- 0
- Forks
- 1
- Merge medio
- 8 h 14 min
- PR fusionados (30 d)
- 3
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/Spackle
-
ci good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
TMHSDigital/Spackle#206 ·
Los mantenedores suelen responder en 1 día
-
ci severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/Spackle#205 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/Spackle#199 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
TMHSDigital/Spackle#195 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue severity: medium
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
TMHSDigital/Spackle#188 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/Spackle
Issues similares
-
deskclose human-decided leaves the legacy decision-needed label and applies no human-decidedAbiertobug effort:s impact:med raised-by:worker risk:low to:worker
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
medici-finance/assay#8120 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
factory:subtask
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
agent-substrate/substrate#4308 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
celestiaorg/celestia-app#8877 ·
Los mantenedores suelen responder en 1 día
-
sweep
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
bketelsen/truenas-mcp#112 ·
Los mantenedores suelen responder en 1 día