Commit 412415b
authored
Phase 3 — fixture and pipeline hygiene (#10)
Closes C-2, L-1, L-2, L-3, L-5 from FINAL_CLEANUP.md. Verifies M-7 is
already complete from Phase 2.
- C-2 (pipeline/mod.rs): replace the four opaque FAR_FIELD_* ECI
Cartesian constants in the far-field test fixture with a Keplerian
derivation — iss_like_elements() + 50 km SMA offset + 0.2 rad mean
anomaly offset. δa/a ≈ 7.4e-3 crosses the default roe_threshold of
5e-3, classifying the pair as FarField. δλ is deliberately excluded
from dimensionless_norm per Koenig Sec. V, so a pure in-track offset
would always classify as Proximity regardless of separation — the SMA
bump is the lightest physical component that crosses the threshold.
Mirrors the existing proximity_input() idiom.
- L-1 (validation/trajectory.rs:249): pre-size eclipse_samples to
chief_results.len() when earth_frame.is_some(); leave it as
Vec::new() when eclipse validation is disabled so the disabled
path stays zero-allocation.
- L-2 (validation/trajectory.rs:1071): flip
f64::from(u32::try_from(5 + j).unwrap()) to
f64::from(5_u32 + u32::try_from(j).unwrap()) so the arithmetic stays
in u32 rather than casting a usize sum.
- L-3 (validation/statistics.rs): drop four narrative comments that
restated what the code does — mechanical "compare candidates" at the
binary search, a three-line test-value table, two "leg excluded" /
"no input" test narrations. Keep the load-bearing comments (time-
sorted input invariant, sum/sum-sq recovery math, +0.0 bit-pattern
empty-input contract, all-zero summaries contract).
- L-5 (validation/trajectory.rs:1833, 1945): normalize two #[ignore]
strings from capital-R "Requires MetaAlmanac" to lowercase-r
"requires MetaAlmanac" so all 25 MetaAlmanac ignore sites use the
same canonical string. SPICE-kernel-specific strings in
nyx_bridge/almanac.rs describe a different prerequisite and are
intentionally left alone.
- M-7: verified as already complete — Phase 2 named both 709.0 call
sites as const MID_COAST_BURN_ELAPSED_S.
Verification: 586 passed / 0 failed / 0 ignored across the workspace
with --include-ignored (unchanged from Phase 2 baseline). Clippy,
docs, and wasm-pack build all clean. rpo-cli mission/validate/mc
JSON outputs are byte-identical to the pre-Phase-3 baseline (modulo
non-deterministic elapsed_wall_s in MC).1 parent 5c47988 commit 412415b
3 files changed
Lines changed: 36 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
235 | 228 | | |
236 | 229 | | |
237 | | - | |
| 230 | + | |
| 231 | + | |
238 | 232 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
244 | 240 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | 251 | | |
257 | 252 | | |
258 | 253 | | |
| |||
297 | 292 | | |
298 | 293 | | |
299 | 294 | | |
300 | | - | |
301 | 295 | | |
302 | 296 | | |
303 | 297 | | |
| |||
317 | 311 | | |
318 | 312 | | |
319 | 313 | | |
320 | | - | |
321 | 314 | | |
322 | 315 | | |
323 | 316 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
1068 | 1072 | | |
1069 | 1073 | | |
1070 | 1074 | | |
1071 | | - | |
| 1075 | + | |
1072 | 1076 | | |
1073 | 1077 | | |
1074 | 1078 | | |
| |||
1826 | 1830 | | |
1827 | 1831 | | |
1828 | 1832 | | |
1829 | | - | |
| 1833 | + | |
1830 | 1834 | | |
1831 | 1835 | | |
1832 | 1836 | | |
| |||
1938 | 1942 | | |
1939 | 1943 | | |
1940 | 1944 | | |
1941 | | - | |
| 1945 | + | |
1942 | 1946 | | |
1943 | 1947 | | |
1944 | 1948 | | |
| |||
0 commit comments