Skip to content

bench(mongo): forms of the numbers of a store - #450

Draft
mark1russell7 wants to merge 57 commits into
mainfrom
bench/cli-96-forms
Draft

mark1russell7 wants to merge 57 commits into
mainfrom
bench/cli-96-forms

Conversation

@mark1russell7

Copy link
Copy Markdown
Owner

The arms and the design record of the forms of the numbers of a store. See packages/documentation/STORE-NUMBERS-2026-11.md.

This branch changes no published code. It adds bench files, workflow suites and one page of documentation.

🤖 Generated with Claude Code

mark1russell7 and others added 30 commits November 4, 2026 19:56
…asses

The test holds a delta read between its read of the floor and its query.
A second process then deletes an item and prunes the older tombstone.
This test is red on this commit if the short delta is real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A prune raises the floor before it deletes the tombstones. So a query
that missed a tombstone now sees the new floor, and that reader gets a
full result. A silent short delta is no longer possible.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…between its steps

The queue of the writes and the change reads now belongs to the client. A db
option that makes a new Db at each call, and the default connection, had no
queue. A second process of a test holds its prune before the second step, so
a read between the two steps pins the order of the steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t, and the next prune finishes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pull request that changes the store now compares its reads and writes
with its base on a real MongoDB, with an A/A beside them. The base arm is
the whole source of the base commit. The limit stays a first value until
five CI runs give it, and the gate refuses it before that.

The suite views starts 1,000 views whose pipeline texts all differ.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A count of failures with no message cannot tell the cause, so each line
now has the count and the first message of each kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es no write

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e forms offer 1200

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guard is in the reader, so the design states that it does not help an old reader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gate-margin refuses records that stop before the last look, because
those records give only an upper bound. It prints the formula for each
case alone and reads all cases together at those limits. gate-reruns
counts the no reads of a pull request and the reruns that follow them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mark1russell7 and others added 22 commits November 5, 2026 04:34
Each case has its own limit and its own stated slowdown. A case can be
report only: the gate reads and prints it, and it has no part in the
outcome or the level. With --enforce the report refuses a limit at or
over its stated slowdown. gate-margin prints the smallest slowdown each
case can hold on same-source records. That read is arithmetic: only a
flip proves a slowdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The suite tenant-bound compares that form with and without a bound of 16 calls in each process. Each child samples the list of numbers in progress in the counter documents and the conflicts of the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lls in progress

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…iter in a burst

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h id

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mmands

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the proposal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er of idle connections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Form A cuts the tail of other callers and holds 85 of 90 children on a warm
pool. The first run read 18 of 18, and that figure did not last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot planned

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…port only

The gate holds a slowdown of 25 percent or more in each gated case. A
slowdown under 25 percent can pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ller one can pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	packages/client-mongo/package.json
#	pnpm-lock.yaml
…lip runs (CLI-94)

gate-limit.json holds the flip runs read so far. caseClaim gives the smallest
slowdown that each counted run held, with 2 or more runs, its k of n, the look
of each block and the 95 % Wilson lower bound, which is reported, not gated.
A block at a smaller slowdown counts at a larger one, and a miss at a larger
slowdown counts at a smaller one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…its counting (CLI-94)

The counting assumes that the detection rises with the slowdown. The field
breaks lists each miss at a slowdown larger than a block of another run, and
the gate prints it. The three flip runs show none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mark1russell7 and others added 5 commits November 5, 2026 22:08
The read bench of main (read-bound, share arms, the stated delay) and the gate of CLI-94 now share one workflow. The arm before of the read bench loads the whole base source from base/, as the gate needs. The workflow keeps one input suite with all six benches, the start-mongo action and the delay step of main, and passes both --enforce and --delay to the report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci.yml: main's if (!cancelled()) with the speed jobs of this branch in needs.
pnpm-lock.yaml: rigor-bench 0.2.23 of main, with rigor-generators 0.1.5 of this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stream-cost.yml: both sides kept: the second MongoDB and the tenant rule tests of this branch, the delay step and the --base argument of the speed gate.
package.json: rigor-bench ^0.2.17 of the speed gate, with rigor-chaos of this branch. The lockfile is the speed gate's, with rigor-chaos added by pnpm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mark1russell7
mark1russell7 changed the base branch from ci/mongo-speed-gate to main November 8, 2026 01:36

This branch has not been deployed

No deployments
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