Multi-Agent Architecture for Investment Research: Design and Engineering Practice

    This article walks through the architecture of a multi-agent investment research system that turns a single natural-language instruction into a structured research report. It explains why a single LLM agent hits context, stance, and memory limits, then breaks down six architectural features—role profiles, reusable skill packages, a shared kanban, a dispatcher, isolated scratch workspaces, and heartbeat-based reclaim—along with the seven research roles, the structured report format, an explicit confidence-scoring rule, and practical operating constraints. Readers will get a concrete blueprint for orchestrating isolated agents with independent stances, plus notes on evolution paths and engineering safeguards.

    1. Background: Where a Single Agent Breaks Down in Investment Research

    Using a large language model directly as a “research analyst” quickly runs into three walls.

    The first is the context wall. A complete analysis of a single instrument has to handle fundamentals (supply and demand, inventory, operating rates), capital flows (positioning structure, basis), technicals (price and volume across multiple timeframes), and news flow at the same time. Packing all of that into one session dilutes the model’s attention, and conclusions tend to stall at vague phrasing like “mildly bullish” or “mildly bearish.”

    The second is the stance wall. Ask the same role to argue both the bullish and the bearish case, and it drifts toward a compromise answer that nobody would object to. Real investment research is the opposite: the bull and the bear each push their own logic to the extreme, and a third party adjudicates.

    The third is the memory wall. Today’s conclusion cannot settle into tomorrow’s prior, so every conversation starts from zero.

    This is where multi-agent orchestration earns its place: split one broad task into several sub-tasks with clear boundaries and independent stances, let each dig deep in an isolated environment, and have a summarizing role cross-validate at the end. The system described below is built on exactly that idea.

    2. Overall Architecture: From One Instruction to a Report

    The user types a single natural-language instruction, for example “analyze methanol.” Internally, the flow breaks into five stages:

    1. Entry and decomposition: the default conversational role receives the instruction, determines the task type, produces a decomposition plan (which roles are needed, in what order, what the deliverables are), and confirms it with the user once.
    2. Parallel research: multiple specialist roles start at the same time, each reading only the data sources it needs, with intermediate output written to workspaces the others cannot see.
    3. Kanban synchronization: all roles exchange status and deliverable pointers through one shared kanban instead of passing messages to each other.
    4. Summarization and adjudication: the summarizing role reads the kanban, combines the conclusions, and outputs a report with confidence scores, position sizing guidance, and key observation thresholds.
    5. Reflection and consolidation: a separate reflection role reviews the run and writes reusable judgment rules back into long-term memory and the skill package.

    Across the whole chain, pure agent runtime is under ten minutes; the rest is the interactive cost of confirming the decomposition plan with the human. That split is deliberate—it moves the human touchpoint forward to the plan level instead of forcing repeated rework at the conclusion level.

    3. Six Key Architectural Features and Their Responsibilities

    3.1 Role Profiles: Isolation Is a Precondition for Collaboration

    Each role is a standalone configuration containing model selection, persona rules, memory space, and the available skill set. Once started, they are independent processes that cannot see each other’s intermediate output. Isolation yields two direct benefits: contexts stay unpolluted, so the technical analyst is not pulled off course by the bull-bear argument; and different capability tiers of models can be assigned to different roles to control overall cost.

    The system has seven specialist roles plus a default conversational entry point:

    Role Core responsibility Key deliverable
    Chief investor (summarizer) Task decomposition, final adjudication Final report
    Bull researcher Argues the upside drivers Upside logic chain and triggers
    Bear researcher Argues the downside risks Downside logic chain and triggers
    Technical analyst Price-volume and structure calls Key levels and pattern conclusions
    Market researcher News flow and supply chain Event list and impact paths
    Risk controller Exposure and stop-loss constraints Position caps and risk budget
    Reflection role Process review and rule consolidation Memory entries, skill updates
    Default entry Human-machine interaction Instructions and confirmations

    3.2 Skill Packages: Turning Domain Knowledge into Reusable Assets

    A skill package bundles prompts, scripts, and a knowledge base into a mountable module. The point is write once, reuse across roles: decomposition templates and report standards are shared skills, so the bull and the bear work to the same argumentation quality bar and you avoid “the format is right but the depth is not.”

    Skill content is best organized in three layers:

    1. skills/
    2. research-common/ # argumentation standards, report templates, confidence definitions
    3. futures-analysis/ # instrument data structures, basis and positioning conventions
    4. report-render/ # output formatting and threshold extraction

    3.3 Shared Kanban: Coordinating Through State, Not Conversation

    Roles do not communicate directly; they read and write the same kanban, where each task card carries the owner, status, dependencies, and the location of the deliverable. The benefit is observability and replayability—where any run got stuck and who produced what can be reconstructed from the board, which also makes retrying failures straightforward.

    3.4 Dispatcher: Turning the Decomposition Plan into an Execution Graph

    The dispatcher starts roles according to dependencies, controls concurrency, and collects results. A schematic task description looks like this:

    1. task: analyze_futures
    2. symbol: methanol
    3. steps:
    4. - role: market_researcher # no dependencies, runs first
    5. - role: technician # no dependencies, runs first
    6. - role: bull_researcher # depends on the first two
    7. - role: bear_researcher # depends on the first two
    8. - role: risk_controller # depends on the bull and bear conclusions
    9. - role: chief_investor # summarizes and produces the report

    3.5 Isolated Scratch Workspaces

    Each role gets a temporary directory for drafts, raw scraped data, and intermediate scripts, reclaimed according to policy when the task ends. This solves the problem of “dirty work does not dirty the main store”: raw scraped content is large and noisy, so it is kept isolated and the summarizing role reads only the conclusion summaries.

    3.6 Heartbeat and Reclaim

    Long-running research tasks need liveness detection: a heartbeat timeout means the role is stuck or the data source is unresponsive, and the reclaim mechanism terminates that process and pushes the task card back to pending, so one failed branch cannot hold up the entire analysis. This is the piece that turns “the demo runs” into “usable day to day.”

    4. What the Output Looks Like

    The final report is not a block of prose but a structured set of conclusions, containing at least four parts:

    • Conclusion and confidence: a clear directional call, plus a confidence score and the deductions behind it;
    • Position sizing: a range constrained by the risk budget, not a single point number;
    • Observation thresholds: five verifiable triggers, for example an inventory inflection point, the magnitude of basis strengthening, or a change in main-contract position concentration;
    • Archived counter-case: the parts of the bear logic that were not adopted but are worth tracking.

    Confidence is best computed with explicit rules so it can be traced back:

    1. confidence = base(0.6)
    2. - 0.1 * number of conflicting key bull/bear assumptions
    3. - 0.05 * number of missing data items
    4. + 0.05 * number of hits from historically validated rules
    5. clamp(confidence, 0.1, 0.9)

    5. Three Reference Checklists

    Seven commands (daily use)

    1. Start an instrument analysis; 2. view the current kanban; 3. confirm the decomposition plan; 4. pause a branch; 5. rerun a failed task; 6. export the report; 7. review the deviation in the previous conclusion.

    Two skills: general investment research argumentation standards; instrument data conventions and report rendering.

    Ten runtime constraints: one role holds one stance; intermediate output lands only in the workspace; cross-role exchange goes only through the kanban; the summarizing role may not fill in data on its own; confidence must come with its deductions; position sizing must carry a risk cap; thresholds must be observable; failed branches must be reclaimable; reflection conclusions must be written back to memory; human confirmation happens once, at the decomposition stage only.

    6. Evolution Paths and Engineering Notes

    Two natural extensions come next. One is porting the multi-role division of labor from futures to equities: role boundaries stay the same, and only the data-convention skill is swapped out. The other is introducing scheduled heartbeats to drive proactive alerts, letting the system decide which instruments are worth flagging and pushing the conclusions to an instant messaging tool.

    One caution: what this kind of system produces is research assistance, not investment advice. Access to data sources, script execution, and message pushing should all be given least privilege and audit logs, keeping automation inside a controllable boundary.