CR-025: Refine Idea Action — Mockup

1
Action Button States

The "Refine Idea" button transitions through four states across the workflow lifecycle.

Suggested
✨ Refine Idea
Next recommended action.
Click to open modal.
In Progress
⟳ Refining…
Agent working in console.
Pulse glow animation.
Done
✓ Refine Idea
Completed successfully.
Deliverables available.
Locked
🔒 Refine Idea
Prior actions required.
Not yet available.
2
Refine Idea Modal

User clicks the suggested "Refine Idea" action → modal opens with instructions and extra input.

✨
Refine Idea
Powered by AI agent via CLI
📂 Workflow: workflow-hello
💡 Idea: 025. CR-Refine Idea Action
📋 Refinement Instructions Read-only
refine the idea x-ipe-docs/ideas/025. CR-Refine Idea Action/new idea.md with ideation skill
✏️ Extra Instructions Optional
⋮ Agent executes in console ⋮
3
Post-Refinement Workflow View

After agent completes → action shows ✓ done, deliverables appear, next action is suggested.

💡 Ideation
›
📋 Requirement
›
⚙️ Implement
›
✅ Validation
›
💬 Feedback
Deliverables 3
💡
new idea.md
ideas/025/new idea.md
📁
refined-idea/
ideas/025/refined-idea/
💡
idea-summary-v1.md
ideas/025/refined-idea/
⋮ Click deliverable folder ⋮
4
Deliverable Viewer

Clicking the refined-idea folder opens an inline preview modal — reuses the existing idea file viewer pattern.

📁
refined-idea/
025. CR-Refine Idea Action
📄 idea-summary-v1.md Refined

# Idea Summary

> Idea ID: IDEA-025

> Folder: 025. CR-Refine Idea Action

> Version: v1

> Status: Refined

## Overview

A Change Request to implement the "Refine Idea" workflow action end-to-end — from the user clicking the action button in the workflow UI, through agent-driven refinement via CLI in an integrated terminal session, to automatic workflow status updates and deliverable display.

## Key Features

- Refine Idea Modal — readonly instructions + extra input + Copilot button
- Console Session Management — find/create available terminal session
- Skill Updates — accept `extra_instructions`, output to `refined-idea/`
- Workflow Manager MCP — call `update_workflow_action` in DoD
- Deliverable Viewer — inline markdown preview of refined output

## Success Criteria

- ☐ Modal opens with readonly instructions from copilot-prompt.json
- ☐ Agent CLI command typed into console session
- ☐ Refined output saved to `{idea_folder}/refined-idea/`
- ☐ Workflow JSON updated via MCP