Skip to main content
Huoban 的 public examples 是可由 schema 和 CLI 验证的协议对象,不是 runtime 演示。 当前 workspace 有 18 个对象、10 个顶层 kind。Requirement、Preflight evidence 和 Lifecycle Handler 嵌入现有对象,不增加 kind。

AGENTS.md Profile

运行当前 import、derive 和 export CLI,审查规则推断。

idea-to-spec-review

用 Flow、Run、Checkpoint 和 Artifact 组成可验证工作流。

SKILL.md Adapter

用 Adapter、Requirement、Trust 和 Policy 描述外部能力。

Preflight 与 Lifecycle

区分 resolution、readiness、授权和 handler runtime。

四条示例路径

这些 examples/... 值是 Huoban source repo 内的路径,不是文档站 URL。本章在各示例页内嵌关键完整对象,避免把 source checkout 当成阅读前提。

对象清单

一个完整安全对象

下面逐字取自 examples/policies/safe-defaults.yaml
这个对象说明副作用规则,但不会自行执行审批或授予权限。

嵌入式执行契约

复现顺序

在 source repo 根目录运行:
Profile 迁移单独运行:
完整 deterministic 检查:

预期 workspace 摘要

npm run explain 还会显示:
  • Flow generation 2 的两个 capability-first stages。
  • report-stage-success Lifecycle Handler。
  • dry-run Run 的三个 role bindings。
  • Run scope Preflight report 的逐项 snapshot、入口输入、引用、binding 与 Requirement evidence。
  • 两个 Adapter 各自引用的 Trust 对象。

不要从示例推断的行为

AGENTS.md Profile 开始,或直接进入 Preflight 与 Lifecycle