Repository navigation
paran_performance_validation_2026 07 12
Date: 2026-07-12
Status: Python fast path admitted; the subsequent native heliacal parity repair is documented separately and is now admitted
The optimized product is unchanged: exact rise, set, upper transit, and lower transit events within one 24-hour window, combined into paran pairs under the existing time-orb doctrine. Analytic geometry and Newton iteration provide brackets or estimates; the exact altitude/hour-angle signals remain the event authority.
Measured in the project .venv on the local Windows reference checkout after
kernel/catalog warm-up where applicable:
| Operation | Before |
|---|---|
_lst |
0.076 ms |
| stellar transit | 14.4 ms |
stellar find_phenomena
|
100.9 ms |
stellar _crossing_times
|
160.0 ms |
Mars _crossing_times
|
298.5 ms |
| 67-latitude field column | approximately 45 s in the supplied audit |
The focused pre-edit truth slice passed 95 tests.
- Reuse the one nutation evaluation when constructing apparent sidereal time.
- Seed meridian transit from the forward hour-angle displacement, perform at most eight Newton refinements, verify the exact residual and 24-hour window, then fall back to the original scan.
- For fixed stars, derive daily altitude extrema and hour-angle brackets from center-window RA/Dec, then refine the exact altitude signal.
- For planets, use center-window RA/Dec only to estimate brackets; exact topocentric altitude remains authoritative and failed estimates fall back to scanning.
- Split paran horizon and meridian collection so latitude-independent stellar MC/IC events can be reused in a field column.
- Add explicit request/field-scoped crossing reuse. There is no global cache; planetary keys retain the active reader identity.
- Remove the prior duplicate MC/IC computation inside
_crossing_times.
- Newton-first transits are compared with scan/bisection truth for all ten planets plus Regulus and Acrux, upper and lower transits, at five latitudes from -66 to +66 degrees; tolerance is 0.5 seconds.
- Fixed-star horizon events are compared with scan/bisection truth for five stars over the full -66 to +66 degree sweep in two-degree increments; event-set equality is exact and timing tolerance is 0.5 seconds.
- Planet horizon estimates are pinned against scan truth for all ten planets at -66, 0, and +66 degrees in the normal suite. A full two-degree sweep is part of the implementation acceptance receipt.
- The existing offline Horizons rise/set and paran fixtures remain required.
- Circumpolar diagnostic states are compared against the prior sampled states, including a grazing fixed-star geometry case.
Run:
$env:MOIRA_NO_DOWNLOAD = "1"
$env:MOIRA_PERF_ASSERT = "1"
.\.venv\Scripts\python.exe tests\benchmark_paran_performance.pyObserved after implementation:
| Operation | After |
|---|---|
_lst |
0.043 ms |
| stellar transit | 0.53 ms |
stellar _crossing_times
|
11.1 ms |
warmed Mars _crossing_times
|
22.2 ms |
| 67-latitude field column | 1.09 s |
| field sample average | 16.3 ms |
| 53-available-star packet core | 0.51 s |
These are local performance evidence, not astronomical validation. The script's absolute gates are opt-in because timing varies by host.
This document originally gated native heliacal dispatch after a controlled
Sirius custom-policy probe demonstrated divergent setting results. That gate
was correct at this stage. The later repair replaced the defective nutation
model, aligned the observables and complete policy, added independent
Python/native differential tests, and admitted native search by default. See
native_heliacal_parity_validation_2026-07-12.md for the separate evidence.