test(onboard): cover empty policy resume contracts#7254
Conversation
Signed-off-by: ScarabSystems <scarab.systems@yahoo.com>
📝 WalkthroughWalkthrough
ChangesPolicy preset resume guard
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
PR Review Advisor — InformationalAdvisor assessment: Informational / high confidence Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: 1 optional E2E recommendation
This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge. |
Signed-off-by: ScarabSystems <scarab.systems@yahoo.com>
|
✨ Thanks for the fix. This addresses the resume edge case where an empty policyPresets array caused the policies step to be skipped incorrectly. The regression coverage for empty recorded preset lists is a good addition. Related open issues: |
Signed-off-by: Prekshi Vyas <prekshiv@nvidia.com>
Record NVIDIA/NemoClaw#7406 as an accepted #7387 repair after upstream merge. Refresh NVIDIA/NemoClaw#7254 as accepted test coverage for #6042 while noting the issue remains open and the merged PR was test-only. Refresh NVIDIA/NemoClaw#7291/#7273 as closed without merge so the Field Lab no longer reports that PR as open. Verification: gh pr/issue views for #7254, #7406, #7291, #6042, #7387, and #7273; git diff --cached --check; public leakage scan for local/private/SDS terms.
|
Woohoo! Thank You! so pleased we could help. 🙏 |
Summary
Adds regression coverage for existing policy-resume behavior. The tests verify
that an empty preset selection is not treated as applied and that enabling Slack
adds its required preset and requests reconciliation. Production behavior is
unchanged.
Related Issue
Relates to #6042
Changes
arePolicyPresetsAppliedcontract for an empty selection.after an empty recorded selection.
cannot produce.
Type of Change
Quality Gates
output, configuration, workflow, schema, or supported behavior changes.
onboarding, inference, runner, sandbox, or messaging)
reviewer/approval link/justification: Codex Desktop reviewed the policy and
onboarding test changes. Production behavior is unchanged, and the tests use
the real policy-application and reconciliation contracts.
name, approval link, and follow-up issue:
Documentation Writer Review
no-docs-neededempty-selection and required-preset reconciliation behavior; it does not
change a command, output, configuration, workflow, schema, or supported
behavior.
DGX Station Hardware Evidence
Verification
Signed-off-by:line and every commit appears asVerifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailable —npm run check:diffpassed for47d3546c.marked not applicable above —
npx vitest run --project cli src/lib/onboard/policy-resume-selection.test.tspassed 13 tests;
npx vitest run --project integration test/onboard.test.tspassed 34 tests.
npm testfor broad runtime/test-harnesschanges;
npm run checkfor repo-wide validation/coverage changes — notapplicable to this test-only change; focused suites and
npm run check:diffpassed.
npm run docsbuilds without warnings (doc changes only)style guide
(doc changes only)
Disclosure: This PR was prepared with AI assistance under human direction and
review.
Signed-off-by: ScarabSystems scarab.systems@yahoo.com
Signed-off-by: Prekshi Vyas prekshiv@nvidia.com