Repository navigation
Description
Problem
Gym can discover agent, model, and resources-server components, but the registry entries do not describe the component version, the code being executed, or the interfaces the component requires and provides.
Without that information, discovery and validation cannot determine whether a selected set of components is compatible. Missing information must not be interpreted as compatibility.
Proposed change
Add one shared component-metadata model with these fields:
version: the component-owned version, when known;code_identity: a structured source, revision, or digest that can identify the implementation used by the component;requires: capabilities the component expects from the rest of the resolved workload;provides: capabilities the component makes available to the rest of the resolved workload.
The initial capability dimensions must cover:
- model modality;
- agent or harness interface;
- sandbox capability;
- tool protocol;
- session model.
Extend the existing agent, model, and resources-server registry entries to expose this shared metadata. Do not create another registry or a second discovery path. A component must define the data once, and registry, inspection, and validation callers must receive the same values.
Add initial metadata for the components used by the first manifest-backed workloads, including simple_agent, example_single_tool_call, code_gen, mcqa, openai_model, and vllm_model. A runtime-selected policy_model without a concrete model implementation must remain unknown.
Migration behavior
- Existing components without metadata remain discoverable.
- Missing
version,code_identity,requires, orprovidesvalues are represented as unknown. - Unknown values must not be converted into implicit compatibility claims.
- Human-readable and JSON inspection must expose the same metadata.
Out of scope
- Enforcing compatibility during validation.
- Deciding which workload components may be replaced.
- Replacing the existing configuration or registry systems.
Acceptance criteria
- Agent, model, and resources-server registry entries expose the shared metadata fields.
- A component defines its metadata in one authoritative place.
- Registry, inspection, and validation consumers observe the same values.
- The initial capability dimensions are represented without hard-coding a closed list of future capability values.
- The components used by the first manifest-backed workloads include metadata.
- Components without metadata report unknown values and remain usable during migration.
- Human-readable and JSON output agree.
Related work
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDev Todo
Activity
[-][Feature] Add capability metadata to agents and environments to enable compatibility filtering[/-][+]Add component versions, code identity, and compatibility metadata[/+]cafzal commentedon Sep 5, 2026
Additional cross-environment evidence for this contract: in an external evaluation integration, we had to reject a baseline launch before dispatch because the editable package resolved to a different source checkout than the requested condition. A separate recovery launch resolved a virtualenv symlink to the bare interpreter and failed because the effective package set changed. In both cases the YAML workload intent was unchanged; only executable component identity differed.
This generalizes to any local/editable agent, model adapter, resources server, sandbox image, or judge. It supports the issue's migration semantics in particular: absent identity should remain
unknown, never an implicit compatibility pass.Suggested validation plan for an implementation:
unknown.I can take a focused additive slice after maintainer confirmation of the preferred metadata owner/model.