Skip to content

docs: add the recommended failure-contract path - #6227

Open
giuliolovisotto wants to merge 2 commits into
mainfrom
glovisotto/failure-contracts-golden-path
Open

giuliolovisotto wants to merge 2 commits into
mainfrom
glovisotto/failure-contracts-golden-path

Conversation

@giuliolovisotto

@giuliolovisotto giuliolovisotto commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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-contracts skill, 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 NgFailureEvent observations, 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.
  • Existing Fern documentation tests — 30 passed.
  • Both Python examples executed against this checkout — passed.
  • Skill validator, both native discovery links, 71 repository link/skill targets, and the existing formal-review-rubric check — passed.
  • git diff --check origin/main — passed.
  • Model rollout evidence: N/A, documentation and agent guidance only. No runtime or benchmark-result changes.

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.

@giuliolovisotto giuliolovisotto added docs Documentation-only updates or documentation debt area:docs Generic documentation without another dominant domain needs-review PR is ready for code review and waiting on a reviewer labels Nov 16, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 16, 2026 15:22
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

@svcnvidia-nemo-ci svcnvidia-nemo-ci 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.

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.

@yaoyu-33
yaoyu-33 requested review from Glorf and ananthsub November 16, 2026 15:34
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Nov 17, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the risk:low Autobot PR risk: low label Dec 1, 2026
@giuliolovisotto
giuliolovisotto added this pull request to the merge queue Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Generic documentation without another dominant domain docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer risk:low Autobot PR risk: low sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants