/tt-review-skills:llk-race-audit-reviewfrom Tenstorrent Review Skills
Reviews tt-llk kernel changes for nine intra-kernel race hazard classes plus cross-invocation stale hardware config. Use when reviewing changes under tt_metal/tt-llk.
Ships in Tenstorrent Review Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Assumes tt-review-core. Nine hazard classes plus the seams between them. Everything here is a
race: it passes intermittently, so "the tests pass" is not evidence. Nine are intra-kernel; a tenth
is cross-invocation and is where "correct in isolation" stops meaning correct.
| Class | Hazard |
|---|---|
cfg-word-overlap | Two writers touching the same config word, or a read-modify-write racing a concurrent update |
dataflow-cb-sync | Producer/consumer CB handshake incomplete or reordered |
instruction-latency | A dependent instruction issued before its producer's result is architecturally available |
mailbox-sync | Mailbox write/read without the ordering that makes the value observable |
mmio-race | RISC-to-Tensix MMIO ordering — writes not ordered against the consumer that depends on them |
noc-sync | NoC transfer not barriered before its result is used |
reconfig-stall | Reconfiguration issued while the affected unit is still busy |
semaphore-handshake | Signal/wait imbalance, missing reset, or a wait on a stale value |
srcreg-bank-sync | Source register bank swapped while a consumer still reads the previous bank |
The nine above are intra-kernel. A tenth hazard is cross-invocation: hardware config state is
never reset between kernel calls, so an op whose _init_ / _reconfig_ / _uninit_ path does not
fully re-establish what it depends on inherits whatever the previous op left behind.
Read references/cross-invocation-state.md. It is separated from the nine because it defeats their
usual evidence: the op is correct in isolation and in its own unit test, and wrong only when
preceded by something else in a fused sequence or on a cache-warmed second call.
This is what makes a combined sweep a genuine superset rather than a lossy concatenation. It is non-negotiable.
That last rule is the one that gets violated in practice, and it is the reason a bounded sweep must never read as exhaustive.
Every hardware claim must be grounded in a source available to the review. When it cannot be,
abstain: state the unresolved question, downgrade one severity step, and list it under
Unresolved. Do not infer hardware behaviour from surrounding code.
All nine classes apply on Wormhole, Blackhole and Quasar — but verdicts do not carry across architectures, and two seams resolve differently on Quasar.
Read references/architecture-scope.md before auditing a Quasar-targeted change. The short version:
the MMIO-ordering seam resolves differently there, instruction-latency is architecture-divergent,
and the recall tool pre-clears some Quasar writes out of its findings while the underlying
tracking has exceptions — so a Quasar MMIO seam must be discharged against the actual consumer,
never against the tool's silence.
That last one is a false-negative generator. Nothing appears in the report at all, which is why it needs stating rather than leaving to the tool.
Races are MUST-FIX when the hazard is demonstrated at a site, SHOULD-FIX when the hazard class
applies and the discharging invariant is unstated, CONSIDER when the site is latent — reachable
only under a configuration the change does not currently produce. Latent is not safe; it is safe
for now, and it should say so.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/llk-perf-audit-reviewStatic performance review of Tensix compute kernels — wasted cycles, redundant register and memory traffic, loop-invariant work, and cheaper numerically-equivalent instruction sequences. Gated by a provenance lens (sfpi-compiled versus hand-written) and a semantic-equivalence test. Use when reviewing SFPU or Tensix kernel changes under tt_metal/tt-llk./tt-comment-hygiene-reviewReviews comments and documentation surface — iteration-journey comments that describe how the code got here, unsurfaced tribal knowledge, magic tile and grid values, and ttnn op docstrings. Cheap to run alongside any other review. Use on any Tenstorrent diff./npx claudepluginhub tenstorrent/skills --plugin tt-review-skillsOther plugins' skills for the same job