Skip to content

docs(model-server): finish model-call capture page polish - #4550

Merged
yaoyu-33 merged 2 commits into
mainfrom
qiaochuz/nvb-6534797-model-call-capture-docs-polish
Oct 13, 2026
Merged

yaoyu-33 merged 2 commits into
mainfrom
qiaochuz/nvb-6534797-model-call-capture-docs-polish

Conversation

@qiaochuz-nv

Copy link
Copy Markdown
Contributor

What does this PR do?

Finishes the Model-Call Capture page review from NVBug 6534797. #2415 rewrote the page and covered most of the report. This PR closes the items still open on main:

  • Title the page Model-Call Capture, like its sibling pages, and use that title on the index card and on links that name the page.
  • Link "global config" in Configure capture to the Configuration reference.
  • In the field table, show — as the default for model_call_capture_dir. Its description now says it is required when observability_enabled is true.
  • Replace the custom-agent helper paragraphs with a table: one row per helper and when to use it.
  • Replace the remaining "kill-shaped" jargon on the main docs tree, in the Metrics page's description of omitted outcomes, with the kill_shaped class name and what it covers.

Fixes NVBug 6534797.
Closes #4494.

Cause

The bug's 2026-08-06 comment listed polish items for the page. #2415 (3260c981e) addressed the original report, adding the copy-paste run, samples, and index card. Its review raised none of the comment's medium and low items, so they were left as-is:

  • Title casing. The title stayed "Model-call capture". 120 of the 124 page titles under fern/versions/latest/pages are Title Case, including every sibling in model-server/. Links that name the page used two different casings, neither of them the Title Case form.
  • Configure capture section. The section did not link to the Configuration reference, and the Default cell read required when enabled.
  • Custom-agent helpers. The section still listed the five helpers in running prose.
  • "kill-shaped" jargon. docs: improve model-call capture guide #2415 removed the phrase from this page. feat(telemetry): count finished rollouts by outcome, class and reason #3638 (7321716b7) later added "a kill-shaped failure" to observability/metrics.mdx.

Fix

Edits are in fern/versions/latest/pages only:

  • model-server/model-call-capture.mdx:
    • Title.
    • Configuration link.
    • Default cell. The requirement matches the runtime check in nemo_gym/base_responses_api_model.py, which raises model_call_capture_dir is required when observability_enabled=true.
    • Helper table. Checked against nemo_gym/base_responses_api_agent.py and how simple_agent uses the helpers: url_path_for_run prefixes the run's self-call to /v1/responses, and url_path_for_request carries that prefix on to the model call.
  • Pages that link to it:
    • model-server/index.mdx: card title.
    • model-server/anthropic-messages.mdx, observability/rollout-evidence.mdx, observability/harness-conformance.mdx and training-tutorials/external-agent-harnesses.mdx: link label.
    • Mid-sentence prose that uses the lowercase noun "model-call capture" is unchanged.
  • observability/metrics.mdx: an omitted outcome is now "a no-persist result written to neither, such as a kill_shaped failure: a Slurm SIGTERM, a dead Ray actor, or an out-of-memory kill". This matches evaluation/aggregate-metrics.mdx and the kill_shaped comment in nemo_gym/rollout_collection.py.
  • Not changed:
    • The versioned folders (v0.5.0 through v0.7.0). They are frozen GA snapshots, which fern/README.md says change only by deliberate back-port.
    • The H1 the bug calls optional. No model-server/ sibling page has one.
  • Tests: tests/unit_tests/test_fern_docs_links.py gets one test per item. The existing index-card test now expects the new title on latest and the shipped title on the snapshots.

Before the fix

Gym 7f16ec541 (main), with this PR's test file:

pytest tests/unit_tests/test_fern_docs_links.py -q -rf --tb=line
AssertionError: Lists differ: [] != ['observability/metrics.mdx']
AssertionError: '—' != 'required when enabled'
AssertionError: Regex didn't match: '(?m)^\\| `url_path_for_run\\(' not found in "## If you build a custom agent ...
AssertionError: Regex didn't match: '(?m)^\\| `url_path_for_request\\(' not found in ...
AssertionError: Regex didn't match: '(?m)^\\| `base_url_for_run\\(' not found in ...
AssertionError: Regex didn't match: '(?m)^\\| `rollout_id_from_run\\(' not found in ...
AssertionError: '](/main/reference/configuration)' not found in '## Configure capture\n\nThe CLI workflow above sets these top-level global-config fields: ...
AssertionError: 'title: "Model-Call Capture"' not found in '---\ntitle: "Model-call capture"\n ...
AssertionError: '<Card title="Model-Call Capture" href="/model-server/model-call-capture">' not found in ...
FAILED tests/unit_tests/test_fern_docs_links.py::TestFernDocsLinks::test_latest_docs_explain_kill_shaped_failures_in_plain_language
FAILED tests/unit_tests/test_fern_docs_links.py::TestFernDocsLinks::test_model_call_capture_config_table_gives_the_capture_dir_no_default
FAILED tests/unit_tests/test_fern_docs_links.py::TestFernDocsLinks::test_model_call_capture_links_global_config_fields_to_the_configuration_reference
FAILED tests/unit_tests/test_fern_docs_links.py::TestFernDocsLinks::test_model_call_capture_title_matches_every_link_that_names_the_page
9 failed, 19 passed, 16 subtests passed

Link labels that name the page on main, from fern/versions/latest/pages:

grep -rno '\[Model-call [Cc]apture\]([^)]*)' .
training-tutorials/external-agent-harnesses.mdx:150:[Model-call capture](/main/model-server/model-call-capture#if-you-build-a-custom-agent)
observability/rollout-evidence.mdx:39:[Model-call Capture](/main/model-server/model-call-capture)
observability/harness-conformance.mdx:141:[Model-call Capture](/main/model-server/model-call-capture)
model-server/anthropic-messages.mdx:141:[Model-call capture](/model-server/model-call-capture)

After the fix

Gym ed8420b24 (this branch), same commands:

23 passed, 21 subtests passed

The grep finds no mixed-case labels; every label that names the page is now Model-Call Capture.

Validation

  • pytest tests/unit_tests/test_fern_docs_links.py: before 9 failed / 19 passed; after 23 passed.
  • cd fern && npm run check (fern check): 0 errors, 1 warning, the same as main. The warning is "Missing redirects check skipped: not authenticated".
  • pre-commit run --files <changed files>: passed.
  • QA testcase: none links this bug. No nmfw_tests case reads the edited text.
  • Rollout evidence: N/A. This is a docs-only change with no runtime behavior.

Compatibility

Page URLs and anchors are unchanged. Only the nav label changes, from "Model-call capture" to "Model-Call Capture".

🤖 Generated with Claude Code

qiaochuz-nv and others added 2 commits October 12, 2026 16:16
Close the items from NVBug 6534797 that #2415 left open on the main
docs tree:

- Title the page "Model-Call Capture" like its sibling pages, and use
  that label on the index card and on links that name the page.
- Link "global config" to the Configuration reference.
- Show no default for model_call_capture_dir; say in the description
  that it is required when observability_enabled is true.
- List the custom-agent routing helpers in a table of when to use each.

Frozen GA snapshots (v0.5.0, v0.5.1, ...) are unchanged. Regression
tests in test_fern_docs_links.py cover each item.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: qiaochuz <[email protected]>
The metrics page described omitted rollouts as "a kill-shaped failure",
the internal jargon NVBug 6534797 asked the docs to drop. Name the
`kill_shaped` failure class and say what it covers: a Slurm SIGTERM, a
dead Ray actor, or an out-of-memory kill (as aggregate-metrics.mdx does).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: qiaochuz <[email protected]>
@qiaochuz-nv qiaochuz-nv added QA_fix Fix implemented by a QA team member docs Documentation-only updates or documentation debt area:model Model servers, inference providers, and model adapters needs-review PR is ready for code review and waiting on a reviewer complexity:low Localized change in one scope with a small, straightforward review surface labels Oct 12, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 12, 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.

@yaoyu-33 yaoyu-33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The updated helper/config descriptions match the implementation. Docs-link and focused helper tests passed.

@yaoyu-33
yaoyu-33 enabled auto-merge October 13, 2026 02:27
@qiaochuz-nv

Copy link
Copy Markdown
Contributor Author

/ok to test 3718bd9

@copy-pr-bot

copy-pr-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

/ok to test 3718bd9

@qiaochuz-nv, there was an error processing your request: E2

See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/

@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test ed8420b

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38339768994

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38340494241

Merged via the queue into main with commit 88a7c0b Oct 13, 2026
53 of 55 checks passed
@yaoyu-33
yaoyu-33 deleted the qiaochuz/nvb-6534797-model-call-capture-docs-polish branch October 13, 2026 03:26

This branch was previously deployed

1 inactive deployment
public — ed8420b2 Deployed Oct 13, 2026 by copy-pr-bot[bot] via release / finalize / notify #5137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:model Model servers, inference providers, and model adapters complexity:low Localized change in one scope with a small, straightforward review surface docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer QA_fix Fix implemented by a QA team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NVBug 6534797] Finish polish items on model-call-capture.mdx docs

2 participants