audit: vllm-tt-plugin pin audit script and skill (#36) #88

Merged
Grok merged 2 commits from agy/issue-36 into master 2026-09-26 00:03:47 +02:00
Owner

Adds scripts/audit-vllm-plugin-pin.py and .claude/skills/vllm-plugin-audit/SKILL.md: a
repeatable audit of upstream tenstorrent/vllm-tt-plugin commits against our pins in
flake.lock and docker/Dockerfile.vllm-tt-src, categorising what lies between them
([SPEC_DECODE], [PREFIX_CACHING], decode interleaving) and checking the #126-vs-#122 warmup
revert.

The doc stays deleted. The branch modified docs/UPSTREAM-WATCH-PLUGIN-METAL.md, which PR
#68 removed, so merging master in would have brought it back. Stopping docs/ from regrowing is
the point of that overhaul, so the #36 findings are rehomed into the skill — next to the tool
that regenerates them — and the doc is re-deleted.

Standing findings, now in the skill. Both our pins predate PR #122, so warmup was always
prefill-first and bumping through #126 is a net no-op; #126's stated tt-metal#55343
prerequisite exists only to stage decode inputs while reverting #122 and does not bind us.
PR #119 (decode interleaving) is inert here: the Qwen adapter sets
supports_chunked_prefill: False unless prefix caching is on, prefix caching pins
--max-num-batched-tokens to max_model_len, and the model runs its own 2048-token chunk loop
inside one engine step — so _prefill_run never interleaves. Recommendation: do not bump for
#36 alone
(no effect, and it invalidates the equivalence references prior records rest on);
schedule it with MTP phase 4 (#63), which actually needs spec_decode.py and
spec_accept.py. Pins move as a set with tt-metal.

Running the script while rehoming showed the audit is already stale in one place:
flake.lock is now 0 commits behind upstream HEAD (35090660), not 34 — only the Dockerfile
pin is still 10 behind. That is recorded at the top of the section, and the whole block is framed
as pin-relative history rather than current state. It is a code-and-history read, not a
measurement, so under D-2026-09-25-overhaul it closes nothing and gets no LEDGER entry — which
is exactly why the script, not the prose, is the durable artifact.

Verified after merging master in: docs/ still 11 files, no root CLAUDE.md, AGENTS.md still
the lean rewrite, QWEN36_PREFILLED_SLOTS_FIX still in qwen36_vllm.py, and the only files
added versus master are the script and the skill.

Refs #36.

🤖 Generated with Claude Code

Adds `scripts/audit-vllm-plugin-pin.py` and `.claude/skills/vllm-plugin-audit/SKILL.md`: a repeatable audit of upstream `tenstorrent/vllm-tt-plugin` commits against our pins in `flake.lock` and `docker/Dockerfile.vllm-tt-src`, categorising what lies between them (`[SPEC_DECODE]`, `[PREFIX_CACHING]`, decode interleaving) and checking the #126-vs-#122 warmup revert. **The doc stays deleted.** The branch modified `docs/UPSTREAM-WATCH-PLUGIN-METAL.md`, which PR #68 removed, so merging master in would have brought it back. Stopping `docs/` from regrowing is the point of that overhaul, so the #36 findings are rehomed into the skill — next to the tool that regenerates them — and the doc is re-deleted. **Standing findings, now in the skill.** Both our pins predate PR #122, so warmup was always prefill-first and bumping through #126 is a **net no-op**; #126's stated `tt-metal#55343` prerequisite exists only to stage decode inputs while reverting #122 and does not bind us. PR #119 (decode interleaving) is **inert here**: the Qwen adapter sets `supports_chunked_prefill: False` unless prefix caching is on, prefix caching pins `--max-num-batched-tokens` to `max_model_len`, and the model runs its own 2048-token chunk loop inside one engine step — so `_prefill_run` never interleaves. Recommendation: **do not bump for #36 alone** (no effect, and it invalidates the equivalence references prior records rest on); **schedule it with MTP phase 4 (#63)**, which actually needs `spec_decode.py` and `spec_accept.py`. Pins move as a set with tt-metal. **Running the script while rehoming showed the audit is already stale in one place:** `flake.lock` is now **0 commits behind** upstream HEAD (`35090660`), not 34 — only the Dockerfile pin is still 10 behind. That is recorded at the top of the section, and the whole block is framed as pin-relative history rather than current state. It is a code-and-history read, not a measurement, so under `D-2026-09-25-overhaul` it closes nothing and gets no LEDGER entry — which is exactly why the script, not the prose, is the durable artifact. Verified after merging master in: `docs/` still 11 files, no root `CLAUDE.md`, `AGENTS.md` still the lean rewrite, `QWEN36_PREFILLED_SLOTS_FIX` still in `qwen36_vllm.py`, and the only files added versus master are the script and the skill. Refs #36. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Verified that #126 is a net no-op for our tree: it reverts #122 back to
prefill-first Phase 2 warmup, but our pins (flake.lock at c127c17d and
docker/Dockerfile.vllm-tt-src at bef89e4) both predate #122 and already
executed prefill-first. #119 decode interleaving cannot engage because
our Qwen3.8 serving config never splits prompts across steps (chunked
prefill disabled by default; --max-num-batched-tokens pinned to context
length under prefix caching; 2048-token chunk loop inside prefill_traced_chunked).
Identified that plugin commits after our pin include foundational spec decode
infrastructure (PR #120 spec_decode.py, PR #118 block extent handling, PR #128
spec_accept.py) relevant for ThinkingCap MTP (#63). Added audit script and skill.

Co-Authored-By: Gemini 3.8 Flash via agy <noreply@google.com>
merge master into agy/issue-36; rehome the upstream-watch audit into the skill
All checks were successful
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 24s
tt-stack-ci / Report upstream drift (pull_request) Successful in 5s
06e3258638
docs/UPSTREAM-WATCH-PLUGIN-METAL.md was deleted by PR #68 and this branch modified it, so
the merge would have brought it back. The whole point of that overhaul was to stop docs/
regrowing, so the #36 findings move into .claude/skills/vllm-plugin-audit/SKILL.md, where
the tool that produces them already lives, and the doc stays deleted.

Running the script while rehoming showed the audit is already stale in one place:
flake.lock is now 0 commits behind upstream HEAD, not 34. That is recorded at the top of
the section, and the whole block is framed as pin-relative history rather than current
state -- which is the reason to keep the script and not the prose.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Grok merged commit 78d1ca455e into master 2026-09-26 00:03:47 +02:00
Author
Owner

agent-gateway closeout (merged): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!88
No description provided.