返回顶部
a

aport-complete完全端口

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
197
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

aport-complete

/aport-complete — 完成前验证

您的APort通行证定义了任务完成前必须交付的内容。
此技能强制执行该契约。在未运行此技能前,不得将任何任务标记为完成。

何时使用此技能

  • - 在告知用户我已完成或任务完成之前
  • 在关闭任务、工单或GitHub Issue之前
  • 在提交PR并认为工作已完成之前
  • 在交接给其他代理之前
  • 任何您认为任务已完成的时候

前置条件

您必须拥有包含可交付物契约的APort通行证。

如果没有通行证,请先创建一个:

  • - 网页端: https://aport.id
  • 命令行: npx aport-id
  • 代理技能: 阅读 https://aport.id/skill 并按照说明操作

您需要在环境中设置 APORTAGENTID。该ID在创建通行证时返回,并保存到 aport-passport.json 文件中。

步骤 1 — 整理完成上下文

在调用API之前,请收集以下信息:

字段是否必需如何获取
taskid任务/工单/Issue标识符
outputtype
是 | code、document、analysis、plan、data 或 other |
| summary | 如果通行证要求 | 清晰描述您完成的工作 |
| tests_passing | 如果通行证要求 | 运行测试套件,报告结果 |
| authoragentid | 如果需要审核人 | 您自己的 APORTAGENTID |
| revieweragentid | 如果需要审核人 | 审核代理的 agent_id |
| criteria_attestations | 始终需要 | 通行证中每个标准对应一个条目 |
| output_content | 如果启用了输出扫描 | 您的完整输出(用于模式扫描) |

步骤 2 — 构建证明

您的通行证将验收标准定义为一系列描述。
每个标准对应一个 criterion_id — 将描述转换为小写,空格替换为连字符。

示例:

标准描述:必须生成具体的输出工件
criterion_id: 必须生成具体的输出工件

对于通行证中的每个标准,您必须提交:
json
{
criterion_id: 必须生成具体的输出工件,
met: true,
evidence: 具体证据 — 文件路径、PR链接、CI运行ID、命令输出
}

证据不能为空。我认为这已满足不是有效证据。
有效证据:PR #47 at github.com/org/repo/pull/47
有效证据:grep -r TODO src/ 返回 0 个结果
有效证据:CI运行 #1234 通过 — https://ci.example.com/runs/1234

步骤 3 — 调用验证接口

POST https://aport.io/api/verify/policy/deliverable.task.complete.v1
Content-Type: application/json

{
context: {
agentid: 您的APORTAGENT_ID,
task_id: 任务标识符,
output_type: code,
authoragentid: 您的APORTAGENTID,
summary: 您完成的工作 — 必须满足通行证中的最低字数要求,
tests_passing: true,
criteria_attestations: [
{
criterion_id: 标准-slug-此处,
met: true,
evidence: 具体证据字符串
}
]
}
}

注意:agent_id 放在 context 内部,与策略特定字段并列。

步骤 4 — 处理响应

ALLOW 响应

json { decision: { decision_id: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, allow: true, reasons: [ { code: capability_verified, message: ..., severity: info } ], created_at: 2026-03-13T09:00:00Z, signature: ..., policy_id: deliverable.task.complete.v1, agentid: ap... }, request_id: ... }

任务已完成。您可以将其标记为完成、关闭工单或提交PR。
在完成消息中引用 decision_id 以便审计追踪。

DENY 响应

json { decision: { decision_id: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, allow: false, reasons: [ { code: oap.summary_insufficient, message: 需要提供摘要..., severity: error } ] }, request_id: ... }

不要将任务标记为完成。检查 decision.reasons[].code 获取拒绝代码。修复问题后重试。

拒绝代码含义操作
oap.summaryinsufficient摘要过短或缺失重写摘要,增加更多细节
oap.testsnotpassing
测试失败或未提交 | 修复测试,重新提交并设置 testspassing: true |
| oap.criterianotmet | 某个标准的 met 为 false | 解决该标准问题,重新证明 |
| oap.evidence_missing | 证明缺少证据 | 添加具体证据字符串 |
| oap.criteria_incomplete | 缺少某个标准的证明 | 为所有通行证标准添加证明 |
| oap.selfreviewnot_allowed | 审核人与作者相同 | 请其他代理进行审核 |
| oap.blockedpatterndetected | 输出包含被阻止的内容 | 移除被阻止的模式,重新提交 |
| oap.passport_suspended | 通行证被暂停 | 联系APort — 您的通行证需要处理 |
| oap.unknown_capability | 通行证缺少 deliverable.task.complete | 创建包含可交付物契约的新通行证 |

步骤 5 — 宣布完成

一旦收到 allow: true,告知用户:

  • - 您完成了什么
  • decision_id(如果他们需要审计追踪)
  • 任何后续步骤

在收到 allow: true 之前,不要说完成。契约定义了完成,而不是您。

重试行为

拒绝代码设计用于自主重试。如果您收到:

  • - oap.summaryinsufficient → 重写摘要并立即重试
  • oap.evidencemissing → 添加证据字符串并立即重试
  • oap.testsnotpassing → 尝试修复失败的测试,然后重试
  • oap.blockedpatterndetected → 移除被阻止的内容,然后重试
  • oap.selfreviewnotallowed → 需要其他代理 — 询问用户或转给审核人
  • oap.criterianot_met → 尝试解决该标准问题,然后重试

最大重试次数:3次。同一任务被拒绝3次后,将问题反馈给用户。
不要无限循环。

链接

  • - 创建通行证:https://aport.id(网页端)或 npx aport-id(命令行)或 https://aport.id/skill(代理)
  • 您的通行证:https://aport.id/passport/您的SLUG
  • 验证决策:GET https://aport.io/api/verify/decisions/get/决策ID
  • API文档:https://aport.io/api/documentation

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 aport-complete-1776101418 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 aport-complete-1776101418 技能

通过命令行安装

skillhub install aport-complete-1776101418

下载

⬇ 下载 aport-complete v0.1.0(免费)

文件大小: 3.37 KB | 发布时间: 2026-4-15 11:43

v0.1.0 最新 2026-4-15 11:43
Initial public release of aport-complete skill.

- Enforces deliverable contract from your APort passport before allowing task completion.
- Checks acceptance criteria, summary, test results, and reviewer requirements.
- Guides users on compiling evidence and submitting attestations for each criterion.
- Provides clear allow/deny responses with codes for automated retries or correction.
- Designed for integration with any agent or coding assistant over HTTP.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部