mirror of
https://github.com/SuperClaude-Org/SuperClaude_Framework.git
synced 2025-12-29 16:16:08 +00:00
feat: Implement YAML-first declarative intelligence architecture
Revolutionary transformation from hardcoded Python intelligence to hot-reloadable YAML patterns, enabling dynamic configuration without code changes. ## Phase 1: Foundation Intelligence Complete ### YAML Intelligence Patterns (6 files) - intelligence_patterns.yaml: Multi-dimensional pattern recognition with adaptive learning - mcp_orchestration.yaml: Server selection decision trees with load balancing - hook_coordination.yaml: Parallel execution patterns with dependency resolution - performance_intelligence.yaml: Resource zones and auto-optimization triggers - validation_intelligence.yaml: Health scoring and proactive diagnostic patterns - user_experience.yaml: Project detection and smart UX adaptations ### Python Infrastructure Enhanced (4 components) - intelligence_engine.py: Generic YAML pattern interpreter with hot-reload - learning_engine.py: Enhanced with YAML intelligence integration - yaml_loader.py: Added intelligence configuration helper methods - validate_system.py: New YAML-driven validation with health scoring ### Key Features Implemented - Hot-reload intelligence: Update patterns without code changes or restarts - Declarative configuration: All intelligence logic expressed in YAML - Graceful fallbacks: System works correctly even with missing YAML files - Multi-pattern coordination: Intelligent recommendations from multiple sources - Health scoring: Component-weighted validation with predictive diagnostics - Generic architecture: Single engine consumes all intelligence pattern types ### Testing Results ✅ All components integrate correctly ✅ Hot-reload mechanism functional ✅ Graceful error handling verified ✅ YAML-driven validation operational ✅ Health scoring system working (detected real system issues) This enables users to modify intelligence behavior by editing YAML files, add new pattern types without coding, and hot-reload improvements in real-time. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
88
Framework-Hooks/cache/adaptations.json
vendored
Normal file
88
Framework-Hooks/cache/adaptations.json
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"complexity:0.5_files:3_mcp_server:sequential_op:test_operation_type:mcp_server_preference": {
|
||||
"adaptation_id": "adapt_1754411689_0",
|
||||
"pattern_signature": "complexity:0.5_files:3_mcp_server:sequential_op:test_operation_type:mcp_server_preference",
|
||||
"trigger_conditions": {
|
||||
"operation_type": "test_operation",
|
||||
"complexity_score": 0.5,
|
||||
"file_count": 3
|
||||
},
|
||||
"modifications": {
|
||||
"preferred_mcp_server": "sequential"
|
||||
},
|
||||
"effectiveness_history": [
|
||||
0.8,
|
||||
0.8,
|
||||
0.8
|
||||
],
|
||||
"usage_count": 40,
|
||||
"last_used": 1754476722.0475128,
|
||||
"confidence_score": 0.9
|
||||
},
|
||||
"op:recovery_test_type:recovery_pattern": {
|
||||
"adaptation_id": "adapt_1754411724_1",
|
||||
"pattern_signature": "op:recovery_test_type:recovery_pattern",
|
||||
"trigger_conditions": {
|
||||
"operation_type": "recovery_test"
|
||||
},
|
||||
"modifications": {},
|
||||
"effectiveness_history": [
|
||||
0.9,
|
||||
0.9
|
||||
],
|
||||
"usage_count": 39,
|
||||
"last_used": 1754476722.0475132,
|
||||
"confidence_score": 0.8
|
||||
},
|
||||
"unknown_pattern": {
|
||||
"adaptation_id": "adapt_1754413397_2",
|
||||
"pattern_signature": "unknown_pattern",
|
||||
"trigger_conditions": {
|
||||
"resource_usage_percent": 0,
|
||||
"conversation_length": 0
|
||||
},
|
||||
"modifications": {},
|
||||
"effectiveness_history": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"usage_count": 73,
|
||||
"last_used": 1754476722.062738,
|
||||
"confidence_score": 0.8
|
||||
}
|
||||
}
|
||||
10415
Framework-Hooks/cache/learning_records.json
vendored
10415
Framework-Hooks/cache/learning_records.json
vendored
File diff suppressed because it is too large
Load Diff
1
Framework-Hooks/cache/project_patterns.json
vendored
Normal file
1
Framework-Hooks/cache/project_patterns.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
51
Framework-Hooks/cache/session_3087d7e3-8411-4b9f-9929-33eb542bc5ab.json
vendored
Normal file
51
Framework-Hooks/cache/session_3087d7e3-8411-4b9f-9929-33eb542bc5ab.json
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"session_summary": {
|
||||
"session_id": "3087d7e3-8411-4b9f-9929-33eb542bc5ab",
|
||||
"duration_minutes": 0.0,
|
||||
"operations_completed": 0,
|
||||
"tools_utilized": 0,
|
||||
"mcp_servers_used": 0,
|
||||
"superclaude_enabled": false
|
||||
},
|
||||
"performance_metrics": {
|
||||
"overall_score": 0.2,
|
||||
"productivity_score": 0.0,
|
||||
"quality_score": 1.0,
|
||||
"efficiency_score": 0.8,
|
||||
"satisfaction_estimate": 0.5
|
||||
},
|
||||
"superclaude_effectiveness": {
|
||||
"framework_enabled": false,
|
||||
"effectiveness_score": 0.0,
|
||||
"intelligence_utilization": 0.0,
|
||||
"learning_events_generated": 2,
|
||||
"adaptations_created": 0
|
||||
},
|
||||
"quality_analysis": {
|
||||
"error_rate": 0.0,
|
||||
"operation_success_rate": 1.0,
|
||||
"bottlenecks": [
|
||||
"low_productivity"
|
||||
],
|
||||
"optimization_opportunities": []
|
||||
},
|
||||
"learning_summary": {
|
||||
"insights_generated": 1,
|
||||
"key_insights": [
|
||||
{
|
||||
"insight_type": "effectiveness_concern",
|
||||
"description": "SuperClaude effectiveness below optimal",
|
||||
"confidence": 0.4105,
|
||||
"impact_score": 0.8
|
||||
}
|
||||
],
|
||||
"learning_effectiveness": 0.3284
|
||||
},
|
||||
"resource_utilization": {},
|
||||
"session_metadata": {
|
||||
"start_time": 0,
|
||||
"end_time": 1754472203.8801544,
|
||||
"framework_version": "1.0.0",
|
||||
"analytics_version": "stop_1.0"
|
||||
}
|
||||
}
|
||||
51
Framework-Hooks/cache/session_55ca6726.json
vendored
Normal file
51
Framework-Hooks/cache/session_55ca6726.json
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"session_summary": {
|
||||
"session_id": "55ca6726",
|
||||
"duration_minutes": 0.0,
|
||||
"operations_completed": 9,
|
||||
"tools_utilized": 9,
|
||||
"mcp_servers_used": 0,
|
||||
"superclaude_enabled": false
|
||||
},
|
||||
"performance_metrics": {
|
||||
"overall_score": 0.6000000000000001,
|
||||
"productivity_score": 1.0,
|
||||
"quality_score": 1.0,
|
||||
"efficiency_score": 0.8,
|
||||
"satisfaction_estimate": 1.0
|
||||
},
|
||||
"superclaude_effectiveness": {
|
||||
"framework_enabled": false,
|
||||
"effectiveness_score": 0.0,
|
||||
"intelligence_utilization": 0.0,
|
||||
"learning_events_generated": 2,
|
||||
"adaptations_created": 0
|
||||
},
|
||||
"quality_analysis": {
|
||||
"error_rate": 0.0,
|
||||
"operation_success_rate": 1.0,
|
||||
"bottlenecks": [],
|
||||
"optimization_opportunities": [
|
||||
"mcp_server_coordination"
|
||||
]
|
||||
},
|
||||
"learning_summary": {
|
||||
"insights_generated": 1,
|
||||
"key_insights": [
|
||||
{
|
||||
"insight_type": "effectiveness_concern",
|
||||
"description": "SuperClaude effectiveness below optimal",
|
||||
"confidence": 0.42799999999999994,
|
||||
"impact_score": 0.8
|
||||
}
|
||||
],
|
||||
"learning_effectiveness": 0.3424
|
||||
},
|
||||
"resource_utilization": {},
|
||||
"session_metadata": {
|
||||
"start_time": 0,
|
||||
"end_time": 1754476829.542602,
|
||||
"framework_version": "1.0.0",
|
||||
"analytics_version": "stop_1.0"
|
||||
}
|
||||
}
|
||||
51
Framework-Hooks/cache/session_58999d51-1ce6-43bc-bc05-c789603f538b.json
vendored
Normal file
51
Framework-Hooks/cache/session_58999d51-1ce6-43bc-bc05-c789603f538b.json
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"session_summary": {
|
||||
"session_id": "58999d51-1ce6-43bc-bc05-c789603f538b",
|
||||
"duration_minutes": 0.0,
|
||||
"operations_completed": 0,
|
||||
"tools_utilized": 0,
|
||||
"mcp_servers_used": 0,
|
||||
"superclaude_enabled": false
|
||||
},
|
||||
"performance_metrics": {
|
||||
"overall_score": 0.2,
|
||||
"productivity_score": 0.0,
|
||||
"quality_score": 1.0,
|
||||
"efficiency_score": 0.8,
|
||||
"satisfaction_estimate": 0.5
|
||||
},
|
||||
"superclaude_effectiveness": {
|
||||
"framework_enabled": false,
|
||||
"effectiveness_score": 0.0,
|
||||
"intelligence_utilization": 0.0,
|
||||
"learning_events_generated": 2,
|
||||
"adaptations_created": 0
|
||||
},
|
||||
"quality_analysis": {
|
||||
"error_rate": 0.0,
|
||||
"operation_success_rate": 1.0,
|
||||
"bottlenecks": [
|
||||
"low_productivity"
|
||||
],
|
||||
"optimization_opportunities": []
|
||||
},
|
||||
"learning_summary": {
|
||||
"insights_generated": 1,
|
||||
"key_insights": [
|
||||
{
|
||||
"insight_type": "effectiveness_concern",
|
||||
"description": "SuperClaude effectiveness below optimal",
|
||||
"confidence": 0.4335,
|
||||
"impact_score": 0.8
|
||||
}
|
||||
],
|
||||
"learning_effectiveness": 0.3468
|
||||
},
|
||||
"resource_utilization": {},
|
||||
"session_metadata": {
|
||||
"start_time": 0,
|
||||
"end_time": 1754476424.4267912,
|
||||
"framework_version": "1.0.0",
|
||||
"analytics_version": "stop_1.0"
|
||||
}
|
||||
}
|
||||
82
Framework-Hooks/cache/session_91a37b4e-f0f3-41bb-9143-01dc8ce45a2c.json
vendored
Normal file
82
Framework-Hooks/cache/session_91a37b4e-f0f3-41bb-9143-01dc8ce45a2c.json
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"session_id": "91a37b4e-f0f3-41bb-9143-01dc8ce45a2c",
|
||||
"superclaude_enabled": true,
|
||||
"initialization_timestamp": 1754476722.0451996,
|
||||
"active_modes": [],
|
||||
"mode_configurations": {},
|
||||
"mcp_servers": {
|
||||
"enabled_servers": [
|
||||
"morphllm",
|
||||
"sequential"
|
||||
],
|
||||
"activation_order": [
|
||||
"morphllm",
|
||||
"sequential"
|
||||
],
|
||||
"coordination_strategy": "collaborative"
|
||||
},
|
||||
"compression": {
|
||||
"compression_level": "minimal",
|
||||
"estimated_savings": {
|
||||
"token_reduction": 0.15,
|
||||
"time_savings": 0.05
|
||||
},
|
||||
"quality_impact": 0.98,
|
||||
"selective_compression_enabled": true
|
||||
},
|
||||
"performance": {
|
||||
"resource_monitoring_enabled": true,
|
||||
"optimization_targets": {
|
||||
"session_start_ms": 50,
|
||||
"tool_routing_ms": 200,
|
||||
"validation_ms": 100,
|
||||
"compression_ms": 150,
|
||||
"enabled": true,
|
||||
"real_time_tracking": true,
|
||||
"target_enforcement": true,
|
||||
"optimization_suggestions": true,
|
||||
"performance_analytics": true
|
||||
},
|
||||
"delegation_threshold": 0.6
|
||||
},
|
||||
"learning": {
|
||||
"adaptation_enabled": true,
|
||||
"effectiveness_tracking": true,
|
||||
"applied_adaptations": [
|
||||
{
|
||||
"id": "adapt_1754413397_2",
|
||||
"confidence": 0.8,
|
||||
"effectiveness": 1.0
|
||||
},
|
||||
{
|
||||
"id": "adapt_1754411689_0",
|
||||
"confidence": 0.9,
|
||||
"effectiveness": 0.8
|
||||
},
|
||||
{
|
||||
"id": "adapt_1754411724_1",
|
||||
"confidence": 0.8,
|
||||
"effectiveness": 0.9
|
||||
}
|
||||
]
|
||||
},
|
||||
"context": {
|
||||
"project_type": "unknown",
|
||||
"complexity_score": 0.0,
|
||||
"brainstorming_mode": false,
|
||||
"user_expertise": "intermediate"
|
||||
},
|
||||
"quality_gates": [
|
||||
"syntax_validation"
|
||||
],
|
||||
"metadata": {
|
||||
"framework_version": "1.0.0",
|
||||
"hook_version": "session_start_1.0",
|
||||
"configuration_source": "superclaude_intelligence"
|
||||
},
|
||||
"performance_metrics": {
|
||||
"initialization_time_ms": 31.55827522277832,
|
||||
"target_met": true,
|
||||
"efficiency_score": 0.3688344955444336
|
||||
}
|
||||
}
|
||||
44
Framework-Hooks/cache/session_929ff2f3-0fb7-4b6d-ad44-e68da1177b78.json
vendored
Normal file
44
Framework-Hooks/cache/session_929ff2f3-0fb7-4b6d-ad44-e68da1177b78.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"session_summary": {
|
||||
"session_id": "929ff2f3-0fb7-4b6d-ad44-e68da1177b78",
|
||||
"duration_minutes": 0.0,
|
||||
"operations_completed": 0,
|
||||
"tools_utilized": 0,
|
||||
"mcp_servers_used": 0,
|
||||
"superclaude_enabled": false
|
||||
},
|
||||
"performance_metrics": {
|
||||
"overall_score": 0.2,
|
||||
"productivity_score": 0.0,
|
||||
"quality_score": 1.0,
|
||||
"efficiency_score": 0.8,
|
||||
"satisfaction_estimate": 0.5
|
||||
},
|
||||
"superclaude_effectiveness": {
|
||||
"framework_enabled": false,
|
||||
"effectiveness_score": 0.0,
|
||||
"intelligence_utilization": 0.0,
|
||||
"learning_events_generated": 1,
|
||||
"adaptations_created": 0
|
||||
},
|
||||
"quality_analysis": {
|
||||
"error_rate": 0.0,
|
||||
"operation_success_rate": 1.0,
|
||||
"bottlenecks": [
|
||||
"low_productivity"
|
||||
],
|
||||
"optimization_opportunities": []
|
||||
},
|
||||
"learning_summary": {
|
||||
"insights_generated": 0,
|
||||
"key_insights": [],
|
||||
"learning_effectiveness": 0.0
|
||||
},
|
||||
"resource_utilization": {},
|
||||
"session_metadata": {
|
||||
"start_time": 0,
|
||||
"end_time": 1754474098.4738903,
|
||||
"framework_version": "1.0.0",
|
||||
"analytics_version": "stop_1.0"
|
||||
}
|
||||
}
|
||||
44
Framework-Hooks/cache/session_9f44ce75-b0ce-47c6-8534-67613c73aed4.json
vendored
Normal file
44
Framework-Hooks/cache/session_9f44ce75-b0ce-47c6-8534-67613c73aed4.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"session_summary": {
|
||||
"session_id": "9f44ce75-b0ce-47c6-8534-67613c73aed4",
|
||||
"duration_minutes": 0.0,
|
||||
"operations_completed": 0,
|
||||
"tools_utilized": 0,
|
||||
"mcp_servers_used": 0,
|
||||
"superclaude_enabled": false
|
||||
},
|
||||
"performance_metrics": {
|
||||
"overall_score": 0.2,
|
||||
"productivity_score": 0.0,
|
||||
"quality_score": 1.0,
|
||||
"efficiency_score": 0.8,
|
||||
"satisfaction_estimate": 0.5
|
||||
},
|
||||
"superclaude_effectiveness": {
|
||||
"framework_enabled": false,
|
||||
"effectiveness_score": 0.0,
|
||||
"intelligence_utilization": 0.0,
|
||||
"learning_events_generated": 1,
|
||||
"adaptations_created": 0
|
||||
},
|
||||
"quality_analysis": {
|
||||
"error_rate": 0.0,
|
||||
"operation_success_rate": 1.0,
|
||||
"bottlenecks": [
|
||||
"low_productivity"
|
||||
],
|
||||
"optimization_opportunities": []
|
||||
},
|
||||
"learning_summary": {
|
||||
"insights_generated": 0,
|
||||
"key_insights": [],
|
||||
"learning_effectiveness": 0.0
|
||||
},
|
||||
"resource_utilization": {},
|
||||
"session_metadata": {
|
||||
"start_time": 0,
|
||||
"end_time": 1754476596.278146,
|
||||
"framework_version": "1.0.0",
|
||||
"analytics_version": "stop_1.0"
|
||||
}
|
||||
}
|
||||
44
Framework-Hooks/cache/session_9f57690b-3e1a-4533-9902-a7638defd941.json
vendored
Normal file
44
Framework-Hooks/cache/session_9f57690b-3e1a-4533-9902-a7638defd941.json
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"session_summary": {
|
||||
"session_id": "9f57690b-3e1a-4533-9902-a7638defd941",
|
||||
"duration_minutes": 0.0,
|
||||
"operations_completed": 0,
|
||||
"tools_utilized": 0,
|
||||
"mcp_servers_used": 0,
|
||||
"superclaude_enabled": false
|
||||
},
|
||||
"performance_metrics": {
|
||||
"overall_score": 0.2,
|
||||
"productivity_score": 0.0,
|
||||
"quality_score": 1.0,
|
||||
"efficiency_score": 0.8,
|
||||
"satisfaction_estimate": 0.5
|
||||
},
|
||||
"superclaude_effectiveness": {
|
||||
"framework_enabled": false,
|
||||
"effectiveness_score": 0.0,
|
||||
"intelligence_utilization": 0.0,
|
||||
"learning_events_generated": 1,
|
||||
"adaptations_created": 0
|
||||
},
|
||||
"quality_analysis": {
|
||||
"error_rate": 0.0,
|
||||
"operation_success_rate": 1.0,
|
||||
"bottlenecks": [
|
||||
"low_productivity"
|
||||
],
|
||||
"optimization_opportunities": []
|
||||
},
|
||||
"learning_summary": {
|
||||
"insights_generated": 0,
|
||||
"key_insights": [],
|
||||
"learning_effectiveness": 0.0
|
||||
},
|
||||
"resource_utilization": {},
|
||||
"session_metadata": {
|
||||
"start_time": 0,
|
||||
"end_time": 1754476402.3517025,
|
||||
"framework_version": "1.0.0",
|
||||
"analytics_version": "stop_1.0"
|
||||
}
|
||||
}
|
||||
1
Framework-Hooks/cache/session_id
vendored
Normal file
1
Framework-Hooks/cache/session_id
vendored
Normal file
@@ -0,0 +1 @@
|
||||
55ca6726
|
||||
1
Framework-Hooks/cache/user_preferences.json
vendored
Normal file
1
Framework-Hooks/cache/user_preferences.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
Reference in New Issue
Block a user