
Sanitization Retries: A Bounded Time Planning Model
Short answer
A sanitization schedule that allows retries needs to budget for more than another erase cycle. It must include the review between attempts and the handling of assets that still fail when the retry limit is reached. A faster average schedule does not establish that a device is safe to release.
The bounded-retry model below estimates time spent on an approved sanitization workflow. It is a proposed planning model, not a sanitization standard, a device reliability law or a calculation of residual-data risk. Use it to expose assumptions and reserve exception capacity, never to authorize an otherwise unsupported retry.
Who this is for
This guide is for teams planning sanitization work on owned storage devices. It fits a narrowly defined cohort: the same supported method, comparable hardware and firmware, the same acceptance criteria, and a documented decision about when another attempt is permitted.
The mathematics does not prescribe an erase command. The model and Python example apply to planning records, not to a connected drive. Device capability, method scope and completion evidence still require the exact manufacturer procedure for the asset being processed.
When to use this
Use the model when a reviewer has already approved a finite retry policy and wants to see its expected time and exception workload. Define an attempt as the complete treatment-and-check cycle, ending in either an accepted result or a recorded failure under that cycle's criteria.
Keep the criteria fixed while comparing schedules. Reducing verification to make later attempts appear faster changes the job being modeled. A command submission, a cleared error or a bootable device is not automatically an accepted sanitization result.
When not to use this
Do not use a retry forecast when the next operation is unsupported, the failure requires service, the target is uncertain, or the device is still performing an operation. Preserve its current status and follow the applicable procedure before considering a new command.
Repeated attempts on a physically failing drive are not interchangeable independent trials. A cohort-wide pass fraction also does not show that a device which already failed has the same chance of passing next time. If that assumption cannot be defended, show scenarios or use conditional measurements rather than presenting one forecast as established fact.
Workflow
1. Define the time boundary
Use elapsed time for one asset in a dedicated processing slot. Do not mix that with operator labor minutes. A long device operation may occupy a slot while requiring little hands-on work.
For the simple model, define:
m: the maximum number of attempts, including the first; a positive integer.p: probability that one reached attempt meets the fixed acceptance criteria, between zero and one; dimensionless.q = 1 - p: probability of failure on that attempt; dimensionless.A: the number of attempts actually run, stopping at first acceptance or atm.H: one-time intake and setup time, in minutes.t: fixed time for each complete attempt, including its defined checks, in minutes.r: additional review and reset time before each permitted retry, in minutes.f: additional exception-record and segregation time after all permitted attempts fail, in minutes.
All time inputs are nonnegative. This boundary ends at an accepted result or a documented hold. It excludes subsequent service, destruction, transport, queue delays and any wider disposition project. Include those separately if they belong in the schedule.
2. State the probability assumptions
Assume independent attempt outcomes with the same p, and assume a failed attempt is followed by another whenever the cap allows it. Also assume the fixed times above apply to both accepted and failed attempts.
These are mathematical assumptions, not observations about storage hardware. Real failures may end early, run longer, or trigger a mandatory hold before the cap. In those cases this simple model does not describe the policy being executed.
3. Derive attempts and unresolved outcomes
The first attempt always occurs. The second occurs only if the first fails, with probability q. Attempt k occurs only after the preceding k - 1 failures, with probability q^(k - 1) under the stated assumptions.
Write A as the sum of indicators for whether each possible attempt is reached. Taking the expectation of that sum gives the finite tail sum:
E[A] = sum(q^j for j = 0, ..., m - 1)
P(all m attempts fail) = q^m
P(acceptance by attempt m) = 1 - q^m
For p > 0, the finite geometric sum can also be written as:
E[A] = (1 - q^m) / p
Use the finite sum at p = 0: all attempts fail and E[A] = m. At p = 1, the first attempt is accepted, so E[A] = 1. These endpoint checks catch division-by-zero and indexing mistakes.
The probability q^m describes an unresolved workflow outcome under the model. It is not the probability that recoverable data remains on a device, and acceptance probability is not a physical-erasure guarantee.
4. Add the time components
Every asset incurs H. Every reached attempt incurs t. There are exactly A - 1 retries in this policy, and each adds r. The final exception cost f occurs only if all permitted attempts fail. Therefore:
E[T] = H + t * E[A] + r * (E[A] - 1) + f * q^m
T is elapsed time within the declared boundary, in minutes. Counts and probabilities are dimensionless, so every term has units of minutes. The expression follows by adding the costs for each path and taking their expectations; it does not require a new empirical law.
5. Work a hypothetical example
Suppose an approved policy permits at most three attempts. Use hypothetical inputs p = 0.8, H = 10, t = 60, r = 15 and f = 30, with times in minutes. None is a measured CliDeck or drive benchmark.
q = 0.2
E[A] = 1 + 0.2 + 0.04 = 1.24
P(all three fail) = 0.2^3 = 0.008
E[T] = 10 + 60 * 1.24 + 15 * 0.24 + 30 * 0.008
= 88.24 minutes
The model assigns a 0.8% unresolved fraction at the cap. That means the plan needs an exception path; it does not justify releasing that fraction or changing its result to passed.
The mean is not a deadline for every asset. With the same fixed time assumptions, a path that runs all three attempts and ends in an exception takes 10 + 3 * 60 + 2 * 15 + 30 = 250 minutes within this boundary. Queueing and later disposition can add more time.
For comparison, a one-attempt policy with the same inputs has E[A] = 1, a modeled unresolved fraction of 20%, and expected time 10 + 60 + 30 * 0.2 = 76 minutes. Its shorter mean comes with more assets left on hold. This comparison is about workload; it does not decide whether either policy is safe or permitted.
6. Reproduce the arithmetic without touching storage
The following Python 3 example uses only built-in arithmetic, range, sum and formatted printing. It opens no device, reads no asset data and issues no sanitization command.
p = 0.8
m = 3
intake_minutes = 10.0
attempt_minutes = 60.0
retry_review_minutes = 15.0
exception_minutes = 30.0
assert 0.0 <= p <= 1.0
assert isinstance(m, int) and m >= 1
q = 1.0 - p
expected_attempts = sum(q ** j for j in range(m))
unresolved = q ** m
expected_minutes = (
intake_minutes
+ attempt_minutes * expected_attempts
+ retry_review_minutes * (expected_attempts - 1.0)
+ exception_minutes * unresolved
)
print(f"Expected attempts: {expected_attempts:.2f}")
print(f"Unresolved fraction: {unresolved:.3f}")
print(f"Expected minutes: {expected_minutes:.2f}")
Expected output for these inputs:
Expected attempts: 1.24
Unresolved fraction: 0.008
Expected minutes: 88.24
Verification checklist
- Confirm that the attempt definition includes the required treatment and acceptance checks.
- Count the first attempt inside the cap; three attempts permit only two retries.
- Keep intake, retry review and final exception handling outside
tif they are charged separately. - Check the endpoint cases and reproduce the worked arithmetic.
- Record whether
pis measured for this cohort, estimated with uncertainty, or hypothetical. - Check whether prior failure changes the next attempt's success rate, duration or eligibility.
- Keep failed or ambiguous device outcomes on hold regardless of the forecast.
Verification note: the arithmetic can be reproduced with the supplied code. The inputs are hypothetical; no drive tests, real operator logs or measured retry probabilities are claimed. A correct calculation cannot verify hidden physical storage or repair an unsupported sanitization method.
Where the simple model breaks
If a shared enclosure defect causes every attempt to fail, repeated operations do not provide fresh independent chances. Changing the cable or controller may change both the method path and the timing, requiring a new scope review rather than reuse of the old p.
Likewise, a first-attempt pass fraction measured across many healthy drives may be a poor estimate for a damaged drive after its first failure. Do not multiply that healthy-cohort rate through later attempts without evidence. Track attempt order and failure reason when collecting future data.
If policy requires review after each failure and some devices stop early, model those branches explicitly. Adding an arbitrary retry cap to an unlimited geometric mean does not capture early holds, mixed cohorts or changing durations.
Resale and evidence checklist
Keep the planning worksheet separate from the acceptance record. The latter needs the asset identity, approved method, scope, actual attempts, status evidence, exception history and reviewer decision. A modeled 99.2% acceptance probability must never appear as a certificate that an individual drive is 99.2% erased.
For batch planning, multiplying E[T] by the number of comparable assets estimates total dedicated-slot minutes under the same assumptions. It does not give wall-clock completion time for shared hardware or a parallel queue.
What not to publish
Do not expose customer data, credentials, full device identifiers or unredacted logs in a public worksheet. Do not publish hypothetical retry inputs as product performance, a reliability claim or a certified success rate.
Common mistakes
The most common accounting error is charging retry review after the last failure even when no retry follows, while also charging the final exception cost. Define the two tasks and their boundaries first.
Another error is treating an expectation as a release rule. Actual device status and accepted evidence decide release; a spreadsheet describes the workload of the stated policy.
CliDeck workflow fit
Keep per-asset attempt history and the reason for each next action with the job evidence. Use actual supported device operations and preserve their records. This model is an external planning aid; it makes no claim that CliDeck implements the formula, controls retry policy or certifies a wipe.
Practical runbook format
A planning runbook should identify the cohort, attempt criteria, retry cap and stop conditions before calculating time. After a real failure, preserve the evidence and obtain the required decision before another operation.
What to include
Save the input assumptions, units, calculation version, cohort scope and excluded work. Link the actual device outcome to its acceptance or exception record, never to a forecast alone.
FAQ
Does a higher retry cap prove a better wipe?
No. It changes this model's workload and acceptance probability only under its assumptions. Method support, coverage and actual evidence remain separate requirements.
Can the model use an observed overall pass rate?
Only if that rate is appropriate for the reached attempts being modeled. A pooled rate can hide differences between devices and between first and later attempts.
Is the expected time a completion promise?
No. It is a mean within a declared boundary. Long paths, shared resources, queueing and later exception work need separate scheduling treatment.