SYNTHETIC LOCAL HTTPS/AUTH + BROKER HTTP/WEBSOCKET + ACCOUNTING/OBSERVER TESTS
No production gateway contact, no real credentials, no real trades.

test_date_before_history_is_empty (test_audit.AccountingTests.test_date_before_history_is_empty) ... {"at":"2026-10-28T10:27:48.127672+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp1j85uzp2"}
ok
test_diagnostic_is_exclusive_and_read_only (test_audit.AccountingTests.test_diagnostic_is_exclusive_and_read_only) ... {"at":"2026-10-28T10:27:48.151890+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpcgkxu3hb"}
ok
test_historical_halt_is_not_current_halt (test_audit.AccountingTests.test_historical_halt_is_not_current_halt) ... {"at":"2026-10-28T10:27:48.177117+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp_pyps6d6"}
{"at":"2026-10-28T10:27:48.194267+00:00","event":"HALT","reason":"later"}
ok
test_immutable_audit_tables (test_audit.AccountingTests.test_immutable_audit_tables) ... {"at":"2026-10-28T10:27:48.197507+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpze_kf5ru"}
ok
test_independent_verifier_detects_posting_tamper (test_audit.AccountingTests.test_independent_verifier_detects_posting_tamper) ... {"at":"2026-10-28T10:27:48.215062+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpp62lzmu3"}
ok
test_independent_verifier_detects_state_tamper (test_audit.AccountingTests.test_independent_verifier_detects_state_tamper) ... {"at":"2026-10-28T10:27:48.237200+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp8zz4am4a"}
ok
test_lesson_ancestry_and_physical_rows (test_audit.AccountingTests.test_lesson_ancestry_and_physical_rows) ... {"at":"2026-10-28T10:27:48.256329+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp4gwcz6ad"}
ok
test_milestone_selects_first_crossing (test_audit.AccountingTests.test_milestone_selects_first_crossing) ... {"at":"2026-10-28T10:27:48.280120+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp0zlnlytn"}
ok
test_observer_connections_are_query_only (test_audit.AccountingTests.test_observer_connections_are_query_only) ... {"at":"2026-10-28T10:27:48.304022+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpu6bvzot3"}
ok
test_opening_and_buy_sell_trial_balance (test_audit.AccountingTests.test_opening_and_buy_sell_trial_balance) ... {"at":"2026-10-28T10:27:48.325271+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp0pv648mu"}
ok
test_pending_receipt_defers_reconciliation (test_audit.AccountingTests.test_pending_receipt_defers_reconciliation) ... {"at":"2026-10-28T10:27:48.358629+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp0cmr4rlh"}
ok
test_rc1_upgrade_preserves_legacy_risk_lessons_and_pending_state (test_audit.AccountingTests.test_rc1_upgrade_preserves_legacy_risk_lessons_and_pending_state) ... {"at":"2026-10-28T10:27:48.385164+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpsm0oe3sm"}
{"at":"2026-10-28T10:27:48.476424+00:00","event":"HALT","reason":"restart_with_unresolved_order_intent"}
ok
test_suspense_lesson_and_mandatory_halt (test_audit.AccountingTests.test_suspense_lesson_and_mandatory_halt) ... {"at":"2026-10-28T10:27:48.481133+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpmnxeunei"}
ok
test_host_and_origin_checks (test_audit.DashboardTests.test_host_and_origin_checks) ... {"at":"2026-10-28T10:27:48.524857+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp2m47v1le"}
ok
test_http_snapshot_and_security_headers (test_audit.DashboardTests.test_http_snapshot_and_security_headers) ... {"at":"2026-10-28T10:27:48.587671+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpeasasp86"}
ok
test_missing_observer_blocks_diagnostics (test_audit.DashboardTests.test_missing_observer_blocks_diagnostics) ... {"at":"2026-10-28T10:27:48.634155+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpsk_pnnin"}
ok
test_observer_cannot_place_orders (test_audit.DashboardTests.test_observer_cannot_place_orders) ... {"at":"2026-10-28T10:27:48.664408+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpnb6mwgh3"}
ok
test_socket_attestation_and_cursor (test_audit.DashboardTests.test_socket_attestation_and_cursor) ... {"at":"2026-10-28T10:27:48.701739+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpybn5h4b7"}
ok
test_ui_contains_required_views_and_no_external_assets (test_audit.DashboardTests.test_ui_contains_required_views_and_no_external_assets) ... {"at":"2026-10-28T10:27:49.746943+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpet6aehum"}
ok
test_background_revocation_and_fresh_prompt (test_auth.GatewayTests.test_background_revocation_and_fresh_prompt) ... Executing <Task pending name='Task-66' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.233 seconds
ok
test_bad_account_bootstrap_revokes (test_auth.GatewayTests.test_bad_account_bootstrap_revokes) ... Executing <Task pending name='Task-83' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.266 seconds
ok
test_boolean_expiry_is_not_integer (test_auth.GatewayTests.test_boolean_expiry_is_not_integer) ... Executing <Task pending name='Task-100' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.162 seconds
ok
test_exact_challenge_and_cookie_bound_bootstrap (test_auth.GatewayTests.test_exact_challenge_and_cookie_bound_bootstrap) ... Executing <Task pending name='Task-114' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.211 seconds
ok
test_failed_renewal_revokes_and_halts (test_auth.GatewayTests.test_failed_renewal_revokes_and_halts) ... Executing <Task pending name='Task-131' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.712 seconds
ok
test_live_broker_cannot_bypass_missing_gate (test_auth.GatewayTests.test_live_broker_cannot_bypass_missing_gate) ... Executing <Task pending name='Task-148' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.190 seconds
{"at":"2026-10-28T10:27:51.842882+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp44is5klv"}
ok
test_missing_session_cookie_rejected (test_auth.GatewayTests.test_missing_session_cookie_rejected) ... Executing <Task pending name='Task-154' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.226 seconds
ok
test_non_http_only_cookie_rejected (test_auth.GatewayTests.test_non_http_only_cookie_rejected) ... Executing <Task pending name='Task-168' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.144 seconds
ok
test_nonsecure_cookie_rejected (test_auth.GatewayTests.test_nonsecure_cookie_rejected) ... Executing <Task pending name='Task-182' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.103 seconds
ok
test_redirect_is_not_followed (test_auth.GatewayTests.test_redirect_is_not_followed) ... Executing <Task pending name='Task-196' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.212 seconds
ok
test_wrong_expiry_hard_fails (test_auth.GatewayTests.test_wrong_expiry_hard_fails) ... Executing <Task pending name='Task-210' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.277 seconds
ok
test_wrong_status_hard_fails_once (test_auth.GatewayTests.test_wrong_status_hard_fails_once) ... Executing <Task pending name='Task-224' coro=<GatewayTests.asyncSetUp() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_auth.py:82> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.293 seconds
ok
test_background_thread_cannot_prompt (test_auth.PolicyTests.test_background_thread_cannot_prompt) ... ok
test_bare_hostname_is_normalized (test_auth.PolicyTests.test_bare_hostname_is_normalized) ... ok
test_gateway_url_restrictions (test_auth.PolicyTests.test_gateway_url_restrictions) ... ok
test_mac_hidden_prompt_policy (test_auth.PolicyTests.test_mac_hidden_prompt_policy) ... ok
test_partial_cloudflare_configuration_rejected (test_auth.PolicyTests.test_partial_cloudflare_configuration_rejected) ... ok
test_cli_run_requires_explicit_live_flag (test_native.JournalTests.test_cli_run_requires_explicit_live_flag) ... {"at":"2026-10-28T10:27:53.255365+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpe_el935h"}
ok
test_cli_verify_does_not_need_credentials (test_native.JournalTests.test_cli_verify_does_not_need_credentials) ... {"at":"2026-10-28T10:27:53.521153+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpj3lsnfsx"}
ok
test_every_observation_is_fixed_point_and_floor_survives (test_native.JournalTests.test_every_observation_is_fixed_point_and_floor_survives) ... {"at":"2026-10-28T10:27:53.838544+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpc_zbl5ql"}
ok
test_halt_persists_and_blocks_entry (test_native.JournalTests.test_halt_persists_and_blocks_entry) ... {"at":"2026-10-28T10:27:53.863613+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmph3ut6fp2"}
{"at":"2026-10-28T10:27:53.882119+00:00","event":"HALT","reason":"test"}
ok
test_hash_tamper_detection (test_native.JournalTests.test_hash_tamper_detection) ... {"at":"2026-10-28T10:27:53.886517+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpbu24b10b"}
ok
test_macro_visibility_and_month_gaps (test_native.JournalTests.test_macro_visibility_and_month_gaps) ... {"at":"2026-10-28T10:27:53.905043+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmptfui9k43"}
ok
test_nonce_unique_across_threads (test_native.JournalTests.test_nonce_unique_across_threads) ... {"at":"2026-10-28T10:27:53.930760+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmptrjgx604"}
ok
test_pending_restart_never_resubmits (test_native.JournalTests.test_pending_restart_never_resubmits) ... {"at":"2026-10-28T10:27:53.981689+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpre4x_yux"}
{"at":"2026-10-28T10:27:54.017570+00:00","event":"HALT","reason":"restart_with_unresolved_order_intent"}
ok
test_receipt_lesson_and_idempotence (test_native.JournalTests.test_receipt_lesson_and_idempotence) ... {"at":"2026-10-28T10:27:54.019576+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp7o7ep8rj"}
ok
test_scope_binding (test_native.JournalTests.test_scope_binding) ... {"at":"2026-10-28T10:27:54.045620+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp2ggwc4pb"}
ok
test_accounting_rejects_binary_float (test_native.PolicyTests.test_accounting_rejects_binary_float) ... ok
test_acquisition_cost_protection (test_native.PolicyTests.test_acquisition_cost_protection) ... ok
test_decimal_only (test_native.PolicyTests.test_decimal_only) ... ok
test_empty_indicators_hold (test_native.PolicyTests.test_empty_indicators_hold) ... ok
test_floor_milestones_and_permanent_ratchet (test_native.PolicyTests.test_floor_milestones_and_permanent_ratchet) ... ok
test_strategy_uses_lessons (test_native.PolicyTests.test_strategy_uses_lessons) ... ok
test_threshold_and_cumulative_penalty (test_native.PolicyTests.test_threshold_and_cumulative_penalty) ... ok
test_wire_preserves_decimal_numbers (test_native.PolicyTests.test_wire_preserves_decimal_numbers) ... ok
test_alpaca_native_buy_risk_breach_liquidates (test_native.ProtocolTests.test_alpaca_native_buy_risk_breach_liquidates) ... {"at":"2026-10-28T10:27:54.082155+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpnh10tc9u"}
{"at":"2026-10-28T10:27:55.160108+00:00","event":"HALT","reason":"equity_below_floor"}
{"at":"2026-10-28T10:27:55.174896+00:00","event":"LIQUIDATION_CONFIRMED"}
{"at":"2026-10-28T10:27:55.265556+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:27:55.267160+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:27:55.278235+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_check_is_read_only_at_broker (test_native.ProtocolTests.test_check_is_read_only_at_broker) ... {"at":"2026-10-28T10:27:55.292834+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpn90f7w3x"}
{"at":"2026-10-28T10:27:55.348676+00:00","event":"READ_ONLY_CHECK","halted":false,"snapshot":{"at":"2026-10-28T10:27:55.347522+00:00","cash":"500","equity":"500","equity_reconciliation_difference":"0","gross_asset_value":"0","positions":[],"quantity":"0","source":"alpaca_REST_account_and_positions"},"unresolved_intents":0}
ok
test_complete_https_gate_broker_dashboard_and_ledger_path (test_native.ProtocolTests.test_complete_https_gate_broker_dashboard_and_ledger_path) ... {"at":"2026-10-28T10:27:55.355823+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp_f38ujzd"}
Executing <Task pending name='Task-362' coro=<ProtocolTests.test_complete_https_gate_broker_dashboard_and_ledger_path() running at /workspace/scratch/811af09f378c/alphabot-v1/tests/test_native.py:569> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/tasks.py:712> cb=[_run_until_complete_cb() at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/base_events.py:181] created at /opt/codex/runtimes/codex-primary-runtime/dependencies/python/lib/python3.12/asyncio/runners.py:100> took 0.584 seconds
{"at":"2026-10-28T10:27:58.073331+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:27:59.102319+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:27:59.133982+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_empty_macro_streams_and_risk_samples_without_buy (test_native.ProtocolTests.test_empty_macro_streams_and_risk_samples_without_buy) ... {"at":"2026-10-28T10:27:59.156945+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp7ovlef9e"}
{"at":"2026-10-28T10:28:01.276009+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:02.246446+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:02.262279+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_explicit_rearm_preserves_risk_history (test_native.ProtocolTests.test_explicit_rearm_preserves_risk_history) ... {"at":"2026-10-28T10:28:02.276222+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpajtjo47v"}
{"at":"2026-10-28T10:28:02.310775+00:00","event":"HALT","reason":"operator_stop"}
{"at":"2026-10-28T10:28:02.327364+00:00","event":"REARMED","preserved_lesson_count":0}
ok
test_external_cash_movement_halts_and_flattens (test_native.ProtocolTests.test_external_cash_movement_halts_and_flattens) ... {"at":"2026-10-28T10:28:02.335791+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmp6qtu44kw"}
{"at":"2026-10-28T10:28:02.381610+00:00","event":"HALT","reason":"account_reconciliation_mismatch"}
{"at":"2026-10-28T10:28:02.387698+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_kraken_complete_session_and_shutdown_liquidation (test_native.ProtocolTests.test_kraken_complete_session_and_shutdown_liquidation) ... {"at":"2026-10-28T10:28:02.432759+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpp080h6li"}
{"at":"2026-10-28T10:28:02.470709+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpp080h6li/kraken-project"}
{"at":"2026-10-28T10:28:04.560117+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:05.553537+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:05.629665+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_kraken_signed_rest_and_native_socket_order (test_native.ProtocolTests.test_kraken_signed_rest_and_native_socket_order) ... {"at":"2026-10-28T10:28:05.655994+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpoa0l5wxo"}
ok
test_missing_observer_blocks_strategy_without_stopping_risk (test_native.ProtocolTests.test_missing_observer_blocks_strategy_without_stopping_risk) ... {"at":"2026-10-28T10:28:05.861227+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpmpz64exz"}
{"at":"2026-10-28T10:28:08.024705+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:09.013735+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:09.025633+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_partial_fill_is_accounted_and_halts (test_native.ProtocolTests.test_partial_fill_is_accounted_and_halts) ... {"at":"2026-10-28T10:28:09.037501+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmphb65oimt"}
{"at":"2026-10-28T10:28:09.296110+00:00","event":"HALT","reason":"execution_failure_Fault"}
{"at":"2026-10-28T10:28:09.296171+00:00","error_type":"Fault","event":"EXECUTION_FAILURE","fault":"entry_or_exit_not_fully_filled"}
{"at":"2026-10-28T10:28:09.296224+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:10.113752+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:10.137147+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_rearm_refuses_unresolved_intent (test_native.ProtocolTests.test_rearm_refuses_unresolved_intent) ... {"at":"2026-10-28T10:28:10.147498+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpudbt2m33"}
{"at":"2026-10-28T10:28:10.180430+00:00","event":"HALT","reason":"test"}
ok
test_rejected_or_stale_bar_cannot_order (test_native.ProtocolTests.test_rejected_or_stale_bar_cannot_order) ... {"at":"2026-10-28T10:28:10.201277+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpxlmn1m2i"}
{"at":"2026-10-28T10:28:10.452125+00:00","event":"HALT","reason":"execution_failure_Fault"}
{"at":"2026-10-28T10:28:10.452193+00:00","error_type":"Fault","event":"EXECUTION_FAILURE","fault":"stale_future_or_invalid_bar"}
{"at":"2026-10-28T10:28:10.452248+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:11.285632+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:11.304870+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_revoked_gate_never_reaches_decide (test_native.ProtocolTests.test_revoked_gate_never_reaches_decide) ... {"at":"2026-10-28T10:28:11.315573+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpopej2xyy"}
{"at":"2026-10-28T10:28:11.596993+00:00","event":"HALT","reason":"execution_failure_AuthenticationFailed"}
{"at":"2026-10-28T10:28:11.597068+00:00","error_type":"AuthenticationFailed","event":"EXECUTION_FAILURE","fault":"internal_error"}
{"at":"2026-10-28T10:28:11.597127+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:12.423676+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:12.424604+00:00","event":"LIQUIDATION_UNCONFIRMED","stage":"cancel_open_orders"}
ok
test_risk_cancels_inflight_strategy_order_before_waiting_for_gate (test_native.ProtocolTests.test_risk_cancels_inflight_strategy_order_before_waiting_for_gate) ... {"at":"2026-10-28T10:28:12.439582+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpqu59v1pa"}
{"at":"2026-10-28T10:28:13.523017+00:00","event":"HALT","reason":"equity_below_floor"}
{"at":"2026-10-28T10:28:13.709058+00:00","event":"LIQUIDATION_CONFIRMED"}
{"at":"2026-10-28T10:28:13.730359+00:00","event":"HALT","reason":"execution_failure_Fault"}
{"at":"2026-10-28T10:28:13.730434+00:00","error_type":"Fault","event":"EXECUTION_FAILURE","fault":"entry_or_exit_not_fully_filled"}
{"at":"2026-10-28T10:28:13.730523+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:13.731155+00:00","event":"HALT","reason":"session_shutdown"}
{"at":"2026-10-28T10:28:13.748727+00:00","event":"LIQUIDATION_CONFIRMED"}
ok
test_risk_worker_samples_without_strategy_loop (test_native.ProtocolTests.test_risk_worker_samples_without_strategy_loop) ... {"at":"2026-10-28T10:28:13.769170+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpifu_5jte"}
ok
test_unknown_sell_is_never_blindly_duplicated (test_native.ProtocolTests.test_unknown_sell_is_never_blindly_duplicated) ... {"at":"2026-10-28T10:28:16.864717+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpuzzzv7zp"}
{"at":"2026-10-28T10:28:16.919261+00:00","event":"HALT","reason":"synthetic_unknown_sell"}
{"at":"2026-10-28T10:28:16.926640+00:00","error_type":"Fault","event":"LIQUIDATION_UNCONFIRMED"}
ok
test_unknown_submission_recovered_without_resubmission (test_native.ProtocolTests.test_unknown_submission_recovered_without_resubmission) ... {"at":"2026-10-28T10:28:16.937867+00:00","event":"PROJECT_INITIALIZED","policy":"empty_INDPRO_means_HOLD","project":"/tmp/tmpyfxeolpd"}
ok

----------------------------------------------------------------------
Ran 71 tests in 28.873s

OK
