python3 tests/own/swarm_grade4.py
PASS: shared-key race on two replicas; replay/conflict/scope/validation/access/logout
{"action": "stop-one", "target": "ep3r706cscfisxuy3ekmgfpeo", "duration_seconds": 15.549, "successful_writes": 1181, "failed_attempts": 2, "successful_rps": 75.954, "first_recovery_seconds": 0.547, "max_success_gap_seconds": 0.136, "instances_before": ["ep3r706cscfisxuy3ekmgfpeo", "ybg5jlv6ecpf1s38yepk67a00"], "instances_after": ["kk0ti0wgqrsp5ht861ynqqbvz", "ybg5jlv6ecpf1s38yepk67a00"], "confirmed_messages_checked": 1335, "duplicate_bodies": 0}
{"action": "stop-one", "target": "ybg5jlv6ecpf1s38yepk67a00", "duration_seconds": 15.47, "successful_writes": 1045, "failed_attempts": 7, "successful_rps": 67.552, "first_recovery_seconds": 1.314, "max_success_gap_seconds": 1.064, "instances_before": ["kk0ti0wgqrsp5ht861ynqqbvz", "ybg5jlv6ecpf1s38yepk67a00"], "instances_after": ["kckow0bugasmow5w19hp6c24g", "kk0ti0wgqrsp5ht861ynqqbvz"], "confirmed_messages_checked": 1212, "duplicate_bodies": 0}
{"action": "update", "target": null, "duration_seconds": 43.729, "successful_writes": 3333, "failed_attempts": 0, "successful_rps": 76.22, "first_recovery_seconds": null, "max_success_gap_seconds": 0.084, "instances_before": ["kckow0bugasmow5w19hp6c24g", "kk0ti0wgqrsp5ht861ynqqbvz"], "instances_after": ["fmylw9crxw40164mjyrtp5umu", "u0j50pbkblnvcv98a2si54z2z"], "confirmed_messages_checked": 3498, "duplicate_bodies": 0}
PASS: each original replica stopped and replaced; rolling update under load; confirmations and sessions preserved
