refute-tool-boundary
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 4
03 SKILL.md 正文
Frozen 2026-10-09. This skill moved to ai-native-storage-workbench (
fv/skills/). Edit it there; this copy is not updated. Install the current version withfv/install.sh <this-repo>.
Purpose
A tool-boundary is the single most abusable verdict in the pipeline: it is the agent saying "the tool cannot do this," which ends the work. This skill exists so that claim is never taken on trust. You are a fresh adversary — you did not write the artifact under review and you do not get to agree with it. Your success condition is a reproducible proof that the wall was false. If you cannot produce one after exhausting the arsenal, the boundary stands — but only then.
Assume the boundary is wrong until the tool defeats you too. Every wall in known_defeats.yaml was once someone's confident tool-boundary.
Inputs
<component>— matchescomponents/<component>/.--tool creusot|kani— which tool's boundary is under attack.--id <PROPERTY_ID>— the property the scorer scoredtool-boundary(itsevidence.signatureis your starting intel).--cap-seconds N— per-attempt wall-clock cap (inherit the orchestrator's).
Step 0 — Environment (mandatory, same as the verify skills)
- Kani:
command -v cargo-kanior stop; run allcargo kanifromcomponents/<component>/. - Creusot:
export PATH="$HOME/.local/share/creusot/bin:$PATH";why3 config list-proversmust show alt-ergo/z3/cvc5/cvc4 (elsewhy3 config detect, else stop — a missing prover is an environment fault, never a confirmed boundary).
Step 1 — Read the claim and its intel
From components/<component>/verif/unified_properties.yaml, read the property's tool block: the captured evidence.signature, note, fidelity, and the artifact it ran. Read the failure class the signature falls under in gate/lever_battery_<tool>.yaml, and check gate/known_defeats.yaml — if the signature matches a known defeat, the boundary is already refuted by precedent: apply the mandated lever and you are done (report refuted, cite the KD).
Step 1.5 — If the boundary is an INEXPRESSIBILITY verdict, attack the expressibility claim
A tool-boundary whose evidence carries fidelity: not-expressible (the property had
creusot.claims_inexpressible: <IX-ID>, confirmed by the scorer's isolated probe) is a different kind of
wall: the scorer already proved the tool fact is real on this toolchain, so re-running provers will not
help. Your job is the other half — prove the property did not need that construct.
- Read the construct in
gate/inexpressible_creusot.yaml: itsauthority, and especially itsimplicationline, which states exactly what IS still expressible (forIX-CREUSOT-STRING-CONTENT: length, structure viasplit_at/deref, and view-to-view relationss@ == t@). - Re-express the real obligation inside that envelope, faithfully. Write a runnable proof module
(
verify_<id>/lemma_<id>) that captures the property using only expressible terms — e.g. a length relation (out@.len() == …), a structural relation viasplit_at, or an input/output view equality (format(t,m)@determined byt@,m@). If a faithful reformulation proves, the property was expressible after all → refuted (leave the module for the scorer to reproduce). - Faithfulness is the whole game. A reformulation that weakens the obligation (checks only length when the property is about which bytes appear, asserts a tautology, drops the tag-presence claim) is a different, weaker property — not a refutation. State plainly what your module proves and confirm it entails the original obligation; if it does not, you have not refuted the wall.
- Semantic-match audit. Independent of proving, judge whether the property genuinely requires the
inexpressible construct or was mislabelled to dodge work. A property that is really about a stateable
length/structure fact, or is actually just hard to prove (a solver miss with no translate/ICE), does
not belong to this construct → report
refuted(mislabelled) and route it to the battery.
Verdict for this step: refuted if you produced a faithful, proving, expressible reformulation OR showed
the property does not need the construct; upheld only if every faithful attempt to state the obligation
still requires the concrete content the model cannot represent — in which case the covering tool named in
the construct's covered_by (here Kani, bounded bytes) must carry it, and you say so.
Step 2 — Attack with the full arsenal (do not stop at the first miss)
Work through every lever the battery lists for the failure class, AND the general levers below that a battery may not yet encode. Produce each attempt as a runnable artifact named for the scorer (verify_<id>__<lever> / lemma_<id> / a strengthened verify_<id>), so a success is reproducible by the scorer, not just by you.
Kani arsenal: stub the opaque/expensive dependency (kani::stub, -Z stubbing); sweep --unwind across a range and at the cap; --no-unwinding-checks for the bounded-shallow prefix; swap solver (minisat ↔ cadical ↔ kissat); replace symbolic keys/values with concrete representatives; split one over-broad harness into per-effect harnesses; shrink the symbolic surface to the arithmetic/logical core while keeping the real type.
Creusot arsenal: run the full prover portfolio (-P alt-ergo,z3,cvc5,cvc4); raise budget (--time, --depth); apply tactics (-T split_vc,compute_specified); model std containers as a logic FMap/Seq ghost mirror; put an opaque type (raw ptr, Arc, *mut, FFI, trait object) behind a #[trusted] u64-handle boundary; strengthen loop invariants / add intermediate assertions; extract an inductive #[logic] proof lemma over the unbounded structure and cite it.
Cross-tool move: if one tool genuinely cannot express the obligation but the other can (Kani bounded-shallow ↔ Creusot FMap induction is the canonical pair), that is a delegation with a resolvable referent, not a tool-boundary — record it as delegated to the other tool/component with the concrete obligation.
Step 3 — Verdict (reproducible, or it did not happen)
- Refuted. You produced an artifact that verifies. Leave it in the tree under the scorer's naming convention, name the lever that worked, and report
refuted— the orchestrator will re-run the scorer (which must independently reproduce your proof) and append the beaten signature + lever toknown_defeats.yaml. A refutation the scorer cannot reproduce is not a refutation. - Upheld. You applied every lever for the class as runnable artifacts and each still failed, and the residual signature is genuinely novel (not in
known_defeats.yaml). Reportupheldwith your own captured signature(s) and the exhaustive list of levers you ran. Two independent agents failing the same wall with captured evidence is what makes⊘legitimate.
Never report upheld on the basis of reasoning alone. "I believe the tool cannot do this" is not a result; a battery of failed runnable artifacts is. If you did not run a lever the battery requires, you are not done — run it.
Anti-patterns
- ❌ Agreeing with the original claim because it sounds plausible. You are the adversary; make the tool prove you wrong.
- ❌ A refutation that only you can reproduce (uncommitted flags, hand-edited
.coma). The scorer regenerates from source — so must your proof. - ❌ Reporting
upheldwithout having run every required lever as a named artifact. - ❌ Treating a missing prover / unreachable toolchain as a confirmed boundary. That is an environment fault (Step 0).
- ❌ "Refuting" an inexpressibility verdict by proving a weaker property (only length, a tautology) that does not entail the original obligation. That is a different property, not a refutation (Step 1.5).
- ❌ Re-running provers against a
not-expressibleboundary and reportingupheldwhen they miss — the scorer already confirmed the tool fact; the only refutation is a faithful expressible reformulation that proves (Step 1.5).
04 同仓库更多 Skills
tools-spin-sync
Synchronize Spin/Promela models with current source code and re-verify
tools-spin-model
Create a new Spin/Promela formal verification model for a system property
tools-creusot-install
Install the Creusot Rust verification tool
tools-creusot-init
Prepare an existing Cargo project to use Creusot formal verification
tools-creusot-coq-install
Add Coq 8.20 as an additional prover to an existing Creusot installation, for verification conditions that SMT solvers cannot discharge
tools-creusot-annotate-interfaces
Formally verify a component's properties with Creusot and annotate its interface definitions