360 Secure SkillHub
360 安全技能中心

wander

为长时间运行的远程任务提供收尾流程:解析任务所属平台、运行 ID、仓库与分支,前台或后台轮询到权威终态,超时记为未完成而非失败,完成时按已配置渠道通知,避免把触发、任务 ID 或产物当作成功。含可选 GitHub Actions 适配说明。

分类:自动化
erergb
erergb
热度 38.68
最近更新 2026-11-19 17:40:45

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add erergb/wander
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
wander
description
Close the loop on long-running remote work: pick the right completion signal per platform (CI, EAS, deploy, releases), run monitoring in the background, notify on finish, and never treat trigger as success. Includes GitHub Actions via the Wander scripts when applicable.

Wander

Follow the requested remote job to its authoritative terminal result. A trigger, job ID, uploaded artifact or launched watcher is not completion.

Resolve the owning platform and exact job/run ID, repository/project, branch/head and trigger. Monitor an existing job without starting another. A recent success at the same commit does not identify this dispatch; CI proves a downstream deploy only when its contract actually includes that result.

Use the platform's supported status API/CLI or sufficient existing monitor. Wait in the foreground when requested, otherwise use a background process while useful work continues. Set a finite wait budget and keep the task open through its required outcome. On timeout retain identity/status as incomplete or unknown, not failure. A detached monitor may survive terminal closure, not host shutdown; promise only notification routes actually configured. Recurring automation needs a separate recurring request and must not replace following this finite job.

For the optional GitHub adapter, read its guide. Resolve WANDER_HOME, gh and jq; select the unique workflow/branch/exact-head run or inspect dispatch identity and set WANDER_RUN_ID. Use WANDER_HEAD_SHA for an explicitly verified head different from local HEAD, and resolve anew after a push. Registry timing hints are not identity evidence.

Foreground codes are 0 verified success, 1 non-success/error, 124 budget exhausted; background/detached 0 means launch only. Defaults are 120 polls × 10 seconds plus API latency; alternative WANDER_MAX_POLLS/WANDER_POLL_SECONDS must be positive.

Read terminal state and relevant artifacts. Investigate the exact failed/cancelled job and fix within scope; on success continue the already authorized next step. Success grants no new merge/deploy/paid-rerun/message permission. Report the job, result, useful links, actions and remaining limits.