fix: add required @a2a, @session, @cli tags to BDD feature files
CI / lint (pull_request) Successful in 40s
CI / helm (pull_request) Successful in 38s
CI / build (pull_request) Successful in 48s
CI / quality (pull_request) Successful in 1m0s
CI / typecheck (pull_request) Successful in 1m29s
CI / security (pull_request) Successful in 1m28s
CI / push-validation (pull_request) Successful in 20s
CI / unit_tests (pull_request) Successful in 5m8s
CI / docker (pull_request) Successful in 1m27s
CI / integration_tests (pull_request) Successful in 8m39s
CI / coverage (pull_request) Successful in 11m1s
CI / status-check (pull_request) Successful in 3s

Add domain-scenario Gherkin tags to all A2A, session, and CLI feature
files (30 files) so tests can be filtered individually via behave.

- 8 A2A feature files: @a2a tag
- 7 session feature files: @session tag
- 15 CLI feature files: @cli tag

ISSUES CLOSED: #9124
This commit is contained in:
2026-05-07 08:55:55 +00:00
committed by Forgejo
parent e4206ff425
commit 195fbac109
32 changed files with 33 additions and 0 deletions
+2
View File
@@ -319,6 +319,8 @@ ensuring data is stored with proper parameter values.
`AUTO-REV-SUP` prefix. The agent was already using `AUTO-REV-SUP` in production; this change
aligns the documentation with the actual runtime behaviour.
- **BDD Feature File Tag Coverage** (#9124): Added required `@a2a`, `@session`, and `@cli` Gherkin tags to all A2A, session, and CLI feature files (30 files) to enable tag-based test filtering via `behave --tags=a2a,session,cli`. This restores the ability to selectively run test categories and enables CI to execute targeted test suites without running the full suite.
- **Cross-actor subgraph cycle detection reads actor_ref field** (#1431): Fixed
`_detect_subgraph_cycles()`, `_map_node()`, and the `compile_actor()` main loop
in `src/cleveragents/actor/compiler.py` to read `actor_ref` from the top-level
+1
View File
@@ -65,3 +65,4 @@ Below are some of the specific details of various contributions.
* HAL 9000 has contributed the Definition-of-Done gating feature for the Apply phase (PR #8299 / issue #7927): `PlanLifecycleService.apply_plan` now evaluates DoD criteria before transitioning to Apply, raising `DoDGatingError` when required criteria fail and storing evaluation results in `plan.validation_summary`.
* HAL 9000 has contributed the engine cache TOCTOU race condition fix (PR #8265 / issue #7566): added `MEMORY_ENGINES_LOCK` to `engine_cache.py` and wrapped the check-and-set operation in `UnitOfWork.engine` with `with MEMORY_ENGINES_LOCK:` to prevent concurrent threads from creating duplicate in-memory SQLite engine instances; also fixed a cache-hit bug where `self._engine` was never assigned on a cache hit.
* HAL 9000 has contributed the plan correct JSON output envelope fix (PR #8662 / issue #8584): restructured `agents plan correct --format json` output to nest correction fields under `data.correction` and pass `command="plan correct"` to `format_output`, producing the spec-required CLI envelope. Added three BDD scenarios validating `data.correction.mode` (revert and append modes) and the `command` field.
* HAL 9000 has contributed BDD feature file tag coverage improvements (#9124 / pr #9183): added required `@a2a`, `@session`, and `@cli` Gherkin tags to 30 feature files (8 A2A, 7 session, 15 CLI) to enable selective tag-based test filtering via `behave --tags=a2a,session,cli`.
@@ -1,3 +1,4 @@
@a2a
@mock_only
Feature: A2A CLI facade integration
As a CleverAgents developer
+1
View File
@@ -1,3 +1,4 @@
@a2a
@mock_only
Feature: A2A events module uncovered-line coverage (round 3)
As a CleverAgents developer
+1
View File
@@ -1,3 +1,4 @@
@a2a
@mock_only
Feature: A2A extension method routing via _cleveragents/ prefix
As a CleverAgents developer
+1
View File
@@ -1,3 +1,4 @@
@a2a
Feature: A2A local facade coverage — uncovered handler and edge-case paths
As a developer maintaining the A2A local facade
I want all handler branches and error paths exercised
@@ -1,3 +1,4 @@
@a2a
Feature: A2A local facade coverage boost — uncovered validation paths
As a developer maintaining the A2A local facade
I want all error-handling and validation paths exercised
+1
View File
@@ -1,3 +1,4 @@
@a2a
Feature: A2A local facade wiring to live services
As a client of the A2A local facade
I want operations to route to real application services
+1
View File
@@ -1,3 +1,4 @@
@a2a
Feature: A2A JSON-RPC 2.0 wire format compliance
As a developer maintaining the A2A protocol layer
I want A2aRequest and A2aResponse to use JSON-RPC 2.0 field names
+1
View File
@@ -1,3 +1,4 @@
@a2a
@mock_only
Feature: A2A SSE streaming for task updates and artifacts
As a CleverAgents developer
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CleverAgents CLI metadata
Scenario: Display help
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI consistency and UX polish
As a developer
I want all CLI commands to follow consistent UX patterns
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: Core system commands (version, info, diagnostics)
As a user of CleverAgents
I want version, info, and diagnostics commands
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI Main Coverage
As a developer
I want to ensure the CLI main module is properly tested
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI extensions for plan and action commands
As a developer using the CleverAgents CLI
I want automation profile, invariant, and actor override flags
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: Global --format flag propagation to subcommands
As a developer using the CleverAgents CLI
I want the --format flag to be a global option on the root `agents` command
+1
View File
@@ -1,3 +1,4 @@
@cli
# These tests target bug #522 and are expected to fail until the fix is applied.
#
# NOTE FOR FIX AUTHOR (#522):
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI Command Processing
Scenario: Convert integer exit codes
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI JSON/YAML output envelope structure
As a programmatic consumer of the CleverAgents CLI
I want all --format json and --format yaml outputs to include the spec-required envelope
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI lifecycle command coverage for action and plan commands
As a developer
I want comprehensive CLI coverage for action/plan lifecycle commands
@@ -1,3 +1,4 @@
@cli
Feature: CLI lifecycle Robot alignment
As a developer
I want a Behave scenario mirroring the Robot E2E lifecycle flow
@@ -1,3 +1,4 @@
@cli
Feature: CLI main.py uncovered branches
As a developer
I want to cover the missed branches in cleveragents.cli.main
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: CLI output formats parity
As a developer using the CleverAgents CLI
I want all action and plan commands to support --format json|yaml|plain|table|rich
+1
View File
@@ -1,3 +1,4 @@
@cli
@mock_only
Feature: CLI renderers coverage
Verifies render_error, render_success, render_warning, and render_empty
+1
View File
@@ -1,3 +1,4 @@
@cli
Feature: v2 CLI parity for actor-first surface
As a user migrating v2 flows to the actor-first CLI
I want key CLI behaviors validated
@@ -1,3 +1,4 @@
@session
Feature: Session CLI Coverage Boost
Additional scenarios that exercise previously uncovered code paths
in the session.py CLI commands module.
@@ -1,3 +1,4 @@
@session
Feature: Session CLI uncovered branches
As a developer
I want full branch coverage for session CLI commands
+1
View File
@@ -1,3 +1,4 @@
@session
# Regression tests for bug #570 — verifies that the DI container fix for
# session create command works correctly. The @tdd_expected_fail tags have
# been removed now that the fix has landed.
+1
View File
@@ -1,3 +1,4 @@
@session
# Regression tests for bug #554 — verifies that the DI container fix for
# session list command works correctly. The @tdd_expected_fail tags have
# been removed now that the fix has landed.
@@ -1,3 +1,4 @@
@session
@tdd_issue @tdd_issue_3046 @tdd_expected_fail @tdd_issue_4178
Feature: Session list summary consistency between JSON and rich table output
As a developer
+1
View File
@@ -1,3 +1,4 @@
@session
Feature: Session Persistence and Repositories
As a developer
I want sessions to be persisted to the database
@@ -1,3 +1,4 @@
@session
Feature: PersistentSessionService coverage
Additional scenarios exercising previously uncovered code paths
in session_service.py (lines 97-98, 139-146, 150-151, 217, 248, 310-311).