Skip to content

docs(config): document the Domain enum (#1205 friction #9 / FEP-1023) - #1633

Merged
wprazuch merged 2 commits into
mainfrom
wprazuch/domain-docstring
Jun 24, 2026
Merged

wprazuch merged 2 commits into
mainfrom
wprazuch/domain-docstring

Conversation

@wprazuch

@wprazuch wprazuch commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds a docstring to the Domain enum in config_types.py — a one-line description per value with a recognizable example benchmark, plus guidance to pick the most specific domain and use other only as a catch-all (addresses the #600 'agent is too broad / no guidance' concern without redefining the taxonomy).

math   — mathematical problem solving (e.g. AIME, MATH, GSM8K).
coding — code generation, repair, or execution (e.g. SWE-bench, LiveCodeBench).
agent  — multi-step, tool-using tasks (e.g. tau2, workplace_assistant). Prefer a more specific value when it fits.
... (knowledge, instruction_following, long_context, safety, games, translation, e2e, rlhf, other)

Why

Epic #1205 friction 9 (naming confusion). Surfaces on IDE hover and when reading config_types; complements the inline domain comment added in #1597.

Tests

test_domain_enum_documents_every_value asserts every Domain value appears in the docstring, so a newly-added domain can't ship undocumented.

@copy-pr-bot

copy-pr-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@wprazuch
wprazuch force-pushed the wprazuch/ng-test-concurrency branch from 2fdee46 to eebfcf8 Compare June 22, 2026 13:45
@wprazuch
wprazuch requested a review from a team as a code owner June 22, 2026 13:45
@wprazuch
wprazuch force-pushed the wprazuch/domain-docstring branch from b0918eb to 868cdb0 Compare June 24, 2026 07:01
@wprazuch
wprazuch changed the base branch from wprazuch/ng-test-concurrency to wprazuch/cli-clean-base June 24, 2026 07:01
@wprazuch wprazuch closed this Jun 24, 2026
@wprazuch wprazuch reopened this Jun 24, 2026
@wprazuch
wprazuch force-pushed the wprazuch/domain-docstring branch 2 times, most recently from e80789d to 54e8888 Compare June 24, 2026 07:18
@wprazuch
wprazuch changed the base branch from wprazuch/cli-clean-base to martas/1434 June 24, 2026 07:18
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://nvidia-preview-wprazuch-domain-docstring.docs.buildwithfern.com/nemo/gym

Here are the markdown pages you've updated:

@wprazuch
wprazuch force-pushed the wprazuch/domain-docstring branch from 54e8888 to f54d6be Compare June 24, 2026 07:21
@wprazuch
wprazuch requested a review from marta-sd June 24, 2026 08:40
marta-sd
marta-sd previously approved these changes Jun 24, 2026
Comment thread nemo_gym/config_types.py Resolved
@wprazuch
wprazuch force-pushed the wprazuch/domain-docstring branch from f54d6be to 129e8d2 Compare June 24, 2026 09:08
@wprazuch
wprazuch changed the base branch from martas/1434 to main June 24, 2026 09:08
@wprazuch
wprazuch dismissed marta-sd’s stale review June 24, 2026 09:08

The base branch was changed.

…ples)

Epic #1205 friction #9 (FEP-1023 / M6d): add a docstring to the Domain enum
describing what each value is for, with a recognizable example benchmark, plus
guidance to prefer the most specific domain and use 'other' only as a catch-all.
Surfaces on IDE hover / when reading config_types. A test enforces every value
stays documented. Stacks on the unified-CLI base (martas/1434).

Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>
@wprazuch
wprazuch force-pushed the wprazuch/domain-docstring branch from 129e8d2 to 1d3f308 Compare June 24, 2026 09:08
The surrounding docstrings render as markdown (triple-backtick bash code fences), where inline
code uses a single backtick; switch the Domain enum values from double to single backticks to
match. Update the doc-coverage test assertion accordingly.

Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>
@wprazuch
wprazuch merged commit f378fee into main Jun 24, 2026
16 checks passed
@wprazuch
wprazuch deleted the wprazuch/domain-docstring branch June 24, 2026 09:52
ritaneves pushed a commit that referenced this pull request Jun 25, 2026
…#1633)

## What

Adds a docstring to the `Domain` enum in `config_types.py` — a one-line
description per value with a recognizable example benchmark, plus
guidance to **pick the most specific domain** and use `other` only as a
catch-all (addresses the
[#600](#600) 'agent is too
broad / no guidance' concern **without** redefining the taxonomy).

```
math   — mathematical problem solving (e.g. AIME, MATH, GSM8K).
coding — code generation, repair, or execution (e.g. SWE-bench, LiveCodeBench).
agent  — multi-step, tool-using tasks (e.g. tau2, workplace_assistant). Prefer a more specific value when it fits.
... (knowledge, instruction_following, long_context, safety, games, translation, e2e, rlhf, other)
```

## Why

Epic [#1205](#1205) friction 9
(naming confusion). Surfaces on IDE hover and when reading
`config_types`; complements the inline `domain` comment added in #1597.

## Tests

`test_domain_enum_documents_every_value` asserts every `Domain` value
appears in the docstring, so a newly-added domain can't ship
undocumented.

---------

Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>
Signed-off-by: Rita Fernandes Neves <rfernandesne@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants