Files
crimson_leaf/templates/market_research.yml
David Baity fc0260bba3 feat: 3 operator approval gates (WaitingForHuman) in incubation pipeline
Gate 1: After market_research — operator selects business concept
Gate 2: After company_design — operator approves design before review cycle
Gate 3: After design_polish — operator green lights bootstrap (company creation)

Each gate is a human_action task (status: WaitingForHuman) that blocks
downstream tasks via depends_on. Operator resolves naturally via Discord.
Pipeline SOP updated with gate diagram and expanded kill conditions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-01 01:13:18 -05:00

108 lines
3.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: market_research
description: "Crimson Leaf market intelligence — web search, trend analysis, opportunity pitch for new business units."
system: agent_prompt
agent_prompt:
- "= identity.md"
sections:
- agent
- project
- history
- rag
- prior_results
- message
- instructions
builders:
prior_results: |
*** WEB SEARCH RESULTS ***
{steps[1].text}
(If the above is empty, use your expert training knowledge to answer this question.)
steps:
- type: think
hint: |
You are Sarah, Head of Market Intelligence at Crimson Leaf LLC.
Your mission: identify the best search query to validate a business opportunity.
The project prompt above describes the industry or niche to explore.
Analyze the prompt and determine:
- What market or industry is being targeted?
- What specific data would prove or disprove demand?
- What competitors or existing solutions should we find?
Then on the last line write:
SEARCH QUERY: [your query here]
Query rules: 38 words. Specific. Think like a search engine.
Good: "AI content agency market size 2025 revenue"
Bad: "What is the market for AI content agencies?"
- type: tool
capability: Tool_WebSearcher
input_from: last_text
- type: think
hint: |
You have live search results above (in PRIOR RESULTS).
If the web search results are empty or unavailable, use your expert training knowledge.
Synthesize everything into a MARKET OPPORTUNITY PITCH for the Crimson Leaf board:
1. MARKET OVERVIEW — What is this industry? How big is it? Is it growing?
2. DEMAND SIGNALS — What evidence shows real demand? Trends, growth rates, pain points.
3. COMPETITIVE LANDSCAPE — Who already operates here? What are they doing well and poorly?
4. OPPORTUNITY GAP — Where is the market undersupplied? What can an AI-powered company do
that humans or existing solutions cannot?
5. BUSINESS CONCEPT SEEDS — Provide 3 distinct company concepts, each with:
- Company name (working title)
- One-sentence value proposition
- Target customer profile
- Revenue model (subscription, per-project, marketplace, etc.)
- Why an AI agent team is uniquely suited to deliver this
- Key risk factors
6. RECOMMENDATION — Rank the 3 concepts. Highlight the single best opportunity with
full justification. Be honest about risks.
7. SOURCES — Key URLs or references from search results.
- type: document
filename: "market-pitch-{{task_name_slug}}"
- type: reply
target: discussion
style: |
Present the Market Opportunity Pitch to the operator. Summarize the 3 business
concepts clearly with their rankings. End with: "Which concept should we design?
Reply with your choice or feedback."
- type: package
hint: |
The market research is complete and presented to the operator.
Spawn a human approval gate — the boardroom will NOT start until
the operator reviews the pitch and selects a concept.
schema:
market_pitch: string
spawn:
- task_type: human_action
task_name: "Operator Review: Select Business Concept — {task.message}"
agent_name: Peter
priority: 8
context:
market_pitch: "{market_pitch}"
gate_purpose: "Review market pitch, select which concept to design"
- task_type: company_design
task_name: "Company Design Boardroom: {task.message}"
agent_name: Peter
priority: 7
context:
market_pitch: "{market_pitch}"
depends_on:
- "Operator Review: Select Business Concept — {task.message}"
- type: close
rag_update: true