Skip to content

v0.2.2 — relay watch script

Choose a tag to compare

@Dax233 Dax233 released this 25 Oct 18:08
· 2 commits to main since this release

v0.2.2 收录了 relay 监控脚本(由 memory_research 工作区在 a478883 引入),并补齐打包与发布元数据。

  • scripts/watch.mjs:确定性的 Codex relay 异常检查,读取 CODEX_HOME 的 rollout heartbeat / goals / automation / liveness,只输出告警;退出码 0=无告警、10=有告警、2=检查失败,--json 供定时任务解析。
  • 规则覆盖:heartbeat_missing/stale、thread_idle、automation_inactive、template_missing、generic_receipt、stage_no_evidence、stage_stalled、goal_drift/goal_missing。
  • 两层设计:脚本不持有定时器、不会唤醒 DSH;唤醒层由 DSH schedule_create 或任务计划负责。
  • 打包修复:files 增加 scripts/** 与 watch.config.example.json,tarball 现在包含监控脚本;新增示例配置,README 补充退出码 2 与默认值说明。
  • 插件运行时(index.js/lib)未改动;离线套件 85/85 通过。

使用:npm run watch 或 node scripts/watch.mjs --json;字段见 watch.config.example.json。脚本默认值针对 seori relay,其他部署请复制示例覆盖 thread/expectedGoals。