360 Secure SkillHub
360 安全技能中心

gdd-route-omp

通过 gdd Skill 的共享 detached runner 启动 oh-my-pi/OMP 打印模式长任务,设置超时并轮询 status;依据 NDJSON 事件日志、answer.md 和 stopReason 判定完成,失败时按记录的 session_id 在同一阶段恢复,并对 ECONNREFUSED 做有界重试。

分类:自动化
wxxb789
热度 0.00
最近更新 2026-11-21 05:31:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wxxb789/hoa/gdd-route-omp
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
name
gdd-route-omp
description
Launch a detached oh-my-pi/OMP print-mode job so omp -p survives the dispatching session. For long headless tasks or a turn killed midway, set a timeout, poll runner status, inspect the NDJSON event log and resume from the saved session ID. Not for tmux-agent-control.
metadata
{"revision":"7","areas":"software-development,work-management","targets":"pi","summary":"detached runner for long `omp -p` runs; polled completion, session-id recovery (requires skill `gdd`)","summary_zh":"脱离会话的 runner 跑 `omp -p` 长任务;轮询完成、按 session id 恢复(需要 skill `gdd`)","kind":"entry"}

gdd-route-omp

Run long OMP print-mode jobs through GDD's shared detached runner. Install both skills. For detachment, timeouts, cleanup, state and artifact formats, see GDD transport. Use its runner, not a bare background job.

Dispatch

  • GDD selects OMP by default when no route is configured; pass --agent omp for standalone dispatch. OMP_BIN overrides the executable on PATH. Use a native executable on Windows for multiline prompts. Set an explicit model and compatible thinking effort when they must be reproducible. The route forwards --profile, model, thinking, and the explicit resume ID; the prompt is last. Results use prompted JSON, not a native schema flag.
  • The adapter selects print mode, JSON events and non-interactive approval (yolo). Launch only with operator authority, an isolated worktree, bounded permissions and independent gates. Agent output is not authorization to publish or alter shared state.
  • The optional POSIX scripts/omp-run.sh sets GDD_AGENT=omp and forwards to the shared runner; OMP_RUN_SH can override it. The legacy runner --backend is ignored with a warning; it does not select a supervisor.
uv run ../gdd/scripts/agent_run.py start --agent omp --name SLUG --prompt FILE --cwd DIR --max-time DURATION
uv run ../gdd/scripts/agent_run.py status SLUG

Only if a script command fails (for example uv is not found), read the runner troubleshooting reference.

Observe and accept

  1. Poll runner status at turn boundaries; use bounded tail for event progress, not raw NDJSON or process-name matching. Budget time for all child work; serialize heavy gates on constrained hosts.
  2. Require the last assistant message_end.stopReason to be present and not error, aborted, or length. Read answer.md and the result; exit zero alone cannot prove completion, especially for empty, truncated or still-waiting answers. Require actual gate exit codes; a background verifier may die at runner cleanup. Re-run the repo gate yourself.
  3. On ECONNREFUSED, check whether operator configuration or logs confirm an endpoint restart. If confirmed, retry once after recovery; if it fails again, report or select an authorized fallback rather than retrying indefinitely. Do not infer a model defect.

Recover

Use runner list or status to distinguish a live run from a stale one and recover its recorded session_id. Start a new named runner invocation with --agent omp and --resume <id>; the prompt should state what remains in the same interrupted stage. Do not use implicit last-session selection or TTY-only restoration for headless recovery. For interactive steering, use the installed CLI's interactive resume on that ID only after the headless process has stopped. Never attach two writers to one session.