Before deploying the correlation plugin, ensure you have:
- OpenClaw >= 2026.1.26 installed
- Access to the OpenClaw workspace directory
- Git installed and configured
- Proper permissions to modify the OpenClaw configuration
cd ~/.openclaw/extensions
git clone https://github.com/ether-btc/openclaw-correlation-plugin.git correlation-memorycd ~/.openclaw/extensions/correlation-memory
npm installAdd the plugin to your openclaw.json configuration file:
{
"plugins": {
"allow": ["correlation-memory"]
}
}Create memory/correlation-rules.json in your workspace with your correlation rules:
{
"rules": [
{
"id": "cr-001",
"trigger_context": "config-change",
"trigger_keywords": ["config", "setting", "change"],
"must_also_fetch": ["backup-location", "rollback-instructions"],
"relationship_type": "constrains",
"confidence": 0.95
}
]
}openclaw gateway restart- Backup current OpenClaw configuration
- Verify OpenClaw version compatibility
- Test plugin installation in isolated environment
- Validate correlation rules syntax
- Document rollback procedure
- Confirm plugin loads without errors
- Test basic correlation functionality
- Verify no performance degradation
- Check gateway logs for warnings
- Validate rule matching behavior
- Monitor memory usage
- Check for unexpected correlations
- Review user feedback
- Validate production rule effectiveness
- Schedule follow-up evaluation
If issues arise after deployment:
# Stop gateway
openclaw gateway stop
# Remove plugin from configuration
# Edit openclaw.json to remove "correlation-memory" from plugins.allow# Restore from backup if available
cp ~/.openclaw/openclaw.json.backup ~/.openclaw/openclaw.json# Restart gateway
openclaw gateway start- Confirm gateway is running
- Check logs for errors
- Validate normal functionality
- Gateway fails to start
- Memory corruption detected
- Performance degradation >50%
- Security violations
- Incorrect correlation results
- Performance degradation 20-50%
- Configuration conflicts
- User experience issues
- Minor performance impact (<20%)
- Non-critical logging issues
- Cosmetic display problems
- Documentation inconsistencies
Run the built-in test suite:
cd ~/.openclaw/extensions/correlation-memory
npm test- Test rule matching with sample queries
- Verify correlation results accuracy
- Check performance impact on memory searches
- Validate configuration edge cases
- Deploy to staging environment first
- Monitor for 24 hours with representative workload
- Collect user feedback
- Address any issues before production rollout
-
Plugin not loading
- Check OpenClaw version compatibility
- Verify plugin directory structure
- Confirm entry in plugins.allow
-
No correlations returned
- Validate correlation rules syntax
- Check rule confidence thresholds
- Verify matching mode settings
-
Performance issues
- Review correlation rule complexity
- Check for circular dependencies
- Monitor memory usage patterns
# Check gateway status
openclaw gateway status
# View recent logs
openclaw logs --lines 100
# Validate configuration
openclaw doctor
# Test correlation manually
openclaw exec correlation_check --context "your-test-context"- Memory search response time
- Correlation rule match rate
- False positive correlation rate
- User interaction with correlated results
- Gateway stability metrics
- Response time >2x baseline
- Error rate >1%
- Memory usage >80% of limit
- Correlation match rate <5% (may indicate rules need tuning)