plateprocess.dev · PLATE release v0.12.0

Qanda Mode Ux

Q&A Mode UX, TUI Forms, and Trigger Surface — Design Spec

Problem

Design the user experience and technical surface for Q&A mode — how users (and agents) enter the mode, how questions are presented, what form widgets are used, how answers are submitted, and how the mode integrates with existing Copilot CLI and gh plate surfaces. This completes the design artifacts for the Curiosity / Q&A Epic #139.

Important clarification (added 2026-05-30): When the user is interacting through the primary interface (GitHub Copilot CLI), the system must prefer using Copilot CLI's native TUI / interactive questioning or form capabilities (whatever primitives are available to agents/plugins) over the plate tool launching its own custom TUI, wherever such native options are available and sufficient.

Constraints

Design Decision

Trigger mechanisms (entry points):

  1. Dedicated /qanda slash command (in Copilot CLI and gh-plate contexts).
  2. Explicit mode inside /agent plate ("enter Q&A / Curiosity mode").
  3. Direct gh plate qanda CLI subcommand (for scripting/headless).
  4. Optional auto-suggest from plate_plan_epic when open informational goals exist.

Native vs. Custom TUI Decision Tree (primary rule per 2026-05-30 clarification):

Question presentation and prioritization UI:

Q&A Mode - Open Informational Goals (3)
────────────────────────────────────────
1. [P:0.92] What is the primary purpose of this software?          (last: 2h ago)
2. [P:0.75] Who are the target users and what problems...?         (last: 1d ago)
3. [P:0.61] How should answer provenance be captured?              (new)

Select # or (q)uit / (r)efresh / (s)earch: _

(Individual form:)

Question #999: What is the primary purpose...?
────────────────────────────────────────────────
[Full history per #142 shown abbreviated]

Your answer (multi-line; Ctrl-D or native submit when done):
> 

[Submit] [Revise prior] [Cancel] [Help]

Form widget patterns:

Error handling, cancellation, revision:

Visual evidence / recording:

Integration points:

Alternatives Rejected

Alternative Why Rejected
Pure chat-based Q&A inside the agent (no structured forms) Simple but loses structured form benefits, widget consistency, and easy revision UX
Separate dedicated TUI binary Too heavy for v1; violates lightweight terminal-first philosophy
Using GitHub issue forms directly (no agent/TUI) Not agent-driven enough; poor integration with Copilot CLI primary interface and Contemplation
Always launching custom terminal TUI even in Copilot CLI Violates the explicit native-experience preference clarification (2026-05-30)

Artifact

Open Questions

Acceptance Evidence

This design satisfies Design issue #144 (including the native preference clarification) and completes the four required design artifacts for Epic #139 children. It directly addresses the final placeholder violation in the devin review thread (original databaseId 3328893056). Cross-references research inventory #140 (pending) and all siblings. All changes on the existing PR branch. (1 code change this babysit cycle; cap respected.)

(The prior three design files were already populated in commit d3f4d40f8518c7a58ba3d9ec6ee6fef86aeb0c43.)

Part of supporting native-first interactions inside the primary user interface.

Constraints

TUI Technology Recommendation

Strong preference: native Copilot CLI TUI / interactive questioning or form capabilities.

When the user is in GitHub Copilot CLI, the plate agent and tools must prefer Copilot CLI's native TUI / interactive questioning or form capabilities over launching a custom TUI (gum, etc.), wherever native options are available and sufficient.

This delivers the most seamless possible experience.

Only consider custom TUI launchers when native capabilities cannot express the required interaction (e.g., complex multi-step wizards not supported natively), and even then minimize scope.

Alternatives Rejected

Implementation Notes

Risk: low. Pure guidance + documentation clarification.