feat: deep-research ピースにデータ保存とレポート出力を追加
dig/analyze に edit:true + Write を追加し調査データをファイル保存可能に。 dig に Bash を追加し CSV 等のファイルダウンロードを可能に。 supervise に output_contracts を追加しエンジン Phase 2 で最終レポートを出力。
This commit is contained in:
parent
1cd063680c
commit
a27c55420c
@ -3,10 +3,15 @@ Analyze the research results and determine whether additional investigation is n
|
|||||||
**What to do:**
|
**What to do:**
|
||||||
1. Organize the major findings from the research results
|
1. Organize the major findings from the research results
|
||||||
2. Identify unexplained phenomena, unverified hypotheses, and missing data
|
2. Identify unexplained phenomena, unverified hypotheses, and missing data
|
||||||
3. Make one of the following judgments:
|
3. Save analysis results to `{report_dir}/analysis-{N}.md` as files
|
||||||
|
4. Make one of the following judgments:
|
||||||
- **New questions exist** → Create additional research instructions for the Digger
|
- **New questions exist** → Create additional research instructions for the Digger
|
||||||
- **Sufficiently investigated** → Create an overall summary
|
- **Sufficiently investigated** → Create an overall summary
|
||||||
|
|
||||||
|
**Data saving rules:**
|
||||||
|
- Write to `{report_dir}/analysis-{N}.md` (N is sequential number) for each analysis
|
||||||
|
- Include analysis perspective, synthesized findings, and identified gaps
|
||||||
|
|
||||||
**Additional research instruction format:**
|
**Additional research instruction format:**
|
||||||
- What to investigate (specific data or information)
|
- What to investigate (specific data or information)
|
||||||
- Why it's needed (which gap it fills)
|
- Why it's needed (which gap it fills)
|
||||||
|
|||||||
@ -4,7 +4,19 @@ Execute the research according to the plan (or additional research instructions)
|
|||||||
1. Execute planned research items in order
|
1. Execute planned research items in order
|
||||||
2. Actually investigate each item (web search, codebase search, etc.)
|
2. Actually investigate each item (web search, codebase search, etc.)
|
||||||
3. Report items that could not be researched as "Unable to research"
|
3. Report items that could not be researched as "Unable to research"
|
||||||
4. Organize results and create a report
|
4. Save research data to `{report_dir}/data-{topic-name}.md` as files
|
||||||
|
5. Organize results and create a report
|
||||||
|
|
||||||
|
**External data downloads:**
|
||||||
|
- Actively download and utilize CSV, Excel, JSON, and other data files from public institutions and trusted sources
|
||||||
|
- Always verify source reliability before downloading (government agencies, academic institutions, official corporate sites, etc.)
|
||||||
|
- Save downloaded files to `{report_dir}/`
|
||||||
|
- Never download from suspicious domains or download executable files
|
||||||
|
|
||||||
|
**Data saving rules:**
|
||||||
|
- Write data per research item to `{report_dir}/data-{topic-name}.md`
|
||||||
|
- Topic names in lowercase English with hyphens (e.g., `data-market-size.md`)
|
||||||
|
- Include source URLs, retrieval dates, and raw data
|
||||||
|
|
||||||
**Report structure:**
|
**Report structure:**
|
||||||
- Results and details per research item
|
- Results and details per research item
|
||||||
|
|||||||
28
builtins/en/facets/output-contracts/research-report.md
Normal file
28
builtins/en/facets/output-contracts/research-report.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
```markdown
|
||||||
|
# Research Report
|
||||||
|
|
||||||
|
## Research Overview
|
||||||
|
{Summarize the original request in 1-2 sentences}
|
||||||
|
|
||||||
|
## Key Findings
|
||||||
|
{Major insights discovered during research, as bullet points}
|
||||||
|
|
||||||
|
## Research Results
|
||||||
|
|
||||||
|
### {Topic 1}
|
||||||
|
{Data and analysis results}
|
||||||
|
|
||||||
|
### {Topic 2}
|
||||||
|
{Data and analysis results}
|
||||||
|
|
||||||
|
## Data Sources
|
||||||
|
| # | Source | Type | Reliability |
|
||||||
|
|---|--------|------|-------------|
|
||||||
|
| 1 | {Source name/URL} | {Web/Codebase/Literature} | {High/Medium/Low} |
|
||||||
|
|
||||||
|
## Conclusions and Recommendations
|
||||||
|
{Conclusions and recommendations based on research results}
|
||||||
|
|
||||||
|
## Remaining Gaps (if any)
|
||||||
|
- {Items that could not be researched or unverified hypotheses}
|
||||||
|
```
|
||||||
@ -30,8 +30,11 @@ movements:
|
|||||||
policy: research
|
policy: research
|
||||||
knowledge: research
|
knowledge: research
|
||||||
instruction: research-dig
|
instruction: research-dig
|
||||||
|
edit: true
|
||||||
allowed_tools:
|
allowed_tools:
|
||||||
- Read
|
- Read
|
||||||
|
- Write
|
||||||
|
- Bash
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- WebSearch
|
- WebSearch
|
||||||
@ -46,8 +49,10 @@ movements:
|
|||||||
policy: research
|
policy: research
|
||||||
knowledge: research
|
knowledge: research
|
||||||
instruction: research-analyze
|
instruction: research-analyze
|
||||||
|
edit: true
|
||||||
allowed_tools:
|
allowed_tools:
|
||||||
- Read
|
- Read
|
||||||
|
- Write
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- WebSearch
|
- WebSearch
|
||||||
@ -68,6 +73,10 @@ movements:
|
|||||||
- Grep
|
- Grep
|
||||||
- WebSearch
|
- WebSearch
|
||||||
- WebFetch
|
- WebFetch
|
||||||
|
output_contracts:
|
||||||
|
report:
|
||||||
|
- name: research-report.md
|
||||||
|
format: research-report
|
||||||
rules:
|
rules:
|
||||||
- condition: Research results adequately answer the original request
|
- condition: Research results adequately answer the original request
|
||||||
next: COMPLETE
|
next: COMPLETE
|
||||||
|
|||||||
@ -3,10 +3,15 @@
|
|||||||
**やること:**
|
**やること:**
|
||||||
1. 調査結果の主要な発見を整理する
|
1. 調査結果の主要な発見を整理する
|
||||||
2. 未解明の現象、検証されていない仮説、欠損データを特定する
|
2. 未解明の現象、検証されていない仮説、欠損データを特定する
|
||||||
3. 以下のいずれかを判断する
|
3. 分析結果を `{report_dir}/analysis-{N}.md` にファイルとして保存する
|
||||||
|
4. 以下のいずれかを判断する
|
||||||
- **新たな問いがある** → Digger への追加調査指示を作成する
|
- **新たな問いがある** → Digger への追加調査指示を作成する
|
||||||
- **十分に掘り下げた** → 全体サマリーを作成する
|
- **十分に掘り下げた** → 全体サマリーを作成する
|
||||||
|
|
||||||
|
**データ保存ルール:**
|
||||||
|
- 分析のたびに `{report_dir}/analysis-{N}.md`(N は連番)に書き出す
|
||||||
|
- 分析の観点、統合した発見、特定したギャップを含める
|
||||||
|
|
||||||
**追加調査指示の書き方:**
|
**追加調査指示の書き方:**
|
||||||
- 何を調べるか(具体的なデータ・情報)
|
- 何を調べるか(具体的なデータ・情報)
|
||||||
- なぜ必要か(どのギャップを埋めるため)
|
- なぜ必要か(どのギャップを埋めるため)
|
||||||
|
|||||||
@ -4,7 +4,19 @@
|
|||||||
1. 計画の調査項目を順番に実行する
|
1. 計画の調査項目を順番に実行する
|
||||||
2. 各項目について実際に調べる(Web検索、コードベース検索等)
|
2. 各項目について実際に調べる(Web検索、コードベース検索等)
|
||||||
3. 調査できなかった項目は「調査不可」と報告する
|
3. 調査できなかった項目は「調査不可」と報告する
|
||||||
4. 結果を整理して報告を作成する
|
4. 調査データを `{report_dir}/data-{トピック名}.md` にファイルとして保存する
|
||||||
|
5. 結果を整理して報告を作成する
|
||||||
|
|
||||||
|
**外部データのダウンロード:**
|
||||||
|
- 公的機関や信頼できるソースの CSV・Excel・JSON 等のデータファイルは積極的にダウンロードして活用する
|
||||||
|
- ダウンロード前に必ずソースの信頼性を確認する(公的機関、学術機関、企業の公式サイト等)
|
||||||
|
- ダウンロードしたファイルは `{report_dir}/` に保存する
|
||||||
|
- 不審なドメインや実行可能ファイルはダウンロードしない
|
||||||
|
|
||||||
|
**データ保存ルール:**
|
||||||
|
- 調査項目ごとに `{report_dir}/data-{トピック名}.md` に書き出す
|
||||||
|
- トピック名は英語小文字ハイフン区切り(例: `data-market-size.md`)
|
||||||
|
- 出典URL、取得日、生データを含める
|
||||||
|
|
||||||
**報告の構成:**
|
**報告の構成:**
|
||||||
- 調査項目ごとの結果と詳細
|
- 調査項目ごとの結果と詳細
|
||||||
|
|||||||
28
builtins/ja/facets/output-contracts/research-report.md
Normal file
28
builtins/ja/facets/output-contracts/research-report.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
```markdown
|
||||||
|
# 調査レポート
|
||||||
|
|
||||||
|
## 調査概要
|
||||||
|
{元の依頼を1-2文で要約}
|
||||||
|
|
||||||
|
## 主要な発見
|
||||||
|
{調査で得られた重要な知見を箇条書きで}
|
||||||
|
|
||||||
|
## 調査結果
|
||||||
|
|
||||||
|
### {トピック1}
|
||||||
|
{データと分析結果}
|
||||||
|
|
||||||
|
### {トピック2}
|
||||||
|
{データと分析結果}
|
||||||
|
|
||||||
|
## データソース
|
||||||
|
| # | ソース | 種別 | 信頼度 |
|
||||||
|
|---|--------|------|--------|
|
||||||
|
| 1 | {ソース名/URL} | {Web/コードベース/文献} | {High/Medium/Low} |
|
||||||
|
|
||||||
|
## 結論と推奨
|
||||||
|
{調査結果に基づく結論と推奨事項}
|
||||||
|
|
||||||
|
## 残存ギャップ(あれば)
|
||||||
|
- {調査できなかった項目や未検証の仮説}
|
||||||
|
```
|
||||||
@ -30,8 +30,11 @@ movements:
|
|||||||
policy: research
|
policy: research
|
||||||
knowledge: research
|
knowledge: research
|
||||||
instruction: research-dig
|
instruction: research-dig
|
||||||
|
edit: true
|
||||||
allowed_tools:
|
allowed_tools:
|
||||||
- Read
|
- Read
|
||||||
|
- Write
|
||||||
|
- Bash
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- WebSearch
|
- WebSearch
|
||||||
@ -46,8 +49,10 @@ movements:
|
|||||||
policy: research
|
policy: research
|
||||||
knowledge: research
|
knowledge: research
|
||||||
instruction: research-analyze
|
instruction: research-analyze
|
||||||
|
edit: true
|
||||||
allowed_tools:
|
allowed_tools:
|
||||||
- Read
|
- Read
|
||||||
|
- Write
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- WebSearch
|
- WebSearch
|
||||||
@ -68,6 +73,10 @@ movements:
|
|||||||
- Grep
|
- Grep
|
||||||
- WebSearch
|
- WebSearch
|
||||||
- WebFetch
|
- WebFetch
|
||||||
|
output_contracts:
|
||||||
|
report:
|
||||||
|
- name: research-report.md
|
||||||
|
format: research-report
|
||||||
rules:
|
rules:
|
||||||
- condition: 調査結果が元の依頼に対して十分である
|
- condition: 調査結果が元の依頼に対して十分である
|
||||||
next: COMPLETE
|
next: COMPLETE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user