Multi-Agent Investment Research System: Architecture Design and Engineering Practices

    This article explains how to build a multi-agent investment research system that replaces single-turn Q&A with an auditable, role-isolated pipeline. It covers the six-role architecture, three data paths, core capabilities such as profile isolation, reusable skills, a task kanban, dispatching, private workspaces, and heartbeat-based cleanup, along with a full run from a single instruction to an institutional-style report. Readers will also find the role, skill, and command inventories, plus evolution directions and engineering guardrails for traceability, human confirmation, and notification throttling.

    1. Why Single-Turn Q&A Cannot Support Investment Research

    A complete investment research task is not about “answering a question.” It is about running a pipeline that produces a debated, validated, and actionable conclusion. Take a simple request such as “analyze methanol.” In engineering terms, it involves at least six steps: defining the analysis scope, separating bullish and bearish arguments, gathering technical and fundamental data, applying risk and position constraints, cross-checking the findings, and converging on an executable conclusion.

    Single-turn conversational Q&A falls short here. As the context grows, early constraints get diluted. When multiple roles share one prompt, the bullish and bearish perspectives tend to accommodate each other, pushing the conclusion toward a bland middle ground. Intermediate artifacts are not persisted, so it becomes impossible to trace who produced which number and when. A better approach is to split the research process into isolated roles that each produce structured intermediate artifacts, then have a summarization role make the final decision.

    2. Overall Architecture: Six Roles and Three Data Paths

    The system consists of seven role configurations. Six handle business responsibilities, and one serves as the user’s own conversation entry point. Roles do not share context; they exchange information only through files and a kanban board, forming three paths:

    • Instruction path: The entry role clarifies intent, confirms the decomposition plan, and writes tasks to the kanban.
    • Execution path: Each business role claims its own tasks from the kanban and produces report files in an isolated workspace.
    • Aggregation path: The summarization role reads all intermediate artifacts, resolves conflicts, assigns confidence scores, and outputs the final report.

    A sample directory and task structure is shown below (pseudocode, for organization only):

    1. workspace/
    2. tasks/board.json # Kanban: task status and dependencies
    3. scratch/bull/ # Isolated workspace for the bullish role
    4. scratch/bear/ # Isolated workspace for the bearish role
    5. output/report.md # Final report produced by the summarization role
    1. {
    2. "task": "analyze_futures",
    3. "subject": "methanol",
    4. "status": "todo",
    5. "depends_on": ["data_prepare"],
    6. "owner": "cio"
    7. }

    3. Breakdown of Key Capabilities

    3.1 Role Isolation (Profile)

    Each role has its own model selection, persona constraints, memory, and skill set. Once started, roles run as independent processes that cannot see one another. Isolation brings two direct benefits: roles cannot see each other’s biases, so the bullish and bearish sides produce genuinely opposing arguments; and each role’s context size stays manageable, preventing degradation over long workflows.

    3.2 Skill Accumulation (Skill)

    Reusable domain methods are packaged as skills: data acquisition and cleaning, metric calculation, and report template rendering. Decoupling skills from roles means that expanding from futures to stocks only requires adding a data skill for the new asset type, while the division-of-labor logic stays unchanged.

    3.3 Task Kanban

    The kanban is the single source of truth for tasks. Statuses should be limited to four states: todo, in progress, pending review, and done. Dependencies must be declared explicitly to avoid race conditions where the summarization role starts before the data role.

    3.4 Dispatching (Dispatcher)

    The dispatcher wakes roles according to the dependency graph and handles timeout retries and failure degradation. In practice, assign an idempotency key to each task so that reruns do not produce duplicate artifacts.

    3.5 Isolated Workspace (Scratch Workspace)

    Intermediate artifacts must be written to role-private directories. This provides an auditable trail and means that “recalculating with a different number” does not require rerunning the entire pipeline.

    3.6 Scheduled Inspection and Resource Reclamation (Heartbeat-Reclaim)

    The heartbeat mechanism lets roles periodically check whether tasks are stuck. The reclamation mechanism cleans up expired workspaces and zombie processes, preventing long-running tasks from consuming all resources.

    4. A Complete Run: From One Instruction to an Institutional-Grade Report

    The workflow has five steps: the entry role clarifies the analysis scope and horizon; the data role fetches public market data and public indicators such as inventory and operating rates and writes them to disk; the bullish, bearish, and technical roles produce three independent views in parallel; the risk control role sets position limits and stop-loss distances based on volatility; and the summarization role resolves conflicts and outputs a report with confidence scores, position recommendations, and five observable thresholds. The whole process takes a little over ten minutes, with less than ten minutes of actual machine execution and the rest spent interacting with the entry role to confirm the decomposition plan.

    The core of the report is not the conclusion itself but verifiability: each conclusion is followed by its data source and confidence level, and thresholds are written as monitorable numeric conditions, such as triggering a review when inventory accumulates above a certain level for two consecutive weeks or when the basis weakens into a certain range.

    5. Three Reference Lists

    • Role list (7): entry, bullish research, bearish research, technical analysis, market research, risk control, and memory reflection.
    • Skill list (2): data acquisition and metric calculation, report template rendering.
    • Command list (10): initialize environment, view kanban, claim task, submit artifact, request review, trigger aggregation, query status, clean workspace, configure heartbeat, export report.

    6. Evolution Directions and Engineering Considerations

    There are two next steps. First, expand the assets from futures to stocks while reusing the division of labor and kanban. Second, introduce proactive notifications, where the system periodically inspects targets, decides which ones are worth flagging, and pushes them to the user’s instant messaging tool through a message channel. Three guardrails must hold in production: conclusions must be traceable, write operations require human confirmation, and push frequency must have thresholds to prevent noise. If stronger persistence and scheduling are needed, general cloud product categories such as container platforms, object storage, message queues, and monitoring and alerting can carry the load, but business rules should not be hard-coded into prompts.