@michael-joseph-miller/ant-bot 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/LICENSE +21 -0
  3. package/README.md +267 -0
  4. package/dist/browser-OHRD7YI3.js +524 -0
  5. package/dist/browser-OHRD7YI3.js.map +7 -0
  6. package/dist/bundled-46DUK5PG.js +133 -0
  7. package/dist/bundled-46DUK5PG.js.map +7 -0
  8. package/dist/chunk-7BOHBPB2.js +287 -0
  9. package/dist/chunk-7BOHBPB2.js.map +7 -0
  10. package/dist/chunk-AHAON6J7.js +24 -0
  11. package/dist/chunk-AHAON6J7.js.map +7 -0
  12. package/dist/chunk-DYIJTUMY.js +321 -0
  13. package/dist/chunk-DYIJTUMY.js.map +7 -0
  14. package/dist/chunk-KSQOVWP5.js +310 -0
  15. package/dist/chunk-KSQOVWP5.js.map +7 -0
  16. package/dist/chunk-Z2YT2PZN.js +64 -0
  17. package/dist/chunk-Z2YT2PZN.js.map +7 -0
  18. package/dist/index.js +1562 -0
  19. package/dist/index.js.map +7 -0
  20. package/dist/install-IY2M3OUQ.js +36 -0
  21. package/dist/install-IY2M3OUQ.js.map +7 -0
  22. package/dist/plugin-POMHVGD4.js +53 -0
  23. package/dist/plugin-POMHVGD4.js.map +7 -0
  24. package/dist/scheduler-Q7OHNGP6.js +274 -0
  25. package/dist/scheduler-Q7OHNGP6.js.map +7 -0
  26. package/dist/server.js +3016 -0
  27. package/dist/server.js.map +7 -0
  28. package/dist/skills-66WRX64H.js +17 -0
  29. package/dist/skills-66WRX64H.js.map +7 -0
  30. package/dist/skills-spec.js +172 -0
  31. package/dist/skills-spec.js.map +7 -0
  32. package/dist/tools-P5537ASX.js +148 -0
  33. package/dist/tools-P5537ASX.js.map +7 -0
  34. package/package.json +51 -0
  35. package/skills/README.md +69 -0
  36. package/skills/SPEC.md +274 -0
  37. package/skills/bug-repro/SKILL.md +53 -0
  38. package/skills/deep-research/SKILL.md +451 -0
  39. package/skills/deep-research/references/V6_1_improvements.md +112 -0
  40. package/skills/deep-research/references/completeness_review_checklist.md +25 -0
  41. package/skills/deep-research/references/counter_review_team_guide.md +181 -0
  42. package/skills/deep-research/references/enterprise_analysis_frameworks.md +135 -0
  43. package/skills/deep-research/references/enterprise_mode.md +99 -0
  44. package/skills/deep-research/references/enterprise_quality_checklist.md +160 -0
  45. package/skills/deep-research/references/enterprise_research_methodology.md +164 -0
  46. package/skills/deep-research/references/formatting_rules.md +31 -0
  47. package/skills/deep-research/references/quality_gates.md +77 -0
  48. package/skills/deep-research/references/report_template_v6.md +82 -0
  49. package/skills/deep-research/references/research_notes_format.md +147 -0
  50. package/skills/deep-research/references/research_plan_checklist.md +26 -0
  51. package/skills/deep-research/references/research_report_template.md +49 -0
  52. package/skills/deep-research/references/source_accessibility_policy.md +179 -0
  53. package/skills/deep-research/references/source_quality_rubric.md +28 -0
  54. package/skills/deep-research/references/subagent_prompt.md +116 -0
  55. package/skills/inbox-digest/SKILL.md +51 -0
  56. package/skills/skill-author/SKILL.md +92 -0
  57. package/skills/weekly-report/SKILL.md +49 -0
  58. package/web/dist/assets/index-BLQ8rPiN.js +130 -0
  59. package/web/dist/assets/index-IEIkG_jd.css +2 -0
  60. package/web/dist/index.html +13 -0
@@ -0,0 +1,164 @@
1
+ # Enterprise Research Methodology
2
+
3
+ ## Six-Dimension Data Collection
4
+
5
+ Enterprise research requires parallel collection across six dimensions. Execute all six in order, writing findings to a structured draft after each dimension.
6
+
7
+ ### Dimension 1: Company Fundamentals
8
+
9
+ ```
10
+ Step 1.1: Confirm legal entity
11
+ ├── Clarify parent/subsidiary/affiliate boundaries
12
+ ├── Query: "{company} legal entity corporate structure"
13
+ ├── Output: Entity scope statement
14
+ └── Verify: Map operating entities to brands
15
+
16
+ Step 1.2: Basic information
17
+ ├── Query round 1: "{company} founding date headquarters founder"
18
+ ├── Query round 2: "{company} company overview profile"
19
+ ├── Query round 3: "{company} CEO management team executives"
20
+ ├── Source priority: Official site > Regulatory filings > Authoritative media
21
+ └── Output: Basic info table (name, founded, HQ, CEO, employees, listing status)
22
+
23
+ Step 1.3: Funding history
24
+ ├── Query: "{company} funding rounds valuation IPO"
25
+ ├── Key fields: round, amount, investors, post-money valuation, date
26
+ └── Output: Funding timeline table
27
+
28
+ Step 1.4: Ownership structure
29
+ ├── Query: "{company} ownership structure beneficial owner"
30
+ ├── Key fields: controller identity, economic interest %, voting rights %, control mechanisms (dual-class etc.)
31
+ └── Output: Ownership summary
32
+ ```
33
+
34
+ ### Dimension 2: Business & Products
35
+
36
+ ```
37
+ Step 2.1: Business landscape scan
38
+ ├── Query round 1: "{company} product lines business segments"
39
+ ├── Query round 2: "{company} revenue breakdown by segment"
40
+ ├── Query round 3: "{company} business model monetization"
41
+ ├── Key fields: segment name, positioning, revenue share, YoY growth, synergies
42
+ └── Output: Business landscape table
43
+
44
+ Step 2.2: Core product analysis
45
+ ├── Query: "{company} core products DAU MAU user base"
46
+ ├── Per product: positioning, target users, scale (DAU/MAU), market share, monetization, competitive advantage, trends
47
+ └── Output: Product matrix table
48
+
49
+ Step 2.3: Revenue structure analysis
50
+ ├── Source: Financial reports (deep extraction)
51
+ ├── Breakdown by: segment, geography, customer type, pricing model
52
+ └── Output: Revenue structure summary
53
+ ```
54
+
55
+ ### Dimension 3: Competitive Position
56
+
57
+ ```
58
+ Step 3.1: Industry position
59
+ ├── Query: "{company} industry ranking market share"
60
+ ├── Key fields: industry definition, TAM/SAM/SOM, company rank, share, concentration (CR3/CR5)
61
+ └── Output: Industry position analysis
62
+
63
+ Step 3.2: Competitor identification & comparison
64
+ ├── Query round 1: "{company} competitors"
65
+ ├── Query round 2: "{company} vs {competitor A} comparison"
66
+ ├── Query round 3: "{company} vs {competitor B} differences"
67
+ ├── Comparison dimensions: founding, revenue, market share, core products, user scale, valuation/market cap, strengths, weaknesses
68
+ ├── Minimum: ≥3 competitors identified
69
+ └── Output: Competitive comparison table
70
+
71
+ Step 3.3: Competitive barriers assessment
72
+ ├── Use quantified barrier framework (see enterprise_analysis_frameworks.md)
73
+ ├── 7 dimensions: network effects, scale economies, brand, technology/patents, switching costs, regulatory licenses, data assets
74
+ └── Output: Barrier scorecard with rating
75
+ ```
76
+
77
+ ### Dimension 4: Financial & Operations
78
+
79
+ ```
80
+ Step 4.1: Financial data collection
81
+ ├── Query: "{company} financial results {year} revenue profit"
82
+ ├── Core metrics (3-year minimum): revenue, revenue growth, net income, gross margin, net margin, operating cash flow, R&D expense, R&D ratio
83
+ └── Output: Financial metrics table (3+ years)
84
+
85
+ Step 4.2: Operating efficiency analysis
86
+ ├── Query: "{company} ROE ROA efficiency per-employee"
87
+ ├── Efficiency metrics: ROE, ROA, revenue per employee, accounts receivable days, debt-to-equity
88
+ └── Output: Operating efficiency table
89
+
90
+ Step 4.3: Cross-validation
91
+ ├── Require ≥2 independent sources for key financial data
92
+ ├── Sources: company filings (primary), regulatory filings, authoritative financial data providers
93
+ ├── Deviation rules:
94
+ │ ├── ≤10%: Pass
95
+ │ ├── 10-20%: Flag with explanation
96
+ │ └── >20%: Require third-party verification
97
+ └── Output: Validation record
98
+ ```
99
+
100
+ ### Dimension 5: Recent Developments
101
+
102
+ ```
103
+ Step 5.1: Recent news scan (past 6 months)
104
+ ├── Query round 1: "{company} latest news {current year}"
105
+ ├── Query round 2: "{company} strategy pivot latest developments"
106
+ ├── Query round 3: "{company} executive changes leadership"
107
+ ├── Query round 4: "{company} partnership acquisition latest"
108
+ ├── Query round 5: "{company} product launch new release"
109
+ ├── Event types: product launches, fundraising/capital, strategy shifts, executive changes, M&A/partnerships, regulatory/compliance
110
+ ├── Minimum: ≥5 events identified
111
+ └── Output: Major events table
112
+
113
+ Step 5.2: Strategic signal interpretation
114
+ ├── Dimensions: expansion signals, contraction signals, transformation signals, risk signals
115
+ └── Output: Strategic signal analysis
116
+ ```
117
+
118
+ ### Dimension 6: Internal/Proprietary Sources
119
+
120
+ ```
121
+ Step 6.1: Internal knowledge base query (if available)
122
+ ├── Query 1: "our company's relationship with {target company}"
123
+ ├── Query 2: "internal assessment of {target company}"
124
+ ├── Query 3: "{target company} competitive analysis"
125
+ ├── Query 4: "{target company} industry research"
126
+ └── Output: Internal perspective supplementary info
127
+
128
+ Step 6.2: If no internal sources available
129
+ ├── State explicitly: "No internal/proprietary sources available for this research"
130
+ ├── Compensate with additional public source depth
131
+ └── Note limitation in final report
132
+ ```
133
+
134
+ ## Data Source Priority Matrix
135
+
136
+ | Priority | Source Type | Reliability | Timeliness | Use Case |
137
+ |----------|-----------|-------------|------------|----------|
138
+ | **P0** | Official filings / annual reports | 10/10 | High | Core financial data |
139
+ | **P0** | Company website / announcements | 10/10 | High | Basic info, updates |
140
+ | **P1** | Regulatory filings | 9/10 | High | Ownership, licenses |
141
+ | **P1** | Authoritative industry reports | 9/10 | Medium | Market position, trends |
142
+ | **P2** | Mainstream financial media | 8/10 | High | News, analysis |
143
+ | **P2** | Professional research institutions | 8/10 | Medium | Deep analysis, forecasts |
144
+ | **P3** | Social media / forums | 5/10 | High | Sentiment signals only |
145
+
146
+ **Rule**: P0 + P1 are primary sources. P2 for validation. P3 for reference only, never as sole source.
147
+
148
+ ## Cross-Validation Rules
149
+
150
+ | Data Type | Min Sources | Max Deviation | Primary Source | Fallback Sources |
151
+ |-----------|------------|---------------|----------------|-----------------|
152
+ | Financial data | 2 | 10% | Official financial reports | Regulatory filings, analyst reports |
153
+ | Market share | 2 | 15% | Industry reports | Company disclosures, third-party analysis |
154
+ | Management info | 1 | N/A | Company official sources | Regulatory filings, reputable media |
155
+ | User metrics | 2 | 20% | Company disclosures | Third-party analytics, industry reports |
156
+
157
+ ## Search Strategy Best Practices
158
+
159
+ 1. **Multi-angle queries**: 3 different query angles per topic
160
+ 2. **Time filtering**: Prioritize data within last 12 months for operational data, last 3 years for financial trends
161
+ 3. **Site restriction**: Use `site:` for authoritative domains when possible
162
+ 4. **Language diversity**: Query in both English and the company's primary language
163
+ 5. **Exclude noise**: Use `-` to exclude irrelevant results
164
+ 6. **Progressive depth**: Start broad, then narrow based on gaps identified
@@ -0,0 +1,31 @@
1
+ # Formatting Rules
2
+
3
+ Use these rules to enforce strict report formatting.
4
+
5
+ ## Headings
6
+ - Use H2 for top-level sections
7
+ - Use H3 for subsections
8
+ - Keep heading titles consistent with the report spec
9
+
10
+ ## Section Order
11
+ - Follow the report spec order exactly
12
+ - Do not add or remove sections without approval
13
+
14
+ ## Bullets and Tables
15
+ - Use bullets for lists of findings and actions
16
+ - Use tables for comparisons, metrics, or timelines
17
+ - Keep tables compact and label all columns
18
+
19
+ ## Citations
20
+ - Use the citation style defined in the report spec
21
+ - Place citations immediately after the claim
22
+ - If a claim has multiple sources, list all relevant sources
23
+
24
+ ## Terminology
25
+ - Define key terms once and reuse consistently
26
+ - Preserve technical terms in English
27
+
28
+ ## Formatting Hygiene
29
+ - Avoid mixed numbering styles in the same section
30
+ - Avoid inline URLs in prose unless the spec requires it
31
+ - Do not embed new assets unless requested
@@ -0,0 +1,77 @@
1
+ # Quality Gates V6
2
+
3
+ ## Gate 1: Task Notes Quality (after P2)
4
+
5
+ | Check | Standard | Lightweight | Fix |
6
+ |-------|----------|-------------|-----|
7
+ | All tasks completed | 100% | 100% | Re-dispatch failed tasks |
8
+ | Sources per task | >= 2 | >= 1 | Run additional searches |
9
+ | Findings per task | >= 3 | >= 2 | Deepen search or fetch more |
10
+ | DEEP tasks have Deep Read Notes | 100% | 100% | Fetch and read top source |
11
+ | All source URLs from actual search | 100% | 100% | Remove any invented URL |
12
+
13
+ ## Gate 2: Citation Registry (after P3)
14
+
15
+ | Check | Standard | Lightweight | Fix |
16
+ |-------|----------|-------------|-----|
17
+ | Total approved sources | >= 12 | >= 6 | Flag thin areas for P6 |
18
+ | Unique domains | >= 5 | >= 3 | Diversify in re-search |
19
+ | Max single-source share | <= 25% | <= 30% | Find alternatives |
20
+ | Official source coverage | >= 30% for standard | >= 20% for lightweight | Add official sources |
21
+ | Source-type balance | official + academic + secondary at least 2 types | same | Fill missing type
22
+ | Dropped sources listed | All | All | Must be explicit |
23
+ | No duplicate URLs | 0 duplicates | 0 | Merge during P3 |
24
+
25
+ ## Gate 3: Draft Quality (after P5)
26
+
27
+ | Check | Standard | Lightweight | Fix |
28
+ |-------|----------|-------------|-----|
29
+ | Every [n] in registry | 100% | 100% | Remove or fix |
30
+ | No dropped source cited | 0 violations | 0 | Remove immediately |
31
+ | Citation density | >= 1 per 200 words | >= 1 per 300 words | Add citations |
32
+ | Every section has confidence marker | 100% | 100% | Add missing |
33
+ | High-confidence claims backed by official source | 100% | 100% | Downgrade or re-source |
34
+ | Counter-claim recorded for major sections | 100% | 70% | Add opposing interpretation |
35
+ | Total word count | 3000-8000 | 2000-4000 | Adjust scope |
36
+
37
+ ## Gate 4: Notes Traceability (after P6)
38
+
39
+ | Check | Threshold | Fix |
40
+ |-------|-----------|-----|
41
+ | Every specific claim traceable to a task note finding | 100% | 100% | Remove or mark [unverified] |
42
+ | Every statistic/number appears in some task note | 100% | 100% | Remove or verify |
43
+ | No claim contradicts a task note | 0 contradictions | 0 | Rewrite to match notes |
44
+ | Claims with recency sensitivity include source date and AS_OF | 100% | 100% | Add date metadata |
45
+ | P6 found >= 3 issues | Must | Re-examine harder if 0 found |
46
+
47
+ ## Gate 5: Verification (after P7)
48
+
49
+ | Check | Threshold | Fix |
50
+ |-------|-----------|-----|
51
+ | Registry cross-check: all [n] valid | 100% | 100% | Remove invalid [n] |
52
+ | Spot-check: 5+ claims traced to notes | >= 4/5 pass | Fix failing claims |
53
+ | No dropped source resurrected | 0 | Remove immediately |
54
+ | Source concentration check for key claims | None > 25% | diversify |
55
+
56
+ ## Anti-Hallucination Patterns
57
+
58
+ | Pattern | Where to detect | Fix |
59
+ |---------|----------------|-----|
60
+ | URL not from any subagent search | P7 registry check | Remove citation |
61
+ | Claim not in any task note | P6 traceability check | Remove or mark [unverified] |
62
+ | Number more precise than source | P6 ("73.2%" when note says "about 70%") | Use note's precision |
63
+ | Source authority inflated | P3 registry building | Re-score from notes |
64
+ | Source type mismatched to claim | P3 + P6 | Reclassify or replace source |
65
+ | "Studies show..." without naming study | P6 | Name specific source or remove |
66
+ | Dropped source reappears | P7 cross-check | Remove immediately |
67
+ | Subagent invented a URL | Gate 1 (lead verifies subagent notes) | Remove from notes before P3 |
68
+
69
+ ## Chinese-Specific Patterns
70
+
71
+ | Pattern | Fix |
72
+ |---------|-----|
73
+ | Fake CNKI URL format | Remove, note gap |
74
+ | "某专家表示" without name/institution | Name or remove |
75
+ | "据统计" without data source | Add source or qualitative language |
76
+ | Fabricated institution report | Verify existence or remove |
77
+ | 旧模型信息未标注 AS_OF | 降级置信度并重搜 |
@@ -0,0 +1,82 @@
1
+ # {{TITLE}}
2
+
3
+ > 研究日期: {{DATE}} | 来源数量: {{SOURCE_COUNT}} | 字数: ~{{WORD_COUNT}} | 模式: {{MODE}} | AS_OF: {{AS_OF}} | 官方源占比: {{OFFICIAL_SHARE}}
4
+
5
+ ## 摘要 / Executive Summary
6
+
7
+ {{200-400 words summarizing key findings, methodology, conclusions, and risks.}}
8
+
9
+ ---
10
+
11
+ ## 目录
12
+
13
+ {{Auto-generate from actual section headers below.}}
14
+
15
+ ---
16
+
17
+ {{BODY SECTIONS — Adapt to topic type and include opposing interpretation per section.}}
18
+
19
+ For each section:
20
+
21
+ ## N. [Topic-Specific Section Title]
22
+
23
+ {{Section content with inline citations [1][2].
24
+ Standard mode: 500-1000 words per section.
25
+ Lightweight mode: 300-600 words per section.
26
+
27
+ Rules:
28
+ - 每个事实性论点都需要引用 [n]
29
+ - 数字/百分比必须有来源
30
+ - 出现不同证据时要成对给出支持与反驳
31
+ }}
32
+
33
+ **置信度:** High/Medium/Low
34
+
35
+ **依据:** {{Why this confidence level — source agreement, evidence quality, data availability}}
36
+
37
+ **反方解释:** {{One explicit opposing interpretation with supporting citations if any, or [unverified] if insufficient.}}
38
+
39
+ ---
40
+
41
+ {{COUNTER-REVIEW SUMMARY}}
42
+
43
+ - **核心争议 1:** [主张 A 与反向证据 B 对比] [n][m]
44
+ - **核心争议 2:** ...
45
+
46
+ ## 关键发现 / Key Findings
47
+
48
+ {{3-5 findings in Standard mode, 2-3 in Lightweight. Each finding should:}}
49
+ - 具体结论
50
+ - 对应引文
51
+ - 信心说明
52
+
53
+ Example:
54
+ - **发现 1:** [Most important discovery] [3][7]
55
+ - **发现 2:** [Second most important] [1][4]
56
+
57
+ ---
58
+
59
+ ## 局限性与未来方向 / Limitations & Future Directions
60
+
61
+ ### 本研究局限
62
+ {{Be explicit:
63
+ - What topics/angles couldn't be covered and why
64
+ - Methodological limits (web-accessible sources, paywall, language, timing)
65
+ - Source coverage gaps and counter-claim evidence gaps
66
+ }}
67
+
68
+ ### 未来方向
69
+ {{Concrete suggestions for follow-up research with priority and responsible evidence type.}}
70
+
71
+ ---
72
+
73
+ ## 参考文献 / References
74
+
75
+ [1] Author/Org. "Title". Source-Type: official/academic/secondary-industry/journalism/community/other. As Of: YYYY-MM-DD. URL.
76
+ [2] Author/Org. "Title". Source-Type: ... As Of: YYYY-MM-DD. URL.
77
+
78
+ Rules:
79
+ - Every [n] in body MUST have matching entry here
80
+ - Every entry here MUST be cited at least once
81
+ - Source-Type and As Of fields are mandatory
82
+ - All URLs MUST come from actual search results (P2 source pool)
@@ -0,0 +1,147 @@
1
+ # Research Notes Format Specification
2
+
3
+ The research notes are the ONLY communication channel between subagents and
4
+ the lead agent. Every fact in the final report must be traceable to a line in
5
+ these notes. No exceptions.
6
+
7
+ ## File Structure
8
+
9
+ ```
10
+ workspace/research-notes/
11
+ task-a.md Subagent A writes (history expert)
12
+ task-b.md Subagent B writes (transport historian)
13
+ task-c.md Subagent C writes (telecom analyst)
14
+ task-d.md Subagent D writes (comparative analyst)
15
+ registry.md Lead agent builds from task-*.md (P3)
16
+ ```
17
+
18
+ ## Per-Task Notes Format
19
+
20
+ Each `task-{id}.md` file follows this exact structure:
21
+
22
+ ```markdown
23
+ ---
24
+ task_id: a
25
+ role: Economic Historian
26
+ status: complete
27
+ sources_found: 4
28
+ ---
29
+
30
+ ## Sources
31
+
32
+ [1] Before AI skeptics, Luddites raged against the machine | https://www.nationalgeographic.com/... | Source-Type: secondary-industry | As Of: 2025-08 | Authority: 8/10
33
+ [2] Rage against the machine | https://www.cam.ac.uk/research/news/rage-against-the-machine | Source-Type: academic | As Of: 2024-04 | Authority: 8/10
34
+ [3] Luddite | https://en.wikipedia.org/wiki/Luddite | Source-Type: community | As Of: 2026-03 | Authority: 7/10
35
+ [4] Learning from the Luddites | https://forum.effectivealtruism.org/... | Source-Type: community | As Of: 2025-10 | Authority: 6/10
36
+
37
+ ## Findings
38
+
39
+ - Luddite movement began March 11, 1811 in Arnold, Nottinghamshire. [3]
40
+ - Luddites were skilled craftspeople, not anti-technology extremists. [1][2]
41
+ - In the 100M-person textile industry, Luddites never exceeded a few thousand. [2]
42
+ - Government crushed movement: 12 executed at York Assizes, Jan 1813. [3]
43
+ - Movement collapsed by 1817 under military repression. [1]
44
+ - Full textile mechanization transition took 50-90 years (1760s-1850s). [4]
45
+ - Textile workers' real wages dropped ~70% during transition. [4]
46
+ - Key lesson for AI: Luddites organized AFTER displacement began, losing leverage. [4]
47
+
48
+ ## Deep Read Notes
49
+
50
+ ### Source [1]: National Geographic — Luddites and AI
51
+ Key data: destroyed up to 10,000 pounds of frames in first year alone.
52
+ Movement spread from Nottinghamshire to Yorkshire and Lancashire in 1812.
53
+ Children made up 2/3 of workforce at Cromford factory.
54
+ Key insight: Luddites attacked the SYSTEM of exploitation, not machines per se.
55
+ They protested manufacturers circumventing standard labor practices.
56
+ Useful for: framing section on historical displacement, correcting "anti-tech" myth
57
+
58
+ ### Source [2]: Cambridge University
59
+ Key data: Luddites were "elite craftspeople" not working class broadly.
60
+ Yorkshire croppers had 7-year apprenticeships. Movement was localized, never exceeded a few thousand.
61
+ Key insight: The movement was smaller and more elite than popular history suggests.
62
+ Useful for: nuancing the scale of historical resistance
63
+
64
+ ## Gaps
65
+
66
+ - Could not find quantitative data on how many specific jobs were lost to textile machines
67
+ - No Chinese-language academic sources on Luddite movement found
68
+ - Alternative explanation: displacement narrative may be partly confounded by wartime demand shocks
69
+ ```
70
+
71
+ ## Source Line Format
72
+
73
+ Each source line in the `## Sources` section must contain exactly:
74
+ ```
75
+ [n] Title | URL | Source-Type: one-of{official|academic|secondary-industry|journalism|community|other} | As Of: YYYY-MM(or YYYY) | Authority: score/10
76
+ ```
77
+
78
+ Rules:
79
+ - [n] numbers are LOCAL to this task file (start at [1])
80
+ - Lead agent will reassign GLOBAL [n] numbers in registry.md
81
+ - URL must be from an actual search result (subagent MUST NOT invent URLs)
82
+ - `Authority` score follows guide in quality-gates.md
83
+ - `As Of` must be provided; use `undated` if unknown
84
+ - High-confidence claims in final report must use `official` or `academic` sources
85
+
86
+ ## Findings Line Format
87
+
88
+ Each finding must be:
89
+ - One sentence of specific, factual information
90
+ - End with source number(s) in brackets: [1] or [1][2]
91
+ - Max 10 findings per task (forces prioritization)
92
+ - No vague claims like "research shows..." — name what specifically
93
+
94
+ Good: `Full textile mechanization transition took 50-90 years (1760s-1850s). [4]`
95
+ Bad: `The transition took a long time. [4]`
96
+ Bad: `Studies suggest that it was a lengthy process.` (no source, vague)
97
+
98
+ ## Deep Read Notes Format
99
+
100
+ For each source that was web_fetched (full article read):
101
+ - Key data: specific, numeric evidence from article
102
+ - Key insight: the one thing this source says that others don't
103
+ - Useful for: which final section this supports
104
+
105
+ Max 4 lines per source. This is a research notebook, not a summary.
106
+
107
+ ## Gaps Section
108
+
109
+ List what the subagent searched for but could NOT find, and possible counter-readings.
110
+ This signals where evidence is thin and confidence should be lowered.
111
+
112
+ ## Registry Format (built by lead agent in P3)
113
+
114
+ The `registry.md` file merges all task sources into a global registry and adds source-type / as-of fields.
115
+
116
+ ```markdown
117
+ # Citation Registry
118
+ Built from: task-a.md, task-b.md, task-c.md, task-d.md
119
+
120
+ ## Approved Sources
121
+
122
+ [1] National Geographic — Luddites | https://www.nationalgeographic.com/... | Source-Type: secondary-industry | As Of: 2026-03 | Auth: 8 | From: task-a
123
+ [2] Cambridge — Rage against machine | https://www.cam.ac.uk/... | Source-Type: academic | As Of: 2012-04 | Auth: 8 | From: task-a
124
+ [3] OpenAI — Day Horse Lost Job | https://blogs.microsoft.com/... | Source-Type: official | As Of: 2026-01 | Auth: 8 | From: task-b
125
+ ...
126
+ [N] Last source
127
+
128
+ ## Dropped
129
+
130
+ x Quora answer | https://www.quora.com/... | Source-Type: community | As Of: 2024-10 | Auth: 3 | Reason: below threshold
131
+ x Study.com | https://study.com/... | Source-Type: secondary-industry | As Of: undated | Auth: 4 | Reason: better sources available
132
+
133
+ ## Stats
134
+
135
+ Total evaluated: 22
136
+ Approved: 16
137
+ Dropped: 6
138
+ Unique domains: 12
139
+ Source-type: official 4 / academic 3 / secondary-industry 5 / journalism 2 / community 2
140
+ Max single-source share: 3/16 = 19% (pass)
141
+ ```
142
+
143
+ Rules for registry:
144
+ - [n] numbers here are FINAL — they appear unchanged in the report
145
+ - Every [n] in the report must exist in the Approved list
146
+ - Every Dropped source must NEVER appear in the report
147
+ - If two tasks found the same URL, keep it once with the higher authority score
@@ -0,0 +1,26 @@
1
+ # Research Plan Checklist
2
+
3
+ Use this checklist before calling the deepresearch tool.
4
+
5
+ ## Scope and Questions
6
+ - Define the primary research question
7
+ - Break into 3-7 subquestions
8
+ - Define scope boundaries and exclusions
9
+ - Define time range and geography
10
+
11
+ ## Evidence Strategy
12
+ - Identify primary sources needed
13
+ - Identify secondary sources needed
14
+ - Define inclusion and exclusion criteria
15
+ - Define minimum number of sources per section
16
+
17
+ ## Query Set
18
+ - Create query variants per subquestion
19
+ - Include synonyms and alternate terms
20
+ - Add disambiguating keywords
21
+
22
+ ## Query Log Template
23
+ - Query:
24
+ - Intended section:
25
+ - Date run:
26
+ - Notes:
@@ -0,0 +1,49 @@
1
+ # Research Report Template
2
+
3
+ ## Title
4
+ - Report title
5
+ - Date
6
+ - Author or team (optional)
7
+
8
+ ## Executive Summary
9
+ - 3-6 bullets, each supported by evidence
10
+ - Include top conclusions and implications
11
+
12
+ ## Research Question and Scope
13
+ - Primary question
14
+ - Scope boundaries (what is included and excluded)
15
+ - Time range and geography
16
+
17
+ ## Methodology
18
+ - Data sources used
19
+ - Search strategy and inclusion criteria
20
+ - Limitations and known gaps
21
+
22
+ ## Key Findings
23
+ - 5-10 findings, each with citations
24
+
25
+ ## Analysis
26
+ ### Section 1: [Theme]
27
+ - Structured paragraphs with citations
28
+ - If comparative, include a table
29
+
30
+ ### Section 2: [Theme]
31
+ - Structured paragraphs with citations
32
+
33
+ ### Section 3: [Theme]
34
+ - Structured paragraphs with citations
35
+
36
+ ## Risks and Limitations
37
+ - Data gaps
38
+ - Conflicting sources
39
+ - Uncertainty ranges
40
+
41
+ ## Recommendations (If requested)
42
+ - Actionable recommendations tied to findings
43
+ - Each recommendation cites evidence
44
+
45
+ ## Appendix A: Evidence Table
46
+ - Table mapping claims to sources
47
+
48
+ ## Appendix B: Sources
49
+ - Full citations or links