test: add TDD bug-capture test for #986 — CorrectionService checkpoint_service wiring #1108
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!1108
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tdd/m4-correction-checkpoint-wiring"
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 a Behave TDD bug-capture test that proves bug #986 exists: the DI container registers
CorrectionServicewithout wiringcheckpoint_service, causing revert-mode corrections to silently skip checkpoint rollback.Changes
features/tdd_correction_checkpoint_wiring.feature: Two scenarios tagged@tdd_expected_fail @tdd_bug @tdd_bug_986 @mock_only:CorrectionServicefrom a fresh DI container and asserts_checkpoint_service is not NoneCheckpointServiceinstancefeatures/steps/tdd_correction_checkpoint_wiring_steps.py: Step definitions usingget_container()/reset_container()with an in-memory SQLite database to test container wiring in isolationHow It Works
Both assertions currently fail (proving the bug exists). The
@tdd_expected_failtag inverts the result so CI reports them as passed. When bug #986 is fixed by addingcheckpoint_service=checkpoint_serviceto the container'scorrection_serviceprovider, both assertions will pass, and the@tdd_expected_failtag must be removed per the TDD bug workflow (CONTRIBUTING.md > Bug Fix Workflow).Quality Gates
Closes #1030
Review: APPROVED
Clean, well-structured TDD bug-capture PR. All conventions are followed correctly:
@tdd_expected_fail @tdd_bug @tdd_bug_986present at Feature leveltdd/m4-correction-checkpoint-wiringcorrectly matches milestone M4 (v3.3.0)features/, steps infeatures/steps/tdd_correction_checkpoint_wiring_steps.pymatches the feature fileCloses #1030present in bodyThe
tccwstep prefix is a pragmatic collision-avoidance approach. While it makes the Gherkin read slightly less naturally, it's an acceptable tradeoff given the large number of step definitions in this project.Day 43 Review — PR #1108
test: TDD for #986 — CorrectionService checkpoint wiringVerdict: APPROVED
TDD Verification
This is a TDD PR capturing bug #986. Standard TDD review checklist:
@tdd_bug,@tdd_bug_986,@tdd_expected_fail)test:prefixThe PR is mergeable with no conflicts. Once merged, the corresponding bug fix branch can be created from
master.@hamza.khyari — Please review and approve for second approval.
Review: APPROVED
TDD tags correct (
@tdd_bug @tdd_bug_986 @tdd_expected_fail). Smallest TDD PR in the batch (103 lines, 2 files). Behave steps fully implemented for CorrectionService checkpoint_service wiring bug.Note
Missing Robot Framework integration tests. Consider adding in a follow-up for consistency.