TDD: Executor never calls AgentFactory.validate_configuration(), so malformed agents.<name> entries fail silently #124
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#122 Executor never calls AgentFactory.validate_configuration(), so malformed agents.<name> entries fail silently
cleveragents/cleveractors-core
#127 test(runtime): add failing regression test for executor skipping agent-configuration validation (#122)
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#124
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
test(runtime): add failing regression test for executor skipping agent-configuration validation (#122)tdd/m1-executor-validate-configurationBackground and context
Companion TDD issue for #122 ("Executor never calls
AgentFactory.validate_configuration(), so malformedagents.<name>entries fail silently"). Per this project's mandatory Bug Fix TDD workflow, a failing Behave scenario proving the bug exists must be written and merged tomasterbefore any fix is implemented on abugfix/branch for #122.Current behavior
No Behave scenario exists that proves
Executor.__init__(orcreate_executor) accepts a malformedagents.<name>entry (missing the"type"key, or a non-mapping value) without raising aConfigurationErrorbefore agent creation.Expected behavior
A Behave scenario exists, tagged
@tdd_issue @tdd_issue_122 @tdd_expected_fail, that:create_executor(or constructs anExecutordirectly) with a config containing anagents.<name>entry that is not a mapping, or is missing the required"type"key.ConfigurationErrornaming the offending agent, before any credential or provider lookup is attempted.@tdd_expected_failtag inverts the result, per this project's TDD tag rules.AssertionErroronly — neverValueError,RuntimeError, or any other exception type — so the TDD CI hook inverts it correctly.Acceptance criteria
@tdd_issue,@tdd_issue_122,@tdd_expected_fail.AssertionErroronly.@tdd_expected_failremoved locally fails against currentmaster, confirming the bug is genuinely reproduced.nox -s unit_testsis green (CI passes via the@tdd_expected_failinversion).nox -s coverage_report).mastervia its own PR before work begins on #122's fix.Supporting information
cleveractors.runtime.Executor.__init__/create_executor,cleveractors.agents.factory.AgentFactory.validate_configuration,cleveractors.core.application.ReactiveCleverAgentsApp.load_configuration.Subtasks
features/*.featurefile covering executor/runtime construction, or a new one only if none exists) that constructs anExecutor/create_executorwith a malformedagents.<name>entry.features/steps/*_steps.pyfile where one already covers executor construction rather than creating a new file.@tdd_issue @tdd_issue_122 @tdd_expected_fail.@tdd_expected_failis removed locally (proving the bug), and passes CI with the tag in place.nox -s coverage_report.nox(all default sessions), fix any errors.Definition of Done
This issue is complete when:
master, reviewed, and merged.