self-repair
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSelf Repair
自我修复
Missing state triggers repair, not failure.
Checklist-based self-healing demons.
[!IMPORTANT] NEVER-CRASH — The core principle. Repair instead of fail. Always.
缺失状态触发修复,而非故障报错。
基于检查清单的自修复守护进程(Demon)。
[!IMPORTANT] NEVER-CRASH — 核心原则。优先修复而非报错。始终如此。
The Principle
核心原则
When something's wrong:
- Detect — Checklist finds missing/invalid state
- Repair — Demon creates/fixes what's needed
- Log — Document what was repaired
- Continue — Never crash, always converge
当出现问题时:
- 检测 — 检查清单发现缺失/无效状态
- 修复 — 守护进程创建/修复所需内容
- 记录 — 记录修复内容
- 继续运行 — 绝不崩溃,始终恢复正常状态
Contents
目录内容
| File | Purpose |
|---|---|
| SKILL.md | Full protocol documentation |
| CHECKLIST.yml.tmpl | Checklist template |
| 文件 | 用途 |
|---|---|
| SKILL.md | 完整协议文档 |
| CHECKLIST.yml.tmpl | 检查清单模板 |
Repair Demons
修复守护进程(Repair Demons)
| Demon | Watches For |
|---|---|
| Missing canonical files |
| Missing sidecar metadata |
| Files outside boundaries |
| 守护进程 | 监控对象 |
|---|---|
| 缺失的标准文件 |
| 缺失的附带元数据 |
| 边界外的文件 |
The Intertwingularity
交叉关联性
Self-repair is the immune system. It monitors everything.
mermaid
graph LR
SR[🔧 self-repair] -->|monitors| SL[📜 session-log]
SR -->|monitors| WS[working-set.yml]
SR -->|creates| HOT[hot.yml / cold.yml]
SR -->|repairs| FILES[missing files]
SR -->|part of| KERNEL[kernel/self-healing]自我修复是系统的免疫系统。它监控所有内容。
mermaid
graph LR
SR[🔧 self-repair] -->|monitors| SL[📜 session-log]
SR -->|monitors| WS[working-set.yml]
SR -->|creates| HOT[hot.yml / cold.yml]
SR -->|repairs| FILES[missing files]
SR -->|part of| KERNEL[kernel/self-healing]Dovetails With
关联模块
Sister Skills
关联技能(Sister Skills)
| Skill | Relationship |
|---|---|
| session-log/ | Self-repair monitors log integrity |
| summarize/ | Triggered when context exceeds budget |
| honest-forget/ | Graceful memory decay |
| 技能 | 关系 |
|---|---|
| session-log/ | 自我修复监控日志完整性 |
| summarize/ | 当上下文超出预算时触发 |
| honest-forget/ | 优雅的内存衰减机制 |
Protocol Symbols
协议符号
| Symbol | Link |
|---|---|
| PROTOCOLS.yml |
| PROTOCOLS.yml |
| PROTOCOLS.yml |
| PROTOCOLS.yml |
| 符号 | 链接 |
|---|---|
| PROTOCOLS.yml |
| PROTOCOLS.yml |
| PROTOCOLS.yml |
| PROTOCOLS.yml |
Kernel
内核(Kernel)
- kernel/self-healing-protocol.md — Full specification
- schemas/agent-directory-schema.yml — What gets repaired
- kernel/self-healing-protocol.md — 完整规范
- schemas/agent-directory-schema.yml — 修复对象定义
Navigation
导航
| Direction | Destination |
|---|---|
| ⬆️ Up | skills/ |
| ⬆️⬆️ Root | Project Root |
| 📜 Sister | session-log/ |
| 方向 | 目标 |
|---|---|
| ⬆️ 向上 | skills/ |
| ⬆️⬆️ 根目录 | 项目根目录 |
| 📜 关联模块 | session-log/ |