Skip to content

Menu

WorksComputer Science

Self-Regression-Test: Persistent Behavioral Contracts for Skill-Evolving Agents

View on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_xz35yja8. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Self-evolving agents rewrite reusable skills to adapt, but edits can silently break behaviors that other tasks depend on. Aggregate safeguards such as regularization and replay do not identify the behaviors at risk. Self-Regression-Test (SRT) gives each skill a versioned regression suite as a partial contract. A synthesizer turns past trajectories into outcome, trace, and negative predicates with severity labels. Predicates run on cached inputs, and semantic outcomes use a five-vote LLM judge checked in an independent audit. An executor checks each proposed edit against the suite, and a controller uses the verdicts to commit, attempt bounded repair, or roll back the edit. SRT refreshes the suite periodically and leaves policy weights and the upstream evolution operator untouched. Across four operators and three benchmarks, SRT improves retained accuracy by 8.3-11.4 points at a 0.8-1.5-point adaptation cost, with paired confidence intervals excluding zero in all twelve cells. Default overhead is about 14%. A six-cell matched-budget comparison separates this gain from rejection alone and extra computation. In a 2-by-2 study, persistent tests lower erosion by 1.6 points compared with regenerating tests at the same verifier budget and with the same repair loop. A 600-update independent audit reaches F1 0.90, and 150 naturally proposed updates yield F1 0.85. Hidden paraphrases pass at 90.3% versus 71.0% for snapshot exact match. The contract certifies behavior only on inputs its predicates deterministically cover. LLM judge errors are measured empirically, and per-skill contracts do not compose across simultaneous multi-skill refactorings.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

License
arXiv nonexclusive license
Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type