Compare commits

...

6 Commits

Author SHA1 Message Date
controller-ci-rerun f233bbf18c chore: re-trigger CI [controller]
CI / lint (pull_request) Successful in 41s
CI / typecheck (pull_request) Successful in 1m7s
CI / security (pull_request) Successful in 1m17s
CI / quality (pull_request) Successful in 55s
CI / integration_tests (pull_request) Failing after 6m57s
CI / unit_tests (pull_request) Failing after 9m45s
CI / docker (pull_request) Has been skipped
CI / build (pull_request) Successful in 37s
CI / helm (pull_request) Successful in 29s
CI / e2e_tests (pull_request) Successful in 4m30s
CI / push-validation (pull_request) Successful in 21s
CI / coverage (pull_request) Successful in 13m25s
CI / status-check (pull_request) Failing after 3s
2026-06-11 14:18:31 -04:00
CleverAgents Bot 0d6148f33a ci: stop master workflow on PR updates
CI / lint (pull_request) Has been cancelled
CI / typecheck (pull_request) Has been cancelled
CI / security (pull_request) Has been cancelled
CI / quality (pull_request) Has been cancelled
CI / unit_tests (pull_request) Has been cancelled
CI / integration_tests (pull_request) Has been cancelled
CI / e2e_tests (pull_request) Has been cancelled
CI / coverage (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
CI / helm (pull_request) Has been cancelled
CI / push-validation (pull_request) Has been cancelled
CI / status-check (pull_request) Has been cancelled
Remove the stale pull_request trigger from master.yml so PR branch commits do not launch the master workflow.

Maintenance patch for PR #11178.
2026-06-10 20:26:21 -04:00
HAL9000 dc8e570b53 fix(cli): resolve issue #1500 - actor add --update flag enforcement
CI / lint (pull_request) Successful in 1m6s
CI / quality (pull_request) Successful in 1m25s
CI / typecheck (pull_request) Successful in 1m35s
CI / security (pull_request) Successful in 1m32s
CI / helm (pull_request) Successful in 44s
CI / build (pull_request) Successful in 53s
CI / push-validation (pull_request) Successful in 42s
CI / e2e_tests (pull_request) Successful in 4m13s
CI / benchmark-publish (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 11m42s
CI / unit_tests (pull_request) Successful in 13m15s
CI / docker (pull_request) Successful in 2m40s
CI / coverage (pull_request) Successful in 23m50s
CI / status-check (pull_request) Successful in 3s
CI / benchmark-regression (pull_request) Successful in 1h3m57s
The @tdd_issue_1500 tags were corrected from @tdd_issue_2609 in all four
BDD scenarios of features/actor_add_update_enforcement.feature, ensuring
proper TDD regression tracking for the closed issue. The docstring in the
step definitions and the feature file header comment were also updated to
reference only #1500 (removing stale #2609 reference).

Additionally, fixed CONTRIBUTORS.md formatting: two bullet entries that had
been fused on a single line were separated onto their own lines with proper
"* " bullet markers, so the rendered output correctly displays both contributions.

ISSUES CLOSED: #1500
2026-05-12 23:44:40 +00:00
HAL9000 fac6fffbf0 chore(docs): add #1500 entry to CHANGELOG.md and CONTRIBUTORS.md
CI / benchmark-publish (pull_request) Has been skipped
CI / push-validation (pull_request) Successful in 46s
CI / helm (pull_request) Successful in 59s
CI / build (pull_request) Successful in 1m17s
CI / lint (pull_request) Successful in 1m27s
CI / quality (pull_request) Successful in 1m44s
CI / typecheck (pull_request) Successful in 1m49s
CI / security (pull_request) Successful in 1m54s
CI / integration_tests (pull_request) Successful in 3m48s
CI / e2e_tests (pull_request) Successful in 4m50s
CI / unit_tests (pull_request) Successful in 4m51s
CI / docker (pull_request) Successful in 1m37s
CI / coverage (pull_request) Successful in 12m16s
CI / status-check (pull_request) Successful in 3s
CI / benchmark-regression (pull_request) Successful in 1h4m2s
- Added CHANGELOG.md entry under [Unreleased]/Fixed for actor add --update flag enforcement (#1500)
- Updated CONTRIBUTORS.md with HAL 9000 contribution detail for issue #1500 BDD coverage
ISSUES CLOSED: #1500
2026-05-07 05:32:27 +00:00
HAL9000 ebfe1eadb0 fix(cli): resolve PR #1513 review blockers — fix actor add --update enforcement tests
CI / typecheck (pull_request) Failing after 0s
CI / integration_tests (pull_request) Failing after 0s
CI / unit_tests (pull_request) Failing after 1s
CI / build (pull_request) Failing after 0s
CI / lint (pull_request) Successful in 52s
CI / quality (pull_request) Successful in 1m15s
CI / security (pull_request) Successful in 1m19s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / helm (pull_request) Failing after 0s
CI / benchmark-publish (pull_request) Has been skipped
CI / push-validation (pull_request) Successful in 22s
CI / e2e_tests (pull_request) Successful in 4m35s
CI / status-check (pull_request) Failing after 0s
CI / benchmark-regression (pull_request) Failing after 1h0m1s
Remove @tdd_expected_fail tags from actor_add_update_enforcement.feature and
fix step invocations to use the new positional NAME argument signature for
agents actor add. The fix for issue #1500 is already on master; these tests
were failing only because they used the old command signature (without NAME).

ISSUES CLOSED: #1500
2026-04-24 23:18:47 +00:00
freemo aea01a8f41 fix(v3.7.0): resolve issue #1500 2026-04-24 22:25:20 +00:00
5 changed files with 27 additions and 11 deletions
-2
View File
@@ -3,8 +3,6 @@ name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
vars:
docker_prefix: "http://harbor.cleverthis.com/docker/"
+4
View File
@@ -5,6 +5,10 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
### Fixed
- **`agents actor add` enforces `--update` flag for existing actors** (#1500): Added regression tests to `features/actor_add_update_enforcement.feature` and step definitions in `features/steps/actor_add_update_enforcement_steps.py` verifying that re-adding an existing actor without `--update` fails, while re-adding with `--update` succeeds.
### Changed
- **Diagnostics spec examples expanded to all 9 providers** (#5320): Updated the
+2
View File
@@ -21,6 +21,8 @@ Below are some of the specific details of various contributions.
* HAL 9000 has contributed the plugin entry point security hardening fix (#7476): enforced entry point allowlist validation before importing plugin modules to prevent malicious plugin loading.
* HAL 9000 has contributed the benchmark workflow separation (#9040): moved the benchmark-regression job out of the default PR workflow into a dedicated scheduled workflow, reducing median PR CI turnaround time from 99-132 minutes to under 30 minutes.
* HAL 9000 has contributed automated bug fixes, security improvements, and migration safety enhancements including the migration prompt safe-default fix (#7503).
* HAL 9000 has contributed the actor add --update flag enforcement tests and BDD coverage for issue #1500: added regression scenario tests verifying that re-adding an existing actor without `--update` fails, while re-adding with `--update` succeeds.
* This project was made possible thanks to considerable donation of time, money, and resources by CleverThis, Inc.
* HAL 9000 has contributed automated bug fixes, CLI output formatting improvements, and ongoing maintenance as part of the CleverAgents automation system.
* HAL 9000 has contributed the file edit encoding parameter fix (PR #8258 / issue #7559).
@@ -1,11 +1,11 @@
# Regression tests for bug #2609: actor add must reject re-adding an existing
# actor unless --update is provided.
# Regression tests for bug #1500: actor add must reject re-adding an
# existing actor unless --update is provided.
Feature: agents actor add enforces --update flag for existing actors
As a user of the CleverAgents CLI
I want `agents actor add` to fail with a clear error when re-adding an existing actor
So that I cannot accidentally overwrite actor configurations without explicit intent
@tdd_issue @tdd_issue_2609 @tdd_expected_fail @tdd_issue_4178
@tdd_issue @tdd_issue_1500
Scenario: Re-adding an existing actor without --update fails with error panel
Given an actor add CLI runner where the actor already exists
When I run actor add without the --update flag
@@ -14,7 +14,7 @@ Feature: agents actor add enforces --update flag for existing actors
And the actor-add-enforcement output should contain "Use --update to replace the existing actor definition"
And the actor-add-enforcement output should contain the registration timestamp
@tdd_issue @tdd_issue_2609 @tdd_expected_fail @tdd_issue_4178
@tdd_issue @tdd_issue_1500
Scenario: Re-adding an existing actor without --update shows error status line
Given an actor add CLI runner where the actor already exists
When I run actor add without the --update flag
@@ -22,14 +22,14 @@ Feature: agents actor add enforces --update flag for existing actors
And the actor-add-enforcement output should contain "Actor already registered"
And the actor-add-enforcement output should contain "use --update to replace"
@tdd_issue @tdd_issue_2609 @tdd_expected_fail @tdd_issue_4178
@tdd_issue @tdd_issue_1500
Scenario: Re-adding an existing actor with --update succeeds
Given an actor add CLI runner where the actor already exists
When I run actor add with the --update flag
Then the actor-add-enforcement exit code should be 0
And the actor-add-enforcement output should contain "Actor updated"
@tdd_issue @tdd_issue_2609 @tdd_expected_fail @tdd_issue_4178
@tdd_issue @tdd_issue_1500
Scenario: Adding a new actor without --update succeeds
Given an actor add CLI runner where the actor does not exist
When I run actor add without the --update flag
@@ -1,7 +1,11 @@
"""Step definitions for actor add --update flag enforcement (issue #2609).
"""Step definitions for actor add --update flag enforcement (issue #1500).
Tests that `agents actor add` rejects re-adding an existing actor without
the --update flag, and succeeds when --update is provided.
The ``add`` command requires a positional NAME argument followed by
``--config <FILE>``:
agents actor add <NAME> --config <FILE> [--update]
"""
from __future__ import annotations
@@ -105,9 +109,10 @@ def step_when_add_without_update(context: Any) -> None:
)
registry.upsert_actor.return_value = context.new_actor
mock_svc.return_value = (MagicMock(), registry)
# The add command requires a positional NAME argument before --config
context.result = context.runner.invoke(
actor_app,
["add", "--config", str(context.actor_config_path)],
["add", context.actor_name, "--config", str(context.actor_config_path)],
)
@@ -120,9 +125,16 @@ def step_when_add_with_update(context: Any) -> None:
# upsert_actor returns the updated actor
registry.upsert_actor.return_value = context.updated_actor
mock_svc.return_value = (MagicMock(), registry)
# The add command requires a positional NAME argument before --config
context.result = context.runner.invoke(
actor_app,
["add", "--config", str(context.actor_config_path), "--update"],
[
"add",
context.actor_name,
"--config",
str(context.actor_config_path),
"--update",
],
)