Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

UX Requirements

Information Architecture

PsyDian will primarily use a command-line interface as its main user interaction layer. The user-facing architecture is organized around system interaction, diagnostics, and AI-assisted assistance.

PsyDian
├── Boot Interface
│   └── Boot / Initialization Status
│
├── Shell
│   ├── Command Prompt
│   ├── Command Input
│   ├── Command Output
│   ├── Command History
│   └── Auto-completion
│
├── System Information
│   ├── System Status
│   ├── Memory Information
│   └── Kernel Information
│
├── Diagnostics
│   ├── Logs
│   ├── Errors
│   ├── Exceptions
│   └── Panic Diagnostics
│
├── AI Assistance
│   ├── AI Request
│   ├── Diagnostic Analysis
│   ├── AI Explanation
│   └── Suggested Actions
│
└── Voice Interface
    ├── Speech Input
    ├── Recognized Text
    └── Speech Output

The Voice Interface is optional and will use the existing shell and AI interaction pipeline rather than introducing a separate command architecture.

Primary User Flow

Normal System Interaction

Boot PsyDian
→ Kernel Initialization
→ Shell Ready
→ User Enters Command
→ Command Parsing
→ Command Validation
→ Command Execution
→ Result Displayed
→ Shell Ready

AI-Assisted Interaction

Shell Ready
→ User Enters AI Request
→ Request Validation
→ Request Sent Through Diagnostic Communication Channel
→ AI Bridge Receives Request
→ AI Service Processes Request
→ AI Response Validation
→ Response Returned to PsyDian
→ Shell Displays Explanation / Suggestion
→ User Reviews Result

Diagnostic Interaction

System Failure
→ Exception / Panic Handler
→ Diagnostic Information Captured
→ Diagnostic Record Created
→ Diagnostic Sent Through Communication Channel
→ AI Bridge Processes Diagnostic
→ AI Service Analyzes Diagnostic
→ Validated Explanation Returned
→ Shell Displays Diagnostic Analysis
→ User Reviews Suggested Action

Voice Interaction

User Speaks
→ Speech-to-Text
→ Recognized Text
→ Existing Shell Processing
→ Normal Command or AI Request
→ Result Generated
→ Text-to-Speech
→ User Receives Response

Key Interface Requirements

Shell Interface

  • Display a clear and consistent command prompt.
  • Accept keyboard input from the user.
  • Maintain a visible input line.
  • Display command output in a readable format.
  • Display controlled errors for invalid or unsupported commands.
  • Support command history where implemented.
  • Support basic command auto-completion where implemented.
  • Keep system messages distinguishable from user-entered commands.
  • Return the shell to a usable state after successful command execution.

Command Interaction

  • Commands shall be parsed before execution.
  • Invalid commands shall produce a clear error message.
  • Invalid arguments shall be identified where possible.
  • Potentially destructive or privileged operations shall require explicit confirmation.
  • AI-generated commands shall pass through the same validation path as manually entered commands.

System Information Interface

  • Display basic kernel/system information through supported commands.
  • Present memory and system status information in a structured format.
  • Use readable labels rather than requiring the user to interpret raw values alone.

Diagnostic Interface

  • Clearly identify diagnostic severity.
  • Display the affected subsystem when available.
  • Display the diagnostic message.
  • Display relevant contextual information.
  • Distinguish normal logs, warnings, errors, and panic information.
  • Present AI analysis separately from original system diagnostic data.
  • Avoid exposing unnecessary internal or sensitive information. Example:
[ERROR]
Subsystem: Memory
Message: Heap allocation failed
 
AI Analysis:
The allocation request could not be satisfied.
 
Suggested Investigation:
...

AI Assistance Interface

  • Clearly indicate when a response was generated by the AI service.
  • Distinguish factual diagnostic information from AI interpretation.
  • Display explanations in structured, readable sections.
  • Display suggested commands separately from explanatory text.
  • Identify uncertainty or limitations when relevant.
  • Never imply that an AI suggestion is guaranteed to be correct.
  • Require user confirmation before potentially privileged or destructive operations.

AI Request Status

The interface should communicate the current processing state where practical:

AI Request
→ Sending
→ Processing
→ Response Received

or, when an external dependency fails:

AI Request
→ Failed
→ AI assistance unavailable

Core shell functionality should remain available.

Voice Interface

When voice functionality is enabled:

  • Accept speech as an alternative input method.
  • Convert speech into text before entering the normal command-processing pipeline.
  • Display recognized text where practical so that the user can verify what was understood.
  • Use the same validation rules as keyboard input.
  • Convert eligible responses into speech.
  • Provide text interaction as a fallback when speech processing fails.

System States

Kernel States

BOOTING
   ↓
INITIALIZING
   ↓
READY

Failure:

INITIALIZING
   ↓
ERROR
   ↓
CONTROLLED FAILURE / PANIC

Shell States

READY
   ↓
INPUT
   ↓
PARSING
   ↓
VALIDATING
   ↓
EXECUTING
   ↓
DISPLAYING_RESULT
   ↓
READY

AI Interaction States

IDLE
   ↓
REQUEST_RECEIVED
   ↓
WAITING_FOR_BRIDGE
   ↓
AI_PROCESSING
   ↓
VALIDATING_RESPONSE
   ↓
DISPLAYING_RESPONSE
   ↓
IDLE

Failure state:

AI_PROCESSING
   ↓
AI_SERVICE_ERROR / TIMEOUT
   ↓
DISPLAY_ERROR
   ↓
IDLE

Diagnostic States

NORMAL
   ↓
ERROR_DETECTED
   ↓
DIAGNOSTIC_CAPTURE
   ↓
DIAGNOSTIC_READY
   ↓
AI_ANALYSIS
   ↓
ANALYSIS_DISPLAYED

Loading States

Because AI processing and external communication may take longer than local shell operations, the interface should provide a clear processing state.

Example:

[AI] Analyzing diagnostic...

The shell should not become permanently blocked because of an unavailable external AI service.

Empty States

Examples:

No command history available.
No diagnostic information available.
No AI analysis available.

Empty states should clearly explain why information is unavailable rather than displaying a blank area or ambiguous output.

Error States

Errors should be understandable and actionable where possible.

Examples:

[ERROR] Unknown command: xyz
[ERROR] Invalid command arguments.
[ERROR] AI assistance unavailable.
[ERROR] Diagnostic communication failed.

For kernel-level failures:

[PANIC]
Kernel encountered an unrecoverable error.
Diagnostic information captured.

Internal implementation details, secrets, API credentials, or unnecessary stack information should not be exposed through ordinary user-facing messages.

Accessibility

  • Keyboard interaction shall be supported for all core shell functionality.
  • Important information shall not be communicated through color alone.
  • Diagnostic severity shall use textual labels such as INFO, WARN, ERROR, and PANIC.
  • Command prompts and output shall use consistent formatting.
  • AI responses shall use structured text and clear headings where practical.
  • Voice functionality shall have a text-based fallback.
  • Error messages shall be understandable without requiring visual interpretation of terminal colors.
  • Input and output formatting should remain usable at different terminal sizes.
  • The system should avoid unnecessary animations or time-dependent interactions in the core shell.

UX Principles

1. Clear Before Clever

Normal operating-system behavior should remain understandable without requiring AI assistance.

2. Evidence Before AI Explanation

Original system diagnostics should be presented separately from AI-generated interpretation.

3. AI as Assistance, Not Authority

AI output is a recommendation or explanation, not an automatic authorization to perform an operation.

4. Safe Interaction

Potentially privileged or destructive actions require normal command validation and explicit user confirmation.

5. Graceful Degradation

Failure of AI, voice, or external communication should not unnecessarily prevent normal shell operation.

6. Consistent Interaction

Keyboard, voice, and AI-assisted interactions should ultimately use the same underlying command-validation and execution pipeline.