From 195d4abfce088eebae83687beda55d34a293bd08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=81=D0=BB=D0=BE=D0=B2?= Date: Sat, 7 Nov 2026 08:08:40 +0300 Subject: [PATCH] test: record durable sessions and bounded dependency failures --- evidence/lifecycle.json | 79 +++++++++++++++++++++++++++++++++++++ scripts/verify_lifecycle.py | 3 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 evidence/lifecycle.json diff --git a/evidence/lifecycle.json b/evidence/lifecycle.json new file mode 100644 index 0000000..4b387f6 --- /dev/null +++ b/evidence/lifecycle.json @@ -0,0 +1,79 @@ +{ + "date": "2026-11-07T05:05:22.285580+00:00", + "commit": "5fb1f19de15552321d2c9f5449e088e6452a7189", + "command": "python -m scripts.verify_lifecycle", + "runtime_source_hashes_match": true, + "image_revision": "2f0a8672be67af9e62d2693c3df9bd683fcdae57", + "persistence": { + "same_token": true, + "same_message": true, + "before": { + "api": { + "container": "2b25734b0954", + "pid": 1409, + "started_at": "2026-11-07T05:00:09.733545264Z" + }, + "postgres": { + "container": "29e277263007", + "pid": 1109, + "started_at": "2026-11-07T05:00:04.997609011Z" + }, + "cache": { + "container": "9f6a93f4f941", + "pid": 1041, + "started_at": "2026-11-07T05:00:04.881758678Z" + } + }, + "after": { + "api": { + "container": "2b25734b0954", + "pid": 21469, + "started_at": "2026-11-07T05:05:24.139344714Z" + }, + "postgres": { + "container": "29e277263007", + "pid": 21288, + "started_at": "2026-11-07T05:05:23.819680089Z" + }, + "cache": { + "container": "9f6a93f4f941", + "pid": 21329, + "started_at": "2026-11-07T05:05:23.858910756Z" + } + }, + "seconds": 5.230442958010826 + }, + "migration_repeat": "PASS", + "bootstrap_preserves_secrets": true, + "credential_storage": { + "argon2id": true, + "digest_bytes": 32, + "raw_password_and_token_absent_in_dump": true + }, + "cache_hits": 20, + "cache_stopped": { + "status": 200, + "seconds": 0.11006329099473078 + }, + "cache_flush_preserves_truth": true, + "postgres_pause": { + "status": 503, + "seconds": 4.011241999993217, + "cached_identity_not_trusted": true + }, + "postgres_stop": { + "status": 503, + "seconds": 0.003582208009902388, + "cached_identity_not_trusted": true + }, + "chat_transaction_rollback": { + "injected_failure_status": 500, + "remaining_chat_rows": 0 + }, + "expiry": { + "ttl_seconds": 2, + "status_after_expiry": 401 + }, + "logout_after_cache_hit": "PASS", + "result": "PASS" +} diff --git a/scripts/verify_lifecycle.py b/scripts/verify_lifecycle.py index 3aca62f..be509c3 100644 --- a/scripts/verify_lifecycle.py +++ b/scripts/verify_lifecycle.py @@ -48,7 +48,8 @@ def main(): "python", "-c", "import hashlib,json;from pathlib import Path;" - "print(json.dumps({p.name:hashlib.sha256(p.read_bytes()).hexdigest() " + "print(json.dumps({p.name:" + "hashlib.sha256(p.read_bytes()).hexdigest() " "for p in Path('/app/src').glob('*.py')}))", ) )