# Fault Onset Changes the Comparison

## Result and Scope

Four successful checks of the same block in 56 days do not identify its
event-weighted detection delay. The original uniform-onset worksheet gives
7 days for gaps [14, 14, 14, 14] and 8.75 days for [7, 21, 7, 21]. Under the
same nonuniform onset profile for both schedules, those values become 8.5 and
6.5 days. This is an exact constructed sensitivity result, not a trace replay,
device experiment, predictor, failure-rate estimate or maintenance recommendation.

One hypothetical persistent fault occurs in [0, 56]. The onset density is
proportional to weight four in [0, 7) and [28, 35), and weight one elsewhere.
These are probability-density weights, not measured event counts or hazard rates.
Every check detects the selected fault; no other reads, overwrites, repairs,
incomplete inspections or censored edges intervene. Onset is unaffected by the
chosen schedule. The existing uniform and censored worksheets remain unchanged.

## Derivation

Let c(t) be the next successful inspection and w(t) the specified relative
onset density. Its normalizing mass is M = integral w(t) dt. The mean wait is
integral w(t)(c(t)-t) dt / M. The tail beyond x days is the integral of w(t)
over times satisfying c(t)-t > x, divided by M. Check endpoints have zero
probability under this continuous-onset model; no point masses are supported.

On an overlap [a,b] of a constant-weight segment and an inspection gap ending
at c, waiting area is w(b-a)(c-(a+b)/2). The tail mass is
w max(min(b,c-x)-a,0). The implementation merges the ordered boundaries, so
work grows with the number of gaps and profile segments, not days elapsed.
Arithmetic uses rational numbers; there is no Monte Carlo seed or numeric fit.

For the fourfold profile, M = 14*4 + 42 = 98 weighted days. The regular area
is 833 and the alternating area 637 weighted day-squared. Thus 833/98 = 8.5
and 637/98 = 6.5 days. The alternating probability of waiting over 14 days
is 14/98 = 1/7; it is zero for the regular schedule. A better mean does not
imply a better tail. Neither tail is a data-loss probability.

The reversal is not only a selected point. With weight k >= 0 in those same
two windows and weight one elsewhere, M = 14(k+3), the regular area is
245+147k and the alternating area 441+49k. Their mean difference, alternating
minus regular, is 7(2-k)/(k+3) days. They tie at k=2. This compares only
these two schedules; it proves no global optimum. Equal block-check counts
do not establish equal device I/O, bytes, energy or foreground interference.

## Evidence Boundaries

Reviewed 2026-11-25 through the original-source browser text. Direct downloads
in the editing container returned HTTP 403; no retained PDF hash is claimed.
No third-party figures, raw traces or paper code are redistributed. The weights,
derivation and software are Hesela's; none of the sources supplies this profile.

- Robert G. Gallager, *Discrete Stochastic Processes*, chapter 4, Example 4.4.1
  and equations 4.11-4.15, pp. 167-169, MIT 6.262 notes (2011): the residual-wait
  time integral motivates the constant-weight baseline. It does not make a
  nonuniform event population uniform.
  https://ocw.mit.edu/courses/6-262-discrete-stochastic-processes-spring-2011/931ffa0940899c27f34b71ad64fd2bb0_MIT6_262S11_chap04.pdf
- Bianca Schroeder, Sotirios Damouras and Phillipa Gill, *Understanding latent
  sector errors and how to protect against them*, FAST 2010, sections 2, 5.1
  and 5.2.4: the selected error-bearing historical drives provide detection
  timestamps, not exact onsets. The authors compare alternative onset
  reconstructions. Our two schedules and density are not their policies or data.
  https://www.usenix.org/legacy/event/fast10/tech/full_papers/schroeder.pdf
- Alina Oprea and Ari Juels, *A Clean-Slate Look at Disk Scrubbing*, FAST 2010,
  sections 3.2, 5.1 and 5.2: the simulation combines assumed age and usage
  error processes, including scrub traffic. Its target MLET is an exposed-time
  fraction, not our one-event mean wait. Policy-dependent damage would require
  a joint model outside this fixed-profile calculation. Its heuristic policy
  search is not a universal optimality proof.
  https://www.usenix.org/legacy/event/fast10/tech/full_papers/oprea.pdf
- Farzaneh Mahdisoltani, Ioan Stefanovici and Bianca Schroeder, *Proactive error
  prediction to improve storage system reliability*, USENIX ATC 2017, title
  page and sections 4.1-4.4: the source supplies the corrected bibliographic
  title. Its adaptive-scrub evaluation is a simulation. It does not validate
  our chosen onset density or provide measured gains for this worksheet.
  https://www.usenix.org/system/files/conference/atc17/atc17-mahdisoltani.pdf

## Reproduction

Place onset.py, test_onset.py, onset-results.json and the unchanged model.py
in the same directory. Python 3 standard library only:

```sh
python3 onset.py --check
python3 -m unittest -v test_onset.py
python3 -O -m unittest -v test_onset.py
```

`--write` regenerates the JSON with a real UTC timestamp and hashes of both
Python dependencies. `--check` compares every other field and validates the
timestamp's timezone. Keep the original test_model.py and results.json to run
the inherited baseline tests too. Both domains carry byte-identical new files.

Tests use an independent quarter-day midpoint oracle on integer-day schedules
and half-day thresholds, where affine integrals and tail indicators are exact.
They cover zero weights, profile splitting, scale invariance, the analytical
crossover, invalid types/durations and a huge gap without per-day allocation.
Uniform-profile tests reproduce the old formulas. No sampling confidence
interval applies to these invented inputs. Measured onset information or a
defensible onset model is still needed before applying the result operationally.
