aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / docs / SKY_FLIGHT_PLAN.md
| 1 | # Slow flight through the real nearby stars: plan (no code yet) |
| 2 | |
| 3 | Owner direction (2026-10-19, 18:55 CDT): the sky is either "the sky above me" or "somewhere |
| 4 | new". The later "somewhere new" option is a slow flight through real nearby stars in 3D, |
| 5 | built from Gaia parallaxes. This note is the plan. Nothing here is built or committed as code. |
| 6 | |
| 7 | ## What the data are |
| 8 | |
| 9 | Gaia DR3, table `gaiadr3.gaia_source`, ESA/Gaia/DPAC, CC BY-NC 3.0 IGO (credit ESA/Gaia/DPAC). |
| 10 | Columns used: `ra`, `dec` (degrees, epoch 2016.0), `parallax` (milliarcseconds), |
| 11 | `parallax_over_error`, `pmra`, `pmdec` (mas/yr), `phot_g_mean_mag`, `bp_rp`. |
| 12 | |
| 13 | Counts, measured on 2026-10-19 with synchronous TAP `COUNT(*)` queries on the ESA server: |
| 14 | |
| 15 | | selection | stars | |
| 16 | |---|---| |
| 17 | | parallax > 10 mas (within 100 pc) and parallax_over_error > 10 | 372,226 | |
| 18 | | parallax > 20 mas (within 50 pc) and parallax_over_error > 10 | 48,809 | |
| 19 | |
| 20 | The second is the first version's target: 48,809 stars is a size the kernel can hold. (Those |
| 21 | counts are the whole sky. The view a flight sees is a fraction of them.) |
| 22 | |
| 23 | ## How a star becomes a point in space |
| 24 | |
| 25 | 1. Distance = 1000 / parallax (parsecs). With parallax_over_error > 10 the parallax error is |
| 26 | under 10 percent, so inverting it is safe. Stars with a poorer parallax are left out. |
| 27 | 2. Apply the Gaia parallax zero point before inverting (Lindegren et al. 2021, A&A 649, A4; |
| 28 | about -0.017 mas across the sky). Its effect at 50 pc is small but it is applied, not ignored. |
| 29 | 3. Position at the time of the flight: move the star along its proper motion from epoch 2016.0 |
| 30 | (`pmra` is already multiplied by cos dec; mas/yr). For a star moving 10 arcseconds a year (the Barnard's |
| 31 | Star class) the shift over ten years is 100 arcseconds, about 0.03 degree, so it matters and is applied. |
| 32 | 4. Unit vector times distance gives x, y, z in parsecs, in the J2000 equatorial frame. The |
| 33 | kernel can then use the same integer projection as the sky now (sky_real.c). |
| 34 | |
| 35 | ## The flight |
| 36 | |
| 37 | - The camera moves slowly through the cloud along a straight or gently curved path (the path, |
| 38 | the speed and the time of one flight are NOT yet decided; they need Drake's choice). |
| 39 | - Each frame: the stars within a set distance of the camera are projected with a perspective |
| 40 | divide (nearer stars larger and brighter, with the inverse-square law for flux). |
| 41 | - Brightness: from G magnitude, through the same star model as the sky (the magnitude law in |
| 42 | integers). Colour: from BP-RP through the black-body chain already in the generator. The map from |
| 43 | BP-RP to B-V is an approximation and must be stated where used. |
| 44 | - Compute: flat arrays (x, y, z, flux, colour), as the direction doc asks, so the Radeon |
| 45 | compute path (ledger L142 to L144) can read them. The CPU path is the same code on the integer |
| 46 | side, so the test can compare both. |
| 47 | |
| 48 | ## Data as a table |
| 49 | |
| 50 | - The generator is plain C, like `native/kernel/tools/ck_sky_gen.c`. No Python is committed. |
| 51 | - The table holds one record per star, in the flight's fixed frame. Its size is set by the |
| 52 | record: this is a design figure, not a measurement: about 16 bytes per star, so about 0.8 MB for |
| 53 | 48,809 stars. It must be measured (`ls -l` of the generated file, and the IMAC kernel size) |
| 54 | before it is accepted. |
| 55 | - Fetch by the same pattern as `scripts/ck_sky_gen.sh`: TAP query text in the script, sha256 pinned, |
| 56 | refuse any other file. Credit and licence in NOTICE and docs/ALLEN_SKY_SCIENCE.md. |
| 57 | |
| 58 | ## Steps and what proves each one |
| 59 | |
| 60 | 1. Generator and query (C, pinned sha256). Proof: a count in the report matches the counts above. |
| 61 | 2. Host test: projection of known stars against their catalogue positions (as the sky test does |
| 62 | for BSC5 stars), at the chosen epoch. Proof: worst error in pixels, printed. |
| 63 | 3. Frames at three camera positions, looked at by a person. Proof: pictures in evidence/. |
| 64 | 4. Time per frame at 3840 x 2160 on one core, and the same on the GPU path once it exists. |
| 65 | Proof: the numbers, with the method. No estimate is accepted as a timing. |
| 66 | 5. Allen command: "fly through the nearby stars" (or similar), plus "stop" and "the sky above me" |
| 67 | to go back. Proof: the reply test in ck_allen_ui_test.sh. |
| 68 | |
| 69 | ## Not decided (for Drake) |
| 70 | |
| 71 | - Speed and length of one flight, direction of travel, and whether the path loops. |
| 72 | - Whether the flight starts from the sky above you (the Sun's neighbourhood is the same for |
| 73 | everyone) or from a random place each boot. |
| 74 | - Whether to include the 100 pc set (372,226 stars) or only the 50 pc set in the first version. |