pd_export #363 follow-up: LAN broker allowed, step pins by identity, 4 GiB queued cap, export tests on master #365
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!365
Loading…
Reference in a new issue
No description provided.
Delete branch "opus/pd-export-followup"
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?
Follow-up to #363 (coordinator list, 11-07). Do not merge without review.
Changes
LAN broker allowed.
bench/arms/s12phv-pd-export.tomlsetsQWEN36_PD_EXPORT_TARGET_ALLOW = "10.10.0.2:18731,192.168.88.125:18731", andnix/serve-arms/s12phv-pd-export-mtp.jsonis regenerated.Step pins dropped by identity. The new
Exporter._drop_step_pinreplaceslist.remove, which compared with==. On tensor lists that comparison raises; on equal lists it hands back ownership of the wrong pin.QWEN36_PD_EXPORT_MAX_QUEUED_MBdefaults to 4096 (DEFAULT_MAX_QUEUED_MB, was 8192). A 32k export is about 304 MB on the wire.tools/pd-split/test_pd_export.pyon master. It comes with what it imports, copied verbatim from opus/pd-adaptive5fe25a91:pdsplit.py,export/pd_recv.py,transport/{wire,receiver,ring}.pyandfixtures/pd-export-4k(200 KB). A new hardening section runs over real loopback sockets:tests/test_pd_export_hardening.pygets the same three follow-up checks without torch.Card gates (stamped, owned boots, 2026-11-08, tree
c40dd433)pd_export.pyis a served source of every s12 arm, so the production arm's #363 gate also went STALE and is re-gated here. ttx lint is OK for s12-prefix-host-vsplit-sf and s12phv-pd-export{,-tc,-mtp};nix-spec --checkis OK.Adversarial checks on the export arm (
bench/runs/pd363fu-adversarial-20261108.txt)192.168.88.164:18731(not allowed) and203.0.113.9:9.192.168.88.125:18731is accepted by the allowlist, but the connect then times out after 10 s with pins_now=0. cfx-llm1's firewall does not open 18731 on eno1, so the LAN fallback needs that port opened in the nixos-llm config before it can carry exports. That is a gateway/nixos change for the coordinator.Known, not changed here
🤖 Generated with Claude Code
- bench/arms/s12phv-pd-export.toml: QWEN36_PD_EXPORT_TARGET_ALLOW adds the cfx-llm1 broker on the LAN (192.168.88.125:18731, the pd40g.sh LAN fallback link) next to the 40G one; nix/serve-arms regenerated. - pd_export.py: _drop_step_pin removes the handed-over pin by identity (list.remove compared with ==: on tensor lists that raises, on equal lists it hands the wrong pin's ownership back); QWEN36_PD_EXPORT_MAX_QUEUED_MB default 8192 -> 4096 MiB (DEFAULT_MAX_QUEUED_MB; a 32k export is ~304 MB on the wire). - tools/pd-split/test_pd_export.py lands on master with what it imports (pdsplit.py, export/pd_recv.py, transport/{wire,receiver,ring}.py, fixtures/pd-export-4k, verbatim from opus/pd-adaptive5fe25a91), plus a hardening section over real loopback sockets: the arm's allowlist (40G + LAN only), a stuck receiver failing within SEND_S with every tier pin released, the 4096 MiB default, pin drop by identity. Mutants killed: equality removal, 8192 default, LAN entry dropped, no send timeout. - tests/test_pd_export_hardening.py: the same three follow-up checks without torch. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>c40dd433, stamped records replace the #363 ones"verdict: approve\ntier: T1 (served-source hardening of
pd_export.py, a served source of every s12 arm; no secret/infra/gate changes)\n\nrationale: Clean #363 follow-up. The three semantic changes are all correct and well-documented, the allowlist expansion is scoped to the export arm only (the production arm diff is a gate-stamp rename with no allow change), and no secrets or code-execution patterns exist anywhere in the vendored test deps or fixtures. Both arms carry fresh card gates on treec40dd433(equiv/gsm8k/retrieval/agent-sessions pass) and the adversarial run confirms unlisted targets are refused while the LAN broker is accepted.\n\nconcerns:\n- [nit]bench/runs/pd363fu-adversarial-20261108.txt— the PR notes cfx-llm1's firewall does not yet open 18731 on eno1, so the LAN fallback is allowlisted but cannot actually carry exports until a nixos-llm gateway change lands. Non-blocking for this PR: the entry is refused-elsewhere-safe (still subject to allowlist) and the follow-up is a separate infra change.\n- [nit] Known cosmetic: a connect timeout is logged as "send timed out after 30 s" though it is the 10 s CONNECT_S path. Cosmetic only, documented in the PR.\n"Cards skipped
Cards unavailable on
cfx-llm0for PR #365befa33cc756f8a65ee239b3007a604a454d96421.systemctl is-active tenstorrent-serving.service=active(needinactive)85337248kB (need >= 4000000)No slot taken, no boot. This skip is green.
Landing: Opus review LAND-WITH-NITS (no blockers). Gate stamps verified against this tree (equiv pass, gsm8k 59/60, retrieval 1.0/1.0, agent-sessions pass). cards-fresh can't measure while prod is serving, the same as #363. Nits recorded: the PR text overstates the old remove() hazard; no call-site mutant test; the LAN target is allowed but cfx-llm1's firewall doesn't open 18731 on eno1 yet.
agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.