# XWUIOpsKnowledgeBasePage

Ops Knowledge Base reference workbench (route `/en/planner/knowledge-base`) - the AI Planner's heuristic-reference store. Extends `XWUIShellPage` with a toolbar ("+ Add Template" primary + "All Sources / Manual / AI" `XWUIInputSelect` filter + search) and an `XWUINavTabs` with four tabs, each rendering its own `XWUIDataGrid`: Crew Standards (Label, STRD Class badge, Category, Crew/Equipment Requirements, Confidence bar, Samples, Source chip), OB Preferences (Team A/B, Preferred OB pill, Avoided OB chips, Reason, Priority, Confidence, Source), Cost Benchmarks (Category, STRD Class, Base/Crew/Equipment/Total cost in SAR, Variance ±%, Sample Size, Last Updated), and Crew Knowledge (Crew Member, Specialty, Preferred Pairings chips, Experience Years, 5-star Performance Rating, Last Project, Notes). Every row carries a kebab firing `onRowAction(tabId, row, anchor)`; `onAddTemplate(activeTab)` branches the toolbar action by tab.

## Basic Usage

Seeds two rows into each tab - RSL/King Cup crew-standard templates, AHI-vs-AIN/AKD OB-routing preferences, Travel/Lodging SAR cost benchmarks, and a cameraman crew-knowledge entry (Khalid Al-Rashidi, 12y, 5 stars) - opening on the Crew Standards tab.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Four-tab knowledge base seeded with crew standards, OB preferences, SAR cost benchmarks, and a crew-knowledge row.
```

## AI-Sourced Cost Benchmarks

Opens straight onto the Cost Benchmarks tab to review where the AI's learned cost models drift from the historical mean.

```example
file: examples/AISourcedBenchmarks.ts
html: examples/AISourcedBenchmarks.html
title: AI-Sourced Cost Benchmarks
description: The Cost Benchmarks tab with four AI-learned SAR models across Travel/Lodging/Ground Transport/Catering whose -7% to +14% variances surface the budget outliers.
```

## Crew Pairing Playbook

A scheduler opens the Crew Knowledge tab to build a match-day roster from specialties, preferred-pairing chips and star ratings, shown in the Ops shell.

```example
file: examples/CrewPairingPlaybook.ts
html: examples/CrewPairingPlaybook.html
title: Crew Pairing Playbook
description: The Crew Knowledge tab with four rated crew and preferred-pairing chips, plus a pre-seeded OB Preferences tab, mounted inside the Ops shell for match-day rostering.
```

```api
```
