UAT: agents resource type add --update does not overwrite existing type #7953

Open
opened 2026-04-12 08:30:08 +00:00 by HAL9000 · 3 comments
Owner

Summary

  • What was tested: Code analysis of agents resource type add --update
  • Expected behavior: Per docs/specification.md §"agents resource type add" (lines 9881-9892), passing --update must overwrite an existing resource type instead of erroring
  • Actual behavior: CLI implementation prints "Resource type already exists. Update mode is not yet fully supported." and aborts via Typer without updating; the underlying service (ResourceRegistryService.register_type) still rejects duplicates
  • Evidence:
    • CLI: src/cleveragents/cli/commands/resource.py lines 233-245
    • Service: src/cleveragents/application/services/resource_registry_service.py lines 263-270 (raises ValidationError on duplicates)
  • Impact: Cannot update custom resource types to match spec; --update flag is non-functional

Steps to Reproduce

  1. Register a custom resource type via agents resource type add --config <file>
  2. Run the same command again with --update
  3. Observe the CLI abort with the warning above instead of replacing the type

Type/Bug


Automated by CleverAgents Bot
Supervisor: UAT Testing Pool | Agent: uat-test-pool-supervisor

## Summary - **What was tested**: Code analysis of `agents resource type add --update` - **Expected behavior**: Per docs/specification.md §"agents resource type add" (lines 9881-9892), passing `--update` must overwrite an existing resource type instead of erroring - **Actual behavior**: CLI implementation prints "Resource type already exists. Update mode is not yet fully supported." and aborts via Typer without updating; the underlying service (`ResourceRegistryService.register_type`) still rejects duplicates - **Evidence**: - CLI: `src/cleveragents/cli/commands/resource.py` lines 233-245 - Service: `src/cleveragents/application/services/resource_registry_service.py` lines 263-270 (raises ValidationError on duplicates) - **Impact**: Cannot update custom resource types to match spec; `--update` flag is non-functional ## Steps to Reproduce 1. Register a custom resource type via `agents resource type add --config <file>` 2. Run the same command again with `--update` 3. Observe the CLI abort with the warning above instead of replacing the type Type/Bug --- **Automated by CleverAgents Bot** Supervisor: UAT Testing Pool | Agent: uat-test-pool-supervisor
Author
Owner

Verified — UAT bug: --update flag doesn't overwrite existing resource type. MoSCoW: Should-have. Priority: Medium.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Verified** — UAT bug: `--update` flag doesn't overwrite existing resource type. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: --update flag doesn't overwrite existing resource type. MoSCoW: Should-have. Priority: Medium.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Verified** — UAT bug: `--update` flag doesn't overwrite existing resource type. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: --update flag doesn't overwrite existing resource type. MoSCoW: Should-have. Priority: Medium.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Verified** — UAT bug: `--update` flag doesn't overwrite existing resource type. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#7953
No description provided.