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.
翻译:暂无翻译