Executed synthetic operations

Catalog import operations rehearsal

These checks use generated records, disposable local databases and deliberate faults. A passing check means the stated expected outcome occurred, including expected rejection or rollback. It does not certify an internet-facing deployment or hardware power-loss behavior.

Results

CaseRequirementExpectedObservedResult
crash.rollbackAbrupt process exit before commit rolls back every application write{"exit": 86, "unchanged": true, "status": "staged"}{"exit": 86, "unchanged": true, "status": "staged"}PASS
crash.responseRetry after committed child exits returns original approval{"exit": 87, "replayed": true, "version": 1, "applications": 1}{"exit": 87, "replayed": true, "version": 1, "applications": 1}PASS
load.concurrentEight suppliers preserve all rows under four concurrent writers[250, 250, 250, 250, 250, 250, 250, 250][250, 250, 250, 250, 250, 250, 250, 250]PASS
load.versionsEach concurrent supplier advances exactly once{"SUP0": 1, "SUP1": 1, "SUP2": 1, "SUP3": 1, "SUP4": 1, "SUP5": 1, "SUP6": 1, "SUP7": 1}{"SUP0": 1, "SUP1": 1, "SUP2": 1, "SUP3": 1, "SUP4": 1, "SUP5": 1, "SUP6": 1, "SUP7": 1}PASS
http.localReviewer login and authenticated read succeed[200, 200][200, 200]PASS
http.boundaryForeign Host and Origin requests are rejected[403, 403][403, 403]PASS
restart.sessionProcess-local sessions do not survive restart401401PASS
backup.snapshotOnline snapshot excludes uncommitted data and passes integrity{"transient_rows": 0, "integrity": "ok"}{"transient_rows": 0, "integrity": "ok"}PASS
restore.businessRestored supplier, item, batch and audit content is identicaltruetruePASS
restore.idempotencyRestored batch still prevents duplicate applicationtruetruePASS
restore.corruptionCorrupt snapshot rejected before destination creationtruetruePASS
restore.no-overwriteExisting restore destination is preservedtruetruePASS
integrity.finalFinal source passes integrity and foreign-key checks{"integrity": "ok", "foreign_key_errors": 0}{"integrity": "ok", "foreign_key_errors": 0}PASS
backup.scheduleFinite scheduler creates two checked snapshots and stops{"exit": 0, "snapshots": 2, "valid": 2}{"exit": 0, "snapshots": 2, "valid": 2}PASS

Measurements

{
  "concurrent_imports": {
    "suppliers": 8,
    "rows_per_supplier": 250,
    "workers": 4,
    "elapsed_seconds": 0.0983,
    "committed_rows_per_second": 20353.4,
    "qualification": "One synthetic shared-host run; not sustained production capacity."
  },
  "recovery": {
    "snapshot_bytes": 1036288,
    "snapshot_seconds": 0.008711,
    "restore_seconds": 0.007552,
    "rows": {
      "audit": 18,
      "batches": 9,
      "items": 2004,
      "suppliers": 9
    },
    "nominal_backup_interval_seconds": 900,
    "theoretical_rpo_bound_seconds": 900.008711,
    "rpo_assumption": "A successful snapshot at least every 15 minutes; source and backup not lost together. No unattended schedule was run."
  }
}

Method

Reproduce

python operations_rehearsal.py

See OPERATIONS.md for startup, snapshot, restore and capacity assumptions. The machine-readable record is completion.json.

Boundaries