Multi-Agent Architecture for Investment Research: Design and Implementation

    This article explains how a multi-agent architecture addresses the structural limitations of single-turn Q&A tools in financial analysis. It breaks down six core capabilities—role profiles, skill packages, a Kanban board with a dispatcher, isolated workspaces, and heartbeat-based resource reclaim—then walks through the timing of a complete run, three reference checklists, extension paths, and engineering caveats around compliance, cost, and observability. Readers can apply the same architecture with any orchestration layer that supports multiple roles.

    1. Why Single-Turn Q&A Falls Short in Investment Research

    Traditional research-assistant tools follow a one-question-one-answer pattern: the user asks, and the model returns a block of text. That is sufficient for information retrieval and concept explanation, but it exposes three structural weaknesses once the scenario moves into financial analysis.

    The first is a single perspective. Markets are a contest between bulls and bears, so letting the model reason from only one viewpoint naturally skews conclusions toward optimism or pessimism, with no adversarial cross-check. The second is an opaque process. Users receive a conclusion but cannot see where the data came from or which trade-offs were made along the way, so credibility is impossible to judge. The third is that knowledge is not retained. Every conversation starts from zero, and the metric definitions, data-source validation rules, and report templates established last time are all lost.

    A multi-agent architecture is designed around these three points: role isolation creates adversarial perspectives, workspace isolation preserves process evidence, and skill packages turn domain knowledge into reusable assets. Note that this article discusses a general engineering architecture, not a specific framework or product. Readers can implement it with any coding tool that supports multi-role orchestration, or with a custom scheduling layer.

    2. Six Core Capabilities

    2.1 Role Configuration (Profile)

    A role profile is equivalent to an independent agent definition and typically contains four parts: model selection, persona rules (system prompt), long-term memory, and the available skill set. The critical constraint is “separate process, with intermediate artifacts invisible to each other”—if roles can freely read one another’s drafts, adversarial debate degrades into mutual agreement.

    This system configures seven business roles plus a default conversation entry point:

    Role Responsibility Output
    Synthesizer / Decision Maker Decompose tasks, adjudicate disagreements, finalize Final report
    Bull Researcher Identify upside drivers Bullish argument chain
    Bear Researcher Identify downside drivers and risks Bearish argument chain
    Technical Analyst Price-volume behavior, structure, key levels Levels and signals
    Market Researcher Macro, industry chain, events Fundamental data
    Risk Control Position sizing, stop-loss, extreme scenarios Risk budget
    Memory Reflector Review deviations in historical conclusions Rule revision proposals

    2.2 Skill Package (Skill)

    A skill package encapsulates reusable domain knowledge as a directory, generally containing documentation, scripts, and reference material. It solves the problem of ever-growing prompts: stable methodology is moved out of the prompt and loaded on demand. This article uses two skills. One is a futures product analysis skill containing contract rules, delivery logic, seasonal patterns, and data-source validation scripts. The other is a report generation skill containing section templates, confidence scoring definitions, and threshold specification conventions.

    2.3 Task Board (Kanban) and Dispatcher

    The board is the only collaboration medium between roles. Tasks are broken into cards, and each card has a status (To Do / In Progress / In Review / Done). A role claims only the cards that belong to it, then writes conclusions and evidence links back to the card on completion. The dispatcher assigns work according to dependencies, avoiding idle spinning caused by downstream roles waiting on upstream ones.

    2.4 Isolated Workspace (Scratch Workspace)

    Each role receives its own directory. Intermediate artifacts—fetched market data, computed indicators, drafts—stay in that directory, and only conclusions that are explicitly referenced enter the board. This keeps the main workspace unpolluted while preserving a complete audit trail.

    2.5 Heartbeat-Based Reclaim

    Long-running tasks accumulate large numbers of temporary files and zombie processes. A heartbeat mechanism periodically checks whether roles are still alive, reclaims resources held past their timeout and expired workspaces, and prevents long-running jobs from exhausting disk space and file handles.

    3. Timing of a Complete Run

    The user enters a single sentence: “Analyze methanol.” The subsequent flow is:

    1. The default entry role performs intent recognition, determining the product, time horizon, and analysis depth, then generates a task decomposition plan and asks the user to confirm it (this step is the main source of interaction cost).
    2. The dispatcher creates the board and dispatches four research cards in parallel to the bull researcher, bear researcher, technical analyst, and market researcher.
    3. Each role fetches data, computes, and records evidence in its isolated workspace, then writes structured conclusions back to the board.
    4. The risk control role reads all conclusions and calculates the risk budget and maximum tolerable drawdown.
    5. The synthesizer adjudicates the bull-bear disagreement and outputs a confidence score, a position recommendation, and five observable thresholds.
    6. The memory reflector compares deviations against similar historical conclusions, proposes rule revisions, and writes them back to long-term memory.

    A sample board card structure:

    1. card_id: MTO-001
    2. owner: bear_researcher
    3. status: done
    4. claim: Port inventories have accumulated for three consecutive weeks, pressuring the near-month contract
    5. evidence:
    6. - ws://bear/data/inventory.csv
    7. - ws://bear/notes/log.md
    8. confidence: 0.62
    9. depends_on: []

    4. Three Reference Checklists

    Role checklist (7+1): synthesizer/decision maker, bull researcher, bear researcher, technical analyst, market researcher, risk control, memory reflector, default entry.

    Skill checklist (2): product analysis skill (contract rules + seasonality + data-fetch validation scripts), report generation skill (section templates + scoring definitions + threshold conventions).

    Command checklist (around 10): initialize workspace, view board, claim card, submit conclusion, request review, start parallel analysis, view a role’s logs, reclaim expired workspaces, write to long-term memory, export report.

    5. Extension Paths and Engineering Notes

    The first extension is moving the multi-role division of labor from futures to equities. Role boundaries barely change; only the instrument rules and data sources in the skill packages need replacing. The second is shifting from “passive Q&A” to “active push”: scheduled tasks run analysis periodically, roles then decide on their own which instruments are worth flagging, and notifications are pushed to mobile devices through a messaging channel.

    Four points deserve attention in practice. First, data compliance and source licensing: market and news data must carry explicit usage permissions. Second, conclusions must be labeled as research reference rather than investment advice, with the full evidence chain retained. Third, cost control: parallel roles multiply call volume, so downgrading low-value tasks to a single role is advisable. Fourth, observability: logs, metrics, and alerts should cover dispatch latency, card backlog, and reclaim failures.

    6. Summary

    The value of this architecture lies not in how powerful the model is, but in three things obtained through engineering constraints: robustness of conclusions from adversarial perspectives, auditability of the process from isolated workspaces, and reusability of knowledge from skill packages. Only when the three are combined can a single natural-language instruction reliably produce a structured, verifiable research report.