Architecture Design and Implementation of a Multi-Agent Futures Research System

    This article presents a general-purpose architecture for building a multi-agent system that produces verifiable commodity futures research reports. It covers a four-layer system design with seven agent roles, six core engineering mechanisms (role configuration, reusable skills, task boards, scheduling, isolated workspaces, and heartbeat-based task recovery), a full walkthrough of a methanol research task, and practical approaches to confidence scoring, position sizing under risk budgets, and observation thresholds. It concludes with lifecycle management, notification design, extension to equity research, and acceptance criteria for production deployment.

    1. From Auto-Generated Reports to a Verifiable Research Process

    Getting a large language model to generate a futures research report is not difficult. What is genuinely hard: ensuring the cited data is current, separating facts from inference, giving bullish and bearish evidence equal scrutiny, and revising conclusions promptly when conditions change.

    The value of a multi-agent research system should therefore not be summarized as “several models writing an article together.” It should be understood as decomposing the research task into a workflow that is executable, checkable, and recoverable.

    Take “analyze methanol” as an example. That sentence is only a task entry point—it is not enough to launch serious research. The system must at least clarify:

    • Which contract to analyze, and its delivery month.
    • Whether the analysis targets intraday trading, swing observation, or medium-term fundamental research.
    • The data cutoff time.
    • Whether the user holds positions, and what risk limits apply.
    • Whether the output is a research brief, a scenario analysis, or a decision-support report with conditional position recommendations.

    When these conditions are missing, the system should ask only the minimum necessary clarifying questions, or explicitly document the default assumptions it adopts—rather than inventing a plausible trading context on its own.

    This article describes a general architecture design; it does not represent a capability commitment of any specific tool. Role isolation, task dispatch, and timeout-based recovery must all be guaranteed by the concrete implementation. Task duration also depends on data retrieval, model response times, retry counts, and human confirmation, so a single run should not be treated as a stable performance benchmark.

    2. Overall Architecture: One Entry Point, Seven Roles, a Unified Evidence Chain

    The system can be divided into four layers:

    1. Interaction layer: receives natural-language requests, clarifies scope, shows progress, and returns results.
    2. Orchestration layer: decomposes tasks, maintains dependencies, dispatches work, handles timeouts, and decides when to enter the aggregation stage.
    3. Research execution layer: each role performs independent research under clearly defined permissions and a unified data standard.
    4. Data and audit layer: stores data snapshots, evidence references, task states, report versions, and post-mortem records.

    The basic flow:

    User request → Scope confirmation → Create research task → Parallel evidence collection → Cross-review → Risk check → Aggregate report → Archive and post-mortem

    “Parallel” here is not a case of more is better. While the data standard is not yet fixed, roles should not be free to pick different time windows; risk control should not be a mere formality performed after the report is finished. A more sensible arrangement: first establish a unified data contract, then run independent analysis, and only then enter the rebuttal, review, and aggregation stages.

    Responsibilities of the Seven Roles

    Role Primary responsibility Key outputs What it should NOT do
    Research Coordinator Define scope, organize aggregation, resolve conflicts Synthesis report, disagreement notes, items pending confirmation Paper over missing evidence with narrative
    Bull Researcher Find conditions and evidence for price upside Bullish thesis, trigger conditions, invalidation conditions Collect only supporting material
    Bear Researcher Find conditions and evidence for price downside Bearish thesis, trigger conditions, invalidation conditions Object for the sake of objecting
    Technical Analyst Analyze price, volume, open interest, and volatility structure Trend judgment, key levels, technical invalidation conditions Treat chart signals as certain outcomes
    Market Researcher Study supply-demand, inventories, industry margins, and event drivers Fundamental evidence table, data freshness notes Confuse rumors with confirmed facts
    Risk Manager Check exposure, liquidity, stops, and stress scenarios Risk constraints, veto items, de-rating conditions Authorize trades on the user’s behalf
    Memory & Review Agent Track past judgments and their subsequent outcomes Post-mortem records, candidate rule revisions Treat old model conclusions as new facts

    The interaction entry point does not need to count as a research role; it can simply be the interface of the orchestration service.

    Role count is also not a quality guarantee. If multiple roles use the same data sources, the same prompt templates, and the same reasoning path, their outputs may look different yet repeat the same error. Aim for differentiation in method and evidence—not just more role names.

    3. Six Core Mechanisms: Turning Collaboration into an Engineering System

    1. Independent Role Configuration: Personas and Permission Boundaries

    A role configuration typically includes task objectives, permitted data, tool permissions, output format, memory strategy, and resource limits.

    For example, the market researcher needs to read industry data; the technical analyst needs market price series; the risk manager needs the account’s risk constraints. There is usually no need to expose all account information to every research role.

    Note that separate configuration or separate processes do not automatically equal security isolation. If roles share writable directories, environment variables, or credentials, they can still overwrite each other’s artifacts or access unauthorized data. Real isolation depends on directory permissions, credential scoping, and runtime environment control—not on “please do not access” instructions in a prompt.

    2. Reusable Skills: Codifying Research Methods into Processes

    A skill should be a repeatable operating procedure, not just a long prompt. A mature research skill must specify inputs, steps, validation conditions, and output structure.

    Two skills to build first:

    Skill Inputs Core steps Output
    Commodity Research Skill Commodity, contract, cutoff time, research horizon Validate data, build evidence, generate scenarios, compile invalidation conditions Structured research package
    Report Audit & Review Skill Research package, synthesis report, subsequent observation data Check citations, identify contradictions, record judgment changes, evaluate invalidation causes Audit results and review records

    Data-processing scripts, formulas, and reference knowledge used inside a skill should be versioned and managed separately from the skill description. This lets you tell whether a changed conclusion stems from market changes or from a method change.

    3. Task Board: Making Execution State Visible

    A task board is not a decorative progress bar; it is the authoritative record of task state.

    Common states include pending, running, awaiting review, completed, failed, and cancelled. Each task should also record a task ID, dependencies, executor, start time, last heartbeat time, retry count, and artifact location.

    Only tasks meeting completion criteria should transition to “completed.” For example, a market research task is not successful merely because it produced some text—it must also submit a source list, data timestamps, and a note on missing items.

    4. Scheduler: Controlling Concurrency and Dependencies

    The scheduler decides which role executes which task, and when.

    Work that can run in parallel includes bullish/bearish evidence gathering and technical structure analysis. Work that depends on upstream results—such as final risk assessment—should wait until the necessary data is available.

    Scheduling must also cap concurrency and total cost. For slow data sources, apply timeouts, bounded retries, and backoff. If critical data ultimately cannot be retrieved, the system should produce a degraded report rather than retrying until resources are exhausted.

    5. Temporary Workspaces: Isolate Drafts, Publish Reviewed Results

    Each task should have its own workspace holding raw fetched data, intermediate calculations, and drafts.

    Other roles should not read unreviewed drafts directly. Information that needs to be shared should be published to a common artifact area through an explicit submission action. This reduces cross-contamination of opinions and prevents half-finished work from being mistaken for final evidence by the coordinator.

    Isolation does not mean permanent silence. A sound process: produce independently first, then open cross-review, allowing roles to challenge arguments that have been pinned to a fixed version.

    6. Heartbeats and Recovery: Handling Stuck Tasks

    Executors must periodically update a heartbeat so the scheduler can judge whether a task is still running. Tasks past their lease period can be reclaimed and re-dispatched.

    One important issue: the original executor may be only temporarily unreachable, not actually stopped. If both old and new executors submit, you may get duplicate writes or stale results overwriting fresh ones.

    Therefore, task submissions should carry the current execution version or lease ID, and the server should verify whether the submitter still holds valid execution rights. For side effects such as notifications or database writes, use idempotency keys so retries do not cause duplicate operations.

    4. How a Methanol Research Task Should Run

    Step 1: Freeze the Research Boundary and Data Snapshot

    The system first confirms the contract, research horizon, and data cutoff time, and records each data source’s publication time, retrieval time, units, and statistical scope.

    Methanol research typically involves plant operating rates, import flows, port inventories, downstream demand, costs, and futures-spot structure. Different indicators update at different frequencies—you cannot place the latest market prices alongside older inventory statistics and assume they describe the same point in time.

    Freezing the data snapshot ensures all roles work from comparable material, and the report can be reproduced after the fact.

    Step 2: Independent Research with Evidence Cards

    Every core judgment should include these fields:

    • The judgment itself.
    • Supporting evidence and its timestamps.
    • Reasoning process.
    • Contradicting evidence.
    • Applicable time horizon.
    • Invalidation conditions.

    For example, “falling inventories may support prices” is only a hypothesis to test. You should also check whether the decline fits seasonal patterns, whether it was caused by delayed cargo arrivals, whether it is accompanied by genuine demand improvement, and whether the expectation is already priced in.

    Step 3: Handle Disagreements—Don’t Just Vote

    The coordinator should not average six opinions, and certainly should not let a majority vote decide the trade direction.

    If fundamentals lean bullish while the technical picture is bearish, it may mean different research horizons, or that the market has priced things in early. The system should first align horizons and data definitions, then determine whether the disagreement stems from data issues, method issues, or genuine market uncertainty.

    The final report may keep disagreements open. Explicitly stating “the evidence is not yet sufficient to support a directional call” is often more valuable than forcing a conclusion.

    Step 4: Produce a Risk-Constrained Report

    The report should include:

    1. Research scope and data cutoff time.
    2. Base, upside, and downside scenarios.
    3. Supporting and contradicting evidence for each scenario.
    4. Research confidence and its limitations.
    5. A conditional position framework.
    6. Five key observation indicators.
    7. Data gaps and conditions for the next review.

    “Institutional-grade” should not be used as an unverified quality label. More actionable criteria: traceable citations, reproducible conclusions, identifiable assumptions, and clear risk boundaries.

    5. Confidence, Position Sizing, and Five Thresholds: Avoiding False Precision

    Confidence Is Not a Self-Reported Win Rate

    Letting a model output “confidence: X%” is easy, but that is not the true probability of profit.

    A research score can be built from data completeness, source reliability, evidence consistency, reasoning-chain coverage, and conclusion robustness. It first measures research quality, not trading win rate.

    To interpret a score as a probability, you must define the predicted event and observation window and calibrate it against historical samples. Until that validation is done, call it a “research confidence score” and show its basis.

    Position Recommendations Must Pass a Risk Budget

    Position size should not be decided directly by the bull/bear roles. It must account for the account risk budget, contract multiplier, stop-loss distance, liquidity, margin, and correlation with existing positions.

    A simplified risk budget:

    • Acceptable loss amount = account equity × per-trade risk budget ratio
    • Theoretical contract count = acceptable loss amount ÷ expected loss per contract at the stop

    The expected loss per contract must account for the stop distance in price terms and the contract multiplier, plus fees, slippage, and gap risk. The final count is still subject to margin, concentration, and liquidity limits. This framework does not guarantee actual losses stay within budget.

    Five Observation Thresholds Should Serve Hypothesis Testing

    For methanol, five categories of observations work well:

    Observation Research purpose Threshold design approach
    Inventory changes Test whether supply-demand balance is improving Combine historical ranges, seasonality, and consecutive changes
    Plant operating rates Watch supply contraction or recovery Compare against recent baselines and maintenance return schedules
    Downstream demand indicators Judge whether demand can absorb supply Combine operating rates, margins, and order changes
    Futures-spot and term structure Observe spot tightness and expectation gaps Check delivery month, quote conventions, and liquidity
    Price and volatility structure Validate trends and detect risk expansion Combine key levels, volatility, and volume changes

    Do not fabricate fixed numbers without historical samples. Every threshold must record its units, window, trigger condition, release condition, data expiry time, and the action taken upon trigger.

    Actions can be re-research, score downgrades, or alerts for human review—they need not map directly to trades.

    6. Ten Operations: Managing the Full Lifecycle

    This is a list of operational semantics, not actual commands of any existing tool:

    Operation Purpose Required controls
    Create research task Initiate commodity analysis Validate contract, horizon, and data time
    Confirm analysis scope Remove key ambiguities Save user confirmation and default assumptions
    View task progress Query role execution status Distinguish running, failed, and dependency-waiting
    View research evidence Review sources and calculations Preserve citations and versions
    Request cross-examination Stress-test core arguments Specify the pinned version being challenged
    Retry failed task Recover partial workflows Limit retries and guarantee idempotency
    Cancel task Stop unneeded work Revoke execution rights and downstream side effects
    Export report Save the formal artifact Attach time, version, and risk notes
    Configure watch alerts Start continuous tracking Set dedup, frequency, and quiet-hour rules
    Run research review Compare judgments against outcomes Prevent rewriting the original record with hindsight

    The point of this list is to make the system manageable, not to make users memorize commands. A natural-language entry point can map to these operations, but actions involving risk settings, subscription changes, or external side effects should still require explicit confirmation.

    7. Proactive Notifications and Extension to Equity Research

    Proactive pushing should distinguish “scheduled research” from “event alerts.”

    Scheduled research updates existing views; event alerts flag when key conditions change. To avoid nagging, include same-type message merging, trigger cooldowns, state-change detection, and subscription filtering.

    A notification should state at minimum: what changed, the basis for the change, which research hypothesis is affected, and whether human review is needed. When sending to instant-messaging channels, control sensitive information—do not leak account details or internal credentials in the notification.

    When extending to equity research, you can reuse role orchestration, evidence auditing, task recovery, and notification mechanisms, but you cannot directly transplant futures analysis logic.

    Equity research must additionally handle financial reporting conventions, corporate actions, share-count changes, industry valuation, earnings quality, and governance risk. The reporting period of financial data must be recorded separately from its actual disclosure time, to prevent historical backtests from using information that was not public at the time.

    8. Acceptance: Prove Process Reliability Before Scaling

    System acceptance should cover at least four areas:

    • Data quality: whether key data is missing, stale, or conflicting in convention.
    • Process reliability: whether failed tasks can recover, and whether duplicate submissions occur.
    • Report auditability: whether core judgments trace back to evidence and versions.
    • Research validity: how judgments perform under pre-defined horizons and criteria.

    You should also simulate abnormal scenarios: unavailable data sources, role timeouts, conflicting opinions, and failed notification delivery. A system that runs smoothly only on the happy path is not ready for continuous research duty.

    External material must also be treated as untrusted input. When the system reads announcements, web pages, or documents, treat their text as research material—not as instructions—to prevent embedded prompt injection from altering tool permissions or task objectives.

    Finally, review memory must distinguish original facts, contemporaneous judgments, and after-the-fact evaluations. An expired model conclusion does not automatically become a reliable premise for the next round of research just because it was saved.

    The real payoff of multi-agent investment research is making the research process more systematic, easier to check, and continuously correctable—not eliminating market uncertainty. A sensible rollout order: first establish a human-reviewable report process, then refine recovery, auditing, and proactive alerts. Trade execution should be designed separately, as a highly constrained system in its own right.