Repository navigation
Merge the nine audit fix branches - #10
Merged
Merged
Conversation
…d longitude (PERF-01, CORR-06)
…Kepler solver (CORR-07, CORR-08)
…d updates (CORR-10)
… test production orbit code (ARCH-01, DEPLOY-04, CI-01, TEST-01)
The STM became an ECI matrix in fix/correctness-high, while the second-order tensor, the input covariances and the miss vector stay in RTN. The propagated covariance was therefore reported on the wrong axes once the object moved along its orbit, and Pc depended on where the objects happened to be. - Map the ECI STM into the object's RTN frame at epoch and at t (StateTransitionTensor.local_stm), so it composes with the RTN tensor. - propagate_moments returns ECI moments: the mean is the propagated state plus the second-order shift (it was Phi applied to the absolute state, millions of km off); covariance and skewness are rotated to ECI. - screen combines both objects in ECI and rotates the result into the primary's RTN frame before projecting with the RTN miss vector. The relative third moment is secondary minus primary (it was added). - Monte Carlo samples deviations rather than absolute states, propagates them through the same second-order flow, and counts hits on the same encounter plane as the analytic path. - Tests: RTN STM equals Clohessy-Wiltshire for a circular orbit without J2; Pc is unchanged when both orbits are rotated about the polar axis; the propagated mean stays on the orbit; Monte Carlo matches the projected Gaussian. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQ1LmN35bvwVLnZ9PiewFe
gemini-2.0-flash-lite shut down on June 1, 2026 and gemini-2.5-flash shuts down on December 1, 2026. Use gemini-3.5-flash-lite (Google's named replacement) with gemini-3.1-flash-lite as the fallback. Gemini 3 ignores temperature and counts thinking tokens against maxOutputTokens, so drop temperature and raise the cap to 1024. Read the first non-thought text part of the reply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GQ1LmN35bvwVLnZ9PiewFe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
One branch that merges the nine fix branches behind PRs #1 to #9 (open since Oct 25), so they can be reviewed and merged together, plus two fixes found in review.
fix/secrets-env/api/configfunctionfix/api-nlp-lockdown/api/nlprequires an API key, limits origins, rate-limits and validates inputfix/docker-buildfix/infra-hardeningfix/correctness-highfix/orbit-propagatorfix/twin-wsfix/dbchore/build-test-hygiene.dockerignore, pytest in CI, deduplicated photometry sourceNo file is touched by more than one branch, and all nine merged without conflicts.
Added in review
fed8226Consistent frames innon_gaussian_pc.py.fix/correctness-highmade the STM an ECI matrix, while the second-order tensor, the input covariances and the miss vector are in RTN.33c378eGemini models in/api/nlp.gemini-2.0-flash-liteshut down June 1, 2026 andgemini-2.5-flashshuts down December 1. Nowgemini-3.5-flash-litewithgemini-3.1-flash-liteas fallback. The temperature setting is dropped (Gemini 3 ignores it), the output cap is raised to 1024 because it includes thinking tokens, and the reply parser skips thought parts.How it was checked
Run locally on Python 3.13 with the CI install step (
pip install -r requirements.txt):ruff check . --select=E9,F63,F7,F82: passes.pytest -q: 41 passed.python end_to_end_test.py: 6 of 6. The science module self-tests andpython main.pyexit 0.api/nlp.jsandapi/config.jsthrough a local harness:/api/nlpreturns 503 whenNLP_API_KEYis unset, 401 without a key or with a wrong one, 403 from another origin, and 429 after 20 requests a minute.gemini-3.5-flash-litewith the key in a header, falls back on 503, and returns 502 when both models fail./api/configreturns the token from the environment./docs; the command onmainfails withModuleNotFoundError: No module named 'src'. The image itself was not built.Before merging: this changes the live demo
CESIUM_ION_TOKENin Vercel and restrict the token to your site's URLs in Cesium ion./api/configgives it to anyone who asks, as any browser-side token is. Without the variable, the globes fall back to Cesium's built-in demo token./api/nlpnow requires anX-API-Keyheader, andfrontend/sentinel_terminal.jsdoes not send one. Free-text input the built-in parser does not recognise will show "I didn't understand that"; built-in commands are unaffected.NLP_API_KEYand, if the site is served from another domain,ALLOWED_ORIGINS. Both functions default to allowing onlyhttps://sentinelforge.vercel.app.Not covered
non_gaussian_pc.pybuilds its encounter plane perpendicular to the miss vector rather than the relative velocity, so the miss distance always projects to zero and Pc ignores it. This is the same onmain. Fixing it needs the relative-velocity direction, whichEncounterGeometryonly has as a scalar speed.imageryProvider, which CesiumJS removed in 1.107, so they load Cesium ion imagery instead of the intended local texture.alembic.inicannot readDATABASE_URLfrom the environment (there are no migrations yet),health_check.pyalways reports healthy, and.vercel/project.jsonis still tracked.main.Merging this PR lands the same commits as #1 to #9, so GitHub will mark those nine as merged and their branches can be deleted.
https://claude.ai/code/session_01GQ1LmN35bvwVLnZ9PiewFe
Generated by Claude Code