test(validation): add semantic validation suites #510
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!510
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/m6-validation-semantic"
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 comprehensive semantic validation test suites covering five new fixture categories, expanding BDD, Robot Framework, and ASV benchmark coverage for the semantic validation subsystem.
Closes #316
Changes
Fixture Files (5 new JSON files)
features/fixtures/validation/language_porting_mismatches.json— 8 fixtures for porting mismatch patternsfeatures/fixtures/validation/dependency_graph_violations.json— 6 fixtures for dependency violation patternsfeatures/fixtures/validation/api_surface_changes.json— 8 fixtures for API surface change patternsfeatures/fixtures/validation/cross_file_symbols.json— 6 fixtures for cross-file symbol resolutionfeatures/fixtures/validation/circular_import_detection.json— 5 fixtures for circular import patternsBDD Tests (38 new scenarios)
features/semantic_validation_suite.feature— 33 per-fixture scenarios testing all six built-in rules against fixture-driven inputs, plus 5 schema-validation scenarios for fixture loading verificationfeatures/steps/semantic_validation_suite_steps.py— Step definitions with fixture loading, rule dispatch, and assertion logicRobot Framework Integration Tests (11 new test cases)
robot/semantic_validation_suite.robot— End-to-end rule execution tests via SemanticValidationServicerobot/helper_semantic_validation_suite.py— Python helper for Robot test keyword implementationsASV Benchmarks (6 suites)
benchmarks/semantic_validation_suite_bench.py— Performance baselines for batch validation throughput and per-rule latencyDocumentation
docs/reference/semantic_validation_coverage.md— Coverage expectations and fixture category documentationVerification
All 11 nox sessions pass:
Dependencies
2e5c28b922b0ce0972dfReview — PR #510
test(validation): add semantic validation suitesVerdict: Approve with comments
Well-structured testing PR. The centralized
suite_helpers.pyshared across Behave, Robot, and ASV is clean and DRY. Fixtures use a proper JSON schema with validation, known-limitation scenarios are explicitly documented with dedicated fixtures, type annotations are present throughout, and the commit message correctly references issue #316. All 11 nox sessions reported green at ≥97% coverage.P2:should-fix
1. PR label mismatch
The PR carries
Type/Featurebut the linked issue #316 is labelledType/Testing. This is a test-only change with no production code — please update the PR label toType/Testing.2. Fixture counts in PR description are incorrect
Three of the five suite counts listed in the PR body do not match the actual fixture files:
Dependency graph (6) and circular import (5) are correct.
3. Documentation scenario count off by one
docs/reference/semantic_validation_coverage.mdstates "39 scenarios" but the feature file (features/semantic_validation_suite.feature) contains 38 scenarios (33 per-fixture + 5 schema-validation).P3:nit
4. "33 new scenarios" in PR body understates the total
The PR body says "33 new scenarios" — this only counts the per-fixture scenarios. The actual total is 38 when including the 5 schema-validation scenarios defined in the same feature file.
Per the review playbook, P2 items may be addressed in a follow-up PR within 3 days. No P0 or P1 findings.
b0ce0972df17d931c5d2New commits pushed, approval review dismissed automatically according to repository settings
Approved.
17d931c5d27e6f6fae37