Evaluation Governance › Deprecation and Retirement
Language AI HandbookAll chapters A benchmark can become too easy, suffer exposure, or stop measuring the ability people use it to discuss. Record its lifecycle so a consumer can tell whether a historical score is eligible for a current comparison. See Benchmark Saturation for one reason an evaluation can lose value.
Three states, with clear semantics:
- active: may be reported as a current measurement.
- deprecated: may appear in a separate, labeled report with a deprecation notice and named successor. The current leaderboard excludes releases for this version.
- retired: may not be reported as a current measurement at all; the gate withholds. The data may be retained for historical comparison, always labeled as retired.
The three states form a practical gradient. deprecated is the migration window: consumers are told the benchmark is going away and given a successor, but they are not cut off. retired is the closure: the benchmark is no longer a valid basis for a current claim. The middle state is what makes the transition humane, because it gives downstream users time to migrate rather than switching abruptly.
The lifecycle should be recorded as events, not inferred. A deprecation event names an existing active successor version. A retirement event closes that version. Both are appended, never overwritten. Recording lifecycle as events rather than as a mutable state field means the full history of transitions is preserved, so an auditor can see not just the current state but every state the benchmark has passed through and the reason for each transition.
PythonIn [21]Expand
@dataclass
class LifecycleEvent:
benchmark_id: str
benchmark_version: str
previous_state: str
new_state: str
reason: str
successor: Optional[str] = None
event_id: str = field(default_factory=example_id)
at: str = field(default_factory=now_iso)
class BenchmarkRegistry:
def __init__(self):
self._state: dict[tuple[str, str], str] = {}
self._events: list[LifecycleEvent] = []
@property
def state(self):
return dict(self._state)
@property
def events(self):
return tuple(deepcopy(self._events))
def register(self, benchmark_id: str, benchmark_version: str):
key = (benchmark_id, benchmark_version)
if not all(value.strip() for value in key) or key in self._state:
raise LedgerError("register a new named benchmark snapshot")
self._state[key] = "active"
def transition(
self,
benchmark_id: str,
benchmark_version: str,
new_state: str,
reason: str,
successor: Optional[str] = None,
):
key = (benchmark_id, benchmark_version)
previous = self._state.get(key)
if (previous, new_state) not in {
("active", "deprecated"),
("deprecated", "retired"),
}:
raise LedgerError("invalid lifecycle transition")
if not reason.strip():
raise LedgerError("record a reason for the transition")
if new_state == "deprecated":
next_key = (benchmark_id, (successor or "").strip())
if next_key == key or self._state.get(next_key) != "active":
raise LedgerError("name a different active successor version")
successor = next_key[1]
elif successor is not None:
raise LedgerError(
"retirement records the closure; the deprecation names the successor"
)
event = LifecycleEvent(
benchmark_id,
benchmark_version,
previous,
new_state,
reason,
successor,
)
self._events.append(event)
self._state[key] = new_state
return deepcopy(event)
def allows_reporting(self, benchmark_id: str, benchmark_version: str):
state = self._state[(benchmark_id, benchmark_version)]
return {
"active": "current",
"deprecated": "with-notice",
"retired": "blocked",
}[state]The registry tracks a versioned snapshot. A successor that is registered and active does not reactivate its predecessor. The gate gives deprecated snapshots a notice and rejects retired snapshots from the current ranking.
ConsoleOut [22]Expand
initial allowance: current [deprecated] saturation above 95% on public split -> successor=1.1.0 allowance: with-notice [retired] retired after contamination confirmed allowance: blocked
The registry first deprecates version 1.0.0 with version 1.1.0 as the active successor, then retires 1.0.0. The original events remain inspectable through detached copies.
The gate reads the registry snapshot copied into the demo state. Retirement of version 1.0.0 blocks that measurement even though version 1.1.0 stays active.
ConsoleOut [23]Expand
gate with retired benchmark: {'release_id': 'demo-0001', 'decision': 'withheld', 'reasons': ['benchmark_retired'], 'notices': []}Even a perfectly clean release is withheld once its benchmark is retired. That is the correct behavior: the number was fine for its time, and governance records that it is no longer a current claim. The alternative, silently letting retired numbers remain citable, is how a leaderboard accumulates obsolete entries that look current and quietly mislead.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!