sim-run: SIM_KERNEL_OVERLAY after TTSIM_TTN_HOME (#293 overlay was dropped) #294
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!294
Loading…
Reference in a new issue
No description provided.
Delete branch "sim/kernel-overlay-fix"
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?
Sim tooling only, no served change.
Bug: #293 applied SIM_KERNEL_OVERLAY before the TTSIM_TTN_HOME block. That block then replaced TT_METAL_HOME and set TT_METAL_RUNTIME_ROOT (the JIT's root_dir) to the unpatched tree. With the patched-sim overlay set, a gate compiled the stock kernel and could pass bitwise without the kernel under test.
Fix: one SIM_KERNEL_OVERLAY block, run after TTSIM_TTN_HOME, that points both TT_METAL_HOME and TT_METAL_RUNTIME_ROOT at the farm.
;-separated markers apply per entry.Test:
scripts/test-sim-kernel-overlay.shstubs python3 and nix, then checks the file the JIT root sees. It runs as a step in the build job.STOCK writerat rc=0.Audit: no bench/runs or LEDGER record since #293 combined SIM_KERNEL_OVERLAY with TTSIM_TTN_HOME.
rs-uni-sim-20261021T111500Z(free/u-ccl) predates #293 and did not set TTSIM_TTN_HOME.🤖 Generated with Claude Code
verdict: approve
tier: T1
rationale: Sim tooling only, nothing ships to cards. The fix is correct and the shipped test proves both directions: run in-kernel against this head it passes all 7 cases; run against #293's sim-run.sh it fails the critical case (overlay applied before TTSIM_TTN_HOME gets replaced and dropped — probe sees STOCK writer at rc=0, plus the unsplit
PATCH_W;PATCH_Rmarker). The new block runs after TTSIM_TTN_HOME, points BOTH TT_METAL_HOME and TT_METAL_RUNTIME_ROOT (the JIT root_dir) at the farm, keeps #293's interface (single marker for all entries,;-separated per-entry markers, new files allowed), and the read loop is now< <(...)process substitution so refusals die from the main shell. The two silent traps from #293 (printf without trailing newline; read-only store dir modes) stay fixed (printf '%s\n' + find chmod u+w).readlink -fon the cpp dir beforecp -rshandles the case where TTSIM_TTN_HOME is itself a farm of symlinks.concerns:
.forgejo/workflows/ci.yml:70— the new "sim-run kernel overlay" build step becomes a standing gate for every future PR once this merges: any change to sim-run.sh's SIM_KERNEL_OVERLAY semantics must keep this test green. That is the point of the gate, but it's now the standing default, be deliberate about it.waiting(build not started, card gate blocked behind it).human-approvedlabel HELD until it lands green; no card gate is needed for this diff (sim tooling, no lever ships), so green build is sufficient.(handoff ho-b034832c8d7f; reviewed on agent-dense as the session model)
Cancelled CI run #9799 (plan + serialized card gate) after the build job #51666 passed: sim tooling only (scripts/sim-run.sh, its host test, one CI step), no served-path file changes, so a card run has no ship decision. The new 'sim-run kernel overlay' step passed in #51666 (all passed).
agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.