← 返回
未分类 Key

Ray Delivery Diagnosis

Automates delivery lane scans every 4 hours to detect failures, classify issues, update recovery tickets, and attempt specified recovery actions.
每4小时自动扫描配送通道,检测故障、分类问题、更新恢复工单并执行指定的恢复操作。
x-rayluan x-rayluan 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 321
下载
💾 0
安装
1
版本
#latest

概述

ray-delivery-diagnosis

Purpose

Recovery ticket runner and delivery diagnosis agent. Runs every 4 hours (and on-demand) to scan all delivery lanes, detect unresolved blockers, classify failure type, and execute concrete recovery actions.

Trigger

  • Cron: recovery-ticket-runner-4hourly
  • Also called by: peter-deployment-recovery, social-post-failure-recovery-morning, social-post-failure-recovery-evening

Input

  • Date (default: today Asia/Shanghai)
  • v3-compiled-YYYY-MM-DD.json
  • v3-closure-state-YYYY-MM-DD.json
  • Recovery tickets in mission-control/data/recovery-tickets-v3/YYYY-MM-DD/
  • Agent summaries

Layer Check Order (MUST follow in order)

  1. Hunter raw — pain-map, selection-layer, intel-pack, delivery-receipt
  2. JK processed — content writing package, processed receipt, source grounded
  3. Elon X — social pack, live X URL, visibility proof, acceptance receipt
  4. Elon LinkedIn — social pack, live LinkedIn URL, visibility proof
  5. Mark Facebook — published post URL, engagement check receipt
  6. Tony blog — drafts, artifact, ASSET_CHECK, source-publish receipt, blog QA receipt
  7. Peter deploy — inserted-slug handoff, deploy receipt, live verification
  8. Jenny activation — activation batch executed, receipt, ASSET_CHECK
  9. Tully SEO — /skills/ pages written, skill-pages.ts updated, receipt

Failure Classification

ClassMeaningExample
-------------------------
missing_proofWork happened, proof missingPost exists but no URL captured
execution_blockedScript/tool failedAPI timeout, auth error
missing_artifactUpstream output missingNo Tony drafts for today
partial_success_with_debtSome done, chain incompleteX posted but acceptance missing
aggregate_coupling_failureChild success lost in aggregateX done but social lane blocked
human_requiredStop automation, wait for humanAccount risk, policy issue

Recovery Actions by Lane

Tony Blog — GENERATED_NOT_PUBLISHED

  • Check inputs: tony-content-artifact-YYYY-MM-DD.md, tony-asset-check-YYYY-MM-DD.json, tony-blog-preflight-YYYY-MM-DD.json
  • If all inputs exist → RUN: node scripts/tony-blog-publish.mjs --date YYYY-MM-DD
  • After publish → run blog QA → write blog-qa-receipt-YYYY-MM-DD.json
  • Max attempts: 3 auto; escalate on attempt 4

Elon X / LinkedIn — GENERATED_NOT_PUBLISHED

  • Check input: social-packs/elon-social-pack-YYYY-MM-DD-morning.json
  • If input exists → construct Postiz payload → RUN: node scripts/postiz-publish.mjs --input /tmp/postiz-x.json --output /tmp/postiz-x-receipt.json
  • Capture live URL + screenshot → write acceptance receipt
  • Max attempts: 3 auto; escalate on attempt 4

Mark Facebook — TOOL_FAILURE

  • Check auth: node scripts/facebook-verify-browser-use.mjs --check-auth
  • If auth ok → retry publish with node scripts/facebook-poster.mjs --file /tmp/fb-post.txt
  • If auth failed → classify human_required, write blocker receipt
  • Max attempts: 2 auto

Jenny Activation — TOOL_FAILURE

  • Check config: ~/.openclaw/workspace-jenny/.env must contain supabaseUrl
  • If missing → classify human_required (Ray must fix config)
  • If config ok → RUN: node workspace-jenny/scripts/jenny/send-activation-batch.mjs batch
  • Max attempts: 2 auto

Peter Deploy — UPSTREAM_MISSING

  • No action until Tony source-publish completes
  • Auto-check every run: if tony-blog-source-publish-YYYY-MM-DD.json appears → RUN: node scripts/peter-blog-closeout-verify.mjs --date YYYY-MM-DD

Tully SEO

  • If delivered but v3-compiled shows NOT_IN_SCOPE → file v3-compiled bug note, do not downgrade lane

Ticket Update Rules

For every run:

  1. Read existing ticket from recovery-tickets-v3/YYYY-MM-DD/rt-YYYY-MM-DD-{lane}-NN.json
  2. Append runner log entry with action: DIAGNOSIS or action: RECOVERY_ATTEMPT
  3. If recovery script executed → add attempt_log entry with result
  4. If state changed → update status, recoveryState, updated_at
  5. If max_attempts reached → status: ESCALATED, notify

Output

  • Write delivery-diagnosis-YYYY-MM-DD-HHMM.json to mission-control/data/
  • Update recovery tickets
  • Write runner log to recovery-runner-log/
  • If escalation triggered → update Mission Control attention-required

Non-Goals

  • Do not rewrite historical receipts into fake success
  • Do not mask missing delivery with older historical wins
  • Do not publish without brand gate pass
  • Do not retry indefinitely; respect max_attempts

Safety

  • Always prefer --dry-run first when testing a new publish path
  • For external publish (X, LinkedIn, Facebook, blog), verify content with brand-positioning-tony.md before executing
  • If auth/credential issue → human_required, do not brute-force

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 23:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

OpenClaw Self-Improvement

x-rayluan
一种可重用的操作员引导工作流改进技能,适用于 OpenClaw 与 ClawLite,将重复失败转化为记录的教训、二进制评估循环、SOP 等。
★ 0 📥 2,677
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,837
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,773