test_draft_file_operations_and_limits (test_behavior.BehaviorTypestateTests.test_draft_file_operations_and_limits) ... ok
test_draft_manifest_validation (test_behavior.BehaviorTypestateTests.test_draft_manifest_validation) ... ok
test_post_publish_tampering_detected (test_behavior.BehaviorTypestateTests.test_post_publish_tampering_detected) ... ok
test_symlink_rejection (test_behavior.BehaviorTypestateTests.test_symlink_rejection) ... ok
test_typestate_progression (test_behavior.BehaviorTypestateTests.test_typestate_progression) ... ok
test_blocking_sleep_in_hook_times_out_cleanly (test_behavior_adversary.DryRunAdversaryTests.test_blocking_sleep_in_hook_times_out_cleanly) ... ok
test_infinite_loop_in_hook_times_out_cleanly (test_behavior_adversary.DryRunAdversaryTests.test_infinite_loop_in_hook_times_out_cleanly) ... ok
test_invalid_return_types_rejected (test_behavior_adversary.DryRunAdversaryTests.test_invalid_return_types_rejected) ... ok
test_syntax_error_in_hook_rejected (test_behavior_adversary.DryRunAdversaryTests.test_syntax_error_in_hook_rejected) ... ok
test_unhandled_exception_in_hook_rejected (test_behavior_adversary.DryRunAdversaryTests.test_unhandled_exception_in_hook_rejected) ... ok
test_path_traversal_and_absolute_paths (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_path_traversal_and_absolute_paths) ... ok
test_post_publish_tampering_fails_integrity (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_post_publish_tampering_fails_integrity) ... ok
test_single_file_exceeds_max_bytes (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_single_file_exceeds_max_bytes) ... ok
test_snapshot_exceeds_max_files (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_snapshot_exceeds_max_files) ... ok
test_snapshot_total_exceeds_max_bytes (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_snapshot_total_exceeds_max_bytes) ... ok
test_symlink_inside_behavior_directory (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_symlink_inside_behavior_directory) ... ok
test_symlinked_root_directory (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_symlinked_root_directory) ... ok
test_symlinked_subdirectory_inside_behavior (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_symlinked_subdirectory_inside_behavior) ... ok
test_unsupported_file_extensions (test_behavior_adversary.FilesystemBoundsAdversaryTests.test_unsupported_file_extensions) ... ok
test_duplicate_keys_in_manifest (test_behavior_adversary.ManifestAdversaryTests.test_duplicate_keys_in_manifest) ... ok
test_extra_unknown_fields_and_unexpected_slots (test_behavior_adversary.ManifestAdversaryTests.test_extra_unknown_fields_and_unexpected_slots) ... ok
test_invalid_hook_entrypoint_strings (test_behavior_adversary.ManifestAdversaryTests.test_invalid_hook_entrypoint_strings) ... ok
test_malformed_json_syntax (test_behavior_adversary.ManifestAdversaryTests.test_malformed_json_syntax) ... ok
test_missing_manifest (test_behavior_adversary.ManifestAdversaryTests.test_missing_manifest) ... ok
test_missing_required_hook_slots (test_behavior_adversary.ManifestAdversaryTests.test_missing_required_hook_slots) ... ok
test_non_finite_manifest_values (test_behavior_adversary.ManifestAdversaryTests.test_non_finite_manifest_values) ... ok
test_non_integer_versions (test_behavior_adversary.ManifestAdversaryTests.test_non_integer_versions) ... ok
test_unsupported_version_numbers (test_behavior_adversary.ManifestAdversaryTests.test_unsupported_version_numbers) ... ok
test_in_flight_cell_pins_epoch_across_concurrent_activation (test_behavior_adversary.PinningLawAdversaryTests.test_in_flight_cell_pins_epoch_across_concurrent_activation) ... Executing <Task pending name='Task-100' coro=<PinningLawAdversaryTests.test_in_flight_cell_pins_epoch_across_concurrent_activation() running at /Users/dawn/proj/klbr/python/klbr-runtime/tests/test_behavior_adversary.py:645> cb=[_run_until_complete_cb() at /opt/homebrew/Cellar/python@3.14/3.14.7/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/base_events.py:181] created at /opt/homebrew/Cellar/python@3.14/3.14.7/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/runners.py:110> took 0.460 seconds
ok
test_activation_on_nonexistent_session_fails (test_behavior_adversary.SQLiteCasIntegrityAdversaryTests.test_activation_on_nonexistent_session_fails) ... ok
test_concurrent_cas_race_simulation (test_behavior_adversary.SQLiteCasIntegrityAdversaryTests.test_concurrent_cas_race_simulation) ... ok
test_stale_epoch_cas_fails_and_leaves_db_untouched (test_behavior_adversary.SQLiteCasIntegrityAdversaryTests.test_stale_epoch_cas_fails_and_leaves_db_untouched) ... ok
test_cas_conflict_on_nonexistent_session (test_behavior_integration.BehaviorIntegrationTests.test_cas_conflict_on_nonexistent_session) ... ok
test_cas_conflict_on_stale_epoch (test_behavior_integration.BehaviorIntegrationTests.test_cas_conflict_on_stale_epoch) ... ok
test_ephemeral_runner_catches_blocking_sleep (test_behavior_integration.BehaviorIntegrationTests.test_ephemeral_runner_catches_blocking_sleep) ... ok
test_ephemeral_runner_catches_exception_in_hook (test_behavior_integration.BehaviorIntegrationTests.test_ephemeral_runner_catches_exception_in_hook) ... ok
test_ephemeral_runner_catches_infinite_loop (test_behavior_integration.BehaviorIntegrationTests.test_ephemeral_runner_catches_infinite_loop) ... ok
test_ephemeral_runner_catches_invalid_delivery_decision (test_behavior_integration.BehaviorIntegrationTests.test_ephemeral_runner_catches_invalid_delivery_decision) ... ok
test_ephemeral_runner_catches_invalid_return_type (test_behavior_integration.BehaviorIntegrationTests.test_ephemeral_runner_catches_invalid_return_type) ... ok
test_ephemeral_runner_catches_syntax_error (test_behavior_integration.BehaviorIntegrationTests.test_ephemeral_runner_catches_syntax_error) ... ok
test_full_lifecycle_progression (test_behavior_integration.BehaviorIntegrationTests.test_full_lifecycle_progression) ... ok
test_workbench_execution_retains_pinning_across_activation (test_behavior_integration.PinningLawIntegrationTests.test_workbench_execution_retains_pinning_across_activation) ... Executing <Task finished name='Task-245' coro=<PinningLawIntegrationTests.test_workbench_execution_retains_pinning_across_activation() done, defined at /Users/dawn/proj/klbr/python/klbr-runtime/tests/test_behavior_integration.py:216> result=None created at /opt/homebrew/Cellar/python@3.14/3.14.7/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/runners.py:110> took 0.264 seconds
ok
test_duplicate_keys_and_nonfinite_values_rejected (test_contracts.FrameTests.test_duplicate_keys_and_nonfinite_values_rejected) ... ok
test_length_prefix_roundtrip_unicode (test_contracts.FrameTests.test_length_prefix_roundtrip_unicode) ... ok
test_oversize_rejected_before_payload_read (test_contracts.FrameTests.test_oversize_rejected_before_payload_read) ... ok
test_shared_golden_frames (test_contracts.FrameTests.test_shared_golden_frames) ... ok
test_truncated_frames_fail (test_contracts.FrameTests.test_truncated_frames_fail) ... ok
test_burst_has_one_inbox_row_per_input (test_contracts.SchemaTests.test_burst_has_one_inbox_row_per_input) ... ok
test_confirmed_effect_requires_receipt (test_contracts.SchemaTests.test_confirmed_effect_requires_receipt) ... ok
test_dedup_is_by_request_not_message_text (test_contracts.SchemaTests.test_dedup_is_by_request_not_message_text) ... ok
test_foreign_keys_prevent_orphaned_inbox (test_contracts.SchemaTests.test_foreign_keys_prevent_orphaned_inbox) ... ok
test_impossible_ready_with_deadline_is_rejected (test_contracts.SchemaTests.test_impossible_ready_with_deadline_is_rejected) ... ok
test_originals_cannot_be_updated_or_deleted (test_contracts.SchemaTests.test_originals_cannot_be_updated_or_deleted) ... ok
test_publication_transaction_rolls_back_receipt_and_event_together (test_contracts.SchemaTests.test_publication_transaction_rolls_back_receipt_and_event_together) ... ok
test_schema_identity (test_contracts.SchemaTests.test_schema_identity) ... ok
test_source_identity_is_unique_per_session (test_contracts.SchemaTests.test_source_identity_is_unique_per_session) ... ok
test_unfinished_execution_unique_with_independent_sessions (test_contracts.SchemaTests.test_unfinished_execution_unique_with_independent_sessions) ... ok
test_yield_does_not_open_a_second_foreground_slot (test_contracts.SchemaTests.test_yield_does_not_open_a_second_foreground_slot) ... ok
test_behavior_identity_changes_with_source (test_contracts.ValueTests.test_behavior_identity_changes_with_source) ... ok
test_behavior_root_symlinks_rejected (test_contracts.ValueTests.test_behavior_root_symlinks_rejected) ... ok
test_behavior_symlinks_rejected (test_contracts.ValueTests.test_behavior_symlinks_rejected) ... ok
test_decision_shapes_are_explicit (test_contracts.ValueTests.test_decision_shapes_are_explicit) ... ok
test_oversized_behavior_file_rejected (test_contracts.ValueTests.test_oversized_behavior_file_rejected) ... ok
test_shared_behavior_digest (test_contracts.ValueTests.test_shared_behavior_digest) ... ok
test_candidate_syntax_validation (test_maintenance.CandidateWorkspaceTests.test_candidate_syntax_validation) ... ok
test_candidate_validation_produces_validated_candidate (test_maintenance.CandidateWorkspaceTests.test_candidate_validation_produces_validated_candidate) ... ok
test_candidate_workspace_isolation (test_maintenance.CandidateWorkspaceTests.test_candidate_workspace_isolation) ... ok
test_prevent_in_place_production_mutation (test_maintenance.CandidateWorkspaceTests.test_prevent_in_place_production_mutation) ... ok
test_missing_instruction_version_triggers_needs_evidence (test_maintenance.DiagnosticRejectionTests.test_missing_instruction_version_triggers_needs_evidence) ... ok
test_supported_defect_is_validated (test_maintenance.DiagnosticRejectionTests.test_supported_defect_is_validated) ... ok
test_targeted_test_claim_contradiction_rejects_global_ban (test_maintenance.DiagnosticRejectionTests.test_targeted_test_claim_contradiction_rejects_global_ban) ... ok
test_pinning_and_tamper_rejection_preserves_last_good (test_maintenance.HostActivationPinningTests.test_pinning_and_tamper_rejection_preserves_last_good) ... ok
test_execution_scope_with_maintenance_purpose (test_maintenance.RuntimePurposeTests.test_execution_scope_with_maintenance_purpose) ... ok
test_purpose_defaults_to_interactive (test_maintenance.RuntimePurposeTests.test_purpose_defaults_to_interactive) ... ok
test_sync_awaited_mutation_does_not_repeat (test_maintenance.SyncAsyncHandlingTests.test_sync_awaited_mutation_does_not_repeat) ... ok
test_module_constants (test_maintenance.TemplatesTests.test_module_constants) ... ok
test_templates_installed_and_loadable (test_maintenance.TemplatesTests.test_templates_installed_and_loadable) ... ok
test_unknown_template_raises_key_error (test_maintenance.TemplatesTests.test_unknown_template_raises_key_error) ... ok
test_bad_candidate_does_not_affect_existing_worker (test_processes.PolicyProcessTests.test_bad_candidate_does_not_affect_existing_worker) ... ok
test_blocked_policy_does_not_block_workbench_and_can_be_killed (test_processes.PolicyProcessTests.test_blocked_policy_does_not_block_workbench_and_can_be_killed) ... ok
test_editable_defaults_match_attention_contract (test_processes.PolicyProcessTests.test_editable_defaults_match_attention_contract) ... ok
test_hook_cannot_use_workbench_effect_sdk (test_processes.PolicyProcessTests.test_hook_cannot_use_workbench_effect_sdk) ... ok
test_hook_worker_available_while_workbench_cpu_blocked (test_processes.PolicyProcessTests.test_hook_worker_available_while_workbench_cpu_blocked) ... ok
test_replacing_hook_worker_preserves_workbench_heap (test_processes.PolicyProcessTests.test_replacing_hook_worker_preserves_workbench_heap) ... ok
test_send_waits_for_independent_hook_without_circular_wait (test_processes.PolicyProcessTests.test_send_waits_for_independent_hook_without_circular_wait) ... ok
test_wrong_hook_return_is_failure_not_approval (test_processes.PolicyProcessTests.test_wrong_hook_return_is_failure_not_approval) ... ok
test_background_effects_expire_with_originating_cell (test_processes.WorkbenchTests.test_background_effects_expire_with_originating_cell) ... ok
test_background_output_is_not_reattributed_to_next_cell (test_processes.WorkbenchTests.test_background_output_is_not_reattributed_to_next_cell) ... ok
test_catching_yield_does_not_restore_effect_scope (test_processes.WorkbenchTests.test_catching_yield_does_not_restore_effect_scope) ... ok
test_cooperative_interrupt_preserves_globals (test_processes.WorkbenchTests.test_cooperative_interrupt_preserves_globals) ... ok
test_explicit_send_roundtrip (test_processes.WorkbenchTests.test_explicit_send_roundtrip) ... ok
test_future_flags_survive_cells (test_processes.WorkbenchTests.test_future_flags_survive_cells) ... ok
test_host_error_is_inspectable_and_kernel_recovers (test_processes.WorkbenchTests.test_host_error_is_inspectable_and_kernel_recovers) ... ok
test_invalid_wait_values_never_reach_host (test_processes.WorkbenchTests.test_invalid_wait_values_never_reach_host) ... ok
test_late_reply_after_interrupt_is_discarded (test_processes.WorkbenchTests.test_late_reply_after_interrupt_is_discarded) ... ok
test_many_alternating_writes_bound_record_count (test_processes.WorkbenchTests.test_many_alternating_writes_bound_record_count) ... ok
test_native_exit_does_not_claim_completion (test_processes.WorkbenchTests.test_native_exit_does_not_claim_completion) ... ok
test_output_is_bounded_and_truncation_explicit (test_processes.WorkbenchTests.test_output_is_bounded_and_truncation_explicit) ... ok
test_persistent_namespace_and_last_expression (test_processes.WorkbenchTests.test_persistent_namespace_and_last_expression) ... ok
test_print_and_native_stdout_cannot_send_or_forge_control (test_processes.WorkbenchTests.test_print_and_native_stdout_cannot_send_or_forge_control) ... ok
test_stale_generation_is_connection_fatal (test_processes.WorkbenchTests.test_stale_generation_is_connection_fatal) ... ok
test_syntax_and_runtime_errors_do_not_destroy_namespace (test_processes.WorkbenchTests.test_syntax_and_runtime_errors_do_not_destroy_namespace) ... ok
test_top_level_await_and_background_computation (test_processes.WorkbenchTests.test_top_level_await_and_background_computation) ... ok
test_wait_is_terminal_not_a_sleep (test_processes.WorkbenchTests.test_wait_is_terminal_not_a_sleep) ... ok
----------------------------------------------------------------------
Ran 104 tests in 17.915s
OK