ADR-0074 Phase 2 で新設 · 2026-07-01 初期化

Decision Pipeline の Gate 4 Scoring で観測される scoringStdDev (σ) を KV SIGMA_LOG から月次で集計し、Self-Consistency N=5 の分散が実運用で安定しているかを可視化するためのレポート格納ディレクトリ。

集計方法

drp Phase 1 で pipeline_consumer.ts が審査完了時に scoringStdDev を KV に書き出す:

  • KV namespace: SIGMA_LOG (id e33bf05019c548438b398fd6f66f1ab7 · 本番稼働開始 2026-07-01)
  • key format: sigma:{YYYY-MM (JST)}:{sessionId}
  • value: { scoringStdDev, completedAt, sessionId }

scripts/pipeline-sigma-report.mjs が Cloudflare KV API 経由で当月分 key を全件 read → 集計 → YYYY-MM.md を出力する。

閾値定義

項目閾値対応
σ 単発 > 51 セッション⚠️ マーカーのみ (対応不要 · 個別セッションの盲点扱い)
平均 σ > 5 (単月)1 ヶ月レポート内で警告表示 (対応判断は運用側)
平均 σ > 5 が 3 ヶ月連続3 ヶ月GitHub Issue 自動起票 (label sigma-alert + adr-0074) · ADR-0056 §6.1 の N=10 拡張検討トリガー

生成方法

自動 (毎月 1 日 00:00 JST)

  • workflow: .github/workflows/pipeline-sigma-monthly.yml
  • schedule: cron: '0 15 1 * *' (= 前月末日 15:00 UTC)
  • 前月分の レポート md 生成 → Auto-PR (branch auto/sigma-report-YYYYMMDD-HHMMSS) → 3 ヶ月連続判定 → 該当時のみ Issue 起票

手動

# 当月 (JST) レポート生成
node scripts/pipeline-sigma-report.mjs

# 指定月レポート
node scripts/pipeline-sigma-report.mjs --month=2026-07

# 3 ヶ月連続 σ>5 判定 + Issue 起票 (single-shot)
node scripts/pipeline-sigma-report.mjs --alert-check

# KV 実 read せず sample データで動作確認
node scripts/pipeline-sigma-report.mjs --dry-run

環境変数

  • CLOUDFLARE_API_TOKEN (KV read scope)
  • CLOUDFLARE_ACCOUNT_ID
  • SIGMA_LOG_NAMESPACE_ID (default: e33bf05019c548438b398fd6f66f1ab7)
  • --alert-check mode で Issue 起票時は gh CLI + GH_TOKEN (or GITHUB_TOKEN)

レポート md 形式 (sample)

# Decision Pipeline Gate 4 Scoring σ 月次レポート — 2026-07

## サマリ

- **セッション数**: 12
- **平均 σ**: 0.845 (前月比 -0.120)
- **最大 σ**: 3.200 (前月比 +0.500)
- **σ > 5 セッション数**: 0
- **前月 (2026-06)**: 平均 σ 0.965 / セッション 15

## 判定

- `✅ σ > 5 セッションなし`
- 3 ヶ月連続 σ > 5 判定は `--alert-check` mode で別途実行

## セッション詳細

| # | sessionId | σ | completedAt |
|---|---|---|---|
| 1 | `sess-abc` | 0.800 | 2026-07-01T10:00:00Z |
| ... |

履歴 index

このディレクトリ内 YYYY-MM.md は workflow で自動追加される。初回自動生成予定: 2026-08-01 00:00 JST (2026-07 分)。

関連

  • ADR-0074: docs/adr/0074-gate4-scoring-sigma-monthly-monitoring.md (Accepted · 2026-07-01)
  • ADR-0056: docs/adr/0056-decision-pipeline-llm-temp-sampling-stage-hybrid-strategy.md §6.1 N 拡張トリガー
  • drp Phase 1 PR: #3446 / #3455 (KV 書出し + binding 有効化)
  • Phase 2 実装 handover: tasks/prompts/handover_2026-07-01_adr-0074-sigma-monitor-phase-2-implementation_to_main.md