fft 调试
- 作者仓库星标 0
- 作者仓库 nano-core
FFT Debug
Use this skill for incident triage and deterministic debugging of FFT_nano host and container paths.
When to use this skill
- Use when runtime behavior is failing, degraded, or inconsistent.
- Use when investigating provider wiring, routing, logs, or IPC state.
- Use when producing reproducible triage output before any fix attempt.
When not to use this skill
- Do not use as the default path for normal feature work.
- Do not use when the request is purely product behavior, not incident/debug.
- Do not use to justify destructive cleanup without explicit approval.
Guardrails
- Never use destructive git commands unless explicitly requested.
- Preserve unrelated worktree changes.
- Keep admin/coder controls in main chat only; do not bypass main-chat restrictions.
Fast Triage
- Confirm single instance lock:
ls -la data/fft_nano.lock
- Check startup/runtime logs:
tail -n 200 logs/fft_nano.logtail -n 200 logs/fft_nano.error.log
- Check per-group container logs:
ls -la groups/<group>/logstail -n 200 groups/<group>/logs/*
- Inspect registration + IPC state:
cat data/registered_groups.jsonfind data/ipc -maxdepth 3 -type f
Common Failure Modes
- Provider key missing: Pi reports no models available.
- Wrong
PI_API/PI_MODEL: model/provider not found. - Multiple bot instances: Telegram getUpdates conflict.
- Docker daemon unavailable or runtime permission issues.
Recommended Debug Commands
- Build/runtime checks:
npm run typechecknpm test
- Dry-run routing check (no live model call):
FFT_NANO_DRY_RUN=1 ./scripts/start.sh dev telegram-only
- Runtime detail logging:
LOG_LEVEL=debug ./scripts/start.sh dev telegram-only
Telegram Debug Path
- Verify bot token present at runtime.
- In bot DM:
/id,/status,/help. - Admin checks in main chat only:
/tasks,/groups,/panel,/coder,/coder-plan. - If
/main <secret>fails, verifyTELEGRAM_ADMIN_SECRETand restart.
Container Runtime Debug
- Docker runtime:
docker infodocker ps
- Host runtime (unisolated):
- verify explicit flags:
CONTAINER_RUNTIME=host,FFT_NANO_ALLOW_HOST_RUNTIME=1
- verify explicit flags:
Database/State Debug
- SQLite file location:
store/messages.db - Router state:
data/router_state.json - Group registry:
data/registered_groups.json - Per-group Pi state:
data/pi/<group>/.pi/
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @0-CYBERDYNE-SYSTEMS-0 · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- Docker
- 底层运行要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Use when runtime behavior is failing, degraded, or inconsistent. Use when investigating provider wiring, routing, logs, or IPC state. Use when producing reproducible triage output before any fix attempt.
Do not use as the default path for normal feature work. Do not use when the request is purely product behavior, not incident/debug. Do not use to justify destructive cleanup without explicit approval.
Never use destructive git commands unless explicitly requested. Preserve unrelated worktree changes. Keep admin/coder controls in main chat only; do not bypass main-chat restrictions.
Confirm single instance lock: ls -la data/fftnano.lock Check startup/runtime logs:
Provider key missing: Pi reports no models available. Wrong PIAPI/PIMODEL: model/provider not found. Multiple bot instances: Telegram getUpdates conflict.
Build/runtime checks: npm run typecheck npm test
# FFT Debug
Use this skill for incident triage and deterministic debugging of FFT_nano host and container paths.
## When to use this skill
- Use when runtime behavior is failing, degraded, or inconsistent.
- Use when investigating provider wiring, routing, logs, or IPC state.
- Use when producing reproducible triage output before any fix attempt.
## When not to use this skill
- Do not use as the default path for normal feature work.
- Do not use when the request is purely product behavior, not incident/debug.
- Do not use to justify destructive cleanup without explicit approval.
## Guardrails
- Never use destructive git commands unless explicitly requested.
- Preserve unrelated worktree changes.
- Keep admin/coder controls in main chat only; do not bypass main-chat restrictions.
## Fast Triage
1. Confirm single instance lock:
- `ls -la data/fft_nano.lock`
2. Check startup/runtime logs:
- `tail -n 200 logs/fft_nano.log`
- `tail -n 200 logs/fft_nano.error.log`
3. Check per-group container logs:
- `ls -la groups/<group>/logs`
- `tail -n 200 groups/<group>/logs/*`
4. Inspect registration + IPC state:
- `cat data/registered_groups.json`
- `find data/ipc -maxdepth 3 -type f`
## Common Failure Modes
- Provider key missing: Pi reports no models available.
- Wrong `PI_API`/`PI_MODEL`: model/provider not found.
- Multiple bot instances: Telegram getUpdates conflict.
- Docker daemon unavailable or runtime permission issues.
## Recommended Debug Commands
- Build/runtime checks:
- `npm run typecheck`
- `npm test`
- Dry-run routing check (no live model call):
- `FFT_NANO_DRY_RUN=1 ./scripts/start.sh dev telegram-only`
- Runtime detail logging:
- `LOG_LEVEL=debug ./scripts/start.sh dev telegram-only`
## Telegram Debug Path
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to use this skill → When not to use this skill → Guardrails → Fast Triage → Common Failure Modes → Recommended Debug Commands
要点 -> Use this skill for incident triage and deterministic debugging of FFTnano host and container paths. · - Use when runtime behavior is failing, degraded, or inconsistent. · - Do not use as the default path for normal feature work. · - Never use destructive git commands unless explicitly requested. · 1. Confirm single instance lock: - ls -la data/fftnano.lock 2. · - Provider key missing: Pi reports no models available. · - Verify bot token present at runtime.
文件/命令 -> ls -la data/fftnano.lock · tail -n 200 logs/fftnano.log · tail -n 200 logs/fftnano.error.log · ls -la groups/<group>/logs · tail -n 200 groups/<group>/logs/ · cat data/registeredgroups.json · find data/ipc -maxdepth 3 -type f · PIAPI
内容 SHA-256 -> 1aefc08d3f0c
原文结构
适用与边界
原文中的明确线索
ls -la data/fftnano.lock、tail -n 200 logs/fftnano.log、tail -n 200 logs/fftnano.error.log、ls -la groups/<group>/logs、tail -n 200 groups/<group>/logs/、cat data/registeredgroups.json、find data/ipc -maxdepth 3 -type f、PIAPI