Files
cleveragents-core/features/context_policy_strategy_config.feature
T

62 lines
2.4 KiB
Gherkin

@context_policy @strategy_configuration
Feature: Context Policy Strategy Configuration
As a CleverAgents developer
I want to configure context assembly strategies in context policy YAML
So that I can control how context is assembled during ACMS phases
Scenario: Create context policy with basic strategy
Given a context policy with strategy "basic"
When I validate the context policy
Then the strategy should be "basic"
And the policy should be valid
Scenario: Create context policy with semantic strategy
Given a context policy with strategy "semantic"
When I validate the context policy
Then the strategy should be "semantic"
And the policy should be valid
Scenario: Create context policy with relevance_scoring strategy
Given a context policy with strategy "relevance_scoring"
When I validate the context policy
Then the strategy should be "relevance_scoring"
And the policy should be valid
Scenario: Create context policy with adaptive strategy
Given a context policy with strategy "adaptive"
When I validate the context policy
Then the strategy should be "adaptive"
And the policy should be valid
Scenario: Create context policy with fusion strategy
Given a context policy with strategy "fusion"
When I validate the context policy
Then the strategy should be "fusion"
And the policy should be valid
Scenario: Reject invalid strategy name
Given a context policy with strategy "invalid_strategy"
When I validate the context policy
Then the policy should be invalid
And the strategy error should mention "Invalid strategy"
Scenario: Create context policy with strategy config
Given a context policy with strategy "semantic"
And strategy config with parameter "threshold" set to 0.5
When I validate the context policy
Then the strategy_config should contain "threshold"
And the strategy_config["threshold"] should be 0.5
Scenario: Create context policy without strategy
Given a context policy without strategy
When I validate the context policy
Then the strategy should be None
And the policy should be valid
Scenario: Create context policy with strategy but no config
Given a context policy with strategy "basic"
And no strategy config
When I validate the context policy
Then the strategy_config should be None
And the policy should be valid