Skip to content

fix: evaluate bundles with native-only components - #940

Merged
rng1995 merged 11 commits into
NVIDIA:mainfrom
Afloat16:fix/native-only-runtime-components-20261130b
Dec 2, 2026
Merged

rng1995 merged 11 commits into
NVIDIA:mainfrom
Afloat16:fix/native-only-runtime-components-20261130b

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Current review follow-up

Source: c14d9ca0e6984526656d2d5ce01f55bf14c0f291; integrated main: fcded5a8c31f82f6b8dc24de74197a9f8322fa65. Source tree: 9c98dc13bdf5c81588c55b8726ac5da462318fd5. GitHub reports no merge conflicts.

The native refusal retains the package's incomplete reasons before the per-agent branch can raise. The bundle guide now covers native-only hooks, LSP servers and supported settings, including per-agent native refusal/auto fallback and configuration failures during staging. The public-CLI regression covers an empty manifest plus an unstaged rule in wrapper, auto and native modes; it checks the complete reference and reason, refusal before staging or engine invocation, and no results directory.

Merged the current report, bundle-validation and harness-manifest updates from main. The contribution's source and test blobs are unchanged from the preceding integration; all upstream changelog entries and the complete published history from 1.3.1 onward are preserved. Each merge carries the required DCO sign-off.

Validation on the current source

The repository's original full CI suites on Python 3.12, 3.13 and 3.14 each completed with 47,208 passed and 344 skipped, using the locked full extras and default test command. The tested merge 07e637a714ea353ff29d4120eb7590465e075bab has exactly this source tree, 9c98dc13bdf5c81588c55b8726ac5da462318fd5.

Windows Tier 2 completed with 5,601 passed and 189 skipped. All 14 executed jobs in this CI workflow passed, including repository lint, packaging and the compatibility checks. The macOS contract/progress job was cancelled without running steps, and the macOS Tier 2 job was skipped; the overall CI workflow is therefore not passing.

DCO and the Tier 1, Tier 2 and Tier 3 verification workflows passed. Security completed Gitleaks and CodeQL successfully, but Dependency Review failed because that feature is unsupported on this fork. The NVSkills requirement gate passed with its actual request job skipped; this is not a completed external NVSkills evaluation.

The seven current-head upstream workflows still require maintainer approval. Earlier results below retain their recorded revision scope.

Previous integration update (main 108fab8)

Source: d903257b7aa2042c25ac85bf45e0f0aab22a715d; integrated main: 108fab86c5c0a8e1548289c036f0977a8c934bf3 (1.3.1 release preparation).

Resolved the CHANGELOG conflict by preserving the complete published 1.3.1 history and keeping this PR's entry under Unreleased. All PR-specific source and regression-test blobs are identical to previous head b936d088d260d35c90e93ca0bf6d71b01c27b39b. The merge preserves both parents and carries the required DCO sign-off.

Validation for this merge: whitespace checks, released-history preservation, and exact source/test blob comparisons passed. GitHub now reports the PR as conflict-free. Current-source integration checks await maintainer workflow approval; the earlier test results below retain their original revision scope.

Previous integration update (main ad4a12f)

Source: b936d088d260d35c90e93ca0bf6d71b01c27b39b; integrated main: ad4a12f0e17fe42e8f6839e41b6799ab8990bcf3. Resolved the CHANGELOG conflicts after the 1.3.0 release and stable-CI update. The released history and new upstream entry are preserved, with this PR’s change under Unreleased. The PR-specific source and regression-test files are unchanged from the previous head.

Focused validation: 88 preparation and public-CLI tests passed, on tree 418034d0277cf46c386d588e77855d74617e71df before the final CI-only main update. That final update changes only CI files and CHANGELOG; the tested runtime and regression files are unchanged. The updated CI modules passed 240 tests on the final #905 integration tree, and those CI blobs are identical in all 11 refreshed branches. Repository Ruff and whitespace checks passed.

The 88 tests cover preparation and the public CLI. The broader native-offline provenance module was not rerun in this update.

Current-head upstream workflows require maintainer approval. Earlier results below apply to their recorded revisions.

Original contribution and validation before this integration update

Summary

Bundles with native-only components can contain hooks, LSP servers or supported settings even when they have no portable skill, rule, MCP server or text component. Resolve the existing loading decisions before admission and evaluate those packages when the selected native adapter supports a present component.

The support check runs per agent. An explicit native request is refused before writing results or staging when any selected agent cannot load a present component. Auto mode records that agent's wrapper fallback and its reason. Existing runnable packages retain their prior loading behavior. A completely unrunnable plan reports the present component types, requested loading mode and each agent's effective mode.

Review follow-up

  • Addressed mixed Claude Code/Codex plans in both agent orders, with native refusal and recorded auto fallback.
  • Restored actionable refusal details for unsupported and empty packages.
  • Applied Ruff formatting to the long test parameter.
  • Merged main d218ef806ab505e1a4754499af6a56e732812627, retaining both CHANGELOG entries.

Current head: 2485ab1a8bbcc57a239382d478412c9ae916762a.

Size

Relative to current main: src +14 net lines; tests +100 net lines, two new test functions, no new source or test module. The existing preparation parameter table and CLI test were extended. Size guard G1–G5 passed.

Verification on this head

  • 128/128 tests passed across bundle preparation, execution, the public bundle evaluation command and loading decisions.
  • The 44-case native-only matrix covers hook, LSP, supported/unsupported settings, mixed-agent order, native/auto/wrapper modes, local mode, refusal before evaluation/output creation and recorded fallback reasons. With the same final table and unchanged pre-follow-up production source, 38 cases fail and 6 pass.
  • The expanded selection including the native offline module recorded 128 passed / 9 failed. All nine offline cases stop at this workspace's provenance-key containment check. An unchanged checkout of fcdf952 reproduces the same nine failures.
  • make lint, make build (wheel and sdist), changed-file ruff format --check and git diff --check passed.
  • The seven new upstream workflows await maintainer approval. The full repository suite and live model/Docker/LSP execution are not claimed as passing for this head.

Original bundle reproductions and verification artifacts and previous upstream-refresh evidence apply to their documented revisions.

  • I am familiar with the Contributing Guidelines
  • Added focused tests and updated CHANGELOG.md
  • Ran make lint and make build
  • Completed a passing full make test
  • Did not add credentials, private datasets, or proprietary benchmark content

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Keep both CHANGELOG entries; preserve the original contribution's source and tests.

Signed-off-by: Afloat <ShuffleMonkey@163.com>

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reproduced the rejection on main with hook-only, LSP-only and settings-only packages and confirmed the fix admits them for native and auto Claude Code in Docker mode, while wrapper mode, local mode, an adapter that stages none of the present types, unsupported-only settings, an empty plugin and a hook carrying a permission-bypass flag are all still refused before anything is written. Runnable packages behave exactly as before across every load, agent and environment combination I tried. The new unit and offline tests fail on main's source and pass at head, and the three touched test files pass at head.

Two things worth a look, neither blocking: admission is decided per run rather than per agent, so a mixed agent list runs arms that load nothing, and the refusal message now carries less information than the one it replaces. Details inline, plus a formatting nit in the new test.

The branch conflicts with main in CHANGELOG.md only (both add to Unreleased > Fixed); the source merges cleanly with main and with #938, so a rebase should be quick. One side effect of resolving the plan first: --plugin-load native in local mode, or native/auto without -a, now reports the native or agent problem instead of the empty-package one. That reads as the better message to me; just noting it is a change.

I also confirmed the admission gate terms are each pinned by tests (an always-admit mutant fails 18 cases, dropping the component-type term fails 6), and that the pre-admission helpers are pure lookups with no filesystem, network or subprocess work for refused packages.

Comment thread tests/tier3/test_plugin_prepare.py Resolved
Reject unsupported native plans per agent and record auto fallback reasons with component and loading-mode diagnostics. Merge current main while retaining both changelog entries.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
@Afloat16

Copy link
Copy Markdown
Contributor Author

Addressed all three points in 2485ab1a8bbc:

  • Native-only packages are checked per agent. native refuses an unsupported Codex plan before staging or result writes; auto retains Claude Code's native plan and records Codex's wrapper fallback with the unsupported-component reason. Both agent orders are covered.
  • Refusals name the present component types, requested mode and effective agent modes.
  • Applied ruff format to the test parameter and merged current main, retaining both CHANGELOG entries.

128/128 related tests pass, along with lint, wheel/sdist build, formatting and size guard G1–G5. The new 44-case table gives 38 failures / 6 passes against unchanged pre-follow-up production source. The nine native offline cases encounter this workspace's provenance-key containment guard; every failure reproduces on the previous head. The PR body separates current results from earlier validation.

Could you approve the seven new workflows and take another look at this revision?

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[SkillEvaluator Review]

Thanks @Afloat16 for this contribution.

Value and readiness: Admits native-only hook, LSP and supported-settings packages when the selected adapter can load them, with per-agent native refusal or recorded auto fallback. The current-main counterfactual reproduces the rejection. No confirmed findings remain; ready for final review by the maintainers and PIC once current-head CI is green.
Prior findings: 3 of 3 prior concerns verified fixed: mixed-agent admission, actionable refusal details, and formatting. Their threads were already resolved.
Material findings: none; all earlier findings verified fixed.
PIC tradeoffs: Auto mode preserves its existing recorded wrapper fallback for agents that cannot natively load a present component.
Verification and gaps: Read the full delta and native preparation/loading paths, checked empty/unsupported inputs, both agent orders, refusal before staging/output, security guard preservation, result truthfulness, docs, CHANGELOG and DCO. Touched preparation, execution, public CLI and native offline suites: 115 passed; loading-decision and CLI-loading suites: 28 passed. All 9 native offline cases also passed with main’s Harbor 0.25 pin. New matrix reproduced the old failure against main source. Repository-wide Ruff and changed-file formatting passed. Static execution-safety triage passed and fork workflows were authorized. CI is pending. No live agent/provider/container run or full repository test run was performed.

Reviewed head: 2485ab1a8bbcc57a239382d478412c9ae916762a

@rng1995
rng1995 enabled auto-merge (squash) November 30, 2026 15:41
Retain the pull request contribution and current upstream changes. Resolve the CHANGELOG conflict by preserving both sets of entries.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
auto-merge was automatically disabled November 30, 2026 16:45

Head branch was pushed to by a user without write access

@rng1995
rng1995 enabled auto-merge (squash) November 30, 2026 17:58

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked 2485ab1 on top of the main merge: the native-only decision is now made per agent, with a refusal or wrapper fallback for an agent whose adapter cannot load any of the package's component types, and the refusal message names the present types, loading mode and per-agent decisions. The prepare and evaluate-plugin suites pass at this head with Harbor 0.27 (88). Nothing open from my side.

@rng1995 rng1995 changed the title fix: evaluate native-only plugin components fix: evaluate bundles with native-only components Nov 30, 2026
Preserve the published 1.3.0 history and the new stable-CI release note,
and place this pull request's change under Unreleased. Keep the reviewed
source and test changes.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
auto-merge was automatically disabled December 1, 2026 02:44

Head branch was pushed to by a user without write access

@Afloat16

Afloat16 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Update after the 1.3.1 release preparation:

I resolved the CHANGELOG conflicts in #905, #907, #908, #909, #910, #911, #913, #914, #916, #922 and #940 by merging main 108fab86c5c0a8e1548289c036f0977a8c934bf3. The complete published 1.3.1 history is preserved, with each PR's change under Unreleased. All PR-specific source and regression-test blobs match the previous reviewed heads; the merge commits preserve both parents and include the required DCO sign-off.

For this merge, whitespace checks, released-history preservation and exact source/test blob comparisons passed on all 11 branches. GitHub now reports all 11 as conflict-free. Current-head integration checks still require maintainer workflow approval; earlier test results retain their recorded revision scope.

Please approve the workflows for these current heads and proceed with merging when the required checks pass. For example, #940's current CI run is 46599510593, on d903257b7aa2042c25ac85bf45e0f0aab22a715d.

#906 remains unchanged with its successful checks and approval. #921 also remains unchanged and still needs DCO and Gitleaks results on 5c74ef88976814d34ed295b72dda87760f22fe5c.

Keep the published 1.3.1 release history and this pull request's change
under Unreleased. The reviewed source and test changes are unchanged.

Signed-off-by: Afloat <ShuffleMonkey@163.com>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[SkillEvaluator Review]

Thanks @Afloat16 for this contribution.

Value and readiness: Real value: hook-only, LSP-only and supported-settings-only packages were refused before any trial on main, and this admits them when the selected adapter can load them. The native decision is now per agent: native refuses an agent whose adapter stages none of the package's component types, auto falls back to the wrapper for that agent and records the reason. Verified by running the PR's tests on the head (97 passed; the same new tests fail 47 times against current main source, so they prove the change) and by reproducing refuse and admit for opencode, pi and claude-code. Not ready yet: one P2 (docs) and one P3 below, plus a merge conflict. Then ready for maintainers and PIC.
Prior findings: The three earlier threads (all already resolved) hold on this head: per-agent admission is FIXED, the ruff format nit is FIXED, and the refusal-message thread is PARTIAL (finding 2: the native per-agent refusal drops the recorded incomplete reasons). Since my last review the PR itself changed only its CHANGELOG entry (source and tests are identical).
Material findings: 2: [P2] docs/bundle-evaluation.mdx:635 still says a package with no skill, rule, MCP server or text component "is refused before any trial" (anchored on plugin_execution.py:465, since the docs file is not in the diff); [P3] plugin_execution.py:466 native refusal drops incomplete_reasons.
Merge conflict: CHANGELOG.md conflicts with main (#947 and #948 each added a bullet under ## Unreleased); tests/cli/test_tier3_evaluate_plugin.py auto-merges. Maintainer edits are off for this fork, so please merge main into your branch (with git commit -s). Keep main's two ## Unreleased bullets first and put this PR's bullet after them, still under ## Unreleased and above ## 1.3.1 - 2026-11-30. A plain union merge leaves your ### Fixed heading at the top of ## Unreleased, which would relabel main's two report-change bullets as fixes. Nothing from ## 1.3.1 down should change. I merged main locally on top of this head: the PR's three test files pass (110 passed) and ruff check . is clean, so the conflict is the only merge problem I found. After the merge, also update the docs as in finding 1.
PIC tradeoffs: (1) With auto and a mixed agent list, for example claude-code,codex on a hook-only bundle, codex falls back to the wrapper, which carries nothing from this package: its with-arm equals its baseline at full trial cost, and the reason is only recorded in load_decisions. (2) Error ordering changed: native in local mode, or without -a, now reports the native or agent problem before the empty-package one. Both were accepted in the earlier review.
Verification and gaps: Read the full diff and the interdiff since 2485ab1; nothing under .github/, scripts, conftest.py, pyproject, Makefile or Dockerfile. CI on this head is green (all seven workflow runs), but it ran before #906, #947 and #948 landed on main, so it does not cover the merged state; my local merged-tree run above does. Not run: live agent or provider runs, the full repository suite, Windows or macOS.

Reviewed head: d903257b7aa2042c25ac85bf45e0f0aab22a715d

Merge current main while keeping its Unreleased entries and published history. Retain incomplete-package reasons in native per-agent refusals, document native-only admission and fallback, and extend the existing CLI refusal regression across loading modes.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Include the required author email so all three loading-mode cases reach the admission check. Assert the unresolved reference classification produced by the public CLI's schema validation, preserving the engine, staging, and output guards.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Preserve current Unreleased entries and release history, retaining the contribution and its regression coverage.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Preserve the new bundle report and saved-run discovery behavior while retaining this change and its regression coverage. Keep both unreleased changelog entries.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Signed-off-by: Afloat <ShuffleMonkey@163.com>
@Afloat16
Afloat16 requested a review from rng1995 December 1, 2026 19:22
@rng1995
rng1995 merged commit 7c00127 into NVIDIA:main Dec 2, 2026
26 checks passed
@rng1995 rng1995 mentioned this pull request Dec 2, 2026
5 tasks
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.

3 participants