Last updated 26 November 2026.
Why a planner needs testing
A decompression planner runs the same arithmetic every time. Give it the same depth, time, gases and settings, and it should print the same schedule, to the second. Programmers call this deterministic. It makes testing possible, because you can write down today what the answer should be and check it tomorrow.
It also makes testing necessary. A planner is a long chain of decisions. Bühlmann's model sets how gas enters and leaves sixteen "compartments" (imaginary tissues with different speeds), and gradient factors set how close to its limit each compartment may get. The program around the model decides much more: when to switch gas, how to round stop times, what to do when a cylinder runs dry, how to draw the table. A change in one place can move a stop somewhere else. Software has bugs, and a planner is software.
On episode 126 of Speaking Sidemount (25 November 2026), host Steve Davis asked how Dive Kit checks its engine for bugs.[1 ] I described three kinds of tests. Here is what each one is, checked against the code rather than my memory.
-
Layer 1 Fixed inputs, expected outputs
- 4,176 engine checks in 381 groups
- 2,549 TypeScript tests in 140 files
-
Layer 2 Cases from divers
- Each kept as a test inside the same suites
-
Layer 3 The published comparison
- 33 dives compared with MultiDeco, whose results are typed in by hand
- 18 of them also built into the automated checks
Layer 1: fixed inputs, expected outputs
The simplest test gives the engine a number and checks the answer. One example from the engine's test files: air at a ppO₂ of 1.4 bar in salt water has a maximum operating depth of 56.24 m (about 184.5 ft). The test states how that figure is worked out (1.4 divided by 0.21, minus the surface pressure, times the metres per bar of salt water), and it fails if the engine's answer moves by more than a millimetre.
There are thousands of these. Measured on 26 November 2026, on the engine release inside Dive Kit v3.2.0:
- The engine itself (written in C++) has 4,176 checks in 381 groups across 35 test files. They cover gas properties, the sixteen compartments, stop placement, rebreather setpoints, bailout, oxygen exposure, contingencies and the rest.
- The code around the engine (written in TypeScript) has 2,549 tests in 140 files. That code turns your inputs into the engine's inputs, builds the stop table, encodes the share link, and runs the gas blending and buoyancy calculators.
A count says little about quality, so three other kinds of test matter more.
Rules that must hold for every plan. One test file lists 20 rules and runs them over a grid of plans that walks the whole settings space: depths, gases, gradient factors, last stop, rounding, water type, altitude, rebreather setpoints, repetitive dives. Some of the rules:
- A plan never sits shallower than its own ceiling.
- A longer, deeper or more conservative dive never owes less decompression.
- A plan with stops rounded to whole minutes never surfaces sooner than the same plan with stops to the second.
- The same input always gives the same output.
The file says why it exists. Two defects that reached divers in Dive Kit v2.9.0 were "combinations no test exercised", and a test that changes one setting at a time cannot find a combination. The grid has since found a real defect of its own. In September 2026 an automated run found a rebreather bailout plan that aimed its ascent at a gas switch rather than at the diver's ceiling, so it arrived shallower than it should. The fix shipped in v2.11.0, where the changelog says that "a few rebreather bailout schedules gain deeper first stops".[2 ]
The same answer everywhere. The engine is built twice: natively for the app, and for the web. A test runs every comparison dive through both builds and fails if any printed figure differs. Another checks that every published share link opens exactly the dive it claims to.
Before and after. When an engine change is meant to move results, a separate run compares old and new engines. For Dive Kit v3.2.0 it covered 6,935 plans, and the changelog reports the result: with whole-minute stops, one stop is sometimes a minute longer, in 3 of 100 plans with up to 90 minutes of stops and in 38 of 100 with more than 3 hours.[2 ] That run was made for that release, outside the automatic suite.
Layer 2: cases from divers
The fixed-number tests check the arithmetic. Many real problems are decisions instead: which gas to breathe on a level, when to switch, how to draw it. A diver who knows the dive spots these fast, because they know what they expected to see.
Here is one case from start to finish. On 30 July 2026, a tester sent in a plan with a short first level at 6 m (20 ft) for a bubble check, then a bottom at 33 m (108 ft). The gases were air and EANx50, with the app set to choose the gas for each level automatically.
The app chose EANx50 for the 6 m level, because it was the richest gas allowed at 6 m. That one choice caused three problems:
- The plan put a deco gas on the descent.
- EANx50 dropped out of the lost-gas contingency list.
- The printed table read "descend 6 to 33 m on EANx50, switch at 33 m", far below that gas's maximum operating depth. The computed schedule had switched to air at 6 m. Only the table was wrong, but a slate is what a diver reads.
| Step | Depth | Gas |
|---|---|---|
| Wrong: Descend | 6 → 33 m | EANx50 |
| Wrong: Switch to air | 33 m | Air |
| Step | Depth | Gas |
|---|---|---|
| Switch to air | 6 m | Air |
| Descend | 6 → 33 m | Air |
Two fixes went in on 12 August 2026 and shipped in v2.8.7 the next day.[2 ] Automatic gas choice now looks ahead: before the dive first reaches its deepest level, it only picks a gas whose maximum operating depth also covers the bottom. The table now draws a gas switch between levels where the engine makes it, at the depth the diver leaves.
Each fix came with tests, and they are still in the suite. One builds the reported plan, air and EANx50, 3 minutes at 6 m, then 20 minutes at 33 m, and checks that both levels come out on air. Two more check the edges: a 6 m level after the bottom still gets EANx50, and on a deep trimix dive where no gas covers both the shallow level and the bottom, the shallow level keeps EANx50. Another builds the table and checks that the switch row sits at 6 m, before the descent.
The tester's plan is now a fixed case, and every run of the suite checks it again. As I put it on the show, the reported case "becomes another fact that needs to be maintained with every change".[1 ]
Many of the tests started this way, and their comments say which report they came from: posts on the public feedback board, Reddit and ScubaBoard threads, and plans divers sent in.
Layer 3: the published comparison
The first two layers check Dive Kit against itself: against numbers written down in advance, and against divers' expectations. Neither can catch a mistake that is built into the expected numbers. For that you need an outside reference.
Dive Kit's reference is MultiDeco, a long-established planner that runs the same Bühlmann ZH-L16C model with gradient factors. The method:
- 34 dives are defined, covering air, nitrox and trimix, single and multiple gases, multi-level profiles, repetitive dives, rebreather dives, salt and fresh water, altitude, 3 m and 6 m last stops, and gradient factors including 20/75, 40/85, 60/80 and an extreme 50/50. One of them, a dive with oxygen breaks, is still waiting for its MultiDeco run, so 33 are compared.
- Settings are matched as closely as the two programs allow. Both use the same deep ascent rate, 9 m/min. All but three dives use whole-minute stops, because that is what MultiDeco prints.
- MultiDeco's results are typed in by hand from its screen. The runs were made between March and September 2026.
- Dive Kit's results are generated by the engine with one command, run by hand after engine changes. The current table was generated on 23 November 2026, from the engine inside Dive Kit v3.2.0.
- Written notes explain the differences: 23 on individual dives and 11 on differences that run across many. Every dive has a share link that opens the exact plan in the app.[4 ]
Recounted from the published files on 26 November 2026:
| What is compared | Result on 33 dives |
|---|---|
| Depth where decompression starts | At most 3.6 m apart on all 33; within 3 m on 31 |
| Gas switch depths | The same on 27 |
| Time to surface | Within 3 minutes on 29, within 5 on 31; widest gap 8 minutes, on the GF 50/50 stress case. Dive Kit longer on 24, shorter on 4, the same on 5 |
| First stop depth | The same on 14, within one 3 m (10 ft) step on 30; Dive Kit shallower on 18, deeper on 1 |
| CNS oxygen clock | Dive Kit the same or higher on 31 |
The differences have causes, and the notes explain each one. The largest is the first stop on deep helium dives. Dive Kit recalculates the compartments every second of the ascent, so on an 80 m (262 ft) trimix dive its ceiling drops faster than the diver climbs, and it does not list the short deep stops MultiDeco shows. The guide page How Dive Kit compares to MultiDeco goes through these,[3 ] and Same Dive, Different Stops explains why any two planners differ.[5 ]
Part of this layer is automatic. Eighteen of the dives are also built into the engine's own tests, each checking a few figures with a tolerance, such as the first stop within 3 m. Another test fails if a note quotes a number the tables no longer show. It was written after a gradient factor change in September 2026 left about a dozen notes describing the old tables.
What does agreement show? On the show I put it this way: MultiDeco is not "a perfect planner", but if Dive Kit's numbers are close, "then I know that I've not done something incredibly wrong that's catastrophic".[1 ] That is the whole claim. Two programs that run the same model and land close together show that the arithmetic matches. They cannot show that the model fits your body on a given day. Agreement shows the math matches. It does not show a plan is safe.
What the checks missed
Thousands of tests and a published comparison did not stop defects from reaching divers. The table below is a selection. The public changelog lists every defect, with what was wrong and, in the newer entries, the versions affected.[2 ]
| Fixed in Dive Kit | What was wrong | Affected |
|---|---|---|
| v2.8.7 | The table drew a descending gas switch at the bottom depth ("switch at 33 m" on EANx50), while the schedule had switched at 6 m. The bubble-check case above. | Plans with a rich gas on a shallow first level |
| v2.10.0 | A level planned shallower than the diver's ceiling was reached by going straight there, skipping the stops on the way. On one shared plan this moved about 900 litres onto a stage bottle and pushed oxygen exposure past 100%. | Multi-level plans with a level above the ceiling |
| v2.10.0 | Rounded stop times raised the gradient factor high to finish some schedules. A 78 m dive on air and oxygen at GF 30/70 came back at 230 and 233 minutes, against 237 for the same plan with stops to the second. | Rounded plans set to switch gas at the next stop, with oxygen at a 6 m last stop |
| v2.11.4 | A level with no time, used to mark a gas switch on the ascent, was ignored. The ascent stayed on the previous gas, so stops and gas figures were worked out on the wrong gas. | v2.10.0 to v2.11.3 |
| v2.11.4 | Rebreather bailout and open-circuit gases ignored the water type. In salt or Red Sea water this read the water pressure about 0.5 to 0.8% low, the less conservative direction. | Every earlier version with CCR plans |
| v3.2.0 | The CNS column in the deco table kept its own running total. On a repeat dive it started from zero; on any dive it could end a few points from the CNS figure above it, up to 4.5 in the test dives. | v2.3.0 to v3.1.0 |
The 0-minute level shows how a defect gets past every layer. It came in with the v2.10.0 fix for levels above the ceiling. None of the three layers flagged it, and the engine's own changelog notes that the fix moved nothing: "no cross-reference or regression figure moves". It was found the way layer 2 works, from a diver's plan that stopped making sense. The fix came with a test that fails on the version before it, so the same mistake would show up the next time the suite runs.
The tests also depend on being run. The engine's full suites run for each engine release, and the app's release runs its own tests on top, including regression tests that plan dives through the engine. On 26 November 2026 the full suites were run again on both engine releases inside Dive Kit v3.2.0, and both passed: all 4,176 engine checks, and 2,547 and 2,549 TypeScript tests.
What this means when you plan a dive
Testing narrows the ways a planner can be wrong. It cannot remove them. Three points follow for anyone who plans with Dive Kit or any other program:
- Agreement between planners is about arithmetic. Bühlmann's model was fitted to experiments, and decompression sickness is a matter of probability. Two planners that agree are running the same model the same way. Gradient factors and personal risk are covered in Unpacking Gradient Factors.[6 ]
- Your inputs are part of the plan. A schedule depends on the settings as much as on the model: gradient factors, a last stop at 6 m instead of 3 m, the gas switch rule. If a plan surprises you, check those first.
- If a plan looks wrong, say so. Layer 2 exists because divers reported what they expected. Send the plan's share link with what you expected to see, on the feedback board[7 ] or by email. If it is a defect, the fix comes with a test, and the changelog entry says what was wrong.
Questions divers ask
Does matching another planner mean a plan is safe?
No. It means two programs run the same model the same way. Neither has been tested against decompression sickness outcomes on your dive.
Can I rerun the comparison myself?
Yes. The published comparison shows every dive's inputs and both programs' outputs, and each dive has a share link that opens the exact plan in Dive Kit. Enter the same inputs in another planner and compare the time to surface and where decompression starts, not only the first stop.
References
- 1. Speaking Sidemount, episode 126, with Steve Davis, 25 November 2026. YouTube.
- 2. Dive Kit. What's new in Dive Kit (public changelog), entries v2.8.7, v2.10.0, v2.11.0, v2.11.4, v3.2.0. divekit.app/changelog.
- 3. Dive Kit. How Dive Kit compares to MultiDeco. divekit.app/docs/engine/compared-to-multideco.
- 4. Dive Kit. MultiDeco Test Results, Dive Kit's deco engine checked scenario by scenario. divekit.app/docs/engine/multideco-comparison.
- 5. Dive Kit. Same Dive, Different Stops: Why Your Plan and Your Buddy's Don't Match. divekit.app/blog/same-dive-different-stops.
- 6. Dive Kit. Unpacking Gradient Factors. divekit.app/blog/unpacking-gradient-factors.
- 7. Dive Kit feedback board. divekit.featurebase.app.