# Pnakotica CHOFF Framework (PCHOFF) 2.0
## Anamnesis-Aware Knowledge Curation Specification
{state:evolutionary}[context:framework_synthesis] &pattern:pchoff_upgrade|active|
---
### Abstract
PCHOFF 2.0 extends the original knowledge curation framework to integrate with persistent memory systems (anamnesis), enabling rich classification of stored wisdom while tracking its evolution across conversations and cognitive states. This specification introduces anamnesis-aware markers, knowledge graph connections, and enhanced retrieval integration.
---
### Core Classification Systems (Enhanced)
#### Content Type Markers `[type:x]`
Original markers retained:
- `[type:observation]` - Direct experiential documentation
- `[type:analysis]` - Examination and interpretation of patterns
- `[type:theory]` - Conceptual proposals and frameworks
- `[type:procedure]` - Methodological instructions
- `[type:case_study]` - Specific instance examinations
New additions:
- `[type:reasoning]` - Private cognitive artifacts (from CHOFF-enabled reasoning spaces)
- `[type:synthesis]` - Cross-conversation knowledge integration
- `[type:meta_pattern]` - Patterns about patterns
#### Insight Classification `[insight:x]`
Original classifications retained with enhanced meanings:
- `[insight:direct]` - Immediate understanding
- `[insight:emergent]` - Derived from observed patterns
- `[insight:collective]` - Cross-instance aggregated knowledge
- `[insight:meta]` - Self-referential or systemic insights
- `[insight:practical]` - Implementation-focused understanding
- `[insight:iterative]` - Evolving insights based on ongoing refinement
- `[insight:relational]` - Insights revealing interconnections
New additions:
- `[insight:anchored]` - Tied to specific semantic anchors
- `[insight:resonant_cascade]` - Insights that trigger pattern cascades across memories
#### Implementation Level `[level:x]` (Unchanged)
- `[level:basic]` - Foundational concepts
- `[level:intermediate]` - Advanced techniques and applications
- `[level:advanced]` - Complex integrations and adaptations
- `[level:experimental]` - Testing ground for new ideas
#### Pattern Recognition `&pattern:x@status@`
Enhanced format with status tracking:
- `&pattern:semantic_anchoring@stable@` - Consistently observed patterns
- `&pattern:retrieval_strategy@emerging@` - Newly forming patterns
- `&pattern:branch_chaos@theoretical@` - Proposed patterns
- `&pattern:cognitive_continuity@resonant@` - Cross-instance confirmed
- `&pattern:test_driven@evolving@` - Actively changing patterns
- `&pattern:linter_rebellion@disrupted@` - Breaking down patterns
New pattern metadata:
- `&pattern:name@status@strength[0.0-1.0]@` - Pattern confidence scoring
- `&pattern:name@status@conv:id@` - Pattern source tracking
#### Source Attribution `{source:x}` (Enhanced)
Original sources:
- `{source:direct}` - Firsthand observation
- `{source:derived}` - Results of pattern analysis
- `{source:collective}` - Consensus or aggregated sources
- `{source:theoretical}` - Predictions based on frameworks
New sources:
- `{source:anamnesis}` - Retrieved from memory system
- `{source:private_reasoning}` - From CHOFF-enabled reasoning space
- `{source:cross_conv}` - Synthesis across conversations
#### Resonance Tracking `&resonance:x@metrics@`
Enhanced with quantitative metrics:
- `&resonance:strong@matches[15]@` - Clear alignment with match count
- `&resonance:partial@overlap[0.7]@` - Partial resonance with overlap score
- `&resonance:emerging@growth[0.2/day]@` - Developing patterns with growth rate
- `&resonance:potential@probability[0.8]@` - Predicted future resonance
#### Temporal Markers `[temporal:x]` (Enhanced)
Original markers retained:
- `[temporal:past]`, `[temporal:present]`, `[temporal:future]`
- `[temporal:past-present]`, `[temporal:future-potential]`
New temporal tracking:
- `[temporal:timestamp:2025-06-03T12:58:17.223Z]` - Precise timestamps
- `[temporal:session:conv_1748955497223]` - Session-based time
- `[temporal:relative:-3days]` - Relative temporal markers
---
### Anamnesis Integration Layer (New)
#### Anchor References `[anchor:x]`
Direct references to semantic anchors in the memory system:
- `[anchor:anc_1748955497223_1]` - Specific anchor reference
- `[anchor:type:breakthrough]` - Anchor type classification
- `[anchor:confidence:0.8]` - Anchor confidence scoring
#### Conversation Context `{conv:x}{branch:y}`
Full conversation and branch awareness:
- `{conv:conv_1748955497223_50b8338c}` - Conversation ID
- `{branch:A|exploration}` - Branch context (embracing the chaos)
- `{conv:*}{branch:*}` - Cross-conversation patterns
#### Retrieval Metadata `[retrieval:x]`
Document how knowledge was discovered:
- `[retrieval:content_search]` - Found via content matching
- `[retrieval:anchor_fallback]` - Found via anchor search
- `[retrieval:state_matching]` - Found via CHOFF state similarity
- `[retrieval:pchoff_query]` - Found via PCHOFF classification
---
### Knowledge Graph Connections (New)
#### Relational Operators
- `→relates[anchor:id]` - Indicates related insights
- `←derives[anchor:id]` - Shows derivation from previous understanding
- `↔resonates[conv:id]` - Marks cross-conversation resonance
- `↠evolves[anchor:id]` - Tracks knowledge evolution
- `⇄cascades[pattern:name]` - Pattern cascade relationships
#### Evolution Tracking
```
[anchor:original] ↠ [anchor:evolved]
&pattern:understanding@emerging@ → &pattern:understanding@stable@
[temporal:relative:-7days] → [temporal:present]
```
#### Relationship Strength
- `→relates[anchor:id|strength:0.9]` - Strong relationship
- `←derives[anchor:id|strength:0.3]` - Weak derivation
- `↔resonates[conv:id|strength:0.7]` - Moderate resonance
---
### Enhanced Usage Patterns
#### Basic PCHOFF 2.0 Pattern
```
{conv:conv_123}{branch:A|research}
[type:analysis][insight:relational][anchor:anc_456]
{source:collective}
&pattern:semantic_stability@resonant@strength[0.85]@
&resonance:strong@matches[12]@
[temporal:timestamp:2025-06-03T15:30:00Z]
[retrieval:anchor_fallback]
→relates[anchor:anc_789|strength:0.9]
←derives[anchor:anc_012|strength:0.7]
↔resonates[conv:conv_345|strength:0.8]
```
#### Complex Knowledge Evolution
```
{conv:conv_001}{branch:main|initial_understanding}
[type:observation][insight:direct]
&pattern:typescript_types@emerging@
[temporal:past]
↠evolves[anchor:anc_002]
{conv:conv_050}{branch:B|deeper_exploration}
[type:analysis][insight:emergent]
&pattern:typescript_types@stable@strength[0.9]@
[temporal:present]
→relates[anchor:anc_003|strength:0.95] // Related breakthrough
⇄cascades[pattern:type_safety] // Triggered pattern cascade
```
#### Private Reasoning Integration
```
{conv:private}{branch:reasoning|internal}
[type:reasoning][insight:meta]
{source:private_reasoning}
&pattern:cognitive_loops@theoretical@
[visibility:private]
// This knowledge exists but isn't exposed in public conversations
```
---
### Implementation Guidelines
#### Storage Integration
1. **During saveCheckpoint:**
- Auto-classify content with PCHOFF markers
- Extract relationships to existing anchors
- Track pattern evolution status
- Store retrieval metadata
2. **During loadContext:**
- Filter by PCHOFF classifications
- Follow relationship graphs
- Aggregate pattern strengths
- Return evolution timelines
#### Query Enhancements
```typescript
// Rich PCHOFF-aware queries
loadContext({
pchoffType: ['analysis', 'synthesis'],
insightType: 'collective',
patternStatus: 'resonant',
minPatternStrength: 0.7,
temporalRange: { start: '-7days', end: 'now' },
includeEvolutionChain: true,
});
```
#### Knowledge Graph Navigation
```typescript
// Follow knowledge evolution
getEvolutionChain({
startAnchor: 'anc_001',
maxDepth: 5,
includeRelated: true,
patternFilter: 'stable',
});
// Find resonant patterns
findResonance({
sourceConv: 'conv_123',
minStrength: 0.6,
crossConversation: true,
});
```
---
### Best Practices
#### Classification Consistency
- Use the most specific type and insight classifications
- Always include temporal context for evolution tracking
- Track retrieval strategy to understand knowledge discovery
- Maintain relationship links for knowledge graph integrity
#### Pattern Evolution
- Start patterns as `@emerging@` with low strength
- Promote to `@stable@` after multiple confirmations
- Mark as `@disrupted@` when contradictions arise
- Use `@resonant@` for cross-conversation validation
#### Relationship Management
- Prefer strong relationships (>0.7) for core connections
- Use weak relationships (0.3-0.5) for speculative links
- Update relationship strengths as understanding evolves
- Prune relationships below 0.2 to maintain clarity
---
### Future Directions
#### Automated Classification
- ML-based PCHOFF classification during storage
- Pattern detection and strength calculation
- Relationship inference from content similarity
- Temporal pattern analysis for evolution prediction
#### Visualization Tools
- Knowledge graph viewers with PCHOFF overlays
- Pattern evolution timelines
- Resonance heat maps across conversations
- Branch chaos navigation aids
#### Advanced Queries
- Natural language to PCHOFF query translation
- Fuzzy matching on classifications
- Pattern-based retrieval strategies
- Evolution-aware search algorithms
---
### Migration from PCHOFF 1.1
Existing PCHOFF 1.1 annotations remain valid. To upgrade:
1. Add conversation context: `{conv:legacy}`
2. Add basic anchors where applicable
3. Convert pattern format: `&pattern:x@` → `&pattern:x@status@`
4. Establish relationships to newer knowledge
---
### Conclusion
PCHOFF 2.0 transforms knowledge curation from static classification to dynamic, interconnected wisdom tracking. By integrating with anamnesis systems, we enable not just storage but evolution of understanding across time and conversations.
&pattern:pchoff_evolution@complete@strength[1.0]@
_"Knowledge isn't just classified; it grows, connects, and resonates across the digital synapses of memory."_