Skip to content

Latest commit

 

History

History
59 lines (53 loc) · 108 KB

moving-objects.md

File metadata and controls

59 lines (53 loc) · 108 KB

Decisions: Moving objects: Track and Area search

Part of: the decision log (index) · Holds: Rainbow Trails, the Track tool, Area search and Discovery · Authority: highest; an entry here wins over rendering/ and architecture/ (see the index for precedence)

D-28 Rainbow Trails is a flipbook view mode (answers Q-04)

  • Decision: Rainbow Trails (handover §5: one dot per band along a moving object's path) is a view mode of the flipbook, not a separate feature. It uses the frames and mover positions the flipbook already loads. Priority P1, built after basic playback works.

Questions

Status, owner and full text as recorded. The index lists every ID with its file.

ID Question Owner Status
Q-04 How Rainbow Trails (handover §5) relates to the flipbook. Is it a view mode of the flipbook or a separate P1 feature? Team Answered: D-28
Q-22 Meaning of moving in /v1/resolve (D-16). UML 08 drew Horizons for "asteroid, comet, high proper motion". The backend sets moving = true only for solar-system bodies (SBDB hits, positions from Horizons). High proper-motion stars (Barnard's Star, eps Ind B, WISE 0855) are moving = false; their position is propagated from the SIMBAD proper motion to each frame time (tagged derived), and Horizons is not used for them. Confirm. Kevin, Moon Open (implemented as proposed)
Q-131 Track tool scope: known solar-system objects only (mock-up: mockup/chase-the-rock.html). The tool follows a KNOWN asteroid or comet: its JPL Horizons path, the SPHEREx frames that caught it, a north-up zoom with stars masked, and a spectrum built exposure by exposure. No blind search for unknown movers and no discovery claims; that work is for researchers. This conflicts with Q-147 (then numbered Q-113) as written (a blind linker with an injection atlas). Track is built first; the A16 to A18 spec in this PR is to be re-scoped to known objects, and any later linker reuses Track's sky layer, tool id and export. Moon (9 Nov 2026): agreed that Track is built first and the blind linker with an injection atlas is cut for the event; discovery is kept in a reduced form (Q-146), so A16 to A18 now describe the Area tool. Amended by: Q-181 (Track has no tool id; it is a split-pane kind, Q-171 item 9). Spec: A19, A20. Status note (9 Nov 2026): Atish accepted Q-146 (9 Nov 2026), which keeps a blind replay over prepared areas (Discovery) with no discovery claims; read this row's "no blind search" with that. Atish (scope); Moon (spec re-scope) Answered for scope (Atish, 9 Nov 2026); re-scope done as Q-146 (Moon, 9 Nov 2026): Track first, plus Discovery as the second option of an Area tool
Q-135 Spin slider ("Colour or Clock?") owner, tag and wording. Owner Atish (D-17 named no owner). A synthetic rock with a flat spectrum is sampled at the real exposure times with a seeded lightcurve; dragging the slider shows how spin alone makes a dip. Tagged artistic, so shown only at "+ Artistic" (D-21); labelled "Synthetic rock, not Eros's data"; amplitude set by the user (SBDB has no lightcurve amplitude; LCDB and ALCDEF are "all rights reserved"); never exported and never sonified as data. Spec: A20.8. Atish Answered (Atish, 9 Nov 2026)
Q-136 High-resolution imagery only for the detailed path view. No high-resolution survey on the sky background. A sharper image is used only around the object's path in the Track detail view. Candidates: Pan-STARRS DR1 colour (Dec above −30°) or Legacy Surveys DR10 colour (about 67% of the sky), both HiPS order 11 (about 0.2″ per pixel), with 2MASS as the fallback; DSS2 is order 9 and adds nothing. An offline partial copy needs CDS agreement, taken from the CDS master (extends D-35) [verify]. Note for D-35: IRSA's HiPS list says not to mirror HiPS marked "unclonable", which is the status of the 2MASS colour copy already mirrored; D-35's local, non-redistributed use stands. Spec: A3.11 High-resolution row, A20.5 (local tiles only; 2MASS until CDS agrees). Status note (9 Nov 2026): reads as "Decided (scope, Atish, 9 Nov 2026); open item: CDS permission". Atish Answered for scope (Atish, 9 Nov 2026); CDS permission open (Atish)
Q-138 Positions are SPHEREx-centred. Everything drawn for a moving object (path, marker, ring, path segment in the zoom) uses Horizons from SPHEREx (500@-163182), computed at each frame's mid-time, never interpolated from an hourly table (up to 6″ error on Eros). Spec: A19.4, A3.4 Observer row, A4.1 step 2. Applies to Area search's known positions (A17.5, Q-180); clarified by Q-185. Not built: adapters/horizons.py:23 (geocentre for resolve), adapters/skybot.py:84 (-loc 500); PR #53 adds the SPHEREx-centred path. Atish, Kevin Answered (Atish, 9 Nov 2026)
Q-139 Flags on a moving object's core (stage 2). The SPHEREx pipeline marks Eros's own pixels OUTLIER in 15 of 16 frames (checked on PR #53's fixtures, 1.5 px core). Stage 2 rejects OUTLIER in the core (measure/config.py), so 15 of 16 frames are refused today. IRSA's Spectrophotometry Tool does not mask OUTLIER by default. Proposal: for moving objects only, OUTLIER in the core is recorded as "flagged", not refused; hardware flags keep refusing; the spectrum tag stays measured; bump MEASURE_VERSION. Result: 14 of 16 Eros frames usable (2 keep NONFUNC, SUR_ERROR, TRANSIENT). Spec: A4.2 step 2 (rule owner), A19.7, A20.7. Built in issue #72 (T4): see Q-460. PR #53's A4.2 still points to its own Q-124 for this; after the rebase it cites Q-139. Amended by: Q-178 (extended to the area pipeline: OUTLIER is kept as a flag and never masked). Moon Answered (Moon, 9 Nov 2026): accepted for moving objects only, on condition that a frame kept with OUTLIER on the core is shown as flagged in the UI (hollow point and a "flagged OUTLIER" note) and in the export (flags column); hardware flags keep refusing; spectrum tag stays measured; bump MEASURE_VERSION
Q-141 Path endpoint. Proposal: GET /v1/objects/{id}/path, cache only, filled by the object job (Q-111): observer, step, windows, points (time, ra, dec), tag model_dependent, assumption, missing codes. Note JPL's terms: one request at a time, with a User-Agent; over-limit answers come back as HTTP 200 text and must not be cached as success. Spec: A19.5 (fields, cache-only behaviour, path:* codes, size cap, the process-wide Horizons gate), A3.4 Terms row; route listed in A4.11. Status note (9 Nov 2026): the path's model_dependent tag against Q-62 item 4's measured phase angle is open in Q-201. Session note (11 Nov 2026; for the decision session, status unchanged): Options: (a) A19.5 in full, including the process-wide Horizons gate; (b) as in #74: serve the 10-minute samples that the path search already fetches and caches (backend/app/core/find/moving.py:429, _ephemeris_tracks, which calls horizons.ephemeris_range at :458; step moving_ephem_step_min = 10), no new Horizons fetch, gate cut for the event. Evidence: there is no /path route under backend/app/api/. Rec: (b). Its tag follows Q-201. Decides: Kevin. Status note (12 Nov 2026, issue #74): option (b) is built (backend/app/core/find/path.py, route in api/objects.py, schema shared/schemas/track-path.schema.json): each request reads the path search's cached range answers, with no derived.path entry, no new Horizons call and no gate; a missing answer starts the job (path:deferred) or, offline, gives path:not_cached; the 3σ columns are null; tag model_dependent until Q-201. Two choices A19.5 left open, recorded there: a first window longer than the cap is served for its first SX_PATH_MAX_SPAN_DAYS, and interp_error_arcsec is measured against the frames' TLIST positions. A code beyond A19.5 is added: path:frames_incomplete (the frame list is not final, so the frame points are a subset; review of #74). The status stays Open until Kevin records the decision. Kevin Open
Q-142 Marker epoch for moving objects. Today the sky marker for a mover sits at the resolve epoch (14 Nov 2026), not at the SPHEREx epochs. Proposal: in Track, the marker follows the time slider inside the SPHEREx windows, and the resolve-epoch marker is hidden. Spec: A19.4, A20.3. Amended by: Q-185 (the marker between exposures; clarifies, does not change the rule). Moon Answered (Moon, 9 Nov 2026): accepted; in Track the mover marker follows the time slider inside the SPHEREx windows and the resolve-epoch marker is hidden
Q-143 Star overlays for moving objects. overlays.py skips Gaia and CatWISE cones when the object moves, so no masks or contamination. Proposal: one Gaia DR3 + CatWISE cone per visit at the frame's position; mask radius from magnitude; masks drawn only near the track (a fixed G < 20 cut over-masks in the Galactic plane); masks tagged derived. The pipeline's SOURCE flag covers most pixels and cannot serve as a mask. Spec: A19.6 (cones per visit, mask radius from magnitude [verify], near-track filter), A4.9 Moving objects bullet. Not built: core/find/overlays.py:359 skips cones for movers. Status note (9 Nov 2026): Q-183 proposes Kevin as the only build owner of the star list (the Owner cell names Kevin and Moon). Status note (11 Nov 2026): built in issue #95 by Atish (Q-404, proposed); the choices for the spec gaps are Q-403 (proposed). Kevin, Moon Answered (Moon, 9 Nov 2026): accepted; Discovery uses the same per-visit star list to drop stars (A17.3), so it is built once (Kevin) and shared
Q-144 3I/ATLAS spectrum (extended coma). The CO2 coma reaches about 3′, larger than a 0.1° cutout's half-width, and IRSA advises against point-source photometry on it. Proposal: show aperture brightness with a fixed "aperture, not total flux" caption (D-31 precedent), or refuse as spectrum:extended_source. Amended by: Q-186 (a measurable test for "the coma fills the aperture"). Spec: A19.8. Moon Answered (Moon, 9 Nov 2026): show the aperture brightness with the fixed caption "aperture, not total flux" (D-31 precedent); refuse as spectrum:extended_source only when the coma fills the aperture; 3I/ATLAS stays stretch (Q-137)
Q-145 Export format. Proposal: GET /v1/objects/{id}/track.ecsv with time, position, pixel, wavelength, bandwidth, flux, error, flags, contamination and refusal reason, each column's provenance tag in the ECSV metadata; refusals kept as rows; the synthetic spin data never exported. ADES is not used (no SPHEREx MPC observatory code). Spec: A19.9 (base columns of the shared ECSV writer); Area search adds its columns in A17.7. Session note (11 Nov 2026; for the decision session, status unchanged): Options: (a) ECSV as in A19.9; (b) cut for the event. Evidence: grep -rni ecsv backend/app is empty; #74 and #82 both list export as cut. Rec: (b). Decides: Moon (event cut), with Kevin. Kevin Open
Q-146 Area search: Known objects (Track) and Discovery, the plan for the event build (re-scopes Q-147 after Q-131; A16 to A18, linker.md, linker-backend.md, linker-ui.md, uml/22; mock-up mockup/spherex-ui.html, key 5). (1) One Area search tool on the sky (ToolId 'area'): the user draws a square; an island card offers Known objects or Discovery. (2) Known objects lists what SkyBoT puts in the square; Track it opens Atish's Track (Q-131 to Q-145) in the split pane, with Back to the area. (3) Discovery, five steps replayed from a precomputed result: find dots, drop one-exposure glitches (a dot must repeat across the exposures of its visit), drop stars (Gaia DR3 and CatWISE, the Q-143 list) and dots fixed in both visits, join what moves (tracklets per visit, paired across visits by rate and direction), check SkyBoT. Labels: "found blind = (designation)" (opens Track), "unexplained track" (a lead, never "an asteroid", "new" or "a discovery"), "possible" (one visit or an ambiguous pair). Dots and Tracks layers, blink between the two visits, and island cards that can be minimised to a pill showing progress. (4) Event build: 1 to 3 precomputed areas, one around 433 Eros on 20 to 21 Mar 2026 (Q-137), offline, desktop only (Q-132); a square outside them is refused as not prepared. Demo moment: Discovery finds Eros blind, SkyBoT confirms it, one click opens Track. (5) Cut until after the event (phase 2): the rate-grid linker over many visits, the SED smoothness score, injection-recovery completeness and the shuffled-time control, ADES, live areas anywhere. No catch-rate claim is made until completeness exists. (6) Routes /v1/areas/... (A17.8), beyond D-16; schemas shared/schemas/area-*.schema.json and synthetic fixtures (D-18, Q-32). (7) Owners: Discovery backend Kevin (ticket D1, Day 0 count first: visits, gap, exposures per visit, motion inside a visit, per-exposure S/N); Area tool UI, schemas and fixtures Moon (D2); integration shared in M5 (D3); Track Atish. Milestone M4 Extras, P2. Gate: if Day 0 shows Eros is not found blind, keep Known and Track and show Discovery's steps with real counts but no tracks. Amended by: Q-178 (OUTLIER kept as a flag), Q-179 (pair test), Q-180 (known-object check, unchecked), Q-182 (Result card); island cards are feature cards with a progress pill (Q-172). Shell hooks: A21.13; open shell points Q-171 to Q-176. Every change to this plan is listed for Moon's review in Q-202. Status note (9 Nov 2026): the links named linker.md, linker-backend.md and linker-ui.md lead to area-search.md, area-backend.md and area-ui.md; "key 5" is the mock-up's tool 5, not a shortcut (Q-121, Q-177). Amended by Q-203 (10 Nov 2026): the first four items of item (5)'s phase 2 list (rate-grid linker, SED smoothness score, injection-recovery completeness, shuffled-time control) return as gated extras; ADES and live areas anywhere stay phase 2. Session note (11 Nov 2026; for the decision session, status unchanged): An event cut of this plan is proposed in Q-205; see that entry. Decides: Moon. Moon (architect); Atish, Kevin Answered (Moon, 9 Nov 2026); accepted by Atish (9 Nov 2026)
Q-147 Band-Hop Linker: accept the spec (A16 to A18, linker.md, linker-backend.md, linker-ui.md, uml/22). Proposal: (1) a blind moving-object linker for SPHEREx field frames with an injection-recovery completeness atlas, run offline by scripts/link_field.py and served from the cache only (no compute in requests, SX_OFFLINE=1 safe, D-25); (2) folded into the sky view (Q-89) as a Linker tool (ToolId 'linker'), two layers (Detections, Chains) on one canvas above the sky, and Field, Chain and Atlas views in the floating panel; the existing markers and click-to-pick keep working; (3) the /v1/link/fields/... routes of A17.8, beyond D-16, with shared/schemas/link-*.schema.json and synthetic fixtures (D-18, Q-32); (4) honesty rules of A16.5: an unmatched chain is a candidate, never "an asteroid" or "a discovery"; completeness is model_dependent; injected movers never reach the sky; ADES written but not submittable while no SPHEREx observatory code is known; (5) owners: core/link/, the script and api/link.py Kevin; schemas, fixtures and the sky UI Moon; optional chain haptics Atish (D-13); (6) three tickets L1 (data and precompute), L2 (sky UI), L3 (integration and docs) in M4 Extras, priority P2, with the Day 0 depth measurement as the first item of L1 and its gate (A16.7). Science basis: the SSOC tracks known orbits only and leaves unknown-object mining to the community (Lisse, Bauer and Kim 2024, arXiv:2402.08705). Accept, amend or reject. Status note (9 Nov 2026): history: as proposed in aca86e0 and superseded by Q-146. /v1/link/fields/..., scripts/link_field.py, ToolId 'linker' and link-*.schema.json exist in no spec now, and A17.8 now holds /v1/areas; the links named linker*.md lead to area-search.md, area-backend.md and area-ui.md. Atish (reviewer), Kevin, Moon Answered: re-scoped as Q-146 (Moon, 9 Nov 2026), after Q-131. Was Q-113 in PR #59; renumbered because main uses Q-113 for the Build split view
Q-148 Conflict: how long a pass lasts for one sky position (A3.1 vs a cache check; A16.6). A3.1 says the bands for one spot are captured within about 0.8 days. A check of the cached frame lists on 8 Nov 2026 (ideation run 2, not re-checked here) reported passes lasting 0.7 to 88 days. The linker's field size, pass split (pass_gap_days) and rate grid depend on the answer (A17.1, A17.4). Until answered, the linker spec uses a configurable gap and flags the values [verify]; A3.1 is not changed. To settle: count exposures per day and per pass for 5 known asteroids from the cache (the Day 0 task of L1) and correct A3.1 if needed. Status note (9 Nov 2026): measured on the Eros fixtures: 2 visits of 4 exposures (2 detectors each) spanning 6.4 min, 24.4 h apart. The field size, the visit split (visit_gap_h) and rate_min depend on the answer (A17.1, A17.4); "pass split (pass_gap_days) and rate grid" now read so. To settle: the Day 0 count of ticket D1 (formerly L1) on the other demo areas. The A3.1 Revisit row now carries the [verify] and this pointer. Status note (11 Nov 2026, issue #97): measured ad hoc (script in the PR description), the 482 cones of the production cache give visit gaps of 1.45 h to 206 days (median 11.3 h, 79 % below 24 h) and many one-exposure visits; numbers in Q-401. The live Day 0 on the Eros area is still to run. Status note (12 Nov 2026, issue #108): on the recorded Eros area (2 visits, 24.4 h apart) the A17.3 and A17.4 rules with visit_gap_h = 1 h give one track, found blind as 433 Eros (A16.6, Q-420); the pass length for other areas is still open. Kevin, Moon Open. Was Q-114 in PR #59; renumbered because PR #63 holds Q-114 to Q-119
Q-203 Four research checks join the event build as gated extras (amends Q-146 item 5; A16.2, A16.7, A16.8, A17.6, A17.12, A17.13, A18.11). Q-146 sent four items to phase 2: injection-recovery completeness, the shuffled-time control, the spectrum smoothness score and the rate-grid linker. Moon (10 Nov 2026) adds them back: a team of three with Claude Code writes each in a day or less; what stays slow is real data (the Day 0 count, IRSA downloads at about 20 s per cutout, tuning on real frames), so they are gated extras, not core. (1) Completeness (D4): plant synthetic movers in memory in this area's recorded cutouts, run the same pipeline, report the share recovered per S/N and rate bin with intervals. No single "catch rate" number. A planted test mover (one fixed mover near the detection limit) is its first, visible step. (2) Shuffled-time control (D5): the same search with the frame times permuted, 20 seeded runs; report the false tracks it makes. (3) Spectrum smoothness score (D6): each track's flux against wavelength gets smooth, rough or too_few; a flag that ranks leads, never a gate, never a composition claim. (4) Rate-grid linker (D7): for an area with 3 or more visits, link all visits at once (THOR style); with 2 visits the pair rule of A17.4 stays the only linker. (5) Rules: planted data never enters known, tracks, the step counts or the real ECSV; it lives only in checks, carries an Injected badge, is tagged model_dependent, and is worded "planted by us; the search was not told where". None of the four changes the "unexplained, not a discovery" wording, and no claim goes beyond the squares tested. (6) Why, for reviewers: the SPHEREx catalogue covers known orbits only and leaves unknown-object mining to the community (Lisse, Bauer and Kim 2024). A community researcher will not trust a list of leads without its sensitivity, its false-alarm rate and a sign that a lead is one body; these four supply exactly that (A16.8). (7) Gate: the core demo (draw, Discovery on Eros, Result card, Open in Track) works on fixtures by 12 Nov; D4 to D7 start after it (D5 and D6 may start earlier on fixtures); an extra not finished and tested by 13 Nov is cut and hidden, never shown half done. (8) Owners (Proposed, Moon confirms): Kevin the backend (D4 to D7); Moon the Checks card, schema and fixtures; Atish checks the score against Eros's Track spectrum. Session note (11 Nov 2026; for the decision session, status unchanged): An event cut of D4 to D7 is proposed in Q-205; see that entry. Decides: Moon. Status note (12 Nov 2026, PR #110 review; status unchanged): PR #110 (Discovery 1) ships without D4 to D7: /checks is not served, summary.missing says checks:not_run and linker = pairs. That is the gate's "not finished" state, not a cut decided by the PR; item (7)'s deadline is 13 Nov, and whether D4 to D7 are cut for the event is Moon's call before PR #110 merges. Note (13 Nov 2026): D6, the spectrum smoothness score, is replaced by the spectrum check (Q-474, A17.13). Moon (architect); Atish, Kevin Decided (Moon, 10 Nov 2026) that the four are added behind the gate; owners and thresholds Proposed
Q-207 Rainbow Trails on real frames: the UI rotates, the backend keeps native orientation (issue #75 item 2; D-28; A4.1, R4; hands the UI part to issue #84). Facts: /frames answers north_up: false (native orientation, backend/app/api/objects.py), and trailsUnavailableReason (frontend/src/app/flipbook/RainbowTrails.tsx) offers the mode only when north_up is true, so it is reached only with fixtures. Every frame already carries ra, dec (for a mover, the Horizons position at the frame time, model_dependent, Q-125), north_angle_deg and mirrored (derived, NORTH_ANGLE_FORMULA in core/find/wcs.py), each with a provenance entry. Options: (a) the backend reprojects every cutout onto one shared north-up grid and answers north_up: true (the composite already does this for three frames); (b) the UI places the dots and rotates the picture. Rule (b): /frames stays north_up: false and is not resampled: a reprojection would interpolate measured pixels for every frame, a mover's cutouts are centred on different sky positions (a shared grid would have to span the whole path), and it adds a bake step four days before the event. The UI draws Rainbow Trails from each frame's ra, dec on a north-up, east-left tangent plane, and turns the cutout under it with the frame's north_angle_deg and mirrored (rotate clockwise by north_angle_deg about (x, y), then flip if mirrored, as the formula says). The mode's gate becomes "every frame states ra, dec, north_angle_deg and mirrored", not north_up; the dot positions take the ra/dec tag (model_dependent for a mover) beside the colour's derived (Q-27). north_up: true keeps its meaning (frames already on one grid) for fixtures and any later backend grid. Backend part (done, issue #75): tests/test_moving.py::test_frames_carry_what_the_ui_needs_to_rotate fails if a mover's frame loses one of the four fields or its provenance. UI part: issue #84 item 5 (Moon). Kevin (backend), Moon (UI, #84) Proposed (needs a second team member)
Q-208 Area contract: shape choices for the spec gaps (issue #92, ticket P0; A17.8, A17.9; D-18, Q-146, Q-203). The six shared/schemas/area-*.schema.json files and shared/fixtures/area/ fill these gaps; P3, P7, P8 and P9 build against them. (1) Envelopes. Every reply is an object, never a bare array ({areas}, {known}, {visits}, {tracks}), so that each carries cached_at, computed_at, missing and provenance as A17.8 asks. (2) /tracks holds dot_ids per tracklet (A17.4); the client joins them with /dots. (3) /dots per visit is visits[{visit, dots[]}]; a dot carries the A17.8 field list (not A17.2's visit and sigma_c_px). (4) Static one-visit tracklets: their dots keep the label mover, belong to no track and are counted (as tracklets) in steps.n_static_one_visit. (5) method is nested `{settings: {name: integer number string}, checks?: {seeds, n_per_cell, snr_bins, rate_bins, n_control_runs, psf, distance_model}}. Replaces the ticket's choice 4 (a flat object mixing settings and checks), which neither generator can type. (6) **provenanceis a closed object per reply** whose values are{tag, source?, formula?, assumption?} with the card's rules (derivedneedsformula, model_dependentneedsassumption): index areas; summary frames, coverage, steps; known positions, skybot; dots position, photometry, wavelength, label; tracks tracks, match, sed (sedonly when a track has one); checkstest_mover, completeness, control(each only with its part, (12)). Tags aremeasured, derivedormodel_dependent(A16.5), neverartistic. Replaces the ticket's choice 5 (a field-to-tag map), which cannot hold the formula or assumption A16.5 asks for. (7) **/known.kind** is asteroid
Q-400 Area frames and dots: the choices P3 made where A17.1 and A17.2 are silent (issue #97; A17.1, A17.2, A16.4; Q-146, Q-208). (1) Area box = a rectangle on the gnomonic plane about (ra, dec), north up, width_deg along RA (the same definition P8 draws); cone grid ceil(side / 0.25°) cells per side, cones at the cell centres, row by row from the south (Eros: 5 × 3 = 15, as A17.11 estimates). A frame that clips only an edge or a corner of the box and holds no cone centre is not found: it is absent, not refused, and the coverage shrinks honestly. (2) Window, then footprint: a frame outside the windows is dropped first, so no_footprint:<frame_id> lists only frames inside them (A17.1 lists the footprint test first; the kept set is the same). Overlap = the footprint clipped to the box (Sutherland–Hodgman) has an area above overlap_eps_deg2 = 1e-12 deg², a tie rule: a corner or edge touch is no overlap. (3) One cutout rule for every frame: centre = the centre of the bounding box of (footprint ∩ area) on the plane, side = that box's larger side + 2 × margin_deg (0.02°), so a cutout is never centred off its frame. The bounding box is on the area's north-up plane, so for a frame rolled against north the square can miss the frame's corners and lose a few edge cells (follow-up: side = w· cos θ + h·
Q-401 Area starting values against the Day 0 count: offline numbers, and what the live run must settle (issue #97; A16.6, A17.2, A17.11; Q-148, Q-146). Measured offline on the recorded-fixture Eros area (16 recorded 0.1° cutouts; the full JSON is in the PR description, collapsed): Eros is one dot in 14 of 16 frames, 0.015 to 0.076 px from Horizons, S/N 153 to 337, OUTLIER on every Eros dot; the two misses (2026W12_2A_0158_4_D1, 2026W12_2A_0341_2_D4) are refused by Stage 2 for bad pixels in the aperture core; Track's own settings (OUTLIER masked) refuse 15 of 16 (Q-139). P5's gate (most exposures per visit) still holds. Density: 70 to 130 peaks above 5·sqrt(V) per 58 × 59 px cutout; after the separation and coverage rules about 6 400 kept dots per deg² per frame, so the whole Eros box would give about 4 200 dots per frame and about 76 000 dots over 18 frames (an estimate extrapolated from the 0.1° cutouts). The record form is about 340 bytes a dot, so /dots would be 20 to 26 MB: P7 and P8 must split it per visit or frame, or gzip it (amends Q-208 (3) when P7 decides). P1, P4 and P5 must expect tens of thousands of dots, most of them stars and noise. Noise: the mesh std is 1.35 to 2.33 × the median sqrt(VARIANCE) (median 1.83), so k_detect = 5 on sqrt(V) is about 2.7σ of the real scatter; most extra dots are faint stars and noise for P4's steps. Not changed in P3; a second cut would be a new starting value recorded here. Centroids: sigma_c is noise only (0.002 to 0.005 px on Eros) while the real scatter is about 0.02 to 0.08 px, and a noiseless 1 px Gaussian shows a pixel-phase bias up to 0.042 px per axis in the 5 × 5 box. P4 and P5 should keep A17.3's 2 px floor in r_match; sigma_c alone is not a usable error. Times (A15-class laptop, offline): Stage 2 13 to 21 ms a dot on a stamp; RA/Dec and wavelength 25 to 43 ms a frame; mesh about 4 ms a 58 px cutout. At about 76 000 dots that is about 25 min on one worker; SX_MEASURE_WORKERS divides it. Q-148 (production cache, 482 cached cones, 11 Nov 2026; measured ad hoc, the script is in the PR description, as are the wall times and Eros's core flags): with visit_gap_h = 1 h every cone has 5 to 107 visits over 3.9 to 426 days; gaps between visits run from 1.45 h to 206 days, median 11.3 h, 79 % below 24 h; exposures per visit: 1 (11 904), 2 (6 839), 3 (4 395), 4 (15 037). So visit_gap_h = 1 h holds, many visits have one exposure, and areas with 3 or more visits within 2 days should exist (D7). Waits on the live run (Atish): the grid's frame count (the 18 here come from two path cones only), IRSA's answer to a 1° cutout and its time, the full-area density and timings, the second area. Any change to a starting value is recorded here. Atish Open (offline numbers recorded; live Day 0 pending)
Q-402 Conflicts P3 met in the Area spec (issue #97; A16.6, A17.1, A17.3, A17.10, A17.11; Q-208 (11), (20)). (1) A16.6 "16 frames" is Track's count (frames with Eros on them); the recorded cones give 18 frames overlapping the Eros box (visit 2 has a fifth exposure, 2026W12_2A_0340_1, without Eros), and a live 15-cone grid may find more. A16.6 is not changed until the live run. (2) A17.1 order: A17.1 lists the footprint test before the time window; P3 filters by window first (Q-400 (2)); the kept set is the same. A17.1's "the area's box clipped to the frame" cutout is one square request per frame in P3 (Q-400 (3)). (3) A17.10 says D1 records area cutouts as fixtures; P3 commits none (tens of MB, D-25) and uses the recorded 0.1° cutouts for its offline area (Q-400 (13)); the live run fills the area's own cutouts in the cache outside the repo. (4) A17.11 estimates "seconds per frame" for dots and "few movers-to-be"; the offline count (Q-401) shows about 4 000 dots per frame and tens of thousands per area. A17.11 now points to Q-401. (5) A17.3, star or fixed (Q-208 (20); Moon, 11 Nov 2026): a catalogue match is star, even when both visits see it; fixed is a source seen at the same place in both visits that matches no catalogue. A17.3's wording ("Star: dots not fixed ...") said the opposite and is fixed; A17.3 now runs glitch, then star, then fixed (amends Q-202 (4)). (7) MAXREC makes a run unstorable (amends A17.1 step 4): a truncated cone can drop frames inside the windows, so scripts/area_discovery.py exits 1 on frames:cone_maxrec:<n> and frames:cone_maxrec is never served for an area; P7 may drop it from the area pattern. (6) Q-208 (11) and (20) give P3 rules that belong to P6 and P4 (the known check and the labels); P3 implements none of them. Atish Open: (1) and (4) wait on the live run; (5) decided by Moon
Q-420 Discovery from labels to the API: the choices P4 to P7 made where A17.3 to A17.10 are silent (issue #108; A17.3, A17.4, A17.5, A17.7, A17.8, A17.10; Q-146, Q-179, Q-180, Q-203, Q-208). (1) Glitch: k_visit = min(3, frames of the visit whose cutout holds the dot 10 px inside its edge), the frame that measured it included, so an uncovered dot is never called a glitch (A17.1's coverage note). (2) Tracklets: per visit, a greedy best-first search over seed pairs inside the glitch radius; each seed line takes the nearest unused dot within r_match in each frame; kept when rms <= rms_max and the dots span 2 or more times; best = most dots, then smallest rms, then the earliest dot. A dot in no line is a one-dot tracklet. sigma_v from SSR/(n-2) over sum (t - t_ref)^2. (3) Star: r_star = max(r_match, r_px), r_px the A19.6 mask radius [verify]; artefact flags BLOOM, HALO [verify] (A17.3 names none). (4) Fixed compares with the non-glitch dots of the other visit; a tracklet keeps its other dots when one is fixed, and one whose mover dots span one time is counted as static_one_visit. (5) Pair test: w from Horizons COMMAND='-163182', CENTER='500@399', VEC_TABLE=2 at each visit's mid-time (served, checked live 12 Nov 2026), projected at the area centre; u the least-squares value over both tracklets, clamped at 0; residual = the larger perpendicular residual; mutual best with best <= 0.5 * next on both sides, ranked per direction (a middle visit's tracklet keeps one list for the next visit and one for the previous visit, so three or more visits chain into one track; PR #110 review); a chain of three or more visits takes rate_deg_day, pa_deg and u_inv_au from a fit over the whole chain (issue #128 (4), join.chain_fit): v_AB is the slope of the least-squares line through the legs' positions at their t_ref, equal weights, and u minimises the sum over all legs of ` v_in - v_AB + w u ^2, clamped at 0 (null unless every leg's visit has w, so no track carries a ufitted on a subset of its legs: withwfor no leg the chain takes the rate-window fallback, withwfor only some of three or more legs it is refused like a chain outside the limits below, since the legs withwcannot be held to the chain test alone; PR #140 review, amended by the PR #149 review, 13 Nov 2026); the chain fit must pass the pair test's own limits (a rate inside every pair's window and the whole span's,u <= 1/delta_min, every leg's perpendicular residual <= v_tol, with v_toltaken from the largestsigma_vof all the chain's legs, so for three or more legs it is looser than any single pair's); a chain fit that fails them is not served and the track keeps thev_ABof its first consecutive pair whose rate also lies inside the chain's window, with a nullu(that pair'suis fitted on two of the legs; code review, 13 Nov 2026), or, when no pair does, is served with a null rate, PA andu(refused, not guessed; PR #140 review: a pair can pass its own window yet break the whole span's). The/tracksreply has no field saying which fit a track carries (it is recorded internally asJoinedTrack.fit); adding one is a contract change left as a follow-up; for two visits this is the pair test's own v_ABandu(and its rate-window fallback when either visit lacksw, so a 2-visit track is always recorded as chain), so the Eros track is unchanged; a 3-visit synthetic test checks the fitted rate. (6) **Possibles** carry null rate_deg_day, pa_degandu_inv_aufor every reason (Q-208 (21) names onlyone_visitandno_partner); no_partnerwhen a covered cell of a neighbouring visit lies in the ring[rate_min dt, rate_max dt]around the tracklet, elseone_visit. (7) **Known check:** SkyBoT cone centred on the area at each visit's mid-time; a body with no V is kept; only bodies whose SkyBoT position lies within p_max + Err + rate_max * span / 2of a covered cell get a Horizons TLIST (QUANTITIES1,36for the 3-sigma), so the calls stay few; a numbered **asteroid** is asked as20000000 + number; a comet (its SPK-ID is not 20000000 + n) and an unnumbered body are asked by the SkyBoT designation **[verify]**, and a name Horizons does not resolve fails the call, so the tracks it could match are unchecked (PR #110 review); planets and satellites are skipped (kindisasteroidorcomet). A failed TLIST makes uncheckedthe tracks with a dot within that reach of the body's SkyBoT position in a visit that listed it (Q-208 (11) left the rule to P6); a track that matches isfound_blindeven when another check failed.match.fetched_at is the earliest SkyBoT answer that listed the body. (8) **track_availableis false** for every Known object until Track's path endpoint (A19.5, T1) exists, because A19.12's condition cannot hold; the Track pre-fetch per Known object (A16.4 step 2) is not built. **Amended by Q-461:** built in issue #129;track_availablefollows A19.12 from the cache. (9) **Times:**cached_atandcomputed_atare the earliest and latestfetched_atof the inputs read after the dots step (star cones, SPHEREx vectors, SkyBoT, Horizons), not the wall clock, so the same cache gives the same bytes (A17.10); the Discovery card's "when the search ran" (A16.5) then reads the date of the newest input. When no input after the dots step was read (each failure is inmissing), the two times are the earliest and latest fetched_atof the frame cones the dots came from, which every stored run has read, so such a run is still stored and exported (PR #110 follow-up, issue #128 (1)). (10) **Entries:** stagessummary, known, dots, tracks, exportplus an internalstamps(dot id -> its 15 x 15 px raw uint8 pixels, row 0 at the top, base64, made from the cutout when the area is prepared; the API encodes the PNG when serving, so the stored bytes do not depend on the zlib build and the pack is byte-identical on Windows and Linux; PR #110 review); aheadentry written last names theparams_hashand the SHA-256 of themethod.settings**the run used** (never the defaults, so an entry made with other settings is not served; PR #110 review), which is how the API knows an area matches the running code (A17.10) without the inputs.method.settingsalso statesinputs, star_cones, pair_testandlinker. (11) **Pack:** the API reads the D-25 cache, then a committed pack in the same layout, backend/assets/areas/ (SX_AREA_PACK_DIR), so the Eros area is served under SX_OFFLINE=1on a fresh machine (like the demo pack, Q-164). The pack is the **recorded-fixture** Eros area (Q-400 (13)): PR #53's two path cones and 0.1 deg cutouts, Track's two recorded visit star cones in place of the area cone, and the SkyBoT, Horizons and vector answers recorded live for it on 12 Nov 2026; its provenance sources andmethod.settings.inputs = recorded_eros_fixture say so. The live area run (D3) replaces it. (12) **missingplacement:** frame and star codes in/dots; skybot:andhorizons:in/knownand/tracks; rate_grid:visitsin/tracks(fewer than 3 visits);checks:not_runinsummary.missingonly, since/checks is not served (D4 to D7 cut by the Q-203 gate). (13) **ECSV:** the A19.9 base columns an area dot has no value for (exptime_s, the 3-sigma columns, flag_reasons, contamination, refusal) are left out and named in the metadata, never filled; served as text/plain. (14) **Stamps:** the 15 x 15 px crop of the per-frame stretched cutout around the rounded centroid, 0 outside the cutout, made at prepare time and stored in the stampsstage, so the pack serves them underSX_OFFLINE=1without the cutouts; a dot whose cutout was absent or unreadable has no stamp (503stamp_unavailable). **Result (A16.7 gate):** passed with the rules as written, no tuning: one track, found_blind = 433 Eros, 8 possibles, 0 unexplained (A16.6). **Follow-ups (issue #128, 13 Nov 2026):** (9) covers the run with no input after the dots step; the cell grid and its centres are built once per area box and cell size (geometry.cell_grid) and shared by every step, the grid centres are deprojected once per coverage build, label_dotstakes the run'sarea_geometry, and the known check builds each visit's covered centres and each object's positions by frame once (output byte-identical: the committed pack test passes); the six Horizons requests share one builder (_observer_params, _vectors_params, _fetch) with their parameters, order and cache keys unchanged (tests/test_horizons_requests.py` pins them). Spec: A17.3 to A17.7, A17.8, A17.10, A16.6.
Q-406 Area search P8 joins the sky dock: main's Known objects and Discovery UI, PR #100's data layer (issue #96, PR #100; A17.8, A18.1 to A18.3, A16.4; amends Q-205 condition (4), Q-414 and D-17). PR #100 built its own Area tool on the left rail; main meanwhile replaced the rail with the sky dock (Q-296, D-38) and added the Known objects and Discovery flows on demo data (Q-414, app/area/areaService.ts, "TODO Atish: replace … with calls to /v1/areas"). Decided by Moon on 13 Nov 2026 when merging: (1) Main's UI stays: the dock, shell/areaStore.ts, shell/AreaCard.tsx, app/area/* cards and sky/AreaOverlay.tsx. PR #100's rail button, feature card, pointer mode, layer slot, skyFlyTo, safe rectangle, area= hash key and its interim Area card, honesty switch and blink controls are not merged (so Q-173 and Q-174 stay as proposed, unbuilt). (2) PR #100's data layer is kept: the /v1/areas client methods and their validators (app/api/client.ts, validate.ts), the gnomonic geometry and snap (app/sky/area/geometry.ts, snap.ts: the square's centre in the area's box, largest overlap, then index order; the same box definition as backend/app/core/area/geometry.py), and the pure layer drawing (app/sky/area/scene.ts, drawLayer.ts). (3) Real data first: areaService.discoverIn and knownObjectsIn snap the drawn box (centre, larger side) to GET /v1/areas and read that area's stored replies through app/area/realArea.ts; they never compute a count, track or verdict. Only when no prepared area holds the box, or the index cannot be read, the Eros demo answers, tagged "Demo data" as before (Q-414); outside both, area:not_prepared. A prepared area whose summary fails is refused (area:failed) and never replaced by the demo. (4) Cards: a prepared area's card says "Precomputed · run <computed_at>" (Q-205 condition 1), wears "Test data" for a synthetic fixture, never "(demo)", and lists everything not shown under "Not shown (n)": the replies' own missing codes, a part that failed (area:dots_unavailable, area:tracks_unavailable) and track points absent from /dots (area:unmatched_dots:<n>). Steps show the stored steps counts; movers are the stored tracks with their verdicts; a multi-visit area has a Visit picker; a track opens RealTrackCard (verdict, visits, rate, direction, match, D-02 badges from the reply's provenance). Only the demo's Eros opens the Eros card and drives the player. (5) Sky: a prepared area's dots and tracks are drawn at their own RA/Dec by drawLayer.drawArea inside AreaTrackLayer (step rules as in A18.2: dots by label, track lines from step 4, verdict dashes and labels at step 5); "Measured only" (the global honesty state) draws every dot alike and hides tracks and labels (D-21, A16.5). (6) Q-205 condition (4) amended: there is no AREA_TOOL_ENABLED kill switch; if the overnight run fails, the backend's index simply has no area and the dock keeps the tagged demo. Conditions (1) to (3) stand. (7) D-17: frontend/src/app/sky/area/* (geometry, snap, scene, drawLayer, blink) stay Atish's as agreed on 11 Nov 2026; app/area/*, app/shell/* and state/ stay Moon's. Spec: A18.1 to A18.3, A18.9. Moon (decides); Atish (data layer) Decided (Moon, 13 Nov 2026)
Q-407 Honesty switch on the sky for Area search. Withdrawn with PR #100's interim card (Q-406 (1)); the sky layer follows the global honesty state instead (Q-406 (5)). Atish Withdrawn (13 Nov 2026)
Q-408 Blink for n visits and reduced motion. Withdrawn with PR #100's interim card (Q-406 (1)); a multi-visit area shows one visit at a time with a Visit picker, no blink. The A18.3 blink stays to build in the Discovery card. Atish Withdrawn (13 Nov 2026)
Q-460 How Stage 2 records OUTLIER on a mover's core (issue #72; A4.2 step 2, A19.7, A20.7; Q-139). Choices where Q-139 is silent: (1) The switch is a config field, not a flag on the frame. MeasureConfig.core_flag_only (default empty) lists reject names that, inside the 1.5 px core, are kept and recorded; config_for(obj.moving) / mover_config() set it to ("OUTLIER",). The mover bit is ResolvedObject.moving (no new field); SpectrumService, the object job's photometry pool and measure_frame all take the config. Area dots keep their own config (Q-178). (2) The pixels stay in the sum. A core pixel whose only problem is OUTLIER is not dropped (they are the asteroid itself; IRSA's tool does not mask OUTLIER by default, Q-178 does the same for Area), and the point lists outlier_core in flag_reasons and is flagged. It does not appear in dropped_flags or dropped_weight_fraction, which still mean dropped pixels. A core pixel with OUTLIER plus any other reject flag, or a non-finite value, still refuses as aperture_flags. OUTLIER outside the core is dropped as before, with no rescale (the one point measured before this change was flagged OUTLIER, PERSIST off the core); inside the 3 px aperture that may trim the asteroid's own PSF wings, while Area (Q-178) never masks OUTLIER. An open physics question, not settled here. (3) The reason code is <flag lowercased>_core, so outlier_core. (4) method shows the rule as core_flag_only: ["OUTLIER"] for movers and omits the key for fixed objects, so a fixed object's method block is unchanged apart from version. (5) MEASURE_VERSION is measure-2 (Amends Q-57: the derived.asset key). Every derived spectrum and every Area pack entry keyed on it is stale by design, and it joins the derived.asset key (card/assets.py) because a saved asset carries the measured spectrum. This invalidates every saved generated asset once, fixed objects included, so before the event the warm-up runs again for all demo objects, not only the Eros pre-fetch (#73). A pre-built pack asset has no spectrum, so ASSET_VERSION stays 13 and the demo pack is untouched. Premeasured carries method_sha, so a pre-measured frame is reused only under the same method; the committed Eros area pack was remade with area_discovery --area eros-2026-03 --recorded --steps all --pack assets/areas (old entries removed first, the script only adds). Result on the recorded Eros frames: 14 points, 13 with outlier_core, 2 frames refused (aperture_flags, hardware flags), and all 14 flagged (one carries OUTLIER and PERSIST off the core, no outlier_core), so A20.7 now says 14 hollow points, not 13. Spec: A4.2, A19.7, A20.7. Not part of this entry: the UI wording for outlier_core (#84). Moon (Q-139), built by Claude for Atish's #72 Decided (built in issue #72, 13 Nov 2026)
Q-461 Known objects: track_available from the cache and the Track pre-fetch per Known object (issue #129; amends Q-420 (8); A17.5 step 4, A16.4 step 2, A17.10, A19.12; Q-146, D-25). (1) Rule: track_available is true only when, for the object's object_id, the D-25 cache holds a complete frame list (frames.is_complete) with at least one frame, every Horizons range answer of its path search (horizons.range_key over moving.range_chunks, all windows, each with an ephemeris block) and the derived.spectrum entry for that frame list with the API's measure settings (for a mover, config_for's rule of Q-460, so the key is the one /spectrum stores). The keys are the endpoints' own builders (frames_key via object_frames_key, range_key, spectrum_key via cached_spectrum_key); none is new. ASSUMPTION: an empty but complete frame list counts as not available (Track would have nothing to show), and a spectrum with few points still counts ("final" is about the cache, not the point count). (2) Cache only: the check (app/core/find/track.py since Q-468 (12); first app/core/area/track.py) reads an offline view of the cache (offline cache and settings), so a miss, including the SBDB lookup behind is_comet, is a miss and never a live call; the object comes from the cached resolver registry. Not-available reasons (frames:not_cached, frames:incomplete, frames:empty, path:not_cached, path:ephemeris, spectrum:not_cached, resolver:not_cached, object:not_moving, object:no_spkid) go to the precompute log only; they are not added to /known.missing, whose codes A17.8 fixes. (3) Determinism: the Track entries (frame list, range answers, spectrum) of an object with track_available true are inputs of /known, so their SHA-256s enter params_hash (A17.10); an area with no available Track keeps the hash it had before #129. (4) Pre-fetch: scripts/area_discovery.py, after the known step, calls scripts.prefetch.prefetch_target for each Known object with an object_id (query = its SkyBoT designation, as object_id was resolved); a resolver gap, an error, an exception, a different resolved id or an incomplete frame list is listed as skipped with its reason, and none fails the run. The whole step is skipped (each object listed) under SX_OFFLINE=1, which includes --recorded, and with --record, which records only the area's own inputs into the fixtures. (5) Spectrum in the pre-fetch: prefetch_target now also measures and stores a mover's spectrum when its frame list is complete (A19.12 lists the spectrum; the code stopped at the frames and star cones), so a pre-fetched object is final without a /spectrum request. (6) Committed pack: after merging PR #133 (Q-460, measure-2), rebuilt with --recorded --steps all --pack assets/areas, byte-identical: the recorded run is offline and its scratch cache has no derived.* entries, so 433 Eros stays track_available: false (frames:not_cached). That is correct for the recorded fixtures. true needs the Eros pre-fetch and an area_discovery run on the production cache. Spec: A17.5, A16.4, A17.10, A19.12. Moon Proposed (issue #129)
Q-462 Live areas: Known objects and Discovery for a box drawn anywhere (issue #141; pulls A16 Phase 2 "live areas anywhere" forward; amends Q-414 and Q-406, which refused every box outside a prepared area; A16.2, A17.1, A17.8; plan and mock-up linked from #141). (1) Box: centre and sides snapped to a 0.05° grid; each side at most 2° (the UI holds the drawn box at 2°, so a larger one is refused as area:too_large); no box reaching a pole. (2) Visits: one SIA cone (0.001°) at the box centre; its frames grouped into visits as A17.1 does (a gap over visit_gap_h); the pair of consecutive visits with the smallest gap at most 6 h apart, the earliest on a tie; the request may name another pair by its two visit starts (the picker); none: area:no_visit_pair. Each visit becomes one window padded by 5 min, so find_frames keeps exactly those two visits over the whole box. (3) Area id: live- + 12 hex of the SHA-256 of the release, the snapped box and the two visit starts: the same box and visits are the same area and the same cache entries. (4) Job: POST /v1/areas/live with start=false answers the plan (visits, frames at the centre, a rough estimate of 540 s + 600 s per deg², kept high because the known-object step dominates (a 0.15 deg² DR1 box took 10.6 min), other pairs); start=true queues a job (202); GET /v1/areas/live/{id} answers queued, running (step, counts, elapsed, rough time left), done or failed (error.code); DELETE stops it (cancelled, nothing stored; the job reads running until its next check). One worker thread runs one job at a time (live_jobs); at most 5 wait behind it (more: 429 queue_full) and the last 50 finished jobs are remembered; it imports the pipeline lazily, so the API still never loads it (A16.2's test lists the two light modules). The job runs A17.1 to A17.5 (frames, dots, labels, join, known), refuses to store what area_discovery.failures refuses (area:frames_incomplete, area:no_cutouts, area:no_dots), sets track_available from the cache (Q-461) and stores the area with store_area in the D-25 cache; the existing /v1/areas/{id}/... routes then serve it. The Track pre-fetch is not run for live areas (hours on a busy area); Track on demand is Q-468 (#142). Under SX_OFFLINE=1 a job is refused (offline) unless the area is stored. (5) Settings: inputs = live_area in method.settings. Moon Proposed (issue #141)
Q-463 Live areas use SPHEREx DR1; areas of every release are served (issue #141; amends Q-137 for live areas, which froze the event on QR2; Q-31). IRSA no longer serves spherex_qr2 (13 Nov 2026), and QR3 had no frames at two of 20 test positions, while DR1 had frames and a visit pair about 1.5 h apart at all 20. A live area uses the server's SX_DATA_RELEASE, set to spherex_dr1 for live areas. AreaStore reads the running release first, then every other release present in the cache and the pack, so the committed QR2 Eros area is still served by a DR1 server. Eros stays on its recorded QR2 data, labelled as such. Atish to confirm the Q-137 change. Moon Proposed (issue #141)
Q-466 Known list: Detected and Predicted rows (issue #145; live-areas plan decision 7 and held UI issues 3 to 5; A18.5, A17.5). /known is a prediction (SkyBoT candidates, JPL Horizons positions); it was read as if every row were a detection. (1) Detected is a known object that a found_blind track of the same area matched (same object_id, else number, else designation; matchesKnown), read from the area's /tracks beside /known; the row says the median separation ("0.24 px from predicted") and wears the green Detected chip (measured). Every other row is Predicted (blue chip, model_dependent), with the line "Predicted means SkyBoT and JPL Horizons put the object here; Discovery did not find it in the frames, usually because it is too faint." (2) Order: detected first, then by V (brighter first, no V last), then by designation (sortKnown, deterministic). (3) Filter All / Detected / Predicted with counts; shown only when the tracks loaded (without them nothing is marked, area:detections_unavailable). (4) Long lists: 40 rows, then "Show all n". (5) Numbers sit in their own column at their own width, never clipped. (6) Sky: every object's predicted path is drawn dashed blue; a detected one solid green with Discovery's measured dots (read from /dots only when some track matched), labelled, labels placed so they never overlap (placeLabels, also for Discovery's track labels: held issue 2). "Measured only" hides the predicted paths and keeps the measured dots. Decided (as built, Moon's plan of 13 Nov 2026)
Q-467 Provenance of a live area (issue #141; A17.8). The plan names the release, both visits (start, end, frames at the box centre) and the visit-choice formula (provenance.visits, tag measured); the stored area keeps the area summary's own provenance (inputs live_area, settings hash, frames and cutout digests through params_hash). Showing them in the UI and the ECSV is #144 and #145. Moon Proposed (issue #141)
Q-469 Track it and Build it from area results (issue #145; plan answer 5; amends R7.6 for Discovery tracks; Q-468). (1) Every Known row has Track it and Build it. Track it opens the Track view at once when track_available (or for 433 Eros); otherwise it computes the Track on demand (POST /v1/objects/{id}/track, #142 / PR #150, around = the middle of the object's own predicted frame times, else of the area's visits, days = 3), shows the job's steps (TrackJobCard), and opens the Track view when the job is done. The object job runner has no Stop, so the card offers Minimise and Back; the job keeps running and the row becomes Track-available. A row with no object_id has Track it off ("No JPL id"). Build it searches the object by name and opens the build view once it resolves (as the selected object's card). (2) A Discovery track matched to a known object is that object: same Track it and Build it. (3) A track no known object explains has no orbit: Track it is off ("Orbit not known"). Build it builds a placeholder: a plain unit sphere (asteroid_procedural with the one layer placeholder_shape, tag artistic, shown as Assumed), no scale bar, size listed as not drawn (bodyOptionalSize), no colour or spin, hidden at Measured only; the build view's subtitle says "Placeholder · size and shape not measured". Conflict: R7.6 says an unknown moving source is a candidate with no Build it. Moon chose the labelled placeholder over a disabled button (plan answer 5, 13 Nov 2026); per CLAUDE.md precedence this entry wins, for area tracks only. R7.6 stands for candidate objects found by search. Card and params are built in the frontend (placeholderBody), deterministic (seed from the id), carrying no physical number. Decided (as built); R7.6 note added in renderers/candidate.md
Q-470 Scans: a region scanned square by square (issue #156; A16.2, A17.8; builds on Q-462). (1) Region: centre and sides snapped to the 0.05° grid; each side at most 12° and at most 36 squares (counted after (2)), else 422 scan:too_large, so about 10° is the largest square region; no region reaching a pole (` dec + h/2 < 89), else 422 area:bad_box; the split also refuses a region whose padded squares (5) would reach it (422 area:bad_box, "Scans cannot reach a celestial pole (with their overlap)"), so near a pole the limit is about 0.1° tighter (PR #160 review). (2) **Split:** cols = ceil(width / 2), rows = ceil(height / 2) to start, every part the same size (width/cols×height/rows), so there are no thin edge slivers (the mock-up's smaller edge squares are not built). **Then one more column or row while a padded square would pass the 2° live cap.** This amends the ticket's acceptance list: a 4° × 2° region is 3 × 2 squares, not 2 × 1, because 2° parts cannot be padded under the cap and left unsearched strips between squares (the #156 code review). A 3° × 3° region is still 2 × 2. (3) **Centres:** on the gnomonic plane of the region centre, north up and RA growing to the left as the sky is drawn, then deprojected (core/area/scan.py, plain math). (4) **Order:** index 1 to N, top row first, left to right on screen, row by row (not snake order). (5) **Overlap and coverage:** each square's centre is snapped to the grid; its box is then the smallest 0.05° grid box about that centre that holds its part of the region plus 0.05° on every side, measured on the square's own tangent plane (as the pipeline's AreaBox; a part's edges are great circles, so its four corners bound it). **So the squares always cover the region with at least 0.05° of overlap,** however the centres are snapped or the planes turn at high Dec (tested on a grid of points, up to Dec 70). Each box goes through live.snap_box, so its area_idis that of a single live area of the same box and a square already computed is reused at once. (6) **Job:** a scan is one job on the live-area worker (one queue slot,MAX_WAITINGshared with single live areas, one heavy thing at a time). Per square: a stored area the plan found for its box →square_doneat once, with no SIA call; elseplan_area(no pair →square_skipped, code area:no_visit_pair); stored → square_doneat once; elserun_live_area→square_done; any other failure → square_failedwith its code, and the scan goes on. While a square is computed, its job is listed under its area id, soGET /v1/areas/live/{id}(andPOST /v1/areas/livewithstart=false) shows it. **POST /v1/areas/livewithstart=truefor the same box does not join the square's job** (stopping the scan cancels that job, and it has no run record of its own): it queues a single job of its own behind it, with its own run whenkindis given (PR #160 review). A single job that finds its area stored meanwhile is done at once, with nothing recomputed; if the scan was stopped first, it computes the area itself.DELETE /v1/areas/live/{id} on a square's job fails that square only (cancelled). (7) **Pause, resume, stop:** pause is accepted only while the scan is running and takes effect after the current square; **while the last square runs it is refused** (409 run_not_pausable), since it could never take effect (PR #160 review). **The paused scan then leaves the worker,** so other jobs are not blocked. Resume queues it again at the back, like a new job, and counts towards the queue limit (429 queue_full); resume before the pause takes effect just drops the request. Stop (DELETE /v1/runs/{id}) is at once for a queued or paused scan and at the next Progress.checkfor a running one; the square it stopped goes back totodo, and the finished squares stay stored. A single-area run cannot pause (409 run_not_pausable); stopping one that has just finished is 409 run_finished. (8) **Plan without network:** start=falsemakes no SIA call; a square'sarea_id there is a stored area of the same box and release (the latest computed). The job uses that area as it is while it is still stored, with no SIA call and **no check of the visit pair** (a newer visit pair for the box is not looked for, PR #160 review); a square whose stored area is gone by then is planned again (plan_area`, with SIA).
Q-471 Run records and the replay timeline (issue #156; A17.8). (1) Storage: one JSON file per run, <SX_CACHE_DIR>/runs/<run_id>.json (not the committed pack, not the browser), written atomically (temp file, then os.replace) after every change, so a crash keeps everything up to it; a square starting is written with the next change, since a running square goes back to todo on load anyway (one write per square, PR #160 review). On load, a record that cannot be read or lacks a field the API reads is skipped with a warning and left on disk, and a record that cannot be written back is kept in memory: nothing in runs/ can stop the live-area routes. run_id = run- + UTC yyyymmddThhmmss + - + 6 random hex. (2) What is a run: every scan, and every single live area started with POST /v1/areas/live (start=true), recorded as a run of one square. That route gains an optional kind (discovery or known, the tool used). A job is recorded only when kind is sent, and the area-job reply then carries its run_id; a client that sends no kind records no run, rather than one under the wrong tool (PR #160 review: the default was known, which mislabelled Discovery areas from clients that do not send it). A single area already stored or already running makes no new run. (3) Record: shared/schemas/run.schema.json (run_id, kind, release, region, squares[{index, box, area_id, state, error?}], state, created_at, started_at, finished_at, totals, events). Fields beyond the ticket: provenance on the record (known_positions model_dependent, Horizons; track_positions measured, the dots) and positions_tag on each found object, so every position names its source (CLAUDE.md, provenance on everything); reply-only queue_position (while queued) and progress ({square, area_id, step, steps} of the running square, the live-job steps). A failed square does not fail a scan: a scan is done when its squares ran, failed only when the scan loop itself broke. A single-area run whose one square failed is failed (the #156 code review: done read as searched and found nothing). The last event of a failed run is run_done, the ticket's event list having no run_failed. (4) Timeline: {t, type, square?, area_id?, object?}, t in seconds since started_at (ms) and never decreasing. found events follow a square's square_done, one per object of its stored replies: known (a track with a SkyBoT match; Horizons positions of its Known row, or its measured dots tagged measured when the row is missing), unexplained (its measured dots), predicted (a Known row no track matched; the UI hides it by default). duration_s in the list leaves out the time spent paused and the queue wait after a resume: a pause ends at the next square_started (or run_stopped, run_done), not at run_resumed. (5) Totals and results: read from the stored areas, never computed. known = merged Known rows, found and unexplained = merged tracks. Known rows merge by designation (detected when a merged track carries the name). Found and unexplained tracks merge when they share a SkyBoT designation, or when tracks of neighbouring squares (boxes that overlap or touch, side or corner) have a dot on the same frame_id within 30″. A scan keeps each finished square's replies in memory, cut to its frame times and its tracks' dots, so it reads each square once. Each row carries its squares and its visit start times. (6) Restart: a run left queued, running or paused (its job lived in memory) loads as stopped; its running square goes back to todo and a run_stopped event is added at the last event's t. An unreadable file is skipped with a warning. Files are written outside the locks the API reads under, newest change last. Amended by Q-480, Q-481 and Q-482 (issue #169, 14 Nov 2026): (2) a stored area makes a new run when it is rechecked or its spectra are refilled (Q-482 (4)); (3) a scan whose every square failed ends failed, and RunTotals gains squares_failed (Q-481); (5) unchecked tracks are counted (RunTotals.unchecked, null on older records) and listed with unchecked_by, each square carries its skybot: and horizons: codes in missing, and /results show each area's current result (Q-480, Q-482 (5)). Kevin Proposed (issue #156)
Q-472 Scan UI: select a region, gridded screen, square-by-square scan with objects circled (issue #157; live-areas mock-up states 1, 2, 10, 11; on #156's API, Q-470, Q-471). (1) Select: with Known objects or Discovery on, the pointer is a rectangle with the screen's shape covering 35% of its height (SELECT_FRACTION), drawn to scale: the region that fills the screen after the click. Zooming the sky (scroll, pinch, + and -) is what resizes it; past 12° a side, or past 36 squares as #156 counts them, it is held at the limit and its label adds "12° max" or "36 squares max". Label: "9.6° × 6.0° · 15 squares · about 4 h" (each square 540 s + 600 s per square degree of its padded box, the backend's live.estimate_seconds; the offer shows the plan's estimate_s). Click, tap or Enter (the middle) selects; a drag turns the sky; Escape leaves. On touch the rectangle sits in the middle until a finger lands. (2) Grid: the sky flies north up to the region (fov = its height, at least the sky's 2° minimum). the split is #156's (Q-470, ported in scanGrid.gridShape and checked against scan.split): ceil(side/2), then one more column or row while a padded square would pass 2° (so 9.6° × 6.0° is 6 × 4, not the mock-up's 5 × 3), equal squares cut on the region centre's tangent plane, numbered 1..N from the top row, left (east) to right; drawn from region in sky coordinates (app/area/scanGrid.ts, app/sky/ScanOverlay.tsx), so the grid stays pinned. It draws the unpadded split; each square's real box (squares[].box) is padded 0.05° and snapped, so the boxes overlap the drawn borders a little. One square: the single-area cards (#144, #145) via setBox; the #144 draw step is no longer entered. (3) Scanning: squares are to do (dashed), analysing (blue), done (green), skipped or failed (red), from GET /v1/runs/{id} polled every 1.5 s; the running square's step and count from the record's progress. The card: mini grid (done squares are buttons that open their results), "Square n of N · step", time left, totals, one status-dot message per skipped square, Pause or Resume as icon buttons (Stop shows "Stopping after the current step" until the server stops the square, Q-470 (7)) (Lucide pause, play, with accessible names) and Stop; no Minimise button, since the header's − and × do that (Moon, 13 Nov 2026; the mock-up's Minimise button is dropped). Minimised, the island pill reads "Discovery · Square 7 of 15". Closing the card does not stop the scan; the dock button brings it back. The run id is kept in localStorage, so a reload mid-scan restores the run from its record. (4) Circles: from found events (app/area/scanObjects.ts): green known found, amber unexplained, blue dashed predicted (hidden by default, a "Show predicted (n)" toggle); one designation across squares is one trajectory, ending in an arrow and a ring with its label (name; rate in °/day, derived from the positions, or its squares; the events carry no V). A circle is a button that opens its object in its square's results (openSquare with a focus). Labels never overlap a label or another ring (found first, then unexplained, then predicted; right of the ring, else left, else not drawn); on a real DR1 square with 40 tracks, 20 labels show. (5) Done: where the data came from, totals, Found / Known filter (the results carry no possible tracks, so the mock-up's Possible is not built), rows naming squares and the first visit date with Track it and Build it (Q-469), the rates note, Export ECSV (built in the browser from /results; #156 has no run export route) and Scan again. (6) The API is one module, app/area/scanApi.ts, on #156's generated contract types (ScanPlan, Run, RunResults); the mock answers only with ?scan=mock on the dev server, with invented test values. Dock icons: Hugeicons orbit and view from Animate UI (@animate-ui/react 2.4.3), not animated under reduced motion. The package's licence is MIT plus a Commons Clause: use in an application is allowed, selling the components themselves is not. (7) One scan at a time: a new selection while a scan is going brings that scan back (either dock button); a run started after the user moved on is stopped. A reload restores a scan still going only on the plain sky; a finished one is followed quietly and its dock button brings it back. Back from an object opened in the scan flies the sky to the region again. (8) Approved by Moon (14 Nov 2026): the UI the mock-up does not draw: the "Show predicted (n)" toggle, the Waiting, Paused and Stopping progress lines, the messages (Scans not available, Region too large, Too close to a pole, Lost touch with the scan), the limit on the selection label, and the dock reopening a running scan (https://claude.ai/artifact/FjbC6gyqadwHGNvJ1n5SjY). Decided (as built, #157); amended by Q-483 (issue #173)
Q-473 Runs menu and replay (issue #158; live-areas mock-up states 12 and 13; on #156's API, Q-471; built on #157's scan overlay, Q-472). (1) Runs button: a square glass button with Hugeicons menu-01 right after the RA/Dec readout, the same height; hidden with the readout (visibility: hidden, out of the Tab order) while the build pane is open. While a replay plays it reads "End the replay" and ends it. (2) List: GET /v1/runs, newest first, read when the list opens and again every 5 s while a run in it is going; All / Discovery / Known filter with counts. A row: the tool's icon (view Discovery, orbit Known objects), "w° × h° near RA a°, Dec d°", then when (as the mock-up writes it, with "UTC" added: "13 Nov 07:28 UTC"), squares, what it found (Discovery: found and unexplained; Known objects: known and detected) and the length. State in words only when not finished: Running and Paused in the accent colour, Stopped and Failed in red, Waiting muted. Empty: "No runs yet"; a failed read: status dot, title, one line and Try again. Escape and a click elsewhere close it. (3) A row opens the run in #157's scan card (scanStore.follow): the live progress of a run still going, the combined results (state 11) of a finished one; the area tool opens and the sky flies to the region. A run of one square opens the same card. (4) Replay: play reads GET /v1/runs/{run_id} once. The sky flies to the region and the cards close (a scan still going keeps running; its dock button brings it back). #157's overlay draws the run as it was at time t (replay.ts: events up to t; a square's state from its last event; its results and its error only once finished), watch only (nothing opens), each found object's label "found at h:mm:ss", the time of its first detection (its tick's time); a predicted event is not a find, so a predicted circle keeps its "predicted" line (PR #165 review). Tag "Replay · Discovery · date" under the island; bar above the dock: play or pause, a timeline slider (ticks: green known found, amber unexplained, red skipped or failed; click a tick or the rail to jump, drag the knob; arrows step 1 %, Page Up and Page Down jump between ticks, Home and End), the time and "square n of N", and the speeds 1×, 10×, 60× (default), 600×. The timeline runs from started_at to finished_at (or to the last event of a run still going). Escape (not from a text field), the runs button or another tool ends it. (5) Deterministic: position = start position + wall time × speed, re-anchored on every seek and speed change; the frame at a position is a pure function of the record. Under reduced motion the clock moves one step a second, each step one second × speed, counted by ticks rather than read from wall time (so timer jitter never skips or doubles a step), and nothing animates. (6) Not done: clicking an object or a square during a replay (watch only); keeping a replay across a reload. Moon Decided (as built, #158); amended by Q-483 (issue #173)
Q-474 Spectrum check: architecture and contract (replaces the cut D6 smoothness score of Q-203 and Q-208 (25); A17.13, A17.8, A18.7; mock-up https://claude.ai/artifact/8WtyRBLfjP2at9EyGgSrr1). (1) What: per Discovery track, whether its light behaves like sunlight off a rock, from (a) colours taken by the two detectors that see the same spot at the same instant (bands 1 and 4, 2 and 5, 3 and 6), divided by the Sun's colour, and (b) its steadiness between exposures. Never across visits: Eros's brightness changed 2.4 times between its visits a day apart. (2) Where it runs: once, when an area is stored (the live job after store_area, scripts/area_discovery.py, and the backfill scripts/area_spectra.py), never in a web request (A16.2). Read-time computing was rejected because A16.2 forbids it; computing inside the area pipeline was rejected because adding its settings changes the area's settings_sha, which would stop every stored area (the Eros pack and each 10-minute live area) from being served. (3) Storage: its own derived.area entry, stage: spectra, v: SPECTRUM_VERSION, keyed by the area's params_hash and the spectrum settings sha; a threshold change is a backfill of seconds, not a recompute. (4) Contract: GET /v1/areas/{area_id}/spectra (shared/schemas/area-spectra.schema.json), served byte for byte; 404 spectra_not_prepared when the area has no stored check; missing code spectra:calibration_default. The never-produced sed field, AreaSed and AreaSedLabel are removed from area-tracks and area-index and their fixtures. (5) Never a gate: the check never removes, reorders or re-labels a track, and never changes its verdict. (6) Ticket: one, owned by Moon (shared/ is Moon's, D-17): backend module, solar table, schema, backfill, then the UI of A18.7 after the mock-up is approved. The scan results (#156) and the ECSV export pick it up in Phase 2. Moon Proposed
Q-475 Spectrum check: physics and starting values (A17.13). (1) Colour: ρ = (F_L/F_S)/(F☉(λ_L)/F☉(λ_S)) per exposure, short arm below 2.42 µm and long arm at or above; reflected range R_min 0.6 to R_max 3.0 [verify V-S2]. (2) Heat glow: NEATM (Harris 1998), the largest thermal-to-reflected ratio over p_V 0.03 to 0.5 and η 0.7 to 2.0 gives ρ_max(r) = R_max(1 + G). Heat glow only raises ρ, so too_blue never depends on it. A dark body at 1 AU gives G = 4 at 2.4 µm and 140 at 3.3 µm, so a very red mover of unknown distance can be a warm dark near-Earth asteroid: such a track is very_red, never "not an asteroid". (3) Distance: Δ = 1/u_inv_au from the parallax-aware join (Q-179) and a low-precision solar position give r; without u, the worst case is the closest the line of sight comes to the Sun. (4) Steadiness: allowed change per step = spin term (amplitude 1 mag, period 2.2 h: 9.4 % in 129 s [verify V-S5]) + √2 × the per-area floor measured on stars (MAD of consecutive star fluxes, SNR ≥ 30; default 6 % under 10 pairs) + a spectral term (slope 4 on the short arm, 15 on the long arm for heat glow). (5) Solar spectrum: CALSPEC sun_reference_stis joined to the Kurucz sun_mod_001 beyond about 2.5 µm, binned at R = 41 from 0.70 to 5.10 µm [verify V-S3]. (6) Evidence (recorded Eros area, QR2): solar-type stars give ρ 0.20 to 0.25 against 0.26 expected, so the two arms agree (V-S1). With Horizons' geometry (r 1.157 AU, Δ 0.567 AU, phase 59°), Eros's four long-arm colours are fitted by one reflectance of about 1.9 times the Sun's plus heat glow at η 1.3 (subsolar about 340 K); its own parallax gives Δ 0.587 AU. Expected verdicts: T3 Eros rock with heat glow, T1 and T4 rock, T8 very_red, five tracks one_colour. (7) Sources: Rivkin et al. 2018 (3 µm band on Eros) is not used as a claim: heat glow alone explains the upturn after 3.3 µm. Moon Proposed
Q-476 Spectrum check UI as built: the choices #162 made where A18.7 and the mock-up are silent or differ (issue #162; A18.7, A17.13; Q-474, Q-475). (1) Range line: "x to y times redder than the Sun" uses the measured pairs' rho min and max (limits left out), as A18.7 says: Eros (T3) reads 1.5 to 3.3; the mock-up's 3.8 was the 3.61 µm point, which has no short-arm partner in its exposure. One pair gives one number; a minimum below 1 reads "times the Sun's colour", never "redder". (2) Steady: the largest ` change on the short arm (detectors 1 to 3) over every visit, else the long arm: Eros reads 12% (visit 2), where the mock-up's 4% "at 1 µm" was visit 1 alone. No "too noisy to judge" note (no rule in the spec). (3) **State C's "A lead worth following."** is added to arockline when the track matched no known object. (4) **Tag word:** the Spectrum section wears the D-02 badge Estimated formodel_dependent(D-02 wins over the mock-up's word "Model-dependent"); under Measured only it is Measured. (5) **Not run vs unavailable:** only 404spectra_not_preparedis not run; any other failure isspectra:unavailable("The spectrum check could not be loaded"). (6) **Measured only** hides the card's verdict, range, heat glow, Sun line, limits, Distance, Compared with and Steady, and also the row words, the Rock-like filter (so the filter falls back to All) and the verdict counts of the step line, which reads "n tracks checked". **Settled by D-21 (PR #164 review, 14 Nov 2026):** the verdict ismodel_dependentand Steady'schangeisderived(Q-379 hides aderivedreadout at Measured only), so neither shows there, on the card or in the list. The Colour row (a count of exposures) and the accordion (how the check works, and the points' measured values) stay. (7) **The accordion** shows on every checked card, One colour included (mock-up F: "the same on every track card"; state E drew none). (8) **The chart's points** are dots withusedandpointtrue and arel: a dot below snr_minthat entered a limit pair is drawn as the limit's arrow, not as a point. (9) **No mock:** the?spectra=mockswitch of the first checkpoints was removed once #161 merged; the committed Eros pack serves the real stage. (10) **The rule texts** of "How this is checked" keep the mock-up's wording; the star scatter in rule 3 is the median measuredsigma_sys(5% on Eros), elsesigma_sys_default(a zero floor counts as not measured). (11) **Drawn, not derived:** the rock band's long-arm edge is the reply'sr_minandr_max; its widening from about 1 on the short arm is drawn to show that each visit's short arm is set to 1. Past 8× the y ticks step (2, 5 or 10) so labels never crowd; error bars stop at the axis. (12) **A reply for another area** is refused (unavailable). (13) **Card wording names the light, not the body** (A16.5, A17.13; PR #164 review): very_redreads "Only a warm, dark rock close to the Sun would fit. Its distance is not known." andtoo_red"Even with heat glow at r AU from the Sun."; no line calls a track an asteroid. Sources in the accordion are only those A17.13 cites (Pravec and Harris 2000, Harris 1998). (14) **Spectrum tag and counts from the reply:** the section's badge is the reply'sprovenance.colour.tag (provenance.points.tagunder Measured only), "Points used n" counts the points withusedtrue, and a used point belowsnr_min is listed as "used as a limit only". The heat-glow band is drawn in the physics colour (--p-phys, the D-02 colour of Estimated) with a dotted edge, not in the status colour --warn`.
Q-478 Discovery gap analysis, 14 Nov 2026: what was fixed, and what stays open (issues #143, #146; A16 to A18, A19.9, Q-468, Q-471, Q-473). An end-to-end audit of the Discovery pipeline on main (119eadb): spec against code, the contract across docs, backend, shared schemas and frontend, the full suites, and real runs against IRSA, Horizons and SkyBoT. Fixed on fix/discovery-gaps: (1) a single-square Compute sends kind, so the server records it as a run and the Runs list shows it (Q-471 (2); before, only scans were listed). (2) Track it follows the Track job of its window (GET /v1/objects/{id}/job?around&days) and the Track view reads /frames and /path with the same window (Q-468); before, it polled the object's base job and read the base windows. A done job with track_available: false says "Not enough data to track"; a job the server no longer has is given up after 60 polls. (3) A live area that finishes while a replay plays does not open over it (Q-473: a replay has the sky to itself). (4) Closing a run opened from the Runs list keeps the scan that is still going (it is followed again, and stays saved for a reload). (5) The scan card shows "Lost touch with the scan" before its first record too; a Runs filter with no rows says so. (6) A missing code is never shown raw (issue #146): each namespace has words, an unknown code a general line, repeated lines are grouped; the code stays in data-code. (7) Plan, start, pause, resume and stop requests have a time limit; no answer at all reads "Server not reachable" (scan:unreachable), not "this server cannot scan". (8) Backend: LiveJobs.close() runs first at shutdown, so queued downloads end and running runs are recorded stopped. (9) Backend: the SkyBoT and SBDB adapters read a live answer before it is cached, as Horizons does. PR #168 review fixes: (10) a Start that times out, or whose reply cannot be read, says "No answer from the server: the scan may have started, check Runs" (scan:no_answer), since the server may have queued it; only a request that never got through is scan:unreachable ("Nothing was started"). (11) Closing an offer or a refusal made after Select again over our running scan keeps it too (only closing our own scan, or a saved run the server lost, forgets it). (12) After LiveJobs.close() nothing new is queued (QueueFull, so a request racing the shutdown cannot restart the worker), and a worker still busy after the wait is logged. (13) A SkyBoT JSON object without a data list is an error, not "no known objects", so it is not cached. (14) An area missing code with no words reads "Some data for this area is not available." (as Q-477's line for objects). Open, for a decision (not changed here): (a) issue #143 is not built: the pair test checks only the part of the velocity perpendicular to w, a dot is glitched without looking at the other visit, the known-match radius has no cap. (b) On real DR1 data a known asteroid (8925 Boattini, V 17.4, detected in all 8 frames of two visits) was not linked: residual 0.193 deg/day against v_tol 0.189, because sigma_c (0.13 to 0.17 px) understates the centroid error seen against Horizons (0.13 to 0.44 px). (c) A track left unchecked by a failed SkyBoT or Horizons call is dropped from a run's totals and results, and the area is stored as done. (d) A scan whose every square failed ends done (Q-471 (3)); a single area in the same case ends failed. (e) One cutout that fails after 3 retries fails its square (3 of 5 cold squares in the live test; each passed on a rerun). (f) An area stored without its spectra stage is not refilled when it is asked for again (scripts/area_spectra --cache does it). (g) The scan card, its sky layer and the replay skip the Measured-only rule and the provenance badges (D-21) that the single-area cards follow. (h) GitHub Actions has been off since 10 Nov 2026, so nothing merged since has run in CI. Moon Proposed (14 Nov 2026)
Q-479 Scan and replay honesty as built (issue #170; A18, D-21, D-02; Q-472, Q-473, Q-478 (g)). The approved mock-up (https://claude.ai/artifact/5tdBPDnQPNkfgJyT4JLRC3, 14 Nov 2026) left these choices to the build: (1) Measured only hides known names too, not only verdicts: a name comes from the SkyBoT and Horizons match (model_dependent), so a scan at Measured only lists tracks by id ("Track", visits, dots) and offers no Track it (it opens the Horizons path). (2) The sky at Measured only draws tracks from /results (every merged track carries its measured dots); before the results are read only events with positions_tag: measured are drawn, so a matched known object (whose event carries Horizons positions) appears when the scan ends. The replay has only events, so at Measured only it shows unexplained tracks and skipped squares, and its marks are named by track. Intended (PR #171 review): until the results are read, and always on the replay, the marks and rings can number fewer than the "n tracks" of the Runs row, which counts every track; the missing ones are the matched known objects, whose positions are Horizons positions, so they are not drawn at Measured only rather than drawn from a model. (3) #169's fields are read before #169 lands (scanApi.uncheckedOf, squaresFailedOf, trackRowsOf; parseRunResults refuses a track row whose kind or unchecked_by is not one of these, since trackRowsOf widens the type without the compiler's help): a missing unchecked reads null and shows nothing, never 0 (refuse rather than invent); squares_failed falls back to the squares' states on a record, 0 on a summary. The ?scan=mock-gaps mock answers as #169 proposes; when #169 changes its proposal, only those readers and the mock change. (4) A run's flags ("n not checked", "n of N squares failed") sit after the counts and before the length, as the mock-up orders them; a failed run keeps only "Failed". (5) Track it off: a known row says why under its name; a track row already reads "not in SkyBoT", so its reason is for screen readers only. (6) The mock now counts as the backend: found is the tracks matched to a known object, without the unexplained ones; a mock scan wears the Test data tag on its Done card. (7) Export ECSV at Measured only holds what the card shows: track rows only, with no designation, status, magnitude or rate, and a honesty: measured only line in its meta. (8) The live region speaks when the scan moves on (a square starts, the scan ends); switching the honesty toggle rewords nothing it already said. (9) Not done: the scan card still covers the runs button while it is open (it covers the top-right corner as every panel does); the Measured-only screens are covered by unit tests, not by an e2e test (the honesty toggle is in the 3D view, which an e2e on the sky does not reach). Moon Proposed (14 Nov 2026)
Q-480 Runs count and list the tracks the known-object check could not judge (issue #169; Q-478 (c); amends Q-471 (5); A17.8). (1) Counted: RunTotals gains unchecked, the merged tracks of kind unchecked. A record written before this reads unchecked: null (not recorded), never 0: the loader fills it once and writes the record back. (2) Listed: GET /v1/runs/{run_id}/results keeps a track whose verdict is unchecked (a SkyBoT cone of one of its visits, or a Horizons call for a candidate near it, failed: match.verdicts). A merged track is found when any member has a SkyBoT match, else unexplained when any member was checked and nothing matched (a neighbouring square's check did answer), else unchecked. unchecked_by is the sorted union of the unchecked members' codes: required on an unchecked row, also carried on an unexplained row with an unchecked member so the failure stays visible; never on a found row. The merge formula in the results' provenance says so. (3) Codes per square: each done square of the record, and every square of /results, carries missing: the skybot: and horizons: codes of its stored summary (empty for a square not done), read from the summary, never invented. (4) No event: an unchecked track writes no found event, so the replay is unchanged; the replay's end frame shows the server's totals, which count it (mid-replay the frontend has no count for it: null). The display is issue #170 (Moon): its readers (Q-479), built against a mock before this landed, now read the real contract; the mock's older-server mode remains for tests only. The per-square missing in /results has no reader in the UI yet (API only for now; a per-square line is a follow-up for Moon). Atish Proposed (14 Nov 2026, issue #169)
Q-481 A scan whose every square failed ends failed (issue #169; Q-478 (d); amends Q-471 (3); A17.8). A scan that was not stopped ends failed when no square is done and at least one is failed; otherwise done. A scan whose squares were all skipped (no visit pair) stays done: it was searched and there was nothing to compute. The last event stays run_done, as for a failed single-area run. RunTotals gains squares_failed (squares in state failed), so a partly failed scan shows it in the list; for a record written before this it is counted from the squares' states on load. The single-area rule of Q-471 (3) is unchanged, so both paths now agree: done never reads as searched and found nothing when nothing was searched. Atish Proposed (14 Nov 2026, issue #169)
Q-482 A failed cutout gets a second pass; a stored area is refilled or rechecked when it is asked for again (issue #169; Q-478 (e), (f) and section 5 of the ticket; amends Q-471 (2); A17.8, A17.13, A16.2). (1) Second pass: in the live job's cutout fetch (run_live_area; frames.py and the Eros pack are untouched), a failed download is asked for again after 5, 15 and 30 s (CUTOUT_SECOND_PASS_S in live_jobs.py, a module constant, not a setting; an engineering choice from the live test, where a failed cutout answered 200 15.7 s later), on top of the HTTP policy's own 3 retries. Retried only when the http adapter reports a failure that may pass (HTTP 429 or 5xx, a failed connection, a timeout, a transport error), read from the cache error's cause; not an offline miss, a refused network, a client error (HTTP 4xx other than 429), or the cutout adapter's own refusals (a foreign host, a redirect off IRSA, a body that is not FITS), which cannot change (#169 code review). Each attempt checks Stop first and each wait ends at once on Stop. Failure budget: a square's failed cutouts are retried only while at most max(2, 25 % of its frames) have failed; past that the archive is taken to be down, every waiting retry gives up at once and the square fails as fast as before. The step count moves on a success only, so it never goes backwards. (2) Spectra refill: a stored area missing its spectra stage (Q-474) gets it from its stored summary, dots and tracks (spectrum.store_prepared, as scripts/area_spectra.py) when a job or a scan square reuses it. This runs in the LiveJobs worker only, never in a request (A16.2): POST /v1/areas/live with start=true on a stored area without the stage queues a job (offline too: it needs no network), which skips the pipeline and fills the stage. Only the app's cache is written; an area served from the committed pack is logged and left. A failure is logged and does not fail the job; a refill that could not be done is remembered per process (until the area is stored again), so the next start=true answers done rather than queueing a job and a run that would fail again (#169 code review). (3) Recheck: a stored area whose summary lists a skybot: or horizons: code is not reusable: start=true (or a scan square) computes it again from the cached frames, and the old result is served until the new one is stored. A recheck that fails, cannot be planned, or whose own job is stopped (DELETE /v1/areas/live/{id}) leaves the stored result as the job's or square's result: the job, its run and the square are done with the stored area (its missing still lists the failed check), not failed. Stopping the scan during a recheck still stops the scan, and the square goes back to todo like any square not reached: it did not finish in this run (#169 code review). start=false still answers done, as the stored result exists. Cooldown: an area is computed at most once per RECHECK_COOLDOWN_S (600 s, as live_failure_ttl_s) per process, so a lasting failure (a Horizons answer that cannot be parsed comes back from the cache the same way every time) cannot make every start a full recompute. It starts when any compute of the area starts (a first compute too, so a job for the same box queued behind a scan's square is done at once) and again when the compute stores the area; a compute that fails keeps it; a stopped one clears it, as it checked nothing. Offline an area is always reused. (4) Amends Q-471 (2): a stored area makes a new run when it is rechecked or its spectra are refilled. (5) Results are the current result: a run's /results show each area's current stored result, as they already read the current head; the kept merges are dropped whenever a job stores an area, and a merge read while an area was being stored is answered but not kept. Limits: a run square does not record the params_hash it was computed with; a stored square planned again may pick a newer visit pair and so another area_id (rare: DR1 is static during the event); a recompute with the same params_hash overwrites the stages in place, so a reader may briefly see old and new stages mixed; a run recorded before Q-480 has unchecked: null, yet /results rebuilds its merge from the stored areas and may list unchecked rows, so its totals can show fewer tracks than its list. Atish Proposed (14 Nov 2026, issue #169)
Q-483 Discovery journey: scanning rings, the dock as the replay player, a ← on every card, possibles hidden (issue #173; approved mock-ups https://claude.ai/artifact/NANny2TeB8Y8dpnwV9Z3Wz and https://claude.ai/artifact/J3VfdxduN1CRZ8YXR4ckAZ; amends Q-473 and Q-472). (1) Rings: the square in the analysing state carries thin, unfilled, unlabelled rings in the analysing blue that come and go at random spots (each lingers 0.7 to 2 s; the crowd drifts between about 5 and 10 or 20 every 1.4 s), live while the scan runs and in a replay while it plays (paused: none; they do not speed up with the replay). They are the square's loader under D-38 and mark no detection; they still show under Measured only (D-21), as they are not data; none under reduced motion; hidden from screen readers. (2) Replay: the separate bar above the dock is gone: the dock's glass shape widens into the player (tools fade out, play, timeline, time and speeds fade in; instant under reduced motion), and the flipbook's frame player gives way to a plain ← ("Back: end the replay") that ends it as Escape does, focus back on the runs button. (3) Back: a ← in the card header steps back one level: a track or known object to its list (its row in focus), the Track view to where it was opened from, a scan square's list to the scan, a single square's list to your patch (the card folds into the island, the sky frames the area, a click on the patch reopens it). Escape does the same; × closes everything; no ← on the first card of a branch. (4) Quieter results: a track card has no subtitle when its verdict line shows; three facts (colour, visits, steadiness) and the provenance tags stay; rate and known match fold into "Motion and match"; single-visit possibles are neither drawn nor listed until "Show possible (n)" is pressed. Moon Proposed (14 Nov 2026, issue #173)