Kapitol World

Tested, not trusted

Believe nothing until it is shown

The project's rule from its first day: every number equals SQL, and every output is looked at as a picture. A report is shown only after its totals were computed again by an independent query. A page is called done only after a program has used it the way a person would.

The challenge

On 8 November 2026 a stress-test protocol came from outside the project, written against kapitolworld.com. It asked five hard questions. Each was measured on a copy of the demo, in a laboratory of its own, never on the live data.

The questionWhat was measuredVerdict
Can 100 writers use the ledger at once - each on its own order?10,490 sales in 10 seconds, none failed; 95 of every 100 answered within 134 msHolds
Do long chains of corrections slow it down?They cannot exist: a storno can never itself be reversed, and a line only once. Twenty corrections on one order: 21 pages read instead of 18Holds
Can it take 1,000 requests in one minute, at once?1,020 calls, none failed; 95 of every 100 sales answered within 21 msHolds, with room
Does the audit catch an administrator who switches the guard off?Yes: every statement, with its text; switching the audit off is recorded tooHolds - as detection, not prevention
How long will the free edition of SQL Server last?1,224 bytes per sale: about 43.9 million sales before its 50 GB limitHolds
The same 100 writers, several on one orderup to 29.8 % of them turned backFailed - then fixed

Deadlocks: none in any run.

The one that failed was the useful one

When five sessions at a time added lines to the same order, nearly a third were turned back: the database rolled each such write back whole - nothing was left half-written - and the writer got an error. The cause was one line of code that stamped the order's "last changed" each time a line arrived, so every writer fought over the same row. The fix followed the ledger law - re-derive what maximizes: the order's "last changed" is now worked out from its events. After the fix the same runs - five and twenty on each order - turned none back, at about the same speed as writers on separate orders.

Share of sales turned back, by run 100 sessions for 10 seconds each. No two sessions on one order: 0 percent turned back. Five sessions on each order: 29.8 percent. Twenty sessions on each order: 13.0 percent. With the fix, five on each order: 0 percent; twenty on each order: 0 percent. The protocol's threshold was 0.5 percent. Sales turned back, of all attempts 100 sessions, 10 seconds each 0 %10 %20 %30 % Run 7 - no two sessions on one order: 10,490 sales, 0 turned back (0 %) 0 % no two on one order holds Run 8 - five sessions on each order: 5,999 sales, 2,551 turned back (29.8 %) 29.8 % 5 on each order ✗ fails Run 9 - twenty sessions on each order: 7,959 sales, 1,191 turned back (13.0 %) 13.0 % 20 on each order ✗ fails Run 10 - five sessions on each order, with the fix: 10,132 sales, 0 turned back (0 %) 0 % 5 on each, fixed ✓ holds Run 11 - twenty sessions on each order, with the fix: 10,129 sales, 0 turned back (0 %) 0 % 20 on each, fixed ✓ holds
Measured on 8 November 2026 in a laboratory copy of the demo (runs 7 to 11). The dashed line near the floor is the protocol's 0.5 % threshold.
Run100 sessions, 10 secondsSalesTurned back95 of 100 within
7no two sessions on one order10,4900134 ms
85 sessions on each order5,9992,551 (29.8 %)225 ms
920 sessions on each order7,9591,191 (13.0 %)230 ms
105 on each order, with the fix10,1320151 ms
1120 on each order, with the fix10,1290160 ms

Restored, not just backed up

15 / 15World restored on a clean machine that had never seen it (3 November 2026)
29 + 2of 31 reports identical line for line from that copy; two differed only in "seconds since" counters
15 / 15the monthly restore test, the seal checked again (2 December 2026)
200visitors at once on the demo, all connected, about 0.65 MB of memory each (8 November 2026)

Measured against the originals

Two of the tools behind World rebuild two well-known products without their runtimes - the vendor software they need in order to run. Each was judged against the original, on the same data:

Measured against SQL

A report PRDW designed from three plain words - "orders per customer" - came to 79 pages. Its grand total, 270 customers, 2,192 orders and $4,083,665.34, equals a query written straight against the base tables (10 November 2026).

Kits that use the sites as a person would

Every site is measured by small programs - kits - that open it in a real browser, choose a person, click what a person would click, and count what the page shows against an independent SQL query. A kit picks by the words a page shows, never by codes read from the database: once, a form refused titles while the kit, typing codes, passed 18 of 18.

A kit must be able to fail

Every kit has a control: it is run where it must fail, and it must. On 2 December 2026 a kit that blocks the sites' scripts on purpose passed 27 of 27 on the fixed build - and failed 9 times on the build before the fix, as it should.

Read the line, not the exit code

Once a kit printed "50 of 51 forms, 1 server error" and still ended with success. Since then a result is read whole, line by line - x of y - never by a program's exit code.

Look at the picture

A number can be right on a page nobody can read. Reports and pages are also rendered and looked at as images - this site's pages in light and dark, on a desktop and on a phone.

What went wrong, which the record keeps