Skip to content

fix(tier3): reject failed skill lookup activation evidence - #590

Merged
chrisknvidia merged 9 commits into
mainfrom
fix/christopherk/activation-failed-skill-lookup
Nov 15, 2026
Merged

chrisknvidia merged 9 commits into
mainfrom
fix/christopherk/activation-failed-skill-lookup

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Reject attributable failed native skill lookups as activation evidence, including when runtimes omit explicit error metadata or label the tool invocation itself successful. Apply the rule in shared trajectory normalization so host and staged verifiers agree across agents. Successful skill calls and ordinary skill content remain supported.

BEFORE AFTER
Skill "demo" not found without error metadata, or with success metadata, counts as successful activation. Lookup failure is normalized as an error and excluded from activation, routing and workflow evidence.
Successful or unobserved native skill calls are accepted. Existing behavior is preserved.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Focused checks from the checkout (PYTHONPATH=src):

~/qual/wt-pr581/.venv/bin/python -m ruff check src/skillevaluator/tier3/eval_core/codex_tool_call_normalizer.py tests/tier3/test_failed_skill_reads.py
All checks passed!
~/qual/wt-pr581/.venv/bin/python -m ruff format --check src/skillevaluator/tier3/eval_core/codex_tool_call_normalizer.py tests/tier3/test_failed_skill_reads.py
2 files already formatted
~/qual/wt-pr581/.venv/bin/python -m pytest tests/test_nemo_gym_backend.py tests/test_nemo_gym_main_integration.py tests/cli/test_nemo_gym_autopilot_preflight.py tests/tier3/test_failed_skill_reads.py tests/tier3/test_skill_activation_scoring.py tests/tier3/test_codex_tool_call_normalization.py tests/tier3/test_atif_message_content.py tests/tier3/test_shared_atif_staging.py -q
1167 passed, 1 skipped, 6 warnings in 74.17s (0:01:14)

Full-suite equivalent to make test, in a clean worktree at this commit (PYTHONPATH set to its src):

~/qual/wt-pr581/.venv/bin/python -m pytest -q -n 4 -p no:cacheprovider
50 failed, 33391 passed, 89 skipped, 226 warnings in 232.45s (0:03:52)

The full suite is not green, and the requested failure-subset condition is not met. All 48 supplied baseline failures recurred, plus:

tests/test_harbor_input_staging.py::TestLoadMcpServersSafety::test_same_inode_mcp_rewrite_with_restored_mtime_is_rejected
E   Failed: DID NOT RAISE ValueError
tests/test_results_location_legacy_compatibility.py::test_rejects_same_inode_summary_rewrite_with_restored_mtime
E   AssertionError: assert not True

An earlier clean-worktree run before adding the explicit-success-metadata case had exactly the 48 baseline failures. Both additional filesystem-mutation tests and their implementation paths are unchanged by this patch. The same failures occurred in the independent doctor branch; the MCP failure also occurred in the OpenCode and startup-cleanup branches. A focused unmodified-main MCP countercheck passed. No root cause for the full-suite-only failures was established, and no unrelated fix was made to suppress them.

Live evidence replay: retained OpenCode trajectory originally produced by Gym built from NVIDIA-NeMo/Gym@792fa142 in a Docker sandbox. Replayed through get_skill_tool_calls, extract_tool_calls_as_dicts and check_activation on this branch. Before: activation score 1.0. After: extracted skill names [], passed: false, score 0.0. No new inference was necessary.

Local evidence: ~/qual/artifacts/rerun-activation-failed-skill-lookup.replay-final.txt, .tests-final.txt, .full-suite-final.txt. Earlier results remain in .replay.txt, .tests.txt, .full-suite-clean.txt.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

Devin Review

Recognize attributable skill lookup failures when runtime trajectories omit explicit error metadata, preserving successful and unobserved calls.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Treat an explicit skill-not-found response as unsuccessful even when the runtime labels the tool invocation itself successful.

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

@devin-ai-integration devin-ai-integration Bot 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.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

Devin Review found 1 finding. Devin automatically fixed it.

Fixed by Devin (1)
  • Unrelated lookup failures cancel successful activation — Reproduced: unscoped unrelated failure removed activation credit; lookup-failure text now considered only for call-attributable results, with regressions.

View findings in Devin Review · Follow Devin's work

Devin Review

Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>

@devin-ai-integration devin-ai-integration Bot 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.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

Devin Review found 1 finding. Devin did not fix them (the PR is muted); it is left for you to triage below.

View findings in Devin Review · Follow Devin's work

Devin Review

@chrisknvidia
chrisknvidia merged commit dd87206 into main Nov 15, 2026
27 checks passed
@chrisknvidia
chrisknvidia deleted the fix/christopherk/activation-failed-skill-lookup branch November 15, 2026 05:20

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant