self-repair

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Self 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:
  1. Detect — Checklist finds missing/invalid state
  2. Repair — Demon creates/fixes what's needed
  3. Log — Document what was repaired
  4. Continue — Never crash, always converge
当出现问题时:
  1. 检测 — 检查清单发现缺失/无效状态
  2. 修复 — 守护进程创建/修复所需内容
  3. 记录 — 记录修复内容
  4. 继续运行 — 绝不崩溃,始终恢复正常状态

Contents

目录内容

FilePurpose
SKILL.mdFull protocol documentation
CHECKLIST.yml.tmplChecklist template
文件用途
SKILL.md完整协议文档
CHECKLIST.yml.tmpl检查清单模板

Repair Demons

修复守护进程(Repair Demons)

DemonWatches For
checklist_repairer
Missing canonical files
sticky_note_maintainer
Missing sidecar metadata
membrane_keeper
Files outside boundaries
守护进程监控对象
checklist_repairer
缺失的标准文件
sticky_note_maintainer
缺失的附带元数据
membrane_keeper
边界外的文件

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)

SkillRelationship
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

协议符号

SymbolLink
NEVER-CRASH
PROTOCOLS.yml
REPAIR-DEMON
PROTOCOLS.yml
ROBUST-FIRST
PROTOCOLS.yml
BEST-EFFORT
PROTOCOLS.yml
符号链接
NEVER-CRASH
PROTOCOLS.yml
REPAIR-DEMON
PROTOCOLS.yml
ROBUST-FIRST
PROTOCOLS.yml
BEST-EFFORT
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

导航

DirectionDestination
⬆️ Upskills/
⬆️⬆️ RootProject Root
📜 Sistersession-log/
方向目标
⬆️ 向上skills/
⬆️⬆️ 根目录项目根目录
📜 关联模块session-log/