Repository navigation
feat(environment): list every kind of input in a manifest's modality - #6233
Conversation
9e47ee7 to
792c6e9
Compare
bccccb6 to
a4ded0a
Compare
a4ded0a to
51e4ac1
Compare
51e4ac1 to
b9b070d
Compare
f1871f0 to
219a9d9
Compare
|
/ok to test 219a9d9 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
I found one RISK: OfficeQA Pro is classified as text-only even though its supported document-reading paths include images.
I reviewed the schema migration, catalog and CLI integration, and all migrated manifest hunks. This was a static review; I did not execute tests. The external hub and EvalBench import changes are outside the supplied trees, so I could not verify their rollout readiness.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| modality: multimodal | ||
| # Code license; the separately downloaded dataset is CC-BY-SA-4.0. | ||
| modality: | ||
| - text |
There was a problem hiding this comment.
RISK: Could you keep image for OfficeQA Pro? Its supported document-reading paths are not exclusively text. The run instructions require image support for rendered pages, and the OpenCode model configuration declares image input. The supported Claude configuration also preserves image-bearing Read results, which Gym's converter carries as image parts rather than text.
With [text], gym list environments --modality image excludes officeqa_pro, and its catalog JSON omits a supported input kind. The manifest should describe the union of inputs the model receives, not only extracted document text. The smallest correction is:
| - text | |
| - text | |
| - image |
Keep text because prompts and extracted-text inputs still apply. Keep Legal Agent Bench's separate [text] classification: its tool executor returns strings, unlike OfficeQA's supported image-bearing path. No harness or document-tool change is needed.
Proposed acceptance checks, not executed: load this committed manifest and assert modality == ["text", "image"]; assert image-filtered catalog JSON includes officeqa_pro with both values; assert the text filter still includes it. Also retain Legal Agent Bench as ["text"] and exclude it from the image filter. Verify the suggested edit before adopting it.
There was a problem hiding this comment.
Agreed, thanks. The rule is what the model receives, and OfficeQA Pro's model gets rendered pages as images in both supported harnesses; [text] assumed its document tools return only text. Changed to [text, image] in 9eb0107, and restored the dataset-license comment the rewrite had dropped. Legal Agent Bench stays [text]. Checked by hand: gym list environments --modality image --json now includes officeqa_pro with both values and still leaves out legal_agent_bench, and --modality text includes both. I didn't add a test that pins one manifest's value.
|
/ok to test 9eb0107 |
9eb0107 to
15e1ac3
Compare
|
/ok to test 5f3982d |
|
/ok to test 352dca9 |
352dca9 to
ffc26d7
Compare
|
/ok to test ffc26d7 |
ffc26d7 to
8f98329
Compare
|
/ok to test 8f98329 |
`modality` was free text, so image benchmarks were spelled `multimodal` (10), `text, image` (7) and `text,image` (1), and a filter for images missed most of them. `multimodal` did not even say which input it meant: two of those benchmarks give the model text and read documents through tools. `modality` is now a list of the kinds of input the model receives, from text, image, audio and video, each once: `[text]`, `[text, image]`, `[text, audio]`. A list rather than one word, so a task that gives the model video and audio, or image and audio, can say so. Manifests written as text keep loading, so internal Gym's own manifests (`vision`, `multimodal`, `video` and comma lists) do not break when it syncs: comma text reads as written; one word other than text named the input beyond the text prompt, so `image` reads as [text, image]; `multimodal` and `vision` read as [text, image]. Any other word fails and names the four values. `gym env validate` and `gym env publish` warn with the list to write; loading stays quiet, since every catalog listing loads every manifest. Gym reads the text form until 0.9.0. `gym list environments --modality image` keeps entries whose list includes image, the catalog JSON carries the list, and the scaffold writes `[text]`. All 248 manifests are written as lists. The values that changed are what the model receives: chartography, labbench2_vlm, mm_browsecomp, vision2code and gdp_pdf (rendered page images) are [text, image]; legal_agent_bench and officeqa_pro, which read documents through text tools, are [text]; gdpval and aa_briefcase_lite are [text, image], the least certain of these; agentvista's tasks come with images, so its `multimodal` is [text, image]. The catalog JSON's `modality` changes from a string to a list, so the hub's import and EvalBench's import read the list before this merges. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
The two HealthBench manifests pinned their adopted_from revision through entries in .github/workflows/config/.secrets.baseline, which record line numbers. Writing modality as a list adds a line above them, so the secrets detector rewrote the baseline and failed. Mark the two lines with `# pragma: allowlist secret`, as other pinned revisions in the repository are marked, and drop their baseline entries, so later edits above them do not break the check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
OfficeQA Pro's model receives rendered document pages as images: the README requires a model server with image input, the Claude Code config keeps image-bearing Read tool results, and the OpenCode model definition declares text and image input. Also restore the dataset-license comment the modality rewrite dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
The example manifest is the one contributors copy. `modality: text` still loads through the text form, but validate and publish warn on it, so the example now writes `modality: [text]`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
…input The test's catalog had one entry listing text and image and one with no modality, so a filter that kept every entry with any modality passed. A text-only entry is now in the catalog, and filtering on image must drop it. With the filter changed to keep any entry that has a modality, the test fails. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
25 manifests reached main after this change's base and still wrote modality as text. Each now lists its inputs the way the earlier commit reads text: text stays [text], one other word adds text ([text, video]), comma text reads as written, and multimodal reads as [text, image]. opencode_multimodal_benchmarks/agentx needed a judgment: it wrote "image and video", which is not a value, and its README has 494 image tasks and 111 video tasks, so it is [text, image, video]. environments/pdf_analyst_qa wrote multimodal, and [text, image] is what its model receives: its tasks give the model PDFs to read with tools in a sandbox workspace, and its OpenCode config sets image_input, so the model also receives the images those tools return, as in OfficeQA Pro. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
8f98329 to
b467099
Compare
|
/ok to test b467099 |
ffrujeri
left a comment
There was a problem hiding this comment.
Thanks. Old text values still load until 0.9.0 with a warning that names the list, and --modality now matches by membership. Optional: could the description note that gym list environments --json now returns modality as a list, for scripts that parse it? This rewrites the same manifests as #6234, so it lands after a rebase. LGTM.
…n added since #6233's base gym_v_smoke and visgym_maze_smoke (`multimodal`) and perceptionbench (`image`) become `[text, image]`; lmarena_v4 and terminal_bench_2_1/openclaw become `[text]`. These are the lists `legacy_modality` already read them as, so nothing behaves differently; they no longer warn. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
Resolves the one conflict, in benchmarks/birdbench/manifest.yaml: main (NVIDIA-NeMo#6233) made modality a list, and this branch changed the description and licensing. The merged file keeps both: main's `modality: [text]` and this branch's description and `licensing: CC-BY-SA-4.0`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Abel Brown <[email protected]>
Main now writes `modality` as a list (#6233); a text value still loads, with a deprecation warning. The 42 manifests this change adds take the list Gym maps their text to: `[text]` for 40 and `[text, image]` for circle_click and circle_count. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
Main now writes `modality` as a list (#6233); a text value still loads, with a deprecation warning. The 15 manifests this change adds take the list Gym maps their text to: `[text]` for 9 and `[text, image]` for 6. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]>
…Spark manifests Main's check-manifest-selection-fields hook (#6234) requires them in every manifest. They follow the SQLite manifest; PostgreSQL needs the server you provide (allowlist), Spark runs locally (no-network). Modality is a list, as #6233 writes it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
… them (NVIDIA-NeMo#6234) * fix(benchmarks): let seven manifests that fail the schema load again Seven benchmark manifests on main do not load, so the catalog lists their benchmarks as having no manifest: - babyvision_opencode and babyvision_opencode_question_only copy the config's prepare_dependencies into a dataset; manifests do not mirror that field. - biomnibench_da, bixbench_hypothesis and genebench_pro set `lifecycle: experimental`; lifecycle is active or deprecated, and experimental already has its own flag. biomnibench_da and genebench_pro also leave out resources_server and need `prompt_source: agent` for their Harbor tasks. - legal_agent_bench left out resources_server when it moved to its native agent. It has none: its agent sets `resources_server: null` and the Harbor environment server grades the tasks. - swe_together declares environment_server, which the manifest has no field for, instead of `resources_server: null`. All seven now load. bixbench_hypothesis, biomnibench_da and genebench_pro still fail `gym env validate` on a stale composition (the config's model server is null and its dataset path is an unresolved ${prepare_script_args.output_dir}); their owners decide that. The BabyVision config test compared the manifest's datasets with the config's, prepare_dependencies included; it now compares the fields a manifest mirrors. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * docs(environment): say how to write an unnamed split or an unknown headline metric `canonical_split` names the upstream split a benchmark scores. Some upstreams name none: a GitHub file, a release CSV or tarball, rows built in code, a private artifact. Those now write `full`, the whole release. A benchmark that combines splits joins their names with `+`, as aime24-x (`de+es+fr+ja`) already does. `primary_metric` may be `unknown`, as `requirements.gpu` and `requirements.network` already allow: when a benchmark reports several key metrics and nothing establishes which is its headline score, that value hasn't been established. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): record who maintains each environment Fills `maintainers` in all 272 manifests. Owners are hard to reach, so the logins come from the files and their history: the GitHub login of whoever added the environment, the first commit that adds files to its folder or to its own resources server, plus anyone with at least two commits that touched only that environment. Bots, commits that touch more than 20 environment folders, and shared resources servers (math_with_judge, mcqa and others used by several folders) are left out. Logins come from GitHub's commit records (author.login). A config's own manifest below a benchmark's copies that benchmark's maintainers. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): record what each run needs beyond the model Fills `requirements` in all 272 manifests from each config and the code it runs, with no owner input. network (116 no-network, 86 allowlist, 70 public): - allowlist: a judge, user simulator or helper model reached through an endpoint; a search or other named API (Exa, Tavily, SEC); a remote sandbox provider. A judge that is the policy model itself adds nothing. - public: a tool that fetches arbitrary web pages, Harbor tasks that allow the internet, and harnesses that install themselves inside the sandbox during the run (OpenCode from opencode.ai or GitHub, Codex from npm, mini-SWE from PyPI, Terminus-2 installing tmux), since a cluster without open egress cannot run them. - Downloads by a prepare script or at server start-up do not count. gpu (8 true): the environment itself runs a model on a GPU: xCOMET-XXL for flores200 and wmt24pp, the SEGALE scorers for both longmt benchmarks, the WildGuard judge xstest starts, three terminal_bench_4 tasks that need an H100 sandbox (in both of its configs), and rna_design's gRNAde scorer. A judge served elsewhere is a network need, not a GPU one. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): name each benchmark's headline metric Fills `primary_metric` in all 262 benchmark manifests: which key metric is the benchmark's score, named as the default run reports it. The name comes from the key metrics the resources server or agent selects (get_key_metrics) at the manifest's default num_repeats, so math with 32 repeats is `pass@1[avg-of-32]/symbolic_accuracy`, and a server that keeps the default selection reports `mean/reward`. Where several key metrics exist, the benchmark's README, tests or upstream convention picks one. 40 are `unknown`: the files offer several key metrics and name none as the headline (for example symbolic vs. judge accuracy with the judge on, per-language translation scores, speed-bench's acceptance length vs. rate, SaaS-Bench's mean score vs. pass rate). Their owners choose; the candidates are listed in the PR. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): name each benchmark's upstream split and source canonical_split named Gym's dataset role, `benchmark`, in 211 of 262 benchmark manifests. It now names the upstream split the prepared rows come from, read from each prepare script: the `split=` argument, a split constant, a file name such as test-00000.parquet, or the release's own name. A Hugging Face dataset with a single split is `train`, as chembench already wrote. Several splits combined are joined with `+`. 91 benchmarks whose upstream names no split are `full`. Other values that were not splits are corrected: Gym's own labels (deepswe's `test`, swe_together's `full109`, Agent-X's `non_generative` and the five skill_trigger configs' `positive-trigger`), officeqa_pro's file name, enterpriseops_gym's `oracle` config, and visualwebarena's `test`, which its pinned source does not name. Seven stay for their owners, because the split cannot be read from Gym's files: the four tau2 configs (the split is chosen in a fork), osworld (five committed example tasks), agentic_if_realworld (an exposure label; the README does not name the split) and collab_intel (its release is downloaded at prepare time). adopted_from is filled for 109 benchmarks whose files pin an upstream source: a dataset revision, or a repository commit or tag when no data is pinned. reconciled is the date the pin entered Gym. Existing values, on the two healthbench manifests, are kept. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * fix(benchmarks): correct plainly wrong domains 31 manifests named a domain that another listed value plainly fits: - translation (5): flores200, wmt24pp, indic/in22, longmt_pg19 and longmt_wmt24pp were `other`. - long_context (14): AA-LCR, GraphWalks, MRCR, RULER and RULER v2 were `other`; LongBench v2 and LongCodeBench were `knowledge`. Each config of these benchmarks moves with it. - rlhf (4): the Arena-Hard benchmarks, as lmarena_v2 and v3 already are. - knowledge (3): FrontierScience Olympiad and Research and CritPt, science QA as GPQA and HLE are. - agent (5): AutomationBench's multi-step enterprise workflows (both configs), AgentVista's multi-step tool use over visual search tasks, and SaaS-Bench's browser agents on live SaaS apps (both harnesses). `domain` stays Gym's single category; capabilities and domains, from the capability taxonomy and domain list, are filled in their own commit. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): label each environment's capabilities and domains Fill capabilities and domains in all 272 manifests from the labels drafted for each environment, matched by kind and catalog name. The values come from the capability taxonomy and domain list that Gym copies in nemo_gym/environment/capabilities_and_domains.yaml. - 56 manifests carry labels from an internal mapping of the benchmark's own tasks. Domains are ordered by their share of tasks. - 169 carry labels an AI model drafted from the benchmark's README, manifest and config. No person has reviewed them yet. - 47 are unknown: no labels have been drafted for them yet. - An empty list means none applies: the speed-bench configs measure serving throughput, not a model skill. capabilities keeps each record's order, which puts the main capability first. Every value is in Gym's copy of the lists. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * ci: require the selection fields in every manifest Every manifest now declares the selection fields, so a new pre-commit hook, check-manifest-selection-fields, requires them in all of them: maintainers, capabilities, domains, requirements.gpu, requirements.network and, for a benchmark, primary_metric. It needs no list of exempt manifests. `unknown` is accepted where a value hasn't been established (capabilities, domains, the two requirements and primary_metric), and an empty capabilities or domains list means none applies. A scaffold `TODO` is not; a login or metric name counts as the placeholder only when it is exactly `TODO`, as `gym env publish` checks, so a real login such as `todorov` passes. The hook checks presence; `gym env validate` checks the values. CI runs it through the lint job's `pre-commit run --all-files`, so it sees every manifest. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * ci(benchmarks): allowlist the pinned upstream revisions for the secrets detector The secrets detector reads each commit hash that adopted_from pins as a Hex High Entropy String, so every manifest that gained a hex ref failed the check. Mark each of those lines with `# pragma: allowlist secret`, as other pinned revisions in the repository are marked. The two HealthBench manifests already pinned a revision through entries in .github/workflows/config/.secrets.baseline, which record line numbers. The new fields moved those lines, and any later edit above them would move them again. Mark those two lines the same way and drop their baseline entries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * docs(benchmarks): describe the benchmark, not its harness or grader Thirteen manifests described something other than their benchmark: - deepsearchqa and widesearch described the claude_code harness; their main configs run any Gym harness. The manifests of their per-harness configs still name their harness. - apex25, apex_shortlist, arxivmath_0526 and arxivmath_0626 said "OpenMathReasoning math dataset with math-verify and LLM-as-a-judge", the resources server's description. They now name the benchmark and its grading: symbolic-only for apex25 and apex_shortlist (its config sets should_use_judge: false), symbolic-first with a judge fallback for ArXivMath. - arxivmath_0426 had the grading order backwards: its README says symbolic-first with an autograder LLM fallback. - brokenarxiv_0426/0526/0626 and their config_with_system manifests described the grader; they now name the benchmark and month, and the config_with_system manifests add that they use a system prompt. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): give each config's manifest its benchmark's labels A manifest for one of a benchmark's configs, in a folder below the benchmark's own manifest, now copies that manifest's capabilities and domains, unless the config changes what the model receives or which tools it has. The labels were drafted for each manifest separately, so 27 of the 47 active ones disagreed with their benchmark's by chance. - 44 copy their benchmark's labels: harness and system-prompt variants (deepsearchqa's and widesearch's configs, the seven config_with_system configs, openthoughts_tblite/terminus_2), context-length variants (beam, graphwalks, longbench_v2, longcodebench, mrcr, ruler) and task subsets (aalcr/config_v1_1, litmus-bench's four, rolemrc/config_judge). - hle/config_vision and hle_verified/config_vision add images. They take their benchmark's labels plus multimodal_input_understanding with structured_visual_artifact_understanding and cross_modal_understanding, the image labels hle_diamond carries. - hle_diamond/text drops images. It takes hle_diamond's labels without the multimodal ones. - automationbench/config_legacy_agent is deprecated and keeps unknown. brokenarxiv_0526 and brokenarxiv_0626 change as well: the three monthly snapshots share brokenarxiv_0426's set, every label at least half of the six drafts carry, with safety first, as the README calls it a sycophancy benchmark. Their config_with_system manifests copy it. Refs: GYMINT-740. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * fix(benchmarks): declare only the scored split and supplied-evidence QA in two manifests BEAM's Muse 128k preset drops each question whose full prompt is longer than 131072 Muse-Glimmer-30B tokens, and truncates nothing. No 500K or 1M chat fits, and 260 of the 400 100K questions do, so its rows hold only the 100K split. The Nemotron-3 1M preset keeps all three splits (every 100K and 500K question and 440 of the 700 1M questions), and the default preset has no length filter, so both stay 100K+500K+1M. FinanceBench puts each question's gold evidence in the prompt and tells the model to answer only from it. simple_agent has no retrieval tool, and the README sets these scores apart from runs that must find the evidence, so the benchmark does not test open retrieval. It keeps retrieval_and_grounding/evidence_synthesis. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): label bird_interact from the capability taxonomy Its maintainer suggested these in review; bird_interact was added after the last labels were drafted, so it had `unknown`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): fill the selection fields of five manifests main added since the last rebase Main added gym_v_smoke, visgym_maze_smoke, lmarena_v4, perceptionbench and terminal_bench_2_1/openclaw after this branch was last rebased, so the required-field check would fail on them. They follow the same rules as the others: - maintainers: the GitHub login of the commit that added each one; openclaw copies its Terminal-Bench 2.1 siblings'. - requirements: no GPU; gym_v_smoke and visgym_maze_smoke run local environments (no-network), lmarena_v4 and perceptionbench reach a judge through an endpoint (allowlist), and openclaw installs its harness in the sandbox during the run (public). - primary_metric: lmarena_v4 takes lmarena_v3's `win_rate`; perceptionbench's README names `mean/reward`; the two smoke benchmarks score binary task success as `mean/reward`; openclaw copies its siblings'. - capabilities and domains: `unknown`, since no labels have been drafted for them, except openclaw, a harness variant of the same tasks, which copies terminal_bench_2_1/opencode's. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): draft labels for the 50 manifests that had none Every manifest now has `capabilities` and `domains`; none is `unknown`. - 41 active manifests whose label record had none, mostly benchmarks added after the labels were last drafted, are drafted the same way as the other AI-drafted ones: Claude Opus 5.5 with prompt version 5, reading each one's README, manifest, config and sample tasks. Every value is in `capabilities_and_domains.yaml`. - skill_trigger's five configs share the labels that at least three of their five drafts carry, and swebench/pro_v2_hard/opencode, a subset of pro_v2's tasks, copies swebench/pro_v2/opencode's. - The nine deprecated `*_legacy_agent` configs copy the active config with the same harness, including automationbench/config_legacy_agent, which kept `unknown` before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> * chore(benchmarks): write modality as a list in the five manifests main added since NVIDIA-NeMo#6233's base gym_v_smoke and visgym_maze_smoke (`multimodal`) and perceptionbench (`image`) become `[text, image]`; lmarena_v4 and terminal_bench_2_1/openclaw become `[text]`. These are the lists `legacy_modality` already read them as, so nothing behaves differently; they no longer warn. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Yuhe Zhang <[email protected]> --------- Signed-off-by: Yuhe Zhang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…Spark manifests Main's check-manifest-selection-fields hook (#6234) requires them in every manifest. They follow the SQLite manifest; PostgreSQL needs the server you provide (allowlist), Spark runs locally (no-network). Modality is a list, as #6233 writes it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…Spark manifests Main's check-manifest-selection-fields hook (#6234) requires them in every manifest. They follow the SQLite manifest; PostgreSQL needs the server you provide (allowlist), Spark runs locally (no-network). Modality is a list, as #6233 writes it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
What changed and why
modalitywas free text, so image benchmarks were spelledmultimodal(10),text, image(7) andtext,image(1), and filtering for images missed most of them.multimodalalso didn't say which input it meant: legal_agent_bench gives the model only text and reads its documents through tools.modalityis now a list of the kinds of input the model receives:text,image,audioandvideo, each at most once. Examples:[text],[text, image],[text, audio]. It is a list rather than one word so that a task giving the model video and audio, or image and audio, can say so.[text, image]. legal_agent_bench reads documents through tools that return text, so it is[text]. gdpval and aa_briefcase_lite are[text, image], the least certain values here. agentvista's tasks come with images, so itsmultimodalis[text, image].gym list environments --modality imagekeeps every entry whose list includesimage. The catalog JSON carries the list;gym env initand the example manifest (examples/environment_manifest.yaml) write[text].mainare written as lists: 230[text], 33[text, image], 4[text, audio], 4[text, video]and 1[text, image, video].Older manifests keep loading. A manifest that still writes
modalityas text loads as the list it stands for:text, imagereads as written.textnamed the input beyond the text prompt, soimagereads as[text, image].multimodalandvisionread as[text, image].gym env validateandgym env publishprint a warning that names the file and the list to write. Loading stays quiet, because every catalog listing loads every manifest. Gym reads the text form until 0.9.0. Manifests outside this repository depend on this; internal Gym, for example, has its own manifests that usevision,multimodalandvideo.Issue
Refs #1520. Internal tracking: GYMINT-740.
Compatibility
modalitychanges from a string to a list. Consumers of the catalog JSON must read the list before this merges.--modalityfilters by membership instead of equality.gym env validateandgym env publish.Validation
main8b4dc20e9e, where feat(legal-agent-bench): support configurable agent harnesses #5990 and feat(pdf_analyst_qa): standardize task data as flat rows plus PDF media #6475 had changed two manifests:modality.main's description is kept with[text]: the manifest's config runs the native harness, whose read tool gives the model the task's PDF and Word files as extracted text. The Claude Code, Codex and Hermes configs feat(legal-agent-bench): support configurable agent harnesses #5990 added have no manifest.[text, image], not[text]: its OpenCode config setsimage_input, so the model also receives the images its tools return, as in officeqa_pro.mainadded no manifest since the last rebase, and none still writesmodalityas text.pytest tests/unit_tests/cli/test_cli.py tests/unit_tests/environment: 991 passed, 1 failed. The failure is the memory-profiler CLI test, which fails the same way onmain8b4dc20e9e.pre-commit runand the secrets detector (detect-secrets1.5.0) over the branch's 283 changed files: passed, and changed no file.main, none because ofmodality;gym env validatepasses on pdf_analyst_qa with no warning.mainafter feat(environment): add selection fields to environment manifests #6098 merged (bffb49faf5):mainhad rewritten the line besidemodality(legal_agent_bench, partner_if, swebench/multimodal/opencode and the two terminal_bench_2_1 configs):main's text is kept with this PR's list.mainhad deleted biomysterybench, and it stays deleted.manifest.py: feat(environment): add selection fields to environment manifests #6098 droppedintended_usefrom the validator's field list, and this PR addsmodalityto it.mainafter this PR's base. They follow the reading rules below, apart from one judgment: opencode_multimodal_benchmarks/agentx wroteimage and video, which isn't a value, and its README has 494 image tasks and 111 video tasks, so it is[text, image, video]. environments/pdf_analyst_qa'smultimodalreads as[text, image], which is the input its model receives (see the rebase onto8b4dc20e9eabove).mainfor reasons that have nothing to do withmodality(a missingresources_server, an invalidlifecycle, an unknown dataset field); chore(benchmarks): backfill the manifest selection fields and require them #6234 fixes six of them.pytest tests/unit_tests/{environment,cli,benchmarks} tests/unit_tests/test_moved_paths.py tests/unit_tests/test_public_api.py -n 8: 2,937 passed. The failures (three super35 launcher tests, the super vLLM launcher's subtests, andtest_babyvision_opencode_prepare.py, which needs Pillow) fail the same way onmain; the memory-profiler CLI test, which also fails locally onmain, was deselected.pre-commit runover the branch's changes: passed.dda3e35fd1(its review fixes), with no conflict. The rebase before it, onto6440d07090, where feat(environment): add selection fields to environment manifests #6098 began to land only the selection fields and the manifest no longer lists setups and protocols, had three conflicts, each where feat(environment): add selection fields to environment manifests #6098 removed listing code beside this PR's change:gym env publish: feat(environment): add selection fields to environment manifests #6098 no longer passes the entry's name to validation; this PR's modality warnings are kept.setupsandprotocolsfields are gone; this PR's modality validators are kept.modality. This PR's three modality tests are kept.pytest tests/unit_tests/{environment,cli,benchmarks,tooling,eval} tests/unit_tests/test_moved_paths.py tests/unit_tests/test_public_api.py -n 8: 4,410 passed, the same 9 failures and 1 collection error as at feat(environment): add selection fields to environment manifests #6098's headdda3e35fd1(4,388 passed) in this local environment: the memory-profiler CLI test, three super35 launcher tests, five CI-environment and server-test-worker tooling tests, andtest_babyvision_opencode_prepare.py, which needs Pillow.--modalityfilter: filtering onimagekeeps an entry listing text and image and drops a text-only entry. With the filter changed to keep any entry that has a modality, this test fails.gym env validateon all 248 manifests, with dataset checks off and placeholder values for required environment variables: 237 pass, and the same 11 fail at feat(environment): add selection fields to environment manifests #6098's head. Six don't load until the selection-field backfill (chore(benchmarks): backfill the manifest selection fields and require them #6234) fixes them; five have a stale composition or need run-time values.[text, image]: its README requires image input for rendered pages, the Claude Code config keeps image-bearing Read results, and the OpenCode model definition declares image input.gym list environments --modality image --jsonincludes officeqa_pro and leaves out legal_agent_bench;--modality textincludes both.description:line right above themodality:line this PR turns into a list: keep both. Whichever PR merges second takes that resolution.detect-secrets1.5.0, as CI runs it on the changed files): passed. The two HealthBench refs are marked# pragma: allowlist secretinstead of baseline entries, because the list form adds a line above them.pre-commit runover the branch's changes: passed.Rollout evidence
N/A: a schema and metadata change; no environment, agent or verifier behavior changes.
🤖 Generated with Claude Code