Epic: Output Rendering Pipeline Integration — Wire Commands to OutputSession Framework #936
Notifications
Due Date
No due date set.
Blocks
Depends on
#945 Legendary: Specification Alignment — Close All Gaps Between Implementation and Specification
cleveragents/cleveragents-core
#1879 UAT: JSON/YAML envelope `messages` field is an empty dict `{}` instead of spec-required list of `{level, text}` objects
cleveragents/cleveragents-core
#1880 TDD: JSON/YAML envelope `messages` field is an empty dict `{}` instead of spec-required list of `{level, text}` objects
cleveragents/cleveragents-core
#1944 UAT: JSON/YAML envelope `timing` field uses wrong structure — spec requires `{duration_ms: N}` but implementation produces `{start_time, end_time, duration}`
cleveragents/cleveragents-core
#1949 TDD: JSON/YAML envelope `timing` field uses wrong structure — spec requires `{duration_ms: N}` but implementation produces `{start_time, end_time, duration}`
cleveragents/cleveragents-core
#2080 UAT: `agents skill add` Tool Sources panel missing "Details" column — shows only Source and Count
cleveragents/cleveragents-core
#1468 UAT: `agents plan use` rich output missing spec-required structured panels (Plan Created, Inputs, Actors, Automation, Context, Next Steps)
cleveragents/cleveragents-core
#1473 UAT: `agents plan cancel` rich output is a one-liner — missing spec-required structured panels (Plan Cancelled, Sandbox, Child Plans, Recovery)
cleveragents/cleveragents-core
#1499 UAT: `agents actor add` rich output missing spec-required `Type`, `Config`, `Capabilities`, and `Tools` panels
cleveragents/cleveragents-core
#1735 UAT: `agents config list` incorrectly masks non-secret config values containing "token" or "key" in key name
cleveragents/cleveragents-core
#1814 UAT: `agents project list` rich output missing spec-required `Remote`, `Active Plans` columns and `Summary` panel
cleveragents/cleveragents-core
#1827 UAT: `format_output()` `color` format returns plain text without ANSI codes — spec requires colored output
cleveragents/cleveragents-core
#1839 UAT: `agents config list <PATTERN>` includes false positive keys when pattern is a glob (e.g. `plan.*` matches `sandbox.checkpoint.max-per-plan`)
cleveragents/cleveragents-core
#1877 UAT: `agents project show` rich output missing spec-required panels (Active Plans, Validations, Context, Indexing Status) and shows resource IDs instead of names
cleveragents/cleveragents-core
#1878 UAT: `agents resource add` rich output missing spec-required structured panels (Resource, Auto-discovered Children, Capabilities)
cleveragents/cleveragents-core
#1935 UAT: `agents resource remove` does not cascade-delete child resources and blocks on DAG edges instead of project links
cleveragents/cleveragents-core
#1945 UAT: `agents resource type add` rich output uses single combined panel instead of spec-required separate panels, and `--update` flag not implemented
cleveragents/cleveragents-core
#1982 UAT: `CLEVERAGENTS_FORMAT` environment variable not supported — spec requires it as second-highest priority in format resolution chain
cleveragents/cleveragents-core
#1986 UAT: `agents project delete` rich output missing spec-required structured panels (Deletion Summary, Index Cleanup, Backups)
cleveragents/cleveragents-core
#2047 UAT: `agents resource type add --update` does not overwrite existing type — aborts with "Update mode is not yet fully supported"
cleveragents/cleveragents-core
#2053 UAT: `SkillService.add_skill` sets `description` to empty string when omitted, causing Pydantic `ValidationError` instead of a user-friendly error
cleveragents/cleveragents-core
#2057 UAT: `SkillService.get_dependents()` always returns empty actors list — `skill remove` dependency check never warns about referencing actors
cleveragents/cleveragents-core
#2062 UAT: `agents resource type show` rich output uses a single flat panel instead of spec-required separate structured panels
cleveragents/cleveragents-core
#2063 UAT: `--data-dir` and `--config-path` global CLI flags are missing from `agents` command — spec requires them as top-level options
cleveragents/cleveragents-core
#2067 UAT: `agents skill tools --format json` omits `read_only`, `writes`, and `checkpoint` fields for non-inline tools
cleveragents/cleveragents-core
#2072 UAT: `-p` shorthand for `--project` missing from `agents invariant add` and `agents invariant list` — spec requires it
cleveragents/cleveragents-core
#2075 UAT: `core.format` config key is registered but never applied — setting it has no effect on CLI output format
cleveragents/cleveragents-core
#2077 UAT: `SkillCapabilitySummary` missing `requires_approval` field — `skill show` capability summary panel incomplete
cleveragents/cleveragents-core
#2082 UAT: `agents project clean` is an unimplemented stub — outputs "not yet implemented" and aborts instead of cleaning project cache
cleveragents/cleveragents-core
#2087 UAT: All `agents skill` commands produce raw JSON output without the spec-required `{command, status, exit_code, data, timing, messages}` envelope
cleveragents/cleveragents-core
#2092 UAT: `agents invariant list --effective` not restricted to `--plan` scope — spec requires `--effective` only with `--plan`
cleveragents/cleveragents-core
#2094 UAT: `agents invariant add` silently defaults to `--global` when no scope flag is provided — spec requires at least one scope flag
cleveragents/cleveragents-core
#2095 UAT: Child plan spawning does not propagate parent plan's effective invariant set — spec requires inheritance
cleveragents/cleveragents-core
#2102 UAT: `merge_invariants()` and `InvariantSet.merge()` lack `action_invariants` parameter — inconsistent with four-scope architecture
cleveragents/cleveragents-core
#2104 UAT: `agents invariant add` rich output uses plain text lines instead of spec-required panel box format
cleveragents/cleveragents-core
#2108 UAT: `agents skill refresh` does not actually refresh MCP tools — stub implementation with TODO comment
cleveragents/cleveragents-core
#2120 UAT: `--format color` renders plain text without ANSI color codes — spec requires ANSI-colored output
cleveragents/cleveragents-core
#2121 UAT: Global CLI options `--data-dir`, `--config-path`, and `-v` (verbosity) are missing from `main_callback()` — spec requires them as global options
cleveragents/cleveragents-core
#2127 UAT: `agents diagnostics` missing health checks for text index (tantivy), vector index (faiss), and graph store — spec requires these checks
cleveragents/cleveragents-core
#2128 UAT: `--format` help text on `version`, `info`, and `diagnostics` commands omits `table` and `color` formats — spec defines 6 valid formats
cleveragents/cleveragents-core
#2133 UAT: `--format` is not a global option — spec requires `agents --format <fmt> <command>` syntax but only per-command `agents <command> --format <fmt>` works
cleveragents/cleveragents-core
#2908 UAT Bug: `--format` flag is per-command rather than global — spec requires a single global `--format` option on the root CLI callback
cleveragents/cleveragents-core
#2921 UAT: `format_output()` silently falls back to JSON for `rich` format — spec requires styled terminal output with Rich library components
cleveragents/cleveragents-core
#2998 UAT: `agents validation attach` args format mismatch — spec shows `--coverage-threshold 90` named options but implementation requires `coverage_threshold=90` positional key=value pairs
cleveragents/cleveragents-core
#3998 UAT: Global `--format` flag not implemented at top-level CLI — spec requires `agents --format table <subcommand>` syntax
cleveragents/cleveragents-core
#3999 UAT: `format_output()` with `rich` format silently falls back to JSON — should use rich/color renderer
cleveragents/cleveragents-core
#4004 UAT: `render_error()` JSON/YAML output goes to stdout instead of stderr — error output should be on stderr
cleveragents/cleveragents-core
#8987 refactor(output): Refactor system, session, and project CLI commands to use OutputSession
cleveragents/cleveragents-core
#8996 refactor(output): Refactor actor, plan, and resource/tool/skill/config CLI commands to use OutputSession
cleveragents/cleveragents-core
#8997 feat(output): Implement functional Rich materializer with rich Live Display integration
cleveragents/cleveragents-core
#8998 feat(output): Align output envelope to spec, implement streaming materialization, and add output format tests
cleveragents/cleveragents-core
Reference: cleveragents/cleveragents-core#936
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 and Context
The specification defines an Output Rendering Framework (spec §Output Rendering Framework) with a formal architecture: OutputSession, Element Handles, Element Events, Materialization Strategies, ElementRenderer Protocol, RendererRegistry, and format-specific renderers. Every CLI command must produce structured output matching the spec envelope:
{command, status, exit_code, data, timing, messages}.The current implementation has:
OutputSessionwith element handle lifecycle (functional incli/output/session.py)PanelHandle,TableHandle,StatusHandle,ProgressHandleHowever:
format_output()path; the OutputSession framework is not integratedrichlibrary integration{command, session_id, elements, exit_code, timing, metadata}instead of{command, status, exit_code, data, timing, messages}Note: #884 covers envelope alignment and #917 covers RendererRegistry. This Epic coordinates the full integration.
Expected Behavior
All CLI commands must produce output through the OutputSession pipeline, using the spec-defined envelope format, with a functional Rich materializer for interactive terminal use.
Acceptance Criteria
OutputSession(not directformat_output()){command, status, exit_code, data, timing, messages}richlibrary for live terminal rendering (panels, tables, spinners, progress bars)--streamcommandsRendererRegistrydispatches element types to per-format renderers (coordinates with #917)Subtasks
OutputSessioninstead offormat_output()— system commands (version, info, diagnostics, init)richLive Display integration--streamnox -s coverage_reportnox(all default sessions), fix any errorsDefinition of Done
This epic is complete when all child issues are closed AND every CLI command produces structured output through the OutputSession framework, the Rich materializer provides interactive terminal rendering, and all output formats match the specification examples.
Dependency Links
Parent Legendary: cleverthis/cleveragents#3 — Core Functionality
Blocked by:
Coordinates with:
Label compliance fix applied:
State/In Progresswith valid labelState/In progressState/In Progress(capital P) is an orphaned label that no longer exists in the repository's label list. The correct label isState/In progress(lowercase p, ID: 1322).Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: ca-backlog-groomer
HAL9000 referenced this issue2026-05-08 06:22:37 +00:00