RepairGate: RL-Trained Skill Repair and Abstention for Lifelong Agent Libraries
Authors: Xiaoyu Chen, Fengge Wu, Junsuo Zhao, Yun Fan
Abstract
LLM agents increasingly rely on externalized skill libraries, yet existing maintainers typically delegate skill editing to a prompted LLM, leaving the question of how to train a skill maintainer open. We present RepairGate, a 9B drop-in wrapper around the standard candidate patcher: a counterfactually-trained post-trial gate accepts, blocks, or overrides each candidate patch, with a structured repair protocol for field-level edits and overlap-aware regularization to control library growth. Across six base agents on SkillFlow, RepairGate delivers +7.73 pp over Vanilla and +9.13 pp over prompted +Iter, with the largest gains on the weakest base agents where prompted iteration regresses, at a standardized 0.033/trial local overhead on top of the shared candidate-patching pipeline. Code and data: https://github.com/xxy33/RepairGate