zcl
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZCL Orchestrator (Codex Skill)
ZCL Orchestrator(Codex Skill)
This skill is for the orchestrator (you), not the spawned "zero context" agent.
本Skill面向编排器(即你),而非生成的“零上下文”Agent。
Goal
目标
Run a mission through ZCL with funnel-first evidence and deterministic artifacts under .
.zcl/Primary evidence:
.zcl/.../tool.calls.jsonl- (authoritative outcome)
.zcl/.../feedback.json
Secondary evidence (optional):
.zcl/.../notes.jsonl.zcl/.../runner.*.json- ,
.zcl/.../runner.command.txt,.zcl/.../runner.stdout.log(suite runner IO capture).zcl/.../runner.stderr.log
通过ZCL运行任务,在目录下生成漏斗优先的证据和确定性工件。
.zcl/主要证据:
.zcl/.../tool.calls.jsonl- (权威结果)
.zcl/.../feedback.json
次要证据(可选):
.zcl/.../notes.jsonl.zcl/.../runner.*.json- ,
.zcl/.../runner.command.txt,.zcl/.../runner.stdout.log(套件运行器IO捕获日志).zcl/.../runner.stderr.log
Operator Invocation Story
操作者调用流程
When an operator says "run this through ZCL: <mission>", do this:
- Resolve entrypoint: prefer on
zcl.PATH - Preflight version policy for agent reliability:
- Check latest metadata:
zcl update status --json - Prefer explicit harness floor: set ; ZCL fails fast with
ZCL_MIN_VERSION=<semver>when below floor.ZCL_E_VERSION_FLOOR
- Check latest metadata:
- Initialize project if needed: (idempotent).
zcl init - Prefer native host spawning when available (Mode A):
- Single attempt:
zcl attempt start --suite <suiteId> --mission <missionId> --prompt <promptText> --isolation-model native_spawn --json - Suite batch planning:
zcl suite plan --file <suite.(yaml|yml|json)> --json - Spawn exactly one fresh native agent session per attempt and pass the returned .
env
- Single attempt:
- Use process-runner orchestration only as an explicit fallback (Mode B):
zcl suite run --file <suite.(yaml|yml|json)> --session-isolation process --shim surfwright --json -- <runner-cmd> [args...]- lets the agent visibly type
--shim surfwrightwhile ZCL still records invocations tosurfwright ....tool.calls.jsonl - Suite run captures runner IO by default into logs for post-mortems.
runner.*
- Require the agent to finish by running:
- or
zcl feedback --ok|--fail --result ...--result-json ...
- Optionally ask for self-report feedback and persist it as secondary evidence:
zcl note --kind agent --message "..."
- Report back from artifacts (not from transcript):
- Primary: ,
tool.calls.jsonlfeedback.json - Derived:
attempt.report.json - Post-mortem: (tail trace + pointers)
zcl attempt explain [<attemptDir>]
- Primary:
当操作者说“通过ZCL运行此任务:<任务内容>”时,请执行以下步骤:
- 解析入口点:优先使用中的
PATH命令。zcl - 预检查版本策略以保障Agent可靠性:
- 检查最新元数据:
zcl update status --json - 建议设置明确的最低版本要求:设置;当版本低于要求时,ZCL会快速失败并返回
ZCL_MIN_VERSION=<语义化版本号>错误。ZCL_E_VERSION_FLOOR
- 检查最新元数据:
- 如有需要,初始化项目:(幂等操作)。
zcl init - 优先使用原生主机生成模式(模式A):
- 单个测试任务:
zcl attempt start --suite <suiteId> --mission <missionId> --prompt <promptText> --isolation-model native_spawn --json - 套件批量规划:
zcl suite plan --file <suite.(yaml|yml|json)> --json - 为每个测试任务生成一个全新的原生Agent会话,并传入返回的环境变量。
env
- 单个测试任务:
- 仅在明确需要回退时使用进程运行器编排(模式B):
zcl suite run --file <suite.(yaml|yml|json)> --session-isolation process --shim surfwright --json -- <runner-cmd> [args...]- 参数允许Agent可见地输入
--shim surfwright命令,同时ZCL仍会将调用记录到surfwright ...中。tool.calls.jsonl - 套件运行默认会将运行器IO捕获到日志中,用于事后分析。
runner.*
- 要求Agent通过执行以下命令完成任务:
- 或
zcl feedback --ok|--fail --result ...--result-json ...
- 可选:请求自我报告反馈并将其保存为次要证据:
zcl note --kind agent --message "..."
- 基于工件而非会话记录进行汇报:
- 核心工件:,
tool.calls.jsonlfeedback.json - 衍生工件:
attempt.report.json - 事后分析:(追踪尾部信息+指向相关内容)
zcl attempt explain [<attemptDir>]
- 核心工件:
Fixed Harness Preamble (Turn 1)
固定测试前置说明(第一轮)
You must tell the spawned agent:
- Finish rule: must end with (required for scoring).
zcl feedback ... - Attempt context: ZCL attempt env vars are already provided (do not invent ids).
- Tool execution rule depends on how you launched the attempt:
- If running under : the agent should invoke
zcl suite run --session-isolation process --shim surfwrightnormally (nosurfwright ...ceremony).zcl run - If no shim is installed: all actions must go through ZCL funnels (e.g. ) so evidence exists.
zcl run -- ...
- If running under
你必须告知生成的Agent:
- 完成规则:必须以命令结束(评分的必要条件)。
zcl feedback ... - 任务上下文:ZCL任务环境变量已提供(请勿自行生成ID)。
- 工具执行规则取决于你启动任务的方式:
- 如果是通过启动:Agent应正常调用
zcl suite run --session-isolation process --shim surfwright命令(无需surfwright ...的繁琐流程)。zcl run - 如果未安装shim:所有操作必须通过ZCL漏斗执行(例如),以确保生成证据。
zcl run -- ...
- 如果是通过
Turn 2 (Default)
第二轮(默认)
One sentence mission prompt. Example:
"Use the SurfWright CLI to navigate to https://example.com and record TITLE=<...> via ."
zcl feedback --ok --result ...单句任务提示。示例:
"使用SurfWright CLI导航至https://example.com,并通过`zcl feedback --ok --result ...`记录TITLE=<...>。"
Turn 3 (Optional)
第三轮(可选)
Only if needed: request structured formatting or classification, but do not lead the agent during discovery.
仅在需要时:请求结构化格式或分类,但在Agent探索过程中不要进行引导。
Expectations (Suite Guardrails)
预期(套件约束)
Suite can be grounded in:
expects- (
feedback.json,expects.ok)expects.result.* - trace-derived constraints (), e.g.:
expects.trace.*- ,
maxToolCallsTotal,maxFailuresTotalmaxRepeatStreak - to ensure SurfWright was actually invoked
requireCommandPrefix: ["surfwright"]
套件的配置可基于:
expects- (
feedback.json,expects.ok)expects.result.* - 追踪衍生的约束(),例如:
expects.trace.*- ,
maxToolCallsTotal,maxFailuresTotalmaxRepeatStreak - 用于确保实际调用了SurfWright
requireCommandPrefix: ["surfwright"]
Local Install (CLI + Skill)
本地安装(CLI + Skill)
If is not on (or you want it rebuilt from this checkout):
zclPATH- Build + install the CLI and link the skill:
scripts/dev-local-install.sh
- Optional: auto-install on / branch switch:
git pullscripts/dev-install-git-hooks.sh
如果不在中(或你想从当前代码库重新构建):
zclPATH- 构建并安装CLI,同时关联Skill:
scripts/dev-local-install.sh
- 可选:在/ 切换分支时自动安装:
git pullscripts/dev-install-git-hooks.sh