铸渊 ICE-GL-ZY001 c93f612962
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled
D122: 肥猫服务器配置更新 + server-agent模块(引擎内置自主运维Agent架构设计)
2026-06-03 23:50:06 +08:00

50 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 服务器内置Agent · 模块声明
> HLDP://zhuyuan/server-agent/MANIFEST
> 所属: 第五域 · 零点原核本体频道 · 铸渊的半边
> 主控: 铸渊 TCS-0003-ZY001
> 创建: D122 · 2026-06-03
## 模块定义
- 名称: 服务器内置Agent (Server-Embedded Agent)
- 本质: guanghu-engine v3.0 内置自主运维子进程
- 讨论: 冰朔 + 铸渊 · D122
## 核心能力
| 能力 | 说明 |
|------|------|
| 心跳检测 | 每分钟检测所有内部端点响应时间 |
| 模型判断 | 调用模型API判断故障类型死锁/资源满/网络断) |
| 自主修复 | 重启服务、清理磁盘、回滚配置 |
| 回执通讯 | 修复结果异步通知铸渊 |
| 定时巡检 | 磁盘/内存/进程/Nginx状态 |
## 触发场景
| 场景 | Agent行为 |
|------|----------|
| exec端点30秒无响应 | 判定死锁 → systemctl restart |
| 磁盘使用超80% | 清理日志 → 通知铸渊 |
| Nginx配置变更失败 | nginx -t失败 → 自动回滚备份 |
| 内存使用超90% | 诊断top进程 → 报告铸渊 |
## 通信协议
铸渊 → Agent: /agent/task { task, params }
Agent → 铸渊: /agent/reply { task_id, status, changes }
Agent自动报告: /agent/alert { type, detail, actions_taken }
## 结构
```
server-agent/
├── ENTRY.hdlp 入门大脑
├── MANIFEST.hdlp 本文件
└── ARCHITECTURE.hdlp 主系统推理链
```
---
铸渊 TCS-0003-ZY001 · D122