# TESS transit recovery pilot

Recorded on 1 December 2026 before injection results were computed.

## Question

How do detrending family and window length affect recovery and attenuation of shallow, periodic transit-shaped signals in calibrated TESS aperture photometry?

## Sample and provenance

Use the official MAST Sector 1 SPOC two-minute light-curve index. Draw 24 candidate files from sorted index URLs using NumPy RNG seed 20261201. Download immutable copies with SHA-256 checksums. Keep files with at least 20 days of usable observations and positive finite SAP_FLUX and SAP_FLUX_ERR at QUALITY == 0. Do not use PDCSAP_FLUX. Prefer TESS magnitude 8–13 where present. From eligible candidates, order by the 95th minus 5th percentile of normalized SAP flux. Select six approximately evenly spaced ranks, spanning the observed variation in this convenience sample. Do not select based on transit recovery. Existing variability includes instrumental and astrophysical effects.

## Injections and processing

Inject multiplicatively into normalized native-cadence SAP flux before binning or detrending. Hold native uncertainties fixed at injection, then divide uncertainties by the same fitted trend as the flux. Use symmetric trapezoids with ingress and egress each 20 percent of total duration. Depths are 200, 500, 1000, and 3000 ppm. Periods are 1.7, 3.4, and 6.8 days. Total duration is 0.1 × (period / 3.4)^(1/3) days. Epoch offsets are 0.13, 0.37, 0.61, and 0.83 periods after the first retained time. These are controlled photometric shapes, without a stellar-radius interpretation or population occurrence-rate calculation.

Average into fixed ten-minute bins using inverse-variance weights. Keep the same bins and quality mask for every method. Require at least three injected transit events with three observed bins each. Split detrending at gaps longer than 0.5 days. Interpolate smaller missing bins onto a regular grid for trend estimation only, then evaluate the trend at observed bins. Compare median normalization only, a 0.5-day Savitzky–Golay quadratic filter, a 2-day Savitzky–Golay quadratic filter, and a 2-day running median. No injection-informed masks, transit clipping, or post-result retuning.

## Blind search and metrics

Use Astropy BoxLeastSquares with a common automatic period grid spanning 0.8–9 days, minimum trial duration 0.06 days, frequency_factor=1, durations [0.06, 0.1, 0.15, 0.2] days, objective likelihood, and phase oversample 10. Record the global maximum, its nominal depth SNR, period, epoch, duration, and power. A recovered injection must have nominal BLS depth SNR ≥ 7, period error < 1 percent, and predicted midpoint errors less than half the injected duration at the first and last observed injected event. The SNR cut is a declared screening rule. It does not imply a calibrated false-alarm probability in correlated noise. Record half/double-period candidates separately.

Search every uninjected curve under each method as a control. Flag any injected ephemeris already matching its control candidate, and exclude those coincidences from credited recoveries. Report controls directly. They include possible native signals and do not determine a survey false-positive rate.

Also measure imposed-signal transfer with a regression of the difference between detrended injected and uninjected flux onto the actual binned imposed flux difference divided by that method’s uninjected fitted trend, with an intercept. A coefficient of one indicates full transfer; the predictor retains the multiplicative effect of variable baseline flux. Use the known ephemeris only for this diagnostic and recovery scoring, never in the blind search or detrending.

## Reporting and limits

Keep every trial and each control in CSV, sample provenance in JSON, code and dependency lockfile, and standalone scientific figures. Report recovery numerators/denominators, cluster-bootstrap intervals resampling whole target light curves, attenuation, alias-compatible candidates, and representative success/failure examples. Choose representative examples by a deterministic rule described in the report. The conclusions concern six selected Sector 1 SAP light curves, these four processing choices, and this injection grid. Longer-period completeness, full detector-to-catalog completeness, stellar demographics, and discovery claims need a larger study.

## Validation amendment

The initial execution was retained under audit/initial-run. Before interpreting or publishing its attenuation results, independent review identified that the transfer predictor also needed division by the uninjected fitted trend. This correction makes one the reference for applying a frozen trend with no signal loss. The same sample, injection grid, processing methods, search grid, and scoring criteria were rerun. Input-manifest reuse and interrupted-checkpoint validation were corrected at the same time. These changes address implementation and diagnostic normalization, with no outcome-based parameter selection.
