Repository navigation
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
NOT READY FOR HUMAN REVIEWPR Self-ReviewRevision Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision. Questions to answer in the PR description
Edit the Missing or invalid answers
Shadow mode reports what would block but keeps the status successful. Set |
Installing a provider never makes it the default: dispatch now serves a provider only when it is explicitly enabled (AITER_PLUGIN_ENABLE) or forced (AITER_PLUGIN_FORCE). This makes the ownership boundary concrete: AITER owns the op contract and execution rules, providers own their kernels and qualification evidence, frameworks and users own enablement. - document the ownership boundary in the module docstring - isolate invalid candidates returned by select(): fall back to native with reason "invalid-candidate" instead of raising AttributeError - document that entry points must target an instance or zero-arg factory - tests: installed-but-not-enabled is inert (select never called); non-candidate select() results fall back to native Co-Authored-By: Claude Code <[email protected]>
1797490 to
94ee951
Compare
|
Superseded by #7465, which contains both of these commits as its first two Keeping this open costs more than it saves: anyone arriving at the design now The series, split by who reviews it: #7465 the interface, #7466 its tests as a |
Summary
aiter.plugininterface for lazily discovered, out-of-tree kernel providersrun()starts, errors propagateAITER_PLUGIN_ENABLE, default deny)Prototype scope
This is an interface-validation spike, not a merge-ready production rollout:
Ownership boundary
run()), and observable provenance.KernelCandidate.qualificationis self-reported provenance, not an AITER certification.AITER_PLUGIN_ENABLE) or forced (AITER_PLUGIN_FORCE).A provider execution failure is not transparently retried through native AITER because that could repeat side effects and hide a broken kernel.
Validation
pytest -q tests/test_plugin.py— 12 passedruff check aiter/plugin/__init__.py tests/test_plugin.py setup.pyblack --check aiter/plugin/__init__.py tests/test_plugin.pygit diff --checkReview focus
installed≠enabled) the right default?run()rule acceptable?Related
#7240 — RFC: Versioned Kernel Provider Interface for AITER. The umbrella RFC for this work: ownership model, semantic op contracts, failure boundary, and the two-op initial rollout.
RFC: decouple backend names from public op definitions (start with MoE) #7150 — RFC: decouple backend names from public op definitions. The provider interface makes op contracts backend-neutral; that RFC tracks removing backend suffixes from public op names so the rest of the op surface can route the same way.
Author self-review
Reviewed revision
1797490acb66e654f667a74369a15638ac2903c6Behavior and intent
Adds an experimental
aiter.plugininterface for lazily discovered, out-of-tree kernel providers. AITER keeps ownership of op identity, public signatures, and execution rules (isolation, fallback boundary, no fallback oncerun()starts); providers own their kernels and self-reported qualification evidence; frameworks and users own enablement — installing a provider never makes it the default (AITER_PLUGIN_ENABLEis default-deny). No production op is routed and no existing caller's behavior changes.Validation and unverified scope
pytest -q tests/test_plugin.py— 12 passed;ruff checkandblack --checkclean on the new files;git diff --checkclean; required CI (Black, Ruff, repository dependency, Aiter Test Gate) green. Unverified: no GPU execution in this PR (the plugin tests use CPU-side fake providers), real entry-point discovery with multiple installed providers, and any production op routing — those land in the follow-up PR.PR-specific question
What changes in dependency, cache or compilation behavior, and how did you verify both a clean build and an existing-cache path? The diff touches no compilation path:
setup.pygains one declarative entry-point group string (aiter.kernel_providers),aiter/plugin/__init__.pyis a new standalone module that nothing inaiterimports yet, andtests/test_plugin.pyis test-only. No dependency, build step, or JIT cache key changes. Unverified: a from-scratch wheel build (wheel jobs skip on fork PRs).Changed op tests
None — this PR adds
tests/test_plugin.py(interface unit tests with fake providers); noop_tests/file changes.🤖 Generated with Claude Code