tooling: picker --b1-tok-bar + rep averaging; arm-derive keeps the parent's env_unset #224

Merged
tenstorrent merged 2 commits from tooling-picker-armderive into master 2026-10-09 12:36:01 +02:00
Member

Tooling only (scripts/ + tools/ttx/), no card-facing files → the cards job posts Cards skipped; no hardware is booked.

Lifted unchanged from the card PRs that carried it (#220; the same arm-derive fix is in #190/#199/#211), so it lands on master without waiting for their card queue:

  • scripts/ci-pick-winner.py
    • cells_of averages repeated reps of the same (arm, B, ctx) cell (adds n).
    • score(..., b1_tok_bar=None) + CLI --b1-tok-bar (default None = today's behaviour).
  • tools/ttx/arm-derive.py: build_raw carries the parent's resolved env_unset (minus keys re-set by --env), so a derived arm no longer silently re-enables something its parent unset.
  • Tests: +3 in test_ci_pick_winner.py, +1 in test_arm_derive.py; python3 -m unittest test_ci_pick_winner test_arm_derive OK locally.

Owner directive 10-09: push wins to master fast.

Tooling only (`scripts/` + `tools/ttx/`), **no card-facing files** → the cards job posts *Cards skipped*; no hardware is booked. Lifted unchanged from the card PRs that carried it (#220; the same arm-derive fix is in #190/#199/#211), so it lands on master without waiting for their card queue: - `scripts/ci-pick-winner.py` - `cells_of` averages repeated reps of the same (arm, B, ctx) cell (adds `n`). - `score(..., b1_tok_bar=None)` + CLI `--b1-tok-bar` (default None = today's behaviour). - `tools/ttx/arm-derive.py`: `build_raw` carries the parent's resolved `env_unset` (minus keys re-set by `--env`), so a derived arm no longer silently re-enables something its parent unset. - Tests: +3 in `test_ci_pick_winner.py`, +1 in `test_arm_derive.py`; `python3 -m unittest test_ci_pick_winner test_arm_derive` OK locally. Owner directive 10-09: push wins to master fast.
tooling: picker --b1-tok-bar + rep averaging; arm-derive keeps the parent's env_unset
All checks were successful
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m26s
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m2s
tt-stack-ci / Serialized card gate (pull_request) Successful in 48s
a49e9bb4b8
Taken unchanged from the screen PRs, where they were reviewed and tested and
which will not merge (#211, #220; the arm-derive fix is also copied in #190 and #199):

- scripts/ci-pick-winner.py: average the reps of each (arm, B, ctx) cell instead of
  last-record-wins; optional --b1-tok-bar (off by default) makes an arm ineligible
  when any B=1 cell's per-token TG delta is below the bar (owner no-B1-regression
  rule; run 7502 F arm). Master CI behaviour is unchanged: 1 rep, flag not passed.
- tools/ttx/arm-derive.py: --unset-env carries the parent's resolved env_unset
  (lists replace on inherit), minus keys re-set with --env (PR #190 failure class).
- tests: 3 picker tests, 1 arm-derive test.
Owner

verdict: approve
tier: T1

rationale: Tooling-only (no card-facing files → cards job posts "Cards skipped"). Behavior-preserving by default: rep-averaging is a no-op at 1 rep, --b1-tok-bar is off (None) unless passed, so master CI is unchanged. The arm-derive change is a real bug fix (PR #190 env_unset regression class).

concerns:

  • (none — clean)

Verified, not read-clean:

  • Ran the suites on the PR head (tooling-picker-armderive, a49e9bb4): 34 tests ... OK (4 new + 30 existing) via python3 -m unittest test_ci_pick_winner test_arm_derive.
  • b1_tok (ci-pick-winner.py:197) uses the identical sign convention as the existing per-token TG delta (line 174, (base.tg/mine.tg-1)*100) — no sign bug.
  • arm-derive merge semantics confirmed against ttxlib/arm.py:_merge: a child key absent is kept (deepcopy), a present key replaces — so the if unset_env: guard is correct (no --unset-env → key omitted → parent's list inherits; with it, the parent's resolved list is carried, minus keys re-set with --env). load_raw resolves the full chain, so "resolved" is accurate.
  • CI build job unaffected: no .nix changed (nixfmt/flake-check no-op), ttx unit tests pass, cards job → "Cards skipped" (green, no hardware booked).

Note: tt-stack has no CI label/approve gate (unlike nixos-llm); the PR is already non-draft and mergeable. Merging is a manual operator action when ready — human-added below is the review marker, not a merge trigger.

**verdict:** approve **tier:** T1 **rationale:** Tooling-only (no card-facing files → cards job posts "Cards skipped"). Behavior-preserving by default: rep-averaging is a no-op at 1 rep, `--b1-tok-bar` is off (None) unless passed, so master CI is unchanged. The arm-derive change is a real bug fix (PR #190 env_unset regression class). **concerns:** - (none — clean) Verified, not read-clean: - Ran the suites on the PR head (`tooling-picker-armderive`, a49e9bb4): `34 tests ... OK` (4 new + 30 existing) via `python3 -m unittest test_ci_pick_winner test_arm_derive`. - `b1_tok` (ci-pick-winner.py:197) uses the identical sign convention as the existing per-token TG delta (line 174, `(base.tg/mine.tg-1)*100`) — no sign bug. - arm-derive merge semantics confirmed against `ttxlib/arm.py:_merge`: a child key absent is kept (deepcopy), a present key replaces — so the `if unset_env:` guard is correct (no `--unset-env` → key omitted → parent's list inherits; with it, the parent's resolved list is carried, minus keys re-set with `--env`). `load_raw` resolves the full chain, so "resolved" is accurate. - CI build job unaffected: no `.nix` changed (nixfmt/flake-check no-op), ttx unit tests pass, cards job → "Cards skipped" (green, no hardware booked). Note: tt-stack has no CI label/approve gate (unlike nixos-llm); the PR is already non-draft and mergeable. Merging is a manual operator action when ready — `human-added` below is the review marker, not a merge trigger.
Author
Member

Cards skipped

PR #224 a49e9bb4b8db7946ad7a23c9fcc5870d33260a30 (refs/pull/224/head) does not touch card-facing paths (bench/arms/, patches/, kernel/op sources, or .forgejo/workflows/). No card boot. Build out: /nix/store/hbb3j0xxx0pqf760i3p54q54gzgmzpc9-vm-test-run-tenstorrent-serving.

## Cards skipped PR #224 `a49e9bb4b8db7946ad7a23c9fcc5870d33260a30` (`refs/pull/224/head`) does not touch card-facing paths (`bench/arms/`, `patches/`, kernel/op sources, or `.forgejo/workflows/`). No card boot. Build out: `/nix/store/hbb3j0xxx0pqf760i3p54q54gzgmzpc9-vm-test-run-tenstorrent-serving`.
Merge branch 'master' into tooling-picker-armderive
All checks were successful
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m0s
tt-stack-ci / Report upstream drift (pull_request) Successful in 48s
tt-stack-ci / Serialized card gate (pull_request) Successful in 36s
87c9892585
tenstorrent closed this pull request 2026-10-09 12:12:50 +02:00
Owner

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

agent-gateway closeout (closed): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
tenstorrent reopened this pull request 2026-10-09 12:12:54 +02:00
Author
Member

Cards skipped

PR #224 87c989258599be5b764f23c5189929e8cd8db62a (refs/pull/224/head) does not touch card-facing paths (bench/arms/, patches/, kernel/op sources, or .forgejo/workflows/). No card boot. Build out: /nix/store/hbb3j0xxx0pqf760i3p54q54gzgmzpc9-vm-test-run-tenstorrent-serving.

## Cards skipped PR #224 `87c989258599be5b764f23c5189929e8cd8db62a` (`refs/pull/224/head`) does not touch card-facing paths (`bench/arms/`, `patches/`, kernel/op sources, or `.forgejo/workflows/`). No card boot. Build out: `/nix/store/hbb3j0xxx0pqf760i3p54q54gzgmzpc9-vm-test-run-tenstorrent-serving`.
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
3 participants
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!224
No description provided.