Skip to main content

Idiomark V2 Implementation Roadmap

Version: 1.0.0 | Last Updated: 2026-02-11 | Status: Active Planning


Executive Summary​

This document outlines the concrete implementation roadmap for Idiomark V2 experimental features. Unlike the high-level product roadmap, this document focuses on technical milestones, feature delivery, and data collection for validating V2 personality dimensions.

Key Principle: V2 features run in parallel with stable V1. Success is measured by data, not delivery.


Timeline Overview​

┌─────────────────────────────────────────────────────────────────────────────┐
│ V2 IMPLEMENTATION TIMELINE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ Q1 2026 Q2 2026 Q3 2026 │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌─────────┐ ┌─────────────┐ ┌───────────────┐ ┌─────────┐ │
│ │ Phase │───▶│ Phase 2 │───▶│ Phase 3 │───▶│ Phase 4 │ │
│ │ 1 │ │ (Data & │ │ (Validation & │ │(Graduate│ │
│ │ │ │ Collect) │ │ Refinement) │ │ V1.1) │ │
│ └─────────┘ └─────────────┘ └───────────────┘ └─────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘

Phase 1: Foundation (Weeks 1-4) | 2026-02​

Goal: Establish V2 infrastructure and enable parallel extraction

1.1 Core Type System (Week 1)​

Owner: Core Team | Priority: P0

// packages/core/src/types-v2.ts
export interface PersonalityV2 {
big_five?: BigFivePersonality
linguistic_markers?: LinguisticMarkers
communication_style?: CommunicationStyle
cognitive_patterns?: CognitivePatterns
emotional_patterns?: EmotionalPatterns
social_dynamics?: SocialDynamics
}

export interface IdiomarkFileV2 extends IdiomarkFile {
personality_v2?: PersonalityV2
}

Deliverables:

  • types-v2.ts with all V2 interfaces
  • TypeScript strict mode compatibility
  • JSDoc documentation for all fields
  • Unit tests for type validation

Success Criteria:

  • Type definitions compile without errors
  • All V2 fields have proper documentation
  • Backward compatibility with V1 IdiomarkFile

1.2 Extraction Pipeline V2 (Weeks 2-3)​

Owner: Core Team | Priority: P0

Architecture:

                          ┌──────────────────────┐
│ PersonalityAnalyzer │
│ (V1 + V2 Mode) │
└──────────┬───────────┘
│
┌────────────────┴────────────────┐
│ │
┌────────▼─────────┐ ┌────────▼────────┐
│ V1 Analyzer │ │ V2 Analyzer │
│ (Stable) │ │ (Experimental) │
└────────┬─────────┘� └────────┬────────┘
│ │
┌────────▼─────────┐ ┌────────▼────────┐
│ V1 Prompt │ │ V2 Prompt │
│ Builder │ │ Builder │
└──────────────────┘ └─────────────────┘

Deliverables:

  • V2 analyzer class with optional enablement
  • analyzeText() supports enableV2: boolean flag
  • V2 prompt builder (buildResponsePromptV2)
  • Automatic fallback logic (V2 → V1)
  • Integration tests for fallback scenarios

Code Example:

// packages/core/src/analyzer.ts
export class PersonalityAnalyzer {
constructor(options: {
provider: LLMProvider
apiKey: string
enableV2?: boolean // NEW: V2 opt-in
}) {
this.enableV2 = options.enableV2 ?? false
}

async analyze(textSamples: string[]): Promise<AnalysisResult> {
const v1Result = await this.analyzeV1(textSamples)

if (!this.enableV2) {
return v1Result
}

// Run V2 analysis in parallel
const v2Result = await this.analyzeV2(textSamples)

return {
...v1Result,
personality_v2: v2Result.personality
}
}
}

Success Criteria:

  • V1 and V2 can run independently
  • V2 analysis produces valid PersonalityV2 output
  • Fallback to V1 works when V2 fails
  • Performance overhead < 200ms per analysis

1.3 CLI V2 Support (Week 4)​

Owner: CLI Team | Priority: P1

Deliverables:

  • --experimental flag for idiomark extract
  • idiomark info shows V2 data when present
  • idiomark chat uses V2 prompts automatically
  • idiomark validate checks V2 schema

Usage Examples:

# Extract with V2 dimensions
idiomark extract --twitter --output me.idiomark.json --experimental

# View V2 data
idiomark info me.idiomark.json
# → Shows both V1 and V2 personality sections

# Chat with V2 personality
idiomark chat me.idiomark.json
# → Automatically detects and uses V2 if available

Success Criteria:

  • All CLI commands handle V2 data gracefully
  • --experimental flag is clearly documented
  • Error messages guide users when V2 extraction fails

Phase 2: Data Collection & Validation (Weeks 5-12) | 2026-03 - 2026-04​

Goal: Collect usage data and validate V2 dimensions

2.1 Big Five Implementation (Weeks 5-6)​

Owner: Core Team | Priority: P0

Research Basis: Big Five personality traits

Implementation:

// packages/core/src/prompts.ts
const BIG_FIVE_EXTRACTION_PROMPT = `
Analyze the following text and extract Big Five personality traits (OCEAN):

For each trait, provide:
1. Score (0.0 - 1.0)
2. Confidence (0.0 - 1.0)
3. Evidence (2-3 quotes supporting score)

Traits:
- Openness: Curiosity, creativity, preference for variety
- Conscientiousness: Organization, discipline, reliability
- Extraversion: Social energy, assertiveness, enthusiasm
- Agreeableness: Empathy, cooperation, trust in others
- Neuroticism: Emotional stability (LOW score = stable)

Text to analyze:
{text_samples}

Output JSON:
{
"big_five": {
"openness": {"score": 0.75, "confidence": 0.85, "evidence": ["..."]},
"conscientiousness": {...},
"extraversion": {...},
"agreeableness": {...},
"neuroticism": {...}
}
}
`

Deliverables:

  • Big Five extraction prompt
  • LLM provider integration
  • Unit tests with sample personalities
  • Validation against known personalities

Success Criteria:

  • Extraction produces valid OCEAN scores
  • Confidence scores correlate with text quality
  • Can distinguish between known personality types

2.2 Linguistic Markers (Weeks 7-8)​

Owner: Core Team | Priority: P1

Research Basis: Linguistic Inquiry and Word Count (LIWC)

Implementation Approach:

// packages/core/src/analyzers/linguistic-markers.ts
export class LinguisticMarkerAnalyzer {
private pronounPatterns = {
firstPersonSingular: /\b(I|me|my|mine|myself)\b/gi,
firstPersonPlural: /\b(we|us|our|ours|ourselves)\b/gi,
secondPerson: /\b(you|your|yours|yourself|yourselves)\b/gi
}

private hedgeWords = [
'maybe', 'perhaps', 'possibly', 'might', 'could',
'sort of', 'kind of', 'somewhat', 'rather'
]

private absolutistWords = [
'always', 'never', 'every', 'all', 'none', 'impossible',
'absolutely', 'completely', 'totally', 'entirely'
]

analyze(text: string): LinguisticMarkers {
const wordCount = text.split(/\s+/).length

// Count pronouns
const firstSingular = (text.match(this.pronounPatterns.firstPersonSingular) || []).length
const firstPlural = (text.match(this.pronounPatterns.firstPersonPlural) || []).length
const second = (text.match(this.pronounPatterns.secondPerson) || []).length

// Count hedging
const hedgeCount = this.hedgeWords.reduce((count, word) => {
return count + (text.toLowerCase().split(word.toLowerCase()).length - 1)
}, 0)

// Count absolutist language
const absolutistCount = this.absolutistWords.reduce((count, word) => {
return count + (text.toLowerCase().split(word.toLowerCase()).length - 1)
}, 0)

return {
pronouns: {
first_person_singular: firstSingular / wordCount,
first_person_plural: firstPlural / wordCount,
second_person: second / wordCount
},
hedging: {
frequency: this.classifyFrequency(hedgeCount / wordCount),
common_hedges: this.extractCommonHedges(text)
},
absolutist_language: {
frequency: absolutistCount / wordCount,
common_absolutes: this.extractCommonAbsolutes(text)
}
}
}

private classifyFrequency(ratio: number): 'low' | 'medium' | 'high' {
if (ratio < 0.02) return 'low'
if (ratio < 0.05) return 'medium'
return 'high'
}
}

Deliverables:

  • LinguisticMarkerAnalyzer class
  • Unit tests for pattern matching
  • Validation against LIWC research
  • Performance benchmarks (target: < 50ms for 1000 words)

Success Criteria:

  • Accurate pronoun counting
  • Hedge/absolutist detection > 90% precision
  • Performance target met
  • Validated against research datasets

2.3 Communication Style (Weeks 9-10)​

Owner: Core Team | Priority: P1

Implementation:

// packages/core/src/analyzers/communication-style.ts
const COMMUNICATION_STYLE_PROMPT = `
Analyze communication style from the following text:

Metrics to extract:
1. Question Frequency: % of sentences that are questions
2. Self-Disclosure: Amount of personal information shared (0-1)
3. Task vs Social: -1 (purely task-focused) to 1 (purely social)
4. Conflict Approach: direct | diplomatic | avoidant | collaborative
5. Explanation Style: terse | concise | balanced | detailed

Text:
{text_samples}

Output JSON:
{
"communication_style": {
"question_frequency": 0.25,
"self_disclosure": 0.4,
"task_vs_social": -0.2,
"conflict_approach": "diplomatic",
"explanation_style": "detailed",
"confidence": 0.78
}
}
`

Deliverables:

  • Communication style extraction prompt
  • LLM integration
  • Classification logic
  • Test cases for different styles

2.4 Cognitive & Emotional Patterns (Weeks 11-12)​

Owner: Core Team | Priority: P2

Deliverables:

  • Cognitive patterns analyzer
  • Emotional patterns analyzer
  • Combined extraction pipeline
  • Validation framework

Phase 3: Validation & Refinement (Weeks 13-20) | 2026-05 - 2026-06​

Goal: Measure quality and iterate based on data

3.1 A/B Testing Framework (Weeks 13-14)​

Owner: Data Team | Priority: P0

Architecture:

// packages/core/src/testing/ab-test.ts
export interface ABTestConfig {
name: string
description: string
variants: {
control: { prompt: string } // V1 prompt
treatment: { prompt: string } // V2 prompt
}
metrics: ['preference' | 'quality' | 'accuracy']
}

export class ABTestRunner {
async runTest(
personality: PersonalityV2,
testCases: TestCase[]
): Promise<ABTestResults> {
// Generate responses with both V1 and V2 prompts
// Collect human evaluations
// Calculate statistical significance
}
}

Deliverables:

  • A/B test framework
  • Evaluation criteria
  • Statistical significance calculator
  • Results dashboard

Success Criteria:

  • Can run 100+ test cases per day
  • Statistical confidence > 95% for significant differences
  • Clear visualization of results

3.2 Quality Metrics Dashboard (Weeks 15-16)​

Owner: Data Team | Priority: P1

Metrics to Track:

MetricDescriptionTarget
Extraction Success Rate% of extractions that complete> 98%
V2 Data Coverage% of extractions with V2 data> 80%
User PreferenceV2 vs V1 preference in blind tests> 60%
Response QualityHuman-rated response quality> 4/5
Confidence CalibrationConfidence vs actual accuracy± 10%
Performance OverheadAdditional time for V2 analysis< 200ms

Deliverables:

  • Metrics collection pipeline
  • Dashboard UI (web)
  • Automated reporting
  • Alert system for anomalies

3.3 Iteration Cycles (Weeks 17-20)​

Owner: Core Team | Priority: P0

Cycle Process:

┌─────────────────────────────────────────────────────────────┐
│ VALIDATION CYCLE │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. COLLECT → Gather A/B test data │
│ 2. ANALYZE → Identify underperforming dimensions │
│ 3. REFACTOR → Improve prompts/algorithms │
│ 4. RETEST → Validate improvements │
│ 5. DECIDE → Graduate, iterate, or deprecate │
│ │
└─────────────────────────────────────────────────────────────┘

Deliverables:

  • Weekly analysis reports
  • Prompt improvements based on data
  • Algorithm refinements
  • Graduation recommendations

Phase 4: Graduation to V1 (Weeks 21-24) | 2026-07​

Goal: Promote validated V2 features to stable V1

4.1 Graduation Criteria Checklist​

For each V2 dimension, complete before graduation:

CriterionThresholdStatus
Extraction Quality> 80% human-rated accuracy⬜
User Preference> 60% prefer V2 output⬜
Usage> 1,000 extractions in 30 days⬜
Performance< 200ms overhead⬜
DocumentationComplete guide and examples⬜
Tests> 90% code coverage⬜
Stability< 1% failure rate⬜

4.2 V1.1.0 Release Plan​

Owner: Release Manager | Priority: P0

File Format Change:

// Idiomark 1.1.0 - V1 core + graduated V2 features
export interface IdiomarkFileV1_1 extends IdiomarkFile {
idiomark: "1.1.0"

// V1 core (unchanged)
personality: Personality

// Graduated V2 features now in core
personality_extended?: {
// Dimensions that graduated from V2
big_five?: BigFivePersonality // Likely first graduate
linguistic_markers?: LinguisticMarkers // Likely second
}
}

Migration Guide:

// Automatic migration for existing files
export function migrateV2ToV1_1(idiomarkV2: IdiomarkFileV2): IdiomarkFileV1_1 {
return {
...idiomarkV2,
idiomark: "1.1.0",
personality_extended: {
big_five: idiomarkV2.personality_v2?.big_five,
linguistic_markers: idiomarkV2.personality_v2?.linguistic_markers
}
}
}

Deliverables:

  • Migration tool
  • Backward compatibility shim
  • Documentation updates
  • Release notes
  • Changelog

Success Criteria:

  • All existing Idiomark files can be read
  • Migration completes without data loss
  • Clear upgrade path for users

Risk Management​

Technical Risks​

RiskImpactMitigationOwner
V2 extraction failsHighGraceful fallback to V1Core
Poor V2 qualityHighA/B testing before releaseData
Performance degradationMediumCaching, lazy loadingCore
Type confusionMediumStrict TypeScript, runtime validationCore

Operational Risks​

RiskImpactMitigationOwner
Low adoptionMediumClear documentation, examplesDocs
Support burdenMediumSelf-service diagnosticsCore
Misleading dataHighConfidence scores, disclaimersData

Resource Requirements​

Engineering Effort​

PhaseDurationEngineersTotal Weeks
Phase 14 weeks28
Phase 28 weeks216
Phase 38 weeks18
Phase 44 weeks28
Total24 weeks~2 FTE40 weeks

Infrastructure​

  • A/B testing storage (PostgreSQL)
  • Metrics database (TimescaleDB)
  • Results dashboard (Next.js)
  • Evaluation pipeline (Python scripts)

Milestones & Dependencies​

┌───────────────────────────────────────────────────────────────────────────┐
│ MILESTONE TIMELINE │
├───────────────────────────────────────────────────────────────────────────┤
│ │
│ WK 4 WK 12 WK 24 │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │V1+V2 CLI │ │All V2 │ │V1.1 │ │
│ │Working │────────▶│Dimensions │────────▶│Release │ │
│ │ │ │Extracting │ │ │ │
│ └──────────┘ └──────────┘ └──────────┘ │
│ │
└───────────────────────────────────────────────────────────────────────────┘

Critical Path:

  1. Types → Extraction Pipeline → CLI (Phase 1)
  2. Big Five → Linguistic Markers → Communication (Phase 2)
  3. A/B Framework → Data Collection → Analysis (Phase 3)
  4. Graduation → Migration → V1.1 Release (Phase 4)

Success Metrics​

Phase 1 Success​

  • 100% of CLI commands handle V2 data
  • V2 extraction produces valid results
  • Fallback to V1 works in 100% of failure cases

Phase 2 Success​

  • All 6 V2 dimensions implemented
  • > 500 test extractions completed
  • > 70% extraction success rate

Phase 3 Success​

  • > 1,000 A/B test evaluations
  • Statistical significance achieved for > 2 dimensions
  • Clear graduation recommendations

Phase 4 Success​

  • ≥ 2 V2 dimensions graduate to V1
  • V1.1.0 release with backward compatibility
  • > 90% of users migrate successfully

Next Steps​

  1. Immediate (This Week):

    • Review and approve this roadmap
    • Assign phase 1 tickets
    • Set up project tracking
  2. Short-term (Next 2 Weeks):

    • Complete types-v2.ts
    • Implement extraction pipeline
    • Add CLI --experimental flag
  3. Medium-term (Next 8 Weeks):

    • Complete all V2 dimensions
    • Launch A/B testing framework
    • Start data collection

Document Owner: Idiomark Core Team Review Cadence: Weekly during Phase 1-2, Bi-weekly during Phase 3-4 Last Updated: 2026-02-11 Next Review: 2026-02-18