Skip to content

Sweep the jobqueue at campaign scale and record what it proves - #16

Merged
dhruvl merged 1 commit into
mainfrom
campaign-numbers
Jul 31, 2026
Merged

Sweep the jobqueue at campaign scale and record what it proves#16
dhruvl merged 1 commit into
mainfrom
campaign-numbers

Conversation

@dhruvl

@dhruvl dhruvl commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Adds benchmarks/campaign.py (green / ablations / stability subcommands, chunked with checkpoint-and-resume) plus the recorded results in benchmarks/README.md:

  • green: 100,000 seeds of jobqueue chaos, 6.0 minutes at 279.6 seeds/s on the M4 (10 jobs) — no invariant violated.
  • ablations: 6 mutations × 10,000 seeds, counting every failing seed. Densities published: five ablations fail on essentially every seed; the missing idempotency key on ~half.
  • stability: 20 sampled failing seeds × 100 re-runs each — identical trace hash on every run.

Scale surfaced one genuinely new fact: on 2 of 10,000 no-idempotency-key seeds the keyless duplicate is still queued when the cluster settles, so the violation lands as convergence rather than exactly-once — invisible at the 200-seed test budget, replayable from its seed with a stable hash, and now documented (the campaign's expected-invariant check is what caught it).

Also: a small nightly campaign workflow (2,000 green seeds + 500-per-ablation + a stability sample on the ubuntu runner) so the published numbers keep being re-earned; README's performance section now cites the parallel campaign figure; changelog bullet added. Checkpoint files are gitignored.

262 fast + 10 slow pass, mypy strict clean.

benchmarks/campaign.py spends seeds three ways: 100,000 seeds of chaos
against the intact jobqueue (green in six minutes at ~280 seeds/s on
ten processes), 10,000 seeds against each ablation counting every
failing seed rather than the first (densities recorded; the missing
idempotency key fails roughly every other seed, the rest on every
seed), and 100 re-runs of 20 sampled failing seeds proving identical
trace hashes throughout. Both sweeps checkpoint and resume. Scale found
one thing the 200-seed test budget cannot: two seeds where the
keyless duplicate is still queued at settle, surfacing as a convergence
violation — same missing safeguard, different symptom, replayable like
everything else. A modest nightly workflow keeps the numbers honest.
@dhruvl
dhruvl merged commit 1af93b6 into main Jul 31, 2026
4 checks passed
@dhruvl
dhruvl deleted the campaign-numbers branch July 31, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant