Orchestrata Ultimate › Tests › Reference › agents › test_constraints

Tests reference — tests/agents/test_constraints.py

Module of tests/agents, split out because the directory page would be too large.

Prose pending.

tests/agents/test_constraints.py

source · 42 tests · 497 lines

Covers: agents.constraints

Kind Name Line Description
function test_constraint_result_has_violations_flag 41
function test_constraint_to_dict_roundtrip_fields 49
function test_default_constraints_provided 69
function test_validate_at_spawn_happy_path 81
function test_validate_at_spawn_missing_alias 89
function test_validate_at_spawn_cpu_exceeded 97
function test_validate_at_spawn_memory_exceeded 104
function test_validate_at_spawn_depth_exceeded 111
function test_validate_at_spawn_all_violations 120
function test_validate_at_spawn_with_prolog_allowed 127
function test_validate_at_spawn_with_prolog_denied 133
function test_validate_at_spawn_with_prolog_exception 141
function test_validate_at_spawn_uses_type_from_definition 148
function test_validate_at_runtime_without_prolog_allows 162
function test_validate_at_runtime_with_prolog_allowed 168
function test_validate_at_runtime_with_prolog_denied_flags_violation 174
function test_validate_at_runtime_with_prolog_exception_denies 190
function test_validate_at_runtime_severity_bubbles_critical 197
function test_validate_at_runtime_severity_warning_only 223
function test_validate_at_runtime_severity_error_beats_warning 249
function test_validate_at_runtime_skips_non_runtime_scope 282
function test_validate_at_runtime_includes_all_scope 300
function test_set_and_get_constraints 329
function test_get_constraints_defaults_for_unknown_agent 338
function test_get_default_constraints_returns_copy 344
function test_agent_specific_constraints_used_at_runtime 353
function test_fact_visibility_own_scope 385
function test_fact_visibility_session 390
function test_fact_visibility_global 395
function test_fact_visibility_other_denied 400
function test_check_scope_ok_without_prolog 410
function test_check_scope_denied_via_prolog 415
function test_resource_limits_within_bounds 432
function test_resource_limits_cpu_over 437
function test_resource_limits_memory_over 442
function test_resource_limits_with_prolog_allowed 447
function test_resource_limits_with_prolog_denied 452
function test_resource_limits_with_prolog_exception 458
function test_check_constraint_default_allows_without_prolog 469
function test_check_constraint_prolog_allows 475
function test_check_constraint_prolog_denies 481
function test_check_constraint_prolog_exception_denies 494