fix(tenstorrent-host): a not-yet-booted generation is not a card fault #5
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!5
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/claude-auth/inventory-pre-reboot"
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?
Fixes a real rollback. nixos-llm CI run 1449 deployed cfx-llm2 and then reverted it, because
tenstorrent-inventoryasserted on the card count before checking whether the generation had booted.On a first deploy the running kernel has neither the 1G hugepage reservation nor
tt-kmdloaded, so/dev/tenstorrentis empty andfoundis0. The unit failed →switch-to-configurationexit 4 → deploy-rs read a broken activation and rolled back. So a correctly configured host with a perfectly healthy card could never reach the reboot that would have made the check pass.The reboot detection was already there — I added it in #4 — but it only guarded the hugepage branch. The card branch ran first and unconditionally, which made the guard useless on exactly the deploy it was written for.
Fix: hoist the "has this configuration actually booted?" test above both checks. If the running cmdline does not carry the expected
hugepages=N, recordstate=reboot-requiredand exit 0 regardless of card count. After a boot with the reservation in place both assertions apply as before, so a card that stops enumerating or a genuine contiguous-memory shortfall still fails loudly. Also drops the now-duplicated cmdline grep.Evidence this is the right diagnosis, from the deploy tracker for run 1449:
assertCardsPresent = false— worked as intendedassertCardsPresent = true, no boot yet → card check firedgitea-runner-fluxionbreakage dating to 2026-09-02Docs only otherwise. Tier: module change, no packaging or spec impact.