UAT: Action schema rejects dict arguments and safety_profile #6877

Open
opened 2026-04-10 04:32:20 +00:00 by HAL9000 · 0 comments
Owner

Summary

  • agents action create rejects spec-compliant action configs that declare a dict argument type or safety_profile
  • The Action YAML schema only allows string|integer|float|boolean|list argument types and forbids the safety_profile field entirely
  • This blocks authoring actions that follow the published Action Management specification

Steps to Reproduce

  1. Save the following config to /tmp/test_action.yaml:
    name: local/test-action
    description: A test action for UAT
    definition_of_done: Test completed successfully
    strategy_actor: anthropic/claude-opus-4-5
    execution_actor: anthropic/claude-opus-4-5
    arguments:
      - name: metadata
        type: dict
        required: false
        default: {}
    safety_profile:
      risk_tolerance: low
      max_budget_usd: 100
      sandbox: true
    
  2. Run uv run agents action create --config /tmp/test_action.yaml

Expected Behavior

  • The CLI should accept the config because the Action spec allows dict arguments and safety_profile
  • The action should be created with those fields stored on the action record

Actual Behavior

  • The CLI aborts with schema validation errors: Invalid argument type 'dict' and safety_profile: Extra inputs are not permitted
  • Actions cannot be created with the documented schema fields

Evidence

  • CLI output:
    Schema validation error: 7 validation errors for ActionConfigSchema
    arguments.1.type
      Value error, Invalid argument type 'dict'. Allowed types: boolean, float, integer, list, string.
    ...
    safety_profile
      Extra inputs are not permitted
    
  • Implementation hard-codes the allowed argument types to {"string", "integer", "float", "boolean", "list"} and never defines safety_profile in the schema (see src/cleveragents/action/schema.py, lines 52-139)

Environment

  • Repo: cleveragents/cleveragents-core (latest main)
  • Command: uv run agents action create --config /tmp/test_action.yaml

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Summary - `agents action create` rejects spec-compliant action configs that declare a `dict` argument type or `safety_profile` - The Action YAML schema only allows `string|integer|float|boolean|list` argument types and forbids the `safety_profile` field entirely - This blocks authoring actions that follow the published Action Management specification ## Steps to Reproduce 1. Save the following config to `/tmp/test_action.yaml`: ```yaml name: local/test-action description: A test action for UAT definition_of_done: Test completed successfully strategy_actor: anthropic/claude-opus-4-5 execution_actor: anthropic/claude-opus-4-5 arguments: - name: metadata type: dict required: false default: {} safety_profile: risk_tolerance: low max_budget_usd: 100 sandbox: true ``` 2. Run `uv run agents action create --config /tmp/test_action.yaml` ## Expected Behavior - The CLI should accept the config because the Action spec allows `dict` arguments and `safety_profile` - The action should be created with those fields stored on the action record ## Actual Behavior - The CLI aborts with schema validation errors: `Invalid argument type 'dict'` and `safety_profile: Extra inputs are not permitted` - Actions cannot be created with the documented schema fields ## Evidence - CLI output: ``` Schema validation error: 7 validation errors for ActionConfigSchema arguments.1.type Value error, Invalid argument type 'dict'. Allowed types: boolean, float, integer, list, string. ... safety_profile Extra inputs are not permitted ``` - Implementation hard-codes the allowed argument types to `{"string", "integer", "float", "boolean", "list"}` and never defines `safety_profile` in the schema (see `src/cleveragents/action/schema.py`, lines 52-139) ## Environment - Repo: cleveragents/cleveragents-core (latest main) - Command: `uv run agents action create --config /tmp/test_action.yaml` --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.4.0 milestone 2026-04-10 04:39:48 +00:00
HAL9000 self-assigned this 2026-04-10 06:06:34 +00:00
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#6877
No description provided.