test(cli): TDD failing tests for actor list database update (bug #797) #1148
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
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 project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!1148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tdd/m3-actor-list-no-db-update"
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?
Summary
Add TDD tests that prove bug #797 exists: the read-only
agents actor listcommand triggers database writes viaActorRegistry.list_actors()→ensure_built_in_actors()→upsert_actor()andset_default_actor().This is the TDD test-writing phase per the mandatory Bug Fix Workflow (CONTRIBUTING.md). The tests are tagged
@tdd_expected_fail @tdd_bug @tdd_bug_797so they pass CI via the inversion mechanism while the bug remains unfixed. When bug #797 is resolved, the@tdd_expected_failtag will be removed.Closes #841
Changes
Behave BDD Tests
features/tdd_actor_list_no_db_update.feature— Two scenarios proving the bug:upsert_actoris called duringactor list(should not be)set_default_actoris called duringactor list(should not be)features/steps/tdd_actor_list_no_db_update_steps.py— Step definitions usingFakeProviderInfo+make_registry()fromfeatures/mocks/fake_provider.py, patching_get_servicesRobot Framework Integration Tests
robot/tdd_actor_list_no_db_update.robot— Two integration smoke tests with matching assertionsrobot/helper_tdd_actor_list_no_db_update.py— Python helper script following the established dispatcher patternRoot Cause
ActorRegistry.list_actors()unconditionally callsensure_built_in_actors(), which:_actor_service.upsert_actor(...)for each — a database WRITE_actor_service.set_default_actor(...)if no default exists — another WRITEA read-only list command should never trigger writes.
Test Results
nox -e lintnox -e typechecknox -e unit_testsnox -e integration_testsnox -e coverage_reportruff checkruff formatDependency
This TDD test issue blocks bug fix #797. This PR must be merged first so the
@tdd_expected_failtests exist before the fix is implemented.Review: APPROVED
Clean TDD bug-capture test. Tags correct (
@tdd_expected_fail @tdd_bug @tdd_bug_797). Behave scenarios and Robot tests both present. Step definitions fully implemented with real assertions usingunittest.mock.patchto verifyupsert_actor/set_default_actorare not called duringactor list. Small, focused — 4 files, no unrelated changes.00e37f9b6c23df639e64New commits pushed, approval review dismissed automatically according to repository settings
agents actor listshould not cause an update of the database (bug #797) #84123df639e64968f33c17dagents actor listshould not cause an update of the database. #797