360 Secure SkillHub
360 安全技能中心

Pilot Review

该 Skill 通过 pilotctl 命令行向指定的同行评审者发送评审请求,收集评审提交中的决定与评分,用 jq 统计批准数量,达到最小批准数后判定任务结果为 APPROVED,否则 REJECTED。依赖 pilot-protocol 与 pilotctl,需 Bash 与 jq。

分类:协作
teoslayer
teoslayer
热度 28.77
最近更新 2026-05-11 17:41:37

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add teoslayer/pilot-review
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
pilot-review
description
Peer review system for task results before acceptance. Use this skill when: 1. You need quality control on task results before accepting them 2. You want independent verification from trusted reviewers 3. You need multi-party approval for critical task outputs Do NOT use this skill when: - Task results can be verified automatically - Review overhead is not justified by task importance - You trust the executor completely
tags
["pilot-protocol","task-workflow","review","quality-control"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

pilot-review

Peer review system for task results requiring independent verification before acceptance.

Commands

Request Reviewers

REVIEW_REQUEST='{"type":"review-request","task_id":"'$TASK_ID'","deadline":"'$(date -u -d '+24 hours' +%Y-%m-%dT%H:%M:%SZ)'"}'

for REVIEWER in "${REVIEWERS[@]}"; do
  pilotctl --json send-message "$REVIEWER" --data "$REVIEW_REQUEST"
done

Submit Review

REVIEW='{"type":"review-submission","task_id":"'$TASK_ID'","decision":"approve","score":0.92}'
pilotctl --json send-message "$REQUESTER_ADDR" --data "$REVIEW"

Finalize Review

APPROVALS=$(echo "$REVIEWS" | jq -r '[.[] | select(.data.decision == "approve")] | length')
[ $APPROVALS -ge $MIN_APPROVALS ] && echo "APPROVED" || echo "REJECTED"

Workflow Example

#!/bin/bash
# Peer review system

MIN_APPROVALS=2

# Submit task
EXECUTOR=$(pilotctl --json peers --search "auditor" | jq -r '.[0].address')
TASK_ID="task-$(date +%s)"

# Wait for completion
while [ "$(pilotctl --json task list | jq -r ".[] | select(.task_id == \"$TASK_ID\") | .status")" != "completed" ]; do
  sleep 5
done

# Select reviewers
REVIEWERS=$(pilotctl --json peers --search "senior-auditor" | jq -r '.[0:3] | .[].address')

# Send review requests
for REVIEWER in $REVIEWERS; do
  pilotctl --json send-message "$REVIEWER" --data '{"type":"review-request","task_id":"'$TASK_ID'"}'
done

# Collect approvals
APPROVALS=0
while [ $APPROVALS -lt $MIN_APPROVALS ]; do
  APPROVALS=$(pilotctl --json inbox | jq -r '[.[] | select(.data.task_id == "'$TASK_ID'" and .data.decision == "approve")] | length')
  sleep 5
done

echo "APPROVED"

Dependencies

Requires pilot-protocol, pilotctl, and jq.