← Back to Pull requests

概要の失敗系タスク件数に内訳を明記し、ゴールページと照合できるようにする #263

Open
unknown opened this pull request with 290 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 17, 2026 14:33 UTC
Author

概要

issue #260 の修正です。概要ページの「失敗したタスク」の件数と、ゴールページのカードの「失敗」の合計が合わない問題を直します。

原因

概要の failedTaskCount(frontend/web/src/state/dashboard.ts)は失敗・上限超過・PR 失敗の3状態の合計を数えますが、表示の文言が「失敗したタスク」だけだったため、ゴールページのカードの「失敗」の欄(failed のみ)を足した件数と食い違って見えました。集計の定義自体は、プロジェクトページの goalTaskProgress(frontend/web/src/state/goal-summary.ts)とも揃った意図した定義であり、テストでも固定されています。

変更内容

  • 集計の定義は変えず、合計を表示する文言に内訳を明記しました。共通の表示名 FAILED_TASK_KINDS_LABEL(「失敗・上限超過・PR 失敗」)を frontend/web/src/state/dashboard.ts に追加し、ゴールページの状態別の欄と同じ文言を使います。

  • 概要ページの警告バナーと「24時間に完了したタスク」のタイルの文を「失敗・上限超過・PR 失敗のタスクが N件あります/残っています。」に変えました(frontend/web/src/components/overview-content.tsx)。

  • 同じ合計(goalTaskProgress の failed)を表示するプロジェクトページのゴール行の文も、同じ文言に揃えました(frontend/web/src/components/projects-content.tsx)。

  • ゴールページのカードは従来どおり状態別の欄(失敗、上限超過、PR 失敗)を分けて表示するため、概要の合計は各カードの3欄の合計と照合できます。
  • テスト

  • make done(proto-check、fmt、clippy、test、typecheck、lint): 終了コード0

  • npm run check:aislop: 終了コード0

  • 対象テスト(overview-issue75、projects-issue78、goals、dashboard、goal-summary): 111件全件通過。概要の文言の検証は新しい文言に合わせて更新しました。
  • <!-- devin-review-badge-begin -->

    ---

    <a href="https://app.devin.ai/review/j5ik2o/takt-dash/pull/263" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    <!-- CURSOR_SUMMARY -->
    ---

    [!NOTE]

    Low Risk

    Display-only copy and a shared string constant; task counting logic is unchanged.

    > Overview

    Clarifies failed-task totals on the overview and project goal rows without changing how they're counted. A shared label FAILED_TASK_KINDS_LABEL (失敗・上限超過・PR 失敗) replaces the vague 「失敗したタスク」 copy so the number matches the sum of 失敗, 上限超過, and PR 失敗 on goal pages (issue #260).

    > The overview health banner and the 24時間に完了したタスク tile note, plus project GoalRow failure lines, now use that label. Overview contract tests were updated for the new strings.

    > <sup>Reviewed by Cursor Bugbot for commit 06cd1f92000235cd1a85ace8f8dc8335106519ee. Configure here.</sup>

    <!-- /CURSOR_SUMMARY -->

    Diff: 290 lines (+217 / -73) across 3 files Reviewer: devin-ai-integration[bot] Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 290 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 86% · Reviewer familiarity: 35%
    43%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.339
    Real PR Conversation Timeline
    1 comments
    "Review active on #263"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.4% · Lower = rushed or shallow review
    43.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.6% · Safe to merge
    22.6%