一键导入
annotation-filling
由 annotation-subagent 在 annotation round worktree 中填写或修正 C annotation,并在同一正式相对路径的 case_lib 中维护数学 spec declarations;完成后交给 annotation-checking。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
由 annotation-subagent 在 annotation round worktree 中填写或修正 C annotation,并在同一正式相对路径的 case_lib 中维护数学 spec declarations;完成后交给 annotation-checking。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
由 annotation-subagent 在 annotation-filling 后检查 annotation round worktree 中的 C annotation 和 case_lib spec declarations,判断是否可交给 main agent 执行 annotation-check-round。
由 main agent 在 final-candidate-apply 后执行最终检查,确认 generated files、manual proofs、case_lib 和 main worktree 状态一致。
由 group-worker 使用,读取 group_worker_input.json,在 group worktree 中证明 assigned witness blocks,并只在 group-local case_lib 中新增带当前 group_id suffix 的 helper declarations 和必要 Rocq 官方库 import。
由 vc-checking-subagent 在 vc-checking round worktree 中检查 generated manual VC 是否语义可证,并输出与当前 source_goal_version 绑定的 proof group plan。
为单个验证 case 定义 controller、main agent、fixed phase subagents、controller-owned vc-proving-preparing container、JSON handoff files、case_lib、group-worker deterministic merge 和 final-check 的协作合同。
| name | annotation-filling |
| description | 由 annotation-subagent 在 annotation round worktree 中填写或修正 C annotation,并在同一正式相对路径的 case_lib 中维护数学 spec declarations;完成后交给 annotation-checking。 |
本 skill 固定由 annotation-subagent 使用。annotation-subagent 只在 annotation round worktree 中工作,不写 main worktree;脚本只能提供 deterministic checks 或 file helpers,不能启动 subagent。
docs/annotation-guide.md:允许修改范围、spec 设计、annotation 风格、常见错误和同 round 自修。docs/array-string-guide.md:builtin array / string 谓词和选型。docs/branch-control-annotation.md:复杂 if/else、多路径 assertion、branch naming、Destruct、Branch join、Branch clear 和 multi-inv case 映射。docs/pure-proposition-predicates.md:annotation-facing pure proposition predicate 的选择和书写规则。docs/qcp-reference-guide.md:canonical symbolic execution、QCP evidence、reference policy 和 resource reclaim 错误。docs/correct-examples/binary-search-annotation.md:二分答案正例解析,并指向 split_array_largest_sum 配套 C annotation。docs/incorrect-examples/algorithm-mirror.md:max_sub_array 反例解析,说明 algorithm-mirror spec 为什么应回退。.ccase_libproblem_context,作为题目语义的结构化 source of truth;字段为空时按 C 程序、函数名和 headers 推断 candidate spec。case_lib_seed_evidence,若 status 为 created,本次 spawn 必须尝试 bootstrap 数学 spec declarations。source_version.c、headers、允许的当前 round generated context、正反例提示和 case_lib。case_lib;若发现自己在 Rocq 中复写 C loop,先回到 predicate-first 设计。-I / -slp 的 QCP driver 检查目标 .c;qcp-mcp 只作独立交互检查,不作为不能传参 wrapper 的 formal evidence。annotation-checking。case_lib check 或 annotation-checking 未通过,按 docs/annotation-guide.md 在同一 spawn 和同一 annotation round worktree 中继续修复,直到 ready、stale、compact-error 或必要工具重大错误;self-repair budget 只作为工作量 evidence,不是自动 blocked 条件。agent_report.json.agent_result.annotation,再写 agent_output.txt 作为 non-authoritative reuse note。annotation-subagent 的 blocked 只用于必要工具发生重大错误:canonical QCP driver、coq_tooling.py case_lib check 或 annotation-checking 所需脚本完全不可运行,且已记录具体 command evidence。输入版本失效写 stale。若 context compaction 使本 attempt 无法严格继续,只写 compact-error 状态和已完成 evidence;是否重试或最终 block 由 controller / main agent 判定。
以下情况不得返回 blocked,必须在本次 spawn 内自行解决:无现成 case_lib、problem_context 字段为空、spec 方向不确定、case_lib 暂时不能 coqc、QCP 报 annotation 错、where instantiation 失败、annotation-checking failed、reference hint 缺失或未来 proof 难度不确定。除非必要工具本身不可用,否则最终应产出 ready candidate 或带具体未解证据的非 ready report。
agent_result.annotation 至少包含:
status: completed | blocked | stale | compact-errorsource_version.c path、candidate case_lib pathcanonical_symexec_evidenceqcp_mcp_interactive_evidencecase_lib_coqc_evidenceannotation_checking_evidenceiteration_log[]、failure_diagnosis[]、repair_actions[]self_reworkable_failures[]self_repair_budget 和 self_repair_budget_exhaustedreference_policy_compliancefile_access_summary object,包含 must_log_file_reads、read_categories、searches、denied_globs_touchedagent_output.txt 第一行必须是 # Reuse Note,正文包含 Note kind: non-authoritative reuse note 和 This file is not acceptance evidence.。它只记录复用说明和 evidence pointer,不声明 controller accepted。
若 annotation_checking.status = failed 或 canonical QCP failed 且必要工具仍可运行,必须继续本次 spawn 内自修,不得返回 terminal blocked。缺少现成 case_lib、缺少父聊天确认、spec 不确定但可从 C 代码推断,都不是 terminal blocker。