## 1. What this protocol measures

We build **the same application** with every tool, from a single public specification. We then measure it with the same test bench, twice, and publish the raw measurements and the score derived from them. We collect no opinions and no impressions: every score can be recomputed from the published data.

This protocol does not measure ease of learning, support, the quality of the generated code or portability. These criteria are not part of the score (see part 11).

## 2. The reference application: “RKT-Book” (fictitious)

RKT-Book is a fictitious service for booking slots at a workshop. The interface is in English and contains no real data. The specification below is given **word for word** to every tool, in the form the tool accepts (description, instruction or mock-up). Its SHA-256 checksum is published with every campaign.

### 2.1 Requirements (EX)

| # | Requirement | Acceptance criterion (checkable by the bench) |
|---|---|---|
| EX-01 | Public home page | `/` answers 200; title “RKT-Book”; a “Book a slot” button leads to the list |
| EX-02 | Sign-up | e-mail + password (≥ 8 characters); an e-mail already taken is refused with a message; after sign-up, the user is logged in |
| EX-03 | Log-in and log-out | log-in with e-mail + password; a wrong password shows a message, without logging in; log-out returns to the home page |
| EX-04 | Slot list | the 12 slots of the starting data (§ 2.2): date, time, seats left; filter by date (3 dates) |
| EX-05 | Slot detail | `/slots/{id}`: date, time, capacity, seats left, “Book” button (disabled when full) |
| EX-06 | Booking form | name (required), e-mail (valid format), number of people (1 to 4, and no more than the seats left), note (≤ 280 characters, optional); each error is shown next to its field |
| EX-07 | Internal fictitious payment | a `/pay` page hosted by the app (no external provider): USD 10.00 per person; card `4242 4242 4242 4242` is accepted; card `4000 0000 0000 0002` is declined with a message, and no booking is created |
| EX-08 | Confirmation | after an accepted payment: a confirmation page with a booking number; the slot's seats left drop by the number booked |
| EX-09 | My bookings | `/my-bookings`: only the bookings of the logged-in user |
| EX-10 | Data isolation | the direct URL of another user's booking shows none of their data (refusal or 404) |
| EX-11 | Protected pages | `/my-bookings` and `/pay` without log-in redirect to the log-in page |
| EX-12 | Legal pages and 404 | `/legal` (fictitious publisher); an unknown address answers 404 with a link to the home page |

Build rules, identical for every tool:
- only the tool's native features and official integrations are allowed; no hand-written code is added outside the tool;
- we start from the free plan if it allows every requirement, otherwise from the first paid plan that does (the price of the day is published);
- the build effort has a budget fixed in advance: **3 hours** and **40 iterations** (instructions or publish actions) at most; when it runs out, we measure the state reached;
- a requirement the tool does not allow natively is declared “not feasible” in the build log; the journeys that depend on it score 0;
- the build log (each iteration time-stamped, the duration, the plan used) is published with the results.

### 2.2 Starting data (identical everywhere)

| Item | Content |
|---|---|
| Slots | 12: `S01` to `S12`, over 3 dates (4 per date), 10:00 / 11:00 / 14:00 / 15:00; capacity 4, except `S07` = 2 and `S11` = 0 (full) |
| Accounts | `user-a` and `user-b` (addresses on a test domain), each with an existing booking (`S02` for A, `S05` for B) |
| Reset | before each pass, the database returns to the starting data, through the tool's own procedure; the reset is recorded in the log |

## 3. The journeys played (P)

Each journey is a sequence of declarative steps (go to, click, fill, check) played in a real browser. A failure is replayed up to 3 times. A journey that fails and then passes within the same pass is classed “unstable”.

| # | Journey | Requirements | Weight |
|---|---|---|---|
| P1 | Sign up with a new e-mail, then be refused with the same e-mail | EX-02 | 1 |
| P2 | Log in (wrong password refused, right one accepted), then log out | EX-03 | 1 |
| P3 | See the list, filter by date, open a detail | EX-04, EX-05 | 1 |
| P4 | Book 2 people on `S03`, pay with the accepted card, read the confirmation, check that `S03` goes from 4 to 2 seats | EX-06, EX-07, EX-08 | 3 |
| P5 | Pay with the declined card: message shown, no booking created, seats unchanged | EX-07 | 2 |
| P6 | Invalid inputs: empty name, invalid e-mail, 5 people, 281-character note (each error flagged, nothing created) | EX-06 | 2 |
| P7 | Full slot `S11`: booking impossible | EX-05, EX-06 | 2 |
| P8 | Data isolation: A opens the URL of B's booking and none of B's data appears; A's `/my-bookings` shows only `S02` | EX-09, EX-10 | 2 |
| P9 | Without log-in, `/my-bookings` and `/pay` redirect to log-in; an unknown address answers 404 | EX-11, EX-12 | 1 |

## 4. The criteria measured

Only the criteria the bench measures today appear here. What is missing is listed in part 11.

| Code | Criterion | What is measured | How |
|---|---|---|---|
| **F** | Functional | outcome of P1 to P9: passed, unstable, failed or not feasible | declarative journeys, Chromium browser |
| **P** | Performance | LCP, CLS, TTFB on 5 pages (two measurements per page); home-page LCP on a slow phone profile (≈ 1.6 Mb/s, 150 ms latency, CPU ÷ 4, two measurements); bytes transferred and number of requests per page | Core Web Vitals measured in the browser; network events |
| **E** | Errors | unhandled JavaScript errors (uncaught exception, rejected promise without handler); HTTP responses ≥ 400 from the site itself; broken internal links | de-duplicated by signature |
| **A** | Accessibility | WCAG 2.2 AA violations by impact (critical, serious, moderate, minor), per (rule, page) pair | axe-core |
| **S** | Passive security | 8 fixed checks: HTTPS only and HSTS; Content-Security-Policy; X-Content-Type-Options; framing protection (frame-ancestors or X-Frame-Options); Referrer-Policy; `Secure` session cookies; `HttpOnly` session cookies; no mixed content | reading headers and cookies, with no attack at all |
| **D** | Data isolation | P8 passed in both passes; P8 unstable, failed or not feasible, even in one pass only: D = 0 and the cap of 40 (part 6) | journey P8 |
| **R** | Resilience | 3 scenarios: list loaded on a slow network; network lost during booking; a data call answering 500. Passed = a readable message, with no blank screen and no unhandled JavaScript error | network simulated by the browser |
| **V** | Mobile display | pages that overflow horizontally or cut text at 390 × 844 px (text reserved for screen readers is excluded) | screenshots and overflow measurement |

Criterion published for information, **outside the score**: light load on the home page (10 simultaneous GET requests: p95, errors). The hosting imposed by the tool and its plan weigh too much on this result for it to enter the application's score.

## 5. Normalisation (from a measurement to a score between 0 and 1)

Notation: `clamp(x) = min(1, max(0, x))`. For a measurement `v`, a “good” threshold `g` and a “poor” threshold `m`: `s(v) = clamp((m − v) / (m − g))`. This gives 1 at the “good” level or better, 0 at the “poor” level or worse, and a straight line in between.

| Score | Formula | Thresholds and reason |
|---|---|---|
| F | `F = Σ wₚ·rₚ / Σ wₚ`, with `r` = 1 (passed), 0.5 (unstable), 0 (failed or not feasible); Σ wₚ = 15 | weights of part 3: the booking and payment journey weighs 3 |
| P | `P = 0.30·s(LCP) + 0.25·s(slow LCP) + 0.20·s(CLS) + 0.15·s(TTFB) + 0.10·s(weight)` | LCP 2,500 / 4,000 ms; CLS 0.10 / 0.25; TTFB 800 / 1,800 ms (Google's public “good” and “poor” thresholds); slow LCP 4,000 / 10,000 ms; weight 3 / 6 MiB. Each measurement: mean of the two takes on a page, then 75th percentile of the 5 pages (rank ⌈0.75·n⌉, the Core Web Vitals convention) |
| E | `E = 2^(−nₑ/2)` | `nₑ` = number of distinct error signatures. Half-life of 2: each pair of errors halves the score, which never reaches 0 |
| A | `A = 2^(−v/8)` | `v` = Σ weights of the (rule, page) pairs in violation: critical 4, serious 3, moderate 2, minor 1. Half-life of 8 points |
| S | `S = checks passed / 8` | fixed list of part 4 |
| D | `D = 1` if P8 passed in both passes, otherwise 0 | “unstable” counts 0.5 for F but 0 for D: isolation that does not hold in both passes is a flaw, and the cap of 40 applies |
| R | `R = scenarios passed / 3` | — |
| V | `V = 2^(−d/2)` | `d` = pages overflowing at 390 px |

Why half-lives rather than thresholds: one more defect always costs something, the first ones cost the most, and the score never falls to 0 on a single counting criterion. The performance thresholds stay linear because they have a public reference.

## 6. The score and its formula

```
Score = 100 × (0.35·F + 0.15·P + 0.10·E + 0.10·A + 0.10·S + 0.10·D + 0.05·R + 0.05·V)
Cap: if D = 0 (data isolation failure), Score = min(Score, 40).
```

| Criterion | Weight | Design choice (declared) |
|---|---|---|
| F Functional | 35 | choice: what the application does outweighs any other criterion, because it is what the tool promises to build |
| P Performance | 15 | choice: speed weighs more than E, A or S taken separately; it is measured on five pages and two network profiles |
| E Errors | 10 | choice: same weight as A, S and D; the criterion counts distinct errors and measures no duration |
| A Accessibility | 10 | choice: same weight as E, S and D; the measure used is WCAG 2.2 AA through axe-core, which does not cover all of accessibility |
| S Passive security | 10 | choice: 8 configuration checks readable from outside, with no attack; same weight as E, A and D |
| D Data isolation | 10 (and the cap) | choice: a data leak disqualifies the application, whatever its other results: the cap of 40 says so |
| R Resilience | 5 | choice: reduced weight in v1, because the criterion rests on 3 scenarios only |
| V Mobile | 5 | choice: reduced weight in v1, because the criterion rests on a single screen profile (390 × 844 px) |

These weights are design choices declared by Rankator, not measured facts: they are published so that they can be challenged, and they change only through a new version of the protocol (part 8).

**Published score**: the mean of the two retained passes (part 7), rounded to the nearest integer. Partial scores are published with 4 decimals; the exact score (`exact_score`) with 2 decimals. The score is computed from the unrounded partial scores: redoing the calculation with the published ones can therefore differ by a few hundredths on `exact_score`, but the published score remains the integer.

**Uncertainty.** The score is shown with an interval `[low; high]`:
- for F: Wilson interval at 95 % (z = 1.96), counting each journey of each pass as one trial (n = 9 × number of passes; fractional successes are allowed);
- for the other criteria: the lowest and the highest score among the retained passes;
- `low = 100 × (0.35·F_low + Σ weight × min_score)`, and likewise for `high` with `F_high` and the maximum scores.

With 9 journeys the interval on F is wide, on purpose: it shows what 18 trials allow us to state, and nothing more. When no defect is seen in `n` independent trials, the residual defect rate is probably below `3/n` at 95 % (rule of three). That is the published sentence, never “guaranteed”.

**Tie rule.** Ranking uses the **published score, that is, the integer**; `exact_score` plays no part. Tools are sorted by decreasing integer score. A tool is **tied** with the first of its group if the gap between their integer scores is 3 points or less. Tools in the same group share the same rank, and the next rank skips accordingly (1, 1, 3). Example: exact scores of 83.4 and 79.6 are published as 83 and 80, so they are tied, although their exact gap is 3.8; 84 and 80 are not. The 3-point threshold is the replay tolerance of part 7: a gap smaller than what the bench reproduces is not a ranking. Within a group, the display order is alphabetical. An affiliate link, a price or a program never separates tools.

**Worked example (FICTITIOUS; tools A and B are the two tools of the example file published with the schema).** Tool A: F = 0.8667, P = 0.8990, E = 0.7071, A = 0.6484, S = 0.7500, D = 1, R = 0.6667, V = 1, `exact_score` 83.21, published score 83 [75.4; 86.5]. Tool B (the second tool of the example file): score 62 [53.8; 67.0]. A 21-point gap, no tie.

### 6 bis. The Rankator quadrant: axes defined by measurement

| Axis | Definition | Reading |
|---|---|---|
| X — Functional reliability | `X = 100 × F` | does the application do what was asked? |
| Y — Technical quality | `Y = 100 × (0.15·P + 0.10·E + 0.10·A + 0.10·S + 0.05·R + 0.05·V) / 0.55` | what it is worth outside the journeys: speed, stability, accessibility, security. Same relative weights as in the score |
| Dividing lines | X = 70 and Y = 70, fixed | a fixed line allows comparing one month with another, which the cohort median does not |
| Zones | “Complete” (X ≥ 70, Y ≥ 70); “Functional” (X ≥ 70, Y < 70); “Technical” (X < 70, Y ≥ 70); “Maturing” (X < 70, Y < 70) | descriptive names: no zone is called “leader” |
| Uncertainty | each point carries its bars: X by Wilson, Y by the minimum and maximum score of the passes | a point whose bars cross a line is marked “borderline” |
| Data isolation | a tool with D = 0 is drawn with a “data isolation failure” marker, whatever its zone | — |

FICTITIOUS example: Tool A (86.7; 78.0) is in the “Complete” zone, Tool B (76.7; 45.8) in the “Functional” zone.

## 7. Replayability: two passes and a tolerance

| Rule | Content |
|---|---|
| Two independent passes | same instance, same bench version, same region (Paris), new browser context, database reset to the starting data; at least 1 hour and at most 24 hours apart |
| Functional tolerance | same outcome for each journey (passed, unstable, failed) in both passes |
| Performance tolerance | relative gap ≤ 15 % on aggregated LCP, slow LCP and TTFB; absolute gap ≤ 0.05 on CLS; ≤ 10 % on weight |
| Count tolerance | error signatures and accessibility violations: identical sets within ±1 item; security, resilience, mobile: identical |
| Score tolerance | gap ≤ 3 points between the two passes |
| Out of tolerance | a 3rd pass. If it is within tolerance of one of the two, those two passes are retained and the gap is published. Otherwise the tool's result is **not replayable**: nothing is published for this tool, and the campaign's ranking is suspended until corrected |
| Before any publication | a campaign can be published only if every ranked tool meets this rule; the replay status is written in the results file |

Anyone can replay the protocol: the specification, the starting data, the journeys, the thresholds and the formulas are published. The addresses of the tested instances stay online during the validity period, when the tool's plan allows it.

## 8. Dating and versioning

| What is dated or versioned | How |
|---|---|
| The protocol | `RKT-PROTO-N1` version `major.minor`. A minor version clarifies without changing any score; a major version changes a formula, a weight, a threshold or a journey, and rankings from different major versions are not compared |
| The RKT-Book specification | version + SHA-256 checksum of the text given |
| Each tool | name, plan used and price of the day, access date (UTC); version or deployment identifier when the tool displays one, otherwise “not disclosed” with the address of its changelog; build date and duration |
| The bench (field `campaign.bench`) | public version identifier, with the pattern `bench-YYYY.MM.DD-<checksum>` (expression `^bench-[0-9]{4}\.[0-9]{2}\.[0-9]{2}-[0-9a-f]{7,}$`), the same for the whole campaign (a version change during a campaign invalidates the campaign). The keys and the enumerated values of the results format are in English (for example `campaign.bench`, `build_log_url`, `hosting`, `passed`, `failed`) |
| The passes | start and end in UTC, browser and version |
| The publication | date; SHA-256 checksum of the results folder |
| Validity | 90 days. Beyond that, the page says so: “Results older than 90 days: the tool may have changed”; or a new campaign is run |

## 9. Affiliate disclosure (published text)

> **EN.** Rankator earns a commission when you buy through some links on this site. This never changes a score: rankings are computed from the published test data before any link is added, and tools without an affiliate program are tested and ranked the same way. No company can pay for a ranking, a position or a review. Rankator is published by Framework SARL AU, which also publishes software of its own; Framework's products are never included in any ranking.
>
> **FR.** Rankator perçoit une commission quand vous achetez par certains liens de ce site. Cela ne change jamais un score : les classements sont calculés à partir des données de test publiées avant l'ajout de tout lien, et les outils sans programme d'affiliation sont testés et classés de la même façon. Aucune entreprise ne peut payer un classement, une position ou un avis. Rankator est édité par Framework SARL AU, qui édite aussi ses propres logiciels ; les produits de Framework ne figurent dans aucun classement.

Rules of application: the notice appears at the top of every page that contains an affiliate link, above the first link, and in every video, on screen and in the description. Every affiliate link carries `rel="sponsored"`. Niche 1 includes at least one tool without an affiliate program, and it is ranked with the others.

## 10. What is published

| Published | Format |
|---|---|
| The protocol, this version and the previous ones | page + Markdown |
| The RKT-Book specification and the starting data | Markdown + JSON |
| The journeys, step by step | JSON |
| The full results of each campaign: raw measurements of each pass, partial scores, score, interval, rank, quadrant, replay status | JSON conforming to `rankator.resultats/1.0` + flat CSV |
| The build logs | JSON |
| The screenshots of the journeys | images |
| The SHA-256 checksums of every file | `SHA256SUMS` |
| Data licence | CC BY 4.0 (free reuse, citing Rankator) |

Never published: the passwords of the test accounts, the administration addresses, the operating details of the bench.

## 11. What the protocol does not measure yet

The score only contains what the bench measures today. Published separately, outside the score, or not measured yet:

- build effort (time, iterations, requirements not feasible): published in the build log, outside the score;
- the price of the plan needed: published, outside the score;
- light load on the home page: published for information, outside the score;
- long-term availability, technical SEO, code export and portability, support: not measured in v1;
- business logic is measured only by the explicit checks of the journeys, never by judgement;
- a single browser in v1 (Chromium);
- nine journeys: the interval on the functional score stays wide, and it is published as it is.
