verification-before-completion
Before a new completion, working-fix, success or verified-status claim or a recommendation the user will act on, checks it against its acceptance criterion and evidence and decides whether evidence must be reread.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 15
- Forks
- 4
01 前言 Front Matter
- name
- verification-before-completion
- description
- Before a new completion, working-fix, success or verified-status claim or a recommendation the user will act on, checks it against its acceptance criterion and evidence and decides whether evidence must be reread.
- compatibility
- [ "Python 3.11+ standard library" ]
02 资源文件 5
- 参考文档references/evaluator-artifacts.md776 B
- 参考文档references/external-tool-evidence.md4.1 KB
- 参考文档references/response-review.md18.1 KB
- 参考文档references/verification-detail.md1.3 KB
- 参考文档references/verify-or-reuse.md13.5 KB
03 SKILL.md 正文
Verification Before Completion
A delegate reviews its assigned evidence and returns the result to its parent. The response model answering the user performs response route registration, the response review and final delivery.
The response model follows this instruction document to judge claims before a new completion, fix, success, verified-status or material recommendation claim, and before rereading an artifact to support a claim. Match every claim to the actual acceptance criterion that the human user set and the evidence. A printed success label, another agent's report or a completion or partial completion block is not proof.
Acceptance criteria and claim scope
Extract the requested result and accepted constraints from what the human user wants and the active contract. Compare the proposed result with the original sources and required acceptance criteria, including how the verified parts support the whole requested outcome. Reconsider a selected reference or interpretation when contrary evidence challenges it; do not rewrite the source or the acceptance criterion that the human user set to make the result pass.
For each proposed claim, identify the acceptance criterion, checked target and failure context, observation method, source locator and original verification time. Distinguish source conformance, executable regression, installed-copy delivery and behavior in an ongoing conversation. Evidence for one stage supports only that stage. A source edit or installation does not demonstrate behavioral improvement; a case passed by both baseline and candidate does not establish that the candidate caused improvement.
Honor the acceptance criteria the human user agreed to for an issue's disposition. If the human user agreed that a historical issue counts as resolved when a selected current check does not reproduce it, judge that acceptance criterion rather than inventing a universal-reliability requirement.
A verdict you endorse is your claim, including a reviewer's verdict. A new absence claim requires a search that could find the missing object; reuse an earlier search only when its target and acceptance criterion remain unchanged. Severity and confidence never replace evidence.
Verify-or-reuse gate
Before inspecting an artifact again, apply references/verify-or-reuse.md.
Evidence selection and stop gate
Before a discretionary check, the response model identifies the unresolved acceptance criterion or competing explanation, why the method distinguishes the alternatives, and which attainable outcomes would change a specific next action or the judgment of an acceptance criterion. If no outcome can change that decision, do not run the check. For stochastic repetition, define the uncertainty, sampling rule and stopping condition before repeating.
Mandatory checks are those that the human user or the project instructions require; they remain required. A check that a skill lists is required only when its outcome can change the next action or the judgment of an acceptance criterion. An unavailable required observation leaves its acceptance criterion unresolved. An inconclusive check supplies no pass or fail verdict on the work, although it consumes the resources used to run and record it.
Choose evidence for the claim: content or behavior for semantic claims; hashes or provenance for identity, integrity, drift, merge safety or reproducibility. Hash equality cannot establish behavior. A tool's actual action result may itself satisfy the acceptance criterion; do not run a second check merely to obtain another output.
When an already-executed action has an unknown outcome, inspect the affected result through a bounded observation instead of automatically executing the action again. Required work that has not run still needs its actual execution. Preserve unchanged valid proof with its original source and time.
Systematic-debugging defines incident accounting and continuation. Boundary-contract owns authority and resource boundaries.
Finalization sequence
For a new completion or partial completion claim in the current turn:
- Load this skill through the host's real mechanism, or validly reuse its body under Instruction Body Reuse, and apply the workflow to the input the response model is answering.
- Map each claim to its acceptance criterion and actual evidence. A successful result already returned in this turn can supply fresh evidence; run a further check only for an acceptance criterion it does not cover. Read the result, source locator, exit status and failures before judging it.
- Follow session-intent-analyzer's
references/ledger-schema.md, section Core Response Projection, to bind the response route to the current input. Resolve that reference from the selected installed session-intent-analyzer directory. - Compare each claim with its original sources and acceptance criterion, then separately judge the complete draft against the human user's objective and constraints. Follow Prepare and record the response review to submit both judgments to Core code. Core code authenticates and stores them; code does not decide their meaning.
- Deliver the supported reviewed answer with its completion or partial completion block under the review reference's Deliver section.
Explaining an unchanged prior result is not a new completion submission. Core code selects completion processing from an actual [completion-check] or [partial-check] marker; it does not infer completion from prose or selected execution work. The response model identifies its new completion claims and sends them through this workflow. Never describe an old check as freshly executed.
Retained original results
For a source-backed explanation, Prepare and record the response review defines both judgments; record them only when the human user explicitly requests an authenticated explanation review. New completion and partial-completion claims follow the finalization sequence above.
Retain evidence on first execution
Before a necessary action or check, arrange to retain its original result, exit status, source locator and verification time. Keep an orchestrated tool result in session state when later steps need the original object.
If the result is already available, cite it or copy its unchanged contents into storage that the human user's instructions and the project instructions do not prohibit and the host's permission rules allow. Do not rerun the action to populate a variable, add redirection or create an evidence file. Missing storage is not missing verification. If the original result is lost or incomplete, state that gap and use verify-or-reuse to decide the affected observation.
To record proof, follow the review reference's Proof bytes and time.
Completion-Check Format
The scope field describes completion evidence coverage. In [partial-check], scope: partial means that declared required acceptance criteria remain unresolved. It is independent of the focus named in the answer's [focus: …] line, which selects the judgment target (micro, meso, macro or meta). A macro judgment can therefore have partial evidence coverage. The response model preserves both meanings when preparing the answer; it does not substitute a focus value for the required partial completion block.
For a new full completion claim, place [completion-check] after the answer's supported summary and key modifications. Declare every acceptance criterion and map each claim to its acceptance criterion, evidence and bare pass or fail verdict. Put claim, criterion, evidence and verdict on separate physical lines. A completion block requires unverified: none; a failed verdict proves failure, not overall success.
For supported partial success, use [partial-check] with scope: partial, the same mapping of claims to acceptance criteria and a nonempty unverified list. Each unresolved entry names a declared acceptance criterion as criterion-id: reason. Preserve all required acceptance criteria instead of narrowing the contract to the passing subset. A plain statement of partial status without a claim of successful work needs no [partial-check] block.
The same proof format applies on every host. Core code authenticates the per-claim and whole-response judgments under the current response route that this session owns, as specified in Prepare and record the response review. Skill loading and reuse remain facts of the workflow and its records; a Skill invocation or self-report field is neither completion evidence nor a separate prerequisite for accepting a completion claim.
The examples below illustrate serialization only; replace their claims and source locators with actual results. They do not assert that any example check ran. Each [source: user-said] tag is the response model's claim that the human user directly supplied that acceptance criterion; the tag does not prove that origin.
Full result:
[completion-check]
- acceptance-criteria:
- target: The requested behavior passes its regression [source: user-said]
- claim-evidence-map:
- claim: The requested behavior passed its regression
criterion: target
evidence: Original regression output with source locator
verdict: pass
- unverified:
- none
- evidence: Original regression output with source locator
Partial result:
[partial-check]
- scope: partial
- acceptance-criteria:
- target: The requested behavior passes its regression [source: user-said]
- installed: The installed behavior is verified [source: user-said]
- claim-evidence-map:
- claim: The requested behavior passed its regression
criterion: target
evidence: Original regression output with source locator
verdict: pass
- unverified:
- installed: Installed observation is unavailable
- evidence: Original regression output with source locator
Verified Flaw Propagation
For a flaw in the requested deliverable that the response model verified against evidence, apply Verified Flaw Propagation.
External evidence and evaluator requirements
For a material external tool or platform claim, apply references/external-tool-evidence.md, including its specification/runtime distinction, source locators and explicit exemptions.
Before claiming a result that adversarial-verification reviewed at level-3-high-stakes, or claiming external governance absorption or evaluator-candidate promotion, apply references/evaluator-artifacts.md. Missing or rejected required evaluator proof blocks that claim or promotion.
Failure modes and partial continuation
A changed diff is not proof of a fix; lint is not proof of a build. references/verification-detail.md gives examples for specific acceptance criteria.
While supported work that the human user's instructions authorize remains, report partial status in commentary and continue it. Stop dependent work for an explicit stop from the human user, a missing required decision only the human user can make, exhausted resources or an unavailable prerequisite, and report that precise limitation.
Before finalizing, verify that every claimed result has an acceptance criterion and evidence, every unresolved required acceptance criterion remains visible, no claim exceeds its checked stage, and no unchanged action ran again merely for recording.
04 同仓库更多 Skills
skill-evolution
Recommends skill changes from recorded tool-call patterns and conduct corrections asserted by the human user or observed by the response model, when the human user asks for such recommendations or their pending backlog, or authorizes that analysis.
session-intent-analyzer
Records the response model's new or changed interpretation of the input the response model is answering as its `interpreted-as` record before the first tool call of work, and reads that record when it can change the objective, constraints, work choice or whether earlier work continues.
necessity-gate
Judges whether proposed work is justified, needs a narrower scope or is unjustified, when the response model proposes new work or the human user asks whether to do it.
merge-companion
Reviews the installer's backups of external changes to installed skills and merges each into the new skill version, discards or defers it as the human user chooses, before a task changes or reinstalls an installed skill, or when the human user asks for that review.
compact-handoff
Writes a handoff of the task's objective, scope, evidence and next action when a long conversation, compaction or handover to another session or agent could lose them, and resumes the task from it afterwards.
writing-skills
Writes a new skill or changes an existing one in its folder (SKILL.md, references and scripts) and tests it.