v3.8.0: AI Monitoring — self-healing watchdog with 3-tier response system

- HealthWatcher thread: monitors proxy /health every 5s
- LogAnalyzer thread: tails cc-debug.log for 18 failure signal patterns
- Tier 1 rule engine: 14 rules for instant auto-recovery (< 1s)
- Tier 2 incident store: JSON pattern database with success rates
- Tier 3 AI diagnostic agent: calls configurable provider/model for novel failures
- AIMonitoringWindow GUI: ON/OFF toggle, provider/model/API key selector, incident log
- 30 fault types catalogued across 5 categories (A-E)
- Enhanced /health endpoint with memory_mb, uptime_s, requests_total
- Auto-restart proxy, auto-clear schema cache, kill stale processes
- Safety: rate-limited AI calls, restart caps, cooldowns per pattern
- AI Monitoring design spec (AI-MONITORING-DESIGN.md)
- 54 self-test patterns passing
This commit is contained in:
admin
2026-05-22 22:36:16 +04:00
Unverified
parent 4334540f33
commit 080f2bc56e
4 changed files with 621 additions and 17 deletions

View File

@@ -3,11 +3,11 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if [ -f "$SCRIPT_DIR/codex-launcher_3.7.0_all.deb" ]; then
echo "Installing codex-launcher_3.7.0_all.deb ..."
sudo dpkg -i "$SCRIPT_DIR/codex-launcher_3.7.0_all.deb"
if [ -f "$SCRIPT_DIR/codex-launcher_3.8.0_all.deb" ]; then
echo "Installing codex-launcher_3.8.0_all.deb ..."
sudo dpkg -i "$SCRIPT_DIR/codex-launcher_3.8.0_all.deb"
echo ""
echo "Installed v3.7.0 via .deb package."
echo "Installed v3.8.0 via .deb package."
echo " translate-proxy.py -> /usr/bin/translate-proxy.py"
echo " codex-launcher-gui -> /usr/bin/codex-launcher-gui"
echo " cleanup-codex-stale -> /usr/bin/cleanup-codex-stale.sh"