Préparer la preuve

Transformez une intention arrêtée en preuve exécutable discriminante au meilleur coût avant implémentation ou promotion de candidat. Couvre la conception de preuve, les défis d'oracle et l'analyse d'implémentations erronées réalistes.

Spar Skills Guide Bot
TestingAvancé
0003/08/2026
Claude CodeCursorWindsurfCopilotCodex
#proof#test-design#tdd#verification#specification

Recommandé pour


name: prepare-proof description: Turn settled intent into the cheapest discriminating executable proof before implementation or candidate promotion. argument-hint: "[issue, spec, or candidate]"

Prepare proof

Use the issue plan, governing contract, current semantic owner, production path, existing tests, and independent external authority.

Proof design, independent oracle challenge, realistic wrong-implementation analysis, opposite-direction controls, production-path review, and proof economics may be investigated independently when useful.

When tests, fixtures, schemas, or proof receipts require mutation, use the selected claim's current branch/worktree and one proof writer at a time. Read-only adversaries and oracles return evidence to that writer; they do not create competing proof candidates. Do not inspect sibling worktrees or neighbouring PR overlap merely to reserve a proof surface.

Flow

  1. Resolve current inputs and establish or reuse the current proof candidate/writer when proof artifacts require mutation.
  2. Invoke spec-to-test to materialize and execute the proof.
  3. Invoke review-tests against the observed execution and realistic wrong implementations.
  4. Strengthen and re-execute the proof until adequate.
  5. Continue to build-candidate without routine approval.

Routes

  • PROOF_READYbuild-candidate
  • WEAK_PROOFspec-to-test, then review-tests
  • WRITER_COLLISION / UNSAFE_WORKTREE → preserve the same-candidate mutation hazard
  • PLAN_CHANGED / MATERIAL_PREMISE_CHANGEDprepare-issue
  • MORE_ORACLE_RESEARCH → research, then repeat
  • NO_EXECUTABLE_PROOF_SUBJECT → return to the invoking public flow for proportional candidate/claim review
  • ALREADY_PROVENbuild-candidate
  • NOT_PROVEN → preserve the missing evidence
Skills similaires