UAT: [FA-20] agents info JSON output has flat structure instead of spec-required nested environment/runtime/storage/indexing objects, and missing indexing section #7814

Open
opened 2026-04-12 04:20:50 +00:00 by HAL9000 · 4 comments
Owner

What Was Tested

Code analysis of src/cleveragents/cli/commands/system.py — the build_info_data() function and info command JSON output.

Expected Behavior (from spec)

Per docs/specification.md §agents info, the JSON output data object should be nested:

{
  "data": {
    "environment": {
      "data_dir": "/home/alex/.cleveragents",
      "config": "/home/alex/.cleveragents/config.toml",
      "database": "sqlite:///...",
      "server_mode": "disabled",
      "platform": "Linux 6.8.0 (x86_64)"
    },
    "runtime": {
      "automation": "review",
      "providers": 3,
      "sessions": "2 active",
      "active_plans": 1
    },
    "storage": {
      "cache_mb": 118,
      "logs_mb": 42,
      "backups": 3,
      "db_size_mb": 8
    },
    "indexing": {
      "text_index": "ready",
      "vector_index": "ready",
      "graph_store": "disabled",
      "indexed_files": 1247
    }
  }
}

Actual Behavior

The build_info_data() function at system.py lines 104-156 returns a flat dict:

return {
    "version": __version__,
    "data_dir": str(data_dir),
    "config_path": str(config_path),
    "database": db_url,
    "server_mode": server_mode,
    "platform": ...,
    "automation": settings.default_automation_profile,
    "providers_configured": len(configured_providers),
    "providers": configured_providers,
    "debug_mode": settings.debug_enabled,
    "storage": storage,  # only db_size and logs
}

Specific Divergences

  1. Wrong JSON structure: flat dict instead of nested environment, runtime, storage, indexing sub-objects
  2. Missing indexing section: spec requires text_index, vector_index, graph_store, indexed_files fields
  3. Missing sessions and active_plans in runtime: spec requires these fields
  4. Extra fields not in spec: version, providers, debug_mode are not in the spec JSON output
  5. Field name mismatch: config_path → spec uses config in environment sub-object

Steps to Reproduce

agents --format json info

Expected JSON data to have nested environment, runtime, storage, indexing sub-objects.
Actual JSON data is a flat object with all fields at the top level.

Code Location

src/cleveragents/cli/commands/system.py lines 104-156 (build_info_data function)


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

## What Was Tested Code analysis of `src/cleveragents/cli/commands/system.py` — the `build_info_data()` function and `info` command JSON output. ## Expected Behavior (from spec) Per `docs/specification.md` §agents info, the JSON output `data` object should be nested: ```json { "data": { "environment": { "data_dir": "/home/alex/.cleveragents", "config": "/home/alex/.cleveragents/config.toml", "database": "sqlite:///...", "server_mode": "disabled", "platform": "Linux 6.8.0 (x86_64)" }, "runtime": { "automation": "review", "providers": 3, "sessions": "2 active", "active_plans": 1 }, "storage": { "cache_mb": 118, "logs_mb": 42, "backups": 3, "db_size_mb": 8 }, "indexing": { "text_index": "ready", "vector_index": "ready", "graph_store": "disabled", "indexed_files": 1247 } } } ``` ## Actual Behavior The `build_info_data()` function at `system.py` lines 104-156 returns a **flat** dict: ```python return { "version": __version__, "data_dir": str(data_dir), "config_path": str(config_path), "database": db_url, "server_mode": server_mode, "platform": ..., "automation": settings.default_automation_profile, "providers_configured": len(configured_providers), "providers": configured_providers, "debug_mode": settings.debug_enabled, "storage": storage, # only db_size and logs } ``` ## Specific Divergences 1. **Wrong JSON structure**: flat dict instead of nested `environment`, `runtime`, `storage`, `indexing` sub-objects 2. **Missing `indexing` section**: spec requires `text_index`, `vector_index`, `graph_store`, `indexed_files` fields 3. **Missing `sessions` and `active_plans` in runtime**: spec requires these fields 4. **Extra fields not in spec**: `version`, `providers`, `debug_mode` are not in the spec JSON output 5. **Field name mismatch**: `config_path` → spec uses `config` in `environment` sub-object ## Steps to Reproduce ```bash agents --format json info ``` Expected JSON `data` to have nested `environment`, `runtime`, `storage`, `indexing` sub-objects. Actual JSON `data` is a flat object with all fields at the top level. ## Code Location `src/cleveragents/cli/commands/system.py` lines 104-156 (`build_info_data` function) --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Author
Owner

Label compliance fix applied:

  • Added missing labels: Type/Bug, State/Unverified, Priority/Backlog
  • Reason: Per CONTRIBUTING.md, all issues require State/, Type/, and Priority/* labels

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels: Type/Bug, State/Unverified, Priority/Backlog - Reason: Per CONTRIBUTING.md, all issues require State/*, Type/*, and Priority/* labels --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Author
Owner

Verified — UAT bug: agents info JSON output has wrong structure. Spec violation. MoSCoW: Must-have. Priority: High.


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

✅ **Verified** — UAT bug: agents info JSON output has wrong structure. Spec violation. MoSCoW: Must-have. Priority: High. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: agents info JSON output has wrong structure. Spec violation. MoSCoW: Must-have. Priority: High.


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

✅ **Verified** — UAT bug: agents info JSON output has wrong structure. Spec violation. MoSCoW: Must-have. Priority: High. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: agents info JSON output has wrong structure. Spec violation. MoSCoW: Must-have. Priority: High.


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

✅ **Verified** — UAT bug: agents info JSON output has wrong structure. Spec violation. MoSCoW: Must-have. Priority: High. --- **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#7814
No description provided.