Building a Multi-Agent Futures Research System: Architecture and Lessons Learned
This article documents the practical process of building a multi-agent system for futures research and trading analysis. It explains why a single-turn question-and-answer flow is insufficient for investment research decisions, then walks through an architecture of six worker roles plus a synthesizer, an isolated context design, and six core mechanisms: role profiles, packaged skills, a task kanban, a dispatcher, per-role scratch workspaces, and heartbeat-based task reclaim. A sample task card, a full end-to-end run from a one-line instruction to a structured institutional-style report, three reference checklists, and an evolution roadmap with engineering caveats are also included.
1. Background: Why Single-Turn Q&A Cannot Support Research Decisions
Analyzing a single futures contract usually requires answering six questions at once: whether the supply-demand balance in the fundamentals is distorted, which side of the long-short argument is stronger, whether the technical structure has produced an entry signal, whether there are marginal changes in the supply chain and macro variables, how large the risk exposure is, and how much confidence the conclusion deserves. Compress all of that into one question-and-answer turn and the model tends to return a generic conclusion with no traceable basis.
Confirmation bias makes it worse. When the same model plays both the bull and the bear, it easily reinforces its own reasoning. The engineering fix is to split the roles apart and isolate their contexts, so each role digs in with only its own domain knowledge and tools, and a dedicated synthesis role performs cross-validation. This article records how such a system was built, along with a reusable checklist.
2. Overall Architecture: Six Roles, One Synthesis Pass
The system consists of six worker roles plus one synthesis role, with a default conversation entry point that receives instructions and returns results.
- Synthesis role (roughly a chief investment officer): decomposes the task, assigns work, reviews evidence, and produces the report.
- Bull researcher and bear researcher: each builds its own bullish or bearish logic chain and must state the conditions that would falsify it.
- Technical analyst: covers price-volume structure, key levels, and signal invalidation conditions.
- Market researcher: covers the supply chain, inventory, operating rates, macro factors, and event-driven catalysts.
- Risk control role: calculates exposure, sets stop-loss levels and position caps, and can veto a conclusion.
- Memory reflector: distills the biases and effective thresholds from each analysis into long-term memory.
The key constraint is isolation. Each role runs as a separate process, cannot see the intermediate output of the others, and exchanges only structured conclusions through a task board. This prevents the wording of one model from contaminating the judgment of another role.
3. Six Key Mechanisms
- Profile. Each role has its own configuration containing model selection, role rules, memory space, and skill set. The role rules must spell out three things: what the role is allowed to answer, what evidence it must cite, and under what conditions it must output “insufficient evidence.”
- Skill packaging. Reusable methodology is bundled into skills: data retrieval scripts, indicator calculations, report templates, and threshold validation. A skill is the smallest unit of knowledge accumulation, so switching contracts or markets does not require rewriting.
- Task kanban. Roles do not talk to each other directly; they write conclusions as cards containing the conclusion, confidence, evidence, falsification conditions, and open items. The synthesis role advances work based on card status.
- Dispatcher. Orchestrates by dependency: data tasks run first, bull/bear and technical tasks run in parallel, and risk control plus synthesis run last.
- Scratch workspace. Each role has its own temporary directory for intermediate files, archived when the task ends, so contexts do not overwrite one another.
- Heartbeat and reclaim. Long-running tasks renew themselves via heartbeats; tasks that stop responding past the timeout are automatically reclaimed and reassigned, preventing the whole chain from stalling.
An illustrative task card structure:
{"role": "bear_researcher","symbol": "methanol","conclusion": "bearish","confidence": 0.62,"evidence": ["port inventory accumulating week over week", "weakening downstream operating rates"],"falsify_if": "inventory starts drawing down and the basis strengthens","open_questions": ["pace of import arrivals"]}
4. A Full Run: From One Instruction to an Institutional-Grade Report
The input is a single line: “analyze methanol.” The synthesis role first decomposes it into six task cards and writes them to the kanban; the dispatcher starts the data tasks, after which the bull, bear, and technical roles run in parallel; the risk control role sets position caps and issues veto opinions based on volatility; the memory reflector pulls historical bias records for similar judgments and calibrates the confidence of this run. Once all cards are in, the synthesis role cross-compares them and outputs a structured report: the directional conclusion, a confidence score, a position recommendation, five observable thresholds (conditions that trigger adding, reducing, or stopping out), and lists of supporting and contradicting evidence. The pure runtime is under roughly ten minutes; the rest of the time is the human-in-the-loop interaction of confirming the decomposition plan with the system.
5. Three Reference Checklists
Role checklist (seven): synthesis, bull, bear, technical, market, risk control, and memory reflection, plus the default conversation entry point.
Skill checklist (two): first, a data collection and indicator calculation skill that standardizes retrieval and definition checks for quotes, inventory, operating rates, and similar data; second, a report generation and threshold validation skill responsible for template rendering, confidence calculation, and threshold completeness checks.
Command checklist (ten, grouped by purpose): initialization and role startup, task dispatch, kanban query, parallel scheduling, scratch workspace archiving, heartbeat inspection, result synthesis, report export, memory write, and retrospective retrieval.
6. Roadmap and Engineering Notes
Two directions come next. One is reusing the multi-role division of labor from futures for equity research, keeping role rules and skill interfaces unchanged and swapping only the data skills. The other is adding proactive push, where scheduled inspections decide on their own which contracts are worth flagging and deliver conclusions to an instant messaging tool.
Four points deserve attention in engineering. Data definitions must be versioned. Every conclusion must carry falsification conditions, otherwise it cannot be reviewed after the fact. Confidence needs post-hoc calibration rather than the model’s own account. The risk control role should hold veto power. If larger-scale runs are needed later, the kanban and scratch workspaces can be moved to a managed message queue and object storage, role processes can be hosted on a container platform, and logging plus monitoring with alerting can be added to handle timeouts and failure reassignment.
