arXiv:2608.30976cs.LGAug 2026

Manuscript Offprint

arXiv:2608.30976

A Human-in-the-Loop Autonomous Agent for Industry Time Series Forecasting

Xiaoyu Tao, Mingyue Cheng, Ze Guo, Bokai Pan, Qi Liu, Shijin Wang, Enhong Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xiaoyu Tao, Mingyue Cheng, Ze Guo, Bokai Pan, Qi Liu, Shijin Wang, and Enhong Chen

State Key Laboratory of Cognitive Intelligence, University of Science and Technology of China, Hefei, China

{mycheng, qiliuql, cheneh}@ustc.edu.cn

Abstract—Real-world time-series forecasting is rarely a one-shot model invocation: practitioners must formulate tasks, connect data and models, incorporate domain expertise, assess prediction plausibility, and communicate uncertainty. Specialized forecasting models provide strong numerical predictions but usually operate in fixed pipelines, while general-purpose large language model (LLM) agents often lack forecasting-specific checks, constraints, and stopping rules. We present CastClaw, a human-in-the-loop autonomous forecasting system built through forecasting-oriented harness engineering. CastClaw connects data, specialized models, analytical tools, user input, and a versioned execution record in one runtime. Users specify the target, horizon, constraints, and hypotheses in natural language. Starting from a supplied or model-generated forecast, CastClaw checks temporal patterns and user constraints; when evidence is missing, it retrieves context, runs an analysis or another model, or asks the user. It then keeps, revises, or escalates the result under explicit stopping conditions. The output contains the final forecast and an execution report recording inputs, evidence, actions, and revisions. In this five-dataset electricity-price setting, CastClaw reports the lowest point-estimate MSE and MAE among 16 baselines. A Nord Pool case demonstrates the inspectable workflow. CastClaw was also validated offline on provincial electricity-load data from North China covering January–June 2026.

Index Terms—time-series forecasting, autonomous agents, human-in-the-loop, tool use, forecasting systems.

I. INTRODUCTION

Time-series research spans benchmark archives and diverse applications [1], [2]; forecasting maps historical observations and related variables to future values [3]–[5]. In practice, users must also define the target and horizon, connect data and models, inspect whether a prediction is plausible, obtain missing context, incorporate temporary domain knowledge, and communicate uncertainty. Reliable forecasting is therefore a system task rather than a single model call.

Existing methods cover only parts of this system-level process: conventional models follow fixed input–output pipelines. General-purpose agents and LLM forecasters add reasoning, tools, or numerical prediction [6]–[8]; recent work frames agentic forecasting, AlphaCast emphasizes human–LLM co-reasoning, and TimeSeriesScientist is a general-purpose analysis agent [9], [10], [22]. CastClaw instead combines greater task autonomy with human oversight: it chooses forecasting checks and tool calls, records evidence, candidates, and interventions in a versioned execution record, gates every revision by validation and constraints, and exposes an explicit stopping decision. Users can still correct, constrain, or stop the run.

We present CastClaw, a human-in-the-loop autonomous forecasting system built through harness engineering. The harness connects registered forecasting models, analysis and retrieval tools, natural-language user input, and a versioned execution record. Users provide the target, horizon, constraints, and optional hypotheses. CastClaw obtains an initial forecast and checks it against recent patterns, available context, and user constraints. If support is insufficient, it retrieves context, runs another analysis or model, or asks the user; it then keeps, revises, or escalates the forecast under explicit stopping conditions. The returned execution report records the inputs, evidence, actions, forecast versions, and unresolved warnings.

CastClaw leaves numerical prediction to specialized forecasters. It invokes retrieval, analysis, another model, or the user only when a check identifies missing support; a candidate replaces the current forecast only after validation and constraint checks. The execution record preserves the request, data and model versions, tool outputs, user input, forecast versions, and stopping decision. A user can correct the task, add a time-limited hypothesis, request another check, or stop the run without bypassing validation. The evidence follows the same separation: public datasets support quantitative forecast comparisons, the Nord Pool run shows the recorded decision process, and the provincial-load dataset supports only offline workflow execution. The live demonstration exposes the inputs, checks, actions, and decisions behind the forecast.

Our contributions are: (1) System: CastClaw, an executable human-in-the-loop forecasting system that converts user requests into forecasts and inspectable execution reports; (2) Engineering: a forecasting-oriented harness that coordinates models, tools, user input, selective checks, and stopping decisions; and (3) Demonstration: quantitative comparison on five public electricity-price datasets, an inspectable Nord Pool run, and offline workflow validation on a provincial electricity-load dataset covering January–June 2026.

References (22)