Repository navigation
docs: add the recommended failure-contract path - #6227
giuliolovisotto wants to merge 2 commits into
Conversation
Signed-off-by: Giulio Lovisotto <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM. No concerns found.
I inspected all 10 changed files and checked the documented APIs, report propagation, persistence, and health behavior against source and existing regression tests. I also checked skill discovery and the affected documentation links.
This was a static review. I did not execute the examples or validation checks.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Signed-off-by: Giulio Lovisotto <[email protected]>
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/46869011062 |
Summary
Failure-handling guidance is spread across contributor workflows, making it easy to miss configurable outcome policies or lose failure evidence at a caller boundary. Document the recommended path in the existing failure-observations page and add a small
failure-contractsskill, native discovery links, and pointers from root instructions, authoring/operator skills, and the formal review rubric.This is a strong SHOULD, not a MUST or merge gate. Other implementations can reach main. Reviewers should distinguish non-blocking adoption suggestions from concrete correctness defects and assess the effects on recovery, observability, and health consumers.
The guide covers named
NgFailureEventobservations, configurable actions, upstream reports including recovered failures, saved decisions, and health accounting. It includes executable policy/serialization examples and suggested checks without adding a mandatory test suite. The existing documentation URL is retained; runtime behavior, scoring defaults, and CI requirements are unchanged.Related: #5727 covers boundary-specific policy configuration; this PR documents the existing shared APIs directly on main and has no dependency on that stack. No separate issue is needed for this focused contributor-guidance change.
Validation
uvx pre-commit run --all-files— passed.npx -y fern-api@latest check --warnings— zero errors; redirect checking skipped because Fern authentication is unavailable.git diff --check origin/main— passed.Updated against current
main: resolved the root-guidance, evaluation-skill redirect, and failure-documentation conflicts while preserving the newer upstream content. The walkthrough also reflects declared namespaced policy kinds and scored-despite-failure observations. The checks above were rerun on the resolved tree.