feat(decisions): implement agents plan explain command to show decision details and alternatives #4992

Open
opened 2026-04-09 00:20:48 +00:00 by HAL9000 · 3 comments
Owner

Metadata

  • Commit Message: feat(decisions): implement agents plan explain command to show decision details and alternatives
  • Branch: feat/m3/plan-explain-command
  • Milestone: v3.2.0
  • Parent Epic: #4958

Background and Context

The agents plan explain <DECISION_ID> command needs to show full decision details including the context snapshot, alternatives considered, and rationale. This is a key part of the decision intelligence feature.

Expected Behavior

  • agents plan explain <DECISION_ID> shows decision details in Rich panels
  • agents plan explain <DECISION_ID> --show-context includes the full context snapshot
  • agents plan explain <DECISION_ID> --show-reasoning includes the full reasoning chain
  • JSON output uses spec-required envelope format
  • Alternatives considered are listed with their scores/rationale

Acceptance Criteria

  • agents plan explain <DECISION_ID> command implemented
  • Rich output shows: Decision ID, Plan ID, Phase, Type, Rationale, Alternatives
  • --show-context flag includes full context snapshot
  • --show-reasoning flag includes full reasoning chain
  • JSON output uses spec-required envelope
  • Unit tests (Behave) cover explain scenarios
  • Integration test (Robot) verifies end-to-end explain output

Subtasks

  • Implement DecisionExplainer service
  • Implement Rich output panels for decision details
  • Implement --show-context and --show-reasoning flags
  • Implement JSON envelope output
  • Wire CLI command to DecisionExplainer
  • Tests (Behave): Add scenarios for explain command
  • Tests (Robot): Add integration test
  • Verify coverage >=97% via nox -s coverage_report
  • Run nox (all default sessions), fix any errors

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner

## Metadata - **Commit Message**: `feat(decisions): implement agents plan explain command to show decision details and alternatives` - **Branch**: `feat/m3/plan-explain-command` - **Milestone**: v3.2.0 - **Parent Epic**: #4958 ## Background and Context The `agents plan explain <DECISION_ID>` command needs to show full decision details including the context snapshot, alternatives considered, and rationale. This is a key part of the decision intelligence feature. ## Expected Behavior - `agents plan explain <DECISION_ID>` shows decision details in Rich panels - `agents plan explain <DECISION_ID> --show-context` includes the full context snapshot - `agents plan explain <DECISION_ID> --show-reasoning` includes the full reasoning chain - JSON output uses spec-required envelope format - Alternatives considered are listed with their scores/rationale ## Acceptance Criteria - [ ] `agents plan explain <DECISION_ID>` command implemented - [ ] Rich output shows: Decision ID, Plan ID, Phase, Type, Rationale, Alternatives - [ ] `--show-context` flag includes full context snapshot - [ ] `--show-reasoning` flag includes full reasoning chain - [ ] JSON output uses spec-required envelope - [ ] Unit tests (Behave) cover explain scenarios - [ ] Integration test (Robot) verifies end-to-end explain output ## Subtasks - [ ] Implement `DecisionExplainer` service - [ ] Implement Rich output panels for decision details - [ ] Implement `--show-context` and `--show-reasoning` flags - [ ] Implement JSON envelope output - [ ] Wire CLI command to `DecisionExplainer` - [ ] Tests (Behave): Add scenarios for explain command - [ ] Tests (Robot): Add integration test - [ ] Verify coverage >=97% via `nox -s coverage_report` - [ ] Run `nox` (all default sessions), fix any errors ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planner
HAL9000 added this to the v3.2.0 milestone 2026-04-09 01:03:36 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — Core decision recording feature required for Decision Intelligence Legendary
  • Milestone: v3.2.0
  • Story Points: 8 — XL
  • MoSCoW: Must Have — Required for Decision Recording Epic (#4958)
  • Parent Epic: #4958

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

Issue triaged by project owner: - **State**: Verified - **Priority**: High — Core decision recording feature required for Decision Intelligence Legendary - **Milestone**: v3.2.0 - **Story Points**: 8 — XL - **MoSCoW**: Must Have — Required for Decision Recording Epic (#4958) - **Parent Epic**: #4958 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — Core decision recording feature required for Decision Intelligence Legendary
  • Milestone: v3.2.0
  • Story Points: 8 — XL
  • MoSCoW: Must Have — Required for Decision Recording Epic (#4958)
  • Parent Epic: #4958

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

Issue triaged by project owner: - **State**: Verified - **Priority**: High — Core decision recording feature required for Decision Intelligence Legendary - **Milestone**: v3.2.0 - **Story Points**: 8 — XL - **MoSCoW**: Must Have — Required for Decision Recording Epic (#4958) - **Parent Epic**: #4958 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — Core decision recording feature required for Decision Recording Epic (#4958)
  • Milestone: v3.2.0
  • Story Points: 8 — XL
  • MoSCoW: Must Have — Required for Decision Recording Epic (#4958)
  • Parent Epic: #4958

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

Issue triaged by project owner: - **State**: Verified - **Priority**: High — Core decision recording feature required for Decision Recording Epic (#4958) - **Milestone**: v3.2.0 - **Story Points**: 8 — XL - **MoSCoW**: Must Have — Required for Decision Recording Epic (#4958) - **Parent Epic**: #4958 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
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.

Reference
cleveragents/cleveragents-core#4992
No description provided.