Code comments that no longer describe the code (llm, agent, mapper, bench)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Go
- スター
- 0
- フォーク
- 1
- 平均マージ
- 8時間 14分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/Spackle のほかの issue
-
ci good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
TMHSDigital/Spackle#206 ·
メンテナーはふだん 1 日以内に返信
-
ci severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TMHSDigital/Spackle#205 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/Spackle#199 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
TMHSDigital/Spackle#195 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue severity: medium
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TMHSDigital/Spackle#188 ·
メンテナーはふだん 1 日以内に返信
TMHSDigital/Spackle の issue をすべて見る
似ている issue
-
bug effort:s impact:med raised-by:worker risk:low to:worker
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
medici-finance/assay#8120 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
factory:subtask
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
agent-substrate/substrate#4308 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
celestiaorg/celestia-app#8877 ·
メンテナーはふだん 1 日以内に返信
-
sweep
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
bketelsen/truenas-mcp#112 ·
メンテナーはふだん 1 日以内に返信