Skip to content

gate: the count check reads the xsources against its own SExtractor catalog, and no check reads another job - #254

Merged
rusholme merged 2 commits into
mainfrom
gate-xsources-fraction
Dec 4, 2026
Merged

rusholme merged 2 commits into
mainfrom
gate-xsources-fraction

Conversation

@RussLaher

@RussLaher RussLaher commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Change. Ruling decision-gate-xsources-fraction (Russ Laher, 2026-12-04), with the quality gate section of foundation.md and the metrics paragraph of difference.md updated to match. Check 3 holds a packet set when n_xsources_snr_gt20 (kept positive xsources, PSF-fit S/N > 20) is above snr_gt20_fraction_max (0.32) times n_xsources_read_positive (positive SExtractor rows before the edge cut and prefilter). It is skipped, so the set passes, when that catalog read fewer than snr_gt20_min_read (100) rows. snr_gt20_factor and min_epochs are retired, so every check applies from a run's first difference.

Reason. The packets come from the xsources, so the count should describe that catalog. The old check 3 also had these weak points:

  • One median per run: check 3's median mixes all filters and SCAs. A run mixing a crowded and a sparse field, or filters with very different depths, could hold good epochs or let bad ones through.
  • The median includes the epoch itself: in a short run a bad epoch pulls its own threshold up.

0.32 is read on 3,794 recorded difference jobs (runs 264 to 306, replayed read-only from each job's manifest and xsources.parquet): the fraction is at most 0.288 but for two epochs, at 0.352 and 0.401, whose n_sources_snr_gt20 was 13 and 33 times their run's median. At the first draft's 0.5 the check held nothing. 100 is the ruling's value; no recorded catalog read fewer than 291 rows.

Testing. sphinx-build -W --keep-going -b html passes locally. The code is in Caltech-IPAC/rapid, same branch name.

🤖 Generated with Claude Code

…atalog, and no check reads another job

decision-gate-xsources-fraction (Russ Laher, 2026-12-04): a set is held when
n_xsources_snr_gt20 is above 0.5 times n_xsources_read_positive, judged when
that catalog read at least 100 rows; snr_gt20_factor, the run-median count,
and min_epochs are retired, so every check applies from a run's first
difference. foundation.md's quality gate and difference.md's metrics follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ferences

The ruling, the foundation page and the quality reference state the bound
and what it was read on (runs 264 to 306: at most 0.288 but for two epochs
at 0.352 and 0.401 with 13 and 33 times their run's bright count). The
quality reference described the retired median check.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@rusholme
rusholme merged commit 7695f58 into main Dec 4, 2026
1 check passed
@rusholme
rusholme deleted the gate-xsources-fraction branch December 4, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants