Diagnostic category comment disagrees with its tests
メンテナーはふだん 1 日以内に返信
@woohsin がすでに取り組んでいます。
2026年11月13日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 66/100
調査の方向性
src/agent/integrity.rs:150-157 のサニタイザーに関するコメントを、src/agent/evidence/run_signals.rs:53-68 の diagnostic() と tests/unit/agent/evidence.rs の固定された3つのテストと合わせて読む。コメントと動作のどちらを変更すべきか判断する。issue では、コメントを修正するほうが変更が小さいとされている。選んだ動作とそのテストがコメントと一致すれば完了。
索引モデルが issue の本文から書いたものです。
説明
Observed behavior
The comment above the diagnostic sanitizer in src/agent/integrity.rs:150-157 says a category is counted as other only when the run carries a setup error, and that a category on a run that did not fail to start is counted as nothing. The code does otherwise.
diagnostic() in src/agent/evidence/run_signals.rs:53-68 returns a result whenever the runner names a valid category, with or without setupError, using structured:<Category> as its material. a_structured_category_is_recorded_without_setup_text (tests/unit/agent/evidence.rs:1470) and a_runner_naming_other_without_prose_is_still_a_diagnostic (tests/unit/agent/evidence.rs:2257) pin that.
So a run that executed and passed everything still counts as a runner failure when it names a category, and the prompt can print 1 runs failed to start (src/agent/evidence.rs:580) beside 5 of 5 passing.
Expected behavior
The comment and the behavior agree. Either of these resolves it:
- Correct the comment to say a runner-named category is counted without prose, and keep the code and tests.
- Stop counting a category on a run that executed, and change the two tests above with it.
Reproduction
- Call
record_testwith{"passed":5,"total":5,"diagnostic":{"category":"syntax"}}. - Read the ledger's diagnostics: the syntax counter is 1 and the compile or runner failure count is non-zero.
Read from the code and the pinned tests, not run against this exact payload.
CodeTrial version
desktop-latest-25-g55597864
Environment
Not environment specific.
Sanitized evidence
The line is labelled as browser-reported and unverified, so the impact on the report is small.
Dropping the fallback also fails test_claims_keep_browser_provenance_in_every_prompt_view (tests/unit/agent/evidence.rs:3150) in addition to the two tests above, so the intended behavior should be decided first. Deciding which of the two is intended is the whole task; the first option is the smaller change.
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- 主要言語
- Rust
- スター
- 228
- フォーク
- 150
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 226
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sysprog21/codetrial のほかの issue
-
Spot Capacity Round Trips tests accept the two largest rising runs対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Local recording ends at Finish, before the learning review対応中かも @richard81115 が 2 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
sysprog21/codetrial#663 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Task editor scroll-sync test fails intermittently in CI対応中かも @melonpuff が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sysprog21/codetrial#654 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
sysprog21/codetrial#646 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
sysprog21/codetrial の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
asonnino/blockchain-validator#88 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
storytold/photocraft#14025 ·
メンテナーはふだん 1 日以内に返信
-
Extrudeオープンarea:kernel bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bherbruck/solvecraft#16273 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
storytold/vectorcraft#7242 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信