feat(resources): implement VirtualResource type for logical resource grouping #10138

Open
opened 2026-04-17 03:55:57 +00:00 by HAL9000 · 0 comments
Owner

Background

Virtual resources allow users to define logical groupings of other resources without a physical backing. This is useful for representing abstract concepts like "the production environment" or "the data pipeline" as a single resource that actors can reference, while the actual operations are delegated to the constituent physical resources.

Acceptance Criteria

  • VirtualResource dataclass implemented with physical: false field per spec
  • Virtual resources can reference a list of child resource identifiers
  • VirtualResourceHandler delegates operations to child resource handlers
  • resource_kind field uses physical boolean per spec (fixes UAT #5124)
  • Test coverage >= 97%

Metadata

  • Commit Message: feat(resources): implement VirtualResource type for logical resource grouping
  • Branch: feature/v3.6.0/virtual-resource-type
  • Milestone: v3.6.0
  • Ref: #5176 EPIC: Extended Resource Types — Cloud Infrastructure, Database & Virtual Resources (v3.6.0)

Subtasks

  • Define VirtualResource dataclass with physical: false and child resource list
  • Implement VirtualResourceHandler with delegation to child handlers
  • Fix resource_kind field to use physical boolean across all resource types
  • Update resource YAML schema to support virtual resource definition
  • Write unit tests for virtual resource delegation

Definition of Done

  • Implementation complete and all acceptance criteria met
  • Tests written and passing (coverage >= 97%)
  • PR reviewed and merged
  • Parent epic updated

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Background Virtual resources allow users to define logical groupings of other resources without a physical backing. This is useful for representing abstract concepts like "the production environment" or "the data pipeline" as a single resource that actors can reference, while the actual operations are delegated to the constituent physical resources. ## Acceptance Criteria - [ ] `VirtualResource` dataclass implemented with `physical: false` field per spec - [ ] Virtual resources can reference a list of child resource identifiers - [ ] `VirtualResourceHandler` delegates operations to child resource handlers - [ ] `resource_kind` field uses `physical` boolean per spec (fixes UAT #5124) - [ ] Test coverage >= 97% ## Metadata - **Commit Message**: `feat(resources): implement VirtualResource type for logical resource grouping` - **Branch**: `feature/v3.6.0/virtual-resource-type` - **Milestone**: v3.6.0 - **Ref**: #5176 EPIC: Extended Resource Types — Cloud Infrastructure, Database & Virtual Resources (v3.6.0) ## Subtasks - [ ] Define `VirtualResource` dataclass with `physical: false` and child resource list - [ ] Implement `VirtualResourceHandler` with delegation to child handlers - [ ] Fix `resource_kind` field to use `physical` boolean across all resource types - [ ] Update resource YAML schema to support virtual resource definition - [ ] Write unit tests for virtual resource delegation ## Definition of Done - Implementation complete and all acceptance criteria met - Tests written and passing (coverage >= 97%) - PR reviewed and merged - Parent epic updated --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-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#10138
No description provided.