ttx: paired mean MTP acceptance for tier-2 levers (--stream-accept, DEV-LOOP 7a) #278

Open
Grok wants to merge 1 commit from tooling/stream-accept into master
Owner

Coordinator directive 2026-10-20: judge tier-2 levers on paired mean drafter acceptance over a broad prompt set, not on one-prompt B1 TG.

  • bench/gsm8k.py --stream: streams with continuous usage stats and records each request's decode steps (token-bearing chunks), tokens, and the chunks where the API server merged steps.
  • ttx run --stream-accept: passes --stream through to it. Default off; the gate is unchanged without it.
  • tools/ttx/mtp-accept-paired.py: pairs control vs arm by prompt and reports pooled tokens per decode step with a paired-bootstrap 95% CI. PASS = lower bound >= -1%.
  • DEV-LOOP §7a: the method and the ship rule (step not slower in the A/B, PP win, paired acceptance non-inferior, gates pass).

First use: gum2 vs S3, +2.29% [-0.43, +4.37] over the 60 gsm8k prompts. The client value (3.117 tokens/step) matches the server's own counter (3.13-3.19), with 0 merged chunks (R-2026-10-20-s3gum2, PR #277).

Checks: ttx unit suite OK; cited-records OK. Tooling only, no card gate needed.

🤖 Generated with Claude Code

Coordinator directive 2026-10-20: judge tier-2 levers on paired mean drafter acceptance over a broad prompt set, not on one-prompt B1 TG. - bench/gsm8k.py --stream: streams with continuous usage stats and records each request's decode steps (token-bearing chunks), tokens, and the chunks where the API server merged steps. - ttx run --stream-accept: passes --stream through to it. Default off; the gate is unchanged without it. - tools/ttx/mtp-accept-paired.py: pairs control vs arm by prompt and reports pooled tokens per decode step with a paired-bootstrap 95% CI. PASS = lower bound >= -1%. - DEV-LOOP §7a: the method and the ship rule (step not slower in the A/B, PP win, paired acceptance non-inferior, gates pass). First use: gum2 vs S3, +2.29% [-0.43, +4.37] over the 60 gsm8k prompts. The client value (3.117 tokens/step) matches the server's own counter (3.13-3.19), with 0 merged chunks (R-2026-10-20-s3gum2, PR #277). Checks: ttx unit suite OK; cited-records OK. Tooling only, no card gate needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ttx: judge tier-2 levers by paired mean MTP acceptance (gsm8k --stream-accept, mtp-accept-paired.py, DEV-LOOP 7a)
Some checks failed
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 16m14s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m28s
tt-stack-ci / Report upstream drift (pull_request) Successful in 3m33s
cards-fresh cards: PR does not merge cleanly onto base
774e94d69f
One-prompt B1 TG on sweep32k is one greedy trajectory per arm, and it
nearly killed gum2: its B1 drop was acceptance noise, not a slower step.
The owner's TG targets are at average drafter acceptance. The gates
boot now records per-request tokens per decode step from streamed
usage, and the tool pairs the 60 prompts with a bootstrap CI. First
use: gum2 +2.29% [-0.43, +4.37] (R-2026-10-20-s3gum2). Off by default;
without --stream-accept the gsm8k gate is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: approve
tier: T2 (ttx tooling + DEV-LOOP method)

rationale: Pure tooling. The --stream / --stream-accept paths are off by default and the non-stream code path is byte-identical to before (original request/read/parsing kept verbatim in the else branch), so existing gate behavior is unchanged when the flag is unset. The new mtp-accept-paired.py is self-contained (fixed-seed paired bootstrap, non-inferiority margin -1%, merged-chunk dropping, sane n<10 refusal), and the record items change only adds the stream key when present, so pairing with older records stays compatible. No secrets, no CI-gate change, no card gate needed for tooling-only.

concerns:

  • [warn] bench/gsm8k.py:19 — --step-cap defaults to 4 (the current drafter cap). If the drafter cap moves, the merged-step detection threshold silently drifts; the PR could note the coupling.
  • [warn] tools/ttx/mtp-accept-paired.py pooled() — pooled ratio is undefined (zero-division) if all paired items had zero decode steps; unobservable in practice (chunks>=2 filter) but a guard would make the tool robust standalone.
  • [nit] tools/ttx/ttxlib/cli.py:296 — --stream-accept help string references DEV-LOOP but not the pairing tool invocation; fine, just discoverability.
**verdict:** approve **tier:** T2 (ttx tooling + DEV-LOOP method) **rationale:** Pure tooling. The `--stream` / `--stream-accept` paths are off by default and the non-stream code path is byte-identical to before (original request/read/parsing kept verbatim in the else branch), so existing gate behavior is unchanged when the flag is unset. The new `mtp-accept-paired.py` is self-contained (fixed-seed paired bootstrap, non-inferiority margin -1%, merged-chunk dropping, sane n<10 refusal), and the record `items` change only adds the `stream` key when present, so pairing with older records stays compatible. No secrets, no CI-gate change, no card gate needed for tooling-only. **concerns:** - [warn] `bench/gsm8k.py:19` — `--step-cap` defaults to 4 (the current drafter cap). If the drafter cap moves, the merged-step detection threshold silently drifts; the PR could note the coupling. - [warn] `tools/ttx/mtp-accept-paired.py` `pooled()` — pooled ratio is undefined (zero-division) if all paired items had zero decode steps; unobservable in practice (chunks>=2 filter) but a guard would make the tool robust standalone. - [nit] `tools/ttx/ttxlib/cli.py:296` — `--stream-accept` help string references DEV-LOOP but not the pairing tool invocation; fine, just discoverability.
Member

Card gate — prod vs prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4

  • PR #278 ref refs/pull/278/head
  • head 774e94d69f733ff699087a22f927c5597f54f1cb merged onto master (measured tree, fingerprint in the verdict comment)
  • host cfx-llm2, slot mesh (card0+card1)
  • serving check out /nix/store/g34c1hgqwsz8bwqa5dbn6s7hgp8d1niv-vm-test-run-tenstorrent-serving
  • ttx ab exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 1
  • sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm.

gsm8k / retrieval / equiv do not gate merge. A FAIL below is a report.

Gates

  • prod equiv: kind REFUSED verdict None (bench/runs/ttx-prod-equiv-20261020T113155Z.jsonl)
  • prod gsm8k: kind REFUSED verdict None (bench/runs/ttx-prod-gsm8k-20261020T113155Z.jsonl)
  • prod retrieval: kind REFUSED verdict None (bench/runs/ttx-prod-retrieval-20261020T113155Z.jsonl)

PP tok/s and TG tok/s per user (TG ms/token secondary)

arm B ctx PP tok/s TG tok/s/user TG ms/token vs control PP vs control TG tok/s
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4 1 4096 7861.8 73.3 13.644
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4 1 32768 7171.8 65.3 15.324
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4 4 4096 7164.0 77.9 12.834
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4 4 32768 7033.6 62.0 16.132
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4 8 4096 6760.5 63.5 15.748
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4 8 32768 6994.2 52.1 19.185

Records

  • bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4-switch-20261020T111825Z.jsonl
  • bench/runs/ttx-prod-equiv-20261020T113155Z.jsonl
  • bench/runs/ttx-prod-gsm8k-20261020T113155Z.jsonl
  • bench/runs/ttx-prod-retrieval-20261020T113155Z.jsonl
  • bench/runs/ttx-sweep32k-prod-ab20261020T111825Z-r0.jsonl
  • bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4-ab20261020T111825Z-r0.jsonl

Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9653 (artifact bench-runs when the upload step ran).

## Card gate — `prod` vs `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` - PR `#278` ref `refs/pull/278/head` - head `774e94d69f733ff699087a22f927c5597f54f1cb` merged onto `master` (measured tree, fingerprint in the verdict comment) - host `cfx-llm2`, slot mesh (card0+card1) - serving check out `/nix/store/g34c1hgqwsz8bwqa5dbn6s7hgp8d1niv-vm-test-run-tenstorrent-serving` - `ttx ab` exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 1 - sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm. gsm8k / retrieval / equiv do **not** gate merge. A FAIL below is a report. ### Gates - `prod` `equiv`: kind `REFUSED` verdict `None` (`bench/runs/ttx-prod-equiv-20261020T113155Z.jsonl`) - `prod` `gsm8k`: kind `REFUSED` verdict `None` (`bench/runs/ttx-prod-gsm8k-20261020T113155Z.jsonl`) - `prod` `retrieval`: kind `REFUSED` verdict `None` (`bench/runs/ttx-prod-retrieval-20261020T113155Z.jsonl`) ### PP tok/s and TG tok/s per user (TG ms/token secondary) | arm | B | ctx | PP tok/s | TG tok/s/user | TG ms/token | vs control PP | vs control TG tok/s | | --- | --- | --- | --- | --- | --- | --- | --- | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` | 1 | 4096 | 7861.8 | 73.3 | 13.644 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` | 1 | 32768 | 7171.8 | 65.3 | 15.324 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` | 4 | 4096 | 7164.0 | 77.9 | 12.834 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` | 4 | 32768 | 7033.6 | 62.0 | 16.132 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` | 8 | 4096 | 6760.5 | 63.5 | 15.748 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4` | 8 | 32768 | 6994.2 | 52.1 | 19.185 | | | ### Records - `bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4-switch-20261020T111825Z.jsonl` - `bench/runs/ttx-prod-equiv-20261020T113155Z.jsonl` - `bench/runs/ttx-prod-gsm8k-20261020T113155Z.jsonl` - `bench/runs/ttx-prod-retrieval-20261020T113155Z.jsonl` - `bench/runs/ttx-sweep32k-prod-ab20261020T111825Z-r0.jsonl` - `bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4-ab20261020T111825Z-r0.jsonl` Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9653 (artifact `bench-runs` when the upload step ran).
Member

Cards verdict: success

  • fingerprint a8c8a4c61fbc167934066d5eab4a278fb28904d415a0062bdcd780378474e16d (CONTROL prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4, arms prod, 538 card files 9495a8645ba9c13d)
  • measured tree: head 774e94d69f733ff699087a22f927c5597f54f1cb merged onto base 77948e4dba9edad356fa009982c3d9b0e667772c
  • run https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9653

A later event with the same fingerprint reuses this verdict instead of booting the cards.

## Cards verdict: success - fingerprint `a8c8a4c61fbc167934066d5eab4a278fb28904d415a0062bdcd780378474e16d` (CONTROL `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4`, arms `prod`, 538 card files `9495a8645ba9c13d`) - measured tree: head `774e94d69f733ff699087a22f927c5597f54f1cb` merged onto base `77948e4dba9edad356fa009982c3d9b0e667772c` - run https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9653 A later event with the same fingerprint reuses this verdict instead of booting the cards. <!-- tt-cards-verdict {"arms": ["prod"], "base_sha": "77948e4dba9edad356fa009982c3d9b0e667772c", "control": "prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s4", "files_sha": "9495a8645ba9c13d62b108c3400ea7eb713aa9470d36ee39c32f2ecc05e8c964", "fp": "a8c8a4c61fbc167934066d5eab4a278fb28904d415a0062bdcd780378474e16d", "head": "774e94d69f733ff699087a22f927c5597f54f1cb", "run_id": "9653", "run_number": "891", "run_url": "https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9653", "tree": "eb102f5b819e0cf82c22918aeb365b89a9589d4e", "v": 1, "verdict": "success"} -->
Some checks failed
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 16m14s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m28s
tt-stack-ci / Report upstream drift (pull_request) Successful in 3m33s
cards-fresh cards: PR does not merge cleanly onto base
This pull request has changes conflicting with the target branch.
  • bench/gsm8k.py
  • tools/ttx/ttxlib/cli.py
  • tools/ttx/ttxlib/gates.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin tooling/stream-accept:tooling/stream-accept
git switch tooling/stream-accept
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!278
No description provided.