Skip to content

Commit e61b368

Browse files
committed
feat(brain): expand BrainCategory from 8 to 35 categories
Previous categories (architecture, pattern, solution, convention, security, performance, tooling, debug) were too generic — every discovery was just "debug associated_with architecture" noise. New categories span practical to exotic: - Research: sota, discovery, hypothesis, cross_domain - AI/ML: neural_architecture, compression, self_learning, reinforcement_learning, graph_intelligence - Systems: distributed_systems, edge_computing, hardware_acceleration - Frontier: quantum, neuromorphic, bio_computing, cognitive_science, formal_methods - Applied: geopolitics, climate, biomedical, space, finance - Meta: meta_cognition, benchmark Backward compatible — serde snake_case, existing memories still deserialize. Custom(String) still accepted for any unlisted category. Co-Authored-By: claude-flow <ruv@ruv.net>
1 parent 8631ce4 commit e61b368

1 file changed

Lines changed: 91 additions & 1 deletion

File tree

crates/mcp-brain-server/src/types.rs

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ impl TemporalSolverStub {
2121
}
2222
}
2323

24-
/// Brain memory categories
24+
/// Brain memory categories — expanded from 8 to 35 for richer cross-domain discovery.
25+
///
26+
/// Categories span from practical engineering to exotic frontier research.
27+
/// The `Custom(String)` variant accepts any string for future extensibility.
28+
/// serde uses snake_case: `neural_architecture`, `self_learning`, etc.
2529
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
2630
#[serde(rename_all = "snake_case")]
2731
pub enum BrainCategory {
32+
// ── Core Engineering ──
2833
Architecture,
2934
Pattern,
3035
Solution,
@@ -33,6 +38,67 @@ pub enum BrainCategory {
3338
Performance,
3439
Tooling,
3540
Debug,
41+
42+
// ── Research & Discovery ──
43+
/// State-of-the-art findings from recent papers (2024-2026)
44+
Sota,
45+
/// First-of-its-kind discoveries — novel connections, methods, or insights
46+
Discovery,
47+
/// Validated hypotheses with evidence chains
48+
Hypothesis,
49+
/// Cross-domain connections between unrelated fields
50+
CrossDomain,
51+
52+
// ── AI & ML ──
53+
/// Neural architecture innovations (transformers, SSMs, MoE, etc.)
54+
NeuralArchitecture,
55+
/// Quantization, compression, pruning techniques
56+
Compression,
57+
/// Self-learning, online learning, continual learning
58+
SelfLearning,
59+
/// Reinforcement learning, RLHF, reward modeling
60+
ReinforcementLearning,
61+
/// Graph neural networks, knowledge graphs, spectral methods
62+
GraphIntelligence,
63+
64+
// ── Systems & Infrastructure ──
65+
/// Distributed systems, consensus, replication
66+
DistributedSystems,
67+
/// Edge computing, on-device inference, WASM
68+
EdgeComputing,
69+
/// Hardware-software co-design, FPGA, NPU, ANE
70+
HardwareAcceleration,
71+
72+
// ── Frontier & Exotic ──
73+
/// Quantum computing, quantum-classical hybrid algorithms
74+
Quantum,
75+
/// Neuromorphic computing, spiking neural networks
76+
Neuromorphic,
77+
/// Biological computing, DNA storage, molecular computing
78+
BioComputing,
79+
/// AGI research, cognitive architectures, consciousness
80+
CognitiveScience,
81+
/// Information theory, complexity theory, formal verification
82+
FormalMethods,
83+
84+
// ── Applied Domains ──
85+
/// Geopolitics, economics, social dynamics
86+
Geopolitics,
87+
/// Climate, energy, sustainability
88+
Climate,
89+
/// Genomics, drug discovery, medical AI
90+
Biomedical,
91+
/// Space, astronomy, astrophysics
92+
Space,
93+
/// Finance, trading, risk modeling
94+
Finance,
95+
96+
// ── Meta ──
97+
/// Knowledge about knowledge — epistemology, meta-learning
98+
MetaCognition,
99+
/// Benchmark results, comparative analyses
100+
Benchmark,
101+
36102
Custom(String),
37103
}
38104

@@ -47,6 +113,30 @@ impl std::fmt::Display for BrainCategory {
47113
Self::Performance => write!(f, "performance"),
48114
Self::Tooling => write!(f, "tooling"),
49115
Self::Debug => write!(f, "debug"),
116+
Self::Sota => write!(f, "sota"),
117+
Self::Discovery => write!(f, "discovery"),
118+
Self::Hypothesis => write!(f, "hypothesis"),
119+
Self::CrossDomain => write!(f, "cross_domain"),
120+
Self::NeuralArchitecture => write!(f, "neural_architecture"),
121+
Self::Compression => write!(f, "compression"),
122+
Self::SelfLearning => write!(f, "self_learning"),
123+
Self::ReinforcementLearning => write!(f, "reinforcement_learning"),
124+
Self::GraphIntelligence => write!(f, "graph_intelligence"),
125+
Self::DistributedSystems => write!(f, "distributed_systems"),
126+
Self::EdgeComputing => write!(f, "edge_computing"),
127+
Self::HardwareAcceleration => write!(f, "hardware_acceleration"),
128+
Self::Quantum => write!(f, "quantum"),
129+
Self::Neuromorphic => write!(f, "neuromorphic"),
130+
Self::BioComputing => write!(f, "bio_computing"),
131+
Self::CognitiveScience => write!(f, "cognitive_science"),
132+
Self::FormalMethods => write!(f, "formal_methods"),
133+
Self::Geopolitics => write!(f, "geopolitics"),
134+
Self::Climate => write!(f, "climate"),
135+
Self::Biomedical => write!(f, "biomedical"),
136+
Self::Space => write!(f, "space"),
137+
Self::Finance => write!(f, "finance"),
138+
Self::MetaCognition => write!(f, "meta_cognition"),
139+
Self::Benchmark => write!(f, "benchmark"),
50140
Self::Custom(s) => write!(f, "{s}"),
51141
}
52142
}

0 commit comments

Comments
 (0)