docs: add 4 iron rules for AI game safety protocol
- Rule 1: Pause before asking user questions - Rule 2: Pause when exiting response state (game must not run unattended) - Rule 3: Pause before every write operation - Rule 4: Save before major operations, load for rollback
This commit is contained in:
18
SKILL.md
18
SKILL.md
@ -255,6 +255,24 @@ gameSpeed: 0 ← 0=暂停, 1=1x, 2=2x, 3=3x
|
||||
|
||||
这是 AI 操作缺氧的标准协议。所有决策和操作必须遵循此协议。
|
||||
|
||||
### 铁律(必须遵守)
|
||||
|
||||
```
|
||||
铁律 1: 任何时候 AI 需要向用户提问,必须先暂停游戏。
|
||||
→ python3 tools/oni_api.py pause "Waiting for user input"
|
||||
→ 用户回答后 AI 恢复操作时 unpause
|
||||
|
||||
铁律 2: 任何时候 AI 结束回答/退出操作状态,必须确保游戏处于暂停态,
|
||||
除非用户明确要求不暂停。
|
||||
→ 如果游戏正在运行且 AI 不再操作 → 必须暂停
|
||||
→ 原因:防止游戏在 AI 不监控时状态恶化(窒息/过载/高温)
|
||||
|
||||
铁律 3: 任何时候 AI 执行写操作(dig/build/deconstruct/batch/pipe/wire),
|
||||
必须先暂停、后恢复。
|
||||
|
||||
铁律 4: 重大操作前必须先 save 存档,失败后允许 load 回滚。
|
||||
```
|
||||
|
||||
### 核心操作循环
|
||||
|
||||
每次 AI 与游戏交互都必须遵循这个五步循环:
|
||||
|
||||
Reference in New Issue
Block a user