Repository navigation
[RFC #7240] aiter-kernel-plugin skill: how an agent ports a kernel library onto the interface - #7696
Conversation
…t-of-tree kernel library
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: Reviews: |
WAITING ON AUTHORPR 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 |
…orkspace contracts and the AKLR worked example
aiter/plugin/README.md(#7695) explains the provider interface to a person.This is the same material shaped for an agent doing a port: a procedure, the
rules that have actually been violated, and a way to check the result before
any hardware is involved.
The repository already carries eight skills under
.claude/skills/; none ofthem covers the provider interface.
What is in it
tests/plugin_contracts.json(the gate's own authority, so it cannot drift from what dispatch passes),
declare the entry point, one selector per contract unpacking by name, bind
runto the contract.property the interface depends on.
against the committed baseline, then ask
status()andexplain()ratherthan the kernel.
Two rules worth reading even if you skip the rest
Arity is not meaning. The candidate check compares parameter counts, so two
contracts with the same arity and different semantics both pass it. Verified
in-tree:
A kernel bound to the wrong one reads a scale tensor as a RoPE component,
silently, with every gate green.
Match hardware on
gcnArchName, never on the device name. On MI355X underrocm/atom-devwith torch 2.10.0+rocm7.2.4:A provider matching by device name loaded zero kernels and declined every call —
the interface looks broken while behaving exactly as specified.
Deliberately not merge-order dependent
The skill never says "today" or "until #7484 merges". Where the answer depends
on what is routed, it points at
tests/plugin_contracts.jsonandstatus()['routed_ops'], which answer correctly before and after that PR.Docs only; no code paths touched.
🤖 Generated with Claude Code