← Interstellar
ENRU

PHYSICS VERIFICATION

How the physics in this simulator is checked — what runs, against which reference formula, and to what tolerance. This is not marketing copy: where a tolerance is wide, or a check is really a code/UX contract rather than a from-scratch physics derivation, that is said plainly. Nothing below is aspirational — every row maps to a real, currently-passing test file. If a check isn't listed here, it isn't part of the gate.

On this page: Check it yourself · Reproduce it · Full gate · ADRs · What this does not claim

Check it yourself

Type your own numbers. This page imports the live simulator modules (js/physics/relativity.js, gravity.js, orbits.js, ship.js) — not a copy of the formulas — runs them in your browser, and compares the result with an independently written closed-form value. You see the simulator value, the analytic value, the relative discrepancy, the tolerance and a PASS/FAIL verdict. Inputs that have no defined answer (e.g. β ≥ 1, radius ≤ 0, NaN) are refused with a reason instead of printing garbage.

What this does and does not show. It checks that the simulator's implementation agrees with the textbook equations. It does not check those equations against the real world: general relativity, n-body effects and measurement are out of scope. A PASS here means “the code does what the formula says”, nothing more. Tolerances are shown under each check, with the reason for their size.

Reproduce it

bash tests/run.sh

Runs every tests/*.test.mjs file under Node, bare assert, no framework, no build step — currently 48 files, about 2 seconds. Prints PHYSICS GATE: PASS and exits 0 only if every assertion in every file holds. Separately, tests/smoke_playwright.py drives a real browser to catch frame-loop crashes the Node tests can't see — a crash/console-error smoke check, not a physics check, and not covered by the tables below.

The machine-readable gate — physics-gate.yaml

physics-gate.yaml at the repo root is valid YAML that formalizes 4 of the invariants below as individually-runnable entries — own command, own tolerance, own exit code — rather than lines inside the combined tests/run.sh output. It documents the commands for a human or agent to run by hand; the file itself is not wired into any CI runner (no .github/workflows, and tests/run.sh doesn't read it) — reproduction is manual, not automated. These four are the project's load-bearing physical claims:

InvariantTest fileLocksReferenceTolerance
INV-PHYS-01longitudinal.regressionLongitudinal 4-force not divided by γ (1000g burn)γ(t)=√(1+(αt/c)²)2%
INV-PHYS-03orbitsOrbit elements (a, e, periapsis, apoapsis) from state (r,v); actual conservation of h under propagation is checked separately in propagator.conservation, not this filev²=μ(2/r−1/a)1e-3
INV-PHYS-06gravityΦ<0, decreasing with r (sign+monotonicity, no numeric reference); weak-field dτ→1 at large rΦ=−μ/r (sign/monotonicity only)dτ→1: 1e-12 abs (not a tolerance on Φ)
INV-PHYS-09relativityAberration formula, round-trip, monotonicity(cp−β)/(1−β·cp)1e-9
The 2% tolerance on INV-PHYS-01 is not a convenience margin — it's the test's own bound at γ≈13, and the file is marked NEVER DELETE, NEVER WEAKEN in its header: if a future 4-force refactor ever divides the longitudinal thrust term by γ, this is the test meant to go red.

Several other files carry their own in-code INV-PHYS-NN labels (04, 05, 07, 10, 11, 12 — see below) that are not yet wired into physics-gate.yaml; they run inside tests/run.sh but don't have an individual entry with their own exit code — a real gap, stated here rather than hidden.

Full gate, by topic

A — Special relativity

FileChecksReferenceTolerance
relativityAberration formula, round-trip, monotonicity (INV-PHYS-09)(cp−β)/(1−β·cp)1e-9
longitudinal.regressionγ(t) under constant 1000g proper accel, longitudinal 4-force undivided (INV-PHYS-01, NEVER DELETE/WEAKEN)γ(t)=√(1+(αt/c)²)2%
gravity.relativistic(a) Transverse factor — actually gated: hard guard ratio>1.5 plus 3% tolerance vs (1+β²) at β=0.99 (INV-PHYS-10, not in physics-gate.yaml). (b) Longitudinal factor (1−3β²) — implemented in ship.js, but only printed via console.log in a try/catch; not asserted by the gatea⊥=(1+β²)g⊥ · a∥=(1−3β²)g∥(a) guard>1.5 + 3% rel · (b) none — diagnostic only
verify-livePure logic behind the interactive “Check it yourself” section: every preset PASSES, a deliberately wrong sim value FAILS (verdict is not always-true), degenerate inputs are refused with no NaNγ=cosh(aτ/c) · √(μ/r) · 2π√(r³/μ) · Lorentz-boosted photon 4-vector · μ/r²1e-9 (closed forms, orbit) · 1e-3 (integrated proper time) · 1e-12 (gravity)

The (1−3β²) longitudinal factor is a fixed, deliberate decision by the project owner about the physics engine itself — an internal decision, not something independently verifiable from a source inside this repo, and not something this document proposes to revisit. What's inaccurate is calling it gate coverage: there is currently no automated regression assertion on the longitudinal term, only the diagnostic console.log above — a known, stated gap, not a hidden one.

B — Orbital mechanics / Kepler

FileChecksReferenceTolerance
orbitsKepler elements (a, e, rPeri, rApo) from state (r,v) (INV-PHYS-03) — does not itself assert conservation of angular momentum under propagation; see propagator.conservation belowv²=μ(2/r−1/a)1e-3
orbits.classifybound/unbound via specific energy, not e≥1 (ADR-8)ε=v²/2−μ/r<0exact identity
orbits.guardsFiniteness at degenerate inputs (r→0, e=1)—finiteness only
orbits.radialNear-radial orbits: bound ≡ isFinite(rApo)—exact identity
propagator.conservationUniversal-variable propagator conserves ε, h, and the f/g Wronskianf·ġ−ḟ·g=1ε/h: 1e-8 rel · Wronskian: 1e-9
propagator.parabolice≈1 and e>1 match Barker's closed formBarker's equation1e-6 rel
propagator.roundtrippropagate(+Δt)∘propagate(−Δt) ≈ identity, all conics—round-trip identity
propagator.vs.numericAnalytic step vs RK4 referenceRK4circular 1e-9 · eccentric 1e-4
cabotage.predicateAnalytic↔numeric engagement predicate + boundary look-ahead—exact logic
cabotage.continuityγ(w)≈γ(v) continuous across hand-off—1e-12
cabotage.periapsisNo periapsis overshoot on hand-off (NEVER DELETE/WEAKEN)—regression corpus
cabotage.dtauAnalytic dτ vs converged fine numeric referencedτ=dt/γ integrated1e-6 rel

C — Gravity

FileChecksReferenceTolerance
gravityΦ<0, decreasing with r (sign+monotonicity, no numeric reference); weak-field dτ→1 at large r (INV-PHYS-06)Φ=−μ/r (sign/monotonicity only)dτ→1: 1e-12 abs (not a tolerance on Φ)
gravity.relativisticsee table A abovea⊥=(1+β²)g⊥ · a∥=(1−3β²)g∥(a) guard>1.5 · (b) not asserted

D — Autopilot (orbital-manoeuvre guidance)

FileChecksTolerance
autopilot.circularCircularization burn converges to target radiusa: 1e-3–2e-3 rel · e: 1e-3
autopilot.hohmannHohmann transfer converges to target orbit radiusfinal a within 5e-3 rel, e<2e-3 (5e-3 for Earth–Moon)
autopilot.integratorSame manoeuvres via the real Ship.step integrator, not an idealized benchsame order
autopilot.refuseRefusal gate returns the correct reason code (relativistic speed, landed, atmosphere, unbound start, low fuel, multi-body domination, low target)exact reason-code match
autopilot.cancelCancellation via a single monotonic inputSeq counter (ADR-7)exact condition
autopilot.invariants500 pseudo-random states: determinism + totalityexact, no tolerance
autopilot.repairRegression corpus: 4 defects an earlier green gate missedregression corpus
autopilot.repair3Repair round 3: a Hohmann whose target radius lies outside the reference body's dominance is refused at engage (reason perturbed, no impulse spent); dominanceAtTarget must equal dominanceRatio at the target radius; circularize ignores it; a target that is itself a moon is not counted against itselfvs formula: 1e-9 rel (R3-1), 1e-6 rel (R3-4) · refuse/accept: exact phase/reason

E — Epoch / time

FileChecksReference
epochJ2000 mean-anomaly helper, fixed timestamps only—
epoch.ttJ2000.0 = true TT, not UTC (ADR-4)J2000.0 = UTC noon − 64.184s

F — Engineering structural guards (not physical-law checks)

These keep the code honest — layering, single-source-of-truth, UI/UX policy, i18n, sound framing — not a formula-vs-textbook check. A few do touch physically-meaningful quantities; where that's true it's flagged in the row rather than folded silently into the tables above.

FileChecks
structureStatic source-text fitness functions (§9) — greps for forbidden duplicate-condition patterns, not a runtime test
renderpathresolveRenderPath truth table (plain/wide/cube render path)
cubepolicycubeAutoStep auto-demotion policy for the cubemap path
cubetoggleCube-toggle wiring between the frame loop and renderPolicy.js
cockpitpolicycockpitDetail LOD policy for the cockpit overlay
orientationBody spin orientation is one quaternion, not two independent Euler components (internal item "A6")
soundpolicyEngine/impact/UI-click sound policy: honest mute conditions, no Doppler (ADR-11, ADR-12)
i18n.storagelocalStorage access resilience when storage is entirely inaccessible (private browsing)
controls.throttleThrottle-digit-to-accel log-ladder is mode-aware, honestly clamped (INV-PHYS-11) — UX calibration contract, not a law derivation
touchdown.impactImpact speed measured against actual co-rotating ground, not just body velocity (INV-PHYS-12) — a reference-frame contract
ship.refpairAtomicity of the (refBody, refBodyVel) pair fed into Ship.step() within one frame
shipFuel/dτ bookkeeping, transverse 4-force, drag-vs-rest-frame — exercises the same formulas as A/C, as a code contract, not an independent derivation
missionsStudent-mission pure predicates: Mars circular orbit, Moon landing, Jupiter-flyby state machine
touchpanelTouch-panel action table has exactly one row per keyboard-only feature, and the keyboard branch in controls.js calls the same hook — input-wiring single-source check, not physics
controls.repeat-blurOS key auto-repeat of action keys neither bumps inputSeq nor re-fires the hook (held Shift+N must not cancel its own autopilot); window blur / hidden tab drops held keys and mouse look — not physics
missions.hyperbolicJupiter-flyby arming uses the canonical bound/unbound classifier, not ULP-unsafe e≥1 (ADR-8)

G — Landing radar

The HUD landing radar (landingRadar in js/physics/landing.js) is a ballistic "what if I stop burning now" estimate. Its tests are written from the module's contract, not from the implementation.

FileChecksReferenceTolerance
landing.radarConstants CRASH_SPEED = 50 and RADAR_MAX_ALT_FRAC = 0.1; Moon free fall from 100 m to 100 km: altitude, impact speed, time to impact; vVert/vHoriz sign and magnitude for oblique vectors; inactive cases (not impacting, ascending, vVert > −0.1 m/s, altitude ≥ 0.1R or < 0); willCrash is a strict impact > 50 (exactly 50 is safe); bad inputs never throw and return inactive; inputs not mutated; out-object reuse; source wiring (main.js uses CRASH_SPEED, i18n keys in EN and RU)v²imp = v² + 2μ(1/R − 1/r) · t = (−v₀+√(v₀²+2gh))/g · t≈√(2h/g)altitude 1e-12 · impact speed 1e-9 · tImpact closed form 1e-9 · vs √(2h/g) at 500 m: 1% · vVert/vHoriz 1e-9 abs · thresholds exact
landing.timpactRegression R1: time to impact accounts for horizontal speed (centrifugal term); at vHoriz = 0 it equals the plain closed form; when effective g ≤ 0 it falls back to h/|vVert|, finite and positivenumerical inertial two-body integration (Earth, h = 1 km, vHoriz 0–7800 m/s)10% vs the integration (wide, deliberately) · vHoriz = 0: 1e-12 · fallback: 1e-9

The radar's impact speed comes from energy conservation in the body's non-rotating frame, so on fast-spinning bodies it overestimates by a few percent; no test quantifies that, and there is no atmosphere model.

Relevant ADRs

The project's append-only decision log documents several of the choices locked in above. These are the actual ADR.md entry numbers — not the internal "ТЗ item" labels used in a few test-file comments (like orientation's "A6"), which are a separate numbering scheme.

What this gate does not claim

ПРОВЕРКА ФИЗИКИ

Как устроена проверка физики в этом симуляторе — что именно гоняется, против какой эталонной формулы и с каким допуском. Это не рекламный текст: там, где допуск широк или проверка на самом деле контракт кода/UX, а не вывод формулы «с нуля», об этом сказано прямо. Ничего ниже не выдаётся желаемое за действительное — каждая строка соответствует реальному, сейчас-зелёному тестовому файлу. Если проверки нет в этом списке — она не часть гейта.

На странице: Проверь сам · Как воспроизвести · Полный гейт · ADR · Чего гейт не утверждает

Проверь сам

Введите свои числа. Страница импортирует живые модули симулятора (js/physics/relativity.js, gravity.js, orbits.js, ship.js) — не копию формул — считает ими прямо в вашем браузере и сверяет результат с независимо записанным замкнутым значением. Вы видите значение симулятора, аналитику, относительное расхождение, допуск и вердикт PASS/FAIL. Входы, для которых ответа нет (β ≥ 1, радиус ≤ 0, NaN), отклоняются с причиной, а не выводят мусор.

Что это показывает и что нет. Проверяется, что реализация симулятора совпадает с учебными формулами. Сами формулы с реальным миром не сверяются: общая теория относительности, взаимное притяжение тел и измерения вне области проверки. PASS здесь означает «код делает то, что говорит формула», и ничего сверх этого. Допуски показаны под каждой проверкой вместе с обоснованием их величины.

Как воспроизвести

bash tests/run.sh

Гоняет каждый файл tests/*.test.mjs под Node, голые assert, без фреймворка и без сборки — сейчас 48 файлов, около 2 секунд. Печатает PHYSICS GATE: PASS и выходит с кодом 0, только если верны все утверждения во всех файлах. Отдельно tests/smoke_playwright.py гоняет реальный браузер и ловит крэши игрового цикла, которых Node-тесты не видят — это дымовая проверка крэшей/console-ошибок, не физическая проверка, и в таблицы ниже не входит.

Машиночитаемый гейт — physics-gate.yaml

physics-gate.yaml в корне репозитория — валидный YAML, формализующий 4 из инвариантов ниже как отдельно запускаемые пункты гейта — своя команда, свой допуск, свой код выхода — а не просто строки внутри общего вывода tests/run.sh. Файл документирует команды для ручного запуска человеком или агентом; сам он не подключён ни к какому CI-раннеру (нет .github/workflows, и tests/run.sh его не читает) — воспроизведение ручное, не автоматическое. Это четыре физических утверждения, на которых держится проект:

ИнвариантФайл тестаЧто закрепляетЭталонДопуск
INV-PHYS-01longitudinal.regressionПродольная 4-сила не делится на γ (тяга 1000g)γ(t)=√(1+(αt/c)²)2%
INV-PHYS-03orbitsЭлементы орбиты (a, e, периапсис, апоапсис) из состояния (r,v); реальное сохранение h при пропагации проверяется отдельно в propagator.conservation, не в этом файлеv²=μ(2/r−1/a)1e-3
INV-PHYS-06gravityΦ<0, убывает с r (только знак+монотонность, без числового эталона); слабопольная dτ→1 при больших rΦ=−μ/r (только знак/монотонность)dτ→1: 1e-12 абс. (не допуск на сам Φ)
INV-PHYS-09relativityФормула аберрации, round-trip, монотонность(cp−β)/(1−β·cp)1e-9
Допуск 2% у INV-PHYS-01 — не удобная погрешность «с запасом», а собственный допуск теста при γ≈13, а сам файл помечен в заголовке NEVER DELETE, NEVER WEAKEN: если будущий рефакторинг 4-силы когда-нибудь начнёт делить продольный член тяги на γ, именно этот тест должен покраснеть.

У нескольких других файлов есть собственные внутрикодовые метки INV-PHYS-NN (04, 05, 07, 10, 11, 12 — см. ниже), которые ещё не включены в physics-gate.yaml: они выполняются внутри tests/run.sh, но не имеют отдельной записи со своим кодом выхода — реальный пробел, названный здесь, а не скрытый.

Полный гейт по темам

A — Специальная теория относительности

ФайлПроверяетЭталонДопуск
relativityФормула аберрации, round-trip, монотонность (INV-PHYS-09)(cp−β)/(1−β·cp)1e-9
longitudinal.regressionγ(t) при постоянном 1000g собственном ускорении, продольная 4-сила без деления (INV-PHYS-01, NEVER DELETE/WEAKEN)γ(t)=√(1+(αt/c)²)2%
gravity.relativistic(a) Поперечный фактор — реально гейтится: жёсткий guard ratio>1.5 плюс допуск 3% против (1+β²) при β=0.99 (INV-PHYS-10, нет в physics-gate.yaml). (b) Продольный фактор (1−3β²) — реализован в ship.js, но только выводится через console.log в try/catch; гейтом не проверяетсяa⊥=(1+β²)g⊥ · a∥=(1−3β²)g∥(a) guard>1.5 + 3% отн. · (b) нет — только диагностика
verify-liveЧистая логика интерактивного раздела «Проверь сам»: каждый пресет PASS, заведомо неверное значение симулятора даёт FAIL (вердикт не всегда-true), вырожденные входы отклоняются без NaNγ=cosh(aτ/c) · √(μ/r) · 2π√(r³/μ) · буст 4-вектора фотона · μ/r²1e-9 (замкнутые формы, орбита) · 1e-3 (интегрированное собственное время) · 1e-12 (гравитация)

Продольный фактор (1−3β²) — зафиксированное осознанное решение владельца проекта о самой физике движка — внутреннее решение, не проверяемое независимо по источнику внутри этого репозитория, и не то, что этот документ предлагает пересматривать. Неточность была в другом — в формулировке этого как покрытия гейтом: сейчас нет автоматической регрессионной проверки продольного члена, только диагностический console.log выше — известный, названный пробел, а не скрытый.

B — Орбитальная механика / законы Кеплера

ФайлПроверяетЭталонДопуск
orbitsКеплеровы элементы (a, e, rPeri, rApo) из состояния (r,v) (INV-PHYS-03) — сам не проверяет сохранение момента импульса при пропагации; см. propagator.conservation нижеv²=μ(2/r−1/a)1e-3
orbits.classifybound/unbound по удельной энергии, не по e≥1 (ADR-8)ε=v²/2−μ/r<0точное тождество
orbits.guardsКонечность при вырожденных входах (r→0, e=1)—только конечность
orbits.radialNear-radial орбиты: bound ≡ isFinite(rApo)—точное тождество
propagator.conservationУниверсальный Кеплер-пропагатор сохраняет ε, h и вронскиан f/gf·ġ−ḟ·g=1ε/h: 1e-8 отн. · вронскиан: 1e-9
propagator.parabolice≈1 и e>1 против решения Баркерауравнение Баркера1e-6 отн.
propagator.roundtrippropagate(+Δt)∘propagate(−Δt) ≈ identity, все конические сечения—round-trip identity
propagator.vs.numericАналитический шаг vs эталон RK4RK4круг 1e-9 · эксцентрик 1e-4
cabotage.predicateПредикат вход/выход аналитика↔интегратор + boundary look-ahead—точная логика
cabotage.continuityγ(w)≈γ(v) непрерывна при переключении—1e-12
cabotage.periapsisНет overshoot периапсиса при переключении (NEVER DELETE/WEAKEN)—регресс-корпус
cabotage.dtauАналитическое dτ vs сходящийся мелкий численный эталонdτ=dt/γ, интеграл1e-6 отн.

C — Гравитация

ФайлПроверяетЭталонДопуск
gravityΦ<0, убывает с r (только знак+монотонность, без числового эталона); слабопольная dτ→1 при больших r (INV-PHYS-06)Φ=−μ/r (только знак/монотонность)dτ→1: 1e-12 абс. (не допуск на сам Φ)
gravity.relativisticсм. таблицу A вышеa⊥=(1+β²)g⊥ · a∥=(1−3β²)g∥(a) guard>1.5 · (b) не проверяется

D — Автопилот (орбитальные манёвры)

ФайлПроверяетДопуск
autopilot.circularЦиркуляризация сходится к целевому радиусуa: 1e-3–2e-3 отн. · e: 1e-3
autopilot.hohmannХоман-трансфер сходится к целевому радиусу орбитыфинальная a ±5e-3 отн., e<2e-3 (5e-3 для Земля–Луна)
autopilot.integratorТе же манёвры через реальный интегратор Ship.step, не идеализированный стендтот же порядок
autopilot.refuseГейт отказа возвращает верный код причины (релятивистская скорость, посадка, атмосфера, unbound-старт, топливо, доминирование, низкая цель)точное совпадение кода
autopilot.cancelОтмена через единый монотонный счётчик inputSeq (ADR-7)точное условие
autopilot.invariants500 псевдослучайных состояний: детерминизм + totalityточно, без допуска
autopilot.repairРегресс-корпус: 4 дефекта, пропущенных прошлым зелёным гейтомрегресс-корпус
autopilot.repair3Ремонт, раунд 3: Хоман, у которого целевой радиус вне зоны доминирования опорного тела, отклоняется при запуске (причина perturbed, импульс не тратится); dominanceAtTarget должен совпадать с dominanceRatio на целевом радиусе; циркуляризация поле игнорирует; цель-луна не считается против самой себяпротив формулы: 1e-9 отн. (R3-1), 1e-6 отн. (R3-4) · отказ/допуск: точное совпадение фазы/причины

E — Эпоха / время

ФайлПроверяетЭталон
epochХелпер средней аномалии J2000, только фиксированные метки времени—
epoch.ttJ2000.0 = истинный TT, не UTC (ADR-4)J2000.0 = полдень UTC − 64.184с

F — Инженерные структурные гарды (не проверка физических законов)

Эти файлы следят за честностью кода — слоистость, единственный источник правды, UX-политика, i18n, дизайн звука — а не за соответствием формулы учебнику. Некоторые касаются физически осмысленных величин; где это так — отмечено прямо в строке, а не тихо смешано с таблицами выше.

ФайлПроверяет
structureСтатические фитнес-функции по исходному тексту (§9) — grep запрещённых дублирующихся условий, не рантайм-тест
renderpathТаблица истинности resolveRenderPath (plain/wide/cube путь рендера)
cubepolicyПолитика авто-демоции cubeAutoStep для кубмап-пути
cubetoggleПроводка тумблера кубмапы между игровым циклом и renderPolicy.js
cockpitpolicyLOD-политика cockpitDetail для оверлея кабины
orientationОриентация спина тела — один кватернион, не два независимых Euler-компонента (внутренняя метка «A6»)
soundpolicyПолитика звука двигателя/удара/клика: честные условия заглушения, без Допплера (ADR-11, ADR-12)
i18n.storageУстойчивость доступа к localStorage при полностью недоступном хранилище (приватный режим)
controls.throttleЛог-лестница «цифра тяги → ускорение», зависит от режима, честно ограничена (INV-PHYS-11) — UX-контракт калибровки, не вывод закона
touchdown.impactСкорость удара меряется против реальной со-вращающейся поверхности, не только скорости тела (INV-PHYS-12) — контракт системы отсчёта
ship.refpairАтомарность пары (refBody, refBodyVel), передаваемой в Ship.step() за один кадр
shipУчёт топлива/dτ, поперечная 4-сила, сопротивление относительно системы покоя — те же формулы, что в A/C, но как контракт кода, не независимый вывод
missionsЧистые предикаты ученических миссий: круговая орбита у Марса, посадка на Луну, машина состояний пролёта Юпитера
touchpanelВ таблице действий тач-панели ровно одна строка на каждую функцию, доступную только с клавиатуры, и клавиатурная ветка в controls.js вызывает тот же хук — проверка единого источника проводки ввода, не физика
controls.repeat-blurАвтоповтор клавиш действий ОС не увеличивает inputSeq и не вызывает хук повторно (удерживаемый Shift+N не должен отменять свой автопилот); потеря фокуса окна / скрытая вкладка сбрасывает зажатые клавиши и взгляд мышью — не физика
missions.hyperbolicВзведение пролёта Юпитера — по каноническому классификатору bound/unbound, не по небезопасному e≥1 (ADR-8)

G — Посадочный радар

Посадочный радар в HUD (landingRadar в js/physics/landing.js) — баллистическая оценка «что будет, если я сейчас перестану жечь». Тесты написаны по контракту модуля, а не по реализации.

ФайлПроверяетЭталонДопуск
landing.radarКонстанты CRASH_SPEED = 50 и RADAR_MAX_ALT_FRAC = 0.1; свободное падение на Луне от 100 м до 100 км: высота, скорость удара, время до удара; знак и величина vVert/vHoriz для косых векторов; неактивные случаи (нет столкновения, подъём, vVert > −0.1 м/с, высота ≥ 0.1R или < 0); willCrash — строгое «удар > 50» (ровно 50 безопасно); плохие входы не бросают исключение и дают «неактивно»; входы не мутируются; переиспользование out-объекта; проводка в исходниках (main.js использует CRASH_SPEED, ключи i18n в EN и RU)v²уд = v² + 2μ(1/R − 1/r) · t = (−v₀+√(v₀²+2gh))/g · t≈√(2h/g)высота 1e-12 · скорость удара 1e-9 · tImpact замкнутая форма 1e-9 · против √(2h/g) на 500 м: 1% · vVert/vHoriz 1e-9 абс. · пороги точно
landing.timpactРегресс R1: время до удара учитывает горизонтальную скорость (центробежный член); при vHoriz = 0 совпадает с простой замкнутой формой; при эффективном g ≤ 0 — запасная оценка h/|vVert|, конечная и положительнаячисленное инерциальное интегрирование двух тел (Земля, h = 1 км, vHoriz 0–7800 м/с)10% против интегрирования (широкий, осознанно) · vHoriz = 0: 1e-12 · запас: 1e-9

Скорость удара радара берётся из сохранения энергии в невращающейся системе тела, поэтому на быстро вращающихся телах она завышена на несколько процентов; ни один тест это не измеряет, модели атмосферы нет.

Релевантные ADR

Append-only журнал решений проекта документирует часть закреплённых выше решений. Ниже — реальные номера записей ADR.md, не внутренние метки «пунктов ТЗ» из комментариев некоторых тестов (как «A6» у orientation) — это отдельная система нумерации.

Чего этот гейт не утверждает