Vitruvyan Docs
Vitruvyan-Core Technical Debt Audit
Date: January 18, 2026
Updated: January 18, 2026
Objective: Document contamination and deprecations for core abstraction
Executive Summary
The vitruvyan-core repository has two major technical debt categories:
- Domain Contamination: 134 files with financial-specific terminology (ticker, AAPL, stock, portfolio)
- CrewAI Deprecation: 20 files with CrewAI dependency to be replaced with native agents
🚨 CrewAI Deprecation (HIGH PRIORITY)
Decision: Deprecate CrewAI in favor of native Vitruvyan agents.
Rationale: During Mercator development, we realized that agent work can be done with custom implementations that better integrate with Sacred Orders.
Affected Files (20):
Migration Plan: See CREWAI_DEPRECATION_PLAN.md
🔴 Sacred Orders Contamination (HIGH PRIORITY)
ALL Sacred Orders are contaminated with financial terminology:
Codex Hunters (Order I - Perception) — 25+ files
Vault Keepers (Order II - Memory) — 2 files
Memory Orders (Order II - Memory) — 5+ files
Orthodoxy Wardens (Order V - Truth) — 3 files
Pattern Weavers (Cognitive - Discourse) — 1 file
Neural Engine (Cognitive - Reason) — 2 files
Vitruvyan Proprietary (Cognitive) — 10+ files
Semantic Engine (Cognitive) — 6+ files
Domain Contamination Categories
Category 1: Terminology (HIGH PRIORITY)
| Current Term | Abstract Term | Affected Files |
|---|---|---|
ticker | entity_id | 50+ files |
tickers | entities / entity_ids | 50+ files |
stock | asset / entity | 30+ files |
portfolio | collection / entity_set | 20+ files |
trading | domain_operation | 15+ files |
AAPL, NVDA, etc. | EXAMPLE_ENTITY | 10+ files |
Category 2: Schema Contamination (MEDIUM PRIORITY)
Files with hardcoded financial schemas:
-
vitruvyan_core/core/foundation/cognitive_bus/event_schema.py- Lines 272-298: Ticker-specific fields in events
- Lines 407-426: Ticker validation logic
- Lines 762-774: Example with AAPL hardcoded
-
vitruvyan_core/core/foundation/cognitive_bus/lexicon.py- Domain-specific vocabulary
-
vitruvyan_core/core/foundation/persistence/factor_*.py- Financial factor terminology (momentum, trend, volatility)
Category 3: Prompt Contamination (MEDIUM PRIORITY)
Files with financial prompts:
vitruvyan_core/core/foundation/llm/prompts/base_prompts.pyvitruvyan_core/core/foundation/llm/prompts/scenario_prompts.pyvitruvyan_core/core/foundation/llm/conversational_llm.py
Category 4: Example/Test Contamination (LOW PRIORITY)
Files using financial examples in tests/docs that should be parameterized.
Abstraction Strategy
Recommended: Parameterized Domain Loading
Rather than find/replace 134 files, implement domain-parameterized loading:
This approach:
- ✅ Minimal code changes (~50 lines)
- ✅ Verticals define their own terminology
- ✅ Core remains truly agnostic
- ✅ Backward compatible with existing code
Migration Timeline
| Phase | Scope | Effort | Priority |
|---|---|---|---|
| 1 | CrewAI deprecation | 3 weeks | HIGH |
| 2 | Domain config layer | 1 week | HIGH |
| 3 | Sacred Orders cleanup | 2 weeks | MEDIUM |
| 4 | Test/example cleanup | 1 week | LOW |
Total estimate: 6-8 weeks for full abstraction
Immediate Actions (Today)
- ✅ Remove
verticals/mercatorfolder - ✅ Create empty
verticals/with README - ✅ Document CrewAI deprecation plan
- ✅ Document Sacred Orders contamination
- ⏳ Begin native agent framework
Notes
The domains/ folder contains abstract contracts (base_domain.py, aggregation_contract.py, etc.) that are already domain-agnostic. These should be preserved as-is.
Priority: Document debt now, clean incrementally. The core is functional as-is for Mercator. Oculus Prime development will drive further abstraction.