fix: repair corrupted index/log files, fix company_proposal template bugs

- index.md: rebuild with full rejection history and CLO spec
- latest.md: replace garbage with correct cycle state entry
- company_proposal.yml: fix step 1 to output single query (not 3-line text)
  so WebSearcher receives a clean search query instead of multi-line input
- company_proposal.yml: add output_key: index_update to index think step
  so document step source_step: index_update resolves correctly
- strategic_review.yml: add source_step: log_entry to document step
  to be explicit rather than relying on implicit last-step behavior
- research_brief.yml: fix source_step 8->9 (carry forward from prior session)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Baity
2026-04-29 11:32:36 -04:00
parent 16aa204fbf
commit 4294018d58
5 changed files with 90 additions and 59 deletions

View File

@@ -17,27 +17,21 @@ steps:
optional: true
- type: think
max_tokens: 800
output_key: research_queries
max_tokens: 200
output_key: research_query_1
hint: |
You are preparing to write a business plan.
The brief from the strategic review is in the task message above.
Generate 3 precise web search queries to gather real market data for this plan.
Focus on:
1. Market size and growth rate for this type of business
2. Competitor landscape and pricing in this niche
3. Trends and demand signals supporting this opportunity
Generate ONE precise web search query to find market size and growth rate data
for this type of business.
Output ONLY a numbered list of 3 search queries. No explanation. No commentary.
Example:
1. AI content publishing market size 2025
2. automated ebook publishing competitors pricing
3. self-publishing AI tools demand trends
Output ONLY the single search query. No numbering. No explanation. No extra text.
Example: AI operations cost tracking software market size 2025
- type: tool
capability: Tool_WebSearcher
input_from: last_text
input_from: research_query_1
mode: research
max_results: 6
fetch_pages: 3
@@ -83,7 +77,7 @@ steps:
The prior proposals above are your institutional memory. Study them.
Do NOT repeat a company that was already proposed.
=== MARKET RESEARCH (primary) ===
=== MARKET RESEARCH (primary - market size/growth) ===
{market_research_1}
=== END RESEARCH ===
@@ -292,6 +286,7 @@ steps:
- type: think
max_tokens: 3000
output_key: index_update
hint: |
You just wrote a company proposal. Update the proposal index.

View File

@@ -155,7 +155,7 @@ steps:
- [Title](URL)
- type: document
source_step: 8
source_step: 9
dest_path: "deliverables/research/research-{task.id}.md"
commit_msg: "research: brief for task={task.id}"

View File

@@ -284,6 +284,7 @@ steps:
Output ONLY the entry text above.
- type: document
source_step: log_entry
dest_path: "agents/edgar/logs/latest.md"
commit_msg: "log: strategic review cycle {task.id}"