RECOVERY OBJECTIVE COMPARISON — OFFLINE ILLUSTRATIVE WORKSHEET
Leviathan Systems | source checks 2026-10-20 | Python 3.11+ | standard library only

Purpose
Compare supplied recovery observations with supplied RPO/RTO objectives for one
identified workload, scenario and usable-service condition. No network access or
external services. The script reads a local JSON file and prints JSON; it does not
write files, restore systems or inspect evidence. Use nonconfidential references.

Run from this directory:
  python compare_recovery.py sample.json
  python -m unittest -v test_compare_recovery.py
Optional local output chosen by you:
  python compare_recovery.py sample.json > comparison.json

Sample and result
Every input in sample.json is FICTIONAL. The 15-minute RPO and 30-minute RTO are
stipulations, not recommended targets. Valid recovered state is stipulated at 11:40,
interruption at 12:00 and full usable service at 12:35 UTC. The point gap is 20 minutes
(1200 seconds), and interruption lasts 35 minutes (2100 seconds). Each exceeds its
supplied objective by 5 minutes (300 seconds). No real recovery was performed.

Input meanings
- recovered_state_as_of is the time represented by the applicable application
  state actually recovered, not a backup filename, copy-end time or file date.
- recovered_state_validated and state_evidence_reference are YOUR declarations;
  the script does not establish that validation occurred or was adequate.
- usable_service_at concerns the complete return_condition, not just a reachable
  model endpoint, restored VM or completed copy.
- usable_service_confirmed and its evidence reference are also supplied claims.
- clocks_comparable declares your timestamp basis suitable for this comparison.
  A UTC offset alone cannot establish real clock accuracy or comparability.

If state validation, usable return or clock comparability is absent, the relevant
outcome is UNPROVEN. Missing evidence is not silently converted into a measured
pass or miss. The point and time comparisons remain independent.

All timestamps include seconds and an explicit Z or numeric UTC offset, with at
most 6 fractional digits. Numeric offset hours must be 00-23 and minutes 00-59.
The RFC 3339 unknown-local-offset form -00:00 is unsupported by this worksheet;
use its supported Z or known numeric-offset forms. Equivalent supported offsets
are normalized for arithmetic. This
narrow case model rejects a recovered-state time after interruption and a service
return before interruption when clocks are declared comparable. Other incident
models need separate interpretation. Leap seconds and higher precision are not
supported. Duplicate JSON keys, unknown fields and ambiguous timestamps fail.

Objectives are nonnegative JSON numbers in minutes, at most 24 significant digits,
decimal exponent -12 through 9, and at most 1,000,000,000 minutes. These are input
range limits, not planning recommendations. Results use exact decimal-second
strings, sometimes scientific notation (1.2E+3 means 1200 seconds), to avoid float
rounding across an objective boundary. Exit 0 means valid input was compared,
including an exceeded or UNPROVEN outcome; it never means operational acceptance.
Invalid inputs exit 2 without a partial comparison.

The result is conditional arithmetic, not validation, certification, an RPO/RTO
guarantee, a forecast of lost records or a prescription for recovery operation.
Application/platform owners must establish the actual state, usable task, clock
basis, workload conditions, dependencies and evidence. No target, test procedure,
backup/cloud service or software commissioning is offered by this worksheet.

Primary source basis (official text actually read 2026-10-20)
AWS REL13-BP01 defines workload recovery objectives and relates them to business
impact and dependencies. The worksheet supplies no default objective.
https://docs.aws.amazon.com/wellarchitected/latest/framework/rel_planning_for_recovery_objective_defined_recovery.html
AWS REL09-BP04 distinguishes a restore operation from evidence of usable, intact
and appropriately recent recovered data. The worksheet performs no such test.
https://docs.aws.amazon.com/wellarchitected/latest/reliability-pillar/rel_backing_up_data_periodic_recovery_testing_data.html

Related explanation:
https://www.leviathansystems.co/articles/ai-workload-recovery-objectives-versus-restore-observations

Timestamp notation basis: RFC 3339 sections 4.3 and 5.6 (read 2026-10-20).
https://www.rfc-editor.org/rfc/rfc3339
