tenstorrent-serving: hold guard so deploys cannot start prod onto held cards #349
No reviewers
Labels
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!349
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/tt-serving-hold-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Incident (2026-11-05 03:09 CET):
tenstorrent-servingwhile a ttx window held the cards for the #334 CLAIM "P/D bring-up".tt-probe-cardsopened a 2-device mesh on the busy cards. UMD loggedNOC address of a hugepage does not matchand thenFailed to allocate TLB window.systemctl startat 03:18) failed too. Production was down until a manualreset-failedat 03:25.The old reset guard only looked for other containers after opening a mesh, which is too late.
Change:
ExecCondition = tt-hold-guard. It runs before stop, probe and reset, on every start and restart. Exit 1 is a skip in systemd: no failure, no Restart=, no start-limit cost. It skips when:/tmp/ttlock.d/card0|card1). That is how a #334 window holds the cards on the box, since the host cannot read Forgejo. tt-window releases its slot before it starts this unit, so its restore still works. A claim whose driver is a dead process on this same host counts as stale and is ignored;/tmp/ttlocknot owned by ttx exists;/proc/driver/tenstorrent/*/pids).Tests:
bash -nand shellcheck pass.nix evalof nixos-llm cfx-llm0 with--override-input tt-stackon this branch rendersExecCondition.It reaches production through the nixos-llm tt-stack input bump. Draft: do not merge without the coordinator.
🤖 Generated with Claude Code
verdict: approve (comment-only — WIP draft, label held for coordinator)
tier: T1
rationale: additive-only, off-by-default guard wired as ExecCondition ahead of stop/probe/reset. Fixes a real incident (#334 hold collided with a nixos deploy, wedged the engine, burned the start limit). Safe failure mode: any uncertainty resolves to skip-start, so it can only protect, not crash the box. No source/tooling default changes; the guard ships inert until the cfx-llm0 deploy orders it.
concerns:
No blocking concerns. This is a WIP draft, so no human-approved label and no un-draft (both held for the coordinator; the PR body asks not to merge without you).
WIP: tenstorrent-serving: hold guard so deploys cannot start prod onto held cardsto tenstorrent-serving: hold guard so deploys cannot start prod onto held cardsagent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.