Skip to navigation

nemo_gym.harness_capabilities.cli

View as Markdown

Standalone command: python -m nemo_gym.harness_capabilities inspect —bundle FILE.

Module Contents

Functions

NameDescription
_json-
_reject_constant-
digest_file-
inspect_bundleWrite an immutable content-addressed report set after a complete read.
inspect_matrixCheck each harness bundle and publish a reproducible harness × TE matrix.
json_rowsRead JSONL strictly; malformed/truncated rows are checker errors.
main-
run_inspectionInspect retained rollouts and print the report location; return 0, 1, or 2.

API

nemo_gym.harness_capabilities.cli._json(
value: object
) -> str
nemo_gym.harness_capabilities.cli._reject_constant(
value: str
) -> None
nemo_gym.harness_capabilities.cli.digest_file(
path: pathlib.Path
) -> str
nemo_gym.harness_capabilities.cli.inspect_bundle(
bundle: pathlib.Path,
output: pathlib.Path,
profile: str = PROFILE,
capture_dir: pathlib.Path | None = None
) -> tuple[pathlib.Path, dict]

Write an immutable content-addressed report set after a complete read.

A checker error never replaces an earlier report or leaves a current-looking summary. Files are hashed before and after reading to detect changing input.

nemo_gym.harness_capabilities.cli.inspect_matrix(
harnesses: dict[str, pathlib.Path],
output: pathlib.Path,
) -> tuple[pathlib.Path, dict]

Check each harness bundle and publish a reproducible harness × TE matrix.

nemo_gym.harness_capabilities.cli.json_rows(
path: pathlib.Path
) -> typing.Iterator[tuple[int, dict]]

Read JSONL strictly; malformed/truncated rows are checker errors.

nemo_gym.harness_capabilities.cli.main(
argv: list[str] | None = None
) -> int
nemo_gym.harness_capabilities.cli.run_inspection(
bundle: pathlib.Path,
output: pathlib.Path,
profile: str = PROFILE,
capture_dir: pathlib.Path | None = None,
) -> int

Inspect retained rollouts and print the report location; return 0, 1, or 2.