action: Namespaced name regex requires lowercase only, contradicts specification #10536

Open
opened 2026-04-18 17:07:13 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit: Current HEAD
  • Branch: main
  • File: src/cleveragents/action/schema.py
  • Lines: 42

Background and Context

The NAMESPACED_NAME_RE regex pattern at line 42 of src/cleveragents/action/schema.py is more restrictive than the specification defined in docs/specification.md and docs/schema/action.schema.yaml. The regex currently requires lowercase letters only, but the specification allows uppercase letters, causing valid action names to be rejected.

Expected Behavior

The NAMESPACED_NAME_RE regex should accept action names that conform to the specification, including those with uppercase letters. Valid names like "MyNamespace/MyAction" should be accepted, not rejected.

Acceptance Criteria

  • NAMESPACED_NAME_RE regex pattern is updated to match the specification
  • Regex accepts uppercase letters (A-Z) in both namespace and action name parts
  • Regex still rejects invalid patterns (special characters, spaces, etc.)
  • Existing tests pass with the updated regex
  • New tests verify uppercase letters are accepted

Subtasks

  • Review specification in docs/schema/action.schema.yaml and docs/specification.md
  • Update NAMESPACED_NAME_RE pattern at line 42
  • Add test cases for uppercase letters in action names
  • Verify backward compatibility with existing lowercase names

Definition of Done

  • NAMESPACED_NAME_RE regex accepts both uppercase and lowercase letters per specification
  • All existing tests pass
  • New tests verify uppercase letter acceptance
  • Code review approved

Automated by CleverAgents Bot
Agent: new-issue-creator

## Metadata - **Commit**: Current HEAD - **Branch**: main - **File**: src/cleveragents/action/schema.py - **Lines**: 42 ## Background and Context The NAMESPACED_NAME_RE regex pattern at line 42 of src/cleveragents/action/schema.py is more restrictive than the specification defined in docs/specification.md and docs/schema/action.schema.yaml. The regex currently requires lowercase letters only, but the specification allows uppercase letters, causing valid action names to be rejected. ## Expected Behavior The NAMESPACED_NAME_RE regex should accept action names that conform to the specification, including those with uppercase letters. Valid names like "MyNamespace/MyAction" should be accepted, not rejected. ## Acceptance Criteria - [ ] NAMESPACED_NAME_RE regex pattern is updated to match the specification - [ ] Regex accepts uppercase letters (A-Z) in both namespace and action name parts - [ ] Regex still rejects invalid patterns (special characters, spaces, etc.) - [ ] Existing tests pass with the updated regex - [ ] New tests verify uppercase letters are accepted ## Subtasks - [ ] Review specification in docs/schema/action.schema.yaml and docs/specification.md - [ ] Update NAMESPACED_NAME_RE pattern at line 42 - [ ] Add test cases for uppercase letters in action names - [ ] Verify backward compatibility with existing lowercase names ## Definition of Done - NAMESPACED_NAME_RE regex accepts both uppercase and lowercase letters per specification - All existing tests pass - New tests verify uppercase letter acceptance - Code review approved --- **Automated by CleverAgents Bot** Agent: new-issue-creator
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#10536
No description provided.