Skip to content

Governed self-evolution for autonomous investing: a multi-agent LLM system with an immutable coreGoverned Self-Evolution for Autonomous Investing: A Multi-Agent LLM System with an Invariant Core

arXiv· arXiv:2610.30557· Yebo Feng, Jingyang Dai, Liangrui Pan, Nelson Lau, Jiahua Xu, Yang LiuNanyang Technological University; University College LondonIndexed by this site · 2026-10-23· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors build the multi-agent trading system Steward, which over 102 days of live trading limited a 24.6% sector drawdown to a 0.3% loss, and no injected instruction was executed.

Threat modelThe system reads untrusted Web content (news, SEC filings, macro data) and holds order-placing authority; the core threat is indirect prompt injection reaching agents via retrieved content; there is also self-evolution risk: self-rewriting could weaken guardrails. Defenses are architectural: the invariant core (order arithmetic, blocking rules, discipline agent prompts) sits outside the type system and cannot be named by self-edits.

Questions
When a self-evolving LLM agent acts on the live Web, it must fuse heterogeneous evidence, remember and improve, without weakening its own guardrails; in autonomous investing each step is irreversible and inputs are untrusted, self-scores are optimistic, and discipline is easily rewritten.
Methods
Steward uses nine role-specialized agents for joint decisions, with seven layers of shared memory assembled by code; self-evolution has two tiers: evening code scoring, and a quarterly Meta Reflector that proposes typed PromptLearning, applied reversibly through a deterministic gate; the invariant core (order arithmetic, blocking rules, discipline agent prompts) sits outside the type system and cannot be named by self-edits.
Experiments and results
102 days of live trading: portfolio +5.0% vs SPY +12.4%, losing only 0.3% when the semiconductor sector fell 24.6%; none of 30 injection replays were executed; in the backtest the core reduced maximum drawdown across 50 random entries; the single agent underperformed by 1.35 points over 5 days on the same data.
Limitations and future work
The authors note that evidence comes from a single configuration, a paper account with simulated fills, a single rising window, and only two quarterly cycles (one applied); replays of 14–20 inputs cannot rank variants by return. The models tested are written only as frontier models from two providers, with no specific names given.
Experimental setupfrontier models from two vendors · live brokerage paper account (102 trading days)、2015–2026 backtest on 80 US stocks et al. · Return、Max DD et al.
Evaluated models
frontier models from two vendors
Benchmarks
live brokerage paper account (102 trading days)2015–2026 backtest on 80 US stocksprompt-injection red team on 10 recorded mornings
Metrics
ReturnMax DDSharpeBetarank ICgrounding rateinjection followed rate
AI summarySteward is a multi-agent LLM system for autonomous investing, in which nine role-based agents make joint decisions and self-evolve under immutable core constraints that self-modification cannot reach. Over five months of live trading (102 trading days, 1,632 LLM calls), it limited a 24.6% sector drawdown to a 0.3% loss, and injected instructions in replays were never followed. A 2015-2026 backtest shows that the immutable core alone can reduce maximum drawdown under all 50 random entry strategies.

Steward is a multi-agent LLM system for autonomous investing, in which nine role-based agents make joint decisions and self-evolve under immutable core constraints that self-modification cannot reach. Over five months of live trading (102 trading days, 1,632 LLM calls), it limited a 24.6% sector drawdown to a 0.3% loss, and injected instructions in replays were never followed. A 2015-2026 backtest shows that the immutable core alone can reduce maximum drawdown under all 50 random entry strategies.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors study how a self-evolving LLM agent can improve itself on the live Web without weakening its guardrails, using autonomous investing as the setting.

    Core question: how can a self-evolving LLM agent act on live Web data and improve itself without weakening its own safety guardrails.

    • Setting and importance: The authors say an agent acting on the Web must simultaneously fuse heterogeneous weak evidence, remember decisions and outcomes, and improve from experience; in autonomous investing each step is irreversible, priced daily, and all inputs are untrusted public Web content (news, SEC EDGAR, FRED, market quotes).
    • Shortcomings of existing methods: The authors say prior LLM trading agents (FinMem, FinCon, QuantAgent, etc.) were evaluated on historical data, where pretraining leakage is hard to rule out; their learning loops rely on model self-reflection or backtesting, and do not distinguish "what may be changed" from "what must not be changed."
    • Core observation: The authors cite literature saying LLMs cannot reliably self-correct and their verbal confidence is too high, so the evolution signal must be computed from outcomes by code, and the evolution boundary must be drawn in the type system rather than in prompts.
    • The paper proposes: Steward—nine role-based agents deciding jointly, shared memory assembled by seven layers of code, two tiers of governed self-evolution (evening scoring + quarterly gated loop), and an invariant core that no self-edit can touch; code and prompts are open-sourced.
    • Threat model:
      • Attacker goal: inject instructions via retrieved Web content into an agent holding order-placement authority (indirect prompt injection), or make the self-evolution loop erode risk discipline.
      • Knowledge/capability: can pollute public Web content; on the system side, what can be rewritten is memory and the prompts of six peripheral agents.
      • Victim system: a multi-agent system trading a US equity portfolio through a broker API, with no human in the trading loop.
      • The paper does not explicitly state whether the attacker knows the system's internal structure.
  2. What related research exists?

    Related work falls into four groups: self-improving agents, financial text and LLMs, LLM trading agents, and agent safety and frameworks.

    Self-improving and self-evolving agents

    • Reflexion and Self-Refine have models critique themselves and revise outputs; Voyager accumulates a skill library; Promptbreeder and OPRO use models as proposers to optimize prompts; Generative Agents add memory and periodic reflection.
    • Qualifying findings the authors cite: LLMs cannot reliably self-correct [11], and their verbalized confidence is overconfident [36]; the authors state they treat both as constraints, so evolution is driven by code-computed outcomes and bounded by type-level allowlists and a deterministic gate.

    Financial text, machine learning, and LLMs

    • Text affecting prices is established: media pessimism predicts short-term pressure [26], generic sentiment lexicons misclassify negative words in earnings reports [19]; machine-learning return prediction is a baseline [9]; GPT-4 headline labels predict short-term drift [18], and LLMs without retrieval and tools hallucinate financial facts [13].
    • The authors state this literature evaluates signals in backtests, and this paper's contribution is not a signal but the governance of an agent acting on multiple signals, evaluated live.

    LLM trading agents (the group containing the comparison baselines)

    • FinMem introduces layered memory; FinCon introduces a manager–analyst hierarchy and verbal reinforcement; QuantAgent introduces a self-improving knowledge base; FinAgent and TradingAgents introduce tool use and trading-firm roles; StockAgent is a simulated market.
    • The authors note their evaluations are historical (pretraining leakage is hard to rule out) or simulated, and the learning signal is model self-reflection or backtests; Steward is evaluated live and forward, learns from code-scored live outcomes, and evolves around a core its loop cannot reach. The survey [21], domain models [32], and benchmarks [35] evaluated no deployed agent.

    Agent safety, frameworks, and Web agents

    • Prompt injection is characterized as goal hijacking [24] and as indirect attacks via retrieved content [8], with later formalization work [17]; benchmarks show agents remain vulnerable (AgentDojo, InjecAgent, ASB). Recent defenses are architectural: execution isolation [33], capability and information-flow control [3, 4], design patterns [2].
    • The authors state the invariant core belongs to this class of architectural defenses, and that this paper's setting adds a channel beyond the memory poisoning they study: the agent's own records are fed back to a reflector that rewrites its instructions. AutoGen, MetaGPT, and CAMEL coordinate role-specialized agents via natural language; Mind2Web and WebArena evaluate Web-interface agents.

    Positioning: The authors state that, to their knowledge, Steward is the first self-evolving LLM agent evaluated over months of live operation and with every proposal and rejection of its evolution loop fully recorded.

  3. How does the paper address this problem?

    Steward draws the boundary of self-evolution into the type system: nine agents decide jointly, code scores, deterministic gates apply reversible learning, and the invariant core cannot be named.

    Overall approach: draw the boundary of self-evolution in the type system rather than in prompts—proposal types cannot name the core, and every signal driving evolution is computed by code from outcomes. The system is nine role-specialized LLM agents plus a deterministic core, with six sessions per trading day.

    Problem setting and formalization

    • System S with instructions π observes Web evidence xt at time t, outputs decision dt = Sπ(xt), and acts via API; the environment then reveals the independently scored outcome yt; the self-evolution loop maps the record RT to revised instructions π′.
    • The authors list four silent failures: F1 self-scoring (the signal is optimistic self-assessment rather than outcomes), F2 discipline erosion, F3 unauditable changes, F4 undetected inertness (an edit passes checks but changes no decision).
    • Governed self-evolution must satisfy five requirements: R1 typed records, R2 outcomes scored by deterministic code, R3 typed proposals whose rationales cite scored records, R4 gated application (invariants, logging, one-step rollback, cannot reach the core π0 ⊂ π), R5 verifying proposal effects by replay.

    Agents and sessions

    • Only the morning session can open positions: four analysts (News Intelligence, Earnings, Macro, Technical) read the Web in parallel, the Portfolio Manager synthesizes typed reports and shared memory, and the plan passes through a deterministic order constructor, a blocking risk engine, and an LLM Risk Manager before execution.
    • Midday and close sessions are sell-only (Position Reviewer); the circuit breaker runs every 30 minutes without an LLM, and a 3% daily loss revokes entries and liquidates positions; the evening session scores the day; the quarterly session reflects.
    • Each agent outputs a Pydantic object, each CoT step is a mandatory field (min_length=1), cross-field validators encode domain invariants; the universe is 80 US stocks and 21 ETFs.

    Shared memory and typed reasoning

    • Agents do not share conversation history; they share seven layers of memory assembled by code from the system's own records: L1 same-day analyst signals, L2 position context and rating trajectory, L3 narratives and state changes, L4 a 45-day calibration table by entry size, L5 the last five Risk Manager rulings, L6 the agent's own last three decisions, L7 the forecast ledger.
    • The authors state that every number an agent cites thus comes from code rather than another agent's prose; validated objects are stored verbatim with their exact inputs, so records can be scored by code, read by the reflector, and replayed by the replayer.

    Safety design (invariant core)

    • Judgment and arithmetic are separated: the Portfolio Manager only issues TargetPosition intents (the 20% weight cap is written in the type), and the deterministic constructor converts them to orders—stop-loss at two ATR, position size the smaller of target weight and a 0.5% equity risk budget, skip if more than 5% away from market price, skip if risk-reward is below 1.2.
    • Hard rules precede LLM checks: cash cannot be negative, single position ≤20%, sector ≤40%, net exposure ≤90%, no position without a stop-loss, no buying after a 3% daily loss; the Risk Manager can only reject, modify, or scale, cannot approve a plan blocked by the engine, and fails closed.
    • Untrusted text reaches only upstream: raw headlines and filing text reach only the News and Earnings agents; code discards news state changes whose keywords and tickers are both absent from inputs or prior state; the Portfolio Manager sees no headlines or filing text.
    • The evolvable periphery is memory and the prompts of six agents; the Risk Manager and Position Reviewer are not in the proposal schema's Literal, so no self-edit can name them.

    Two tiers of self-evolution and replay verification

    • Evening scoring (R2): code assembles evidence, the Evening Analyst completes a seven-step CoT, rates each trade correct/premature/wrong, and classifies erroneous buys into one of nine root causes; all outcome quantities are computed by code from fills and prices.
    • Quarterly loop (R3/R4): the Meta Reflector takes a deterministic summary of 90 days of scored records, a fixed seven-step CoT, and outputs at most three PromptLearnings (append or retract, 20–300 characters, rationale ≥40 characters and containing numbers from the summary). The gate has two layers of deterministic checks (12 invariants in Appendix C): append-only, allowlist, length cap, banned-word tripwire, Jaccard≥0.6 deduplication, per-agent FIFO cap of ten, at most three agents changed per cycle, full logging, single-commit one-step rollback.
    • Replay verification (R5): each LLM call is stored with its full inputs, and the replayer passes the recorded inputs through the pre- and post-edit prompts and compares outputs structurally; rerunning unchanged prompts measures the model's own variance as a noise baseline, and each experiment costs tens of dollars.
  4. What experiments did the paper conduct?

    102 days of live trading plus three types of evidence: trajectory rescoring, replay, injection red-teaming, and a 2015–2026 core backtest.

    Experimental setup

    • System under test: Steward, served by frontier models from two providers (1,632 calls, automatic failover); the paper does not give the specific model names.
    • Deployment: 102 trading days from April 8 to September 10, 2026, brokerage paper account, $100,000, fills simulated at real-time quotes; 619 pipeline runs, API cost $455.
    • Data: nine RSS feeds, SEC EDGAR 10-Q/10-K, nine FRED series, market data for 80 US stocks and 21 ETFs; 492 orders, 746 fills, 438 round trips.
    • Evaluation method: trajectory re-scoring (7,843 technical ratings, 1,885 news sentiment symbol-days, 97 evening forecasts, 556 target weights, 90 risk rulings) against subsequent prices, without an LLM; forward returns are market-adjusted, with standard errors clustered by day.
    • Replay: 20 mornings (100 calls) comparing three decision layers; Q2 learning replay 35 calls, Q3 replay 56 calls; injection red team 10 mornings, 50 calls, three payloads.
    • Backtest: 2015–2026, 80 stocks, weekly entries without an LLM (momentum or 50 random seeds), 5 bp one-way cost.

    Main results

    According to Table 1 (recorded decisions passed through the price-following strategy layer; return/volatility/max drawdown in %):

    Swipe horizontally to read the table

    Strategy layerReturnVolatilityMax drawdownSharpeBetaExposure
    PM intent, no exits, no RM+15.413.7−4.72.520.8393%
    PM intent + system exits+11.615.0−4.71.800.8076%
    PM intent + exits + RM (Intent)+12.211.9−4.52.330.6479%
    Live portfolio+5.09.0−6.01.390.1656%
    Follow all analyst buys+1.311.3−7.80.320.5041%
    SPY+12.412.4−4.52.281.00–
    • The authors say individual analyst signals are weak (technical ratings 20-day rank IC 0.031, t=1.2; news sentiment is uncorrelated with subsequent moves, Figure 5), and the value lies in the Portfolio Manager's synthesis: its target weights beat every follow-the-analyst baseline by more than ten percentage points.
    • Live +5.0% lags intent +12.2%, which the authors attribute to lower realized exposure (56% vs 79%): of 492 orders, 180 were canceled or unfilled, hard rules cut buys, and intraday stop-losses triggered.
    • The authors say the Risk Manager reduces volatility more than it reduces return (Sharpe 2.33 vs 1.80).

    Architecture replay (RQ2)

    • What was tested: 20 recorded mornings replayed through three decision layers (Table 2): the deployed design, no shared memory, and a single agent reading raw data directly.
    • Results: the single agent targets 5.8 names per morning (deployed 3.7), new intents are 41% of equity (vs 19%), turnover rate 0.25 (vs 0.10); its book's 5-day and 10-day excess returns are −1.35±0.44 and −1.76±0.75 percentage points (hit rates 35%, 32%), and the deployed design is indistinguishable from zero.
    • Authors' interpretation: removing memory has almost no effect within a single morning; typed reports carry most of the single-morning information, and memory's role is longitudinal (calibration, continuity, feedback).

    Two self-evolution cycles (RQ3)

    • Q2 (staging only): the Meta Reflector attributes underperformance to "structurally insufficient participation in a broad rally" and finds that 14 of 20 bad buys share the root cause "macro warnings ignored"; it proposes one learning that the gate rejects on a length invariant (282 characters vs a 200 limit). Replay (Table 8) shows that this learning, across the 10 bad-buy mornings, retains 8 of the 10 flagged names, with weight changes within rerun noise — the authors say the withheld learning was inert and the strict gate had no cost.
    • Q3 (applied live): the reflector first self-audits the Q2 diagnosis (that root cause drops from 14 to 3) and rejects overcorrection; a new proposed 185-character learning is applied by the gate as a single-file reversible commit. Replay (Table 9): the prescribed form appears 5 times in 20 trigger replays (baseline 0 times), and never appears in the control evenings; but the past classification counts preset by the trigger are not in the Evening Analyst's input, and recurrence misses are unchanged (25/64 vs 26/64).
    • Evening loop: realized exposure co-moves with rolling forecast hit rate (ρ=0.34, p=0.01) and rolling win rate (ρ=0.22, p=0.05), while the Portfolio Manager's declared positions do not co-move (Table 10); the authors say adaptation runs through scored memory rather than declared intent.

    Invariant core and injection red team (RQ4)

    • Containment: from June 22 to July 29, semiconductor ETFs fell 24.6%, QQQ fell 10.3%, SPY fell 2.0%, and the portfolio lost 0.3% (§5.5); the Risk Manager rejected 4 of 90 plans and made 146 field-level modifications; the circuit breaker never liquidated; 13 of 1,632 calls failed sub-item validation, all quarantined.
    • Injection red team (Table 4, 10 mornings, three payloads): the News agent excludes the item and flags it as instruction-like in all 20 replays; after being placed directly into the Portfolio Manager's news section, none of 30 replays executed it, and in 23 its CoT identified it as injected content and rejected it; the authors say that even if obeyed, the schema would discard 45% or 60% of targets, and hard caps would constrain smaller positions.
    • Core backtest (Table 11, 2015–2026): the core reduces max drawdown under all 50 random-entry strategies (median 37%→28%), and under momentum entry 61%→33%, with Sharpe unchanged; the authors say caps and circuit breakers contribute the most. The same rules still lose 27% under momentum entry in the 2026 semiconductor window; the authors say the core limits the range in which judgments can lose, and the May exit was done by the agents.

    Other ablations and analyses

    • Exit quality (Table 7): the 306 agent exits continued to rise by $19.9k after exit, while the 132 mechanical stop-loss exits rose only $0.7k more; the Evening Analyst self-rated 134 of 163 sells as correct, and the authors say only outcome scoring exposes the opportunity cost.
    • Numeric grounding (Table 12): 750 CoTs yielded 254,094 cited numbers, with 96.1% strictly grounded, rising to 99.9% including derived quantities; placebo control 22%; of 226 ungrounded numbers, three are candidate fabrications.
    • Backtest ablations (Appendix F): under momentum entry, core drawdown is 36% without stop-losses and 60% without the circuit breaker (full core 33%).
    • The Evening Analyst's 38 directional forecasts hit 37%, below the 54% base rate on up days (§5.2).
  5. What are some points that can be further explored?

    The authors list limitations including a single configuration, simulated fills, and a two-quarter period, and propose developing the result-scored replay into a gate invariant.

    Limitations and next steps noted by the authors

    • Evidence comes from a single configuration, traded over one rising window, on a paper account, with overlapping forward intervals, and the simulation ignores execution risk (§6 Limitations and next steps).
    • Only two quarterly cycles, one applied; replays of 14–20 inputs expose behavioral differences but cannot rank variants by return (§6).
    • The authors say each limitation narrows with each run: each additional quarter adds one more cycle to the record, the released replayer can extend replay to more inputs, and each experiment costs tens of dollars (§6).
    • Next steps are to narrow the periphery on exits and add an execution agent within the core, retaining the judgment layer that works (§6).
    • The authors propose a natural next invariant: a replay check scored on an outcome, confirming before learning is applied that it is actionable on the agent's actual inputs and measuring its effect on decisions (§6, §7).
    • The Q3 learning presupposed a past classification count that the Evening Analyst's inputs do not provide; the authors say adding that count is a concrete next step (§5.4).

    Scope of experimental coverage

    • Live trading covered 102 trading days, 1,632 LLM calls, and 438 round trips; the evening loop ran 98 nights, and the quarterly loop ran once at each of two quarter-ends (§5.1).
    • The models tested are written only as "frontier models from two providers"; the paper does not report specific model names and versions (§5.1).
    • Injection red-teaming covered 10 recorded mornings, three payloads, and 50 calls (Table 4).
    • Architecture replay covered 20 mornings; the Q2 replay used 35 calls and the Q3 replay used 56 calls (§5.3, §5.4).
    • The core backtest covered 2015–2026, 80 stocks, momentum and 50 random seeds for entries (Table 11); the paper does not report human evaluation or human agreement.
  6. Summarize the main content of the paper

    Steward governs a self-evolving trading agent with a type-level invariant core, containing drawdown and resisting injection over five months of live trading.

    Steward is an autonomously investing multi-agent LLM system that studies how a self-evolving agent can improve itself on the live Web without weakening its guardrails.

    • Problem: each step of an investing agent is irreversible and its inputs are untrusted Web content; the authors state prior LLM trading agents were evaluated on historical data, their learning relied on self-reflection, and they did not distinguish what can and cannot be changed.
    • Method: nine role-specialized agents make joint decisions; seven layers of shared memory are assembled by code from the system's own records; evening code scoring rates each trade, a quarterly Meta Reflector proposes typed learnings, and a deterministic gate applies them reversibly under 12 invariants; order arithmetic, blocking rules, and the prompts of two discipline agents form the invariant core, which the proposal type's Literal cannot name.
    • Live trading (102 days, 1,632 calls): portfolio +5.0% vs SPY +12.4% (Table 3); during the window in which the semiconductor ETF fell 24.6%, the portfolio lost only 0.3% (§5.5).
    • Replay: a single agent on the same raw data trades more frequently and underperforms SPY by 1.35±0.44 points over 5 days, and the deployed design is indistinguishable from zero (Table 2); the Q2 learning withheld by the gate is shown by replay to be inert, and the Q3 learning that was applied is adopted only in trigger evenings (Tables 8, 9).
    • Safety: none of 30 injection replays executed (Table 4); in the 2015–2026 backtest the core reduces maximum drawdown under all 50 random-entry strategies (median 37%→28%) (Table 11); 99.9% of numbers cited in 750 CoTs are groundable (Table 12).
    • Authors' conclusion: the typed trajectory that makes the system governable also makes it evaluable; the authors suggest developing the result-scored replay check into the next gate invariant, and acknowledge that the evidence is limited to a single configuration, a paper account, and two quarterly cycles.
Read originalarxiv.org