Manuscript Offprint

arXiv:2610.25374

Mining the Self-Rewriting System: A Vision for Data Mining on AI-Native Infrastructure

Mayank Darbari, Chiman Salavati, Liang Wu, Dawei Wang, Jiong Zhang, Kelly Wan, Krishna Chakka, Liangjie Hong

Mayank Darbari*, Chiman Salavati†, Liang Wu*, Dawei Wang*, Jiong Zhang*, Kelly Wan*, Krishna Chakka*, Liangjie Hong*

*Nokia, Sunnyvale, California, USA

{mayank.darbari, liang.wu, dawei.wang, jiong.1.zhang, kelly.wan, krishna.chakka, liangjie.hong}@nokia.com

†University of Connecticut, Storrs, Connecticut, USA

chiman.salavati@uconn.edu

Abstract—Classical data mining treats data as generated outside the learner. Emerging AI-native infrastructure invalidates this assumption: as agents observe system state, act, update retrieval stores and models, and promote new artifacts into the serving path, their own decisions reshape the future logs, traces, corpora, and evaluation records used for later training and release. We call this new research object a self-rewriting system and the resulting system-induced distribution shift endogenous drift. Our central, falsifiable claim is that cross-surface causes are not identifiable in general from marginal per-surface monitoring: different coupled failures can produce the same individual signals while differing in their joint behavior, requiring joint analysis for reliable attribution. This agenda comprises four foundational research problems: fusing heterogeneous drift signals into calibrated gating and attribution (C1); mining agent traces whose activity alphabet evolves (C2); maintaining knowledge fabrics through online reindexing, faithfulness, and compression decisions (C3); and safely promoting concurrent learning streams through one shared evaluation gate (C4). These remain fragmented across concept drift, performative prediction, process mining, streaming retrieval-augmented generation, and MLOps, without a unified data-mining agenda. We outline public benchmarks and evaluation criteria, using AI-native telecom only as a motivating exemplar with analogues in finance, software CI/CD, and clinical decision support.

Index Terms—self-rewriting systems, endogenous drift, agent-trace mining, streaming retrieval-augmented generation.

I. FROM EXOGENOUS DATA TO ENDOGENOUS DRIFT

Phone networks, payment systems, software-delivery pipelines, and clinical decision-support systems are beginning to operate through AI agents that observe, act, retrieve evidence, update models, and promote new artifacts back into the serving path. This fundamentally changes the assumptions underlying modern data mining: the system no longer only observes a data-generating process, it becomes part of it, shaping the streams, traces, corpora, and evaluation logs from which the next generation of models and policies is trained. We call this emerging object a self-rewriting system. 1^{1}

Definition 1 (Self-rewriting system). A deployed computational system in which model outputs, agent actions, retrieval updates, tool or policy changes, or promoted artifacts alter the

(a) classical: a fixed world, observed once

Figure

(b) self-rewriting: endogenous drift

Figure

retrain and promote on self-made data

Fig. 1. Classical data mining versus a self-rewriting loop.

distribution from which future training, evaluation, retrieval, or operational data is sampled.

Definition 2 (Endogenous drift). Distributional change induced by a system’s own prior decisions, rather than by an external change in the world alone.

Definition 3 (Agent trace). The structured, parent-linked sequence of spans a single agent session emits, the primary observation signal mined in C2.

Definition 4 (Promotion gate). The shared decision layer that determines whether a newly trained, distilled, compressed, retrieved, or composed artifact may enter the serving path.

The central thesis is that self-rewriting systems render the classical exogenous-data assumption insufficient because the learner becomes part of the data generator. Classical data mining treats the world as something to observe; a self-rewriting system observes a world its own prior actions helped create. The result is not concept drift in one stream but endogenous drift across coupled artifacts: models, retrievers, tools, policies, traces, corpora, and promotion logs.

Why now? The loop is becoming practical because three ingredients have converged: agents can call external tools through standard interfaces [3], adapted models can be served and hot-swapped on shared infrastructure [4], [5], and retrieval/evaluation layers can continuously update the evidence on which agents act [6], [7]. Early research and industry activity on AI-native cores [8] signal this direction as an emerging trend, and the pattern is emerging wherever agents operate critical infrastructure. Individually these components are evaluated as if they observe an external stream; together they form the closed loop in Fig. 1.

1^{1}Here self-rewriting means deployed multi-artifact infrastructure loops, not single-model self-revision [1], [2].

A concrete failure the loop creates. A network-operations agent applies a newly retrieved runbook; the configuration change shifts telemetry. An anomaly-detection adapter is fine-tuned on the traces and promoted, and its explanations alter the citations a root-cause agent emits, which re-enter the corpus that drives the next retrieval and training slice. When quality later regresses, the question is not whether one stream drifted but which coupled artifact to gate: the corpus, tool catalog, adapter, reward model, or safety policy, since independent detectors may alarm on several axes yet cannot attribute the cascade the loop itself created. This is the seed of C1–C4.

Why this is a Blue Sky data-mining agenda. The object of study is not the agent architecture but the data the loop emits: heterogeneous drift signals, structured reasoning/action traces, evolving text/graph/multimodal corpora, and registry-level promotion logs, that is, streams, sequences, non-stationary graphs, evolving alphabets, and coupled decision logs, all central objects for data mining. The Blue Sky step is to treat the loop itself as a new object: the data stream is no longer external to the mining system, but partly produced by the same actions, retrieval updates, policy changes, and promoted artifacts the system later trains, evaluates, and gates. The opportunity for data mining is to define the public tasks and metrics for this loop before they are settled ad hoc inside proprietary stacks; telecom is only a feasibility witness. More precisely, marginal per-surface monitoring is not sufficient in general for cross-surface attribution: distinct coupled failures can share the same individual signals but differ in their joint behavior. We treat this claim as refuted if marginal baselines match joint attribution on the drift-arena. This single assumption break induces four benchmarkable surfaces:

• C1. Endogenous drift: fusing co-evolving drift signals across corpora, models, tools, policies, and serving decisions into calibrated gating and attribution decisions.

• C2. Agent-trace mining: treating structured reasoning/action traces as primary event streams over evolving tool and role alphabets.

• C3. Self-evolving knowledge fabrics: making reindexing, summary invalidation, citation faithfulness, provenance tracking, and compression online decisions over versioned multimodal corpora.

• C4. Closed-loop train-to-serve: safely promoting concurrent learning streams through a shared evaluation gate, registry, observability surface, and safety contract.

References (40)