Orchestrata Ultimate › Tests › Reference › orchestrator › test_intent_logic_behavioral
Tests reference — tests/orchestrator/test_intent_logic_behavioral.py
Module of tests/orchestrator, split out because the directory page would be too large.
Prose pending.
tests/orchestrator/test_intent_logic_behavioral.py
source · 59 tests · 568 lines
Behavioral tests for intent validation, security, and ambiguity resolution.
Covers: infra.redis_state, orchestrator.ambiguity_resolver, orchestrator.intent_security, orchestrator.intent_types, orchestrator.intent_validator
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestAmbiguityResolver |
43 | |
| method | TestAmbiguityResolver.test_detect_ambiguity_empty |
44 | |
| method | TestAmbiguityResolver.test_detect_ambiguity_single |
50 | |
| method | TestAmbiguityResolver.test_detect_ambiguity_clear_winner |
58 | |
| method | TestAmbiguityResolver.test_detect_ambiguity_ambiguous |
68 | |
| method | TestAmbiguityResolver.test_resolve_no_candidates |
77 | |
| method | TestAmbiguityResolver.test_resolve_clear_winner |
83 | |
| method | TestAmbiguityResolver.test_resolve_context |
90 | |
| method | TestAmbiguityResolver.test_resolve_context_preferred_target |
102 | |
| method | TestAmbiguityResolver.test_resolve_context_no_match |
112 | |
| method | TestAmbiguityResolver.test_resolve_prolog |
123 | Assert real resolve_ambiguity facts; both candidates get boosted |
| method | TestAmbiguityResolver.test_resolve_prolog_clear_gap |
138 | Gap is already >= 0.3 before Prolog is consulted — clear winner. |
| method | TestAmbiguityResolver.test_resolve_best_effort |
148 | |
| method | TestAmbiguityResolver.test_score_candidates |
157 | |
| method | TestAmbiguityResolver.test_ambiguity_result_confidence |
163 | |
| method | TestAmbiguityResolver.test_ambiguity_result_confidence_no_resolved |
168 | |
| method | TestAmbiguityResolver.test_candidate_to_dict |
172 | |
| class | TestIntentValidator |
178 | |
| method | TestIntentValidator.test_validate_structure_missing_id |
186 | |
| method | TestIntentValidator.test_validate_structure_missing_requester |
196 | |
| method | TestIntentValidator.test_validate_structure_invalid_action |
205 | |
| method | TestIntentValidator.test_validate_structure_ok |
217 | |
| method | TestIntentValidator.test_check_security_protected_path |
225 | |
| method | TestIntentValidator.test_check_security_destructive_command |
238 | |
| method | TestIntentValidator.test_check_security_safe |
251 | |
| method | TestIntentValidator.test_check_rate_limit_under_limit |
263 | |
| method | TestIntentValidator.test_check_rate_limit_exceeded |
269 | |
| method | TestIntentValidator.test_validate_full_allowed |
277 | |
| method | TestIntentValidator.test_validate_full_denied_structure |
297 | |
| method | TestIntentValidator.test_validate_full_denied_security |
306 | |
| method | TestIntentValidator.test_evaluate_prolog_allowed |
319 | |
| method | TestIntentValidator.test_evaluate_prolog_denied |
339 | |
| class | TestIntentSecurity |
363 | |
| method | TestIntentSecurity.test_authenticate_disabled |
364 | |
| method | TestIntentSecurity.test_authenticate_empty_token |
370 | |
| method | TestIntentSecurity.test_authenticate_short_token |
376 | |
| method | TestIntentSecurity.test_authenticate_valid_token |
382 | |
| method | TestIntentSecurity.test_set_auth_enabled |
388 | |
| method | TestIntentSecurity.test_authorize_disabled |
393 | |
| method | TestIntentSecurity.test_authorize_no_action |
399 | |
| method | TestIntentSecurity.test_authorize_dangerous_without_prolog |
409 | |
| method | TestIntentSecurity.test_check_injection_empty |
415 | |
| method | TestIntentSecurity.test_check_injection_sql |
421 | |
| method | TestIntentSecurity.test_check_injection_command |
427 | |
| method | TestIntentSecurity.test_check_injection_path_traversal |
433 | |
| method | TestIntentSecurity.test_check_injection_xss |
439 | |
| method | TestIntentSecurity.test_check_injection_ldap |
445 | |
| method | TestIntentSecurity.test_check_injection_safe |
451 | |
| method | TestIntentSecurity.test_sanitize |
457 | |
| method | TestIntentSecurity.test_check_rate_limit_no_redis |
466 | |
| method | TestIntentSecurity.test_is_blacklisted_no_redis |
470 | |
| method | TestIntentSecurity.test_blacklist_no_redis |
474 | |
| method | TestIntentSecurity.test_unblacklist_no_redis |
478 | |
| method | TestIntentSecurity.test_authenticate_blacklisted |
482 | |
| method | TestIntentSecurity.test_check_rate_limit_auth_disabled |
503 | |
| method | TestIntentSecurity.test_check_rate_limit_with_redis |
507 | |
| method | TestIntentSecurity.test_is_blacklisted_exception |
520 | |
| method | TestIntentSecurity.test_authorize_dangerous_with_prolog |
530 | |
| method | TestIntentSecurity.test_authorize_dangerous_prolog_denied |
543 | |
| method | TestIntentSecurity.test_auth_result_defaults |
555 | |
| method | TestIntentSecurity.test_authz_result_defaults |
560 | |
| method | TestIntentSecurity.test_security_result_defaults |
565 |