feat(trust): Trust Ledger 完全運用化 — blocked_events自動更新 / START_PROMPT統合 / Labels - #283
Conversation
… + Labels - START_PROMPT.md: trust-score.json 読み込み + Trust Level 確認を必須ステップ化 - START_PROMPT.md: Agent メッセージ確認(gh issue list)を起動時必須に追加 - .github/workflows/blocked-events-update.yml: blocked ラベル付与で自動インクリメント - Claude/templates/claudeos/workflows/: 配布用テンプレートに追加 - CLAUDE.md §23: Blocked 発生時の blocked ラベル付与ルールを追記 - GitHub Labels: 11種類作成済み(agent-msg / priority:urgent / blocked 等) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Note
|
| Layer / File(s) | Summary |
|---|---|
Blocked 発生時の GitHub Issue ラベル付与ルール CLAUDE.md |
Trust Ledger §23 の「CTO 行動ルール」に Blocked 発生時に GitHub Issue へ blocked ラベルを付与する運用ルールを追記した。 |
起動時の Trust Level 確認と優先度処理 Claude/templates/claude/START_PROMPT.md |
エージェント起動直後に trust-score.json を読み取り、trust.level に応じた許可操作範囲(Level 1〜3)を確認し、未処理メッセージから priority:urgent を検出して現在の作業を中断・最優先処理する必須手順を追加した。 |
関連する可能性のあるプルリクエスト
-
Kensan196948G/ClaudeCode-StartUpTools-New#252: 本 PR の START_PROMPT.md への信頼レベル検証・緊急メッセージ処理追加と、取得 PR のプロンプト文書リフレッシュが同じテンプレート修正領域で直接関連している。
-
Kensan196948G/ClaudeCode-StartUpTools-New#282: 本 PR による CLAUDE.md §23 の Blocked→
blockedラベル付与ルール追加と START_PROMPT.md の信頼レベルゲーティング/緊急割り込み処理は、取得 PR で導入された Trust Ledger とエージェント通信運用フレームワークと直接関連している。 -
Kensan196948G/ClaudeCode-StartUpTools-New#273: 本 PR の CLAUDE.md における「Blocked」ハンドリングワークフロー(
blockedGitHub ラベル適用)が、取得 PR の CLAUDE.md v9.0 における「Blocked」定義と停止条件ロジックの大規模見直しと直接重なっている。
見積もりレビュー工数
🎯 1 (Trivial) | ⏱️ ~5 分
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | PRタイトルは Trust Ledger の完全運用化、blocked_events 自動更新、START_PROMPT 統合、Labels 作成という4つの主要な変更を正確に反映しており、変更セットの主要な内容を簡潔かつ明確に要約している。 |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
feat/trust-ledger-completion
Comment @coderabbitai help to get the list of available commands and usage tips.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with 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.
Inline comments:
In `@Claude/templates/claude/START_PROMPT.md`:
- Around line 91-98: Update the section header "### ステップ 3: エージェントメッセージを確認する" to
include the robot icon as required by the coding guidelines by changing it to
"### 🤖 ステップ 3: エージェントメッセージを確認する" so the agent-messages section uses the 🤖
icon.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b8b8e0fe-b215-4e98-b245-487452c291fa
⛔ Files ignored due to path filters (2)
.github/workflows/blocked-events-update.ymlis excluded by none and included by noneClaude/templates/claudeos/workflows/blocked-events-update.ymlis excluded by none and included by none
📒 Files selected for processing (2)
CLAUDE.mdClaude/templates/claude/START_PROMPT.md
| ### ステップ 3: エージェントメッセージを確認する | ||
|
|
||
| ```bash | ||
| gh issue list --label "agent-msg,status:open" --limit 10 | ||
| ``` | ||
|
|
||
| `priority:urgent` のメッセージは現在の作業を中断して最優先で処理すること。 | ||
|
|
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify agent communication labels and gh CLI filter syntax
echo "=== Checking required labels ==="
for label in "agent-msg" "status:open" "priority:urgent"; do
echo "Checking label: $label"
gh label list --search "$label" --limit 1 || echo "⚠️ Label '$label' not found or gh CLI needs auth"
done
echo ""
echo "=== Testing gh issue list filter syntax ==="
gh issue list --label "agent-msg,status:open" --limit 3 --state all 2>&1 || echo "⚠️ Filter test failed or no matching issues"Repository: Kensan196948G/ClaudeCode-StartUpTools-New
Length of output: 346
📌 エージェントメッセージセクションのヘッダーにアイコンを追加してください。
GitHub CLI のラベルフィルタ構文は正しく、agent-msg、status:open、priority:urgent ラベルはすべて存在することが確認されています。ただし、コーディングガイドラインに従い、エージェント通信に関するセクションには 🤖 アイコンを使用する必要があります。
セクションヘッダーを以下のように変更してください:
### 🤖 ステップ 3: エージェントメッセージを確認する
🤖 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 91 - 98, Update the
section header "### ステップ 3: エージェントメッセージを確認する" to include the robot icon as
required by the coding guidelines by changing it to "### 🤖 ステップ 3:
エージェントメッセージを確認する" so the agent-messages section uses the 🤖 icon.
📌 概要
Trust Ledger の完全運用化。blocked_events 自動更新・START_PROMPT 統合・GitHub Labels 作成の3点を実装。
🔧 変更内容
1. START_PROMPT.md — Trust Level 確認ステップ追加
2. blocked_events 自動更新 GitHub Actions
blockedラベルが付与されると自動トリガー3. GitHub Labels 11種類作成済み
📊 Trust Score 完全動作フロー
🔭 影響範囲
🤖 Generated with Claude Code
Summary by CodeRabbit