perf: sound comparator (exact paired test, null block, confirmation) for backend perf gates #1130

Open
kayg wants to merge 3 commits from perf/sound-comparator into dev
Owner

Status (15 Nov, 07:10 IST, head 5660b886c)

  • Method, done:
    • exact paired sign-flip test with Westfall–Young max-T;
    • per-turn dev2 null block;
    • layout arm (dev + inert padding, perf/inert-patch.py) with an intersection–union rule;
    • mirrored order (default);
    • warm-up of every arm;
    • tasks-bench mode;
    • harness pre-flight and failure checks;
    • confirmation in a second turn (--only).
  • Validation:
    • 14 Nov fixed-order sessions: null block passes 5/5 (the old gate failed A/A 131/288).
    • Fresh turns: null blocks pass in 6 of 7 turns. Turn B was void at p 0.0495, which is the designed ~5% void rate.
    • The layout arm explained #894's tasks.describe shift.
  • #894: perf PASS. The search.query +8.6% and save_ack p95 flips were artefacts.
  • #1117: no regression found. 11 single-shot startup/shutdown/long-note cells can't be certified below 10% without harness repeats (see comment).
  • Side finding: #1146, a rare two-client text divergence on dev in the typing scenario.
  • Do not merge until the orchestrator or kayg reviews.

Why

The Files gate (r6 method: candidate U95 ≤ dev-copy U95 per cell, 288 cells, 5 fixed-order rounds) failed 131/288 cells with no change at all (#1117, A/A block, 14 Nov). Two noisy upper bounds compared per cell come out close to a coin flip, so that gate can't pass dev itself. kayg's rule stays: no regression of any size on a hot path. What changes is how "a regression" is decided.

What this PR adds

  • perf/compare.py (stdlib only: the VMs have no numpy):
    • One cell per real number. Single-sample metrics count once, quantile copies are dropped, and a p99 from fewer than 100 samples is labelled "max of n". The old 288 cells are 170 distinct ones.
    • Rounds are the units. Per round, one log(cand/dev) per cell.
    • Exact sign-flip test. It's exact because the arm order is random within each round: all 2^R flips up to 16 rounds, else 10,000 random ones.
    • Westfall–Young max-T step-down. At most a 5% chance that a no-change turn flags any cell in a family. The families are hot (--hot prefixes) and smoke.
    • Null block. Every turn tests dev2 vs dev two-sided; if it flags anything, the turn is void (exit 3).
    • Confirmation. --flags-out writes the flagged cells; --only re-tests them in an independent turn. A regression needs both.
    • Resolution. Every row prints the ratio, a one-sided 95% upper bound and the MDE (80% power). Hot p50/value cells above --resolution (default 10%) make the result inconclusive (exit 4): pool another turn.
    • Layout arms (--layout inert): a cell counts only if the candidate is slower than dev AND than every dev+inert-padding arm (perf/inert-patch.py; fat LTO reshuffles the binary). --pairs gives exact mirror-pair units.
  • perf/vm/paired-turn.sh: runs rounds of dev, dev2, inert and cand; --order mirrored (default) or random; --mode tasks-bench for per-arm bench builds.
    • The order inside each round is random, from a seed.
    • A warm-up arm builds fixtures inside the turn.
    • It stops at a deadline (default 80 min), never by looking at results.
    • It rewrites layout.json after every round.
    • It supports the perf-02 lock handshake with an hd01 watcher.
  • perf/compare_test.py: synthetic self-tests (pass, flag+confirm, void, copies, too few rounds).
  • docs/perf/comparing.md: the method, the written-down false-alarm rates and the sizing. Design only (ADR 0003); measured numbers live in comments.

Expected false-alarm rates (by construction, with random order)

  • At most 5% per family per turn.
  • At most 0.5% per no-change branch (a flag must be confirmed in a second turn).
  • About 5% of turns are void and re-run.

Failure table

Failure Effect Detection Recovery Test
Neighbour load on the shared disk during a turn dev and dev2 diverge null block flags a cell (exit 3) re-run the turn test_dev_vs_dev_difference_voids_the_turn
Fixed arm order (old layouts) position effect looks like a regression not detectable by the test use paired-turn.sh (random order) doc rule
Too few rounds test can't reach alpha refused (exit 2) more rounds / pool turns test_too_few_rounds_is_refused
Noisy cell regression hidden MDE printed; hot p50 above resolution gives exit 4 pool another turn synthetic + real tables
Arm crashes mid-turn missing arm driver stops; layout keeps only finished rounds re-run driver

🤖 Generated with Claude Code

<!-- sound-cmp-status --> ## Status (15 Nov, 07:10 IST, head `5660b886c`) - **Method, done:** - exact paired sign-flip test with Westfall–Young max-T; - per-turn dev2 null block; - layout arm (dev + inert padding, `perf/inert-patch.py`) with an intersection–union rule; - mirrored order (default); - warm-up of every arm; - `tasks-bench` mode; - harness pre-flight and failure checks; - confirmation in a second turn (`--only`). - **Validation:** - 14 Nov fixed-order sessions: null block passes 5/5 (the old gate failed A/A 131/288). - Fresh turns: null blocks pass in 6 of 7 turns. Turn B was void at p 0.0495, which is the designed ~5% void rate. - The layout arm explained #894's `tasks.describe` shift. - **#894:** perf **PASS**. The `search.query` +8.6% and `save_ack` p95 flips were artefacts. - **#1117:** **no regression found**. 11 single-shot startup/shutdown/long-note cells can't be certified below 10% without harness repeats (see comment). - **Side finding:** #1146, a rare two-client text divergence on dev in the typing scenario. - **Do not merge** until the orchestrator or kayg reviews. <!-- sound-cmp-status --> ## Why The Files gate (r6 method: `candidate U95 ≤ dev-copy U95` per cell, 288 cells, 5 fixed-order rounds) failed **131/288 cells with no change at all** (#1117, A/A block, 14 Nov). Two noisy upper bounds compared per cell come out close to a coin flip, so that gate can't pass dev itself. kayg's rule stays: no regression of any size on a hot path. What changes is how "a regression" is decided. ## What this PR adds - `perf/compare.py` (stdlib only: the VMs have no numpy): - **One cell per real number.** Single-sample metrics count once, quantile copies are dropped, and a p99 from fewer than 100 samples is labelled "max of n". The old 288 cells are 170 distinct ones. - **Rounds are the units.** Per round, one log(cand/dev) per cell. - **Exact sign-flip test.** It's exact because the arm order is random within each round: all 2^R flips up to 16 rounds, else 10,000 random ones. - **Westfall–Young max-T step-down.** At most a 5% chance that a no-change turn flags *any* cell in a family. The families are hot (`--hot` prefixes) and smoke. - **Null block.** Every turn tests `dev2` vs `dev` two-sided; if it flags anything, the turn is void (exit 3). - **Confirmation.** `--flags-out` writes the flagged cells; `--only` re-tests them in an independent turn. A regression needs both. - **Resolution.** Every row prints the ratio, a one-sided 95% upper bound and the MDE (80% power). Hot p50/value cells above `--resolution` (default 10%) make the result inconclusive (exit 4): pool another turn. - **Layout arms** (`--layout inert`): a cell counts only if the candidate is slower than dev AND than every dev+inert-padding arm (`perf/inert-patch.py`; fat LTO reshuffles the binary). `--pairs` gives exact mirror-pair units. - `perf/vm/paired-turn.sh`: runs rounds of dev, dev2, inert and cand; `--order mirrored` (default) or `random`; `--mode tasks-bench` for per-arm bench builds. - The order inside each round is random, from a seed. - A warm-up arm builds fixtures inside the turn. - It stops at a deadline (default 80 min), never by looking at results. - It rewrites `layout.json` after every round. - It supports the perf-02 lock handshake with an hd01 watcher. - `perf/compare_test.py`: synthetic self-tests (pass, flag+confirm, void, copies, too few rounds). - `docs/perf/comparing.md`: the method, the written-down false-alarm rates and the sizing. Design only (ADR 0003); measured numbers live in comments. ## Expected false-alarm rates (by construction, with random order) - At most 5% per family per turn. - At most 0.5% per no-change branch (a flag must be confirmed in a second turn). - About 5% of turns are void and re-run. ## Failure table | Failure | Effect | Detection | Recovery | Test | |---|---|---|---|---| | Neighbour load on the shared disk during a turn | dev and dev2 diverge | null block flags a cell (exit 3) | re-run the turn | `test_dev_vs_dev_difference_voids_the_turn` | | Fixed arm order (old layouts) | position effect looks like a regression | not detectable by the test | use paired-turn.sh (random order) | doc rule | | Too few rounds | test can't reach alpha | refused (exit 2) | more rounds / pool turns | `test_too_few_rounds_is_refused` | | Noisy cell | regression hidden | MDE printed; hot p50 above resolution gives exit 4 | pool another turn | synthetic + real tables | | Arm crashes mid-turn | missing arm | driver stops; layout keeps only finished rounds | re-run | driver | 🤖 Generated with [Claude Code](https://claude.com/claude-code)
compare.py replaces the per-PR 'candidate U95 <= dev-copy U95' scripts with an
exact sign-flip test over rounds, Westfall-Young max-T across cells, a
dev-vs-dev null block per turn and a confirmation mode. paired-turn.sh runs
rounds in a random arm order until a deadline and writes layout.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(perf): sound comparator design; compare.py self-tests, 10% default resolution
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
40760cd338
comparing.md now describes the randomised three-arm turn, the exact sign-flip
test with Westfall-Young max-T, the per-turn null block, confirmation in a
second turn, resolution reporting and the written-down false-alarm rates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Validation on the existing 14 Nov data (new comparator, head 40760cd33)

Data. I used the five fixed-order Files sessions still on perf-01. None was deleted.

  • files-s1-perf-c8688c-DE10q9: r1, r6. r5 is incomplete and was skipped.
  • files-s1-perf-r7: r7a (logs), r7b (logs-r7b), A/A (logs-aa).

Each session has 5 rounds of dev, cand-a, dev-copy, cand-b at 1k/10k/100k, --runs 1.

  • Null block: dev-copy vs dev.
  • Candidate: the mean of both candidate arms vs dev.
  • Hot prefixes for #1117: home.,cold.,startup.,shutdown,mem..

These are only 5 rounds each (32 exact flips), so I lowered --min-rounds to 5 here. That makes this test weak: the smallest possible p is 1/32. The order was also fixed, not random, so this is a sanity check and not a gate.

Cells. The old 288 comparisons are 170 distinct cells. 99 were copies: single-sample metrics counted three times. 3 are constant counts.

Session Null block (dev-copy vs dev) Candidate flags Result
r1 (r6 cand) pass, 0 cells 0 inconclusive (27 hot cells MDE > 10%)
r6 pass, 0 cells 0 inconclusive (16)
r7a (void: infraternal overlap) pass, 0 cells 2 flagged: 10k search.query p99 (max of 55) 1.055
r7b pass, 0 cells 0 inconclusive (23)
A/A (dev-b as cand) pass, 0 cells 0 inconclusive (21)

The null block passes in every session (5/5). The old comparator failed the same A/A data in 131/288 cells.

Pooled null (stronger check). All 25 dev-copy-vs-dev rounds as one A/A turn (10,000 random flips, 170 cells): 0 cells flagged.

  • 100 random 17-of-25 subsets: 8/100 flag at least one cell. Nominal is ≤5%; the 95% interval for 8/100 is about 3.5–15%. Two reasons it can sit above nominal: the subsets overlap, and these slots had a fixed order (slot 3 vs slot 1). The random order in paired-turn.sh removes the second.

Resolution (from the same 25 null rounds; one-sided, 80% power, hot family of the full matrix):

  • Hot p50 cells: a +10% regression is caught on sync.save_ack, search.query and cold.startup (10k). +20% is needed on 10k home.page p50 (per-round sd 0.19 in log).
  • Per-cell MDE for one 10-round turn: hot p50 5–12%, single-sample startup/first-page 15–35%, p95/p99 from 20–55 samples 25–300%.
  • So with --runs 1, p95/p99 at 10k can't resolve anything under 1.5×. That's a harness limit (20 requests per run), not a comparator setting.

Noise structure. Pairs of dev arms 1 to 7 slots apart have the same spread (10k home.page p50: 0.164 at distance 1, 0.149 at distance 7). The noise is per server run, not slow drift. So tighter interleaving buys nothing; more fresh-server runs (--runs 3) and more rounds do.

#1117 on old data, under the new rule:

  • r7a flags 10k search.query p99 (1.055) and, pooled with r7b, 10k home.page p95 (1.63).
  • Neither reproduces in r7b alone (adj. p 0.66 and 0.34), and r7a was already declared void for overlap.
  • By the confirmation rule, that's not a regression. But the old sessions have a fixed order and only 5 rounds, so the verdict comes from the fresh randomised turn (queued: ~/bin/perf-turn sound-comparator, dev / dev2 / #1117 934ef1c36, --runs 3, 80-min deadline, seed 1117).
### Validation on the existing 14 Nov data (new comparator, head `40760cd33`) **Data.** I used the five fixed-order Files sessions still on perf-01. None was deleted. - `files-s1-perf-c8688c-DE10q9`: r1, r6. r5 is incomplete and was skipped. - `files-s1-perf-r7`: r7a (`logs`), r7b (`logs-r7b`), A/A (`logs-aa`). Each session has 5 rounds of dev, cand-a, dev-copy, cand-b at 1k/10k/100k, `--runs 1`. - Null block: dev-copy vs dev. - Candidate: the mean of both candidate arms vs dev. - Hot prefixes for #1117: `home.,cold.,startup.,shutdown,mem.`. These are only 5 rounds each (32 exact flips), so I lowered `--min-rounds` to 5 here. That makes this test weak: the smallest possible p is 1/32. The order was also fixed, not random, so this is a sanity check and not a gate. **Cells.** The old 288 comparisons are 170 distinct cells. 99 were copies: single-sample metrics counted three times. 3 are constant counts. | Session | Null block (dev-copy vs dev) | Candidate flags | Result | |---|---|---:|---| | r1 (r6 cand) | pass, 0 cells | 0 | inconclusive (27 hot cells MDE > 10%) | | r6 | pass, 0 cells | 0 | inconclusive (16) | | r7a (void: infraternal overlap) | pass, 0 cells | 2 | flagged: 10k `search.query` p99 (max of 55) 1.055 | | r7b | pass, 0 cells | 0 | inconclusive (23) | | A/A (dev-b as cand) | pass, 0 cells | 0 | inconclusive (21) | **The null block passes in every session (5/5).** The old comparator failed the same A/A data in 131/288 cells. **Pooled null (stronger check).** All 25 dev-copy-vs-dev rounds as one A/A turn (10,000 random flips, 170 cells): **0 cells flagged**. - 100 random 17-of-25 subsets: **8/100 flag at least one cell**. Nominal is ≤5%; the 95% interval for 8/100 is about 3.5–15%. Two reasons it can sit above nominal: the subsets overlap, and these slots had a fixed order (slot 3 vs slot 1). The random order in `paired-turn.sh` removes the second. **Resolution (from the same 25 null rounds; one-sided, 80% power, hot family of the full matrix):** - Hot p50 cells: a +10% regression is caught on `sync.save_ack`, `search.query` and `cold.startup` (10k). +20% is needed on 10k `home.page` p50 (per-round sd 0.19 in log). - Per-cell MDE for one 10-round turn: hot p50 5–12%, single-sample startup/first-page 15–35%, p95/p99 from 20–55 samples 25–300%. - So with `--runs 1`, p95/p99 at 10k can't resolve anything under 1.5×. That's a harness limit (20 requests per run), not a comparator setting. **Noise structure.** Pairs of dev arms 1 to 7 slots apart have the same spread (10k `home.page` p50: 0.164 at distance 1, 0.149 at distance 7). The noise is per server run, not slow drift. So tighter interleaving buys nothing; more fresh-server runs (`--runs 3`) and more rounds do. **#1117 on old data, under the new rule:** - r7a flags 10k `search.query` p99 (1.055) and, pooled with r7b, 10k `home.page` p95 (1.63). - Neither reproduces in r7b alone (adj. p 0.66 and 0.34), and r7a was already declared void for overlap. - By the confirmation rule, that's **not a regression**. But the old sessions have a fixed order and only 5 rounds, so the verdict comes from the fresh randomised turn (queued: `~/bin/perf-turn sound-comparator`, dev / dev2 / #1117 `934ef1c36`, `--runs 3`, 80-min deadline, seed 1117).
Author
Owner

#1117 on the new comparator: fresh turn, no regression found; 27 cells are below the 10% resolution

Turn. ~/bin/perf-turn sound-comparator on perf-01. The FIFO slot had no FRONT. A unit on hd01 held perf-02's lock for the whole turn.

  • Measured 12:45–13:59 CET, 14 Nov, with a warm-up arm thrown away first.
  • Driver: perf/vm/paired-turn.sh at #1130 40760cd33, random order per round (seed 1117), 10 rounds, 80-min deadline.
  • Arms: dev, dev2 and cand. Each arm ran calternal-perf --hot-only --sizes 1k,10k,100k --runs 3 --cold-runs 1.
  • Binaries are the r7 ones, sha256-checked: dev = dev2 1160fe3e… (dev 796d80cba), cand 09fdc5db… (#1117 934ef1c36).
  • Overlap: infraternal #260's last post is J629 at 11:24 UTC, before this turn. All 30 arms exited 0.

Comparator. python3 perf/compare.py layout.json --hot '*' (#1130 86e8d580b).

  • All 172 distinct cells are treated as hot, because r7's start_home stamp runs on every request.
  • Exact test: 1,024 sign flips. Westfall–Young max-T, α = 5% family-wise.
Block Cells Ratio > 1.05 Ratio < 0.95 Smallest adjusted p Result
Null: dev2 vs dev (two-sided) 172 23 18 0.408 pass
#1117 vs dev (one-sided) 172 22 27 0.883 0 flagged
  • #1117 has as many cells above 1.05 as dev has against itself: 22 vs 23.
  • No cell comes near the threshold: the smallest adjusted p is 0.88.
  • The r7 watch cells are all flat or better now:
    • 10k home.page p95: 0.99 (upper 95% bound 1.43)
    • 10k home.page_title p95: 0.83 (bound 0.99)
    • 10k search.prefix p95: 0.98
    • 10k search.query p95: 0.98 (bound 1.04)

Verdict under the new rule: no regression found. Not yet READY: resolution.

  • 27 hot p50/value cells can't rule out a 10% regression (MDE at 80% power, below).
  • Most are single-shot numbers taken once per server life: cold.startup, startup.healthz, shutdown, home.first_page, search.first_query, open.long_note, with MDE 12–60%.
  • The rest are p50 cells with a wide spread: 10k/100k home.page (14%/21%), home.page_title (11%/17%), open.note (11%/35%), 10k open.api_get (17%), search.typo (24%), 100k sync.round_trip (12%).

Next (decided):

  1. A second #1117 turn, pooled with this one. It's queued after the two #894 turns the orchestrator asked for. Pooling about halves the variance, which brings the p50 cells under 10%.
  2. The single-shot cells won't reach 10% from pooling alone. They need more samples per arm (--cold-runs 3, or a startup-only turn at 1k+10k). I'll run that as the second turn's design: --runs 3 --cold-runs 3, sizes split if needed to stay ≤ 90 min.
Unresolved hot cells (ratio, upper 95%, MDE)
Notes Metric Quantile Ratio Upper 95% MDE 80%
1000 cold.startup value 1.1411 1.3591 29.6%
1000 home.first_page value 0.8796 1.0331 26.9%
1000 journal.catch_up value 1.0404 1.1111 10.2%
1000 journal.page p50 0.9685 1.2306 42.6%
1000 search.first_query value 0.9576 1.0616 16.5%
1000 shutdown value 1.1449 1.3509 27.8%
1000 startup.healthz value 1.0122 1.1685 23.7%
10000 cold.startup value 1.0195 1.1015 12.1%
10000 home.first_page value 0.9434 1.1652 36.7%
10000 home.page p50 0.9218 1.0046 13.6%
10000 home.page_title p50 0.9798 1.0494 10.7%
10000 open.api_get p50 0.9894 1.0994 16.9%
10000 open.long_note value 1.5342 2.1092 60.3%
10000 open.note p50 0.9540 1.0229 10.9%
10000 search.first_query value 1.0958 1.3361 34.1%
10000 search.typo p50 1.0215 1.1834 24.4%
10000 shutdown value 1.1364 1.5484 58.1%
100000 cold.startup value 1.1396 1.3532 29.0%
100000 home.first_page value 1.2076 1.4300 28.5%
100000 home.page p50 1.0557 1.1985 20.7%
100000 home.page_title p50 1.0486 1.1635 16.7%
100000 open.note p50 0.8838 1.0796 34.5%
100000 search.catch_up value 0.8707 1.0315 28.5%
100000 search.first_query value 1.0745 1.2148 19.9%
100000 shutdown value 0.9379 1.0619 20.2%
100000 startup.healthz value 1.0938 1.3250 32.9%
100000 sync.round_trip p50 1.0179 1.0967 11.7%
### #1117 on the new comparator: fresh turn, **no regression found**; 27 cells are below the 10% resolution **Turn.** `~/bin/perf-turn sound-comparator` on perf-01. The FIFO slot had no FRONT. A unit on hd01 held perf-02's lock for the whole turn. - Measured 12:45–13:59 CET, 14 Nov, with a warm-up arm thrown away first. - Driver: `perf/vm/paired-turn.sh` at #1130 `40760cd33`, random order per round (seed 1117), 10 rounds, 80-min deadline. - Arms: dev, dev2 and cand. Each arm ran `calternal-perf --hot-only --sizes 1k,10k,100k --runs 3 --cold-runs 1`. - Binaries are the r7 ones, sha256-checked: dev = dev2 `1160fe3e…` (dev `796d80cba`), cand `09fdc5db…` (#1117 `934ef1c36`). - Overlap: infraternal #260's last post is J629 at 11:24 UTC, before this turn. All 30 arms exited 0. **Comparator.** `python3 perf/compare.py layout.json --hot '*'` (#1130 `86e8d580b`). - All 172 distinct cells are treated as hot, because r7's `start_home` stamp runs on every request. - Exact test: 1,024 sign flips. Westfall–Young max-T, α = 5% family-wise. | Block | Cells | Ratio > 1.05 | Ratio < 0.95 | Smallest adjusted p | Result | |---|---:|---:|---:|---:|---| | Null: dev2 vs dev (two-sided) | 172 | 23 | 18 | 0.408 | **pass** | | #1117 vs dev (one-sided) | 172 | 22 | 27 | 0.883 | **0 flagged** | - #1117 has as many cells above 1.05 as dev has against itself: 22 vs 23. - No cell comes near the threshold: the smallest adjusted p is 0.88. - The r7 watch cells are all flat or better now: - 10k `home.page` p95: 0.99 (upper 95% bound 1.43) - 10k `home.page_title` p95: 0.83 (bound 0.99) - 10k `search.prefix` p95: 0.98 - 10k `search.query` p95: 0.98 (bound 1.04) **Verdict under the new rule: no regression found. Not yet READY: resolution.** - 27 hot p50/value cells can't rule out a 10% regression (MDE at 80% power, below). - Most are single-shot numbers taken once per server life: `cold.startup`, `startup.healthz`, `shutdown`, `home.first_page`, `search.first_query`, `open.long_note`, with MDE 12–60%. - The rest are p50 cells with a wide spread: 10k/100k `home.page` (14%/21%), `home.page_title` (11%/17%), `open.note` (11%/35%), 10k `open.api_get` (17%), `search.typo` (24%), 100k `sync.round_trip` (12%). **Next (decided):** 1. A second #1117 turn, pooled with this one. It's queued after the two #894 turns the orchestrator asked for. Pooling about halves the variance, which brings the p50 cells under 10%. 2. The single-shot cells won't reach 10% from pooling alone. They need more samples per arm (`--cold-runs 3`, or a startup-only turn at 1k+10k). I'll run that as the second turn's design: `--runs 3 --cold-runs 3`, sizes split if needed to stay ≤ 90 min. <details><summary>Unresolved hot cells (ratio, upper 95%, MDE)</summary> | Notes | Metric | Quantile | Ratio | Upper 95% | MDE 80% | |---:|---|---|---:|---:|---:| | 1000 | cold.startup | value | 1.1411 | 1.3591 | 29.6% | | 1000 | home.first_page | value | 0.8796 | 1.0331 | 26.9% | | 1000 | journal.catch_up | value | 1.0404 | 1.1111 | 10.2% | | 1000 | journal.page | p50 | 0.9685 | 1.2306 | 42.6% | | 1000 | search.first_query | value | 0.9576 | 1.0616 | 16.5% | | 1000 | shutdown | value | 1.1449 | 1.3509 | 27.8% | | 1000 | startup.healthz | value | 1.0122 | 1.1685 | 23.7% | | 10000 | cold.startup | value | 1.0195 | 1.1015 | 12.1% | | 10000 | home.first_page | value | 0.9434 | 1.1652 | 36.7% | | 10000 | home.page | p50 | 0.9218 | 1.0046 | 13.6% | | 10000 | home.page_title | p50 | 0.9798 | 1.0494 | 10.7% | | 10000 | open.api_get | p50 | 0.9894 | 1.0994 | 16.9% | | 10000 | open.long_note | value | 1.5342 | 2.1092 | 60.3% | | 10000 | open.note | p50 | 0.9540 | 1.0229 | 10.9% | | 10000 | search.first_query | value | 1.0958 | 1.3361 | 34.1% | | 10000 | search.typo | p50 | 1.0215 | 1.1834 | 24.4% | | 10000 | shutdown | value | 1.1364 | 1.5484 | 58.1% | | 100000 | cold.startup | value | 1.1396 | 1.3532 | 29.0% | | 100000 | home.first_page | value | 1.2076 | 1.4300 | 28.5% | | 100000 | home.page | p50 | 1.0557 | 1.1985 | 20.7% | | 100000 | home.page_title | p50 | 1.0486 | 1.1635 | 16.7% | | 100000 | open.note | p50 | 0.8838 | 1.0796 | 34.5% | | 100000 | search.catch_up | value | 0.8707 | 1.0315 | 28.5% | | 100000 | search.first_query | value | 1.0745 | 1.2148 | 19.9% | | 100000 | shutdown | value | 0.9379 | 1.0619 | 20.2% | | 100000 | startup.healthz | value | 1.0938 | 1.3250 | 32.9% | | 100000 | sync.round_trip | p50 | 1.0179 | 1.0967 | 11.7% | </details>
Author
Owner

#894 turn A on the new comparator (#1130): the search.query +8.6% and the sync.save_ack p95 flips don't reproduce. They're order and noise effects.

Asked by the orchestrator: mirrored arm order, a dev + inert-change layout arm, and confirmation in a second turn. All three are now in #1130.

Arms. All arms were built by me on dev-01 in fresh worktrees with the same toolchain, relayed through hd01 and sha256-checked on both ends.

Arm Source calternal sha256 Size
dev, dev2 merge base 796d80cba (dev2 is a byte copy) c3e9a68f… 32,795,648
inert 796d80cba + perf/inert-patch.py --seed 1 --functions 5700 fd617d16… 34,128,128
cand #894 9db7c845d 737e2eee… 34,113,648
  • The inert patch adds 5,700 never-run functions in crates/tasks, reached only behind black_box(false) from TasksPlugin::new. That's the same crate and about the same size growth as #894, so fat LTO reshuffles the layout in a similar way.
  • One harness for every arm: calternal-perf 2b5bf648… from 796d80cba.

Turn A. ~/bin/perf-turn sound-comparator on perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn.

  • Measured 14:08–15:15 CET, 14 Nov.
  • Command: perf/vm/paired-turn.sh --order mirrored --seed 894 --warmup, each arm calternal-perf --sizes 10k --runs 3 --cold-runs 0 (full scenario set, as the #894 lane ran it).
  • 12 rounds, 48 arms plus the warm-up, all exit 0. Round 1's order was cand dev inert dev2, round 2 its mirror.

Comparator. python3 perf/compare.py tA/layout.json --layout inert --hot sync.,storm.,uploads.,trash.,open.

  • Exact: 4,096 sign flips. Westfall–Young max-T, α = 5% per family.
  • 60 cells; 1 was skipped because of a zero value.
Null block tA: dev2 vs dev (two-sided)                                      n=60 >1.05:6 <0.95:3 minp=0.316
      search.query p50 ratio 1.0115 U95 1.0643 MDE 7.9% p 1.0000
      sync.save_ack p50 ratio 1.0040 U95 1.0131 MDE 1.4% p 1.0000
      sync.save_ack p95 ratio 1.1119 U95 1.2547 MDE 19.7% p 0.9951
Layout block: inert vs dev (two-sided, information: how much an inert chang n=60 >1.05:10 <0.95:3 minp=0.259
      search.query p50 ratio 1.0069 U95 1.0611 MDE 8.1% p 1.0000
      sync.save_ack p50 ratio 1.0418 U95 1.0808 MDE 5.6% p 0.9521
      sync.save_ack p95 ratio 1.1887 U95 1.3539 MDE 21.4% p 0.7983
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=30 >1.05:2 <0.95:1 minp=0.363
      sync.save_ack p50 ratio 1.0066 U95 1.0176 MDE 1.6% p 0.9539
      sync.save_ack p95 ratio 1.0022 U95 1.0859 MDE 12.7% p 1.0000
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=30 >1.05:0 <0.95:4 minp=0.884
      sync.save_ack p50 ratio 0.9663 U95 1.0024 MDE 5.6% p 1.0000
      sync.save_ack p95 ratio 0.8432 U95 0.9784 MDE 24.8% p 1.0000
Candidate, smoke: cand vs dev (one-sided, slower = flagged)                 n=30 >1.05:3 <0.95:1 minp=0.516
      search.query p50 ratio 1.0121 U95 1.0579 MDE 6.8% p 0.9990
Candidate, smoke: cand vs layout arm inert (one-sided)                      n=30 >1.05:1 <0.95:3 minp=0.242
      search.query p50 ratio 1.0052 U95 1.0520 MDE 7.0% p 0.9978

What this says about the two lane findings:

  • search.query p50:
    • #894 vs dev ×1.012 (upper 95% ×1.058, MDE 6.8%).
    • #894 vs inert ×1.005.
    • dev2 vs dev (the same binary) ×1.012.
    • The lane's +8.6% came from a rotation that always ran dev first. With mirrored order, #894 is as far from dev as dev is from itself.
  • sync.save_ack p95:
    • #894 vs dev ×1.002.
    • dev2 vs dev ×1.112, and inert vs dev ×1.19.
    • The tail moves ±10–20% between identical binaries, so the lane's −12%/+11% swings are noise. p50 is ×1.007 (upper 95% ×1.018, MDE 1.6%).
  • Layout effect is real but small here: inert vs dev has 10 of 60 cells above ×1.05, against 6 for dev2 vs dev. No layout cell reaches significance (smallest adjusted p 0.26).
  • Exact mirror-pair check (--pairs, 6 units, 64 flips): 0 flags.

Turn A verdict: no regression against dev or the layout arm on any hot or smoke cell. One hot cell is unresolved: open.long_note (single-shot per run, MDE 65%; its ratio is 0.83).

Turn B (tasks-bench, same four arms, mirrored) is running now. The #894 verdict follows when B is in.

### #894 turn A on the new comparator (#1130): the `search.query` +8.6% and the `sync.save_ack` p95 flips don't reproduce. They're order and noise effects. Asked by the orchestrator: mirrored arm order, a dev + inert-change layout arm, and confirmation in a second turn. All three are now in #1130. **Arms.** All arms were built by me on dev-01 in fresh worktrees with the same toolchain, relayed through hd01 and sha256-checked on both ends. | Arm | Source | `calternal` sha256 | Size | |---|---|---|---:| | dev, dev2 | merge base `796d80cba` (dev2 is a byte copy) | `c3e9a68f…` | 32,795,648 | | inert | `796d80cba` + `perf/inert-patch.py --seed 1 --functions 5700` | `fd617d16…` | 34,128,128 | | cand | #894 `9db7c845d` | `737e2eee…` | 34,113,648 | - The inert patch adds 5,700 never-run functions in `crates/tasks`, reached only behind `black_box(false)` from `TasksPlugin::new`. That's the same crate and about the same size growth as #894, so fat LTO reshuffles the layout in a similar way. - One harness for every arm: `calternal-perf` `2b5bf648…` from `796d80cba`. **Turn A.** `~/bin/perf-turn sound-comparator` on perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn. - Measured 14:08–15:15 CET, 14 Nov. - Command: `perf/vm/paired-turn.sh --order mirrored --seed 894 --warmup`, each arm `calternal-perf --sizes 10k --runs 3 --cold-runs 0` (full scenario set, as the #894 lane ran it). - 12 rounds, 48 arms plus the warm-up, all exit 0. Round 1's order was `cand dev inert dev2`, round 2 its mirror. **Comparator.** `python3 perf/compare.py tA/layout.json --layout inert --hot sync.,storm.,uploads.,trash.,open.` - Exact: 4,096 sign flips. Westfall–Young max-T, α = 5% per family. - 60 cells; 1 was skipped because of a zero value. ``` Null block tA: dev2 vs dev (two-sided) n=60 >1.05:6 <0.95:3 minp=0.316 search.query p50 ratio 1.0115 U95 1.0643 MDE 7.9% p 1.0000 sync.save_ack p50 ratio 1.0040 U95 1.0131 MDE 1.4% p 1.0000 sync.save_ack p95 ratio 1.1119 U95 1.2547 MDE 19.7% p 0.9951 Layout block: inert vs dev (two-sided, information: how much an inert chang n=60 >1.05:10 <0.95:3 minp=0.259 search.query p50 ratio 1.0069 U95 1.0611 MDE 8.1% p 1.0000 sync.save_ack p50 ratio 1.0418 U95 1.0808 MDE 5.6% p 0.9521 sync.save_ack p95 ratio 1.1887 U95 1.3539 MDE 21.4% p 0.7983 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=30 >1.05:2 <0.95:1 minp=0.363 sync.save_ack p50 ratio 1.0066 U95 1.0176 MDE 1.6% p 0.9539 sync.save_ack p95 ratio 1.0022 U95 1.0859 MDE 12.7% p 1.0000 Candidate, hot paths: cand vs layout arm inert (one-sided) n=30 >1.05:0 <0.95:4 minp=0.884 sync.save_ack p50 ratio 0.9663 U95 1.0024 MDE 5.6% p 1.0000 sync.save_ack p95 ratio 0.8432 U95 0.9784 MDE 24.8% p 1.0000 Candidate, smoke: cand vs dev (one-sided, slower = flagged) n=30 >1.05:3 <0.95:1 minp=0.516 search.query p50 ratio 1.0121 U95 1.0579 MDE 6.8% p 0.9990 Candidate, smoke: cand vs layout arm inert (one-sided) n=30 >1.05:1 <0.95:3 minp=0.242 search.query p50 ratio 1.0052 U95 1.0520 MDE 7.0% p 0.9978 ``` **What this says about the two lane findings:** - **`search.query` p50:** - #894 vs dev ×1.012 (upper 95% ×1.058, MDE 6.8%). - #894 vs inert ×1.005. - dev2 vs dev (the same binary) ×1.012. - The lane's +8.6% came from a rotation that always ran dev first. With mirrored order, #894 is as far from dev as dev is from itself. - **`sync.save_ack` p95:** - #894 vs dev ×1.002. - dev2 vs dev ×1.112, and inert vs dev ×1.19. - The tail moves ±10–20% between identical binaries, so the lane's −12%/+11% swings are noise. p50 is ×1.007 (upper 95% ×1.018, MDE 1.6%). - **Layout effect is real but small here:** inert vs dev has 10 of 60 cells above ×1.05, against 6 for dev2 vs dev. No layout cell reaches significance (smallest adjusted p 0.26). - **Exact mirror-pair check** (`--pairs`, 6 units, 64 flips): 0 flags. **Turn A verdict: no regression** against dev or the layout arm on any hot or smoke cell. One hot cell is unresolved: `open.long_note` (single-shot per run, MDE 65%; its ratio is 0.83). Turn B (`tasks-bench`, same four arms, mirrored) is running now. The #894 verdict follows when B is in.
Author
Owner

#894 turn B (tasks-bench): VOID by the null-block rule, to be re-run. #894 itself has 0 flags.

Turn. ~/bin/perf-turn sound-comparator on perf-01 (no FRONT; behind nf3oh-p1), with perf-02's lock held by a unit on hd01.

  • Measured 16:52–18:08 CET, 14 Nov.
  • Driver: perf/vm/paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8942 --warmup.
  • 30 rounds, 120 arms, no failed arm.
  • Every arm, dev's included, failed tasks-bench's own budget gates (tasks.update p95 > 40 ms, cold growth > 10%). They are kept as measured runs (#1130 e61888a13).
  • An earlier attempt at 16:34 stopped on the warm-up for that reason, before any measured round.

Binaries (sha256 on both ends), tasks-bench per arm because it links the code it measures:

Arm sha256
dev = dev2 (796d80cba) 20b21dea…
inert (796d80cba + inert padding) 691ade05…
cand (9db7c845d) 16532627…

Comparator. compare.py tB/layout.json --layout inert --hot tasks., 41 cells, 10,000 random flips.

Null block tB: dev2 vs dev (two-sided)                                      n=41 >1.05:2 <0.95:0 minp=0.050
      tasks.anytime p99 ratio 1.0509 U95 1.1168 MDE 9.6% p 0.9822
      tasks.cold_tasks value ratio 0.9832 U95 0.9918 MDE 1.3% p 0.0495
      tasks.counts p95 ratio 1.0146 U95 1.0564 MDE 6.3% p 0.9999
      tasks.counts p99 ratio 1.0138 U95 1.0686 MDE 8.2% p 0.9999
      tasks.today p50 ratio 0.9870 U95 1.0054 MDE 2.8% p 0.9933
      tasks.write_warm p50 ratio 0.9971 U95 1.0053 MDE 1.3% p 0.9999
      tasks.write_warm p95 ratio 0.9644 U95 1.0160 MDE 8.1% p 0.9933
Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:0 <0.95:3 minp=0.221
      tasks.anytime p99 ratio 1.0213 U95 1.0753 MDE 8.0% p 1.0000
      tasks.cold_tasks value ratio 0.9974 U95 1.0204 MDE 3.5% p 1.0000
      tasks.counts p95 ratio 1.0037 U95 1.0416 MDE 5.7% p 1.0000
      tasks.counts p99 ratio 1.0353 U95 1.1354 MDE 14.9% p 1.0000
      tasks.today p50 ratio 0.9903 U95 1.0045 MDE 2.2% p 0.9968
      tasks.write_warm p50 ratio 0.9946 U95 1.0041 MDE 1.4% p 0.9993
      tasks.write_warm p95 ratio 0.9657 U95 1.0159 MDE 7.9% p 0.9968
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=41 >1.05:0 <0.95:1 minp=0.124
      tasks.anytime p99 ratio 1.0353 U95 1.0881 MDE 7.8% p 0.9071
      tasks.cold_tasks value ratio 0.9909 U95 1.0001 MDE 1.4% p 1.0000
      tasks.counts p95 ratio 1.0037 U95 1.0414 MDE 5.7% p 0.9993
      tasks.counts p99 ratio 1.0470 U95 1.1542 MDE 15.8% p 0.9781
      tasks.today p50 ratio 0.9853 U95 1.0057 MDE 3.1% p 1.0000
      tasks.write_warm p50 ratio 0.9981 U95 1.0073 MDE 1.4% p 1.0000
      tasks.write_warm p95 ratio 0.9791 U95 1.0260 MDE 7.3% p 1.0000
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=41 >1.05:1 <0.95:0 minp=0.777
      tasks.anytime p99 ratio 1.0136 U95 1.0786 MDE 9.8% p 0.9917
      tasks.cold_tasks value ratio 0.9936 U95 1.0136 MDE 3.0% p 0.9995
      tasks.counts p95 ratio 1.0000 U95 1.0403 MDE 6.1% p 0.9950
      tasks.counts p99 ratio 1.0113 U95 1.1414 MDE 19.9% p 0.9933
      tasks.today p50 ratio 0.9950 U95 1.0131 MDE 2.8% p 0.9995
      tasks.write_warm p50 ratio 1.0035 U95 1.0110 MDE 1.1% p 0.9712
      tasks.write_warm p95 ratio 1.0139 U95 1.0423 MDE 4.2% p 0.9702

Reading:

  • Null block: tasks.cold_tasks dev2 vs dev ×0.983, adjusted p 0.0495. That's just under α = 0.05 on one cell of 41, and it's the ~1-in-20 void rate the design accepts. The rule says void and re-run, so I don't use this turn for the verdict.
  • #894, for the record:
    • No cell flagged against dev (smallest adjusted p 0.12) or against the inert arm (0.78).
    • tasks.today p50 ×0.985 (upper 95% ×1.006, MDE 3.1%). The lane's r3 +9.2% doesn't reproduce.
    • tasks.counts p95 ×1.004, p99 ×1.047 (MDE 16%). tasks.write_warm p50 ×0.998 (MDE 1.4%).
  • Re-run: queued after the second #1117 turn. My lane holds one ticket at a time, and I'm still behind Notes Float.
### #894 turn B (`tasks-bench`): **VOID by the null-block rule**, to be re-run. #894 itself has 0 flags. **Turn.** `~/bin/perf-turn sound-comparator` on perf-01 (no FRONT; behind `nf3oh-p1`), with perf-02's lock held by a unit on hd01. - Measured 16:52–18:08 CET, 14 Nov. - Driver: `perf/vm/paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8942 --warmup`. - 30 rounds, 120 arms, no failed arm. - Every arm, dev's included, failed `tasks-bench`'s own budget gates (`tasks.update` p95 > 40 ms, cold growth > 10%). They are kept as measured runs (#1130 `e61888a13`). - An earlier attempt at 16:34 stopped on the warm-up for that reason, before any measured round. **Binaries** (sha256 on both ends), `tasks-bench` per arm because it links the code it measures: | Arm | sha256 | |---|---| | dev = dev2 (`796d80cba`) | `20b21dea…` | | inert (`796d80cba` + inert padding) | `691ade05…` | | cand (`9db7c845d`) | `16532627…` | **Comparator.** `compare.py tB/layout.json --layout inert --hot tasks.`, 41 cells, 10,000 random flips. ``` Null block tB: dev2 vs dev (two-sided) n=41 >1.05:2 <0.95:0 minp=0.050 tasks.anytime p99 ratio 1.0509 U95 1.1168 MDE 9.6% p 0.9822 tasks.cold_tasks value ratio 0.9832 U95 0.9918 MDE 1.3% p 0.0495 tasks.counts p95 ratio 1.0146 U95 1.0564 MDE 6.3% p 0.9999 tasks.counts p99 ratio 1.0138 U95 1.0686 MDE 8.2% p 0.9999 tasks.today p50 ratio 0.9870 U95 1.0054 MDE 2.8% p 0.9933 tasks.write_warm p50 ratio 0.9971 U95 1.0053 MDE 1.3% p 0.9999 tasks.write_warm p95 ratio 0.9644 U95 1.0160 MDE 8.1% p 0.9933 Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:0 <0.95:3 minp=0.221 tasks.anytime p99 ratio 1.0213 U95 1.0753 MDE 8.0% p 1.0000 tasks.cold_tasks value ratio 0.9974 U95 1.0204 MDE 3.5% p 1.0000 tasks.counts p95 ratio 1.0037 U95 1.0416 MDE 5.7% p 1.0000 tasks.counts p99 ratio 1.0353 U95 1.1354 MDE 14.9% p 1.0000 tasks.today p50 ratio 0.9903 U95 1.0045 MDE 2.2% p 0.9968 tasks.write_warm p50 ratio 0.9946 U95 1.0041 MDE 1.4% p 0.9993 tasks.write_warm p95 ratio 0.9657 U95 1.0159 MDE 7.9% p 0.9968 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=41 >1.05:0 <0.95:1 minp=0.124 tasks.anytime p99 ratio 1.0353 U95 1.0881 MDE 7.8% p 0.9071 tasks.cold_tasks value ratio 0.9909 U95 1.0001 MDE 1.4% p 1.0000 tasks.counts p95 ratio 1.0037 U95 1.0414 MDE 5.7% p 0.9993 tasks.counts p99 ratio 1.0470 U95 1.1542 MDE 15.8% p 0.9781 tasks.today p50 ratio 0.9853 U95 1.0057 MDE 3.1% p 1.0000 tasks.write_warm p50 ratio 0.9981 U95 1.0073 MDE 1.4% p 1.0000 tasks.write_warm p95 ratio 0.9791 U95 1.0260 MDE 7.3% p 1.0000 Candidate, hot paths: cand vs layout arm inert (one-sided) n=41 >1.05:1 <0.95:0 minp=0.777 tasks.anytime p99 ratio 1.0136 U95 1.0786 MDE 9.8% p 0.9917 tasks.cold_tasks value ratio 0.9936 U95 1.0136 MDE 3.0% p 0.9995 tasks.counts p95 ratio 1.0000 U95 1.0403 MDE 6.1% p 0.9950 tasks.counts p99 ratio 1.0113 U95 1.1414 MDE 19.9% p 0.9933 tasks.today p50 ratio 0.9950 U95 1.0131 MDE 2.8% p 0.9995 tasks.write_warm p50 ratio 1.0035 U95 1.0110 MDE 1.1% p 0.9712 tasks.write_warm p95 ratio 1.0139 U95 1.0423 MDE 4.2% p 0.9702 ``` **Reading:** - **Null block:** `tasks.cold_tasks` dev2 vs dev ×0.983, adjusted p 0.0495. That's just under α = 0.05 on one cell of 41, and it's the ~1-in-20 void rate the design accepts. The rule says void and re-run, so I don't use this turn for the verdict. - **#894, for the record:** - No cell flagged against dev (smallest adjusted p 0.12) or against the inert arm (0.78). - `tasks.today` p50 ×0.985 (upper 95% ×1.006, MDE 3.1%). The lane's r3 +9.2% doesn't reproduce. - `tasks.counts` p95 ×1.004, p99 ×1.047 (MDE 16%). `tasks.write_warm` p50 ×0.998 (MDE 1.4%). - **Re-run:** queued after the second #1117 turn. My lane holds one ticket at a time, and I'm still behind Notes Float.
Author
Owner

#1117: second turn and pooled verdict. No regression found; startup/shutdown single-shot cells still under-resolved

Turn 2. ~/bin/perf-turn sound-comparator on perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn.

  • Measured 18:52–19:55 CET, 14 Nov.
  • Same binaries as turn 1 (sha256-checked).
  • paired-turn.sh --order mirrored --seed 11172 --warmup, each arm calternal-perf --hot-only --sizes 1k,10k,100k --runs 3 --cold-runs 3.
  • 6 rounds, all arms exit 0.

Pooled turns 1+2. compare.py t1/layout.json t2/layout.json --hot '*': 16 rounds, 65,536 exact flips, 172 cells, α = 5%. Each turn's null block is tested on its own.

Null block t1: dev2 vs dev (two-sided)                                      n=172 >1.05:23 <0.95:18 minp=0.408
Null block t2: dev2 vs dev (two-sided)                                      n=172 >1.05:25 <0.95:21 minp=0.312
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=172 >1.05:15 <0.95:23 minp=0.440
  • Null blocks: both pass.
  • #1117 vs dev: 0 flagged; the smallest adjusted p is 0.44. 15 cells are above ×1.05 and 23 below ×0.95. dev against itself shows 23–25 above ×1.05, so #1117 is at or below dev's own noise.
  • Verdict: no regression found on any cell at a 5% family-wise false-alarm rate.

What the gate can't yet rule out. 21 hot cells have an MDE above 10%:

Notes Metric Quantile Ratio Upper 95% MDE 80%
1000 cold.startup value 1.0943 1.2168 17.2%
1000 home.first_page value 0.8699 0.9784 19.2%
1000 journal.page p50 0.9696 1.1249 24.9%
1000 search.first_query value 0.9729 1.0607 13.8%
1000 shutdown value 1.0874 1.2035 16.4%
1000 startup.healthz value 1.0005 1.1027 15.6%
10000 home.first_page value 0.9003 1.0662 28.7%
10000 open.long_note value 1.4867 1.8795 41.9%
10000 search.first_query value 1.1464 1.2989 20.5%
10000 search.typo p50 0.9846 1.0870 15.9%
10000 shutdown value 1.0391 1.3058 40.7%
100000 cold.startup value 1.0825 1.2072 17.7%
100000 home.first_page value 1.1432 1.4057 36.2%
100000 home.page p50 1.0375 1.1241 12.7%
100000 home.page_title p50 1.0352 1.1110 11.1%
100000 open.long_note value 0.9245 0.9887 10.6%
100000 open.note p50 0.8975 1.0410 24.8%
100000 search.catch_up value 0.9173 1.0176 16.8%
100000 search.first_query value 1.0352 1.1176 12.1%
100000 shutdown value 0.9608 1.0348 11.7%
100000 startup.healthz value 1.0582 1.1922 19.5%
  • These are single-shot numbers per server life, plus 100k home.page/home.page_title p50 at 11–13%.
  • Point estimates worth a look: 1k cold.startup ×1.09, 1k shutdown ×1.09, 10k open.long_note ×1.49 (MDE 42%), 10k search.first_query ×1.15. #1117 does add work exactly there: a Home-root watcher at start, and joining the walk thread at shutdown. So a small startup/shutdown cost is plausible, and these numbers can't exclude it.
  • Next (decided): one focused turn on startup/shutdown/first-request cells with many server starts per arm. Plan: --sizes 1k,10k --runs 10 --cold-runs 5 --hot-only, mirrored, with an inert arm. It runs after #894's tasks-bench re-run (my one ticket is queued). Until then, #1117 is not READY, for resolution only. Nothing is flagged.
### #1117: second turn and pooled verdict. **No regression found**; startup/shutdown single-shot cells still under-resolved **Turn 2.** `~/bin/perf-turn sound-comparator` on perf-01, no FRONT. A unit on hd01 held perf-02's lock for the whole turn. - Measured 18:52–19:55 CET, 14 Nov. - Same binaries as turn 1 (sha256-checked). - `paired-turn.sh --order mirrored --seed 11172 --warmup`, each arm `calternal-perf --hot-only --sizes 1k,10k,100k --runs 3 --cold-runs 3`. - 6 rounds, all arms exit 0. **Pooled turns 1+2.** `compare.py t1/layout.json t2/layout.json --hot '*'`: 16 rounds, 65,536 exact flips, 172 cells, α = 5%. Each turn's null block is tested on its own. ``` Null block t1: dev2 vs dev (two-sided) n=172 >1.05:23 <0.95:18 minp=0.408 Null block t2: dev2 vs dev (two-sided) n=172 >1.05:25 <0.95:21 minp=0.312 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=172 >1.05:15 <0.95:23 minp=0.440 ``` - **Null blocks:** both pass. - **#1117 vs dev:** 0 flagged; the smallest adjusted p is 0.44. 15 cells are above ×1.05 and 23 below ×0.95. dev against itself shows 23–25 above ×1.05, so #1117 is at or below dev's own noise. - **Verdict: no regression found on any cell at a 5% family-wise false-alarm rate.** **What the gate can't yet rule out.** 21 hot cells have an MDE above 10%: | Notes | Metric | Quantile | Ratio | Upper 95% | MDE 80% | |---:|---|---|---:|---:|---:| | 1000 | cold.startup | value | 1.0943 | 1.2168 | 17.2% | | 1000 | home.first_page | value | 0.8699 | 0.9784 | 19.2% | | 1000 | journal.page | p50 | 0.9696 | 1.1249 | 24.9% | | 1000 | search.first_query | value | 0.9729 | 1.0607 | 13.8% | | 1000 | shutdown | value | 1.0874 | 1.2035 | 16.4% | | 1000 | startup.healthz | value | 1.0005 | 1.1027 | 15.6% | | 10000 | home.first_page | value | 0.9003 | 1.0662 | 28.7% | | 10000 | open.long_note | value | 1.4867 | 1.8795 | 41.9% | | 10000 | search.first_query | value | 1.1464 | 1.2989 | 20.5% | | 10000 | search.typo | p50 | 0.9846 | 1.0870 | 15.9% | | 10000 | shutdown | value | 1.0391 | 1.3058 | 40.7% | | 100000 | cold.startup | value | 1.0825 | 1.2072 | 17.7% | | 100000 | home.first_page | value | 1.1432 | 1.4057 | 36.2% | | 100000 | home.page | p50 | 1.0375 | 1.1241 | 12.7% | | 100000 | home.page_title | p50 | 1.0352 | 1.1110 | 11.1% | | 100000 | open.long_note | value | 0.9245 | 0.9887 | 10.6% | | 100000 | open.note | p50 | 0.8975 | 1.0410 | 24.8% | | 100000 | search.catch_up | value | 0.9173 | 1.0176 | 16.8% | | 100000 | search.first_query | value | 1.0352 | 1.1176 | 12.1% | | 100000 | shutdown | value | 0.9608 | 1.0348 | 11.7% | | 100000 | startup.healthz | value | 1.0582 | 1.1922 | 19.5% | - These are single-shot numbers per server life, plus 100k `home.page`/`home.page_title` p50 at 11–13%. - Point estimates worth a look: 1k `cold.startup` ×1.09, 1k `shutdown` ×1.09, 10k `open.long_note` ×1.49 (MDE 42%), 10k `search.first_query` ×1.15. #1117 does add work exactly there: a Home-root watcher at start, and joining the walk thread at shutdown. So a small startup/shutdown cost is plausible, and these numbers can't exclude it. - **Next (decided):** one focused turn on startup/shutdown/first-request cells with many server starts per arm. Plan: `--sizes 1k,10k --runs 10 --cold-runs 5 --hot-only`, mirrored, with an inert arm. It runs after #894's `tasks-bench` re-run (my one ticket is queued). Until then, #1117 is **not READY**, for resolution only. Nothing is flagged.
Author
Owner

#894 perf verdict on the new comparator: no regression found. search.query and sync.save_ack were artefacts; tasks.describe p95/p99 is a dev-arm/layout effect, not #894's code.

Turn C (tasks-bench, re-run of void turn B). ~/bin/perf-turn sound-comparator on perf-01, behind Notes Float tickets, no FRONT. perf-02's lock was held by a unit on hd01.

  • Measured 20:36–21:53 CET, 14 Nov.
  • paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8943 --warmup.
  • Arms: dev, dev2, inert, cand (binaries as in turn B, sha256-checked).
  • 28 rounds, 0 failed arms. Every arm, dev's included, fails tasks-bench's own tasks.update and cold-growth budgets; those runs are kept.

Command: compare.py tC/layout.json --layout inert --hot tasks.. 41 cells, 10,000 flips. Exit 0 (PASS). The null block passes (smallest adjusted p 0.059).

Null block tC: dev2 vs dev (two-sided)                                      n=41 >1.05:2 <0.95:0 minp=0.059
      tasks.cold_tasks value ratio 1.0210 U95 1.0377 MDE 2.5% p 0.5635
      tasks.counts p95 ratio 1.0313 U95 1.0954 MDE 9.5% p 0.9997
      tasks.describe p95 ratio 1.0182 U95 1.0323 MDE 2.1% p 0.5242
      tasks.describe p99 ratio 1.0426 U95 1.0653 MDE 3.3% p 0.0589
      tasks.today p50 ratio 1.0068 U95 1.0312 MDE 3.7% p 1.0000
      tasks.write_warm p50 ratio 1.0336 U95 1.1016 MDE 10.0% p 0.9996
      tasks.write_warm p95 ratio 1.0287 U95 1.1095 MDE 12.0% p 0.9999
Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:4 <0.95:2 minp=0.000
      tasks.cold_tasks value ratio 1.0169 U95 1.0270 MDE 1.5% p 0.1532
      tasks.counts p95 ratio 1.0017 U95 1.0370 MDE 5.3% p 1.0000
      tasks.describe p95 ratio 1.0385 U95 1.0504 MDE 1.7% p 0.0003
      tasks.describe p99 ratio 1.0552 U95 1.0729 MDE 2.5% p 0.0005
      tasks.today p50 ratio 0.9895 U95 1.0115 MDE 3.4% p 0.9997
      tasks.write_warm p50 ratio 1.0341 U95 1.0942 MDE 8.9% p 0.9995
      tasks.write_warm p95 ratio 1.0795 U95 1.1593 MDE 11.3% p 0.8209
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=41 >1.05:0 <0.95:0 minp=0.002
      tasks.cold_tasks value ratio 1.0087 U95 1.0202 MDE 1.7% p 0.8799
      tasks.counts p95 ratio 0.9689 U95 1.0129 MDE 6.9% p 0.9999
      tasks.describe p95 ratio 1.0356 U95 1.0499 MDE 2.1% p 0.0024
      tasks.describe p99 ratio 1.0407 U95 1.0636 MDE 3.3% p 0.0475
      tasks.today p50 ratio 0.9995 U95 1.0206 MDE 3.2% p 0.9995
      tasks.write_warm p50 ratio 0.9901 U95 1.0027 MDE 1.9% p 0.9999
      tasks.write_warm p95 ratio 1.0004 U95 1.0412 MDE 6.2% p 0.9994
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=41 >1.05:1 <0.95:5 minp=0.740
      tasks.cold_tasks value ratio 0.9919 U95 1.0054 MDE 2.1% p 1.0000
      tasks.counts p95 ratio 0.9672 U95 1.0178 MDE 8.0% p 1.0000
      tasks.describe p95 ratio 0.9972 U95 1.0097 MDE 1.9% p 1.0000
      tasks.describe p99 ratio 0.9863 U95 1.0106 MDE 3.7% p 1.0000
      tasks.today p50 ratio 1.0101 U95 1.0308 MDE 3.1% p 0.9731
      tasks.write_warm p50 ratio 0.9574 U95 1.0111 MDE 8.5% p 1.0000
      tasks.write_warm p95 ratio 0.9267 U95 0.9867 MDE 9.9% p 1.0000

(Per cell, the four rows are: dev2 vs dev, inert vs dev, #894 vs dev, #894 vs inert.)

tasks.describe p95/p99, the one interesting finding:

  • #894 vs dev is ×1.036/×1.041 (adjusted p 0.002/0.048), so it's flagged against dev.
  • Against the inert arm it's ×0.997/×0.986, not flagged. The rule calls it layout, not code.
  • More precisely, every arm is slower than dev there: inert ×1.039/×1.055, and even dev2 (byte-identical to dev) ×1.018/×1.043. Turn B showed the same pattern.
  • The asymmetry was in my driver: its warm-up ran only the first arm, dev. That's now fixed: the warm-up runs every arm in random order (#1130 64e805159).
  • #894 doesn't touch the describe pass (crates/tasks/src/index.rs and notes/describer.rs are unchanged against 796d80cba).

#894 verdict across valid turns:

Suite Turn Null block #894 flagged (vs dev AND vs inert) Result
calternal-perf 10k, all scenarios A (12 rounds) pass 0 / 60 pass; open.long_note unresolved (MDE 65%, ratio ×0.83)
tasks-bench 10k B (30 rounds) void (tasks.cold_tasks p 0.0495) — excluded
tasks-bench 10k C (28 rounds) pass 0 / 41 pass
  • The lane's open items:
    • search.query p50 +8.6%: ×1.012 here, which is dev2-vs-dev's own size (×1.012). It was a dev-first rotation artefact.
    • sync.save_ack p95 ±11%: ×1.002 here, while dev2 vs dev moves ×1.11. It's tail noise.
    • tasks.today p50 +9.2% (lane r3): ×1.000 here (turn C), ×0.985 (turn B).
  • Nothing to confirm: no valid turn has a code-attributable flag, so no confirmation turn is needed.
  • Decision on open.long_note: it's one long-note open per server run. Pooling a second turn A would only bring its MDE from 65% to about 46%. Resolving it needs a harness change (more long-note opens per run), not more turns. I'm recording it as a harness gap, not a blocker; its point estimate is 17% faster.

Perf gate for #894: PASS under #1130's method. Not merged; the orchestrator decides.

### #894 perf verdict on the new comparator: **no regression found**. `search.query` and `sync.save_ack` were artefacts; `tasks.describe` p95/p99 is a dev-arm/layout effect, not #894's code. **Turn C (`tasks-bench`, re-run of void turn B).** `~/bin/perf-turn sound-comparator` on perf-01, behind Notes Float tickets, no FRONT. perf-02's lock was held by a unit on hd01. - Measured 20:36–21:53 CET, 14 Nov. - `paired-turn.sh --mode tasks-bench --notes 10000 --runs 3 --order mirrored --seed 8943 --warmup`. - Arms: dev, dev2, inert, cand (binaries as in turn B, sha256-checked). - 28 rounds, 0 failed arms. Every arm, dev's included, fails `tasks-bench`'s own `tasks.update` and cold-growth budgets; those runs are kept. Command: `compare.py tC/layout.json --layout inert --hot tasks.`. 41 cells, 10,000 flips. **Exit 0 (PASS).** The null block passes (smallest adjusted p 0.059). ``` Null block tC: dev2 vs dev (two-sided) n=41 >1.05:2 <0.95:0 minp=0.059 tasks.cold_tasks value ratio 1.0210 U95 1.0377 MDE 2.5% p 0.5635 tasks.counts p95 ratio 1.0313 U95 1.0954 MDE 9.5% p 0.9997 tasks.describe p95 ratio 1.0182 U95 1.0323 MDE 2.1% p 0.5242 tasks.describe p99 ratio 1.0426 U95 1.0653 MDE 3.3% p 0.0589 tasks.today p50 ratio 1.0068 U95 1.0312 MDE 3.7% p 1.0000 tasks.write_warm p50 ratio 1.0336 U95 1.1016 MDE 10.0% p 0.9996 tasks.write_warm p95 ratio 1.0287 U95 1.1095 MDE 12.0% p 0.9999 Layout block: inert vs dev (two-sided, information: how much an inert chang n=41 >1.05:4 <0.95:2 minp=0.000 tasks.cold_tasks value ratio 1.0169 U95 1.0270 MDE 1.5% p 0.1532 tasks.counts p95 ratio 1.0017 U95 1.0370 MDE 5.3% p 1.0000 tasks.describe p95 ratio 1.0385 U95 1.0504 MDE 1.7% p 0.0003 tasks.describe p99 ratio 1.0552 U95 1.0729 MDE 2.5% p 0.0005 tasks.today p50 ratio 0.9895 U95 1.0115 MDE 3.4% p 0.9997 tasks.write_warm p50 ratio 1.0341 U95 1.0942 MDE 8.9% p 0.9995 tasks.write_warm p95 ratio 1.0795 U95 1.1593 MDE 11.3% p 0.8209 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=41 >1.05:0 <0.95:0 minp=0.002 tasks.cold_tasks value ratio 1.0087 U95 1.0202 MDE 1.7% p 0.8799 tasks.counts p95 ratio 0.9689 U95 1.0129 MDE 6.9% p 0.9999 tasks.describe p95 ratio 1.0356 U95 1.0499 MDE 2.1% p 0.0024 tasks.describe p99 ratio 1.0407 U95 1.0636 MDE 3.3% p 0.0475 tasks.today p50 ratio 0.9995 U95 1.0206 MDE 3.2% p 0.9995 tasks.write_warm p50 ratio 0.9901 U95 1.0027 MDE 1.9% p 0.9999 tasks.write_warm p95 ratio 1.0004 U95 1.0412 MDE 6.2% p 0.9994 Candidate, hot paths: cand vs layout arm inert (one-sided) n=41 >1.05:1 <0.95:5 minp=0.740 tasks.cold_tasks value ratio 0.9919 U95 1.0054 MDE 2.1% p 1.0000 tasks.counts p95 ratio 0.9672 U95 1.0178 MDE 8.0% p 1.0000 tasks.describe p95 ratio 0.9972 U95 1.0097 MDE 1.9% p 1.0000 tasks.describe p99 ratio 0.9863 U95 1.0106 MDE 3.7% p 1.0000 tasks.today p50 ratio 1.0101 U95 1.0308 MDE 3.1% p 0.9731 tasks.write_warm p50 ratio 0.9574 U95 1.0111 MDE 8.5% p 1.0000 tasks.write_warm p95 ratio 0.9267 U95 0.9867 MDE 9.9% p 1.0000 ``` (Per cell, the four rows are: dev2 vs dev, inert vs dev, #894 vs dev, #894 vs inert.) **`tasks.describe` p95/p99, the one interesting finding:** - #894 vs dev is ×1.036/×1.041 (adjusted p 0.002/0.048), so it's flagged against dev. - Against the inert arm it's ×0.997/×0.986, not flagged. The rule calls it **layout, not code**. - More precisely, **every** arm is slower than `dev` there: inert ×1.039/×1.055, and even dev2 (byte-identical to dev) ×1.018/×1.043. Turn B showed the same pattern. - The asymmetry was in my driver: its warm-up ran only the first arm, `dev`. That's now fixed: the warm-up runs every arm in random order (#1130 `64e805159`). - #894 doesn't touch the describe pass (`crates/tasks/src/index.rs` and `notes/describer.rs` are unchanged against `796d80cba`). **#894 verdict across valid turns:** | Suite | Turn | Null block | #894 flagged (vs dev AND vs inert) | Result | |---|---|---|---|---| | `calternal-perf` 10k, all scenarios | A (12 rounds) | pass | 0 / 60 | pass; `open.long_note` unresolved (MDE 65%, ratio ×0.83) | | `tasks-bench` 10k | B (30 rounds) | **void** (`tasks.cold_tasks` p 0.0495) | — | excluded | | `tasks-bench` 10k | C (28 rounds) | pass | 0 / 41 | **pass** | - **The lane's open items:** - `search.query` p50 +8.6%: ×1.012 here, which is dev2-vs-dev's own size (×1.012). It was a dev-first rotation artefact. - `sync.save_ack` p95 ±11%: ×1.002 here, while dev2 vs dev moves ×1.11. It's tail noise. - `tasks.today` p50 +9.2% (lane r3): ×1.000 here (turn C), ×0.985 (turn B). - **Nothing to confirm:** no valid turn has a code-attributable flag, so no confirmation turn is needed. - **Decision on `open.long_note`:** it's one long-note open per server run. Pooling a second turn A would only bring its MDE from 65% to about 46%. Resolving it needs a harness change (more long-note opens per run), not more turns. I'm recording it as a harness gap, not a blocker; its point estimate is 17% faster. **Perf gate for #894: PASS under #1130's method.** Not merged; the orchestrator decides.
Author
Owner

#1117 final perf verdict (#1130 method): no regression found; 11 single-shot cells still can't be certified below 10%

Turn 3, focused on startup. ~/bin/perf-turn sound-comparator on perf-01, behind Notes Float, no FRONT. perf-02's lock was held by a unit on hd01.

  • Measured 01:33–02:51 CET, 15 Nov.
  • Arms: dev / dev2 / inert / cand, all built by me on dev-01 in one environment:
Arm Source sha256 Size
dev = dev2 796d80cba c3e9a68f…
inert 796d80cba + 600 never-run functions ae6d0a27… 32,920,248
cand #1117 934ef1c36 8d7e280a… 32,917,240
  • Harness: the r7 calternal-perf 062dd8a7… (it has --hot-only).
  • Command: --hot-only --sizes 1k,10k --runs 9 --cold-runs 5, mirrored, warm-up on every arm.
  • Only 4 rounds fit at 11 min per round, which I under-sized. Alone, 4 rounds give 16 flips and can never flag a cell, so this turn is used pooled with turns 1 and 2. Its own null block was checked separately and passes.
  • Two earlier starts of this turn stopped inside the warm-up within 4 minutes: once on a harness without --hot-only, once on a fixture that was too small for --runs 10. The driver now catches both before or at the first arm (#1130 502f0bb0a, 58f5e534f).

Pooled turns 1+2+3, the 1k and 10k cells that all three share: compare.py t1 t2 ts --hot '*', 20 rounds, 10,000 flips, 115 cells.

Null block t1: dev2 vs dev (two-sided)                                      n=115 >1.05:10 <0.95:13 minp=0.295
Null block t2: dev2 vs dev (two-sided)                                      n=115 >1.05:10 <0.95:17 minp=0.250
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=115 >1.05:6 <0.95:16 minp=0.375

startup turn alone (4 rounds, --min-rounds 4; can't flag alone, null check only):
Null block ts: dev2 vs dev (two-sided)                                      n=115 >1.05:16 <0.95:5 minp=0.500
Layout block: inert vs dev (two-sided, information: how much an inert chang n=115 >1.05:4 <0.95:11 minp=0.250
Candidate, hot paths: cand vs dev (one-sided, slower = flagged)             n=115 >1.05:9 <0.95:9 minp=0.625
Candidate, hot paths: cand vs layout arm inert (one-sided)                  n=115 >1.05:10 <0.95:8 minp=0.250
  • Null blocks: all pass.
  • #1117 vs dev: 0 flagged (smallest adjusted p 0.375). 6 cells are above ×1.05 and 16 below ×0.95, against 10 above ×1.05 per turn for dev vs dev.
  • Turns 1+2 at 100k (posted above): 0 flagged.

Cells the gate can't certify below 10%:

Notes Metric Quantile Ratio Upper 95% MDE 80%
1000 cold.startup value 1.0745 1.1692 13.5%
1000 home.first_page value 0.8653 0.9490 14.8%
1000 journal.page p50 0.9571 1.0763 19.2%
1000 search.first_query value 0.9815 1.0517 10.9%
1000 shutdown value 1.0691 1.1589 12.8%
1000 startup.healthz value 1.0130 1.0967 12.6%
10000 home.first_page value 0.9201 1.0527 22.3%
10000 open.long_note value 1.3695 1.6644 33.9%
10000 search.first_query value 1.1113 1.2300 16.4%
10000 search.typo p50 0.9933 1.0741 12.4%
10000 shutdown value 1.0665 1.2864 32.4%

Verdict and decision:

  1. No regression is detectable on any cell. That's 172 cells at 1k/10k/100k over 16–20 rounds, with null blocks clean in every turn.
  2. Still, a strict "no regression of any size" can't be certified for 11 single-shot cells. They're measured once per server life (startup, shutdown, first page, first query, long-note open).
    • The point estimates to watch are 1k cold.startup ×1.075 (upper bound ×1.17), 1k shutdown ×1.069 (upper ×1.16) and 10k open.long_note ×1.37 (MDE 34%).
    • #1117 does add a Home-root watcher at start and a thread join at shutdown, so these are plausible places for a small cost.
  3. I'm stopping measurement here. More turns of this harness can't get these cells to 10% in reasonable time: open.long_note would need about 10 more turns. Resolving them is harness work: repeat the long-note open and server start/stop several times per run. I'm recording that as the open item for #1117.
  4. For the orchestrator: either accept #1117 with this caveat, or have the Files lane add the harness repeats (or a strace/CPU-count check of startup/shutdown work vs dev, which is deterministic) and re-gate only these 11 cells with compare.py --only. I'm not merging.

Side finding: the typing scenario's two-client text check failed 4 times in about 700 runs, at 10k, including on plain dev and on the inert arm. Filed as #1146; it's not #1117's.

### #1117 final perf verdict (#1130 method): **no regression found**; 11 single-shot cells still can't be certified below 10% **Turn 3, focused on startup.** `~/bin/perf-turn sound-comparator` on perf-01, behind Notes Float, no FRONT. perf-02's lock was held by a unit on hd01. - Measured 01:33–02:51 CET, 15 Nov. - Arms: dev / dev2 / inert / cand, all built by me on dev-01 in one environment: | Arm | Source | sha256 | Size | |---|---|---|---:| | dev = dev2 | `796d80cba` | `c3e9a68f…` | | | inert | `796d80cba` + 600 never-run functions | `ae6d0a27…` | 32,920,248 | | cand | #1117 `934ef1c36` | `8d7e280a…` | 32,917,240 | - Harness: the r7 `calternal-perf` `062dd8a7…` (it has `--hot-only`). - Command: `--hot-only --sizes 1k,10k --runs 9 --cold-runs 5`, mirrored, warm-up on every arm. - **Only 4 rounds fit** at 11 min per round, which I under-sized. Alone, 4 rounds give 16 flips and can never flag a cell, so this turn is used **pooled** with turns 1 and 2. Its own null block was checked separately and passes. - Two earlier starts of this turn stopped inside the warm-up within 4 minutes: once on a harness without `--hot-only`, once on a fixture that was too small for `--runs 10`. The driver now catches both before or at the first arm (#1130 `502f0bb0a`, `58f5e534f`). **Pooled turns 1+2+3**, the 1k and 10k cells that all three share: `compare.py t1 t2 ts --hot '*'`, 20 rounds, 10,000 flips, 115 cells. ``` Null block t1: dev2 vs dev (two-sided) n=115 >1.05:10 <0.95:13 minp=0.295 Null block t2: dev2 vs dev (two-sided) n=115 >1.05:10 <0.95:17 minp=0.250 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=115 >1.05:6 <0.95:16 minp=0.375 startup turn alone (4 rounds, --min-rounds 4; can't flag alone, null check only): Null block ts: dev2 vs dev (two-sided) n=115 >1.05:16 <0.95:5 minp=0.500 Layout block: inert vs dev (two-sided, information: how much an inert chang n=115 >1.05:4 <0.95:11 minp=0.250 Candidate, hot paths: cand vs dev (one-sided, slower = flagged) n=115 >1.05:9 <0.95:9 minp=0.625 Candidate, hot paths: cand vs layout arm inert (one-sided) n=115 >1.05:10 <0.95:8 minp=0.250 ``` - **Null blocks:** all pass. - **#1117 vs dev:** 0 flagged (smallest adjusted p 0.375). 6 cells are above ×1.05 and 16 below ×0.95, against 10 above ×1.05 per turn for dev vs dev. - **Turns 1+2 at 100k** (posted above): 0 flagged. **Cells the gate can't certify below 10%:** | Notes | Metric | Quantile | Ratio | Upper 95% | MDE 80% | |---:|---|---|---:|---:|---:| | 1000 | cold.startup | value | 1.0745 | 1.1692 | 13.5% | | 1000 | home.first_page | value | 0.8653 | 0.9490 | 14.8% | | 1000 | journal.page | p50 | 0.9571 | 1.0763 | 19.2% | | 1000 | search.first_query | value | 0.9815 | 1.0517 | 10.9% | | 1000 | shutdown | value | 1.0691 | 1.1589 | 12.8% | | 1000 | startup.healthz | value | 1.0130 | 1.0967 | 12.6% | | 10000 | home.first_page | value | 0.9201 | 1.0527 | 22.3% | | 10000 | open.long_note | value | 1.3695 | 1.6644 | 33.9% | | 10000 | search.first_query | value | 1.1113 | 1.2300 | 16.4% | | 10000 | search.typo | p50 | 0.9933 | 1.0741 | 12.4% | | 10000 | shutdown | value | 1.0665 | 1.2864 | 32.4% | **Verdict and decision:** 1. **No regression is detectable on any cell.** That's 172 cells at 1k/10k/100k over 16–20 rounds, with null blocks clean in every turn. 2. Still, a strict "no regression of any size" can't be certified for 11 single-shot cells. They're measured once per server life (startup, shutdown, first page, first query, long-note open). - The point estimates to watch are 1k `cold.startup` ×1.075 (upper bound ×1.17), 1k `shutdown` ×1.069 (upper ×1.16) and 10k `open.long_note` ×1.37 (MDE 34%). - #1117 does add a Home-root watcher at start and a thread join at shutdown, so these are plausible places for a small cost. 3. **I'm stopping measurement here.** More turns of this harness can't get these cells to 10% in reasonable time: `open.long_note` would need about 10 more turns. Resolving them is harness work: repeat the long-note open and server start/stop several times per run. I'm recording that as the open item for #1117. 4. **For the orchestrator:** either accept #1117 with this caveat, or have the Files lane add the harness repeats (or a strace/CPU-count check of startup/shutdown work vs dev, which is deterministic) and re-gate only these 11 cells with `compare.py --only`. I'm not merging. Side finding: the typing scenario's two-client text check failed 4 times in about 700 runs, at 10k, including on plain dev and on the inert arm. Filed as #1146; it's not #1117's.
Author
Owner

Proposal for paired-turn.sh: --single-root (from #1117's final perf turn)

Every turn passes --state-dir, so app data is never inside the Home. Production runs one /data root, where each person's notes/, search/ and index.db* sit inside the Home folder. That difference hid #1117's idle walk loop (about 1.7 cores on an idle server), the 250 ms poll, and the watcher wake-ups on every save (details on #1117).

For #1117's final turn I staged a local copy of 5660b886c with this small option. I didn't push it to this branch. Please take it in if you agree:

--- pt-orig.sh	2026-11-15 03:35:37.522420438 -0500
+++ paired-turn.sh	2026-11-15 02:11:48.100095188 -0500
@@ -27,6 +27,8 @@
 #       (no --perf: each arm's binary is the bench, because tasks-bench links the code it
 #       measures). Its JSON line is converted to the calternal-perf layout, one size.
 #
+#   --single-root  pass no --state-dir: app data lives inside each Home, as in production
+#                (one /data root); separate --state hid #1117's idle walk loop.
 #   --warmup     before round 1, run every arm once (random order) and throw the numbers
 #                away. It makes any missing fixture inside your own turn (never write ~700 MB
 #                to the shared disk while another lane measures) and gives every binary the
@@ -45,7 +47,7 @@
 set -euo pipefail
 
 ROOT="" PERF="" DATA="" SIZES="1k,10k,100k" RUNS=3 COLD=1 DEADLINE_MIN=80 MAX_ROUNDS=40 SEED=1
-HANDSHAKE=0 WARMUP=0 ORDER=mirrored MODE=perf NOTES=10000
+HANDSHAKE=0 WARMUP=0 ORDER=mirrored MODE=perf NOTES=10000 SINGLE_ROOT=0
 ARMS=()
 while [ $# -gt 0 ]; do
   case "$1" in
@@ -60,6 +62,7 @@
     --max-rounds) MAX_ROUNDS=$2; shift 2 ;;
     --seed) SEED=$2; shift 2 ;;
     --handshake) HANDSHAKE=1; shift ;;
+    --single-root) SINGLE_ROOT=1; shift ;;
     --warmup) WARMUP=1; shift ;;
     --order) ORDER=$2; shift 2 ;;
     --mode) MODE=$2; shift 2 ;;
@@ -190,7 +193,10 @@
     rm -rf -- "$work" "$state"
     return 0
   fi
-  if ! "$PERF" --bin "$bin" --work "$work" --data-dir "$DATA" --state-dir "$state" \
+  # --single-root: no --state-dir, so app data lives inside each Home (the prod layout).
+  local state_args=(--state-dir "$state")
+  [ "$SINGLE_ROOT" = 1 ] && state_args=()
+  if ! "$PERF" --bin "$bin" --work "$work" --data-dir "$DATA" "${state_args[@]}" \
       --sizes "$SIZES" --runs "$RUNS" --cold-runs "$COLD" --seed 1 --idle-secs 0 --soak-secs 0 \
       "${EXTRA[@]}" --json "$out/results.json" --md "$out/results.md" >"$out/stdout.log" 2>&1; then
     echo "ARM_FAILED round=$round arm=$label"; tail -n 40 "$out/stdout.log"; return 1
### Proposal for `paired-turn.sh`: `--single-root` (from #1117's final perf turn) Every turn passes `--state-dir`, so app data is never inside the Home. Production runs one `/data` root, where each person's `notes/`, `search/` and `index.db*` sit inside the Home folder. That difference hid #1117's idle walk loop (about 1.7 cores on an idle server), the 250 ms poll, and the watcher wake-ups on every save (details on #1117). For #1117's final turn I staged a local copy of `5660b886c` with this small option. **I didn't push it to this branch.** Please take it in if you agree: ```diff --- pt-orig.sh 2026-11-15 03:35:37.522420438 -0500 +++ paired-turn.sh 2026-11-15 02:11:48.100095188 -0500 @@ -27,6 +27,8 @@ # (no --perf: each arm's binary is the bench, because tasks-bench links the code it # measures). Its JSON line is converted to the calternal-perf layout, one size. # +# --single-root pass no --state-dir: app data lives inside each Home, as in production +# (one /data root); separate --state hid #1117's idle walk loop. # --warmup before round 1, run every arm once (random order) and throw the numbers # away. It makes any missing fixture inside your own turn (never write ~700 MB # to the shared disk while another lane measures) and gives every binary the @@ -45,7 +47,7 @@ set -euo pipefail ROOT="" PERF="" DATA="" SIZES="1k,10k,100k" RUNS=3 COLD=1 DEADLINE_MIN=80 MAX_ROUNDS=40 SEED=1 -HANDSHAKE=0 WARMUP=0 ORDER=mirrored MODE=perf NOTES=10000 +HANDSHAKE=0 WARMUP=0 ORDER=mirrored MODE=perf NOTES=10000 SINGLE_ROOT=0 ARMS=() while [ $# -gt 0 ]; do case "$1" in @@ -60,6 +62,7 @@ --max-rounds) MAX_ROUNDS=$2; shift 2 ;; --seed) SEED=$2; shift 2 ;; --handshake) HANDSHAKE=1; shift ;; + --single-root) SINGLE_ROOT=1; shift ;; --warmup) WARMUP=1; shift ;; --order) ORDER=$2; shift 2 ;; --mode) MODE=$2; shift 2 ;; @@ -190,7 +193,10 @@ rm -rf -- "$work" "$state" return 0 fi - if ! "$PERF" --bin "$bin" --work "$work" --data-dir "$DATA" --state-dir "$state" \ + # --single-root: no --state-dir, so app data lives inside each Home (the prod layout). + local state_args=(--state-dir "$state") + [ "$SINGLE_ROOT" = 1 ] && state_args=() + if ! "$PERF" --bin "$bin" --work "$work" --data-dir "$DATA" "${state_args[@]}" \ --sizes "$SIZES" --runs "$RUNS" --cold-runs "$COLD" --seed 1 --idle-secs 0 --soak-secs 0 \ "${EXTRA[@]}" --json "$out/results.json" --md "$out/results.md" >"$out/stdout.log" 2>&1; then echo "ARM_FAILED round=$round arm=$label"; tail -n 40 "$out/stdout.log"; return 1 ```
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'perf/sound-comparator:perf/sound-comparator'
git switch 'perf/sound-comparator'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'dev'
git merge --no-ff 'perf/sound-comparator'
git switch 'perf/sound-comparator'
git rebase 'dev'
git switch 'dev'
git merge --ff-only 'perf/sound-comparator'
git switch 'perf/sound-comparator'
git rebase 'dev'
git switch 'dev'
git merge --no-ff 'perf/sound-comparator'
git switch 'dev'
git merge --squash 'perf/sound-comparator'
git switch 'dev'
git merge --ff-only 'perf/sound-comparator'
git switch 'dev'
git merge 'perf/sound-comparator'
git push origin 'dev'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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
kayg/calternal!1130
No description provided.