I am checking the files in the workspace to understand the project structure and setup.
I am reading package.json to inspect installed dependencies and build configurations.
I will install lucide-react to provide restrained, crisp icons for decision statuses, matrix controls, and command palette navigation without UI bloat.
I am reading src/index.css and index.html to see the typography and CSS theme setup.
I am reading index.html to review the current title and meta tags.
I will now update index.html to set the page title to "LUMEN — Decision Surface", load Google Fonts (IBM Plex Sans for UI, IBM Plex Mono for numbers and weights, and Lora for editorial prose and briefs), and prepare a clean dark/light base background.
I will update src/index.css to define Tailwind v4 font families (IBM Plex Sans, IBM Plex Mono, Lora), establish refined focus rings, smooth custom scrollbars, and essential @media print stylesheets so that decision briefs render cleanly to PDF when printed.
I will create src/types.ts to define TypeScript interfaces for decisions, criteria, options, matrix cells, scoring configurations, templates, themes, and command palette items.
I will create src/utils/scoring.ts containing deterministic, explainable scoring utilities, normalizations, Monte Carlo sensitivity testing for leader fragility, overlap heuristics for criteria independence, and plain-language decision explainers.
I will remove the unused activeCriteria declaration in calculateScores within src/utils/scoring.ts to resolve the TypeScript compilation error.
I will create src/utils/storage.ts containing localStorage persistence routines, the 5 starter templates required by the specification, and the detailed seed dataset for "Choose between 3 job offers" with rich evidence notes and confidence levels.
I will add the explicit Criterion[] type annotation to the initial criteria variable in createNewDecision within src/utils/storage.ts to solve the TypeScript assignment discrepancy.
I will create src/utils/markdown.ts to generate formatted Markdown Decision Briefs suitable for clipboard copying, file downloading, or editorial documentation.
I will create README.md in the project root to deliver the complete system documentation, rigorous scoring math definitions, keyboard interaction guides, and a design ethos explanation.
I will create src/components/common/AboutModal.tsx to provide an in-app authoritative reference for LUMEN's decision method, deterministic scoring mathematics, keyboard shortcuts, and design philosophy.
I will create src/components/common/TopNav.tsx to serve as the application's calm instrument header, providing breadcrumb navigation, theme switching, command palette triggers, and method documentation access.
I will fix the typo in the variable name isFocusModeActive inside src/components/common/TopNav.tsx to clear the syntax compilation error.
I will remove the unused Layers import in src/components/common/TopNav.tsx.
I will create src/components/common/CommandPalette.tsx to deliver the global command center triggered via ⌘K / Ctrl+K, supporting instant fuzzy jumping across decisions and triggering instrument functions.
I will create src/components/library/LibraryHome.tsx to serve as the primary library view, providing decision filtering, sorting, status classification, quick actions (duplicate, archive, delete), and instant starter template execution.
I will remove the unused createNewDecision import in src/components/library/LibraryHome.tsx to keep compiler output clean.
I will create src/components/workspace/SetupTab.tsx to handle decision framing, outcome definition, deadline tracking, starter template pre-filling, and an optional heuristic assistive proposer for extracting candidate criteria from context prose.
I will remove the unused AlertCircle import in src/components/workspace/SetupTab.tsx.
I will create src/components/workspace/CriteriaTab.tsx to handle criteria definition, scale configurations, directional alignments, live-normalized weighting, re-ordering, and heuristic overlap warnings.
I will remove the unused AlertTriangle, HelpCircle, and Sliders imports from src/components/workspace/CriteriaTab.tsx.
I will create src/components/workspace/MatrixTab.tsx to serve as the rigorous Option × Criterion comparison matrix, featuring arrow-key keyboard navigation, inline cell editors for value/confidence/evidence, scoring setting switches, and option management.
I will clean up the unused imports and variable declaration in src/components/workspace/MatrixTab.tsx to clear compiler warnings.
I will remove the unused optIdx parameter in the option headers mapping inside src/components/workspace/MatrixTab.tsx.
I will create src/components/workspace/CompareTab.tsx to serve as the deterministic analytical comparison dashboard, presenting option ranking bars, decisive criteria breakdowns, Monte Carlo fragility scores, real-time weight simulation sliders, and "what would need to be true" flip analysis.
I will create src/components/workspace/DecideTab.tsx to handle option commitment, rationale drafting, pre-mortem risk framing, scheduled reviews, and transition to the publication-grade decision brief.
I will remove the unused imports and variable in src/components/workspace/DecideTab.tsx to maintain clean TypeScript compilation.
I will create src/components/workspace/BriefView.tsx to display the formatted editorial decision brief, complete with Markdown clipboard copying, file downloading, and automatic PDF print triggering.
I will create src/components/workspace/DecisionWorkspace.tsx to orchestrate the decision tabs, step navigation, focus mode layouts, and quick workspace instruments.
I will now update src/App.tsx to integrate the component hierarchy, hash routing, theme switching, persistent storage, and global keyboard listeners for the command palette.
I will remove the unused React default import in src/App.tsx to align with the modern JSX transform and clear the TypeScript warning.
I am running build_project to test TypeScript types, verify component bundling, and ensure the complete app compiles to a functional production build without errors.
I have engineered and built LUMEN — Decision Surface, a production-quality, high-signal single-page web app for turning complex multi-factor tradeoffs into structured decisions backed by deterministic analytical math and evidence.
Key Capabilities & Architectural Highlights
1. Calm Instrument Panel Ergonomics (Zero AI Slop)
- Restrained Typography & Hierarchy: Powered by IBM Plex Sans for interactive precision, IBM Plex Mono for priority weighting, mathematical normalizations, and matrix scores, and Lora for editorial prose within decision briefs and framing contexts.
- Neutral Palette + One Accent: A refined stone/graphite base paired with a functional Emerald/Jade Green reserved exclusively for current analytical leaders, positive confirmations, and keyboard focus outlines. No decorative floating blobs, generic gradients, or unearned confetti celebrations.
2. Deterministic & Explainable Scoring Engine
- Exact Math Implementation: Every criterion converts candidate values onto a standardized
[0, 1] normalized scale (Higher-is-Better numeric, Lower-is-Better monetary/duration, 1–10 ratings, boolean checks, and informational note-only rows).
- Missing Value Handling Toggle: Choose between Ignore Mode (default, renormalizes active weights among available data per option) or Penalize Mode (counts missing cells as
0.0 against total weight).
- Plain-Language Explainer: Generates automated analytical prose describing why the leader wins without hidden machine learning black boxes (e.g., “Its victory is anchored primarily by decisive advantages in Work-Life & Sustainable Pace (+14.2% lead) and Guaranteed Annual Cash Comp (+8.0% lead).”).
3. Winner Fragility & Stress Testing
- Monte Carlo Fragility Index (0–100): Simulates 40 trials of synthetic ±20% weight jolts across priorities to measure outcome stability. Automatically marks outcomes as a Solid Lead, Moderate Lead, or Fragile Lead.
- Live Priority Sliders: Adjust importance weights dynamically with real-time rank transition visualizers before deciding whether to commit new weighting models.
- Inversion Analysis: An analytical engine answering "What would need to be true for the runner-up to win?" and a comprehensive ±15% single-criterion stress test table.
4. Keyboard-First Options Matrix
- Grid Ergonomics: Use standard Arrow Up, Arrow Down, Arrow Left, and Arrow Right keys to traverse Option × Criterion cells. Press Enter or Space to open inline editors for recording values, Confidence Ratings (
Low 🔴, Med 🟡, High 🟢), and hard evidence notes ("Evidence beats confidence theater").
- Heuristic Independence Check: Soft alert system that monitors criteria naming and descriptions for overlapping dimensions (e.g., warning if salary and total comp are treated as independent variables, which double-counts financial rewards).
- Assistive Evidence Polish & Proposer: Includes dismissible heuristic assistants that extract candidate criteria from context paragraphs and clean up messy evidence notes into clear editorial prose.
5. Publication-Grade Decision Brief & Local-First Offline Survival
- Local-First Storage: All datasets persist automatically in browser
localStorage (lumen_decisions_v1) with versioned schema architecture. Fully works offline.
- Full Data Portability: Seamlessly export and import JSON database archives or individual decision configurations.
- Print & Markdown Exporter: Generates a publication-ready Decision Brief formatted cleanly for PDF via
@media print styles, or instantly copyable as structured Markdown for GitHub or Notion logs. Includes Rationale statements, Pre-Mortem framing ("This decision fails if..."), and scheduled check-in dates.
- Global Command Palette: Triggered anywhere via ⌘ K or Ctrl + K for instant jumping between decision workspaces, cycling Light/Dark/System themes, enabling immersion Focus Mode, or triggering sample data loads.
Deliverables & Verification
- Working Application: Fully built, type-checked, and compiled via
npm run build with zero errors.
- README.md: Root documentation covering methodology, scoring axioms, keyboard shortcuts, and design philosophy.
- Seed Dataset Included: Comes pre-populated with a detailed "Choose between 3 engineering job offers" scenario (Series B AI Startup vs. Quiet Big Tech vs. Remote Bootstrap) complete with compensation figures, remote work policies, confidence indicators, and verified evidence notes.
Files built: index.html, src/index.css, src/types.ts, src/utils/scoring.ts, src/utils/storage.ts, src/utils/markdown.ts, README.md, src/components/common/AboutModal.tsx, src/components/common/TopNav.tsx, src/components/common/CommandPalette.tsx, src/components/library/LibraryHome.tsx, src/components/workspace/SetupTab.tsx, src/components/workspace/CriteriaTab.tsx, src/components/workspace/MatrixTab.tsx, src/components/workspace/CompareTab.tsx, src/components/workspace/DecideTab.tsx, src/components/workspace/BriefView.tsx, src/components/workspace/DecisionWorkspace.tsx, src/App.tsx