EPIC: CLI Output Format Compliance — Global Flags, JSON Envelope & Error Responses #5203
Notifications
Due Date
No due date set.
Blocks
Depends on
#4942 LEGENDARY: Decision Intelligence — Plan Decisions, Corrections, Subplans & Checkpoints
cleveragents/cleveragents-core
#4794 UAT: `agents plan execute --format json` hardcodes `sandbox.strategy: "git_worktree"` regardless of actual resource sandbox strategy
cleveragents/cleveragents-core
#5011 UAT: `agents actor remove` missing `--format` option — inconsistent with all other actor subcommands
cleveragents/cleveragents-core
#5024 UAT: `--format` help text inconsistency — `color` format omitted from per-command `_FORMAT_HELP` strings but present in `constants.py`
cleveragents/cleveragents-core
#5030 UAT: `agents skill refresh` command exists in implementation but is not defined in the spec
cleveragents/cleveragents-core
#5033 UAT: `agents skill tools` has undocumented `--refresh` flag not in spec
cleveragents/cleveragents-core
#5043 UAT: `agents tool add` duplicate-tool error output format deviates from spec (plain format uses `[ERROR]` instead of `Error:`)
cleveragents/cleveragents-core
#5077 UAT: `agents actor run` has undocumented `--config` option not in spec — bypasses actor registry
cleveragents/cleveragents-core
#5191 UAT: Global `--format` flag ignored by subcommands — `agents --format json session list` outputs rich table instead of JSON
cleveragents/cleveragents-core
#5192 UAT: Global `--data-dir` and `--config-path` flags not implemented — spec-required global flags raise NoSuchOption error
cleveragents/cleveragents-core
#5193 UAT: Global `-v` verbosity flag not implemented — spec-required repeatable verbosity flag raises NoSuchOption error
cleveragents/cleveragents-core
#5194 UAT: JSON/YAML envelope `command` field is always empty string — spec requires actual command name
cleveragents/cleveragents-core
#5195 UAT: JSON/YAML envelope missing `metadata` field — spec requires top-level `metadata` object in envelope
cleveragents/cleveragents-core
#5196 UAT: JSON/YAML `messages[0].text` is always `"ok"` — spec requires meaningful command-specific message text
cleveragents/cleveragents-core
#5197 UAT: JSON/YAML error responses not structured per spec — errors output plain text to stderr instead of structured JSON envelope
cleveragents/cleveragents-core
#5198 UAT: JSON/YAML envelope `timing.duration_ms` is always 0 — command execution time not measured
cleveragents/cleveragents-core
#5528 UAT: `agents project link-resource` output missing structured Resource Linked panel with Type and Access fields
cleveragents/cleveragents-core
#5534 UAT: `agents project unlink-resource` fails if resource has been deleted — cannot clean up dangling links
cleveragents/cleveragents-core
#5588 UAT: `agents project context set` rich output does not match spec — missing Limits, Summarization, and Other Views panels
cleveragents/cleveragents-core
#5591 UAT: `agents project context inspect` does not return assembled context fragments with UKO URIs — uses stub simulation instead of live ACMS pipeline
cleveragents/cleveragents-core
#5594 UAT: `agents project context simulate` uses stub simulation instead of live ACMS pipeline — does not show token budget breakdown per strategy
cleveragents/cleveragents-core
#5625 UAT: `agents resource type add` output missing "New subcommand available" info message and multi-panel layout
cleveragents/cleveragents-core
#5628 UAT: `agents resource type remove` output missing "Resources Using" count and "Subcommand Removed" panel
cleveragents/cleveragents-core
#5631 UAT: `agents resource type show` output missing "Source" field and "Checkpointable" in sandbox section
cleveragents/cleveragents-core
#5632 UAT: `agents resource type list` missing "✓ OK N resource types listed" success count message
cleveragents/cleveragents-core
#5634 UAT: `agents resource type` JSON/YAML output uses `resource_kind` instead of `physical_virtual` as specified
cleveragents/cleveragents-core
#5730 UAT: Global `-v/--verbose` repeatable flag missing from `main_callback` — spec requires count-based verbosity (ERROR→WARN→INFO→DEBUG→TRACE)
cleveragents/cleveragents-core
#5741 UAT: `CLEVERAGENTS_FORMAT` env var not checked in CLI format resolution — spec-required tier in resolution chain is missing
cleveragents/cleveragents-core
#5743 UAT: `_print_basic_help()` fast-path bypasses Typer and omits global flags (`--format`, `-v`, `--data-dir`, `--config-path`) from help output
cleveragents/cleveragents-core
#5752 UAT: Global `--format/-f` short flag conflicts with `init --force/-f` — ambiguous argument parsing when using `-f` with `init` command
cleveragents/cleveragents-core
#5764 UAT: `agents audit export` command is missing — spec requires JSON/CSV export of audit logs
cleveragents/cleveragents-core
#5891 UAT: `agents session list` missing `--actor` filter option — cannot filter sessions by actor
cleveragents/cleveragents-core
#5902 UAT: `agents session list` truncates session ID to 8 chars — cannot use displayed ID with other commands
cleveragents/cleveragents-core
#5967 UAT: `agents project link-resource` JSON output does not match spec — missing `resource_linked`, `access`, and `indexing` fields
cleveragents/cleveragents-core
#5977 UAT: `agents project link-resource` exposes raw SQLAlchemy `IntegrityError` when resource is already linked
cleveragents/cleveragents-core
#6083 UAT: `agents plan apply` rich output uses generic single panel instead of spec-required multi-panel layout
cleveragents/cleveragents-core
#6095 UAT: `agents plan use`, `plan status`, `plan apply`, and `plan list` JSON/YAML output missing spec-required envelope structure
cleveragents/cleveragents-core
#6100 UAT: `agents plan list` Summary panel missing `Cancelled` count and Filters panel hidden when no filters active
cleveragents/cleveragents-core
#6111 UAT: `agents project create` JSON/YAML output missing spec-required sections — `paths`, `defaults`, `resources` panels absent
cleveragents/cleveragents-core
#6126 UAT: `agents plan execute` rich output uses generic single panel instead of spec-required multi-panel layout
cleveragents/cleveragents-core
#6160 UAT: `agents project show` JSON/YAML output missing spec-required sections — `validations`, `context`, `indexing_status`, `active_plans` absent
cleveragents/cleveragents-core
#7039 BUG-HUNT: [error-handling] Overly broad `except Exception:` patterns in CLI command modules mask critical errors
cleveragents/cleveragents-core
#7118 BUG-HUNT: [Security] SQLite URL parsing vulnerability allows path traversal in database checking
cleveragents/cleveragents-core
#7945 UAT: Plan CLI JSON outputs diverge from specification
cleveragents/cleveragents-core
Reference: cleveragents/cleveragents-core#5203
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Part of the Decision Intelligence Legendary (#4942). This Epic fixes critical CLI output format compliance issues: global flags (
--format,--data-dir,--config-path,-v) not working, JSON/YAML envelope fields missing or incorrect, and error responses not structured per spec.Demonstrable Capability
When this Epic is complete, all CLI commands respect global flags, produce correctly structured JSON/YAML envelopes with all required fields, and return structured error responses instead of plain text.
Child Issues
--formatflag ignored by subcommands--data-dirand--config-pathflags not implemented-vverbosity flag not implementedcommandfield is always empty stringmetadatafieldmessages[0].textis always"ok"timing.duration_msis always 0Definition of Done
--formatflag propagates to all subcommands--data-dirand--config-pathflags functional-vverbosity flag works (repeatable)Metadata
fix/v3.2.0/cli-output-format-complianceAutomated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner
Issue triaged by project owner:
Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner
Epic Planning: This Epic was created to group 8 orphaned UAT issues related to global CLI flag compliance and JSON/YAML envelope format issues.
Child Issues Linked
--formatflag ignored by subcommands (Priority/Critical)--data-dirand--config-pathflags not implemented (Priority/Critical)-vverbosity flag not implemented (Priority/High)commandfield is always empty string (Priority/High)metadatafield (Priority/Medium)messages[0].textis always"ok"(Priority/Medium)timing.duration_msis always 0 (Priority/Backlog)Dependency Chain
Note: Issues #5191 and #5192 are Priority/Critical — global flags are fundamental to CLI usability.
Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner