AllPath: Layered Validation for a Deployed Self-Revising LLM Trading Agent, Covering Human-Gatekept and Autonomous ModesAllPath: Layered Verification for a Deployed, Self-Revising LLM Trading Agent under Human-Gated and Autonomous Regimes
AllPath performs layered verification on a self-revising trading agent: the code gate reaching revision rejected 0 times, human vetoes rejected 2 proposals that passed the gate.
- The actions of LLM trading agents in deployment are irreversible, and they also change their own rules. The authors ask who verifies these actions, and which class of failure the verifier at each layer can structurally catch. Backtests and fully autonomous benchmarks cannot answer this question.
- AllPath verifies self-revision with code gates, bounded nightly reflection, and human approval. Strategies are watched by a deterministic engine; reflection can only change thesis and rules, not authorization and status. The same deployment first ran fully human-gated, then let reflection revisions that passed the gate apply automatically, while the chat channel always waits for a human.
- The code gate did not reject any proposal that arrived. Humans rejected 2 mechanically eligible reflection proposals and, after a median of 8 days, deleted 11 of the 19 self-added rules. In the automatic-application phase, all 56 revisions landed and the gate rejected 0. The authors state that the most instructive production event passed every gate, and the fix was to make the condition visible in the interface.
- The authors state this is a single case with a single operator and paper funds; the two regimes ran in chronological order under different market conditions, and they do not assert which is safer. The circuit breaker was not triggered by any event. The regime comparison falls on the revision channel; the human queue had only 12 stock orders. The paper does not report returns, the drawdown threshold, or the token cost of reflection.
- Evaluated models
- Claude Opus 5Claude Sonnet 5Claude Haiku 4.5
- Benchmarks
- paper-brokerage accountshadow account
- Metrics
- 修订提案结局完整性门拒绝数提案到决议延迟事件条数
The authors report AllPath, a personal LLM trading agent deployed on a simulated brokerage account, whose validation is split into three layers: code, the agent itself, and humans. The code layer uses a deterministic rule engine to monitor positions, enforce risk limits, and block strategy revisions that fail integrity checks; the agent's nightly review has a cap on iteration count and no tools with executable actions; humans judge proposals through an approval interface that displays the current status of each proposal. The authors compared two validation strategies for self-revision on the real system: first, all self-revisions passed through human gatekeeping for two and a half weeks; then, for five weeks, reflective revisions were automatically applied after the same code gates, while the operator's chat channel remained under human gatekeeping throughout. The authors report that each layer caught different types of failures: the code gates rejected no proposals, and their role was to keep revisions consistent; humans rejected two proposals that passed all code checks, due to disagreement over market judgment, and removed 11 of the 19 rules the agent had added itself after a median of 8 days. The authors contribute the layered architecture, records under both mechanisms, and a taxonomy of production incidents, none of which are observable in backtesting.
Paper analysis
What problem does this paper attempt to solve?
Irreversible order placement and strategy self-revision should be split among code, bounded self-review, and human verification.
Who verifies irreversible order placement and strategy self-revision after deployment, and which class of failure each layer can structurally catch.
- Scenario: the authors state that LLM trading agents are almost only evaluated in backtests and autonomous benchmarks. In deployment, a wrong order is an irreversible fill; an agent that can change its own trading rules may also compound one wrong judgment before anyone looks.
- Existing gaps: the authors state that existing evaluations treat the agent as an unconstrained decision function, where output is action and nothing happens when the run ends. The authors state that newer live benchmarks, though connected to real-time data, still run fully autonomously, and several of them treat the absence of human intervention as a design goal rather than a variable to study.
- Design premise: the authors' premise is that no single verifier is sufficient. Whether a risk cap is exceeded is arithmetic, assigned to code; whether a stop-loss is tight is judgment, assigned to humans. Nightly self-review sits between the two and is useful only if the agent cannot act on its own conclusions.
- This paper's system: AllPath is a personal LLM trading agent that has run continuously against a live paper-brokerage account since August 2026. A deterministic rules engine watches positions, reviews the day each night and proposes strategy revisions; verification is split into code gates, bounded self-review, and human approval.
- Record of two regimes: self-revision was first human-gated for two and a half weeks, then reflection revisions passing the same code gate were applied automatically for five weeks, with a drawdown circuit breaker; the chat channel was always human-gated. The authors state that the contribution is the layered architecture, the operational record of the two regimes, and the classification of 20 incidents, which cannot be observed in backtests.
What related research exists?
Related work is divided into four groups: trading agents, disinterested self-improvement, oversight and governance, and trading risk control.
The paper discusses related work in four groups and does not compare returns against baseline methods on a trading benchmark.
LLM trading agents
- Memory, tools, and simulation: TradingGPT and FinMem do hierarchical memory and role design; FinAgent does multimodal tool augmentation; TradingAgents uses debate-style multi-agent; FinRobot is an open platform; StockAgent does simulated markets. Ding et al. (2024) and Xia et al. (2026) provide two surveys.
- Live benchmarks: StockBench, LiveTradeBench, Agent Market Arena, and AI-Trader connect to real-time data, but the agents run fully autonomously. The authors state that several of these treat the absence of human intervention as a design goal, and that this body of work centers on backtesting or simulation, with outputs being unconstrained final actions.
Disinterested self-improvement
- Critique and revise: Reflexion, Self-Refine, and Voyager have agents critique and revise their own behavior. Fang et al. (2025) and Gao et al. (2025) survey the design space of self-evolving agents.
- Cost: the authors state that in these settings, the cost of a bad self-revision is a retry; Lin et al. (2026) begin to discuss what happens when the cost is higher. The authors call this paper's reflection loop a deliberately conservative member of this family: the only lever on future behavior is a gated, auditable revision proposal.
Agent oversight and governance
- Beyond direct evaluation: debate and amplification (Irving et al. 2018; Christiano et al. 2018) target systems humans cannot directly evaluate. Dung and Mai (2025) discuss when stacked safety mechanisms fail together.
- Single-layer mechanisms: AgentSpec, GuardAgent, autonomy-level classification, and Magentic-UI with regulatable interface patterns each propose one layer of the stack the authors deployed. The authors state that, to their knowledge, these have not been combined in the same deployed system with consequential actions, nor have human-gated and autonomous operation been reported on the same live agent.
Trading system safety and this paper's position
- Existing risk controls: exchange-level circuit breakers (Subrahmanyam 1994) and the broker-side pre-trade risk controls required by SEC market access rules (2010). The authors state that the contribution is not these mechanisms themselves but placing them in the agent loop: caps the agent cannot negotiate, a drawdown circuit breaker that downgrades autonomy rather than stopping trading, and an integrity gate on the self-modification channel.
- Baselines: the paper has no baseline methods and does not compare returns on the above benchmarks. The authors state that the evaluation is an operational record: proposal stream, gate triggers, decision latency, and incidents.
- Positioning: the authors state that the question is how the actions of a deployed agent are verified, and that to their knowledge there is no published record of the same LLM trading agent running under two verification regimes.
How does the paper address this problem?
AllPath uses code gates, bounded nightly reflection, and a human interface to split irreversible actions across three layers of verification.
AllPath writes strategies as versioned files, with a deterministic sentinel watching positions; chat and nightly reflection can only propose, and any path to an irreversible action passes through at least one layer of verification (Figure 1, Table 1).
Strategies, position watching, and sessions
- Strategy files: contain thesis, rules, authorization, and status, and are the source files; every change is versioned and written to an append-only history. authorization is divided by consequence into notify, confirm, auto, and hard. The sentinel only monitors strategies whose status is active.
- Sentinel: during market hours, evaluates active rules in pure code at fixed intervals, with intervals of 15 to 60 minutes within the data window, and no model in the loop. auto+hard executes directly through the risk gate; confirm enters the pending-review queue with the trigger price, rule text, and intent. One-shot rules must be manually re-armed after triggering. Long-only options are open by grammar only to auto+hard.
- Chat and review: the chat agent can propose orders, propose strategy revisions, and perform guarded memory writes; it cannot place orders directly, cannot modify strategy files, and cannot approve, including approving its own proposals. The review side displays pending items with regenerated context and records approve or reject.
- Models and deployment: within the data window, reflection and memory consolidation use Claude Opus 5, chat uses Claude Sonnet 5, and the sentinel analysis layer uses Claude Haiku 4.5, called through an API gateway. The authors state that model names are configuration and that the verification stack does not depend on which model proposes. The system runs on a single consumer-grade machine with no public network port; the same pipeline serves the paper account (broker paper-trading API) and the shadow account (local ledger, orders not routed).
Matters verified by code that do not depend on judgment
- Risk gate: chat orders, sentinel orders, and autonomous options orders all pass through the gate. The gate enforces a per-order amount cap and a daily trade-count cap; options purchases additionally have a premium cap and a total exposure cap relative to equity. Closing options are not blocked by the amount cap. The authors state that a gate that can trap the operator in a position is itself dangerous. The paper does not give the specific cap values.
- Revision integrity: at proposal time, the proposal must parse, point to an existing strategy, have a strictly increasing version, and not change authorization or status. At application time, three more things are checked: the current file is byte-for-byte identical to the base the proposal was based on, otherwise it is voided rather than silently overwritten; the version strictly increases; and only thesis and rules are changed. On failure it returns to the pending-review queue. The authors state that the failure mode is that nothing happens, rather than something quietly becoming something else.
- Queue and credentials: when a newer chat revision arrives, older pending chat drafts are marked superseded and the approval token is voided. The nightly pipeline uses persistent date markers to ensure restart safety. Linked approval tokens are stored only as hashes per review, expire after 24 hours, and are consumed on first use, including when execution fails.
Bounded self-review and the human interface
- reflection boundaries: a separate post-close session receives a code-generated briefing, investigates with read-only tools within an iteration limit, and writes a structured report. The only tool that changes future behavior is propose_strategy_revision. The registry contains no order placement, approval, or file writing. Tool iterations default to at most 12, including one correction round when report parsing fails. Each block of the briefing is wrapped in external-content fences. Every tool call can be replayed from the Reports page.
- Humans see the current state: the pending diff is recomputed against the current file at render time, and if the file has changed it is marked stale-base. The approval card contains the trigger price, the current price and the day's direction, the deviation relative to the trigger, the estimated share count for the notional order, and a market open/closed status line (Appendix Table 5). Submission time and fill time are listed separately. Strategies that are not monitored wear a not monitored badge on every interface; the sentinel heartbeat states the last tick or that the market is closed.
- Memory: four layers of human-readable markdown, each with a budget of a few KB. The only write path performs entry-level edits, rejects injection-shaped content, and records every change in a ledger. At data freeze, the paper account had 141 lessons, 37 stock notes, and 36 strategy notes. Appendix B gives one lesson and an excerpt of a reflection report.
The two regimes and build-time review
- human-gated: reflection proposals queue for a human like any other proposal.
- autonomous: a configuration switch makes reflection proposals that pass the mechanical gate apply immediately. If equity drawdown exceeds a configured proportion, automatic application is downgraded to confirm and remains so until a manual reset, with no automatic re-arming. The paper does not give the proportion value. The chat channel remains human-gated under both regimes. The shadow account has run its own nightly reflection under the same switch since 2026-09-14.
- Build time: before merging, an independent reviewer executes attack scenarios. The authors report that this review caught, before merging, one Critical that would have rolled back an applied stop-loss tightening, as well as Important issues including authorization flips, path traversal in the revision applier, and revival of deleted strategies. The authors state that several vulnerabilities could only be found by executing the failure.
What experiments did the paper conduct?
The code gate rejected 0 revisions; humans vetoed 2 proposals that passed the gate, and later deleted 11 of 19 self-added rules.
Experimental setup
- System and models: The same AllPath, with two accounts, paper and shadow. The session models were Claude Opus 5 (reflection, memory consolidation), Claude Sonnet 5 (chat), and Claude Haiku 4.5 (sentinel analysis layer). Rule evaluation itself involves no model.
- Time: Regime A was 2026-08-11 to 08-27, with all self-revisions awaiting a human. Regime B was the evening of 08-27 to 10-02, with reflection revisions that passed the gate applied immediately. Shadow's nightly reflection started on 09-14. The authors state the window is 7.5 weeks.
- Controls not set: The paper has no method baseline, does not report account returns, and does no statistical tests. The risk limits and drawdown proportion are configuration items, and the paper does not give their values.
- Metrics and judgments: Number of proposals and outcomes, number of gate rejections, latency from proposal to decision, number of self-added rules later deleted and the lag, number of events, and whether reflection produced a parseable report. Approval and veto were made by the operator; the operator is the paper's first author. A footnote in §5 states that the veto reasons are recollections recorded on 2026-09-12, while the decisions themselves have ledger timestamps.
- Scale: 119 revision proposals; 12 stock orders in the human queue; 52 nightly reflection sessions. The paper does not report the number of repetitions.
Main results
Swipe horizontally to read the table
Channel Proposals Outcome Source A: reflection, human gate 6 4 approved, 2 vetoed; code gate raised no objection §5.2, §6.1, Figure 3 B: reflection, automatic application 56 (paper 32, shadow 24) all applied, integrity gate rejected 0 §5.3, §6.1, Figure 3 B: chat, still human-gated 57 53 approved, 1 rejected, 3 superseded §5.3, §6.1, Figure 3 Stock orders authorized by confirm 12 11 approved, 1 rejected §6.1, Table 2 - The authors state that the failure classes caught by each layer are disjoint: every veto in the window came from a human; the mechanical gates rejected no proposal that reached them, and their role is integrity (displacing stale drafts, freezing authorization), not filtering. Both vetoed reflection proposals occurred after a rise left an entry ladder that only accepts pullbacks out of reach, and the agent proposed adding a buy step closer to market price (one of them also raised the position cap); the operator's reason was that semiconductors are cyclical and the current rise is within-cycle fluctuation rather than a sustained re-rating, and that reason does not appear in the proposals. Table 2 records these two as a 440-dollar step for TSM, and a gap backtest for NVDA below 215 with a raised cap.
- The median latency to a decision in Regime A was 8.8 hours, range 11 minutes to 80.7 hours, the longest spanning a weekend. The authors state that a nightly loop blocked by a human is in practice the next morning's loop. Comparable proposals in Regime B were applied about two minutes after being proposed.
- The authors state that the paper's regime comparison falls on the revision channel; the remaining orders come from auto+hard rules and pass only through the code layer. The vertical axis of Figure 3 is revisions/day, plotting all strategy revisions for both accounts from 08-11 to 10-02 by day, source and outcome, and marking the NVDA unit fix, the cyclical-prior veto, the start of automatic application on the evening of 08-27, and the start of the shadow reflection loop. The paper does not further split Regime A's 6 reflections by account; the shadow reflection loop started only after that window.
What autonomous revisions changed, and what humans later deleted
- Automatically applied revisions touched 20 strategies: every one rewrote the thesis; 49 also changed existing rules (67 condition edits, 19 action edits, 12 status changes); 16 added rules, 19 in total; 6 deleted rules, 11 in total. Among edits to sell-side price thresholds, 4 moved the stop closer to market and 5 moved it farther. The authors state that the autonomous channel is not a one-way ratchet in either direction.
- Of the 19 rules the agent added itself, 11 were later deleted by the operator through the still human-gated chat channel, with a median lag of 8 days (range 1 to 17). The largest case: a reflection on 08-31 added a salvage-options exit rule to four strategies at once, and on 09-08 the operator deleted it from all four. Another pair of self-added rules was deleted by a later reflection itself. No modified condition was ever changed back to its original value.
- The authors read this as supervision moving in time rather than disappearing: after the gate on the reflection channel was removed, humans reviewed about a week later through another channel. The authors state that the integrity gate could not intervene because these rules were all formally valid; deletion is also not proof that a rule was wrong, so they report only counts and lags and do not pass judgment.
Event classification and reflection sessions
- The authors catalog 20 defects and events: 6 occurred in production runs, 13 were caught in adversarial review before merging, and 1 (authorization freezing) is a design decision because it closes a hole named in review. Table 3 lists the entries the authors consider most instructive, and Table 4 lists all 20. The authors state that the 6 in production would not appear in a backtest.
- The authors narrate three production events: four live strategies sat in draft for several days with stops unarmed while the page still rendered normally; a submission time of Monday 16:27 was displayed as a fill, when the actual fill was Tuesday 09:34, and the operator misread it by 17 hours; and during the autonomous window a broker response with HTTP 200 but no order id was recorded as submitted, burning 5 one-shot rules. The authors state that the third was found by the operator reading logs, and no gate caught it. The first self-revision in deployment changed position_weight < 12, written as a percentage in the NVDA strategy, to < 0.16 and < 0.2; the authors state that same-day breakout adds raised the average cost by 2.4%, and the operator approved it as proposed.
- All 52 nightly reflections (paper 37, shadow 15) completed and produced parseable reports. Archived transcripts have 23 to 44 messages per session, median 35. Chat and the memory layer have per-session token metering, reflection does not; the authors therefore report session size and outcomes rather than dollar cost. The drawdown circuit breaker was armed throughout Regime B and never triggered. The authors state that this backstop is part of the design but was not tested by any event. Table 2 records that during a 2.5-hour environment failure there were 18 mis-recorded attempts to close options, after which the close succeeded, and the stock leg had already exited 2.5 hours earlier.
Other ablations and analyses
- The paper reports no method ablations or parameter sweeps.
- On 09-08 the displacement gate marked 3 stale chat drafts as superseded and voided their approval tokens (§4.1, §5.3).
- Sell-side stop edits moved the stop closer 4 times and farther 5 times; modified conditions were never restored to their original values (§6.2).
- A correction round had quietly doubled the reflection iteration budget; after pre-merge review caught it, the cap was changed to a session attribute (§4.2, Table 3).
What are some points that can be further explored?
The authors state this is a single case of paper trading, the regimes ran sequentially, and the circuit breaker was not triggered.
Limitations and future directions noted by the authors
- Single system, single operator, and that operator is the paper's first author. The reason for rejection in §5 is self-report. Counts, diffs and timestamps come from an append-only ledger, but selection and interpretation belong to the authors (§7).
- Fill prices are live prices; capital bears no risk. The authors state that the finding of the human gate should be read as a lower bound on the phenomenon, not a measurement of it. The paper does not report account returns; the authors state that 7.5 weeks and a medium-horizon strategy cannot statistically support a performance claim in either direction (§7).
- The two regimes are sequential in time, August and September market conditions differ, and proposal composition changes with the market. The authors state they make only existence claims and descriptive statistics, and do not claim that one regime is measurably safer. The comparison between B's internal chat and reflection shares the same market; the authors state that this only bounds confounding for that comparison; the A-versus-B comparison carries this confounding in full (§7).
- The window is 7.5 weeks, 119 revisions, one broker, one model family, one asset class (US equities plus long-only options). The circuit breaker never triggered, and the regime-level backstop was not tested by events. Only 12 orders passed through the human queue, and the regime comparison falls on the revision channel (§7).
- The authors consider what generalizes to be the shape rather than the thresholds: validation decomposed by failure category (Table 1), freezing self-expanding autonomy, treating accurate interfaces as a verification requirement, and the event classes in Table 3 (§7). The paper does not list a separate plan for follow-up experiments.
Scope of experimental coverage
- Run records cover Regime A (2026-08-11 to 08-27) and Regime B (evening of 08-27 to 10-02); shadow nightly reflection starts from 09-14 and uses the same auto-apply switch as paper (§5).
- Session models are Claude Opus 5, Claude Sonnet 5, Claude Haiku 4.5; the authors state that the validation stack does not depend on which model the proposal comes from (§3.6).
- 119 revision proposals, 12 confirm stock orders, 52 nightly reflections all producing parseable reports; transcripts can be replayed from the Reports page (§6.1, §6.5).
- 20 catalogued events, of which 6 are production runs, 13 are pre-merge adversarial review, and 1 is a design decision; Table 4 lists all entries (§6.4).
- The paper does not report drawdown thresholds, risk limit values, the token cost of reflection, account returns, or statistical tests. The circuit breaker was armed throughout Regime B and did not trigger (§5.4, §6.5, §7).
Summarize the main content of the paper
Three-layer verification divides the work of verifying a self-revising trading agent: code keeps consistency, humans handle judgment.
AllPath is a personal LLM trading agent deployed on a live paper brokerage account, and the question it asks is who verifies irreversible actions.
- Structure: Strategies are versioned files. During market hours, Sentinel checks active rules with pure code at 15-to-60-minute intervals; chat and nightly reflection can only propose. The code gate enforces risk limits and requires that a revision be byte-identical to the base, that the version increment, and that authorization and status not change. Reflection has no action tools, and tool iteration defaults to at most 12 times. The diff a human sees is recomputed against the current file at render time.
- Two regimes: The same system first sent all self-revisions to a human (2026-08-11 to 08-27), then let reflection revisions that passed the gate apply automatically (the evening of 08-27 to 10-02). The chat channel was always human-gated. When equity drawdown exceeds a configured proportion, automatic application drops to confirm until a human resets it.
- Revision channel: By 10-02 there were 119 revision proposals in total. In Regime A, 6 reflections approved 4 and vetoed 2, and the code gate raised no objection; the two vetoes came from the operator's judgment of the market, and the proposals themselves were mechanically valid. In Regime B, reflection applied 56 automatically (paper 32, shadow 24), and the integrity gate rejected 0. In the same period there were 57 chat proposals: 53 approved, 1 rejected, 3 marked superseded. The median time to a decision in A was 8.8 hours.
- After the fact and events: Of the 19 rules the agent added itself, 11 were later deleted by the operator, with a median lag of 8 days. The authors state that the most instructive production event passed every gate, was found manually by the operator, and the fix was to make that state visible in the interface. All 52 reflections produced parseable reports. The drawdown circuit breaker never triggered.
- The authors' conclusion: Verification is not an added layer but a decomposition by failure class; the human's place is judgment, which the layers below cannot absorb. The authors do not claim that one regime is measurably safer, and they state that what generalizes is this shape, not the specific thresholds.