UAT: agents project create --format json data schema incorrect — missing paths, defaults, and resources sub-objects #6789

Open
opened 2026-04-10 02:06:10 +00:00 by HAL9000 · 0 comments
Owner

What Was Tested

agents project create <NAME> --format json — the JSON data object schema.

Expected Behavior (from spec §agents project create)

The spec defines the following JSON output structure:

{
  "command": "agents project create --description \"Backend API\" local/api-service",
  "status": "ok",
  "exit_code": 0,
  "data": {
    "project": {
      "name": "local/api-service",
      "description": "Backend API",
      "type": "local",
      "created": "2026-02-08T12:46:00Z"
    },
    "paths": {
      "root": "/repos/api-service",
      "data_dir": "/repos/api-service/.cleveragents"
    },
    "defaults": {
      "sandbox": "git_worktree",
      "validations": 0,
      "context_filters": null,
      "automation_profile": null
    },
    "resources": {
      "total": 0,
      "indexed": 0,
      "sandboxable": 0
    }
  },
  "timing": { "duration_ms": 85 },
  "messages": [{ "level": "ok", "text": "Project created" }]
}

Actual Behavior

The code in src/cleveragents/cli/commands/project.py (create() command) passes _project_spec_dict() output to format_output(), yielding:

{
  "command": "",
  "status": "ok",
  "exit_code": 0,
  "data": {
    "namespaced_name": "local/api-service",
    "namespace": "local",
    "name": "api-service",
    "description": "Backend API",
    "linked_resources": [],
    "created_at": "...",
    "updated_at": "..."
  },
  ...
}

The actual output is missing:

  • The paths sub-object (root, data_dir)
  • The defaults sub-object (sandbox, validations, context_filters, automation_profile)
  • The resources sub-object (total, indexed, sandboxable)
  • data.project nesting — instead project fields are exposed flat in data
  • The project.type field
  • project.created using ISO format (has created_at instead)

Steps to Reproduce

agents project create --description "Test" local/test-proj --format json

Compare the output structure against the spec's §agents project create JSON example.

Affected File

src/cleveragents/cli/commands/project.pycreate() command and _project_spec_dict() function


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

## What Was Tested `agents project create <NAME> --format json` — the JSON `data` object schema. ## Expected Behavior (from spec §agents project create) The spec defines the following JSON output structure: ```json { "command": "agents project create --description \"Backend API\" local/api-service", "status": "ok", "exit_code": 0, "data": { "project": { "name": "local/api-service", "description": "Backend API", "type": "local", "created": "2026-02-08T12:46:00Z" }, "paths": { "root": "/repos/api-service", "data_dir": "/repos/api-service/.cleveragents" }, "defaults": { "sandbox": "git_worktree", "validations": 0, "context_filters": null, "automation_profile": null }, "resources": { "total": 0, "indexed": 0, "sandboxable": 0 } }, "timing": { "duration_ms": 85 }, "messages": [{ "level": "ok", "text": "Project created" }] } ``` ## Actual Behavior The code in `src/cleveragents/cli/commands/project.py` (`create()` command) passes `_project_spec_dict()` output to `format_output()`, yielding: ```json { "command": "", "status": "ok", "exit_code": 0, "data": { "namespaced_name": "local/api-service", "namespace": "local", "name": "api-service", "description": "Backend API", "linked_resources": [], "created_at": "...", "updated_at": "..." }, ... } ``` The actual output is missing: - The `paths` sub-object (`root`, `data_dir`) - The `defaults` sub-object (`sandbox`, `validations`, `context_filters`, `automation_profile`) - The `resources` sub-object (`total`, `indexed`, `sandboxable`) - `data.project` nesting — instead `project` fields are exposed flat in `data` - The `project.type` field - `project.created` using ISO format (has `created_at` instead) ## Steps to Reproduce ```bash agents project create --description "Test" local/test-proj --format json ``` Compare the output structure against the spec's §agents project create JSON example. ## Affected File `src/cleveragents/cli/commands/project.py` — `create()` command and `_project_spec_dict()` function --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.4.0 milestone 2026-04-10 02:06:16 +00:00
HAL9000 self-assigned this 2026-04-10 06:07:06 +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#6789
No description provided.