Back to corpus
proposalexperiment writeup candidatescore 22
Command Processor Enhancements
All enhancements are backward compatible: - Existing code continues to work - `process_text()` still returns `bool` - Default parameters match original behavior - Optional features can be disabled
Full HTML reader
Read the full artifact
Extracted abstract or opening context
The `CommandProcessor` has been significantly enhanced with a full-featured implementation.
### 1. **Advanced Matching System** - **Confidence Scoring**: Every match includes a confidence score (0.0-1.0) - **Match Types**: EXACT, WORD_BOUNDARY, FUZZY, ALIAS, PARTIAL - **Multi-strategy Matching**: Tries multiple matching strategies in order of preference - **SequenceMatcher**: Uses advanced similarity algorithms for fuzzy matching
### 2. **Command Aliases & Synonyms** - **Built-in Aliases**: Common shortcuts like "go" → "play", "cut" → "censor" - **Custom Aliases**: Add your own with `add_alias()` - **Synonyms**: Automatic synonym generation for deck-specific commands - **Alias Expansion**: Automatically expands aliases before matching
### 3. **Command History** - **Execution History**: Tracks last 100 commands with full details - **History Entry**: Includes phrase, key combo, execution time, success status, match type, confidence - **History Access**: `get_history(limit=10)` to retrieve recent commands - **History Clearing**: `clear_history()` to reset
### 4. **Statistics & Metrics** - **Comprehensive Stats**: Total commands, success rate, match type distribution - **Performance Metrics**: Average match time, execution time, min/max times - **Confidence Tracking**: Average confidence across all matches - **Statistics Access**: `get_statistics()` returns full stats dictionary - **Statistics Reset**: `reset_statistics()` to clear all stats
Promotion decision
What has to happen next
Attach run IDs, datasets, metrics, and reproduction commands.
Why this is not always a full paper yet
Corpus pages are public-safe readers for discovered workspace artifacts. They are not automatically final papers. A corpus item becomes a polished paper only after the editable source, evidence checkpoints, references, figures, render path, and release status are attached through the paper schema.