Skip to content
Merged
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,42 @@

# CHANGELOG

## [v3.3.1] - 2026-05-13 — Mission Control ダッシュボード全面改善 + /goal MVP RC テンプレート刷新

### 🎯 概要
Mission Control WebUI の Cron管理・Boot Sequence・イベントログを全面的に改善。イベントログ時刻・種別タグを完全日本語化。`/goal` テンプレートを MVP Release Candidate 完成版に刷新。

### 🔧 変更対象

| ファイル | 変更内容 |
|---|---|
| `scripts/dashboards/mission-control.html` | Cron管理週間スケジュール全幅レイアウト / 正式名称2行表示 / Boot Sequenceアクティブセッションパネル / イベントログ日本語化 / Tag折り返し防止 |
| `scripts/dashboards/serve-dashboard.js` | getActiveCronProject() 追加 / イベントログ時刻日本語変換 |
| `Claude/templates/claude/START_PROMPT.md` | /goal テンプレート MVP RC 完成版に刷新(再ビルド 1902行) |
| `Claude/templates/claude/instructions/_footer.md` | /goal テンプレートソース更新 |
| `Claude/templates/claude/instructions/01-session-startup.md` | /goal 設定例を MVP RC 版に統一 |

### ✅ 主な改善内容

#### Cron管理 — 週間スケジュール
- **全幅レイアウト**: 上段(Cronスケジュール一覧 + 登録サマリー/Cron設定サイドバー)/ 下段(週間スケジュール全幅)に変更。セル幅 48px → 約90px に拡大
- **正式名称2行表示**: 省略名称を廃止し、ハイフン中間点で自動分割した正式名称を2行で表示(例: `Construction-DX-One-System` → `Construction-DX` / `One-System`)
- **バグ修正**: 登録サマリー・Cron設定の右カラムがビューポート外に描画される CSS Grid overflow バグを `minWidth:0` 追加で修正
- **フォントサイズ改善**: 登録サマリー・Cron設定のフォントを 11px → 12px に拡大

#### Boot Sequence — アクティブセッション
- **Cron自動検出パネル新設**: `cron-registry.json` から過去7日を遡り最近稼働したCronプロジェクトを自動検出して表示(プロジェクト名・ホスト・開始時刻・セッション進捗バー・スケジュール)
- **リアルタイム時刻**: `useEffect + setInterval(1000ms)` による毎秒更新時刻表示

#### イベントログ — 完全日本語化
- **時刻**: `git log %cr`(英語相対時刻)を `%ct`(UNIXタイム)に変更し、サーバーサイドで日本語変換(「10 hours ago」→「10時間前」)
- **種別タグ**: `typeLabels` マッピング追加(info→情報, success→成功, phase→フェーズ, decision→判断, error→エラー)
- **Tag コンポーネント**: `whiteSpace:nowrap` 追加により全パネルのタグ折り返しを防止

#### /goal テンプレート刷新
- MVP Release Candidate 完成版に刷新(実施対象8項目・完了条件10項目・対象外5項目・停止条件4項目を明記)
- `_footer.md`・`01-session-startup.md` ソース更新 → `Build-StartPrompt.ps1` で再ビルド(1902行)

## [v3.2.107] - 2026-04-30 — WebUI 全テスト検証・デバッグ 250 項目を全プロジェクト実行の最終プロンプトに追加

### 🎯 概要
Expand Down
70 changes: 59 additions & 11 deletions Claude/templates/claude/START_PROMPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ClaudeOS v9.0 起動時に、`/goal` 設定・前回状態・GitHub・CI・Proje
## 🎯 /goal 設定例

```bash
/goal "Issue #XX-#YY を実装し、全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns"
/goal "MVP Release Candidate を完成させる。完了条件: 全主要画面正常動作・API疎通成功・認証認可正常・DB CRUD成功・CI成功・Critical/High脆弱性ゼロ・E2Eテスト成功・README/運用手順完成・Docker起動成功・ローカル環境再現可能。停止条件: MVP完成・CI成功・リリース条件達成・修復ループ上限到達"
```

---
Expand Down Expand Up @@ -1774,14 +1774,47 @@ ClaudeCode は以下を達成すること。

## 🚀 完全実装・最終フェーズ指示(全セッション共通)

### /goal テンプレート(残時間フル活用・10ループ版)
### /goal テンプレート(MVP Release Candidate 完成版)

以下の形式で `/goal` を設定すること:

```text
/goal "全フロントエンド・バックエンドの実装を最後まで完遂する。
Monitor → Development → Verify → Improvement を最大 10 ループ実行。
全テスト通過・CI 成功・blocker=0・PR 作成済み、または stop after 60 turns"
/goal "MVP Release Candidate を完成させる。

以下を実施対象とする:
- フロントエンド実装
- バックエンド実装
- データベース実装
- セキュリティ実装
- インフラ構成
- CI/CD構築
- テスト
- ドキュメント整備

以下を完了条件とする:
1. 全主要画面が正常動作
2. API疎通成功
3. 認証認可正常
4. DB CRUD成功
5. CI成功
6. Critical/High脆弱性ゼロ
7. E2Eテスト成功
8. README/運用手順完成
9. Docker起動成功
10. ローカル環境で再現可能

以下は今回対象外:
- 過剰なUI改善
- Enterprise拡張機能
- AI最適化
- マイクロサービス分離
- 過剰なリファクタリング

以下の場合は停止する:
- MVP完成
- CI成功
- リリース条件達成
- 修復ループ上限到達"
Comment on lines +1813 to +1817

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

停止条件の「CI成功」は早期終了を誘発します

CI成功 を停止条件に含めると、MVP未達でもCIだけ通れば終了可能になります。MVP RC 完成を主目標にするなら、停止条件は「MVP完成(かつ必要品質条件達成)」に寄せる形へ整理した方が安全です。

Also applies to: 1849-1853, 1870-1870

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Claude/templates/claude/START_PROMPT.md` around lines 1813 - 1817, The
stop-condition list currently includes "CI成功", which can prematurely end the
run; change the stop conditions in START_PROMPT.md so that "CI成功" is removed and
the primary stop condition is unified to "MVP完成(かつ必要品質条件達成)" (or equivalent
phrasing), and apply the same update to the other occurrences referenced (around
lines 1849-1853 and 1870) to ensure all instances use the consolidated
MVP+quality stop condition instead of CI success.

```

### 必須実行事項
Expand All @@ -1796,13 +1829,28 @@ Monitor → Development → Verify → Improvement を最大 10 ループ実行
| 🛡️ Codex Review | Development フェーズ後・PR 作成前に必須実行 |
| 🧪 テスト検証 | `11-test-debug-integration.md` の 5 カテゴリを全て実施すること |

### 終了条件
### 完了条件

```text
全 KPI 達成(CI ≥ 90% / テスト通過率 ≥ 90% / blocker = 0)
STABLE N=3 連続達成
Security Critical = 0 / CodeRabbit Critical/High = 0
10 ループ完了 または stop after 60 turns
1. 全主要画面が正常動作
2. API疎通成功
3. 認証認可正常
4. DB CRUD成功
5. CI成功
6. Critical/High脆弱性ゼロ
7. E2Eテスト成功
8. README/運用手順完成
9. Docker起動成功
10. ローカル環境で再現可能
```

### 停止条件

```text
- MVP完成
- CI成功
- リリース条件達成
- 修復ループ上限到達
```

---
Expand All @@ -1819,7 +1867,7 @@ gh run list --limit 5
gh pr list --state open

# 2. /goal 設定
/goal "<達成条件>。全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns"
/goal "MVP Release Candidate を完成させる。完了条件: 全主要画面正常動作・API疎通成功・認証認可正常・DB CRUD成功・CI成功・Critical/High脆弱性ゼロ・E2Eテスト成功・README/運用手順完成・Docker起動成功・ローカル環境再現可能。停止条件: MVP完成・CI成功・リリース条件達成・修復ループ上限到達"

# 3. Agent View 起動
claude agents
Expand Down
2 changes: 1 addition & 1 deletion Claude/templates/claude/instructions/01-session-startup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ClaudeOS v9.0 起動時に、`/goal` 設定・前回状態・GitHub・CI・Proje
## 🎯 /goal 設定例

```bash
/goal "Issue #XX-#YY を実装し、全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns"
/goal "MVP Release Candidate を完成させる。完了条件: 全主要画面正常動作・API疎通成功・認証認可正常・DB CRUD成功・CI成功・Critical/High脆弱性ゼロ・E2Eテスト成功・README/運用手順完成・Docker起動成功・ローカル環境再現可能。停止条件: MVP完成・CI成功・リリース条件達成・修復ループ上限到達"
```

---
Expand Down
68 changes: 58 additions & 10 deletions Claude/templates/claude/instructions/_footer.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,46 @@
## 🚀 完全実装・最終フェーズ指示(全セッション共通)

### /goal テンプレート(残時間フル活用・10ループ版)
### /goal テンプレート(MVP Release Candidate 完成版)

以下の形式で `/goal` を設定すること:

```text
/goal "全フロントエンド・バックエンドの実装を最後まで完遂する。
Monitor → Development → Verify → Improvement を最大 10 ループ実行。
全テスト通過・CI 成功・blocker=0・PR 作成済み、または stop after 60 turns"
/goal "MVP Release Candidate を完成させる。

以下を実施対象とする:
- フロントエンド実装
- バックエンド実装
- データベース実装
- セキュリティ実装
- インフラ構成
- CI/CD構築
- テスト
- ドキュメント整備

以下を完了条件とする:
1. 全主要画面が正常動作
2. API疎通成功
3. 認証認可正常
4. DB CRUD成功
5. CI成功
6. Critical/High脆弱性ゼロ
7. E2Eテスト成功
8. README/運用手順完成
9. Docker起動成功
10. ローカル環境で再現可能

以下は今回対象外:
- 過剰なUI改善
- Enterprise拡張機能
- AI最適化
- マイクロサービス分離
- 過剰なリファクタリング

以下の場合は停止する:
- MVP完成
- CI成功
- リリース条件達成
- 修復ループ上限到達"
Comment on lines +39 to +43

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

停止条件に CI成功 を含めると早期終了を誘発します

Line 39-43 / Line 73-79 / Line 96 で停止条件に CI成功 が入っており、完了条件の他項目(例: Critical/High脆弱性ゼロ、E2E、README/運用手順)未達でもセッションが止まる設計になっています。停止条件から CI成功 を外し、リリース条件達成 のみに集約するのが安全です。

修正案(差分)
-以下の場合は停止する:
-- MVP完成
-- CI成功
-- リリース条件達成
-- 修復ループ上限到達"
+以下の場合は停止する:
+- MVP完成
+- リリース条件達成
+- 修復ループ上限到達"
 ### 停止条件

 ```text
 - MVP完成
-- CI成功
 - リリース条件達成
 - 修復ループ上限到達

```diff
-/goal "MVP Release Candidate を完成させる。完了条件: 全主要画面正常動作・API疎通成功・認証認可正常・DB CRUD成功・CI成功・Critical/High脆弱性ゼロ・E2Eテスト成功・README/運用手順完成・Docker起動成功・ローカル環境再現可能。停止条件: MVP完成・CI成功・リリース条件達成・修復ループ上限到達"
+/goal "MVP Release Candidate を完成させる。完了条件: 全主要画面正常動作・API疎通成功・認証認可正常・DB CRUD成功・CI成功・Critical/High脆弱性ゼロ・E2Eテスト成功・README/運用手順完成・Docker起動成功・ローカル環境再現可能。停止条件: MVP完成・リリース条件達成・修復ループ上限到達"

Also applies to: 73-79, 96-96

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Claude/templates/claude/instructions/_footer.md` around lines 39 - 43, The
stop-condition lists include "CI成功" which can prematurely end sessions; remove
"CI成功" from each stop-condition block and ensure only "リリース条件達成" (along with the
other valid stops like "MVP完成" and "修復ループ上限到達") remains as the criterion that
gates completion; search for and update every occurrence of the literal string
"CI成功" within the stop-condition list blocks in
Claude/templates/claude/instructions/_footer.md so those three sections no
longer include "CI成功".

```

### 必須実行事項
Expand All @@ -22,13 +55,28 @@ Monitor → Development → Verify → Improvement を最大 10 ループ実行
| 🛡️ Codex Review | Development フェーズ後・PR 作成前に必須実行 |
| 🧪 テスト検証 | `11-test-debug-integration.md` の 5 カテゴリを全て実施すること |

### 終了条件
### 完了条件

```text
全 KPI 達成(CI ≥ 90% / テスト通過率 ≥ 90% / blocker = 0)
STABLE N=3 連続達成
Security Critical = 0 / CodeRabbit Critical/High = 0
10 ループ完了 または stop after 60 turns
1. 全主要画面が正常動作
2. API疎通成功
3. 認証認可正常
4. DB CRUD成功
5. CI成功
6. Critical/High脆弱性ゼロ
7. E2Eテスト成功
8. README/運用手順完成
9. Docker起動成功
10. ローカル環境で再現可能
```

### 停止条件

```text
- MVP完成
- CI成功
- リリース条件達成
- 修復ループ上限到達
```

---
Expand All @@ -45,7 +93,7 @@ gh run list --limit 5
gh pr list --state open

# 2. /goal 設定
/goal "<達成条件>。全テスト通過・CI成功・blocker=0・PR作成済み、または stop after 20 turns"
/goal "MVP Release Candidate を完成させる。完了条件: 全主要画面正常動作・API疎通成功・認証認可正常・DB CRUD成功・CI成功・Critical/High脆弱性ゼロ・E2Eテスト成功・README/運用手順完成・Docker起動成功・ローカル環境再現可能。停止条件: MVP完成・CI成功・リリース条件達成・修復ループ上限到達"

# 3. Agent View 起動
claude agents
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
> **🚀 ClaudeOS v9.0 — `/goal` + Agent Teams + Agent View 完全統合**
> Claude Code v2.1.139+ の公式機能を全統合。`/goal` コマンドで達成条件を設定し Haiku が自動判定、Agent Teams で並列協調開発、`claude agents`(Agent View)でセッション監視。固定ループ → 動的判断型へ移行。詳細は [`CLAUDE.md`](./CLAUDE.md) を参照。

> **🎨 v3.3.1 — Mission Control ダッシュボード全面改善 + /goal MVP RC テンプレート刷新**
> Cron管理週間スケジュール全幅レイアウト・正式名称2行表示・Boot Sequenceアクティブセッションパネル・イベントログ日本語化など、Mission Control WebUI のUX/UI を全面強化。`/goal` テンプレートを「MVP Release Candidate 完成版」(完了条件10項・対象外・停止条件明記)に刷新。

> **🔄 v3.3.0 — テスト検証・デバッグ統合指示書 + Mission Control WebUI + START_PROMPT 強化**
Comment on lines +15 to 16

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

blockquote の空行で markdownlint (MD028) 警告が出ます。

Line 15 と次の blockquote の間の空行を削除して、連続した > ブロックにしてください。

🔧 修正例
 > Cron管理週間スケジュール全幅レイアウト・正式名称2行表示・Boot Sequenceアクティブセッションパネル・イベントログ日本語化など、Mission Control WebUI のUX/UI を全面強化。`/goal` テンプレートを「MVP Release Candidate 完成版」(完了条件10項・対象外・停止条件明記)に刷新。
-
 > **🔄 v3.3.0 — テスト検証・デバッグ統合指示書 + Mission Control WebUI + START_PROMPT 強化**
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 15-15: Blank line inside blockquote

(MD028, no-blanks-blockquote)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` around lines 15 - 16, The README contains a blank line between two
blockquote lines causing markdownlint MD028; remove the empty line between the
current line 15 blockquote and the following blockquote so they form a single
continuous '>' block (ensure the subsequent lines keep the leading '>' prefixes
to create a multi-line blockquote).

> `11-test-debug-integration.md` を新規追加(5カテゴリ:フロントエンド・バックエンド・セキュリティ・インフラ・DB の検証・デバッグ方法論 + Playwright E2E 必須 + Codex/CodeRabbit 統合フロー)。品質ゲート条件: Codex エラー=0 / CodeRabbit Critical/High=0 / テスト成功率100% / STABLE N=3。`_footer.md` に `/goal` 10ループテンプレートを追加。NASA風 Mission Control WebUI を `scripts/dashboards/mission-control.html` に実装(Projects/AgentTeams/CI/Cron/Boot/EventLog 6パネル)。

Expand All @@ -33,7 +36,7 @@

| 項目 | 状態 |
|------|------|
| バージョン | **v3.2.107** (WebUI 全テスト検証 250 項目 全プロジェクト最終プロンプト追加) — 旧: v3.2.106 |
| バージョン | **v3.3.1** (Mission Control ダッシュボード全面改善 + /goal MVP RC テンプレート刷新) — 旧: v3.3.0 |
| テスト | **776件** — Pester (Unit 21 / Integration 11 / Smoke 1) |
| CI | ✅ SUCCESS |
| ClaudeOS (Claude Code 専用) | **v9.0** (`/goal` 駆動 / Agent Teams パターン A/B/C / Agent View / 動的判断 / 週次フェーズ制御 / learning パターン記録 / Stop Conditions 厳格化 / Opus 4.7 最適化 / 1H cache / PreCompact hook) |
Expand Down
1 change: 1 addition & 0 deletions TASKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
85. [DONE] [Priority:P1][Owner:Developer][Source:Manual] v3.2.75 P1-2 state.json 自動生成(New-CronSchedule) + P1-4 セッション状態復元(cron-launcher.sh) + P1-5 session-start.js 書き込み昇格 + P2-2 _header.md Codex optional + P2-4 README タイムライン図 + P2-1 テスト具体化
86. [DONE] [Priority:P2][Owner:Architect][Source:Manual] v3.2.76 P1-3 登録プロジェクトレジストリ集中管理 — CronManager.psm1 に Get/Add/Remove-LocalCronRegistryEntry 追加。~/.claudeos/cron-registry.json を cron 登録/削除時に自動更新。ユニットテスト 6件 (776 PASS)
87. [DONE] [Priority:P2][Owner:Developer][Source:Manual] v3.2.76 P1-7 Agent Teams 使用実績を state.json に記録 — usage-tracker.js 新規作成 / settings.json PostToolUse[Agent] hook 登録。learning.usage_history.agents に agentKey / call_count / last_used を記録 (776 PASS)
88. [DONE] [Priority:P2][Owner:Developer][Source:Manual] v3.3.1 Mission Control ダッシュボード全面改善 — Cron管理週間スケジュール全幅レイアウト / 正式名称2行表示 / Boot Sequenceアクティブセッションパネル / イベントログ日本語化 / /goal MVP RC テンプレート刷新 (PR #このブランチ)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

(PR #このブランチ) は実PR番号に置き換えてください。

Line 97 のままだと変更履歴のトレーサビリティが落ちます。(PR #278) のように確定値へ更新してください。

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 97-97: Reference links and images should use a label that is defined
Missing link or image reference definition: "source"

(MD052, reference-links-images)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@TASKS.md` at line 97, The task entry contains a placeholder "(PR `#このブランチ`)"
which must be replaced with the actual PR number for traceability; edit the
TASKS.md list item that starts with "88. [DONE]
[Priority:P2][Owner:Developer]..." and replace the exact substring "(PR
`#このブランチ`)" with the confirmed PR identifier e.g. "(PR `#278`)" so the changelog
references the real PR.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

[Source:Manual] 記法が MD052 を発生させています。

Markdown では参照リンク扱いになりやすいので、(Source:Manual) などリンク記法でない形に変更してください。

🔧 修正例
-88. [DONE] [Priority:P2][Owner:Developer][Source:Manual] v3.3.1 Mission Control ダッシュボード全面改善 — Cron管理週間スケジュール全幅レイアウト / 正式名称2行表示 / Boot Sequenceアクティブセッションパネル / イベントログ日本語化 / /goal MVP RC テンプレート刷新 (PR `#このブランチ`)
+88. [DONE] [Priority:P2](Owner:Developer)(Source:Manual) v3.3.1 Mission Control ダッシュボード全面改善 — Cron管理週間スケジュール全幅レイアウト / 正式名称2行表示 / Boot Sequenceアクティブセッションパネル / イベントログ日本語化 / /goal MVP RC テンプレート刷新 (PR `#278`)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
88. [DONE] [Priority:P2][Owner:Developer][Source:Manual] v3.3.1 Mission Control ダッシュボード全面改善 — Cron管理週間スケジュール全幅レイアウト / 正式名称2行表示 / Boot Sequenceアクティブセッションパネル / イベントログ日本語化 / /goal MVP RC テンプレート刷新 (PR #このブランチ)
88. [DONE] [Priority:P2](Owner:Developer)(Source:Manual) v3.3.1 Mission Control ダッシュボード全面改善 — Cron管理週間スケジュール全幅レイアウト / 正式名称2行表示 / Boot Sequenceアクティブセッションパネル / イベントログ日本語化 / /goal MVP RC テンプレート刷新 (PR `#278`)
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 97-97: Reference links and images should use a label that is defined
Missing link or image reference definition: "source"

(MD052, reference-links-images)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@TASKS.md` at line 97, The MD052 warning is caused by the "[Source:Manual]"
token being parsed as a reference link in the TASKS.md task line containing
"v3.3.1 Mission Control ..." — locate that list item and replace the
bracketed/link-like notation with a non-link form such as "Source: Manual" (or
escape the brackets as \[Source:Manual\] or use a code span `Source:Manual`) so
the text is no longer treated as a reference link.


## Auto Extracted From Agent Teams Matrix

Expand Down
Loading
Loading