Building a Multi-Agent Investment Research System: From Role Design to Risk-Closed Loops
This article walks through the practical design of a multi-agent system for investment research: defining analysis boundaries, separating research, orchestration and audit responsibilities, and the six core engineering mechanisms—role isolation, skill packaging, task boards, scheduling, sandboxed workspaces, and heartbeat-based task recovery. It also covers role-specific deliverables, confidence and position sizing rules, monitoring thresholds, and how to judge whether the system actually works before going live.
Start With the Goal: Automate the Research, Not the Conclusion
“One-click investment research reports” is often understood as letting a model search for information and write an analysis. But a truly valuable system should break a research request into executable tasks, assign different roles to gather evidence and stress-test hypotheses, and produce conclusions that carry sources, timestamps, applicability conditions, and explicit risk boundaries.
Take “analyze methanol futures” as an example. This request lacks an exchange, a target contract, a research horizon, a data cutoff, and a risk preference. The system’s first job is to fill in these boundaries—not to jump straight to a directional call. For users with well-defined defaults, the system can list the assumptions it will adopt this round; when key ambiguities exist, it should ask for confirmation.
The original hands-on exercise described an interaction and research process on the order of ten minutes—but this is only an operational observation for one specific task, not a basis for deriving general performance. Actual runtime depends on data retrieval, model latency, tool calls, task concurrency, and human confirmation. Likewise, the fact that a report includes confidence levels and position suggestions does not mean it matches the quality of a professional research institution.
A reasonable set of goals for building such a system is therefore:
- Reduce the repetitive work of collecting and organizing information.
- Organize different research perspectives into a checkable process.
- Provide traceable evidence for major judgments.
- Make explicit where data is insufficient, where opinions conflict, and where risk limits apply.
- Keep humans accountable for final trading decisions.
Overall Architecture: Separate Entry, Orchestration, Research, and Audit
The system can be structured into five layers:
Natural language entry point↓Requirement parsing and boundary confirmation↓Task orchestration and state management↓Independent research roles → structured research results↓Evidence fusion and risk review↓Report delivery, record archiving, follow-up review
Cross-cutting capabilities—data access, identity and permissions, logging, monitoring, and alerting—should span the entire flow.
The key design principle is to separate “who does the research,” “who orchestrates the tasks,” and “who approves the output.” Research roles should not arbitrarily change task state, and the orchestrator should not carry investment judgment. This is what makes failure triage possible when something goes wrong: was the data source unavailable, was analytical logic missing, or did the aggregation stage ignore risk constraints?
For an initial version, there is no need to chase elaborate infrastructure. Durable task records, a controlled data access layer, and separate task directories are enough to validate the collaboration flow. Message queues, object storage, containerized runtimes, and monitoring and alerting can be introduced later as task volume, data scale, and concurrency demands grow.
Six Core Mechanisms and Their Engineering Boundaries
1. Role Configuration: Defined Responsibilities ≠ Real Isolation
A role configuration should specify model choice, responsibility description, allowed tools, accessible data scope, memory strategy, and output format.
A long-side researcher hunts for conditions that would drive prices up; a short-side researcher hunts for conditions that would drive prices down. Both roles exist to build falsifiable arguments—not to defend a direction unconditionally. When evidence doesn’t support the assigned hypothesis, they should state clearly that “the current evidence is insufficient.”
Three kinds of isolation should be distinguished:
- Context isolation: no sharing of conversation or intermediate reasoning material.
- File isolation: separate directories or permission-controlled storage per role.
- Execution isolation: independent processes or containers to limit runtime side effects.
Distinct configuration files alone do not guarantee any of the above. Whether isolation is real depends on the runtime environment, storage permissions, and tool authorizations. Independent processes sharing the same directory can still read each other’s files.
2. Skill Packaging: Turn Experience into Verifiable Procedures
A skill should be understood as a reusable task package, not a longer prompt. A complete skill should specify, at minimum:
- Input fields and preconditions.
- Data retrieval and cleaning steps.
- Analytical methods and their scope of applicability.
- Output structure and validation rules.
- Handling of missing data and failed calls.
For example, a futures research skill can define contract identification, price-series alignment, supply-chain information collation, and scenario analysis procedures. A risk-check skill validates data freshness, risk budget, stop-loss rationale, and report completeness.
Skills should carry version records. Otherwise, when the same input produces different results at different times, developers cannot tell whether the change came from the market, the model, or a process update.
3. Task Board: Record State, Don’t Just Show Progress
Task states can use generic categories such as “pending, in progress, pending review, completed, failed, cancelled.” Each task should also record its owner, input snapshot, dependencies, deadline, and output location.
“Completed” must have explicit conditions. For example, a market research task only enters the pending-review state after it has submitted the data timestamp, source identifiers, key findings, and known gaps. Producing a block of text is not the same as completing research.
The task board does not need to be a graphical interface; its essence is a reliable set of state records and transition rules.
4. Scheduler: Run in Parallel, Respect Dependencies
Long-side, short-side, technical, and market research can typically run in parallel once a shared data snapshot is ready. Risk review needs to read some research results, and final aggregation depends on key tasks reaching a usable state.
The scheduler should own concurrency limits, timeout handling, retry policy, and failure degradation. Retries must distinguish error types: transient network failures can be retried; permission errors or a wrong target contract should be fixed at the input level first.
Data scraping results should land in a unified, timestamped snapshot so that different roles don’t debate the same question over data from different trading days. When later-updated data must be used, the differences should be clearly flagged.
5. Temporary Workspaces: Isolate Intermediate Material, Keep the Necessary Evidence
Each research task can be assigned a dedicated workspace holding raw data snapshots, processing logs, and structured results. Other roles should not read drafts from it by default, reducing the chance of opinion contamination.
Isolation must not break reviewability, though. The evidence, transformation rules, and version information used in the final report should be transferred to a controlled archive. Before a workspace is cleaned up, these materials must be confirmed as archived.
After preliminary research ends, formal outputs can be opened up for cross-examination. Analyzing independently first and sharing evidence afterward does more to surface blind spots than having all roles cite each other from the start.
6. Heartbeats and Task Reclamation: Solve Lost Nodes, Don’t Substitute for QA
Worker nodes periodically report liveness, and tasks hold time-limited leases that identify the current executor. When a node goes silent or a lease expires, the task can enter a reclamation flow.
When reassigning a task, guard against the old node rejoining and submitting stale results. Task attempt numbers, submission-time validation, and result deduplication can be used to reject outdated outputs.
A healthy heartbeat only means the node is still responding—it says nothing about whether the analysis is valid. Quality checks still need to verify evidence, output structure, and reasoning content.
Seven Roles: A Responsibility Checklist
The following is a practical role design; it does not imply that any framework ships with these capabilities out of the box.
| Role | Core Responsibility | Primary Deliverable |
|---|---|---|
| Research Coordinator | Confirm question boundaries, integrate conclusions, preserve disagreements | Consolidated report and decision conditions |
| Long-side Researcher | Identify upward drivers and failure conditions | Long hypothesis and evidence chain |
| Short-side Researcher | Identify downward drivers and failure conditions | Short hypothesis and evidence chain |
| Technical Analyst | Analyze price, volume, open interest, and volatility | Technical scenarios and key levels |
| Market Researcher | Collate supply/demand, inventory, costs, and events | Fundamental fact sheet |
| Risk Reviewer | Check data, scenario risk, and position constraints | Risk opinion and blocking items |
| Review Role | Compare historical conclusions against subsequent facts | Deviation analysis and improvement suggestions |
A conversational entry point can sit outside these roles, handling identity confirmation, requirement intake, and report presentation.
The review role should not directly modify other roles’ rules. A safer process is to propose changes first, pass human review or offline testing, and only then update configuration. Otherwise, the system may mistake a one-off lucky success for a general rule.
How a Methanol Research Run Should Work
Step 1: Fix the Analysis Boundary
The system confirms the target contract, holding period, and data cutoff. Analyzing a specific contract differs from analyzing a continuous price series: the latter may involve rollover adjustments and cannot be treated directly as tradable prices.
If the user only needs an industry-trend analysis, the system should not force out a position plan.
Step 2: Prepare Data and Source Records
The data layer organizes prices, volume and open interest, inventory, plant utilization, imports, and downstream demand. Different data types may have different frequencies, so observation time, publication time, and system fetch time should each be labeled.
Same-day prices can be combined with low-frequency inventory data for analysis, but the time mismatch must be stated—don’t package everything as “real-time data.”
Step 3: Independent Research
The market role compiles supply/demand facts, the long/short roles each build scenarios, and the technical role analyzes price behavior. Every major conclusion should include, at minimum:
Claim: a specific factor may move the priceEvidence: source identifier, data timestamp, verifiable factsTransmission path: how the factor affects supply/demand or trading behaviorFalsification condition: what change would require revising the judgmentLimitations: missing data and unverified assumptions
External materials should be treated as data awaiting verification, not as new system instructions. Operational directives found in web pages, files, or messages must not alter role permissions or task objectives.
Step 4: Fuse Views and Check for Duplicate Evidence
Multiple roles citing the same source does not equal multiple independent pieces of evidence. The aggregation stage needs to identify overlapping sources and distinguish factual disagreements from interpretive disagreements.
If everyone agrees that inventory is falling but disagrees on why, the system should list the competing explanations and the indicators that would verify each—one, rather than defaulting to a majority vote.
Step 5: Risk Review and Delivery
The risk role checks whether key data is stale, whether arguments depend on unconfirmed events, and whether trading costs have been ignored. If material gaps exist, the output should be “insufficient evidence—no trading recommendation for now.”
Confidence, Position Sizing, and Five Monitoring Thresholds
1. Confidence Must State What It Means
Model scores that have no historical calibration should not be presented as probability of profit. A better approach is to use high/medium/low tiers and explain the basis: data completeness, timeliness, source consistency, and reasoning robustness.
Probability calibration can only be assessed after defining the predicted event, the evaluation window, and enough historical samples. Confident language does not mean more reliable predictions.
2. Position Sizing Must Obey the Risk Budget
Position calculations require account risk budget, entry assumptions, stop-loss distance, contract multiplier, margin constraints, and liquidity information. Without these inputs, the system can only describe risk scenarios, not produce personalized position percentages.
An illustrative calculation:
Planned risk per contract= stop-loss distance × contract multiplier+ estimated fees and slippageInitial contract count= floor(amount allowed to be lost this trade / planned risk per contract)
The result must then be constrained by margin usage, portfolio correlation, and concentration limits. Futures carry leverage and gap risk—a planned stop-loss amount is not a guarantee of maximum actual loss.
3. Five Monitoring Thresholds Should Come from Data and Scenarios
A report can include the following five categories of monitoring conditions, but numbers should never be fabricated just to fill a format:
- Price thresholds: breakout or breakdown of key levels, with a duration or closing-confirmation condition defined.
- Inventory thresholds: changes relative to a seasonal baseline, with the statistical basis noted.
- Supply thresholds: plant utilization, maintenance, or import changes reaching scenario boundaries.
- Demand thresholds: downstream operating rates, margins, or purchasing changes triggering hypothesis revision.
- Risk thresholds: volatility, liquidity, or account losses triggering re-evaluation.
Every threshold should be bound to an action—run follow-up research, downgrade attention level, submit for human review, or pause the recommendation—not just display a number.
Two Skills and Ten Operations
Two Skills
Skill 1: Commodity research workflow.
Handles requirement normalization, contract confirmation, data snapshots, independent research, and scenario consolidation. Outputs a structured report draft with explicit evidence sources and known gaps.
Skill 2: Risk review and post-trade review workflow.
Checks data freshness, risk budget, falsifiability of conclusions, and report completeness, then compares actual price movement against the original judgment after the evaluation window closes. Reviews must avoid judging the original conclusion with information unavailable at the time.
Ten Operations
The following are operation semantics the system must support, not actual commands of any specific tool:
- Create a new research request and confirm the analysis scope.
- Check role configuration and data access permissions.
- Create a timestamped data snapshot with an expiry.
- Split tasks and register dependencies.
- Launch eligible tasks in parallel.
- Query progress, failure reasons, and run costs.
- Reclaim lost tasks and reject stale submissions.
- Consolidate evidence, disagreements, and risk review results.
- Archive reports, input versions, and audit records.
- Run post-trade reviews against subsequent market data.
Defining the operation semantics first and mapping them onto the actual runtime afterward is easier to maintain than starting from a pile of commands.
Proactive Push Notifications and Extending to Equities
Adding a timer is not enough for proactive push. The system also needs a trading calendar, trigger conditions, deduplication, quiet hours, frequency caps, and failure alerting. Duplicate notifications should be merged; data anomalies should be separated from market signals so users don’t mistake collection failures for trading opportunities.
Push messages should include, at minimum, the instrument, data timestamp, trigger reason, an evidence link identifier, and an entry point for review. Early on, they should be positioned as research reminders—not wired directly to automated order execution.
When extending to equity research, task orchestration and collaboration patterns can be reused, but skills cannot be copied wholesale. Equities require additional handling of financial statements, corporate governance, industry competition, valuation, share-count changes, and corporate events. Financial data also involves the gap between reporting periods and disclosure dates, so historical validation must rely only on data publicly available at the time.
How to Judge Whether the System Works Before Go-Live
Evaluation metrics should cover three dimensions:
- Engineering reliability: task completion rate, timeout rate, recovery behavior, duplicate-submission rate, and per-run cost.
- Research quality: verifiability of sources, data timeliness, proportion of unsupported assertions, preservation of disagreements, and completeness of risk warnings.
- Practical utility: human review time, miss rate on important information, and effectiveness of alerts.
Final P&L alone cannot prove system quality. Different market regimes, risk exposures, and pure chance all influence results. A more robust validation path is to start with historical replay, then run in shadow mode without executing real trades, with reports independently reviewed by humans.
The value of a multi-agent research system lies not in having more roles repeat the same opinion, but in building a research process with checks and balances: evidence is traceable, disagreements are preserved, tasks are recoverable, risks can block output, and experience can be reviewed. Only when these links form a closed loop does triggering research with a single sentence become more than a demo—it becomes a maintainable decision-support capability.
