ttx: weighted verdict (B4/32k first) + per-bucket lever audit (tooling split of #283) #284

Open
Grok wants to merge 1 commit from b-bucket-tools into master
Owner

This PR splits the tooling and docs out of #283 (free/b-bucket). It is tier 1 and non-serving: no served file changes and no arm.

  • tools/ttx/sweep-verdict.py --weighted adds the owner's weighted verdict. Cell weights: B4/32k 3, B8/32k 2, B4/4k 1.5, B8/4k 1, B1/32k 0.75, B1/4k 0.5. TG is scored in tok/s per user. The per-cell output is unchanged.
  • docs/DEV-LOOP.md §4b documents the rule.
  • docs/analysis/per-bucket-levers-20261020.md is the audit, with its re-runnable tools tools/ttx/percell.py and tools/ttx/bucket_scan.py.

Review changes vs #283:

  • WIN = TG or PP clears its bar, and the other does not lose. Before, a prefill win read HOLD: rs4 vs S3 (TG +0.58%, PP +1.27%) now reads WIN.
  • Bar = max(weighted control band, floor). The floors are +0.5% TG and +1.0% PP, the same bars as ci-pick-winner. A 2-record band is about 0.3% wide, so without the floors pw and gtf read WIN on noise.
  • B1 guard: an arm is rejected if any B1 cell is worse than −5% on TG or PP, measured against the screen's own control. A B1 TG loss beyond max(1%, 2× that cell's band) does not veto; it is flagged "explain it or scope it per bucket".
  • 9 unit tests.

Weighted verdicts on R-2026-10-20-free-b1a, vs S4:

Arm Verdict
cap WIN (TG +1.26%)
m8n16 HOLD (TG +0.46%, PP +0.83%)
pw, gtf, rd64 HOLD
d2hr REJECT (B1 −13%)

These match ci-pick-winner.

The mechanism (QWEN36_BUCKET_FLAGS, with review fixes on review/b-bucket) ships only with a winning arm. Its fidelity screen, -s5-bbf1, is queued in the free-lever batch 2.

🤖 Generated with Claude Code

This PR splits the tooling and docs out of #283 (free/b-bucket). It is tier 1 and non-serving: no served file changes and no arm. - `tools/ttx/sweep-verdict.py --weighted` adds the owner's weighted verdict. Cell weights: B4/32k 3, B8/32k 2, B4/4k 1.5, B8/4k 1, B1/32k 0.75, B1/4k 0.5. TG is scored in tok/s per user. The per-cell output is unchanged. - `docs/DEV-LOOP.md` §4b documents the rule. - `docs/analysis/per-bucket-levers-20261020.md` is the audit, with its re-runnable tools `tools/ttx/percell.py` and `tools/ttx/bucket_scan.py`. **Review changes vs #283:** - **WIN = TG or PP clears its bar, and the other does not lose.** Before, a prefill win read HOLD: rs4 vs S3 (TG +0.58%, PP +1.27%) now reads WIN. - **Bar = max(weighted control band, floor).** The floors are +0.5% TG and +1.0% PP, the same bars as `ci-pick-winner`. A 2-record band is about 0.3% wide, so without the floors pw and gtf read WIN on noise. - **B1 guard:** an arm is rejected if any B1 cell is worse than −5% on TG **or PP**, measured against the screen's own control. A B1 TG loss beyond max(1%, 2× that cell's band) does not veto; it is flagged "explain it or scope it per bucket". - **9 unit tests.** **Weighted verdicts on R-2026-10-20-free-b1a, vs S4:** | Arm | Verdict | |---|---| | cap | WIN (TG +1.26%) | | m8n16 | HOLD (TG +0.46%, PP +0.83%) | | pw, gtf, rd64 | HOLD | | d2hr | REJECT (B1 −13%) | These match `ci-pick-winner`. The mechanism (`QWEN36_BUCKET_FLAGS`, with review fixes on `review/b-bucket`) ships only with a winning arm. Its fidelity screen, `-s5-bbf1`, is queued in the free-lever batch 2. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ttx: the owner's weighted verdict (B4/32k first) + the per-bucket lever audit (tooling/docs from free/b-bucket)
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 16m20s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 20m7s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 15m10s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: not needed (C1) fp=21d84ce9f0be79e6
0d6c35393b
From free/b-bucket (PR #283): sweep-verdict.py --weighted, DEV-LOOP section 4b, the per-bucket audit
and its percell/bucket_scan tools. The QWEN36_BUCKET_FLAGS mechanism stays on the branch until it has a
winning arm. Changes made in review:
- WIN no longer needs TG. The old rule needed weighted TG above the band, so a prefill win with PP up
  and TG flat (rs4 vs S3) read HOLD. Now TG or PP must clear its bar and the other must not lose.
- The bar is max(weighted band, floor), with the CI judge's floors of +0.5% TG and +1.0% PP. A
  2-record band is often under 0.4% wide; with the band alone, pw and gtf (R-2026-10-20-free-b1a)
  read WIN on noise.
- The B1 guard (-5%, vs the screen's control) covers PP as well. A B1 TG loss beyond
  max(1%, 2x the cell band) is flagged 'explain it or scope it per bucket' and does not veto
  (owner 10-20).
- Unit tests in tools/ttx/tests/test_weighted_verdict.py (9).

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

verdict: approve
tier: T1

rationale: Pure tooling/docs split of #283: 4 new ttx helpers, a new --weighted flag, and docs. No served files, no arm, no patches/ — the QWEN36_BUCKET_FLAGS mechanism stays on the branch. sweep-verdict.py diff vs master is +120/0 (additive-only; the per-cell path and its output are untouched, the weighted block is opt-in via the flag).

concerns:

  • [warn] tools/ttx/sweep-verdict.py:187 — --weighted is opt-in and the per-cell output is byte-identical when unset, but the new verdict rule (WIN = TG or PP clears max(band, floor), with +0.5%/+1.0% floors) becomes the standing judge in DEV-LOOP §4b on merge — the old rule required a TG win, so prefill-only arms (rs4: TG +0.58%, PP +1.27%) flip from HOLD to WIN. That is the point of the PR (matches scripts/ci-pick-winner.py's own floors, verified), so it is fine — just deliberate about the standing default.
  • [warn] CI run 9704 on head 0d6c3539 is still running (card gate blocked behind the build jobs). human-approved deliberately NOT applied — the gate watcher arms it when the run goes green.
  • Verified in-kernel: tests/test_weighted_verdict.py 9/9 pass on the head files; no secrets or new env vars in the diff; percell.py/bucket_scan.py are read-only record tools (no shell-out, no eval).
**verdict:** approve **tier:** T1 **rationale:** Pure tooling/docs split of #283: 4 new ttx helpers, a new `--weighted` flag, and docs. No served files, no arm, no `patches/` — the `QWEN36_BUCKET_FLAGS` mechanism stays on the branch. `sweep-verdict.py` diff vs master is +120/0 (additive-only; the per-cell path and its output are untouched, the weighted block is opt-in via the flag). **concerns:** - [warn] `tools/ttx/sweep-verdict.py:187` — `--weighted` is opt-in and the per-cell output is byte-identical when unset, but the new verdict rule (WIN = TG **or** PP clears `max(band, floor)`, with +0.5%/+1.0% floors) becomes the standing judge in `DEV-LOOP §4b` on merge — the old rule required a TG win, so prefill-only arms (rs4: TG +0.58%, PP +1.27%) flip from HOLD to WIN. That is the point of the PR (matches `scripts/ci-pick-winner.py`'s own floors, verified), so it is fine — just deliberate about the standing default. - [warn] CI run 9704 on head `0d6c3539` is still `running` (card gate blocked behind the build jobs). `human-approved` deliberately NOT applied — the gate watcher arms it when the run goes green. - Verified in-kernel: `tests/test_weighted_verdict.py` 9/9 pass on the head files; no secrets or new env vars in the diff; `percell.py`/`bucket_scan.py` are read-only record tools (no shell-out, no eval).
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 16m20s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 20m7s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 15m10s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: not needed (C1) fp=21d84ce9f0be79e6
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin b-bucket-tools:b-bucket-tools
git switch b-bucket-tools
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!284
No description provided.