> ## Documentation Index
> Fetch the complete documentation index at: https://docs.litigationlabs.io/llms.txt
> Use this file to discover all available pages before exploring further.

# January 12, 2026

> Cross-examination outlines, case memory chunking, phase progress visualization, multi-objection support, and more.

## Cross-Examination Outline System

### AI-Generated Rebuttal Outlines

* Built automatic cross-examination outline generator that runs at direct-to-cross phase transitions
* Uses vector similarity search against testimony chunks to identify contradictions and impeachment opportunities
* Seven rebuttal types supported: direct statement, inconsistency, prior contradiction, impeachment, credibility challenge, evidence contradiction, and bias indicator
* Priority-weighted scoring: High=6pts, Medium=4pts, Low=2pts

### Rebuttals Sheet Component

* Collapsible panel displaying cross-examination rebuttal items below the WitnessToolbar
* Priority-based filtering with badges (High/Medium/Low) and point calculations
* Side-aware symbols matching WitnessToolbar

### Cross Outline Modal

* Modal dialog shown during phase transitions with generated rebuttal items
* Priority badges with icons, reason type labels, loading state with retry option

### Backend Infrastructure

* `cross-outline-generator.ts`: Main generation logic with Zod validation schemas
* `cross-outline-storage.ts`: Persistence layer for storing and retrieving outlines
* API routes for on-demand regeneration and phase transition handling

***

## Case Memory Chunking System

### Vector Memory Architecture

* New `case_memory_chunks` table for per-session vector storage of testimony
* Atomic claim extraction from witness answers with confidence scoring
* Five fact types: observation, opinion, admission, denial, clarification
* Chunk types: testimony, question, fact, opening\_statement, contradiction

### Similarity Search

* `findSimilarChunks()` function for vector similarity queries
* Embedding-based retrieval during outline generation
* Linked fact and elicit ID tracking for established testimony

***

## Phase Progress Visualization

### PhaseProgressBar Component

* Visual timeline showing all witnesses and their examination phases
* Lock/unlock icons indicating phase completion status
* Active phase highlighting with scroll-into-view behavior
* Click handlers for jumping between witnesses and phases

***

## Multi-Objection Support

* Support for selecting multiple objection types (up to 3 per objection)
* Objection type badges with Federal Rules of Evidence citations
* `pendingOcaQuestion` state for tracking OCA's question before player objects
* Backend handling for multiple objection types in judge rulings

***

## OCA Defect System Improvements

* Cache clearing for objection types and defect types in courtroom config API
* Randomized picking from available defect types instead of sequential rotation
* Enhanced judge user messages with full objection context

***

## Side Selection & Visual Identity

* Enhanced visual distinction between plaintiff and defendant options
* Color-coded backgrounds and consistent iconography
* Pi symbol for plaintiff, Delta symbol for defendant

***

## Internal Tools Enhancements

* User filtering dropdown with email, name, and session counts in Transcript Dashboard
* Theme-aware syntax highlighting in PromptDiffViewer
* Admin access checks added to GitHub and Linear API routes
