Skip to content

fix: keep focused research reports to six passes - #156

Merged
iamjr15 merged 1 commit into
mainfrom
fix/research-query-depth
Aug 4, 2026
Merged

fix: keep focused research reports to six passes#156
iamjr15 merged 1 commit into
mainfrom
fix/research-query-depth

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • fixes a production QA finding where a concise Research request silently expanded to ten branches and ran for over twelve minutes
  • gives focused deep research a deterministic 3-6-pass contract with a four-pass default
  • reserves larger multi-entity scans for the existing fan-out workflow
  • reorders focused passes so concise reports prioritize authoritative sources, implementation details, and risks

Production finding

A natural-language Research-mode request for a concise report invoked research_deep with maxQueries: 10. The single tool remained in Working state for more than twelve minutes before being stopped. There was no retry or disconnect; the excessive branch selection was the bottleneck.

Decisions Made

Decision Choice Alternatives considered Reasoning
Focused depth 3-6 passes, default 4 Advisory prompt only; retain maximum 12 Enforces predictable latency regardless of model behavior
Broad scans Keep up to 12 in research_fanout Remove broad coverage Preserves deliberate exhaustive/multi-entity research
Query order Primary sources, implementation, risks first Keep news/competitors first Produces a useful concise report with only three passes

Verification

  • pnpm lint
  • pnpm typecheck
  • pnpm turbo build --force
  • pnpm deadcode
  • pnpm architecture:check
  • pnpm turbo skills:build
  • production Research run after deployment

Keep standard deep research to 3-6 focused passes with a four-pass default. Reserve larger scans for
the fan-out workflow and prioritize primary sources, implementation, risks, and evidence.
@iamjr15
iamjr15 merged commit 59058ff into main Aug 4, 2026
4 checks passed
@iamjr15
iamjr15 deleted the fix/research-query-depth branch August 4, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant