mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-08-15 20:08:05 +00:00
1.9 KiB
1.9 KiB
auto-tmux Incident Runbook
本文件用于处理 auto-tmux 操作事故。原则:先停止继续操作,再保留证据,最后收敛到可复盘结论。
误发送到错误 pane
- 立即停止继续发送。
- 捕获错误目标 pane 输出:
skills/auto-tmux/scripts/auto-tmux.sh capture -t <wrong-target> -n 120
- 捕获原本目标 pane 输出:
skills/auto-tmux/scripts/auto-tmux.sh capture -t <expected-target> -n 120
- 在 swarm state 中标记阻塞或失败:
skills/auto-tmux/scripts/swarm-state.sh task-block --id <task-id> --owner <owner> --reason "mis-sent to wrong pane" --dir /tmp/ai_swarm
误广播
- 关闭同步面板:
tmux set-window-option synchronize-panes off
- 生成全局快照:
skills/auto-tmux/scripts/auto-tmux.sh snapshot --session ai-hub --dir /tmp/auto-tmux-incident-snapshot
- 生成阻塞报告:
skills/auto-tmux/scripts/swarm-blockers.sh --dir /tmp/ai_swarm --out /tmp/auto-tmux-incident-blockers.md
远程采集失败
- 先 dry-run 确认 SSH 命令形态:
skills/auto-tmux/scripts/remote-readonly.sh --host user@example.com --session ai-hub --dry-run
- 确认远端是否安装 tmux、session 是否存在。
- 不把
remote-readonly.sh改造成远程写操作入口。 - 失败仍需记录 host、session、错误信息和下一步验证路径。
敏感信息泄露风险
- 停止继续分享原始 pane 输出。
- 使用脱敏后的
snapshot、remote-readonly.sh或record-summary.sh重新生成证据。 - 检查附件目录,不提交
/tmp/auto-tmux-*原始证据。 - 如果 token 已泄露,按项目安全流程轮换凭证。
复盘模板
incident:
time:
operator:
target_expected:
target_actual:
command_or_payload:
impact:
evidence:
mitigation:
prevention: