PASS: topology_and_limits {"api_replicas": 2, "broker": "Valkey Streams with AOF fsync always", "worker_processes": 2}
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
PASS: public_smoke_and_schema {}
PASS: 10 clients sent 100 messages; history contains exactly 100 unique messages.
test_chat_access (test_api.ApiTests.test_chat_access) ... ok
test_chat_pagination_and_cursor_owner (test_api.ApiTests.test_chat_pagination_and_cursor_owner) ... ok
test_cursor_cannot_be_used_for_another_chat_or_changed (test_api.ApiTests.test_cursor_cannot_be_used_for_another_chat_or_changed) ... ok
test_default_page_size (test_api.ApiTests.test_default_page_size) ... ok
test_duplicate_username (test_api.ApiTests.test_duplicate_username) ... ok
test_framework_errors_and_request_ids (test_api.ApiTests.test_framework_errors_and_request_ids) ... ok
test_identification_and_authentication_order (test_api.ApiTests.test_identification_and_authentication_order) ... ok
test_invalid_chat_members (test_api.ApiTests.test_invalid_chat_members) ... ok
test_invalid_chat_title (test_api.ApiTests.test_invalid_chat_title) ... ok
test_invalid_limits_and_cursors (test_api.ApiTests.test_invalid_limits_and_cursors) ... ok
test_invalid_message_fields (test_api.ApiTests.test_invalid_message_fields) ... ok
test_invalid_user_fields (test_api.ApiTests.test_invalid_user_fields) ... ok
test_malformed_json_and_encoding (test_api.ApiTests.test_malformed_json_and_encoding) ... ok
test_message_pagination_and_changing_limit (test_api.ApiTests.test_message_pagination_and_changing_limit) ... ok
test_unicode_and_text_preservation (test_api.ApiTests.test_unicode_and_text_preservation) ... ok
test_wrong_content_type (test_api.ApiTests.test_wrong_content_type) ... ok
test_access_and_authentication (test_attachments.AttachmentTests.test_access_and_authentication) ... ok
test_attachment_only_message_and_other_member (test_attachments.AttachmentTests.test_attachment_only_message_and_other_member) ... ok
test_chunked_limit_without_content_length (test_attachments.AttachmentTests.test_chunked_limit_without_content_length) ... ok
test_content_length_limit_before_body (test_attachments.AttachmentTests.test_content_length_limit_before_body) ... ok
test_corruption_and_mime_spoof (test_attachments.AttachmentTests.test_corruption_and_mime_spoof) ... ok
test_filename_rejected_before_storage (test_attachments.AttachmentTests.test_filename_rejected_before_storage) ... ok
test_foreign_and_unknown_attachment_ids (test_attachments.AttachmentTests.test_foreign_and_unknown_attachment_ids) ... ok
test_idempotency_includes_ordered_attachment_ids (test_attachments.AttachmentTests.test_idempotency_includes_ordered_attachment_ids) ... ok
test_invalid_attachment_lists (test_attachments.AttachmentTests.test_invalid_attachment_lists) ... ok
test_pixel_limit_before_decode (test_attachments.AttachmentTests.test_pixel_limit_before_decode) ... ok
test_png_and_jpeg_originals (test_attachments.AttachmentTests.test_png_and_jpeg_originals) ... ok
test_simultaneous_registration_of_one_username (test_concurrency.ConcurrencyTests.test_simultaneous_registration_of_one_username) ... ok
test_ten_clients_send_one_hundred_messages (test_concurrency.ConcurrencyTests.test_ten_clients_send_one_hundred_messages) ... ok
test_conflict_and_semantic_json_replay (test_idempotency.IdempotencyTests.test_conflict_and_semantic_json_replay) ... ok
test_key_format_and_missing_key (test_idempotency.IdempotencyTests.test_key_format_and_missing_key) ... ok
test_parallel_replay_across_replicas (test_idempotency.IdempotencyTests.test_parallel_replay_across_replicas) ... ok
test_replay_rechecks_session_and_access (test_idempotency.IdempotencyTests.test_replay_rechecks_session_and_access) ... ok
test_scope_is_user_and_chat (test_idempotency.IdempotencyTests.test_scope_is_user_and_chat) ... ok
test_logout_revokes_only_one_session (test_sessions.SessionTests.test_logout_revokes_only_one_session) ... ok
test_password_validation (test_sessions.SessionTests.test_password_validation) ... ok
test_sql_like_message_is_plain_text (test_sessions.SessionTests.test_sql_like_message_is_plain_text) ... ok
test_unicode_password_with_colon_and_private_response (test_sessions.SessionTests.test_unicode_password_with_colon_and_private_response) ... ok
test_wrong_password_and_basic_only_for_login (test_sessions.SessionTests.test_wrong_password_and_basic_only_for_login) ... ok

----------------------------------------------------------------------
Ran 39 tests in 18.829s

OK
PASS: student_api_regressions {}
PASS: worker_offline_api_broker_restart {"attachment_id": "4c51cf44-6898-4240-9c22-a0f15352e869", "job_id": "5719824c-a84e-4db3-937a-d2cbe8274cf2", "message_id": "7e5b29ce-7c46-4321-a8d9-e09ae2cee87f", "variants": {"thumbnail": {"size": [256, 160], "bytes": 5813}, "crop": {"size": [128, 128], "bytes": 2462}, "optimized": {"size": [320, 200], "bytes": 2462}}}
PASS: outbox_crash_before_publish {"job_id": "30d9ab52-afa8-4956-aec5-2e5d140120f5", "automatic_recovery": true}
PASS: outbox_crash_after_publish {"job_id": "5f3b1b2e-79aa-40b7-a8e4-9c020b007ecf", "automatic_recovery": true}
PASS: worker_crash_after_objects {"job_id": "8b75ec40-a4e6-4e74-a3e6-a9e4fd0e518e", "attempt": 2, "canonical_objects": 4, "duplicate_noop": true}
PASS: worker_crash_before_ack {"job_id": "86b7214f-3c97-4128-bc01-912156c85826", "attempt": 1, "canonical_objects": 4, "duplicate_noop": true}
PASS: bounded_retry_failed_registry_replay {"job_id": "ed73f78e-e6c3-45b9-b4da-128ac04dca6e", "max_automatic_attempts": 5, "audit": [{"event": "processing", "attempt": 1, "error_code": null, "at": "2026-11-20T00:24:23.042915+00:00"}, {"event": "retry", "attempt": 1, "error_code": "storage_unavailable", "at": "2026-11-20T00:24:23.049649+00:00"}, {"event": "processing", "attempt": 2, "error_code": null, "at": "2026-11-20T00:24:23.312109+00:00"}, {"event": "retry", "attempt": 2, "error_code": "storage_unavailable", "at": "2026-11-20T00:24:23.316742+00:00"}, {"event": "processing", "attempt": 3, "error_code": null, "at": "2026-11-20T00:24:23.578774+00:00"}, {"event": "retry", "attempt": 3, "error_code": "storage_unavailable", "at": "2026-11-20T00:24:23.583937+00:00"}, {"event": "processing", "attempt": 4, "error_code": null, "at": "2026-11-20T00:24:24.095429+00:00"}, {"event": "retry", "attempt": 4, "error_code": "storage_unavailable", "at": "2026-11-20T00:24:24.100589+00:00"}, {"event": "processing", "attempt": 5, "error_code": null, "at": "2026-11-20T00:24:25.629341+00:00"}, {"event": "failed", "attempt": 5, "error_code": "retry_exhausted", "at": "2026-11-20T00:24:25.63416+00:00"}, {"event": "operator_replay", "attempt": 5, "error_code": null, "at": "2026-11-20T00:24:27.953278+00:00"}, {"event": "processing", "attempt": 6, "error_code": null, "at": "2026-11-20T00:24:28.171185+00:00"}, {"event": "ready", "attempt": 6, "error_code": null, "at": "2026-11-20T00:24:29.059902+00:00"}], "ready_replay_rejected": true}
PASS: permanent_error {"job_id": "f9736cf9-4d14-43f0-85a6-881fbb10fb9d", "attempt": 1, "error_code": "invalid_image"}
PASS: image_subprocess_timeout {"job_id": "b17706d1-e8df-4ef9-a96a-2c6be51dd411", "timeout_seconds": 5, "task_memory_mb": 640, "recovered": true}
PASS: image_subprocess_memory {"job_id": "1e17f7c2-c00f-410a-84d4-1313cf3e1bf0", "timeout_seconds": 5, "task_memory_mb": 640, "recovered": true}
PASS: image_semantics {"cases": [{"case": "small_alpha_on_white", "variants": {"thumbnail": {"size": [17, 9], "bytes": 635}, "crop": {"size": [128, 128], "bytes": 883}, "optimized": {"size": [17, 9], "bytes": 56}}}, {"case": "exif_orientation_6_and_floor", "variants": {"thumbnail": {"size": [160, 256], "bytes": 1270}, "crop": {"size": [128, 128], "bytes": 886}, "optimized": {"size": [201, 321], "bytes": 210}}}]}
PASS: staging_cleanup {"active_preserved": true, "orphan_removed": true, "ready_removed": true, "expired_failed_removed": true, "expired_replay_rejected": true}
PASS: broker_offline_outbox {"attachment_id": "ee6d44f4-b97e-4e44-abe8-b1f9c3e8dbb0", "recovered": true}
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
PASS: public_persistence {"restart_proof": {"passed": true, "before": {"b2f0aa3f5609d54ba25dd86e41e94b3396949b085fe119cad4e1e656e767f659": {"service": "api", "started_at": "2026-11-20T00:22:33.628310694Z", "volumes": []}, "b37c72870c1b4aeb37ce44947a0c8f11d69b387d850fe447d9f0c884d04e93fb": {"service": "api", "started_at": "2026-11-20T00:22:33.577007301Z", "volumes": []}, "0e148dc6d006ebfcc2331923da7808285925e7befba956f8f0ae570ce456cf82": {"service": "broker", "started_at": "2026-11-20T00:25:41.495493111Z", "volumes": ["lab5-check-bd0805a78f_broker_data"]}, "981ee5e5bfeb7b384ebd5c5cf4c60698436c2775a469089e42da7687f7ee6a84": {"service": "cleanup", "started_at": "2026-11-20T00:21:52.360111834Z", "volumes": []}, "5313ce57eb20a60d10f3fba41f6c5efcf8694a7af9d1f64bea67ae73bad2af2c": {"service": "lb", "started_at": "2026-11-20T00:21:58.544867993Z", "volumes": []}, "aa66f664069f42f7b04b4836d2ebe0e28b5de628c444c7a6e2b0bb373fa0ffbf": {"service": "postgres", "started_at": "2026-11-20T00:21:30.435939794Z", "volumes": ["lab5-check-bd0805a78f_postgres_data"]}, "bee2cce77bd237c4b85d2425628ff9cebab07da7a80d431006801abae76d8410": {"service": "publisher", "started_at": "2026-11-20T00:25:02.552679256Z", "volumes": []}, "ec8fb5aa7f2c60d36b5481e3629cc6f7636f45ea2e79746b53ea98084fa81ee1": {"service": "s3", "started_at": "2026-11-20T00:21:47.692751395Z", "volumes": ["b093ad7481ba5341b0ff7ba889b83214cbcde32c2e0d26489b409be7d7692b74"]}, "05a16d6b0da331ce0e0ef05f3211bd2f1c3291ef64861867dfb69265dde52249": {"service": "s3-storage", "started_at": "2026-11-20T00:21:30.420376162Z", "volumes": ["lab5-check-bd0805a78f_s3_data"]}, "083d15686b5e97157cddde48c5e3bcf8a4bfee1bb5b56c6e5bd5775fa87c3445": {"service": "valkey", "started_at": "2026-11-20T00:21:30.441035599Z", "volumes": ["lab5-check-bd0805a78f_valkey_data"]}, "4b917c98e8eae832c463a5ef0dbf27146fd002c9971197a042d5a5acc7e542bc": {"service": "worker", "started_at": "2026-11-20T00:25:34.559868585Z", "volumes": []}}, "after": {"b2f0aa3f5609d54ba25dd86e41e94b3396949b085fe119cad4e1e656e767f659": {"service": "api", "started_at": "2026-11-20T00:25:48.976159307Z", "volumes": []}, "b37c72870c1b4aeb37ce44947a0c8f11d69b387d850fe447d9f0c884d04e93fb": {"service": "api", "started_at": "2026-11-20T00:25:49.162188375Z", "volumes": []}, "0e148dc6d006ebfcc2331923da7808285925e7befba956f8f0ae570ce456cf82": {"service": "broker", "started_at": "2026-11-20T00:25:48.521992953Z", "volumes": ["lab5-check-bd0805a78f_broker_data"]}, "981ee5e5bfeb7b384ebd5c5cf4c60698436c2775a469089e42da7687f7ee6a84": {"service": "cleanup", "started_at": "2026-11-20T00:25:56.178707789Z", "volumes": []}, "5313ce57eb20a60d10f3fba41f6c5efcf8694a7af9d1f64bea67ae73bad2af2c": {"service": "lb", "started_at": "2026-11-20T00:25:48.39855531Z", "volumes": []}, "aa66f664069f42f7b04b4836d2ebe0e28b5de628c444c7a6e2b0bb373fa0ffbf": {"service": "postgres", "started_at": "2026-11-20T00:25:48.905887512Z", "volumes": ["lab5-check-bd0805a78f_postgres_data"]}, "bee2cce77bd237c4b85d2425628ff9cebab07da7a80d431006801abae76d8410": {"service": "publisher", "started_at": "2026-11-20T00:25:56.263065951Z", "volumes": []}, "ec8fb5aa7f2c60d36b5481e3629cc6f7636f45ea2e79746b53ea98084fa81ee1": {"service": "s3", "started_at": "2026-11-20T00:25:48.840024888Z", "volumes": ["b093ad7481ba5341b0ff7ba889b83214cbcde32c2e0d26489b409be7d7692b74"]}, "05a16d6b0da331ce0e0ef05f3211bd2f1c3291ef64861867dfb69265dde52249": {"service": "s3-storage", "started_at": "2026-11-20T00:25:48.653173569Z", "volumes": ["lab5-check-bd0805a78f_s3_data"]}, "083d15686b5e97157cddde48c5e3bcf8a4bfee1bb5b56c6e5bd5775fa87c3445": {"service": "valkey", "started_at": "2026-11-20T00:25:48.786838737Z", "volumes": ["lab5-check-bd0805a78f_valkey_data"]}, "4b917c98e8eae832c463a5ef0dbf27146fd002c9971197a042d5a5acc7e542bc": {"service": "worker", "started_at": "2026-11-20T00:25:49.047638975Z", "volumes": []}}, "same_containers_and_volumes": true}}
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 93, "failed_attempts": 1, "first_recovery_seconds": 3.057}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
PASS: public_api_failover {}
PASS: all lab5 grade-4 criteria completed
Removed isolated test stack: lab5-check-bd0805a78f
